getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
[gnulib.git] / ChangeLog
1 2012-06-23  Bruno Haible  <bruno@clisp.org>
2
3         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
5         does not handle abbreviated long options with equivalent
6         disambiguations, set gl_replace_getopt to yes.
7         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
8
9 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
10
11         time_r: fix typo that always overrode localtime_r decl
12         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
13         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
14         not in a standard include.
15
16 2012-06-22  Bruno Haible  <bruno@clisp.org>
17
18         Write "Mac OS X" instead of "MacOS X".
19         * README: Write "Mac OS X" instead of "MacOS X".
20         * build-aux/bootstrap: Likewise.
21         * build-aux/install-reloc: Likewise.
22         * lib/acl-internal.h: Likewise.
23         * lib/acl_entries.c: Likewise.
24         * lib/argp-ba.c: Likewise.
25         * lib/argp-pv.c: Likewise.
26         * lib/config.charset: Likewise.
27         * lib/copy-acl.c: Likewise.
28         * lib/csharpexec.c: Likewise.
29         * lib/euidaccess.c: Likewise.
30         * lib/fbufmode.c: Likewise.
31         * lib/fflush.c: Likewise.
32         * lib/file-has-acl.c: Likewise.
33         * lib/filemode.h: Likewise.
34         * lib/fpurge.c: Likewise.
35         * lib/freadable.c: Likewise.
36         * lib/freadahead.c: Likewise.
37         * lib/freading.c: Likewise.
38         * lib/freadptr.c: Likewise.
39         * lib/freadseek.c: Likewise.
40         * lib/fseeko.c: Likewise.
41         * lib/fseterr.c: Likewise.
42         * lib/fsusage.c: Likewise.
43         * lib/fwritable.c: Likewise.
44         * lib/fwriting.c: Likewise.
45         * lib/get-rusage-as.c: Likewise.
46         * lib/get-rusage-data.c: Likewise.
47         * lib/getdomainname.c: Likewise.
48         * lib/idpriv-drop.c: Likewise.
49         * lib/idpriv-droptemp.c: Likewise.
50         * lib/localcharset.c: Likewise.
51         * lib/locale.in.h: Likewise.
52         * lib/localename.c: Likewise.
53         * lib/mbsrtowcs-state.c: Likewise.
54         * lib/nproc.c: Likewise.
55         * lib/passfd.c: Likewise.
56         * lib/posix_openpt.c: Likewise.
57         * lib/printf-parse.c: Likewise.
58         * lib/progreloc.c: Likewise.
59         * lib/safe-read.h: Likewise.
60         * lib/safe-write.h: Likewise.
61         * lib/sched.in.h: Likewise.
62         * lib/set-mode-acl.c: Likewise.
63         * lib/signal.in.h: Likewise.
64         * lib/stdint.in.h: Likewise.
65         * lib/stdio-impl.h: Likewise.
66         * lib/stdlib.in.h: Likewise.
67         * lib/strtod.c: Likewise.
68         * lib/sys_select.in.h: Likewise.
69         * lib/tcgetsid.c: Likewise.
70         * lib/unistd.in.h: Likewise.
71         * lib/unlockpt.c: Likewise.
72         * lib/vasnprintf.c: Likewise.
73         * lib/vma-iter.c: Likewise.
74         * lib/wcsrtombs-state.c: Likewise.
75         * m4/acl.m4: Likewise.
76         * m4/acosl.m4: Likewise.
77         * m4/asinl.m4: Likewise.
78         * m4/atanl.m4: Likewise.
79         * m4/c-stack.m4: Likewise.
80         * m4/cosl.m4: Likewise.
81         * m4/expl.m4: Likewise.
82         * m4/extensions.m4: Likewise.
83         * m4/fdatasync.m4: Likewise.
84         * m4/fmal.m4: Likewise.
85         * m4/frexp.m4: Likewise.
86         * m4/frexpf.m4: Likewise.
87         * m4/frexpl.m4: Likewise.
88         * m4/fsusage.m4: Likewise.
89         * m4/getdomainname.m4: Likewise.
90         * m4/getloadavg.m4: Likewise.
91         * m4/getopt.m4: Likewise.
92         * m4/gettext.m4: Likewise.
93         * m4/gnulib-common.m4: Likewise.
94         * m4/intdiv0.m4: Likewise.
95         * m4/intlmacosx.m4: Likewise.
96         * m4/largefile.m4: Likewise.
97         * m4/ldexpl.m4: Likewise.
98         * m4/link-follow.m4: Likewise.
99         * m4/locale-ar.m4: Likewise.
100         * m4/locale-fr.m4: Likewise.
101         * m4/locale-ja.m4: Likewise.
102         * m4/locale-tr.m4: Likewise.
103         * m4/locale-zh.m4: Likewise.
104         * m4/locale_h.m4: Likewise.
105         * m4/lock.m4: Likewise.
106         * m4/logl.m4: Likewise.
107         * m4/mathfunc.m4: Likewise.
108         * m4/minus-zero.m4: Likewise.
109         * m4/mktime.m4: Likewise.
110         * m4/mmap-anon.m4: Likewise.
111         * m4/multiarch.m4: Likewise.
112         * m4/nanosleep.m4: Likewise.
113         * m4/nocrash.m4: Likewise.
114         * m4/poll.m4: Likewise.
115         * m4/printf-frexpl.m4: Likewise.
116         * m4/printf.m4: Likewise.
117         * m4/signbit.m4: Likewise.
118         * m4/sinl.m4: Likewise.
119         * m4/sqrtl.m4: Likewise.
120         * m4/strerror_r.m4: Likewise.
121         * m4/tanl.m4: Likewise.
122         * m4/threadlib.m4: Likewise.
123         * m4/ttyname_r.m4: Likewise.
124         * m4/unlink.m4: Likewise.
125         * m4/visibility.m4: Likewise.
126         * m4/wcwidth.m4: Likewise.
127         * tests/minus-zero.h: Likewise.
128         * tests/test-alloca-opt.c: Likewise.
129         * tests/test-copy-acl.sh: Likewise.
130         * tests/test-copy-file.sh: Likewise.
131         * tests/test-fdatasync.c: Likewise.
132         * tests/test-file-has-acl.sh: Likewise.
133         * tests/test-flock.c: Likewise.
134         * tests/test-fsync.c: Likewise.
135         * tests/test-localename.c: Likewise.
136         * tests/test-malloca.c: Likewise.
137         * tests/test-nonblocking-pipe.h: Likewise.
138         * tests/test-nonblocking-socket.h: Likewise.
139         * tests/test-openpty.c: Likewise.
140         * tests/test-posix_openpt.c: Likewise.
141         * tests/test-ptsname.c: Likewise.
142         * tests/test-ptsname_r.c: Likewise.
143         * tests/test-sameacls.c: Likewise.
144         * tests/test-select.h: Likewise.
145         * tests/test-set-mode-acl.sh: Likewise.
146         * tests/test-snprintf-posix.h: Likewise.
147         * tests/test-sprintf-posix.h: Likewise.
148         * tests/test-strtod.c: Likewise.
149         * tests/test-time.c: Likewise.
150         * tests/test-vasnprintf-posix.c: Likewise.
151         * tests/test-vasprintf-posix.c: Likewise.
152         * doc/acl-resources.txt: Likewise.
153         * doc/**/*.texi: Likewise.
154         Reported by Max Horn <max@quendi.de>.
155
156 2012-06-22  Bruno Haible  <bruno@clisp.org>
157
158         grantpt: Relax requirement regarding invalid file descriptors.
159         * lib/grantpt.c: Don't include <fcntl.h>.
160         (grantpt): Don't verify the validity of the file descriptor.
161         * modules/grantpt (Depends-on): Remove fcntl-h.
162         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
163         file descriptors.
164         * doc/posix-functions/grantpt.texi: Document more platforms on which
165         grantpt succeeds for invalid file descriptors.
166         Reported by Rich Felker <dalias@aerifal.cx>.
167
168 2012-06-22  Bruno Haible  <bruno@clisp.org>
169
170         fbufmode test: Don't test unportable behaviour.
171         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
172         (main): Invoke it three times.
173         Reported by Szabolcs Nagy <nsz@port70.net>
174         and Rich Felker <dalias@aerifal.cx>.
175
176 2012-06-21  Bruno Haible  <bruno@clisp.org>
177
178         gnulib-tool: Refactor inctests variable.
179         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
180         (func_modules_transitive_closure,
181         func_modules_transitive_closure_separately,
182         func_import, func_create_testdir): Update.
183
184         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
185         * gnulib-tool: Accept option --without-tests.
186         (func_usage): Document --without-tests option. Rearrange.
187         (inctests): Normalize according to the mode.
188         * NEWS: Mention the change.
189         Suggested by Simon Josefsson.
190
191 2012-06-21  Bruce Korb  <bkorb@gnu.org>
192
193         parse-duration test: Avoid spurious output.
194         * tests/test-parse-duration.sh: Reindent with leading tabs.
195
196 2012-06-21  Jim Meyering  <meyering@redhat.com>
197
198         maint: disable the strncpy prohibition
199         * cfg.mk: Do not prohibit strncpy here.
200
201 2012-06-21  Bruno Haible  <bruno@clisp.org>
202
203         nonblocking: Avoid compilation error on mingw64.
204         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
205         fscanf.
206         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
207         * modules/vfscanf (configure.ac): Likewise.
208         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
209         definition only if stdio.h has prepared it.
210         Reported by Daniel P. Berrange <berrange@redhat.com>.
211
212 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
213
214         gnulib-tool: Use readlink if it is available.
215         * gnulib-tool (func_readlink): Choose function more appropriately.
216
217 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
218
219         posixtm-tests: port to buggy compiler
220         Problem reported by Simon Josefsson in
221         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
222         * modules/posixtm-tests (Depends-on): Add stdint.
223         * tests/test-posixtm.c (struct posixtm_test.t_expected):
224         Now of type int_least64_t, not int64_t, both because that's
225         what INT64_C returns and because int_least64_t works even
226         on 72-bit hosts.
227         (T): Use INT64_C on constants outside the traditional int range,
228         to work around compiler bug noted by Simon.
229
230         mktime: fix integer overflow in 'configure'-time test
231         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
232         after integer overflow.  Problem reported by Rich Felker in
233         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
234         Also, don't look for further instances of a bug if we've already
235         found one instance; this helps 'configure' run faster.
236
237 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
238
239         tmpfile, clean-temp: Fix invocation of GetVersionEx.
240         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
241         GetVersionEx correctly.
242         * lib/clean-temp.c (supports_delete_on_close): Likewise.
243
244 2012-06-20  Bruno Haible  <bruno@clisp.org>
245
246         fdopen: Allow implementations that don't reject invalid fd arguments.
247         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
248         succeeds.
249         Reported by Rich Felker <dalias@aerifal.cx>.
250
251 2012-06-20  Simon Josefsson  <simon@josefsson.org>
252
253         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
254         bring in LIBINTL.
255
256 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
257
258         init.sh: do not rely on autoupated PWD
259         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
260         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
261         Although Nelson's bug was not necessarily fixed by this patch,
262         it seems wise to make the change for safety.
263         * tests/init.sh (path_prepend_): Do not rely on PWD updating
264         automagically after 'cd'; this is not reliable on older shells.
265         (setup_): Fail if we cannot cd to temporary directory.
266
267 2012-06-19  Bruno Haible  <bruno@clisp.org>
268
269         stat, fstat: Avoid warnings on mingw64.
270         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
271         redefining.
272         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
273         Reported by Daniel P. Berrange <berrange@redhat.com>.
274
275 2012-06-19  Bruno Haible  <bruno@clisp.org>
276
277         stdioext: Add support for musl libc.
278
279         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
280         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
281
282         * m4/fseterr.m4: New file.
283         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
284         function exists.
285         * modules/fseterr (Files): Add m4/fseterr.m4.
286         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
287         __fseterr does not exist.
288         (Makefile.am): Remove fseterr.c from lib_SOURCES.
289
290         * lib/freadable.h: Update comment.
291
292         * lib/fwritable.h: Update comment.
293
294         * lib/freading.h: Update comment.
295
296         * lib/fwriting.h: Update comment.
297
298         * m4/freadahead.m4: New file.
299         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
300         that function exists.
301         * modules/freadahead (Files): Add m4/freadahead.m4.
302         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
303         __freadahead does not exist.
304         (Makefile.am): Remove freadahead.c from lib_SOURCES.
305
306         * m4/freadptr.m4: New file.
307         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
308         function exists.
309         * modules/freadptr (Files): Add m4/freadptr.m4.
310         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
311         __freadptr does not exist.
312         (Makefile.am): Remove freadptr.c from lib_SOURCES.
313
314         * m4/freadseek.m4: New file.
315         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
316         exists.
317         * modules/freadseek (Files): Add m4/freadseek.m4.
318         (configure.ac): Invoke gl_FUNC_FREADSEEK.
319
320         * lib/fpurge.c (fpurge): Update comment.
321
322         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
323
324 2012-06-19  Bruno Haible  <bruno@clisp.org>
325
326         *printf-posix: Put more info into config.log.
327         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
328         exit code into config.log.
329
330 2012-06-19  Bruno Haible  <bruno@clisp.org>
331
332         getopt-gnu: Fix exit code overflow in autoconf test.
333         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
334         to keep them below < 128.
335
336 2012-06-17  Jim Meyering  <meyering@redhat.com>
337
338         maint.mk: fix typo in code to derive GPG key at release time
339         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
340
341 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
342
343         regex: avoid warning when pointers are not long
344         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
345         and uintptr_t, not long, for portability to hosts where pointers and
346         long have different sizes.  Issue noted by Daniel P. Berrange in
347         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
348         and fix suggested by Bruno Haible in
349         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
350
351 2012-06-17  Bruno Haible  <bruno@clisp.org>
352
353         dummy: Relicense into the public domain.
354         * modules/dummy (License): Set to "public domain".
355         Suggested by Reuben Thomas.
356
357 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
358
359         announce-gen: VPATH issues
360         * build-aux/announce-gen (--srcdir): New option, used to trim the
361         $srcdir part of the path from $builddir to NEWS.
362         * top/maint.mk (announcement): Adjust.
363
364 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
365
366         gnu-web-doc-update: VPATH builds
367         * build-aux/gnu-web-doc-update (--builddir): New option.
368         Revamp the handling of options.
369         Prefer $(...) to `...`.
370         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
371         the template, and it is GNU mktemp specific.
372         Prefer set -e to long series of &&.
373         Restore the initial git branch, not "master".
374         Properly initialize submodules (don't rely only on bootstrap).
375         Do not reconfigure blindly, use config.status.
376         * top/README-release: Update instructions for gnu-web-doc-update.
377
378 2012-06-11  Jim Meyering  <meyering@redhat.com>
379
380         maint.mk: revert most of the previous change re "all these"
381         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
382         For rationale, see the discussion at
383         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
384
385 2012-06-10  Karl Berry  <karl@gnu.org>
386
387         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
388
389         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
390
391 2012-06-10  Bruce Korb  <bkorb@gnu.org>
392
393         parse-duration: Relicense under LGPLv2+.
394         * modules/parse-duration (License): Change to LGPLv2+.
395
396 2012-06-10  Jim Meyering  <meyering@redhat.com>
397
398         maint.mk: prohibit common grammar error: "all these"
399         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
400         the list of prohibited word sequences.  It should be "all of these".
401         * lib/tempname.c (__gen_tempname): Fix one of them.
402
403 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
404
405         do-release-commit-and-tag: support VPATH builds
406         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
407         (noteworthy): Defined earlier to factor its value.
408         (noteworthy_stub): New.
409         Use it to factor.
410         (help_version): Split into...
411         (help, version): these.
412         Adjust the option processing part.
413         Support "--option=value" in addition to "--option value".
414         (builddir): New.
415         (--builddir): New option.
416         * top/README-release: Document this.
417         Reword slightly so that the reader cannot understand that he
418         has to do these steps before calling do-release-commit-and-tag.
419
420 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
421
422         readme-release: also require announce-gen and maintainer-makefile
423         * modules/readme-release (Depends-on): here.
424         * modules/announce-gen, modules/do-release-commit-and-tag,
425         modules/gnu-web-doc-update, modules/maintainer-makefile
426         (Description): Point to readme-release.
427
428 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
429
430         maint.mk: fix VPATH issues.
431         * top/maint.mk (news-check): GNU Make understand $< very well.
432         (release-prep): NEWS is in $(srcdir).
433
434 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
435
436         readme-release: require the promoted modules.
437         * modules/readme-release (Depends-on): Add
438         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
439         in this text.
440
441 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
442             Bruno Haible  <bruno@clisp.org>
443
444         error, strerror-override: Support mingw64 from Fedora 17.
445         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
446         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
447         EINPROGRESS.
448         * lib/strerror-override.h (strerror_override): Test it.
449         * lib/strerror-override.c (strerror_override): Likewise.
450         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
451
452 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
453             Bruno Haible  <bruno@clisp.org>
454
455         error, strerror-override: Support mingw64 from Fedora 17.
456         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
457         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
458         * lib/strerror-override.h (strerror_override): Test it.
459         * lib/strerror-override.c (strerror_override): Likewise.
460
461 2012-06-03  Bruno Haible  <bruno@clisp.org>
462
463         error, strerror-override: Support new errno values from POSIX:2008.
464         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
465         ENOTRECOVERABLE.
466         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
467         platforms.
468         * lib/strerror-override.c (strerror_override): Conditionalize the
469         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
470         * lib/strerror-override.h (strerror_override): Declare also if
471         GNULIB_defined_EOWNERDEAD is defined.
472         * tests/test-errno.c (e130, e131): New variables.
473         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
474         ENOTRECOVERABLE.
475         Reported by Paolo Bonzini.
476
477 2012-05-31  Jim Meyering  <meyering@redhat.com>
478
479         savewd: add missing dependency on sys_wait module
480         * modules/savewd (Depends-on): Add sys_wait, needed at least
481         for MSVC.  Report and suggested change by Michael Goffioul.
482
483 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
484
485         system-quote-tests: port to CentOS 5
486         Problem reported by Tom G. Christensen in
487         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
488         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
489
490 2012-05-29  Jim Meyering  <meyering@redhat.com>
491
492         maint: fix typos in comments and ChangeLog
493         Culprits identified and fixed mostly automatically using these commands:
494         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
495         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
496         using http://github.com/lyda/misspell-check
497         * ChangeLog: Fix typos.
498         * doc/solaris-versions: Likewise.
499         * lib/regexec.c (re_search_stub): Likewise.
500         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
501
502 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
503
504         manywarnings: remove duplicate -Wmultichar entry
505         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
506         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
507         so keep the entry marked as documented.
508
509 2012-05-27  Karl Berry  <karl@gnu.org>
510
511         * config/srclist.txt (mktime.c): remove last libc sync,
512         perhaps just temporarily.
513
514 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
515
516         regex: don't assume uint64_t or uint32_t
517         * lib/regcomp.c (init_word_char): Don't assume that the types
518         uint64_t and uint32_t exist.  The C standard doesn't guarantee
519         them, and on some 32-bit compilers there is no uint64_t.
520         Problem reported by Gianluigi Tiesi in
521         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
522
523 2012-05-25  Jim Meyering  <meyering@redhat.com>
524
525         maint.mk: add strncpy-prohibiting syntax-check rule
526         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
527
528 2012-05-24  Jim Meyering  <meyering@redhat.com>
529
530         maint.mk: compute $(gpg_key_ID) more portably
531         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
532         That use of sed is not portable to some fringe systems.
533         Reported by Paul Eggert in
534         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
535
536 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
537
538         mktime: sync from glibc
539         * config/srclist.txt: Uncomment mktime.c.
540         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
541         First, indent with tabs, since glibc uses tabs and doesn't want to
542         change and we'd rather be identical to glibc.  Also, two small
543         coding changes:
544         (isdst_differ): Use &&, not &, as && is the usual style.
545         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
546         for clarity.
547
548 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
549
550         announce-gen: du -h is more portable than du --human
551         * build-aux/announce-gen (sizes): Invoke du with -h instead
552         of --human.  Accept leading white space in its output.
553
554 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
555
556         announce-gen: Improve diagnostics.
557         * build-aux/announce-gen: When parsing command line options,
558         prefer "announce-gen: option --release-type requires an argument"
559         to "Option release-type requires an argument".
560
561 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
562
563         maint.mk: gpg_key_ID: use sed more portably
564         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
565         the closing brace.
566         (refresh-po): Fuse two sed invocations into one.
567
568 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
569
570         gitlog-to-changelog: support the log message format used in Bison.
571         * build-aux/gitlog-to-changelog: Support --strip-tab and
572         --strip-cherry-picked.
573
574 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
575
576         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
577         the rest of the current time slice to another thread in the current
578         process. So if the thread that feeds the file decscriptor we're
579         polling is not in the current process, we get busy-waiting.
580         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
581         Patch from Theodore Leblond.
582         * lib/select.c: Split polling out of the loop that sets the output
583         fd_sets.  Check for zero result and loop if the wait timeout is
584         infinite.
585
586 2012-05-21  Simon Josefsson  <simon@josefsson.org>
587
588         select: Fix build error on IRIX 6.5.
589         * lib/select.c: Include stddef.h for NULL.
590
591 2012-05-21  Simon Josefsson  <simon@josefsson.org>
592
593         gc: fix libgcrypt detection on older machines.
594         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
595         copyright years because the file has been distributed every year
596         since it was created.
597
598 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
599
600         crypto: fix bug in large buffer handling
601         Problem reported by Serge Belyshev for glibc in
602         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
603         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
604         * lib/md4.c (md4_process_block):
605         * lib/md5.c (md5_process_block):
606         * lib/sha1.c (sha1_process_block):
607         * lib/sha256.c (sha256_process_block):
608         Don't assume the buffer length is less than 2**32.
609         * lib/sha512.c (sha512_process_block): Likewise.
610         Here, the bug is present only in the rare case where the host does
611         not support uint64_t or where size_t is wider than 64 bits.
612         Use u64size to work around the problems.
613         * lib/u64.h (u64size): New macro.
614
615 2012-05-15  Pádraig Brady  <P@draigBrady.com>
616
617         fsusage: fix block size returned on older Linux 2.6
618
619         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
620         which is available since Linux 2.6.
621         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
622         when the member is available so it can be used as a fallback.
623         * doc/posix-functions/statvfs.texi: Mention the hang issue
624         on Linux < 2.6.36.
625
626 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
627
628         bootstrap: suppress stderr chatter
629         * build-aux/bootstrap (insert_sorted_if_absent, main program):
630         Omit unnecessary chatter to stderr.  The main program chatter
631         was there only inadvertantly.
632
633         bootstrap: .gitignore files created by autopoint, libtool
634         I ran into this problem when bootstrapping the latest diffutils.
635         After './bootstrap', 'git status' reported lots of untracked files
636         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
637         autopoint and do not need to be version-controlled.
638         * build-aux/bootstrap: Put into .gitignore the files that
639         autopoint and libtool create, by keeping track of files that exist
640         after but not before these programs are run.
641         (version_controlled_file): Move up.  2nd arg is now full file
642         name, not base name; this is more convenient.  Put CVS at the end,
643         as it's now somewhat deprecated.
644
645 2012-05-14  Jim Meyering  <meyering@redhat.com>
646
647         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
648         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
649         definition.  Reported by Bruno Haible.
650
651 2012-05-13  Bruno Haible  <bruno@clisp.org>
652             Paul Eggert  <eggert@cs.ucla.edu>
653
654         binary-io: Define set_binary_mode function.
655         * lib/binary-io.h (set_binary_mode): New function.
656         (SET_BINARY): Define in terms of set_binary_mode.
657         * modules/binary-io (configure.ac): Require AC_C_INLINE.
658         * tests/test-binary-io.c (main): Accept an argument, and test either
659         set_binary_mode or SET_BINARY depending on the argument.
660         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
661         argument. Clean up also t-bin-out0.tmp.
662
663 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
664
665         bootstrap: take advantage of POSIX shell features
666
667         The 'bootstrap' script offered by Gnulib script already uses POSIX
668         shell features (like $((...)) arithmetic expansions) that are not
669         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
670         means that bootstrap must already be run using a proper POSIX shell,
671         which will thus provide more features, like ${var#pattern} parameter
672         expansion or inversion of a command exit status with '!'.  We can
673         thus use these features to improve the clarity and the performances
674         of the bootstrap script.
675
676         Suggested by Eric Blake.
677
678         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
679         of sed/expr plus command substitutions, to save some forks.  While
680         we are at it, prefer the POSIX $(...) form of command substitution,
681         rather than the legacy form `...` (since the former is visually
682         clearer and interacts better with quoting), and prefer the idiom:
683           "if ! CMD; then ACTION ..."
684         over the idiom:
685           "if CMD; then :; else ACTION ..."
686         which was required by legacy Bourne shells not supporting '!'.
687
688 2012-05-12  Bruno Haible  <bruno@clisp.org>
689
690         system-quote: Add more comments.
691         * lib/system-quote.h: Add more comments about wilcards and limitations.
692         Suggested by Eli Zaretskii <eliz@gnu.org>.
693
694         sh-quote, system-quote: Add comments about wildcards.
695         * lib/sh-quote.h: Clarify what happens with wildcard characters.
696         * lib/system-quote.h: Likewise.
697         Reported by Eli Zaretskii <eliz@gnu.org>.
698
699 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
700
701         fsusage: check for GNU/Linux statvfs problem dynamically
702         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
703         Define STAT_STATFS2_BSIZE too, since in this case the code now
704         checks dynamically whether statvfs is reliable, falling back on
705         Linux-style statfs otherwise.
706         (statvfs_works): New function, for dynamically testing statvfs.
707         (get_fs_usage) [STAT_STATVFS]: Use it.
708         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
709         statvfs on GNU/Linux hosts, since it's now done dynamically.
710
711 2012-05-10  Bruno Haible  <bruno@clisp.org>
712
713         system-quote, execute, spawn-pipe: Escape '?' on Windows.
714         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
715         '?' character.
716         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
717         * tests/test-system-quote-main.c (check_all): Check also strings like
718         "??????????".
719         Reported by Eli Zaretskii <eliz@gnu.org>.
720
721 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
722
723         _Noreturn: port config.h to gcc -Wundef
724         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
725         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
726         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
727
728 2012-05-10  Bruno Haible  <bruno@clisp.org>
729
730         system-quote: Refactor.
731         * lib/system-quote.h (system_quote_copy): Fix comment.
732         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
733         New functions, extracted from system_quote_copy.
734         (system_quote_length, system_quote_copy): Use these functions.
735         Reported by Paul Eggert.
736
737 2012-05-08  Bruno Haible  <bruno@clisp.org>
738
739         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
740         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
741
742 2012-05-08  Bruno Haible  <bruno@clisp.org>
743
744         Tests for module 'system-quote'.
745         * modules/system-quote-tests: New file.
746         * tests/test-system-quote.sh: New file.
747         * tests/test-system-quote-main.c: New file.
748         * tests/test-system-quote-child.c: New file.
749
750         New module 'system-quote'.
751         * lib/system-quote.h: New file.
752         * lib/system-quote.c: New file.
753         * modules/system-quote: New file.
754
755 2012-05-08  Bruno Haible  <bruno@clisp.org>
756
757         sh-quote: Make C++ safe and allow multiple inclusion.
758         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
759         declarations in extern "C".
760
761 2012-05-08  Bruno Haible  <bruno@clisp.org>
762
763         sh-quote tests: Make tests stricter.
764         * tests/test-sh-quote.c (check_one): Check the return value of
765         shell_quote_copy.
766         (main): Check a string with a CR character. Check a string that
767         contains UCHAR_MAX.
768
769 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
770
771         warnings.m4: provide a means to specify the program to compile.
772         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
773         (gl_WARN_ADD): here.
774         Use gl_AS_VAR_APPEND.
775         Support an argument to specify the program to compile.
776         (gl_WARN_ADD): Accept an argument to specify the program to compile.
777         AC_SUBST the WARN_CFLAGS when they are used.
778         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
779         leave this to gl_WARN_ADD.
780
781 2012-05-08  Eric Blake  <eblake@redhat.com>
782
783         doc: recommendations on gettext version
784         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
785         choice between versions.
786         * DEPENDENCIES (gettext): Cover both approaches.
787
788 2012-05-08  Jim Meyering  <meyering@redhat.com>
789
790         init.sh: explain why EXEEXT support uses aliases rather than functions
791         * tests/init.sh: Add a comment.
792
793         init.sh: don't let bash aliases interfere with tests
794         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
795         is bash.  This avoids problems for those who alias standard commands to
796         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
797         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
798
799 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
800
801         stdint: be more consistent with glibc, SunOS libc
802         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
803         (gl_int_fast16_t, gl_uint_fast16_t)
804         (gl_int_fast32_t, gl_uint_fast32_t)
805         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
806         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
807         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
808         Be consistent with glibc by default, and with SunOS 5.10 and later
809         if __sun is defined.  This lessens the likelihood of clashes if
810         code compiled for older hosts is combined with code compiled for
811         newer ones.  Problem reported by Niels Möller in
812         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
813
814 2012-05-07  Eric Blake  <eblake@redhat.com>
815
816         isatty: relax license to LGPLv2+
817         * modules/isatty (License): Relax license.
818
819 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
820
821         stat-size: comment fix
822         * lib/stat-size.h: Remove obsolete comment about indenting.
823
824 2012-05-06  Bruno Haible  <bruno@clisp.org>
825
826         Tests for module 'sh-quote'.
827         * modules/sh-quote-tests: New file.
828         * tests/test-sh-quote.c: New file.
829
830 2012-05-06  Bruno Haible  <bruno@clisp.org>
831
832         sh-quote: Improve shell_quote_argv's signature.
833         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
834         * lib/sh-quote.c (shell_quote_argv): Likewise.
835
836 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
837
838         stdint: document issues with int_fast8_t etc.
839         * doc/posix-headers/stdint.texi (stdint.h): Say that other
840         stdint.h substitutes may define these types differently.  See
841         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
842
843 2012-05-05  Bruno Haible  <bruno@clisp.org>
844
845         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
846         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
847         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
848         or 'guessing no (mishandles large arguments)'.
849
850 2012-05-05  Bruno Haible  <bruno@clisp.org>
851
852         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
853         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
854         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
855         set gl_cv_func_link_follows_symlink to "guessing no".
856
857 2012-05-05  Bruno Haible  <bruno@clisp.org>
858
859         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
860         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
861         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
862         "guessing no".
863         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
864
865 2012-05-05  Bruno Haible  <bruno@clisp.org>
866
867         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
868         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
869         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
870         set gl_cv_struct_dirent_d_ino to "guessing yes".
871
872 2012-05-05  Bruno Haible  <bruno@clisp.org>
873
874         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
875         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
876         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
877         "guessing yes".
878
879 2012-05-05  Bruno Haible  <bruno@clisp.org>
880
881         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
882         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
883         compiling to a glibc system, set gl_cv_func_signbit and
884         gl_cv_func_signbit_gcc to "guessing yes".
885
886 2012-05-05  Bruno Haible  <bruno@clisp.org>
887
888         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
889         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
890         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
891         to "guessing yes".
892         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
893         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
894
895 2012-05-05  Bruno Haible  <bruno@clisp.org>
896
897         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
898         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
899         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
900         gl_cv_func_realpath_works to "guessing yes".
901
902 2012-05-05  Bruno Haible  <bruno@clisp.org>
903
904         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
905         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
906         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
907
908 2012-05-04  Bruno Haible  <bruno@clisp.org>
909
910         Tweak last commit.
911         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
912         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
913
914 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
915
916         unistd_h: make it easier to avoid sys_types_h
917         This is useful for Emacs, which has its own method of porting to
918         Windows, and which therefore does not need the sys_types_h module.
919         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
920         code moved here from gl_SYS_TYPES_H.
921         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
922         using the code directly.
923         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
924         gl_SYS_TYPES_H.
925         * modules/sys_types (Files):
926         * modules/unistd (Files): Add m4/off_t.m4.
927
928 2012-05-03  Bruno Haible  <bruno@clisp.org>
929
930         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
931         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
932         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
933         "guessing yes" or "guessing no".
934         (gl_FUNC_LSTAT): Update.
935         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
936         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
937         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
938
939 2012-05-03  Bruno Haible  <bruno@clisp.org>
940
941         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
942         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
943         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
944         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
945         cross-compiling, choose the first alternative on glibc systems.
946         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
947
948 2012-05-03  Bruno Haible  <bruno@clisp.org>
949
950         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
951         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
952         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
953
954 2012-05-03  Bruno Haible  <bruno@clisp.org>
955
956         chown: Avoid "guessing no" when cross-compiling to glibc systems.
957         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
958
959 2012-05-03  Bruno Haible  <bruno@clisp.org>
960
961         Avoid "guessing no" guesses when cross-compiling to glibc systems.
962         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
963         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
964         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
965         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
966         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
967         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
968         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
969         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
970         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
971         compiling to glibc systems, set gl_cv_func_chown_slash_works,
972         gl_cv_func_chown_ctime_works to "guessing yes".
973         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
974         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
975         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
976         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
977         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
978         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
979         compiling to glibc systems, set gl_cv_func_open_directory_works to
980         "guessing yes".
981         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
982         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
983         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
984         "guessing yes".
985         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
986         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
987         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
988         compiling to glibc systems, set gl_cv_func_floorf_ieee to
989         "guessing yes".
990         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
991         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
992         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
993         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
994         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
995         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
996         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
997         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
998         "guessing yes".
999         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1000         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1001         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1002         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1003         "guessing yes".
1004         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1005         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1006         "guessing yes".
1007         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1008         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1009         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1010         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1011         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1012         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1013         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1014         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1015         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1016         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1017         "guessing yes".
1018         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1019         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1020         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1021         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1022         "guessing yes".
1023         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1024         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1025         "guessing yes".
1026         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1027         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1028         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1029         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1030         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1031         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1032         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1033         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1034         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1035         "guessing yes".
1036         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1037         compiling to glibc systems, set gl_cv_func_mknod_works to
1038         "guessing yes".
1039         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1040         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1041         "guessing yes".
1042         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1043         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1044         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1045         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1046         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1047         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1048         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1049         compiling to glibc systems, set gl_cv_func_svid_putenv to
1050         "guessing yes".
1051         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1052         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1053         "guessing yes".
1054         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1055         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1056         "guessing yes".
1057         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1058         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1059         to "guessing yes".
1060         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1061         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1062         to "guessing yes".
1063         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1064         compiling to glibc systems, set gl_cv_func_rmdir_works to
1065         "guessing yes".
1066         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1067         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1068         gl_cv_func_unlink_parent_fails to "guessing yes".
1069         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1070         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1071         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1072         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1073         gl_cv_func_rename_dest_works to "guessing yes".
1074         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1075         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1076         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1077         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1078         "guessing yes".
1079         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1080         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1081         "guessing yes".
1082         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1083         compiling to glibc systems, set gl_cv_func_setenv_works to
1084         "guessing yes".
1085         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1086         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1087         "guessing yes".
1088         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1089         compiling to glibc systems, set gl_cv_func_sleep_works to
1090         "guessing yes".
1091         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1092         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1093         "guessing yes".
1094         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1095         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1096         "guessing yes".
1097         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1098         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1099         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1100         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1101         "guessing yes".
1102         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1103         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1104         "guessing yes".
1105         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1106         compiling to glibc systems, set gl_cv_func_usleep_works to
1107         "guessing yes".
1108         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1109         compiling to glibc systems, set gl_cv_func_futimesat_works to
1110         "guessing yes".
1111
1112 2012-05-03  Bruno Haible  <bruno@clisp.org>
1113
1114         Say "guessing yes" or "guessing no" when cross-compiling.
1115         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1116         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1117         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1118         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1119         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1120         am_cv_func_working_getline to "guessing yes" or "guessing no".
1121         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1122         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1123         (gl_FUNC_MEMMEM): When cross-compiling, set
1124         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1125         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1126         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1127         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1128         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1129         "guessing no".
1130         (gl_FUNC_STRCASESTR): When cross-compiling, set
1131         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1132         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1133         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1134         (gl_FUNC_STRSTR): When cross-compiling, set
1135         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1136         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1137         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1138         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1139         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1140
1141 2012-05-01  Bruno Haible  <bruno@clisp.org>
1142
1143         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1144         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1145         * build-aux/reloc-ldflags: Likewise.
1146         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1147
1148 2012-05-01  Bruno Haible  <bruno@clisp.org>
1149
1150         gnulib-tool: Remove transitional code.
1151         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1152         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1153
1154 2012-05-01  Bruno Haible  <bruno@clisp.org>
1155
1156         getcwd: Fix misindentation.
1157         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1158
1159 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1160
1161         exclude: process exclude and include directives in order
1162         This restores the pre-2009 behavior, and is part of a fix of a
1163         grep bug reported by Quentin Arce in
1164         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1165         * lib/exclude.c (struct exclude): Remove 'tail' member.
1166         (new_exclude_segment): Prepend the new segment instead of appending.
1167         Return void, since that's now more convenient.
1168         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1169         (file_name_matches): Renamed from excluded_file_name_p.
1170         (file_pattern_matches, file_name_matches):
1171         Return true if the pattern matches, not if it excludes.
1172         All callers changed.
1173         (excluded_file_name): Process the list in reverse order;
1174         since the list is now reversed this restores the pre-2009 behavior.
1175         (add_exclude): Adjust to new reversed-order list.  Use local var
1176         rather than macro, for clarity.
1177         * tests/test-exclude7.sh: Adjust to corrected behavior.
1178
1179         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1180         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1181         it's not possible here.  Handle the case of \ at end of pattern
1182         without dumping core.
1183         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1184
1185         _Noreturn: future-proof non-GNU and non-MSVC compilers
1186         * build-aux/snippet/_Noreturn.h (_Noreturn):
1187         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1188         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1189         C11 or later.  This is more likely to work with random future C
1190         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1191         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1192
1193         exclude: handle wildcards with FNM_EXTMATCH
1194         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1195         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1196         comment that "has wildcards" really means "has or may have
1197         wildcards".  Simplify by avoiding the need to call strcspn.
1198
1199 2012-04-29  Bruno Haible  <bruno@clisp.org>
1200
1201         gnulib-tool: Fix list of authors.
1202         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1203
1204 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1205
1206         bootstrap: support Automake-NG in $buildreq
1207         * bootstrap (check_versions): Handle automake and aclocal from
1208         Automake-NG specially.  They can be specified as respectively
1209         the "automake-ng" and "aclocal-ng" requirements.
1210
1211 2012-04-25  Eric Blake  <eblake@redhat.com>
1212
1213         bootstrap: only force latest Makefile.in.in for gettext module
1214         * build-aux/bootstrap (with_gettext): Only install latest
1215         Makefile.in.in for projects requesting bleeding edge gettext.
1216
1217 2012-04-22  Bruno Haible  <bruno@clisp.org>
1218
1219         doc: Mention reason for replacement on glibc/Linux systems.
1220         * doc/posix-functions/dprintf.texi: Mention the problem with special
1221         'long double' values.
1222         * doc/posix-functions/fprintf.texi: Likewise.
1223         * doc/posix-functions/printf.texi: Likewise.
1224         * doc/posix-functions/snprintf.texi: Likewise.
1225         * doc/posix-functions/sprintf.texi: Likewise.
1226         * doc/posix-functions/vdprintf.texi: Likewise.
1227         * doc/posix-functions/vfprintf.texi: Likewise.
1228         * doc/posix-functions/vprintf.texi: Likewise.
1229         * doc/posix-functions/vsnprintf.texi: Likewise.
1230         * doc/posix-functions/vsprintf.texi: Likewise.
1231         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1232         platforms with F_DUPFD_CLOEXEC problems.
1233         * doc/posix-functions/glob.texi: Mention which platforms are affected
1234         by the problem with symbolic links.
1235         * doc/posix-functions/linkat.texi: Mention the problem with
1236         AT_SYMLINK_FOLLOW on Linux.
1237
1238 2012-04-22  Bruno Haible  <bruno@clisp.org>
1239
1240         pwrite: Don't replace on all platforms.
1241         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1242
1243 2012-04-22  Bruno Haible  <bruno@clisp.org>
1244
1245         rint* tests: Avoid gcc warnings.
1246         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1247         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1248         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1249
1250 2012-04-21  Bruno Haible  <bruno@clisp.org>
1251
1252         users.txt: Update.
1253         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1254         switched from CVS to git, bzr, or svn.
1255
1256 2012-04-21  Bruno Haible  <bruno@clisp.org>
1257
1258         Large File Support for native Windows platforms.
1259
1260         * m4/largefile.m4 (gl_LARGEFILE): New macro.
1261         * modules/largefile (configure.ac): Require gl_LARGEFILE.
1262
1263         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
1264         type.
1265         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1266         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1267         * doc/posix-headers/sys_types.texi: Mention the effect of the
1268         'largefile' module.
1269
1270         * lib/fcntl.in.h: Add comments about off_t.
1271         * modules/fcntl-h (Depends-on): Add sys_types.
1272
1273         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1274         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1275         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1276         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1277         * modules/unistd (Depends-on): Add sys_types.
1278         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1279
1280         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1281         instead of lseek.
1282         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1283         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1284         * modules/lseek (Depends-on): Add sys_types.
1285
1286         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1287         msvc-nothrow.h.
1288         (SetFileSize): New function.
1289         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1290         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1291         if Large File Support is requested.
1292         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1293         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1294
1295         * lib/stdio.in.h: Add comments about off_t.
1296         * modules/stdio (Depends-on): Add sys_types.
1297
1298         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1299         instead of ftello.
1300         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1301         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1302         (gl_PREREQ_FTELLO): New macro.
1303         * modules/ftello (Depends-on): Add sys_types.
1304         (configure.ac): Incoke gl_PREREQ_FTELLO.
1305
1306         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1307         instead of fseeko.
1308         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1309         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1310         (gl_PREREQ_FSEEKO): New macro.
1311         * modules/fseeko (Depends-on): Add sys_types.
1312         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1313
1314         * lib/sys_stat.in.h: Add comments about off_t.
1315         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1316         64-bit integer for st_size in 'struct stat'.
1317         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1318         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1319         * modules/sys_stat (Depends-on): Add sys_types.
1320         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1321
1322         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1323         instead of stat or _stat.
1324
1325         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1326         'struct _stati64' instead of fstat and 'struct stat'.
1327         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1328         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
1329
1330         Reported by Ray Satiro <raysatiro@yahoo.com>.
1331
1332 2012-04-19  Eric Blake  <eblake@redhat.com>
1333
1334         bootstrap: accommodate older libtool
1335         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
1336         Reported by Daniel P. Berrange.
1337
1338 2012-04-19  Jim Meyering  <meyering@redhat.com>
1339
1340         announce-gen: avoid failure due to lack of Digest::SHA1
1341         Even with the preferred Digest::SHA available, this script
1342         would fail when the backup module, Digest::SHA1, was not installed.
1343         * build-aux/announce-gen: Quote the conditional use of "use".
1344         Reported by Reuben Thomas in:
1345         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
1346
1347         bootstrap: don't let a user's CDPATH setting affect this script
1348         When CDPATH is set, cd will sometimes generate output.
1349         When "cd" is run in a subshell whose output matters, that
1350         surprising-to-some output can cause malfunction.
1351         Unsetting CDPATH turns off this shell "feature."
1352         * build-aux/bootstrap (CDPATH): Unset.
1353         Reported by Reuben Thomas in:
1354         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
1355         and inspired by his patch here:
1356         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
1357
1358 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
1359         and Jim Meyering  <meyering@redhat.com>
1360
1361         maint.mk: catch "see @xref{}" and similar
1362         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1363         prohibit "See also @xref{", "Also see @pxref{", and similar.
1364
1365 2012-04-16  Jim Meyering  <meyering@redhat.com>
1366
1367         bootstrap: really use gnulib's po/Makefile.in.in
1368         * build-aux/bootstrap: Correct the source file name in previous change.
1369         Reported by Akim Demaille.
1370
1371         configmake: correct minor inconsistency in Makefile rule
1372         * modules/configmake (Makefile.am): All other rules like this one
1373         run the final "mv -f ..." in the same backslash-continued command
1374         as the one that does everything else.  This one put the mv -f ...
1375         command on a separate, non-backslash-continued line.
1376         Make it like the others.
1377
1378         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
1379         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
1380         the one from gettext.  Reported by Akim Demaille.
1381
1382 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
1383
1384         Fix recursion of install-* into po directories.
1385         Bison's install-pdf bug reported by Hans Aberg at
1386         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1387         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1388         (install-info, install-pdf, install-ps): New targets.
1389
1390 2012-04-16  Jim Meyering  <meyering@redhat.com>
1391
1392         maint: avoid spurious "make sc_maint" failure
1393         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1394         exempt all *.class file names, for lib/javaversion.class.
1395
1396 2012-04-15  Bruno Haible  <bruno@clisp.org>
1397
1398         lseek: Make configure test independent of environment.
1399         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1400         Windows, we know that lseek() on pipes is broken; skip the runtime
1401         test.
1402
1403 2012-04-14  Bruno Haible  <bruno@clisp.org>
1404
1405         stat: Bypass buggy override in mingw64.
1406         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
1407         * lib/stat.c (stat) [mingw64]: Define to _stat.
1408         * doc/posix-functions/stat.texi: Mention mingw64 bug.
1409
1410 2012-04-14  Bruno Haible  <bruno@clisp.org>
1411
1412         pathmax: Fix compilation error on MSVC 9.
1413         * modules/pathmax (Depends-on): Add unistd.
1414
1415 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1416
1417         README: document pointer comparison assumption
1418         * README (Portability guidelines): Document assumption about
1419         pointer comparisons, in response to a recent bug-gnulib comment by
1420         Jeffrey Kegler.
1421
1422 2012-04-12  Bruno Haible  <bruno@clisp.org>
1423
1424         Tests for module 'getrusage'.
1425         * modules/getrusage-tests: New file.
1426         * tests/test-getrusage.c: New file.
1427
1428         New module 'getrusage'.
1429         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1430         warn-on-use.h.
1431         (getrusage): New declaration.
1432         * lib/getrusage.c: New file.
1433         * m4/getrusage.m4: New file.
1434         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1435         is declared.
1436         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
1437         HAVE_GETRUSAGE.
1438         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
1439         snippet/c++defs, snippet/warn-on-use.
1440         (Makefile.am): Update generation of sys/resource.h. Substitute
1441         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
1442         * modules/getrusage: New file.
1443         * doc/posix-functions/getrusage.texi: Mention the new module.
1444
1445 2012-04-12  Bruno Haible  <bruno@clisp.org>
1446
1447         Tests for module 'sys_resource'.
1448         * modules/sys_resource-tests: New file.
1449         * tests/test-sys_resource.c: New file.
1450
1451         New module 'sys_resource'.
1452         * lib/sys_resource.in.h: New file.
1453         * m4/sys_resource_h.m4: New file.
1454         * modules/sys_resource: New file.
1455         * doc/posix-headers/sys_resource.texi: Mention the new module.
1456
1457 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
1458
1459         ioctl: Fix compilation error on mingw.
1460         * lib/ioctl.c: Include <windows.h>.
1461         Also reported by Ray Satiro <raysatiro@yahoo.com>.
1462
1463 2012-04-04  Jim Meyering  <meyering@redhat.com>
1464
1465         regex: correct #pragma guard expression
1466         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
1467         not 4.3.  Correct its cpp guard expression.
1468
1469 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1470
1471         regex: remove unnecessary type punning
1472         Problem reported by Vladimir Serbinenko in
1473         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
1474         * lib/regex.h (struct re_pattern_buffer): Change the type of
1475         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
1476         Fix comment to match code.
1477         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
1478         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
1479         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
1480         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
1481         (set_regs):
1482         Omit no-longer-necessary casts.
1483
1484 2012-04-03  Bruno Haible  <bruno@clisp.org>
1485
1486         Tests for module 'ilogbl'.
1487         * modules/ilogbl-tests: New file.
1488         * tests/test-ilogbl.c: New file.
1489
1490         New module 'ilogbl'.
1491         * lib/math.in.h (ilogbl): New declaration.
1492         * lib/ilogbl.c: New file.
1493         * m4/ilogbl.m4: New file.
1494         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1496         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1497         Split sed invocation, to avoid the limit of 100 substitutions of
1498         HP-UX 'sed'.
1499         * modules/ilogbl: New file.
1500         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1501         * doc/posix-functions/ilogbl.texi: Mention the new module.
1502
1503 2012-04-03  Bruno Haible  <bruno@clisp.org>
1504
1505         Tests for module 'ilogbf'.
1506         * modules/ilogbf-tests: New file.
1507         * tests/test-ilogbf.c: New file.
1508
1509         New module 'ilogbf'.
1510         * lib/math.in.h (ilogbf): New declaration.
1511         * lib/ilogbf.c: New file.
1512         * m4/ilogbf.m4: New file.
1513         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1514         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1515         REPLACE_ILOGBF.
1516         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1517         REPLACE_ILOGBF.
1518         * modules/ilogbf: New file.
1519         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1520         * doc/posix-functions/ilogbf.texi: Mention the new module.
1521
1522 2012-04-03  Bruno Haible  <bruno@clisp.org>
1523
1524         Tests for module 'ilogb'.
1525         * modules/ilogb-tests: New file.
1526         * tests/test-ilogb.c: New file.
1527         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1528         tests/test-logb-ieee.h.
1529
1530         New module 'ilogb'.
1531         * lib/math.in.h (ilogb): New declaration.
1532         * lib/ilogb.c: New file.
1533         * m4/ilogb.m4: New file.
1534         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1536         REPLACE_ILOGB.
1537         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1538         REPLACE_ILOGB.
1539         * modules/ilogb: New file.
1540         * tests/test-math-c++.cc: Check the declaration of ilogb.
1541         * doc/posix-functions/ilogb.texi: Mention the new module.
1542
1543 2012-04-03  Bruno Haible  <bruno@clisp.org>
1544
1545         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1546         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1547         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1548         (main): Check their values.
1549         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1550         problem.
1551
1552 2012-04-03  Bruno Haible  <bruno@clisp.org>
1553
1554         Tests for module 'logbl-ieee'.
1555         * modules/logbl-ieee-tests: New file.
1556         * tests/test-logbl-ieee.c: New file.
1557
1558         New module 'logbl-ieee'.
1559         * modules/logbl-ieee: New file.
1560
1561         Tests for module 'logb-ieee'.
1562         * modules/logb-ieee-tests: New file.
1563         * tests/test-logb-ieee.c: New file.
1564
1565         New module 'logb-ieee'.
1566         * modules/logb-ieee: New file.
1567
1568         Tests for module 'logbf-ieee'.
1569         * modules/logbf-ieee-tests: New file.
1570         * tests/test-logbf-ieee.c: New file.
1571         * tests/test-logb-ieee.h: New file.
1572
1573         New module 'logbf-ieee'.
1574         * modules/logbf-ieee: New file.
1575
1576 2012-04-03  Bruno Haible  <bruno@clisp.org>
1577
1578         Tests for module 'logbl'.
1579         * modules/logbl-tests: New file.
1580         * tests/test-logbl.c: New file.
1581
1582         New module 'logbl'.
1583         * lib/math.in.h (logbl): New declaration.
1584         * lib/logbl.c: New file.
1585         * m4/logbl.m4: New file.
1586         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1588         REPLACE_LOGBL.
1589         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1590         REPLACE_LOGBL.
1591         * modules/logbl: New file.
1592         * tests/test-math-c++.cc: Check the declaration of logbl.
1593         * doc/posix-functions/logbl.texi: Mention the new module.
1594
1595 2012-04-02  Bruno Haible  <bruno@clisp.org>
1596
1597         Tests for module 'logbf'.
1598         * modules/logbf-tests: New file.
1599         * tests/test-logbf.c: New file.
1600
1601         New module 'logbf'.
1602         * lib/math.in.h (logbf): New declaration.
1603         * lib/logbf.c: New file.
1604         * m4/logbf.m4: New file.
1605         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1606         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1607         REPLACE_LOGBF.
1608         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1609         REPLACE_LOGBF.
1610         * modules/logbf: New file.
1611         * tests/test-math-c++.cc: Check the declaration of logbf.
1612         * doc/posix-functions/logbf.texi: Mention the new module.
1613
1614 2012-04-02  Bruno Haible  <bruno@clisp.org>
1615
1616         logb tests: More tests.
1617         * tests/test-logb.h: New file, based on tests/test-logb.c and
1618         tests/test-frexp.h.
1619         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1620         (main): Just invoke test_function.
1621         * modules/logb-tests (Files): Add tests/test-logb.h,
1622         tests/minus-zero.h, tests/randomd.c.
1623         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1624
1625         logb: Provide replacement and workarounds.
1626         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1627         is 1.
1628         * lib/logb.c: New file.
1629         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1630         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1631         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1632         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1633         * modules/logb (Files): Add lib/logb.c.
1634         (Depends-on): Add isfinite, frexp, isnand.
1635         (configure.ac): Compile the replacement code logb.c if needed.
1636         * tests/test-math-c++.cc: Check the declaration of logb.
1637         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1638         with subnormal numbers.
1639
1640 2012-04-02  Bruno Haible  <bruno@clisp.org>
1641
1642         log10* tests: Speed up.
1643         * tests/test-log10.h (test_function): Reduce amount of random numbers
1644         to test.
1645
1646 2012-04-01  Bruno Haible  <bruno@clisp.org>
1647
1648         logf-ieee: Fix test whether logf works.
1649         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1650
1651 2012-04-01  Bruno Haible  <bruno@clisp.org>
1652
1653         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1654         * lib/log10l.c: Include <float.h>
1655         (log10l): On IRIX, normalize the +Infinity value.
1656         * modules/log10l (Depends-on): Add 'float'.
1657         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1658         +Infinity.
1659
1660         log10f-ieee: Work around test failure on NetBSD 5.1.
1661         * m4/log10f-ieee.m4: New file.
1662         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1663         test whether log10f works with a negative argument. Replace it if not.
1664         * lib/log10f.c (log10f): For negative arguments, return NaN.
1665         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1666         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1667         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1668
1669         log10f-ieee: Work around test failure on Solaris 9.
1670         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1671         (configure.ac): Require gl_FUNC_LOG10F.
1672
1673         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1674         * m4/log10-ieee.m4: New file.
1675         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1676         whether log10 works with a negative argument. Replace it if not.
1677         * lib/log10.c (log10): For negative arguments, return NaN.
1678         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1679         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1680         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1681
1682         Tests for module 'log10l-ieee'.
1683         * modules/log10l-ieee-tests: New file.
1684         * tests/test-log10l-ieee.c: New file.
1685
1686         New module 'log10l-ieee'.
1687         * modules/log10l-ieee: New file.
1688
1689         Tests for module 'log10-ieee'.
1690         * modules/log10-ieee-tests: New file.
1691         * tests/test-log10-ieee.c: New file.
1692
1693         New module 'log10-ieee'.
1694         * modules/log10-ieee: New file.
1695
1696         Tests for module 'log10f-ieee'.
1697         * modules/log10f-ieee-tests: New file.
1698         * tests/test-log10f-ieee.c: New file.
1699         * tests/test-log10-ieee.h: New file.
1700
1701         New module 'log10f-ieee'.
1702         * modules/log10f-ieee: New file.
1703
1704 2012-04-01  Bruno Haible  <bruno@clisp.org>
1705
1706         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1707         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1708         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1709         workaround.
1710         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1711         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1713         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1714         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1715         (Depends-on): Update conditions.
1716         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1717         IRIX 6.5, OSF/1 5.1 problems.
1718
1719 2012-04-01  Bruno Haible  <bruno@clisp.org>
1720
1721         log10f: Work around OSF/1 5.1 bug.
1722         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1723         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1724         workaround.
1725         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1726         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1727         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1728         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1729         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1730         (Depends-on): Update conditions.
1731         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1732
1733 2012-04-01  Bruno Haible  <bruno@clisp.org>
1734
1735         log10: Work around OSF/1 5.1 bug.
1736         * lib/math.in.h (log10): New declaration.
1737         * lib/log10.c: New file.
1738         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1739         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1740         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1742         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1743         * modules/log10 (Files): Add lib/log10.c.
1744         (Depends-on): Add math.
1745         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1746         * tests/test-math-c++.cc: Check the declaration of log10.
1747         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1748
1749 2012-03-31  Bruno Haible  <bruno@clisp.org>
1750
1751         log10l tests: More tests.
1752         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1753         tests/minus-zero.h, tests/randoml.c.
1754         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1755         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1756         (main): Invoke test_function.
1757
1758         log10f tests: More tests.
1759         * modules/log10f-tests (Files): Add tests/test-log10.h,
1760         tests/minus-zero.h, tests/randomf.c.
1761         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1762         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1763         (main): Invoke test_function.
1764
1765         log10 tests: More tests.
1766         * tests/test-log10.h: New file.
1767         * modules/log10-tests (Files): Add tests/test-log10.h,
1768         tests/minus-zero.h, tests/randomd.c.
1769         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1770         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1771         (main): Invoke test_function.
1772
1773 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1774
1775         fflush: Fix syntax error.
1776         * lib/fflush.c: Include unused-parameter.h, needed for
1777         _GL_UNUSED_PARAMETER.
1778         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1779
1780 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1781
1782         regex: pacify GCC when compiling GRUB
1783         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1784         a diagnostic.  Reported by Vladimir Serbinenko in
1785         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1786
1787 2012-03-29  Eric Blake  <eblake@redhat.com>
1788
1789         stdio: don't assume gets any more
1790         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1791         support.
1792         * modules/stdio (Makefile.am): Likewise.
1793         * lib/stdio-read.c (gets): Likewise.
1794         * tests/test-stdio-c++.cc: Likewise.
1795         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1796         * lib/stdio.in.h (gets): Make warning occur in more places.
1797         * doc/posix-functions/gets.texi (gets): Update documentation.
1798         Reported by Christer Solskogen.
1799
1800         maint.mk: fix syntax checks without exclusions
1801         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1802         Reported by Daniel P. Berrange.
1803
1804         strerror_r: avoid compiler warning
1805         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1806         level.
1807
1808         fflush: avoid compiler warning
1809         * lib/fflush.c (update_fpos_cache): Mark variables that are
1810         potentially unused.
1811
1812 2012-03-25  Bruno Haible  <bruno@clisp.org>
1813
1814         Tests for module 'localeconv'.
1815         * modules/localeconv-tests: New file.
1816         * tests/test-localeconv.c: New file.
1817
1818         New module 'localeconv'.
1819         * lib/locale.in.h (localeconv): New declaration.
1820         * lib/localeconv.c: New file.
1821         * m4/localeconv.m4: New file.
1822         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1823         REPLACE_LOCALECONV.
1824         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1825         REPLACE_LOCALECONV.
1826         * modules/localeconv: New file.
1827         * modules/nl_langinfo (Depends-on): Add localeconv.
1828         * modules/human (Depends-on): Likewise.
1829         * doc/posix-functions/localeconv.texi: Mention the new module.
1830
1831 2012-03-25  Bruno Haible  <bruno@clisp.org>
1832
1833         locale: Provide a complete 'struct lconv'.
1834         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1835         'struct lconv' does not contain int_p_cs_precedes.
1836         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1837         * doc/posix-headers/locale.texi: Update.
1838
1839         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1840         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1841         * doc/posix-headers/locale.texi: Update.
1842
1843         locale: Provide a working 'struct lconv'.
1844         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1845         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1846         'struct lconv' does not even contain decimal_point.
1847         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1848         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1849         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1850         * doc/posix-headers/locale.texi: Mention the problems with
1851         'struct lconv'.
1852         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1853
1854 2012-03-24  Bruno Haible  <bruno@clisp.org>
1855
1856         Enable common subexpression optimization in GCC.
1857         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1858         macros.
1859         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1860         GCC attribute 'const'.
1861         (uc_locale_language): Declare with GCC attribute 'pure'.
1862         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1863         with GCC attribute 'const'.
1864         * lib/unictype.in.h (uc_is_general_category_withtable,
1865         uc_combining_class, uc_combining_class_name,
1866         uc_combining_class_long_name, uc_bidi_class_name,
1867         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1868         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1869         uc_decimal_value, uc_digit_value, uc_numeric_value,
1870         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1871         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1872         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1873         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1874         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1875         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1876         Declare with GCC attribute 'const'.
1877         (uc_general_category_name, uc_general_category_long_name,
1878         uc_general_category_byname, uc_general_category,
1879         uc_is_general_category, uc_combining_class_byname,
1880         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1881         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1882         Declare with GCC attribute 'pure'.
1883         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1884         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1885         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1886         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1887         with GCC attribute 'pure'.
1888         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1889         'const'.
1890         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1891         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1892         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1893         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1894         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1895         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1896         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1897         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1898         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1899         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1900         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1901         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1902         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1903         GCC attribute 'pure'.
1904         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1905         'const'.
1906         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1907         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1908         u32_strwidth): Declare with GCC attribute 'pure'.
1909
1910         Enable common subexpression optimization in GCC.
1911         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1912         (alphasort): Declare with GCC attribute 'pure'.
1913         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1914         (atoll): Declare with GCC attribute 'pure'.
1915         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1916         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1917         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1918         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1919         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1920         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1921         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1922
1923 2012-03-24  Bruno Haible  <bruno@clisp.org>
1924
1925         gnulib-tool: Avoid unintended error output from 'cmp'.
1926         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1927         "cmp -s", not "cmp > /dev/null".
1928
1929 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1930
1931         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1932
1933         It's not just Automake versions < 1.9b that creates an empty
1934         pkgdatadir at installation time if pkgdata_DATA is specified
1935         to empty; modern automake versions do this as well, at least
1936         until automake 1.11.4 (not yet released at the moment of writing,
1937         but soon to appear).  That behaviour was generally considered a
1938         feature rather than a bug, at least until this discussion:
1939         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1940
1941         See also automake bugs #10997 and #11030.
1942
1943         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1944         reference to relevant automake bug numbers.
1945         (func_emit_tests_Makefile_am): Likewise.
1946
1947 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1948
1949         announce-gen: use Digest::SHA when possible
1950         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1951         back to Digest::SHA1 if necessary.
1952
1953 2012-03-20  Jim Meyering  <meyering@redhat.com>
1954
1955         tests: avoid gcc warnings about argv vs. const initializers
1956         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1957         warnings about discarding 'const' qualifier from pointer target type.
1958         * tests/test-posix_spawn2.c (main): Likewise.
1959
1960 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1961
1962         README-release: simplify slightly
1963         * top/README-release: Run "git checkout master" only once.
1964
1965 2012-03-15  Mark Wielaard  <mark@klomp.org>
1966
1967         git-merge-changelog: add specific example on how to use with hg.
1968         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1969
1970 2012-03-18  Mark Wielaard  <mark@klomp.org>
1971
1972         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1973
1974 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1975
1976         git-version-gen: don't let "prefix" envvar cause trouble
1977         * build-aux/git-version-gen (prefix): Initialize properly,
1978         so as not to use a value specified via the environment.
1979         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1980
1981 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1982
1983         regex: diagnose too-large repeat counts in EREs
1984         Previously, the code did not diagnose the too-large repeat count
1985         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1986         as if it were 'b\{1000000000}', which is unexpected.
1987         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1988         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1989         is a reasonable one for this problem.  Another option would be to
1990         create a new REG_OVERFLOW error for repeat counts that are too large.
1991         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1992         count is too large, so that the caller can distinguish the two cases.
1993         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1994         "Too large" return code, and that repeat counts are one example of this.
1995
1996 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1997
1998         doc: some glibc x32 integer width issues
1999         * doc/posix-headers/sys_types.texi (sys/types.h):
2000         * doc/posix-headers/time.texi (time.h):
2001         Mention that glibc x32 does not conform to POSIX in a couple of
2002         areas related to integer widths.
2003
2004 2012-03-15  Bruno Haible  <bruno@clisp.org>
2005
2006         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2007         * lib/fma.c (VOLATILE): New macro.
2008         (FUNC): Use it to work around a GCC compiler bug.
2009
2010 2012-03-13  Bruno Haible  <bruno@clisp.org>
2011
2012         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2013         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2014         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2015         REPLACE_HYPOTL to 1.
2016         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2017
2018 2012-03-13  Bruno Haible  <bruno@clisp.org>
2019
2020         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2021         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2022         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2023         REPLACE_REMAINDERL to 1.
2024         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2025         bug.
2026
2027 2012-03-13  Bruno Haible  <bruno@clisp.org>
2028
2029         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2030         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2031         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2032         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2033         too big rounding errors.
2034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2035         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2036         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2037         (Depends-on): Update conditions.
2038         * tests/test-sqrtl.c (my_ldexpl): New function.
2039         (main): Add test of a particular value.
2040         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2041
2042 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2043
2044         doc: Update timer_* platform portability notes.
2045         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2046         that always return ENOSYS.
2047         * doc/posix-functions/timer_delete.texi: Likewise.
2048         * doc/posix-functions/timer_gettime.texi: Likewise.
2049         * doc/posix-functions/timer_settime.texi: Likewise.
2050
2051 2012-03-13  Bruno Haible  <bruno@clisp.org>
2052
2053         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2054         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2055         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2056         REPLACE_CBRTL to 1.
2057         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2058
2059 2012-03-13  Bruno Haible  <bruno@clisp.org>
2060
2061         remainderl: Avoid compilation error on AIX >= 5.2.
2062         * lib/math.in.h (remainderl): Undefine macro from the system header.
2063
2064 2012-03-13  Bruno Haible  <bruno@clisp.org>
2065
2066         Avoid compilation errors with MSVC option -fp:strict.
2067         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2068         * lib/cbrtf.c: Likewise.
2069         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2070
2071 2012-03-12  Bruno Haible  <bruno@clisp.org>
2072
2073         uninorm: Don't crash in out-of-memory conditions.
2074         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2075         gracefully.
2076         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2077         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2078
2079 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2080
2081         quote: fix syntax-check
2082         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2083         also exports quote_quoting_options.
2084
2085 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2086
2087         Collapse list of copyright years to ranges.  See
2088         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2089         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2090         build-aux/csharpexec.sh.in, build-aux/gnupload,
2091         build-aux/install-reloc, build-aux/javacomp.sh.in,
2092         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2093         build-aux/move-if-change, build-aux/reloc-ldflags,
2094         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2095
2096 2012-03-11  Bruno Haible  <bruno@clisp.org>
2097
2098         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2099         * m4/log2f-ieee.m4: New file.
2100         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2101         whether log2f works with a minus zero argument. Replace it if not.
2102         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2103         (Depends-on): Add log2-ieee.
2104         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2105         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2106
2107         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2108         * m4/log2-ieee.m4: New file.
2109         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2110         whether log2 works with a minus zero argument. Replace it if not.
2111         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2112         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2113         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2114
2115         Tests for module 'log2l-ieee'.
2116         * modules/log2l-ieee-tests: New file.
2117         * tests/test-log2l-ieee.c: New file.
2118
2119         New module 'log2l-ieee'.
2120         * modules/log2l-ieee: New file.
2121
2122         Tests for module 'log2-ieee'.
2123         * modules/log2-ieee-tests: New file.
2124         * tests/test-log2-ieee.c: New file.
2125
2126         New module 'log2-ieee'.
2127         * modules/log2-ieee: New file.
2128
2129         Tests for module 'log2f-ieee'.
2130         * modules/log2f-ieee-tests: New file.
2131         * tests/test-log2f-ieee.c: New file.
2132         * tests/test-log2-ieee.h: New file.
2133
2134         New module 'log2f-ieee'.
2135         * modules/log2f-ieee: New file.
2136
2137 2012-03-11  Bruno Haible  <bruno@clisp.org>
2138
2139         Tests for module 'log2l'.
2140         * modules/log2l-tests: New file.
2141         * tests/test-log2l.c: New file.
2142
2143         New module 'log2l'.
2144         * lib/math.in.h (log2l): New declaration.
2145         * lib/log2l.c: New file.
2146         * m4/log2l.m4: New file.
2147         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2148         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2149         REPLACE_LOG2L.
2150         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2151         REPLACE_LOG2L.
2152         * modules/log2l: New file.
2153         * tests/test-math-c++.cc: Check the declaration of log2l.
2154         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2155         and OSF/1 problems.
2156
2157 2012-03-11  Bruno Haible  <bruno@clisp.org>
2158
2159         Tests for module 'log2f'.
2160         * modules/log2f-tests: New file.
2161         * tests/test-log2f.c: New file.
2162
2163         New module 'log2f'.
2164         * lib/math.in.h (log2f): New declaration.
2165         * lib/log2f.c: New file.
2166         * m4/log2f.m4: New file.
2167         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2169         REPLACE_LOG2F.
2170         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2171         REPLACE_LOG2F.
2172         * modules/log2f: New file.
2173         * tests/test-math-c++.cc: Check the declaration of log2f.
2174         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2175         and OSF/1 and Cygwin problems.
2176
2177 2012-03-11  Bruno Haible  <bruno@clisp.org>
2178
2179         Tests for module 'log2'.
2180         * modules/log2-tests: New file.
2181         * tests/test-log2.c: New file.
2182         * tests/test-log2.h: New file.
2183
2184         New module 'log2'.
2185         * lib/math.in.h (log2): New declaration.
2186         * lib/log2.c: New file.
2187         * m4/log2.m4: New file.
2188         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2190         REPLACE_LOG2.
2191         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2192         REPLACE_LOG2.
2193         * modules/log2: New file.
2194         * tests/test-math-c++.cc: Check the declaration of log2.
2195         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2196         and OSF/1 and Cygwin problems.
2197
2198 2012-03-11  Bruno Haible  <bruno@clisp.org>
2199
2200         exp2* tests: More tests.
2201         * tests/test-exp2.h (test_function): Test all integral arguments that
2202         don't need to overflow or denormalized numbers.
2203         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2204         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2205         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2206
2207 2012-03-10  Bruno Haible  <bruno@clisp.org>
2208
2209         log1pl-ieee: Work around test failure on AIX 7.1.
2210         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2211
2212         log1pl-ieee: Work around test failure on IRIX 6.5.
2213         * m4/log1pl-ieee.m4: New file.
2214         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2215         test whether log1pl works with a minus zero argument. Replace it if
2216         not.
2217         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2219         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2220         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2221         (Depends-on): Update conditions.
2222         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2223         m4/signbit.m4.
2224         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2225         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2226
2227         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2228         * m4/log1pf-ieee.m4: New file.
2229         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2230         test whether log1pf works with a minus zero argument. Replace it if
2231         not.
2232         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2233         m4/signbit.m4.
2234         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2235         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2236
2237         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2238         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2239         (configure.ac): Require gl_FUNC_LOG1PF.
2240
2241         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2242         * m4/log1p-ieee.m4: New file.
2243         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2244         whether log1p works with a minus zero argument. Replace it if not.
2245         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2247         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2248         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2249         (Depends-on): Update conditions.
2250         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2251         m4/signbit.m4.
2252         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2253         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2254
2255         Tests for module 'log1pl-ieee'.
2256         * modules/log1pl-ieee-tests: New file.
2257         * tests/test-log1pl-ieee.c: New file.
2258
2259         New module 'log1pl-ieee'.
2260         * modules/log1pl-ieee: New file.
2261
2262         Tests for module 'log1p-ieee'.
2263         * modules/log1p-ieee-tests: New file.
2264         * tests/test-log1p-ieee.c: New file.
2265
2266         New module 'log1p-ieee'.
2267         * modules/log1p-ieee: New file.
2268
2269         Tests for module 'log1pf-ieee'.
2270         * modules/log1pf-ieee-tests: New file.
2271         * tests/test-log1pf-ieee.c: New file.
2272         * tests/test-log1p-ieee.h: New file.
2273
2274         New module 'log1pf-ieee'.
2275         * modules/log1pf-ieee: New file.
2276
2277 2012-03-10  Bruno Haible  <bruno@clisp.org>
2278
2279         Tests for module 'log1pl'.
2280         * modules/log1pl-tests: New file.
2281         * tests/test-log1pl.c: New file.
2282
2283         New module 'log1pl'.
2284         * lib/math.in.h (log1pl): New declaration.
2285         * lib/log1pl.c: New file.
2286         * m4/log1pl.m4: New file.
2287         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2288         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2289         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2290         * modules/log1pl: New file.
2291         * tests/test-math-c++.cc: Check the declaration of log1pl.
2292         * doc/posix-functions/log1pl.texi: Mention the new module.
2293
2294 2012-03-10  Bruno Haible  <bruno@clisp.org>
2295
2296         Tests for module 'log1pf'.
2297         * modules/log1pf-tests: New file.
2298         * tests/test-log1pf.c: New file.
2299
2300         New module 'log1pf'.
2301         * lib/math.in.h (log1pf): New declaration.
2302         * lib/log1pf.c: New file.
2303         * m4/log1pf.m4: New file.
2304         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2305         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2306         REPLACE_LOG1PF.
2307         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2308         REPLACE_LOG1PF.
2309         * modules/log1pf: New file.
2310         * tests/test-math-c++.cc: Check the declaration of log1pf.
2311         * doc/posix-functions/log1pf.texi: Mention the new module.
2312
2313 2012-03-10  Bruno Haible  <bruno@clisp.org>
2314
2315         log1p tests: More tests.
2316         * tests/test-log1p.h: New file.
2317         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2318         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2319         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2320         (main): Invoke test_function.
2321
2322         log1p: Provide replacement for Minix and MSVC.
2323         * lib/math.in.h (log1p): New declaration.
2324         * lib/log1p.c: New file.
2325         * m4/log1p.m4: New file.
2326         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2327         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2328         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
2329         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
2330         (Depends-on): Add math, isnand, log, round.
2331         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
2332         HAVE_LOG1P is 0.
2333         * tests/test-math-c++.cc: Check the declaration of log1p.
2334         * doc/posix-functions/log1p.texi: Mention the replacement.
2335
2336 2012-03-10  Bruno Haible  <bruno@clisp.org>
2337
2338         math tests: Small simplification.
2339         * tests/test-exp.h (test_function): Use the same err_bound for
2340         'double' on platforms with sizeof (long double) == sizeof (double)
2341         than on platforms with sizeof (long double) > sizeof (double).
2342         * tests/test-exp2.h (test_function): Likewise.
2343         * tests/test-expm1.h (test_function): Likewise.
2344         * tests/test-log.h (test_function): Likewise.
2345
2346 2012-03-10  Bruno Haible  <bruno@clisp.org>
2347
2348         Fix some comments.
2349         * lib/expl.c: Fix an ambiguous comment.
2350         * lib/expm1.c: Likewise.
2351         * lib/expm1l.c: Likewise.
2352         * lib/exp2.c: Likewise.
2353         * lib/exp2l.c: Likewise.
2354
2355 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2356
2357         regex: allow inclusion of <regex.h> before <limits.h>
2358         Without this patch, portable programs had to include <limits.h> before
2359         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
2360         I ran into this problem with a test version of GNU grep on Solaris 8.
2361         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
2362         This is done conditionally so that this change can be merged
2363         back to glibc.
2364         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
2365         using the included regex.
2366
2367         fts: depend on fdopendir
2368         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
2369         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
2370         problem was introduced when fdopendir was split out.
2371
2372 2012-03-10  Bruno Haible  <bruno@clisp.org>
2373
2374         Remove unused variables.
2375         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
2376         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2377
2378 2012-03-10  Bruno Haible  <bruno@clisp.org>
2379
2380         isnanf-nolibm: Fix last commit.
2381         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
2382
2383         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
2384         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
2385
2386 2012-03-10  Bruno Haible  <bruno@clisp.org>
2387
2388         logf-ieee: Work around test failure on NetBSD 5.1.
2389         * m4/logf-ieee.m4: New file.
2390         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2391         whether logf works with a negative argument. Replace it if not.
2392         * lib/logf.c (logf): For negative arguments, return NaN.
2393         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2394         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2395         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2396
2397         logf-ieee: Work around test failure on Solaris 9.
2398         * modules/logf-ieee (Depends-on): Add log-ieee.
2399         (configure.ac): Require gl_FUNC_LOGF.
2400
2401         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2402         * m4/log-ieee.m4: New file.
2403         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2404         log works with a negative argument. Replace it if not.
2405         * lib/log.c (log): For negative arguments, return NaN.
2406         * modules/log-ieee (Files): Add m4/log-ieee.m4.
2407         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
2408         * doc/posix-functions/log.texi: Mention the log-ieee module.
2409
2410         Tests for module 'logl-ieee'.
2411         * modules/logl-ieee-tests: New file.
2412         * tests/test-logl-ieee.c: New file.
2413
2414         New module 'logl-ieee'.
2415         * modules/logl-ieee: New file.
2416
2417         Tests for module 'log-ieee'.
2418         * modules/log-ieee-tests: New file.
2419         * tests/test-log-ieee.c: New file.
2420
2421         New module 'log-ieee'.
2422         * modules/log-ieee: New file.
2423
2424         Tests for module 'logf-ieee'.
2425         * modules/logf-ieee-tests: New file.
2426         * tests/test-logf-ieee.c: New file.
2427         * tests/test-log-ieee.h: New file.
2428
2429         New module 'logf-ieee'.
2430         * modules/logf-ieee: New file.
2431
2432 2012-03-10  Bruno Haible  <bruno@clisp.org>
2433
2434         log: Fix bug introduced on 2012-03-09.
2435         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2436
2437 2012-03-10  Pádraig Brady  <P@draigBrady.com>
2438
2439         timer-time: link explicitly with pthreads on glibc
2440         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2441         to support static linking, when newer glibc is
2442         detected, as that contains pthread emulation of
2443         POSIX timer functions where required.
2444         * modules/timer-time: Depend on threadlib to
2445         pull in the appropriate library to link.
2446
2447 2012-03-10  Bruno Haible  <bruno@clisp.org>
2448
2449         log* tests: More tests.
2450         * tests/test-log.h: New file.
2451         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
2452         (main): Invoke test_function.
2453         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
2454         (main): Invoke test_function.
2455         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
2456         (main): Invoke test_function.
2457         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2458         tests/randomd.c.
2459         (Makefile.am): Add randomd.c to test_log_SOURCES.
2460         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2461         tests/randomf.c.
2462         (Makefile.am): Add randomf.c to test_logf_SOURCES.
2463         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2464         tests/randoml.c.
2465         (Depends-on): Add 'float'.
2466         (Makefile.am): Add randoml.c to test_logl_SOURCES.
2467
2468 2012-03-09  Bruno Haible  <bruno@clisp.org>
2469
2470         logl: Work around OSF/1 5.1 bug.
2471         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
2472         * lib/logl.c (logl): If logl exists, use it and provide just the
2473         workaround.
2474         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
2475         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
2476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
2477         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
2478         * modules/logl (configure.ac): Consider REPLACE_LOGL.
2479         (Depends-on): Update conditions.
2480         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
2481
2482 2012-03-09  Bruno Haible  <bruno@clisp.org>
2483
2484         logf: Work around OSF/1 5.1 bug.
2485         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2486         * lib/logf.c (logf): If logf exists, use it and provide just the
2487         workaround.
2488         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2489         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2490         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2491         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2492         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2493         (Depends-on): Update conditions.
2494         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2495
2496 2012-03-09  Bruno Haible  <bruno@clisp.org>
2497
2498         log: Work around OSF/1 5.1 bug.
2499         * lib/math.in.h (log): New declaration.
2500         * lib/log.c: New file.
2501         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2502         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2503         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2504         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2505         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2506         * modules/log (Files): Add lib/log.c.
2507         (Depends-on): Add math.
2508         (configure.ac): If REPLACE_LOG is 1, compile an override.
2509         * tests/test-math-c++.cc: Check the declaration of log.
2510         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2511
2512 2012-03-09  Jim Meyering  <meyering@redhat.com>
2513
2514         readtokens.c: adjust wording in a comment
2515         * lib/readtokens.c: Insert omitted "that" in a comment.
2516
2517 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2518
2519         modechange: add notations +40, 00440, etc.
2520         * lib/modechange.c (mode_compile): Support new notations
2521         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2522
2523 2012-03-08  Bruno Haible  <bruno@clisp.org>
2524
2525         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2526         * m4/exp2l-ieee.m4: New file.
2527         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2528         test whether exp2l works with a NaN argument and with a negative
2529         infinity argument. Replace it if not.
2530         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2532         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2533         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2534         (Depends-on): Update conditions.
2535         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2536         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2537         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2538
2539         Tests for module 'exp2l-ieee'.
2540         * modules/exp2l-ieee-tests: New file.
2541         * tests/test-exp2l-ieee.c: New file.
2542
2543         New module 'exp2l-ieee'.
2544         * modules/exp2l-ieee: New file.
2545
2546         Tests for module 'exp2-ieee'.
2547         * modules/exp2-ieee-tests: New file.
2548         * tests/test-exp2-ieee.c: New file.
2549
2550         New module 'exp2-ieee'.
2551         * modules/exp2-ieee: New file.
2552
2553         Tests for module 'exp2f-ieee'.
2554         * modules/exp2f-ieee-tests: New file.
2555         * tests/test-exp2f-ieee.c: New file.
2556         * tests/test-exp2-ieee.h: New file.
2557
2558         New module 'exp2f-ieee'.
2559         * modules/exp2f-ieee: New file.
2560
2561 2012-03-08  Bruno Haible  <bruno@clisp.org>
2562
2563         Tests for module 'exp2l'.
2564         * modules/exp2l-tests: New file.
2565         * tests/test-exp2l.c: New file.
2566
2567         New module 'exp2l'.
2568         * lib/math.in.h (exp2l): New declaration.
2569         * lib/exp2l.c: New file.
2570         * lib/expl-table.c: New file, extracted from lib/expl.c.
2571         * lib/expl.c (gl_expl_table): New declaration.
2572         (expl): Remove expl_table. Update reference.
2573         * m4/exp2l.m4: New file.
2574         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2575         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2576         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2577         * modules/exp2l: New file.
2578         * modules/expl (Files): Add lib/expl-table.c.
2579         (configure.ac): Compile also expl-table.c.
2580         * tests/test-math-c++.cc: Check the declaration of exp2l.
2581         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2582         problem.
2583
2584 2012-03-08  Bruno Haible  <bruno@clisp.org>
2585
2586         Tests for module 'exp2f'.
2587         * modules/exp2f-tests: New file.
2588         * tests/test-exp2f.c: New file.
2589
2590         New module 'exp2f'.
2591         * lib/math.in.h (exp2f): New declaration.
2592         * lib/exp2f.c: New file.
2593         * m4/exp2f.m4: New file.
2594         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2595         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2596         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2597         * modules/exp2f: New file.
2598         * tests/test-math-c++.cc: Check the declaration of exp2f.
2599         * doc/posix-functions/exp2f.texi: Mention the new module and the
2600         IRIX problem.
2601
2602 2012-03-08  Bruno Haible  <bruno@clisp.org>
2603
2604         Tests for module 'exp2'.
2605         * modules/exp2-tests: New file.
2606         * tests/test-exp2.c: New file.
2607         * tests/test-exp2.h: New file.
2608
2609         New module 'exp2'.
2610         * lib/math.in.h (exp2): New declaration.
2611         * lib/exp2.c: New file.
2612         * m4/exp2.m4: New file.
2613         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2614         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2615         REPLACE_EXP2.
2616         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2617         REPLACE_EXP2.
2618         * modules/exp2: New file.
2619         * tests/test-math-c++.cc: Check the declaration of exp2.
2620         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2621         and OpenBSD problems.
2622
2623 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2624
2625         savedir: fix comment typo
2626         * lib/savedir.c (savedirstream): Fix typo in comment.
2627
2628 2012-03-08  Bruno Haible  <bruno@clisp.org>
2629
2630         test-readtokens.c: use const; remove unwarranted cast
2631         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2632
2633 2012-03-08  Bruno Haible  <bruno@clisp.org>
2634
2635         fmal: Avoid compilation error on AIX.
2636         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2637         AIX 5.2..7.1.
2638
2639 2012-03-08  Bruno Haible  <bruno@clisp.org>
2640
2641         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2642         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2643         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2644         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2645         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2646         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2647         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2648
2649 2012-03-08  Bruno Haible  <bruno@clisp.org>
2650
2651         remainderf: Override buggy system function on IRIX 6.5.
2652         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2653         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2654         when it exists.
2655         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2656
2657 2012-03-08  Jim Meyering  <meyering@redhat.com>
2658
2659         test-readtokens.c: avoid const-related compilation warnings
2660         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2661
2662 2012-03-07  Jim Meyering  <meyering@redhat.com>
2663             Bruno Haible  <bruno@clisp.org>
2664
2665         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2666         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2667         tests/randomd.c.
2668         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2669         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2670         tests/randoml.c.
2671         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2672
2673 2012-03-07  Bruno Haible  <bruno@clisp.org>
2674
2675         expm1l: Avoid compilation error on AIX.
2676         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2677         AIX 5.2..7.1.
2678
2679 2012-03-07  Bruno Haible  <bruno@clisp.org>
2680
2681         expm1l: Don't override undeclared system function on IRIX 6.5.
2682         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2683         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2684         it exists. Set HAVE_DECL_EXPM1L.
2685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2686         HAVE_EXPM1L.
2687         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2688         HAVE_EXPM1L.
2689         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2690
2691 2012-03-07  Bruno Haible  <bruno@clisp.org>
2692
2693         remainderl: Don't override undeclared system function on IRIX 6.5.
2694         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2695         HAVE_REMAINDERL.
2696         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2697         declared when it exists. Set HAVE_DECL_REMAINDERL.
2698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2699         not HAVE_REMAINDERL.
2700         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2701         HAVE_REMAINDERL.
2702         * doc/posix-functions/remainderl.texi: Mention missing declaration
2703         problem.
2704
2705 2012-03-07  Bruno Haible  <bruno@clisp.org>
2706
2707         rintf: Don't override undeclared system function on IRIX 6.5.
2708         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2709         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2710         exists. Set HAVE_DECL_RINTF.
2711         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2712         HAVE_RINTF.
2713         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2714         HAVE_RINTF.
2715         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2716
2717 2012-03-07  Bruno Haible  <bruno@clisp.org>
2718
2719         roundl: Avoid compilation error on AIX.
2720         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2721         AIX 5.2..7.1.
2722
2723 2012-03-07  Bruno Haible  <bruno@clisp.org>
2724
2725         roundl: Don't override undeclared system function on IRIX 6.5.
2726         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2727         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2728         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2729         * modules/roundl (configure.ac): For replacement code, test
2730         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2731         (Depends-on): Update conditions.
2732         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2733
2734 2012-03-07  Bruno Haible  <bruno@clisp.org>
2735
2736         roundf: Don't override undeclared system function on IRIX 6.5.
2737         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2738         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2739         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2740         * modules/roundf (configure.ac): For replacement code, test
2741         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2742         (Depends-on): Update conditions.
2743         * modules/roundf-ieee (Depends-on): Update conditions.
2744         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2745
2746 2012-03-07  Bruno Haible  <bruno@clisp.org>
2747
2748         round: Don't override undeclared system function on IRIX 6.5.
2749         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2750         argument.
2751         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2752         also when it is not declared. Set HAVE_ROUND. For replacement code,
2753         test HAVE_ROUND, not HAVE_DECL_ROUND.
2754         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2755         not HAVE_DECL_ROUND.
2756         (Depends-on): Update conditions.
2757         * modules/round-ieee (Depends-on): Update conditions.
2758         * doc/posix-functions/round.texi: Mention the IRIX problem.
2759
2760 2012-03-07  Bruno Haible  <bruno@clisp.org>
2761
2762         copysignf: Don't override undeclared system function on IRIX 6.5.
2763         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2764         HAVE_COPYSIGNF.
2765         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2766         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2768         not HAVE_COPYSIGNF.
2769         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2770         HAVE_COPYSIGNF.
2771         * doc/posix-functions/copysignf.texi: Mention missing declaration
2772         problem.
2773
2774 2012-03-07  Jim Meyering  <meyering@redhat.com>
2775
2776         readtokens: add tests
2777         * modules/readtokens-tests: New file.
2778         * tests/test-readtokens.c: New file.
2779
2780 2012-03-07  Jim Meyering  <meyering@redhat.com>
2781
2782         quotearg: the module must now include quote.h
2783         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2784         So must the module.
2785         * modules/quotearg (Files): Add quote.h.
2786
2787 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2788
2789         readtokens: avoid core dumps with unusual calling patterns
2790         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2791         * lib/readtokens.c: Include limits.h.
2792         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2793         (readtoken): Don't cache the delimiters; the cache code was buggy
2794         if !delim && saved_delim, or if the new n_delim differs from the old.
2795         Also, it wasn't thread-safe.
2796
2797 2012-03-07  Bruno Haible  <bruno@clisp.org>
2798
2799         quote: Adhere to common module description layout.
2800         * modules/quote (Makefile.am): Add back empty section.
2801
2802 2012-03-06  Akim Demaille  <demaille@gostai.com>
2803
2804         quote: fuse into quotearg
2805         This patch is made for the benefit of Bison.
2806         quote does not leave the choice of the quoting style to the user.
2807         quoting_style provides poor customizability, yet quoting_options,
2808         which is very rich, is hidden inside quotearg.c.  So in order to
2809         allow quote customization, move its implementation to quotearg.c.
2810         * lib/quote.c: Remove.
2811         * modules/quote: Adjust.
2812         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2813         warning: provide all the members of literal structs.
2814         (quote_quoting_options): New.
2815         (quote, quote_n): Import implementation from quote.c.
2816         * lib/quote.h: Import the comments from quote.c.
2817         (quote_quoting_options): New.
2818
2819 2012-03-06  Bruno Haible  <bruno@clisp.org>
2820
2821         Tests for module 'expm1l-ieee'.
2822         * modules/expm1l-ieee-tests: New file.
2823         * tests/test-expm1l-ieee.c: New file.
2824
2825         New module 'expm1l-ieee'.
2826         * modules/expm1l-ieee: New file.
2827
2828         Tests for module 'expm1f-ieee'.
2829         * modules/expm1f-ieee-tests: New file.
2830         * tests/test-expm1f-ieee.c: New file.
2831
2832         New module 'expm1f-ieee'.
2833         * modules/expm1f-ieee: New file.
2834
2835         Tests for module 'expm1-ieee'.
2836         * modules/expm1-ieee-tests: New file.
2837         * tests/test-expm1-ieee.c: New file.
2838         * tests/test-expm1-ieee.h: New file.
2839
2840         New module 'expm1-ieee'.
2841         * modules/expm1-ieee: New file.
2842         * m4/expm1-ieee.m4: New file.
2843         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2844         whether expm1 works with a minus zero argument. Replace it if not.
2845         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2847         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2848         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2849         (Depends-on): Update conditions.
2850         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2851         AIX problem.
2852
2853 2012-03-06  Bruno Haible  <bruno@clisp.org>
2854
2855         Work around expm1f bug on IRIX 6.5.
2856         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2857         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2858         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2859         not work.
2860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2861         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2862         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2863         (Depends-on): Update conditions.
2864         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2865
2866 2012-03-06  Bruno Haible  <bruno@clisp.org>
2867
2868         Tests for module 'expm1l'.
2869         * modules/expm1l-tests: New file.
2870         * tests/test-expm1l.c: New file.
2871
2872         New module 'expm1l'.
2873         * lib/math.in.h (expm1l): New declaration.
2874         * lib/expm1l.c: New file.
2875         * m4/expm1l.m4: New file.
2876         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2878         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2879         * modules/expm1l: New file.
2880         * tests/test-math-c++.cc: Check the declaration of expm1l.
2881         * doc/posix-functions/expm1l.texi: Mention the new module.
2882
2883 2012-03-06  Bruno Haible  <bruno@clisp.org>
2884
2885         Tests for module 'expm1f'.
2886         * modules/expm1f-tests: New file.
2887         * tests/test-expm1f.c: New file.
2888
2889         New module 'expm1f'.
2890         * lib/math.in.h (expm1f): New declaration.
2891         * lib/expm1f.c: New file.
2892         * m4/expm1f.m4: New file.
2893         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2895         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2896         * modules/expm1f: New file.
2897         * tests/test-math-c++.cc: Check the declaration of expm1f.
2898         * doc/posix-functions/expm1f.texi: Mention the new module.
2899
2900 2012-03-06  Bruno Haible  <bruno@clisp.org>
2901
2902         Tests for module 'expm1'.
2903         * modules/expm1-tests: New file.
2904         * tests/test-expm1.c: New file.
2905         * tests/test-expm1.h: New file.
2906
2907         New module 'expm1'.
2908         * lib/math.in.h (expm1): New declaration.
2909         * lib/expm1.c: New file.
2910         * m4/expm1.m4: New file.
2911         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2912         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2913         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2914         * modules/expm1: New file.
2915         * tests/test-math-c++.cc: Check the declaration of expm1.
2916         * doc/posix-functions/expm1.texi: Mention the new module.
2917
2918 2012-03-06  Bruno Haible  <bruno@clisp.org>
2919
2920         math: Ensure declarations of math functions.
2921         * modules/acosf (Depends-on): Add 'extensions'.
2922         * modules/asinf (Depends-on): Likewise.
2923         * modules/atan2f (Depends-on): Likewise.
2924         * modules/atanf (Depends-on): Likewise.
2925         * modules/cbrt (Depends-on): Likewise.
2926         * modules/cbrtf (Depends-on): Likewise.
2927         * modules/cbrtl (Depends-on): Likewise.
2928         * modules/copysignf (Depends-on): Likewise.
2929         * modules/copysignl (Depends-on): Likewise.
2930         * modules/cosf (Depends-on): Likewise.
2931         * modules/coshf (Depends-on): Likewise.
2932         * modules/expf (Depends-on): Likewise.
2933         * modules/fabsf (Depends-on): Likewise.
2934         * modules/fabsl (Depends-on): Likewise.
2935         * modules/fmaf (Depends-on): Likewise.
2936         * modules/fmal (Depends-on): Likewise.
2937         * modules/fmodf (Depends-on): Likewise.
2938         * modules/fmodl (Depends-on): Likewise.
2939         * modules/frexpf (Depends-on): Likewise.
2940         * modules/frexpl (Depends-on): Likewise.
2941         * modules/hypot (Depends-on): Likewise.
2942         * modules/hypotf (Depends-on): Likewise.
2943         * modules/hypotl (Depends-on): Likewise.
2944         * modules/ldexpf (Depends-on): Likewise.
2945         * modules/ldexpl (Depends-on): Likewise.
2946         * modules/log10f (Depends-on): Likewise.
2947         * modules/log10l (Depends-on): Likewise.
2948         * modules/log1p (Depends-on): Likewise.
2949         * modules/logb (Depends-on): Likewise.
2950         * modules/logf (Depends-on): Likewise.
2951         * modules/modff (Depends-on): Likewise.
2952         * modules/modfl (Depends-on): Likewise.
2953         * modules/powf (Depends-on): Likewise.
2954         * modules/remainderf (Depends-on): Likewise.
2955         * modules/remainderl (Depends-on): Likewise.
2956         * modules/rintf (Depends-on): Likewise.
2957         * modules/rintl (Depends-on): Likewise.
2958         * modules/sinf (Depends-on): Likewise.
2959         * modules/sinhf (Depends-on): Likewise.
2960         * modules/sqrtf (Depends-on): Likewise.
2961         * modules/tanf (Depends-on): Likewise.
2962         * modules/tanhf (Depends-on): Likewise.
2963         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2964         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2965         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2966         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2967         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2968         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2969         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2970         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2971         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2972         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2973         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2974         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2975         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2976         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2977         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2978         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2979         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2980         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2981         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2982         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2983         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2984         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2985         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2986         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2987         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2988         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2989         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2990         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2991         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2992         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2993         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2994         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2995         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2996         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2997         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2998         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2999         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3000         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3001         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3002         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3003         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3004
3005 2012-03-06  Bruno Haible  <bruno@clisp.org>
3006
3007         math: Update module names in warnings.
3008         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3009         tanl): Use specific module name in warn-on-use warning.
3010
3011 2012-03-06  Bruno Haible  <bruno@clisp.org>
3012
3013         expl: Simplify computation.
3014         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3015
3016 2012-03-05  Bruno Haible  <bruno@clisp.org>
3017
3018         exp* tests: More tests.
3019         * tests/test-exp.h: New file.
3020         * tests/test-exp.c: Include <float.h> and test-exp.h.
3021         (main): Invoke test_function.
3022         * tests/test-expf.c: Include <float.h> and test-exp.h.
3023         (main): Invoke test_function.
3024         * tests/test-expl.c: Include <float.h> and test-exp.h.
3025         (main): Invoke test_function.
3026         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3027         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3028         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3029         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3030         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3031         (Depends-on): Add 'float'.
3032         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3033
3034         expl: Fix precision of computed result.
3035         * lib/expl.c: Completely rewritten.
3036         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3037         (Maintainer): Add me.
3038         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3039
3040 2012-03-05  Bruno Haible  <bruno@clisp.org>
3041
3042         cbrt* tests: More tests.
3043         * tests/test-cbrt.h: New file.
3044         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3045         (main): Invoke test_function.
3046         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3047         (main): Invoke test_function.
3048         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3049         (main): Invoke test_function.
3050         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3051         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3052         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3053         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3054         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3055         (Depends-on): Add 'float'.
3056         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3057
3058 2012-03-05  Bruno Haible  <bruno@clisp.org>
3059
3060         hypot* tests: More tests.
3061         * tests/test-hypot.h: New file, partially extracted from
3062         tests/test-hypotl.c.
3063         * tests/test-hypot.c: Include test-hypot.h.
3064         (main): Invoke test_function.
3065         * tests/test-hypotf.c: Include test-hypot.h.
3066         (main): Invoke test_function.
3067         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3068         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3069         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3070         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3071         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3072         tests/randomf.c.
3073         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3074         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3075         tests/randoml.c.
3076         (Depends-on): Add 'fpucw', 'float'.
3077         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3078
3079 2012-03-05  Bruno Haible  <bruno@clisp.org>
3080
3081         fpucw: Doc about FreeBSD.
3082         * lib/fpucw.h: Mention FreeBSD in comments.
3083
3084 2012-03-04  Bruno Haible  <bruno@clisp.org>
3085
3086         sqrt* tests: More tests.
3087         * tests/test-sqrt.h: New file.
3088         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3089         (main): Invoke test_function.
3090         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3091         (main): Invoke test_function.
3092         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3093         (main): Invoke test_function.
3094         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3095         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3096         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3097         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3098         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3099         (Depends-on): Add 'float'.
3100         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3101
3102 2012-03-04  Bruno Haible  <bruno@clisp.org>
3103
3104         remainder* tests: More tests.
3105         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3106         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3107         (main): Invoke test_function.
3108         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3109         (main): Invoke test_function.
3110         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3111         (main): Invoke test_function.
3112         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3113         tests/randomd.c.
3114         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3115         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3116         tests/randomf.c.
3117         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3118         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3119         tests/randoml.c.
3120         (Depends-on): Add 'float'.
3121         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3122
3123 2012-03-04  Bruno Haible  <bruno@clisp.org>
3124
3125         remainder, remainderf, remainderl: Fix computation for large quotients.
3126         * lib/remainder.c: Completely rewritten.
3127         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3128         USE_FLOAT.
3129         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3130         USE_LONG_DOUBLE.
3131         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3132         isnand, isinf. Remove round, fma.
3133         * modules/remainderf (Files): Add lib/remainder.c.
3134         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3135         Remove roundf, fmaf.
3136         * modules/remainderl (Files): Add lib/remainder.c.
3137         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3138         isinf. Remove roundl, fmal.
3139         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3140         REMAINDER_LIBM.
3141         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3142         REMAINDERF_LIBM.
3143         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3144         REMAINDERL_LIBM.
3145
3146 2012-03-04  Bruno Haible  <bruno@clisp.org>
3147
3148         fmod* tests: More tests.
3149         * tests/test-fmod.h (my_ldexp): New function.
3150         (test_function): Reduce amount of random numbers to test. Add tests
3151         of very large quotients x / y.
3152         * tests/test-fmod.c (MAX_EXP): New macro.
3153         * tests/test-fmodf.c (MAX_EXP): Likewise.
3154         * tests/test-fmodl.c (MAX_EXP): Likewise.
3155
3156 2012-03-04  Bruno Haible  <bruno@clisp.org>
3157
3158         fmod, fmodl: Fix computation for large quotients x / y.
3159         * lib/fmod.c: Completely rewritten.
3160         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3161         USE_LONG_DOUBLE.
3162         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3163         isnand. Remove fma.
3164         * modules/fmodl (Files): Add lib/fmod.c.
3165         (Depends-on): Add float, isfinite, signbit, fabsl,
3166         frexpl, ldexpl, isnanl. Remove fma.
3167         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3168         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3169
3170 2012-03-03  Bruno Haible  <bruno@clisp.org>
3171
3172         fmod* tests: More tests.
3173         * tests/test-fmod.h: New file.
3174         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3175         (main): Invoke test_function.
3176         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3177         (main): Invoke test_function.
3178         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3179         (main): Invoke test_function.
3180         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3181         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3182         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3183         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3184         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3185         (Depends-on): Add 'float'.
3186         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3187
3188 2012-03-03  Bruno Haible  <bruno@clisp.org>
3189
3190         rint* tests: More tests.
3191         * tests/test-rint.h: New file, partially extracted from
3192         tests/test-rintl.c.
3193         * tests/test-rint.c: Include test-rint.h.
3194         (main): Invoke test_function.
3195         * tests/test-rintf.c: Include test-rint.h.
3196         (main): Invoke test_function.
3197         * tests/test-rintl.c: Include test-rint.h.
3198         (main): Invoke test_function.
3199         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3200         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3201         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3202         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3203         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3204         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3205
3206 2012-03-03  Bruno Haible  <bruno@clisp.org>
3207
3208         modf* tests: More tests.
3209         * tests/test-modf.h: New file.
3210         * tests/test-modf.c: Include <float.h> and test-modf.h.
3211         (main): Invoke test_function.
3212         * tests/test-modff.c: Include <float.h> and test-modf.h.
3213         (main): Invoke test_function.
3214         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3215         (main): Invoke test_function.
3216         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3217         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3218         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3219         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3220         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3221         (Depends-on): Add 'float'.
3222         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3223
3224 2012-03-03  Bruno Haible  <bruno@clisp.org>
3225
3226         fabs* tests: More tests.
3227         * tests/test-fabs.h: New file, partially extracted from
3228         tests/test-fabsl.c.
3229         * tests/test-fabs.c (RANDOM): New macro.
3230         * tests/test-fabsf.c (RANDOM): New macro.
3231         * tests/test-fabsl.c (RANDOM): New macro.
3232         * modules/fabs-tests (Files): Add tests/randomd.c.
3233         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3234         * modules/fabsf-tests (Files): Add tests/randomf.c.
3235         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3236         * modules/fabsl-tests (Files): Add tests/randoml.c.
3237         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3238
3239 2012-03-03  Bruno Haible  <bruno@clisp.org>
3240
3241         ldexp* tests: More tests.
3242         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3243         * tests/test-ldexp.c (RANDOM): New macro.
3244         * tests/test-ldexpf.c (RANDOM): New macro.
3245         * tests/test-ldexpl.c (RANDOM): New macro.
3246         * modules/ldexp-tests (Files): Add tests/randomd.c.
3247         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3248         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3249         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3250         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3251         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3252
3253 2012-03-03  Bruno Haible  <bruno@clisp.org>
3254
3255         frexp* tests: More tests.
3256         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
3257         * tests/test-frexp.c (RANDOM): New macro.
3258         * tests/test-frexpf.c (RANDOM): New macro.
3259         * tests/test-frexpl.c (RANDOM): New macro.
3260         * modules/frexp-tests (Files): Add tests/randomd.c.
3261         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
3262         * modules/frexpf-tests (Files): Add tests/randomf.c.
3263         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
3264         * modules/frexpl-tests (Files): Add tests/randoml.c.
3265         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3266
3267 2012-03-03  Bruno Haible  <bruno@clisp.org>
3268
3269         Support for pseudo-random numbers in tests.
3270         * tests/randomf.c: New file.
3271         * tests/randomd.c: New file.
3272         * tests/randoml.c: New file.
3273         * tests/macros.h (randomf, randomd, randoml): New declarations.
3274
3275 2012-03-03  Bruno Haible  <bruno@clisp.org>
3276
3277         frexp* tests: Refactor.
3278         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3279         * tests/test-frexp.c: Include and use it.
3280         * tests/test-frexpf.c: Likewise.
3281         * tests/test-frexpl.c: Likewise.
3282         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3283         * modules/frexpf-tests (Files): Likewise.
3284         * modules/frexpl-tests (Files): Likewise.
3285
3286 2012-03-02  Jim Meyering  <meyering@redhat.com>
3287
3288         maint: don't specify XZ_OPT=-9ev in dist-related rule
3289         Using xz's -9 option is warranted only if you have a very large
3290         tarball (see xz's documentation for the sizes vs. presets), and
3291         requires 64MiB of memory at decompression time.
3292         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3293         Automake's default of just "-e" is fine.  Override on a
3294         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3295
3296 2012-03-01  Eric Blake  <eblake@redhat.com>
3297
3298         maint.mk: allow announcement for non-gnulib project
3299         * maint.mk (announcement): Skip gnulib version if not used.
3300
3301 2012-03-01  Jim Meyering  <meyering@redhat.com>
3302
3303         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3304         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3305         envvar settings cannot interfere.  Otherwise, setting envvars like
3306         prohibit=foo require=bar, etc. would cause spurious test failures.
3307
3308 2012-03-01  Eric Blake  <eblake@redhat.com>
3309
3310         maint.mk: add per-line exclusions to prohibitions
3311         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3312         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3313         (sc_const_long_option): Use it.
3314
3315 2012-03-01  Bruno Haible  <bruno@clisp.org>
3316
3317         Tests for module 'expl-ieee'.
3318         * modules/expl-ieee-tests: New file.
3319         * tests/test-expl-ieee.c: New file.
3320
3321         New module 'expl-ieee'.
3322         * modules/expl-ieee: New file.
3323
3324         Tests for module 'exp-ieee'.
3325         * modules/exp-ieee-tests: New file.
3326         * tests/test-exp-ieee.c: New file.
3327
3328         New module 'exp-ieee'.
3329         * modules/exp-ieee: New file.
3330
3331         Tests for module 'expf-ieee'.
3332         * modules/expf-ieee-tests: New file.
3333         * tests/test-expf-ieee.c: New file.
3334         * tests/test-exp-ieee.h: New file.
3335
3336         New module 'expf-ieee'.
3337         * modules/expf-ieee: New file.
3338
3339 2012-02-29  Bruno Haible  <bruno@clisp.org>
3340
3341         cbrtl-ieee: Work around test failure on IRIX 6.5.
3342         * m4/cbrtl-ieee.m4: New file.
3343         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
3344         test whether cbrtl works with a minus zero argument. Replace it if not.
3345         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
3346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
3347         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
3348         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
3349         (Depends-on): Update conditions.
3350         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
3351         m4/signbit.m4.
3352         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
3353         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
3354         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
3355
3356         Tests for module 'cbrtl-ieee'.
3357         * modules/cbrtl-ieee-tests: New file.
3358         * tests/test-cbrtl-ieee.c: New file.
3359
3360         New module 'cbrtl-ieee'.
3361         * modules/cbrtl-ieee: New file.
3362
3363         Tests for module 'cbrt-ieee'.
3364         * modules/cbrt-ieee-tests: New file.
3365         * tests/test-cbrt-ieee.c: New file.
3366
3367         New module 'cbrt-ieee'.
3368         * modules/cbrt-ieee: New file.
3369
3370         Tests for module 'cbrtf-ieee'.
3371         * modules/cbrtf-ieee-tests: New file.
3372         * tests/test-cbrtf-ieee.c: New file.
3373         * tests/test-cbrt-ieee.h: New file.
3374
3375         New module 'cbrtf-ieee'.
3376         * modules/cbrtf-ieee: New file.
3377
3378 2012-02-29  Bruno Haible  <bruno@clisp.org>
3379
3380         cbrtf: Work around bug in IRIX 6.5 system function.
3381         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
3382         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
3383         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
3384         work.
3385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3386         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3387         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3388         (Depends-on): Update conditions.
3389         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3390
3391 2012-02-29  Bruno Haible  <bruno@clisp.org>
3392
3393         Tests for module 'cbrtl'.
3394         * modules/cbrtl-tests: New file.
3395         * tests/test-cbrtl.c: New file.
3396
3397         New module 'cbrtl'.
3398         * lib/math.in.h (cbrtl): New declaration.
3399         * lib/cbrtl.c: New file.
3400         * m4/cbrtl.m4: New file.
3401         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3402         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3403         HAVE_DECL_CBRTL.
3404         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3405         HAVE_DECL_CBRTL.
3406         * modules/cbrtl: New file.
3407         * tests/test-math-c++.cc: Check the declaration of cbrtl.
3408         * doc/posix-functions/cbrtl.texi: Mention the new module.
3409
3410 2012-02-29  Bruno Haible  <bruno@clisp.org>
3411
3412         Tests for module 'cbrtf'.
3413         * modules/cbrtf-tests: New file.
3414         * tests/test-cbrtf.c: New file.
3415
3416         New module 'cbrtf'.
3417         * lib/math.in.h (cbrtf): New declaration.
3418         * lib/cbrtf.c: New file.
3419         * m4/cbrtf.m4: New file.
3420         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
3421         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
3422         HAVE_DECL_CBRTF.
3423         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
3424         HAVE_DECL_CBRTF.
3425         * modules/cbrtf: New file.
3426         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3427         * doc/posix-functions/cbrtf.texi: Mention the new module.
3428
3429 2012-02-29  Bruno Haible  <bruno@clisp.org>
3430
3431         cbrt: Provide replacement on MSVC and Minix.
3432         * lib/math.in.h (cbrt): New declaration.
3433         * lib/cbrt.c: New file.
3434         * m4/cbrt.m4: New file.
3435         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3436         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
3437         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
3438         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
3439         (Depends-on): Add dependencies.
3440         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
3441         * tests/test-math-c++.cc: Check the declaration of cbrt.
3442         * doc/posix-functions/cbrt.texi: Mention that the module provides a
3443         replacement.
3444
3445 2012-02-29  Bruno Haible  <bruno@clisp.org>
3446
3447         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
3448         * m4/hypotl-ieee.m4: New file.
3449         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
3450         test whether hypotl works with mixed NaN and Infinity arguments.
3451         Replace it if not.
3452         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
3453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
3454         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
3455         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
3456         (Depends-on): Update conditions.
3457         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
3458         (Depends-on): Add hypot-ieee.
3459         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
3460         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
3461
3462         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
3463         * m4/hypotf-ieee.m4: New file.
3464         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
3465         test whether hypotf works with mixed NaN and Infinity arguments.
3466         Replace it if not.
3467         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
3468         (Depends-on): Add hypot-ieee.
3469         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
3470         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
3471
3472         hypot-ieee: Work around test failure on OSF/1 and native Windows.
3473         * lib/math.in.h (hypot): New declaration.
3474         * lib/hypot.c: New file.
3475         * m4/hypot-ieee.m4: New file.
3476         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
3477         whether hypot works with mixed NaN and Infinity arguments. Replace it
3478         if not.
3479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
3480         REPLACE_HYPOT.
3481         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3482         * modules/hypot (Files): Add lib/hypot.c.
3483         (Depends-on): Add dependencies.
3484         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3485         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3486         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3487         * tests/test-math-c++.cc: Check the declaration of hypot.
3488         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3489
3490         Tests for module 'hypotl-ieee'.
3491         * modules/hypotl-ieee-tests: New file.
3492         * tests/test-hypotl-ieee.c: New file.
3493
3494         New module 'hypotl-ieee'.
3495         * modules/hypotl-ieee: New file.
3496
3497         Tests for module 'hypot-ieee'.
3498         * modules/hypot-ieee-tests: New file.
3499         * tests/test-hypot-ieee.c: New file.
3500
3501         New module 'hypot-ieee'.
3502         * modules/hypot-ieee: New file.
3503
3504         Tests for module 'hypotf-ieee'.
3505         * modules/hypotf-ieee-tests: New file.
3506         * tests/test-hypotf-ieee.c: New file.
3507         * tests/test-hypot-ieee.h: New file.
3508
3509         New module 'hypotf-ieee'.
3510         * modules/hypotf-ieee: New file.
3511
3512 2012-02-29  Bruno Haible  <bruno@clisp.org>
3513
3514         Remove unused variables.
3515         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3516         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3517         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3518         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3519
3520 2012-02-29  Eric Blake  <eblake@redhat.com>
3521
3522         termios: fix pid_t always, not just for tcgetsid
3523         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3524         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3525         just when building tcgetsid.
3526
3527 2012-02-29  Bruno Haible  <bruno@clisp.org>
3528
3529         Tests for module 'hypotl'.
3530         * modules/hypotl-tests: New file.
3531         * tests/test-hypotl.c: New file.
3532
3533         New module 'hypotl'.
3534         * lib/math.in.h (hypotl): New declaration.
3535         * lib/hypotl.c: New file.
3536         * m4/hypotl.m4: New file.
3537         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3538         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3539         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3540         * modules/hypotl: New file.
3541         * tests/test-math-c++.cc: Check the hypotl declaration.
3542         * doc/posix-functions/hypotl.texi: Mention the new module.
3543
3544 2012-02-29  Eric Blake  <eblake@redhat.com>
3545
3546         tcgetsid: fix cygwin header bug
3547         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3548
3549         docs: update cygwin progress
3550         * doc/posix-functions/llround.texi (llround): Added in cygwin
3551         1.7.8.
3552         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3553         * doc/glibc-functions/program_invocation_name.texi
3554         (program_invocation_name): Likewise.
3555         * doc/glibc-functions/program_invocation_short_name.texi
3556         (program_invocation_short_name): Likewise.
3557         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3558         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3559         Likewise.
3560         * doc/posix-functions/pthread_spin_destroy.texi
3561         (pthread_spin_destroy): Added in cygwin 1.7.10.
3562         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3563         Likewise.
3564         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3565         Likewise.
3566         * doc/posix-functions/pthread_spin_trylock.texi
3567         (pthread_spin_trylock): Likewise.
3568         * doc/posix-functions/pthread_spin_unlock.texi
3569         (pthread_spin_unlock): Likewise.
3570         * doc/posix-functions/pthread_setschedprio.texi
3571         (pthread_setschedprio): Likewise.
3572         * doc/posix-functions/pthread_attr_getstack.texi
3573         (pthread_attr_getstack): Likewise.
3574         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3575         (pthread_attr_getstackaddr): Likewise.
3576         * doc/glibc-functions/pthread_getattr_np.texi
3577         (pthread_getattr_np): Likewise.
3578         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3579         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3580         * doc/posix-functions/clock_settime.texi (clock_settime):
3581         Likewise.
3582         * doc/posix-functions/pthread_attr_getguardsize.texi
3583         (pthread_attr_getguardsize): Likewise.
3584         * doc/posix-functions/pthread_attr_setguardsize.texi
3585         (pthread_attr_setguardsize): Likewise.
3586         * doc/posix-functions/pthread_attr_setstack.texi
3587         (pthread_attr_setstack): Likewise.
3588         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3589         (pthread_attr_setstackaddr): Likewise.
3590         * doc/posix-functions/clock_getcpuclockid.texi
3591         (clock_getcpuclockid): Likewise.
3592         * doc/posix-functions/pthread_getcpuclockid.texi
3593         (pthread_getcpuclockid): Likewise.
3594         * doc/glibc-functions/error.texi (error): Likewise.
3595         * doc/glibc-functions/error_at_line.texi (error_at_line):
3596         Likewise.
3597         * doc/glibc-functions/error_message_count.texi
3598         (error_message_count): Likewise.
3599         * doc/glibc-functions/error_one_per_line.texi
3600         (error_one_per_line): Likewise.
3601         * doc/glibc-functions/error_print_progname.texi
3602         (error_print_progname): Likewise.
3603         * doc/posix-functions/pthread_condattr_getclock.texi
3604         (pthread_condattr_getclock): Likewise.
3605         * doc/posix-functions/pthread_condattr_setclock.texi
3606         (pthread_condattr_setclock): Likewise.
3607         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3608         Likewise.
3609         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3610         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3611         * doc/glibc-functions/get_current_dir_name.texi
3612         (get_current_dir_name): Likewise.
3613         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3614         Likewise.
3615         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3616         wrong return type.
3617         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3618         1.7.11.
3619
3620 2012-02-29  Bruno Haible  <bruno@clisp.org>
3621
3622         Tests for module 'hypotf'.
3623         * modules/hypotf-tests: New file.
3624         * tests/test-hypotf.c: New file.
3625
3626         New module 'hypotf'.
3627         * lib/math.in.h (hypotf): New declaration.
3628         * lib/hypotf.c: New file.
3629         * m4/hypotf.m4: New file.
3630         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3631         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3632         REPLACE_HYPOTF.
3633         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3634         REPLACE_HYPOTF.
3635         * modules/hypotf: New file.
3636         * tests/test-math-c++.cc: Check the hypotf declaration.
3637         * doc/posix-functions/hypotf.texi: Mention the new module.
3638
3639         hypot: Prepare for hypotf module.
3640         * m4/hypot.m4: New file.
3641         * modules/hypot (Files): Add m4/hypot.m4.
3642         (configure.ac): Invoke gl_FUNC_HYPOT.
3643
3644 2012-02-29  Bruno Haible  <bruno@clisp.org>
3645
3646         hypot tests: More tests.
3647         * tests/test-hypot.c: Include <float.h>.
3648         (main): Add tests about overflow and underflow.
3649
3650 2012-02-29  Bruno Haible  <bruno@clisp.org>
3651
3652         math code: Add comments.
3653         * lib/acosl.c: Add comment about related glibc source files.
3654         * lib/asinl.c: Likewise.
3655         * lib/atanl.c: Likewise.
3656         * lib/expl.c: Likewise.
3657         * lib/logl.c: Likewise.
3658         * lib/sincosl.c: Likewise.
3659         * lib/sinl.c: Likewise.
3660         * lib/tanl.c: Likewise.
3661         * lib/trigl.c: Likewise.
3662         * lib/cosl.c: Likewise. Fix comments.
3663
3664 2012-02-28  Bruno Haible  <bruno@clisp.org>
3665
3666         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3667         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3668         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3669         HUGE_VALL are defined.
3670         (numeric_equald): Renamed from numeric_equal.
3671         (numeric_equalf, numeric_equall): New functions.
3672         (main): Check also HUGE_VALF, HUGE_VALL.
3673         * modules/math-tests (Files): Add tests/macros.h.
3674         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3675         HUGE_VALL.
3676
3677 2012-02-28  Bruno Haible  <bruno@clisp.org>
3678
3679         doc: Move ISO C11 feature notes into POSIX chapters.
3680         * doc/posix-functions/aligned_alloc.texi: Renamed from
3681         doc/glibc-functions/aligned_alloc.texi.
3682         * doc/posix-functions/quick_exit.texi: Renamed from
3683         doc/glibc-functions/quick_exit.texi.
3684         * doc/posix-headers/uchar.texi: Renamed from
3685         doc/glibc-headers/uchar.texi.
3686         * doc/posix-functions/c16rtomb.texi: Renamed from
3687         doc/glibc-functions/c16rtomb.texi.
3688         * doc/posix-functions/c32rtomb.texi: Renamed from
3689         doc/glibc-functions/c32rtomb.texi.
3690         * doc/posix-functions/mbrtoc16.texi: Renamed from
3691         doc/glibc-functions/mbrtoc16.texi.
3692         * doc/posix-functions/mbrtoc32.texi: Renamed from
3693         doc/glibc-functions/mbrtoc32.texi.
3694         * doc/gnulib.texi: Update.
3695         (Glibc uchar.h): Remove section.
3696         Suggested by Eric Blake.
3697
3698 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3699
3700         stdnoreturn: port to MSVC better
3701         MSVC standard headers use __declspec(noreturn), so #define noreturn
3702         to empty on that platform.  Reported by Bruno Haible in
3703         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3704         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3705         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3706
3707 2012-02-28  Bruno Haible  <bruno@clisp.org>
3708
3709         doc: Mention new glibc headers and functions.
3710         * doc/glibc-headers/uchar.texi: New file.
3711         * doc/glibc-functions/aligned_alloc.texi: New file.
3712         * doc/glibc-functions/c16rtomb.texi: New file.
3713         * doc/glibc-functions/c32rtomb.texi: New file.
3714         * doc/glibc-functions/clock_adjtime.texi: New file.
3715         * doc/glibc-functions/fanotify_init.texi: New file.
3716         * doc/glibc-functions/fanotify_mark.texi: New file.
3717         * doc/glibc-functions/inet6_opt_append.texi: New file.
3718         * doc/glibc-functions/inet6_opt_find.texi: New file.
3719         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3720         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3721         * doc/glibc-functions/inet6_opt_init.texi: New file.
3722         * doc/glibc-functions/inet6_opt_next.texi: New file.
3723         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3724         * doc/glibc-functions/inet6_rth_add.texi: New file.
3725         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3726         * doc/glibc-functions/inet6_rth_init.texi: New file.
3727         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3728         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3729         * doc/glibc-functions/inet6_rth_space.texi: New file.
3730         * doc/glibc-functions/login.texi: New file.
3731         * doc/glibc-functions/mbrtoc16.texi: New file.
3732         * doc/glibc-functions/mbrtoc32.texi: New file.
3733         * doc/glibc-functions/name_to_handle_at.texi: New file.
3734         * doc/glibc-functions/ntp_gettimex.texi: New file.
3735         * doc/glibc-functions/open_by_handle_at.texi: New file.
3736         * doc/glibc-functions/prlimit.texi: New file.
3737         * doc/glibc-functions/process_vm_readv.texi: New file.
3738         * doc/glibc-functions/process_vm_writev.texi: New file.
3739         * doc/glibc-functions/recvmmsg.texi: New file.
3740         * doc/glibc-functions/scandirat.texi: New file.
3741         * doc/glibc-functions/sendmmsg.texi: New file.
3742         * doc/glibc-functions/setns.texi: New file.
3743         * doc/glibc-functions/timespec_get.texi: New file.
3744         * doc/gnulib.texi: Include them.
3745         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3746         sections.
3747         Reported by Eric Blake.
3748
3749 2012-02-28  Bruno Haible  <bruno@clisp.org>
3750
3751         Avoid compilation errors with MSVC option -fp:strict.
3752         * lib/floor.c: Use MSVC specific pragma fenv_access.
3753         * lib/ceil.c: Likewise.
3754         * lib/trunc.c: Likewise.
3755         * lib/round.c: Likewise.
3756         * lib/rint.c: Likewise.
3757         * lib/fma.c: Likewise.
3758         * lib/integer_length.c: Likewise.
3759         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3760         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3761         * tests/test-floor2.c: Likewise.
3762         * tests/test-floorf2.c: Likewise.
3763         * tests/test-ceil2.c: Likewise.
3764         * tests/test-ceilf2.c: Likewise.
3765         * tests/test-trunc2.c: Likewise.
3766         * tests/test-truncf2.c: Likewise.
3767         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3768
3769 2012-02-27  Bruno Haible  <bruno@clisp.org>
3770
3771         Tests for module 'sqrtl-ieee'.
3772         * modules/sqrtl-ieee-tests: New file.
3773         * tests/test-sqrtl-ieee.c: New file.
3774
3775         New module 'sqrtl-ieee'.
3776         * modules/sqrtl-ieee: New file.
3777
3778         Tests for module 'sqrt-ieee'.
3779         * modules/sqrt-ieee-tests: New file.
3780         * tests/test-sqrt-ieee.c: New file.
3781
3782         New module 'sqrt-ieee'.
3783         * modules/sqrt-ieee: New file.
3784
3785         Tests for module 'sqrtf-ieee'.
3786         * modules/sqrtf-ieee-tests: New file.
3787         * tests/test-sqrtf-ieee.c: New file.
3788         * tests/test-sqrt-ieee.h: New file.
3789
3790         New module 'sqrtf-ieee'.
3791         * modules/sqrtf-ieee: New file.
3792
3793 2012-02-27  Bruno Haible  <bruno@clisp.org>
3794
3795         remainderl-ieee: Work around test failure on OSF/1.
3796         * m4/remainderl-ieee.m4: New file.
3797         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3798         present, test whether remainderl works with a zero second argument.
3799         Replace it if not.
3800         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3802         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3803         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3804         (Depends-on): Update conditions.
3805         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3806         (Depends-on): Add remainder-ieee.
3807         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3808         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3809         module.
3810
3811         remainderf-ieee: Work around test failure on OSF/1.
3812         * m4/remainderf-ieee.m4: New file.
3813         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3814         present, test whether remainderf works with a zero second argument.
3815         Replace it if not.
3816         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3818         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3819         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3820         (Depends-on): Update conditions.
3821         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3822         (Depends-on): Add remainder-ieee.
3823         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3824         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3825         module.
3826
3827         remainder-ieee: Work around test failure on OSF/1.
3828         * m4/remainder-ieee.m4: New file.
3829         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3830         present, test whether remainder works with a zero second argument.
3831         Replace it if not.
3832         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3834         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3835         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3836         (Depends-on): Update dependencies.
3837         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3838         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3839         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3840
3841         Tests for module 'remainderl-ieee'.
3842         * modules/remainderl-ieee-tests: New file.
3843         * tests/test-remainderl-ieee.c: New file.
3844
3845         New module 'remainderl-ieee'.
3846         * modules/remainderl-ieee: New file.
3847
3848         Tests for module 'remainder-ieee'.
3849         * modules/remainder-ieee-tests: New file.
3850         * tests/test-remainder-ieee.c: New file.
3851
3852         New module 'remainder-ieee'.
3853         * modules/remainder-ieee: New file.
3854
3855         Tests for module 'remainderf-ieee'.
3856         * modules/remainderf-ieee-tests: New file.
3857         * tests/test-remainderf-ieee.c: New file.
3858         * tests/test-remainder-ieee.h: New file.
3859
3860         New module 'remainderf-ieee'.
3861         * modules/remainderf-ieee: New file.
3862
3863 2012-02-27  Bruno Haible  <bruno@clisp.org>
3864
3865         modff, modfl: Fix configure syntax error.
3866         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3867         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3868
3869 2012-02-27  Bruno Haible  <bruno@clisp.org>
3870
3871         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3872         * m4/fmodl-ieee.m4: New file.
3873         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3874         whether fmodl works with zero arguments. Replace it if not.
3875         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3876         (Depends-on): Add fmod-ieee.
3877         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3878         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3879
3880         fmodf-ieee: Work around test failure on OSF/1.
3881         * m4/fmodf-ieee.m4: New file.
3882         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3883         whether fmodf works with zero arguments. Replace it if not.
3884         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3886         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3887         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3888         (Depends-on): Update dependencies.
3889         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3890         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3891         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3892
3893         fmodf-ieee: Work around test failure on MSVC 9.
3894         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3895         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3896
3897         fmod-ieee: Work around test failures on OSF/1, mingw.
3898         * m4/fmod-ieee.m4: New file.
3899         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3900         whether fmod works with zero arguments. Replace it if not.
3901         * lib/math.in.h (fmod): New declaration.
3902         * lib/fmod.c: New file.
3903         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3905         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3906         * modules/fmod (Files): Add lib/fmod.c.
3907         (Depends-on): Add math, isinf, trunc, fma.
3908         (configure.ac): Arrange to compile lib/fmod.c if needed.
3909         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3910         m4/signbit.m4.
3911         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3912         * tests/test-math-c++.cc: Check the declaration of fmod.
3913         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3914
3915         fmodl-ieee: Fix test failures.
3916         * lib/fmodl.c (fmodl): Treat Inf specially.
3917         * modules/fmodl (Depends-on): Add isinf.
3918
3919         Tests for module 'fmodl-ieee'.
3920         * modules/fmodl-ieee-tests: New file.
3921         * tests/test-fmodl-ieee.c: New file.
3922
3923         New module 'fmodl-ieee'.
3924         * modules/fmodl-ieee: New file.
3925
3926         Tests for module 'fmod-ieee'.
3927         * modules/fmod-ieee-tests: New file.
3928         * tests/test-fmod-ieee.c: New file.
3929
3930         New module 'fmod-ieee'.
3931         * modules/fmod-ieee: New file.
3932
3933         Tests for module 'fmodf-ieee'.
3934         * modules/fmodf-ieee-tests: New file.
3935         * tests/test-fmodf-ieee.c: New file.
3936         * tests/test-fmod-ieee.h: New file.
3937
3938         New module 'fmodf-ieee'.
3939         * modules/fmodf-ieee: New file.
3940
3941 2012-02-27  Bruno Haible  <bruno@clisp.org>
3942
3943         Tests for module 'rintl-ieee'.
3944         * modules/rintl-ieee-tests: New file.
3945         * tests/test-rintl-ieee.c: New file.
3946
3947         New module 'rintl-ieee'.
3948         * modules/rintl-ieee: New file.
3949
3950         Tests for module 'rint-ieee'.
3951         * modules/rint-ieee-tests: New file.
3952         * tests/test-rint-ieee.c: New file.
3953
3954         New module 'rint-ieee'.
3955         * modules/rint-ieee: New file.
3956
3957         Tests for module 'rintf-ieee'.
3958         * modules/rintf-ieee-tests: New file.
3959         * tests/test-rintf-ieee.c: New file.
3960         * tests/test-rint-ieee.h: New file.
3961
3962         New module 'rintf-ieee'.
3963         * modules/rintf-ieee: New file.
3964
3965 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3966
3967         regex: re_search etc. should return -2 when memory exhausted
3968         This bug was uncovered when testing 'grep'.  Without the fix,
3969         re_search and friends return -1 when memory is exhausted, but -1
3970         means no match, and this causes grep to falsely report no-match
3971         instead of memory-exhaustion.  See
3972         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3973         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3974         trouble; this can occur if re_search_internal ran out of memory.
3975
3976 2012-02-26  Bruno Haible  <bruno@clisp.org>
3977
3978         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3979         * m4/modfl-ieee.m4: New file.
3980         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3981         whether modfl works with Inf. Replace it if not.
3982         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3984         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3985         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3986         (Depends-on): Update dependencies.
3987         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3988         m4/signbit.m4.
3989         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3990         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3991
3992         modfl-ieee: Fix dependencies.
3993         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3994
3995         modfl-ieee: Fix test failures.
3996         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3997         * modules/modfl (Depends-on): Add isfinite, isinf.
3998
3999         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4000         * m4/modff-ieee.m4: New file.
4001         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4002         whether modff works with NaN and Inf. Replace it if not.
4003         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4005         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4006         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4007         (Depends-on): Update dependencies.
4008         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4009         m4/signbit.m4.
4010         (Depends-on): Add modf-ieee.
4011         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4012         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4013
4014         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4015         * m4/modf-ieee.m4: New file.
4016         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4017         whether modf works with NaN and Inf. Replace it if not.
4018         * lib/math.in.h (modf): New declaration.
4019         * lib/modf.c: New file.
4020         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4022         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4023         * modules/modf (Files): Add lib/modf.c.
4024         (Depends-on): Add math, isfinite, trunc, isinf.
4025         (configure.ac): Addrange to compile lib/modf.c if needed.
4026         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4027         m4/signbit.m4.
4028         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4029         * tests/test-math-c++.cc: Check the declaration of modf.
4030         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4031
4032         Tests for module 'modfl-ieee'.
4033         * modules/modfl-ieee-tests: New file.
4034         * tests/test-modfl-ieee.c: New file.
4035
4036         New module 'modfl-ieee'.
4037         * modules/modfl-ieee: New file.
4038
4039         Tests for module 'modf-ieee'.
4040         * modules/modf-ieee-tests: New file.
4041         * tests/test-modf-ieee.c: New file.
4042
4043         New module 'modf-ieee'.
4044         * modules/modf-ieee: New file.
4045
4046         Tests for module 'modff-ieee'.
4047         * modules/modff-ieee-tests: New file.
4048         * tests/test-modff-ieee.c: New file.
4049         * tests/test-modf-ieee.h: New file.
4050
4051         New module 'modff-ieee'.
4052         * modules/modff-ieee: New file.
4053
4054 2012-02-26  Bruno Haible  <bruno@clisp.org>
4055
4056         Tests for module 'fabsl-ieee'.
4057         * modules/fabsl-ieee-tests: New file.
4058         * tests/test-fabsl-ieee.c: New file.
4059
4060         New module 'fabsl-ieee'.
4061         * modules/fabsl-ieee: New file.
4062
4063         Tests for module 'fabs-ieee'.
4064         * modules/fabs-ieee-tests: New file.
4065         * tests/test-fabs-ieee.c: New file.
4066
4067         New module 'fabs-ieee'.
4068         * modules/fabs-ieee: New file.
4069
4070         Tests for module 'fabsf-ieee'.
4071         * modules/fabsf-ieee-tests: New file.
4072         * tests/test-fabsf-ieee.c: New file.
4073         * tests/test-fabs-ieee.h: New file.
4074
4075         New module 'fabsf-ieee'.
4076         * modules/fabsf-ieee: New file.
4077
4078 2012-02-26  Bruno Haible  <bruno@clisp.org>
4079
4080         Tests for module 'fmal-ieee'.
4081         * modules/fmal-ieee-tests: New file.
4082         * tests/test-fmal-ieee.c: New file.
4083
4084         New module 'fmal-ieee'.
4085         * modules/fmal-ieee: New file.
4086
4087         Tests for module 'fma-ieee'.
4088         * modules/fma-ieee-tests: New file.
4089         * tests/test-fma-ieee.c: New file.
4090
4091         New module 'fma-ieee'.
4092         * modules/fma-ieee: New file.
4093
4094         Tests for module 'fmaf-ieee'.
4095         * modules/fmaf-ieee-tests: New file.
4096         * tests/test-fmaf-ieee.c: New file.
4097         * tests/test-fma-ieee.h: New file.
4098
4099         New module 'fmaf-ieee'.
4100         * modules/fmaf-ieee: New file.
4101
4102 2012-02-26  Bruno Haible  <bruno@clisp.org>
4103
4104         Tests for module 'ldexpl-ieee'.
4105         * modules/ldexpl-ieee-tests: New file.
4106         * tests/test-ldexpl-ieee.c: New file.
4107
4108         New module 'ldexpl-ieee'.
4109         * modules/ldexpl-ieee: New file.
4110
4111         Tests for module 'ldexp-ieee'.
4112         * modules/ldexp-ieee-tests: New file.
4113         * tests/test-ldexp-ieee.c: New file.
4114
4115         New module 'ldexp-ieee'.
4116         * modules/ldexp-ieee: New file.
4117
4118         Tests for module 'ldexpf-ieee'.
4119         * modules/ldexpf-ieee-tests: New file.
4120         * tests/test-ldexpf-ieee.c: New file.
4121         * tests/test-ldexp-ieee.h: New file.
4122
4123         New module 'ldexpf-ieee'.
4124         * modules/ldexpf-ieee: New file.
4125
4126 2012-02-26  Bruno Haible  <bruno@clisp.org>
4127
4128         Refactor frexp*-ieee tests.
4129         * tests/test-frexp-ieee.h: New file.
4130         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4131         (main): Just call test_function.
4132         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4133         (main): Just call test_function.
4134         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4135         (main): Just call test_function.
4136         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4137         * modules/frexp-ieee-tests (Files): Likewise.
4138         * modules/frexpl-ieee-tests (Files): Likewise.
4139
4140         Tests for module 'frexpl-ieee'.
4141         * modules/frexpl-ieee-tests: New file.
4142         * tests/test-frexpl-ieee.c: New file.
4143
4144         New module 'frexpl-ieee'.
4145         * modules/frexpl-ieee: New file.
4146
4147         Tests for module 'frexp-ieee'.
4148         * modules/frexp-ieee-tests: New file.
4149         * tests/test-frexp-ieee.c: New file.
4150
4151         New module 'frexp-ieee'.
4152         * modules/frexp-ieee: New file.
4153
4154         Tests for module 'frexpf-ieee'.
4155         * modules/frexpf-ieee-tests: New file.
4156         * tests/test-frexpf-ieee.c: New file.
4157
4158         New module 'frexpf-ieee'.
4159         * modules/frexpf-ieee: New file.
4160
4161 2012-02-26  Bruno Haible  <bruno@clisp.org>
4162
4163         roundl-ieee tests: More tests.
4164         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4165         (main): Add tests for [MX] shaded specification in POSIX.
4166         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4167         (Depends-on): Add isnanl-nolibm.
4168
4169         round-ieee tests: More tests.
4170         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4171         (main): Add tests for [MX] shaded specification in POSIX.
4172         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4173         (Depends-on): Add isnand-nolibm.
4174
4175         roundf-ieee tests: More tests.
4176         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4177         (main): Add tests for [MX] shaded specification in POSIX.
4178         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4179         (Depends-on): Add isnanf-nolibm.
4180
4181         truncl-ieee tests: More tests.
4182         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4183         (main): Add tests for [MX] shaded specification in POSIX.
4184         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4185         (Depends-on): Add isnanl-nolibm.
4186
4187         trunc-ieee tests: More tests.
4188         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4189         (main): Add tests for [MX] shaded specification in POSIX.
4190         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4191         (Depends-on): Add isnand-nolibm.
4192
4193         truncf-ieee tests: More tests.
4194         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4195         (main): Add tests for [MX] shaded specification in POSIX.
4196         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4197         (Depends-on): Add isnanf-nolibm.
4198
4199         ceill-ieee tests: More tests.
4200         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4201         (main): Add tests for [MX] shaded specification in POSIX.
4202         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4203         (Depends-on): Add isnanl-nolibm.
4204
4205         ceil-ieee tests: More tests.
4206         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4207         (main): Add tests for [MX] shaded specification in POSIX.
4208         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4209         (Depends-on): Add isnand-nolibm.
4210
4211         ceilf-ieee tests: More tests.
4212         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4213         (main): Add tests for [MX] shaded specification in POSIX.
4214         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4215         (Depends-on): Add isnanf-nolibm.
4216
4217         floorl-ieee tests: More tests.
4218         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4219         (main): Add tests for [MX] shaded specification in POSIX.
4220         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4221         (Depends-on): Add isnanl-nolibm.
4222
4223         floor-ieee tests: More tests.
4224         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4225         (main): Add tests for [MX] shaded specification in POSIX.
4226         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4227         (Depends-on): Add isnand-nolibm.
4228
4229         floorf-ieee tests: More tests.
4230         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4231         (main): Add tests for [MX] shaded specification in POSIX.
4232         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4233         (Depends-on): Add isnanf-nolibm.
4234
4235 2012-02-26  Bruno Haible  <bruno@clisp.org>
4236
4237         fpieee: More comments.
4238         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4239
4240 2012-02-25  Bruno Haible  <bruno@clisp.org>
4241
4242         Tests for module 'log10l'.
4243         * modules/log10l-tests: New file.
4244         * tests/test-log10l.c: New file.
4245         * tests/test-math-c++.cc: Check the declaration of log10l.
4246
4247         New module 'log10l'.
4248         * lib/math.in.h (log10l): New declaration.
4249         * lib/log10l.c: New file.
4250         * m4/log10l.m4: New file.
4251         * modules/log10l: New file.
4252         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4253         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4254         HAVE_DECL_LOG10L.
4255         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
4256         HAVE_DECL_LOG10L.
4257         * doc/posix-functions/log10l.texi: Mention the new module.
4258
4259 2012-02-25  Bruno Haible  <bruno@clisp.org>
4260
4261         fmodl, remainder*: Avoid wrong results due to rounding errors.
4262         * lib/fmodl.c (fmodl): Correct the result if it is not within the
4263         expected bounds.
4264         * lib/remainderf.c (remainderf): Likewise.
4265         * lib/remainder.c (remainder): Likewise.
4266         * lib/remainderl.c (remainderl): Likewise.
4267
4268 2012-02-25  Bruno Haible  <bruno@clisp.org>
4269
4270         Tests for module 'remainderl'.
4271         * modules/remainderl-tests: New file.
4272         * tests/test-remainderl.c: New file.
4273         * tests/test-math-c++.cc: Check the declaration of remainderl.
4274
4275         New module 'remainderl'.
4276         * lib/math.in.h (remainderl): New declaration.
4277         * lib/remainderl.c: New file.
4278         * m4/remainderl.m4: New file.
4279         * modules/remainderl: New file.
4280         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4282         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4283         HAVE_REMAINDERL.
4284         * doc/posix-functions/remainderl.texi: Mention the new module.
4285
4286 2012-02-25  Bruno Haible  <bruno@clisp.org>
4287
4288         Tests for module 'remainderf'.
4289         * modules/remainderf-tests: New file.
4290         * tests/test-remainderf.c: New file.
4291         * tests/test-math-c++.cc: Check the declaration of remainderf.
4292
4293         New module 'remainderf'.
4294         * lib/math.in.h (remainderf): New declaration.
4295         * lib/remainderf.c: New file.
4296         * m4/remainderf.m4: New file.
4297         * modules/remainderf: New file.
4298         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4299         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4300         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4301         HAVE_REMAINDERF.
4302         * doc/posix-functions/remainderf.texi: Mention the new module.
4303
4304 2012-02-25  Bruno Haible  <bruno@clisp.org>
4305
4306         remainder: Support for MSVC.
4307         * lib/math.in.h (remainder): New declaration.
4308         * lib/remainder.c: New file.
4309         * m4/remainder.m4: New file.
4310         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4311         (Depends-on): Add math, round, fma.
4312         (configure.ac): Use results of gl_FUNC_REMAINDER.
4313         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4314         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4315         HAVE_DECL_REMAINDER.
4316         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4317         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4318         * tests/test-math-c++.cc: Check the declaration of remainder.
4319         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4320         problems are fixed.
4321
4322 2012-02-25  Bruno Haible  <bruno@clisp.org>
4323
4324         Tests for module 'fmodl'.
4325         * modules/fmodl-tests: New file.
4326         * tests/test-fmodl.c: New file.
4327         * tests/test-math-c++.cc: Check the declaration of fmodl.
4328
4329         New module 'fmodl'.
4330         * lib/math.in.h (fmodl): New declaration.
4331         * lib/fmodl.c: New file.
4332         * m4/fmodl.m4: New file.
4333         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
4334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
4335         REPLACE_FMODL.
4336         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
4337         REPLACE_FMODL.
4338         * modules/fmodl: New file.
4339         * doc/posix-functions/fmodl.texi: Mention the new module.
4340
4341 2012-02-25  Bruno Haible  <bruno@clisp.org>
4342
4343         Tests for module 'modfl'.
4344         * modules/modfl-tests: New file.
4345         * tests/test-modfl.c: New file.
4346         * tests/test-math-c++.cc: Check the declaration of modfl.
4347
4348         New module 'modfl'.
4349         * lib/math.in.h (modfl): New declaration.
4350         * lib/modfl.c: New file.
4351         * m4/modfl.m4: New file.
4352         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
4353         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
4354         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
4355         * modules/modfl: New file.
4356         * doc/posix-functions/modfl.texi: Mention the new module.
4357
4358 2012-02-25  Bruno Haible  <bruno@clisp.org>
4359
4360         Tests for module 'fabsl'.
4361         * modules/fabsl-tests: New file.
4362         * tests/test-fabsl.c: New file.
4363         * tests/test-math-c++.cc: Check the declaration of fabsl.
4364
4365         New module 'fabsl'.
4366         * lib/math.in.h (fabsl): New declaration.
4367         * lib/fabsl.c: New file.
4368         * m4/fabsl.m4: New file.
4369         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
4370         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
4371         REPLACE_FABSL.
4372         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
4373         REPLACE_FABSL.
4374         * modules/fabsl: New file.
4375         * doc/posix-functions/fabsl.texi: Mention the new module.
4376
4377 2012-02-25  Bruno Haible  <bruno@clisp.org>
4378
4379         fabs tests: More tests.
4380         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
4381         (zero): New variable.
4382         (main): Add tests for signed zero.
4383         * modules/fabs-tests (Files): Add tests/minus-zero.h.
4384
4385         fabsf tests: More tests.
4386         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4387         (zero): New variable.
4388         (main): Add tests for signed zero.
4389         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4390
4391 2012-02-24  Bruno Haible  <bruno@clisp.org>
4392
4393         atanl: Provide function definition on MSVC.
4394         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4395         function pointer.
4396         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4397
4398 2012-02-24  Bruno Haible  <bruno@clisp.org>
4399
4400         acosl: Provide function definition on MSVC.
4401         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4402         function pointer.
4403         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4404
4405 2012-02-24  Bruno Haible  <bruno@clisp.org>
4406
4407         asinl: Provide function definition on MSVC.
4408         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
4409         function pointer.
4410         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
4411
4412 2012-02-24  Bruno Haible  <bruno@clisp.org>
4413
4414         tanl: Provide function definition on MSVC.
4415         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
4416         function pointer.
4417         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
4418
4419 2012-02-24  Bruno Haible  <bruno@clisp.org>
4420
4421         cosl: Provide function definition on MSVC.
4422         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
4423         function pointer.
4424         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
4425
4426 2012-02-24  Bruno Haible  <bruno@clisp.org>
4427
4428         sinl: Provide function definition on MSVC.
4429         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4430         function pointer.
4431         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4432
4433 2012-02-24  Bruno Haible  <bruno@clisp.org>
4434
4435         logl: Provide function definition on MSVC.
4436         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
4437         function pointer.
4438         * lib/math.in.h (logl): Undefine if it does not exist as a function.
4439
4440 2012-02-24  Bruno Haible  <bruno@clisp.org>
4441
4442         expl: Provide function definition on MSVC.
4443         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
4444         function pointer.
4445         * lib/math.in.h (expl): Undefine if it does not exist as a function.
4446
4447 2012-02-24  Bruno Haible  <bruno@clisp.org>
4448
4449         sqrtl: Provide function definition on MSVC.
4450         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
4451         a function pointer.
4452         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
4453
4454 2012-02-24  Bruno Haible  <bruno@clisp.org>
4455
4456         ceill: Provide function definition on MSVC.
4457         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
4458         used as a function pointer.
4459         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
4460
4461 2012-02-24  Bruno Haible  <bruno@clisp.org>
4462
4463         floorl: Provide function definition on MSVC.
4464         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
4465         used as a function pointer.
4466         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
4467
4468 2012-02-24  Bruno Haible  <bruno@clisp.org>
4469
4470         ceilf: Provide function definition on MSVC.
4471         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
4472         used as a function pointer.
4473         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
4474
4475 2012-02-24  Bruno Haible  <bruno@clisp.org>
4476
4477         floorf: Provide function definition on MSVC.
4478         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
4479         used as a function pointer.
4480         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
4481
4482 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4483
4484         stdnoreturn: new module
4485         This implements a replacement for C11's <stdnoreturn.h>.
4486         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4487         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4488         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4489         * tests/test-stdnoreturn.c: New files.
4490
4491 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4492
4493         regex: fix false multibyte matches in some regular expressions
4494         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4495         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4496         * lib/regex_internal.c (re_string_skip_chars):
4497         Fix miscomputation of remain_len that may cause incomplete
4498         multi-byte character and false match.
4499
4500 2012-02-24  Jim Meyering  <meyering@redhat.com>
4501
4502         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4503         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4504         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4505         Remove now-unnecessary str''cmp obfuscation.
4506         Suggested by Akim Demaille.
4507
4508 2012-02-24  Bruno Haible  <bruno@clisp.org>
4509
4510         streq: Rename macro.
4511         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4512         * NEWS: Mention the change.
4513         * lib/mbrtowc.c (mbrtowc): Update.
4514         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4515         * lib/wcwidth.c (wcwidth): Update.
4516         Suggested by Akim Demaille and Jim Meyering.
4517
4518 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4519
4520         regex: fix typo in definition of MIN
4521         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4522         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4523
4524 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4525             Bruno Haible  <bruno@clisp.org>
4526
4527         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4528         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4529         entries into a stack-allocated buffer directly.
4530         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4531
4532 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4533             Bruno Haible  <bruno@clisp.org>
4534
4535         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4536
4537          - There were several instances of this pattern:
4538
4539              for (;;) {
4540                n = acl (f, GETACLCNT, 0, NULL);
4541                [ allocate an array A of size N ]
4542                if (acl (f, GETACL, n, a) == n)
4543                  break;
4544              }
4545
4546            This loop might never terminate if some other process is constantly
4547            manipulating the file's ACL.  The loop should be rewritten to
4548            terminate.
4549
4550          - The acl (... GETACLNT ...) call is merely an optimization; its value
4551            is merely a hint as to how big to make the array.  A better
4552            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4553            and just guess a reasonably-big size, growing the size and trying
4554            again if it's not large enough.  This guarantees termination, and
4555            saves a system call.
4556
4557         * lib/acl-internal.h: Include <limits.h>.
4558         (MIN, SIZE_MAX): New macros.
4559         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4560         a stack-allocated buffer, and use malloc if it does not fit. Don't
4561         use GETACLCNT.
4562         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4563
4564 2012-02-19  Bruno Haible  <bruno@clisp.org>
4565
4566         acl: Fix endless loop on Solaris with vxfs.
4567         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4568         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4569         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4570         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4571         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4572         Reported by Bill Jones in
4573         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4574
4575 2012-02-19  Bruno Haible  <bruno@clisp.org>
4576
4577         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4578         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4579         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4580         that this function returns 0 in some more cases.
4581
4582 2012-02-19  Bruno Haible  <bruno@clisp.org>
4583
4584         acl: Update doc references.
4585         * doc/acl-resources.txt: Update links to Solaris documentation.
4586
4587 2012-02-19  Bruno Haible  <bruno@clisp.org>
4588
4589         Fix test failure in many locales on Solaris 11.
4590         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4591         'tr' arguments.
4592         * tests/test-pipe-filter-ii1.c (main): Likewise.
4593         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4594         expressions in the C locale.
4595         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4596         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4597
4598 2012-02-19  Bruno Haible  <bruno@clisp.org>
4599
4600         gnulib-tool: Improve usage message.
4601         * gnulib-tool (func_usage): Move doc of --help and --version to the
4602         section "Operation modes".
4603
4604 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4605
4606         README-release: make it easier to execute commands
4607         * top/README-release: break commands out on to separate lines.
4608
4609 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4610
4611         GNUmakefile: simplify detection of unconfigured trees
4612         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4613         whether the tree make is being run from is already configured or
4614         not.  Related simplifications.
4615
4616 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4617
4618         * gnulib-tool (func_usage): Document --help and --version.
4619
4620 2012-02-11  Jim Meyering  <meyering@redhat.com>
4621
4622         bootstrap: don't exit 0 upon gnulib-tool failure
4623         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4624         its exit status, not 0.
4625
4626 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4627
4628         README-release: various improvements
4629         * top/README-release: Give a command to push changes for the
4630         release.  Add "distcheck" to list of other pre-release checks.
4631         Fix instance of "make stable" which should be "make TYPE".
4632
4633 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4634
4635         maint: replace FSF snail-mail addresses with URLs
4636         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4637         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4638         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4639         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4640         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4641         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4642         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4643         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4644         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4645         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4646         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4647         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4648         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4649         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4650         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4651         * lib/glthread/thread.c, lib/glthread/thread.h:
4652         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4653         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4654         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4655         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4656         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4657         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4658         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4659         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4660         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4661         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4662         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4663         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4664         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4665         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4666         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4667         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4668         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4669         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4670         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4671         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4672         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4673         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4674         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4675         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4676         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4677         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4678         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4679         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4680         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4681         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4682         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4683         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4684         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4685         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4686         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4687         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4688         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4689         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4690         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4691         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4692         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4693         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4694         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4695         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4696         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4697         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4698         * tests/test-poll.c, tests/test-quotearg-simple.c:
4699         * tests/test-quotearg.c, tests/test-quotearg.h:
4700         * tests/test-round-ieee.c, tests/test-round1.c:
4701         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4702         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4703         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4704         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4705         * tests/test-strerror.c, tests/test-strerror_r.c:
4706         * tests/test-strsignal.c, tests/test-strverscmp.c:
4707         * tests/test-xmemdup0.c:
4708         Replace FSF snail mail addresses with URLs, as per GNU coding
4709         standards.  See glibc bug
4710         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4711
4712 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4713
4714         README-release: capitalize a word and split a line
4715         * top/README-release: Fix punctuation and spacing.
4716
4717 2012-02-08  Akim Demaille  <demaille@gostai.com>
4718
4719         fatal-signal: use C prototypes (with explicit void).
4720         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4721         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4722
4723 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4724
4725         regex: spelling fix
4726         * lib/regexec.c: spelling fix
4727
4728         regex: rely on stdint.h for SIZE_MAX
4729         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4730
4731 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4732
4733         regex: merge glibc changes
4734
4735         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4736         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4737         (init_word_char): Work even if bitset words are not exactly 32 or
4738         64 bits wide.  Don't assume there are no padding bits.
4739         * lib/regex.c [_LIBC]: Do not include <config.h>.
4740         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4741         and -Wtype-limits.
4742         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4743         needless disagreement with glibc.  All uses changed.  Define it to
4744         1 only if _GNU_SOURCE, to match glibc.
4745         (_REG_RM_NAME): Remove; no longer needed, since the names in
4746         question are now all protected by __USE_GNU.
4747         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4748         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4749         * lib/regex_internal.h (MIN): New macro.
4750
4751         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4752         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4753
4754         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4755         * lib/regex_internal.c (re_string_fetch_byte_case):
4756         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4757         is miscompiled, and it turns out it is because of an incorrect
4758         attribute on re_string_fetch_byte_case.  Unlike
4759         re_string_peek_byte_case, this one is really not pure, it modifies
4760         memory (increments pstr->cur_idx), and with the pure attribute GCC
4761         assumed it doesn't and it cached the presumed value of
4762         regexp->cur_idx in a variable across the
4763          for (;; ++i)
4764            {
4765              if (i >= BRACKET_NAME_BUF_SIZE)
4766                return REG_EBRACK;
4767              if (token->type == OP_OPEN_CHAR_CLASS)
4768                ch = re_string_fetch_byte_case (regexp);
4769              else
4770                ch = re_string_fetch_byte (regexp);
4771              if (re_string_eoi(regexp))
4772                return REG_EBRACK;
4773              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4774                break;
4775              elem->opr.name[i] = ch;
4776            }
4777
4778         2011-11-29 Andreas Schwab <schwab@redhat.com>
4779         * lib/regcomp.c (build_equiv_class):
4780         Fix access after end of search string in regex matcher.
4781
4782         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4783         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4784
4785         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4786         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4787
4788         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4789         * lib/regcomp.c (parse_branch, parse_sub_exp):
4790         More regex memory leak fixes and tests.
4791         (parse_sub_exp, parse_bracket_exp):
4792         Fix memory leak for some invalid regular expressions.
4793
4794         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4795         * lib/regex_internal.c, lib/regexec.c:
4796         Fix unnecessary overallocation due to incomplete character.  When
4797         incomplete characters are found at the end of a string the code
4798         ran amok and allocated lots of memory.  Stricter limits are now in
4799         place.
4800
4801         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4802         * lib/regex.h: Update documentation.
4803
4804         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4805         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4806
4807         2010-05-05 Andreas Schwab <schwab@redhat.com>
4808         * lib/regexec.c (find_collation_sequence_value):
4809         Fix lookup of collation sequence value during regexp matching.
4810
4811         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4812         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4813
4814         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4815         * lib/regex.h: Cleanup namespace.
4816
4817         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4818         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4819
4820         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4821         * lib/regex_internal.h: Prevent some declarations and definitions
4822         to be seen when used in tests.
4823
4824         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4825         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4826         __libc_lock_* macros if not _LIBC.
4827         (struct re_dfa_t): Add lock.
4828
4829 2012-02-07  Eric Blake  <eblake@redhat.com>
4830
4831         maint.mk: also prohibit lower-case @var@
4832         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4833         lower case, like @top_srcdir@.
4834
4835 2012-02-04  Eric Blake  <eblake@redhat.com>
4836
4837         canonicalize: avoid uninitialized memory use
4838         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4839         random '/' left in dest.
4840         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4841
4842 2012-02-04  Bruno Haible  <bruno@clisp.org>
4843
4844         isatty: Fix test failure of ptsname_r on native Windows.
4845         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4846         and don't set errno.
4847         (isatty): Test first whether fd is valid. Set errno when returning 0.
4848
4849 2012-02-04  Bruno Haible  <bruno@clisp.org>
4850
4851         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4852         * tests/test-spawn-pipe-main.c: Include progname.h.
4853         (main): Invoke set_program_name.
4854         * modules/spawn-pipe-tests (Depends-on): Add progname.
4855
4856         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4857         * tests/test-nonblocking-socket-main.c: Include progname.h.
4858         (main): Invoke set_program_name.
4859         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4860
4861         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4862         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4863         (main): Invoke set_program_name.
4864         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4865
4866 2012-02-04  Eric Blake  <eblake@redhat.com>
4867
4868         canonicalize-lgpl: fix // handling
4869         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4870
4871         canonicalize: fix // handling
4872         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4873         /// to //, since only // is special.
4874
4875 2012-02-04  Bruno Haible  <bruno@clisp.org>
4876
4877         ioctl: Fix test failure on native Windows.
4878         * lib/ioctl.c: Include msvc-nothrow.h.
4879         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4880
4881 2012-02-04  Bruno Haible  <bruno@clisp.org>
4882
4883         fsync: Avoid test failure on native Windows.
4884         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4885         read-only.
4886
4887 2012-02-04  Bruno Haible  <bruno@clisp.org>
4888
4889         sys_select: Avoid syntax error on OpenBSD 5.0.
4890         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4891         currently being included, just include the system's <sys/select.h>.
4892
4893 2012-02-04  Bruno Haible  <bruno@clisp.org>
4894
4895         sys_select: Avoid syntax error on OpenBSD 5.0.
4896         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4897         <sys/select.h>, not before.
4898         Reported by Jiri B <jirib@devio.us>.
4899
4900 2012-02-04  Bruno Haible  <bruno@clisp.org>
4901
4902         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4903         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4904         global variables.
4905         * tests/test-get-rusage-data.c (main): Likewise.
4906         Reported by Jim Meyering.
4907
4908 2012-02-04  Bruno Haible  <bruno@clisp.org>
4909
4910         stdioext: Fix last commit.
4911         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4912
4913 2012-02-03  Bruno Haible  <bruno@clisp.org>
4914
4915         stdioext: Add tentative support for Plan9.
4916         * lib/stdio-impl.h: Include <errno.h>.
4917         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4918         * lib/freadable.c (freadable): Likewise.
4919         * lib/fwritable.c (fwritable): Likewise.
4920         * lib/fbufmode.c (fbufmode): Likewise.
4921         * lib/freading.c (freading): Likewise.
4922         * lib/fwriting.c (fwriting): Likewise.
4923         * lib/freadptr.c (freadptr): Likewise.
4924         * lib/freadseek.c (freadptrinc): Likewise.
4925         * lib/freadahead.c (freadahead): Likewise.
4926         * lib/fpurge.c (fpurge): Likewise.
4927         * lib/fseeko.c (rpl_fseeko): Likewise.
4928         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4929         Reported by Jens Staal <staal1978@gmail.com>.
4930
4931 2012-02-02  Jim Meyering  <meyering@redhat.com>
4932
4933         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4934         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4935         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4936         not even to try to add the attribute.  Instead, add a pragma to suppress
4937         the suggestion/warning.
4938
4939 2012-01-31  Karl Berry  <karl@gnu.org>
4940
4941         setstate doc: typo.
4942         * doc/posix-functions/setstate.texi (setstate): { not (.
4943
4944 2012-01-31  Bruno Haible  <bruno@clisp.org>
4945
4946         popen: Make more robust on Windows.
4947         * lib/popen.c: On native Windows, use the _popen based code even if
4948         HAVE_POPEN is set.
4949         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4950         environment variable on native Windows.
4951
4952 2012-01-30  Bruno Haible  <bruno@clisp.org>
4953
4954         pclose: Fix typo.
4955         * lib/stdio.in.h (pclose): Fix typo in warning message.
4956
4957 2012-01-30  Bruno Haible  <bruno@clisp.org>
4958
4959         doc about getlogin_r, setstate.
4960         * doc/posix-functions/getlogin_r.texi: List the incompatible
4961         declaration problem under "not fixed by gnulib".
4962         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4963         problem on Solaris 11 and other platforms.
4964
4965 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4966             Bruno Haible  <bruno@clisp.org>
4967
4968         poll tests: Make test more robust.
4969         * tests/test-poll.c: Include macros.h.
4970         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4971         return value of various I/O operations.
4972         * modules/poll-tests (Files): Add tests/macros.h.
4973
4974 2012-01-30  Bruno Haible  <bruno@clisp.org>
4975
4976         sys_stat: Fix support for mingw64 and MSVC.
4977         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4978         header files already do it.
4979         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4980         stat itself.
4981         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4982
4983 2012-01-30  Bruno Haible  <bruno@clisp.org>
4984
4985         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4986         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4987         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4988
4989 2012-01-29  Bruno Haible  <bruno@clisp.org>
4990
4991         quotearg: Fix test failure on MacOS X 10.5.
4992         * tests/test-quotearg-simple.c: Include localcharset.h.
4993         (main): If the locale encoding is not ASCII, bypass the tests of
4994         locale_quoting_style and clocale_quoting_style.
4995         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4996
4997 2012-01-29  Jim Meyering  <meyering@redhat.com>
4998
4999         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5000         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5001         detect uses of canonicalize_file_name.
5002
5003 2012-01-28  Bruno Haible  <bruno@clisp.org>
5004
5005         test-framework-sh: Fix test failure with AIX 7.1 diff.
5006         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5007         in column 1, like 'diff -c' does.
5008         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5009         whether 'diff -u' is used. Instead, test whether the output contains
5010         some '@' character.
5011
5012 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5013
5014         strtoimax: eliminate need for stdint.h, inttypes.h checks
5015         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5016         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5017         the prerequisites for a recently-introduced strtoimax test.
5018         I guess this might cause strtoimax to be replaced when not
5019         strictly necessary on older hosts, but this shouldn't introduce
5020         any bugs and it should make Emacs 'configure' faster on typical
5021         modern hosts.  Problem discovered when importing the latest gnulib
5022         to an Emacs test version.
5023         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5024
5025 2012-01-28  Bruno Haible  <bruno@clisp.org>
5026
5027         sys_time: Override 'struct timeval' on some native Windows platforms.
5028         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5029         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5030         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5031         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5032         needs to be overridden.
5033         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5034         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5035         * tests/test-sys_select.c: Check that the tv_sec member has the same
5036         size as a 'time_t'.
5037         * tests/test-sys_time.c: Likewise.
5038         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5039         is set, set also REPLACE_GETTIMEOFDAY.
5040         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5041         convert the resulting 'struct timeval' before returning.
5042         * lib/select.c: Include <sys/time.h>.
5043         (select, timeval): Undefine at the right place.
5044         * modules/select (Depends-on): Add sys_time.
5045         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5046         some Windows platforms.
5047         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5048
5049 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5050
5051         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5052         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5053         an integer.
5054         * lib/fcntl.c (dupfd): Likewise.
5055         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5056
5057 2012-01-28  Bruno Haible  <bruno@clisp.org>
5058
5059         fcntl: Avoid compilation error on native Windows.
5060         * modules/fcntl (Depends-on): Add 'close'.
5061
5062 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5063
5064         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5065         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5066         pointer to an integer.
5067         * lib/poll.c (IsConsoleHandle): Likewise.
5068         * lib/isatty.c (IsConsoleHandle): Likewise.
5069
5070 2012-01-28  Jim Meyering  <meyering@redhat.com>
5071
5072         doc: clarify README-release
5073         * top/README-release: Clarify: you should make a point to have
5074         the latest stable versions of build tools in your PATH, and the
5075         reference to buildreq is solely for its list of tool names, not
5076         for its minimal-functional version numbers.
5077         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5078
5079         maint.mk: use more readable (yet functionally equivalent) quoting
5080         It is common to quote a single quote in a single quoted string like
5081         this:  '...'\''...'.  Unless you know the idiom, that looks like
5082         gibberish, so prefer to double-quote the string when possible.
5083         Then you can use a more readable, lone single quote: "...'..."
5084         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5085         "don't" is more readable than the equivalent 'don'\''t'.
5086         (sc_cast_of_x_alloc_return_value): Likewise.
5087         (sc_cast_of_alloca_return_value): Likewise.
5088         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5089         rather than '\'':'\''.
5090
5091 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5092
5093         stdalign: relax _Alignof and tighten _Alignas test
5094         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5095         as it was too strict: alignof must divide offsetof, but it need
5096         not equal offsetof.  Inspired by Joseph S. Myers's comment
5097         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5098         Conversely, tighten the _Alignas test a bit, as the resulting
5099         alignment must be exactly 8.
5100
5101 2012-01-27  Bruno Haible  <bruno@clisp.org>
5102
5103         stdalign: Document the last change.
5104         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5105
5106 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5107
5108         stdalign: check that alignof and offsetof are consistent
5109         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5110         Problem reported for gnulib by Richard W.M. Jones in
5111         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5112
5113 2012-01-27  Jim Meyering  <meyering@redhat.com>
5114
5115         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5116         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5117         convert a sequence with gaps to the minimal containing range.
5118         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5119         * tests/test-update-copyright.sh: Test for this.
5120         The FSF confirmed it is ok to do this, assuming there is at
5121         least one significant change per year in the affected range:
5122         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5123
5124 2012-01-26  Bruno Haible  <bruno@clisp.org>
5125
5126         pipe2: refine doc about thread-safety
5127         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5128         multithread-safety problem.
5129         * doc/glibc-functions/accept4.texi: Likewise.
5130
5131 2012-01-26  Bruno Haible  <bruno@clisp.org>
5132
5133         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5134         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5135         In the test program, include <fcntl.h>, for O_RDONLY.
5136
5137 2012-01-26  Eric Blake  <eblake@redhat.com>
5138
5139         pipe2: document lack of thread-safety in replacement
5140         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5141         issue in replacement.
5142         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5143         Based on a report by Eric Wong.
5144
5145 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5146             Bruno Haible  <bruno@clisp.org>
5147
5148         malloca: Avoid warnings on x86_64 mingw64.
5149         * lib/malloca.c: Include <stdint.h>.
5150         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5151         * modules/malloca (Depends-on): Add stdint.
5152         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5153
5154 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5155
5156         obstack: remove __STDC__ conditionals
5157         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5158         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5159         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5160         m4/include_next.m4 as the only gnulib-maintained places that still
5161         refer to __STDC__.
5162
5163 2012-01-24  Bruno Haible  <bruno@clisp.org>
5164
5165         havelib: Modern quoting.
5166         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5167         the recent change to the GNU coding standards.
5168
5169 2012-01-24  Bruno Haible  <bruno@clisp.org>
5170
5171         stdint: Improve support for Android.
5172         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5173         Reported by Simon Josefsson <simon@josefsson.org>.
5174
5175 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5176
5177         doc: omit trailing empty lines from INSTALL etc.
5178         * doc/Makefile (INSTALL): Omit trailing empty lines.
5179         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5180         omit trailing empty lines.  This simplifies the build procedure.
5181
5182 2012-01-23  Jim Meyering  <meyering@redhat.com>
5183
5184         tests: avoid spurious warnings about gl_sockets_startup
5185         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5186         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5187         reporting a "statement with no effect".
5188         * tests/test-accept.c (main): Mark as "(void)".
5189         * tests/test-accept4.c (main): Likewise.
5190         * tests/test-bind.c (main): Likewise.
5191         * tests/test-connect.c (main): Likewise.
5192         * tests/test-getpeername.c (main): Likewise.
5193         * tests/test-getsockname.c (main): Likewise.
5194         * tests/test-getsockopt.c (main): Likewise.
5195         * tests/test-listen.c (main): Likewise.
5196         * tests/test-recv.c (main): Likewise.
5197         * tests/test-recvfrom.c (main): Likewise.
5198         * tests/test-send.c (main): Likewise.
5199         * tests/test-sendto.c (main): Likewise.
5200         * tests/test-setsockopt.c (main): Likewise.
5201         * tests/test-shutdown.c (main): Likewise.
5202
5203 2012-01-21  Bruno Haible  <bruno@clisp.org>
5204
5205         locale-fr.m4: Fix for Android.
5206         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5207         failure of the test program on Bionic libc.
5208
5209 2012-01-21  Jim Meyering  <meyering@redhat.com>
5210
5211         bootstrap: fail when bootstrap_post_import_hook fails
5212         Otherwise, it's far too easy to miss diagnostics emitted
5213         between gnulib-tool's output and that of running configure.
5214         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5215
5216 2012-01-17  Jim Meyering  <meyering@redhat.com>
5217
5218         maint: enable sc_trailing_blank
5219         * build-aux/pmccabe.css: Remove trailing blanks.
5220         * doc/acl-cygwin.txt: Likewise.
5221         * doc/gnu-oids.texi: Likewise
5222         * cfg.mk: Enable sc_trailing_blank.
5223         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5224
5225 2012-01-17  Jim Meyering  <meyering@redhat.com>
5226
5227         maint: enable sc_prohibit_openat_without_use
5228         * cfg.mk: Enable sc_prohibit_openat_without_use.
5229         Exempt lib/selinux-at.c.
5230
5231 2012-01-17  Jim Meyering  <meyering@redhat.com>
5232
5233         maint: enable sc_prohibit_cloexec_without_use
5234         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5235         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5236
5237 2012-01-17  Jim Meyering  <meyering@redhat.com>
5238
5239         maint: enable sc_prohibit_intprops_without_use
5240         * cfg.mk: Enable sc_prohibit_intprops_without_use
5241         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5242
5243 2012-01-17  Jim Meyering  <meyering@redhat.com>
5244
5245         maint: enable sc_prohibit_hash_pjw_without_use
5246         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5247         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5248         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5249         following " (".
5250
5251 2012-01-17  Jim Meyering  <meyering@redhat.com>
5252
5253         maint: enable double-word-prohibiting rule
5254         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5255         Exempt three files.
5256
5257 2012-01-17  Jim Meyering  <meyering@redhat.com>
5258
5259         maint: remove empty lines at EOF, but excluding modules/*
5260         Apply syntax rules at home as well as abroad.  Most changes
5261         were induced by running this:
5262           make srcdir=. _build-aux=build-aux -f top/maint.mk \
5263             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
5264             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
5265         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5266         Exempt modules/* and two binary files.
5267         Also exempt doc/INSTALL*, per request from Bruno Haible.
5268         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5269         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5270         * doc/Copyright/request-assign.future: Likewise.
5271         * doc/Copyright/request-disclaim.changes: Likewise.
5272         * doc/INSTALL: Likewise.
5273         * doc/INSTALL.ISO: Likewise.
5274         * doc/INSTALL.UTF-8: Likewise.
5275         * doc/acl-cygwin.txt: Likewise.
5276         * doc/acl-resources.txt: Likewise.
5277         * doc/fdl-1.2.texi: Likewise.
5278         * doc/fdl-1.3.texi: Likewise.
5279         * doc/fdl.texi: Likewise.
5280         * lib/argp-pin.c: Likewise.
5281         * lib/round.c: Likewise.
5282         * lib/unicase/u16-totitle.c: Likewise.
5283         * lib/unictype/block_test.c: Likewise.
5284         * lib/uninorm/canonical-decomposition.c: Likewise.
5285         * m4/README: Likewise.
5286         * m4/relocatable-lib.m4: Likewise.
5287         * tests/test-isnand-nolibm.c: Likewise.
5288         * tests/test-isnand.c: Likewise.
5289         * tests/uninorm/NormalizationTest.txt: Likewise.
5290
5291 2012-01-17  Jim Meyering  <meyering@redhat.com>
5292
5293         maint: add framework to run syntax-check rules against gnulib sources
5294         * cfg.mk: New file, to disable all currently-failing tests.
5295         We'll enable them one by one, as they are made to pass.
5296         * Makefile (sc_maint): New rule.
5297
5298 2012-01-21  Bruno Haible  <bruno@clisp.org>
5299
5300         stdint: Add support for Android.
5301         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5302         include the system's <stdint.h>.
5303         Reported by Simon Josefsson <simon@josefsson.org>.
5304
5305 2012-01-19  Jim Meyering  <meyering@redhat.com>
5306
5307         bootstrap: add bootstrap_post_import_hook
5308         Bison does still need something like the gnulib_mk_hook whose
5309         invocation I had to remove along with slurp in commit 767ccd40.
5310         Technically, we could get along without it, but doing so would
5311         have required living with a warning and a mandatory post-bootstrap
5312         automake rerun.
5313         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5314         (bootstrap_post_import_hook): New function.
5315         Invoke it after gnulib-tool --import and before autoreconf.
5316
5317 2012-01-18  Jim Meyering  <meyering@redhat.com>
5318
5319         gitlog-to-changelog: don't use "no_"-prefixed variable name
5320         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5321         to enable both --cluster and --no-cluster.  Change variable name,
5322         s/\$no_cluster/$cluster/, and reverse usage to match.
5323
5324         gitlog-to-changelog: use "||", not "or" in expressions
5325         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5326         expressions.
5327
5328 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
5329
5330         gitlog-to-changelog: new option --no-cluster
5331         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
5332         clustering of adjacent commit messages.
5333
5334 2012-01-17  Jim Meyering  <meyering@redhat.com>
5335
5336         maint: spell file systems with two words, not one
5337         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5338         two words, not one.
5339
5340 2012-01-16  Jim Meyering  <meyering@redhat.com>
5341
5342         bootstrap: add a FIXME comment to ensure we eventually remove the hack
5343         * build-aux/bootstrap (gnulib_tool_options): Add comment.
5344
5345 2012-01-16  Eric Blake  <eblake@redhat.com>
5346
5347         bootstrap: cater to autoconf 2.59
5348         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
5349         is not available.
5350
5351         bootstrap: properly check for libtool
5352         * build-aux/bootstrap (libtoolize): Also run libtool when older
5353         usage is detected.
5354
5355 2012-01-15  Bruno Haible  <bruno@clisp.org>
5356
5357         Improve support for MSVC 9.
5358         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
5359         clashes on MSVC.
5360         * lib/fcntl.in.h: Likewise.
5361         * lib/stdlib.in.h: Likewise.
5362         * lib/sys_stat.in.h: Likewise.
5363
5364 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
5365
5366         gnupload: we hold the master copy of this script now
5367         For motivation and more information, see:
5368         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
5369         * build-aux/gnupload: Make it clear in the heading comments that the
5370         master copy of this file is maintained by gnulib.  Since we are at
5371         it, bump its copyright year and ...
5372         ($scriptversion): ... the date in its version.
5373         ($usage): Patches and bug reports should be sent to the gnulib list,
5374         not the automake one.
5375         * config/srclist.txt: Don't try to sync 'gnupload' from automake
5376         anymore.
5377
5378 2012-01-15  Bruno Haible  <bruno@clisp.org>
5379
5380         Fix module 'random'.
5381         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
5382         initstate, setstate are declared.
5383
5384 2012-01-14  Bruno Haible  <bruno@clisp.org>
5385
5386         Tests for module 'random'.
5387         * modules/random-tests: New file.
5388         * tests/test-random.c: New file, based on tests/test-random_r.c.
5389
5390         New module 'random'.
5391         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5392         declarations.
5393         * lib/random.c: New file, based on glibc/stdlib/random.c.
5394         * m4/random.m4: New file.
5395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5396         HAVE_RANDOM.
5397         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5398         * modules/random: New file.
5399         * config/srclist.txt: Add an entry for random.c.
5400         * doc/posix-functions/random.texi: Mention the 'random' module.
5401         * doc/posix-functions/initstate.texi: Likewise.
5402         * doc/posix-functions/setstate.texi: Likewise.
5403         * doc/posix-functions/srandom.texi: Likewise.
5404
5405 2012-01-12  Bruno Haible  <bruno@clisp.org>
5406
5407         random_r: Use common idioms.
5408         * lib/random_r.c: Include <stdlib.h> first.
5409
5410         random_r: Override incompatible API on AIX, OSF/1.
5411         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5412         Override the system function if REPLACE_RANDOM_R is 1.
5413         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
5414         and OSF/1, set REPLACE_RANDOM_R.
5415         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
5416         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
5417         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
5418         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
5419         * doc/glibc-functions/random_r.texi: Likewise.
5420         * doc/glibc-functions/setstate_r.texi: Likewise.
5421
5422         random_r: Support for MSVC 9.
5423         * lib/random_r.c: Include stdint.h, not inttypes.h.
5424
5425 2012-01-12  Eric Blake  <eblake@redhat.com>
5426
5427         inet_ntop: guard extra work by IF_LINT
5428         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5429         better code generation when not checking for warnings.
5430         Suggested by Paul Eggert and Jim Meyering.
5431
5432         strptime: fix regression on mingw
5433         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5434         Fix regression.  Reported by Bruno Haible.
5435
5436 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
5437             Bruno Haible  <bruno@clisp.org>
5438
5439         copy-file: add error-code-returning variant.
5440         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
5441         (qcopy_file_preserving): New declaration.
5442         * lib/copy-file.c (qcopy_file_preserving): Renamed from
5443         copy_file_preserving. Change return type to 'int'. Don't emit an error
5444         message here.
5445         (copy_file_preserving): New function.
5446         * tests/test-copy-file.c: Include <stdlib.h>.
5447         (main): Test qcopy_file_preserving if the environment variable
5448         NO_STDERR_OUTPUT is set.
5449         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
5450         with NO_STDERR_OUTPUT
5451         * tests/test-copy-file-2.sh: Likewise.
5452
5453 2012-01-10  Bruno Haible  <bruno@clisp.org>
5454
5455         copy-file: Use 'quote' module consistently.
5456         * lib/copy-file.c (copy_file_preserving): Use quote().
5457
5458         copy-file: Refactor.
5459         * lib/copy-file.c: Include quote.h.
5460         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
5461         message here.
5462         * modules/copy-file (Depends-on): Add quote.
5463
5464         acl: Export qcopy_acl.
5465         * lib/acl.h (qcopy_acl): New declaration.
5466         * lib/copy-acl.c (qcopy_acl): Make non-static.
5467
5468         acl: Rename a local variable.
5469         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
5470
5471         acl: Align return values of copy_acl and qcopy_acl.
5472         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
5473         maybe < -1.
5474
5475 2012-01-11  Eric Blake  <eblake@redhat.com>
5476
5477         strptime: silence gcc warnings
5478         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
5479         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
5480         Reported by Daniel P. Berrange.
5481
5482         inet_ntop: silence gcc warning
5483         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5484         Reported by Daniel P. Berrange.
5485
5486 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5487
5488         getloadavg test: skip the test on GNU/Linux without /proc mounted
5489         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5490         file.  When /proc is not mounted, it always fails with ENOENT.
5491         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5492         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5493
5494 2012-01-10  Bruno Haible  <bruno@clisp.org>
5495
5496         regex: Avoid link error on MSVC 9.
5497         * modules/regex (Depends-on): Add wctype.
5498
5499 2012-01-10  Bruno Haible  <bruno@clisp.org>
5500
5501         doc: Mention --with-tests option.
5502         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5503         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5504         --with-tests.
5505         Reported by Reuben Thomas.
5506
5507 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5508
5509         users.txt: order package names lexicographically.
5510         * users.txt: Order package names lexicographically.
5511
5512 2012-01-10  Jim Meyering  <meyering@redhat.com>
5513
5514         maint.mk: fix description in comment
5515         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5516
5517         ignore-value: remove deprecated ignore_ptr function
5518         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5519         * NEWS: Note this.
5520
5521 2012-01-09  Jim Meyering  <meyering@redhat.com>
5522
5523         test-init.sh: avoid a subshell
5524         * tests/test-init.sh: Remove protective subshell.
5525         Suggested by Bernhard Voelker.  While a subshell is normally
5526         required to protect against older shells (Solaris, FreeBSD) that
5527         warn about a missing program before performing redirection, the
5528         shell-selection tests performed by init.sh probably exclude any
5529         offending shell.
5530
5531 2012-01-08  Bruno Haible  <bruno@clisp.org>
5532
5533         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5534         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5535         variable.
5536
5537 2012-01-08  Bruno Haible  <bruno@clisp.org>
5538
5539         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5540         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5541         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5542         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5543         macro.
5544         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5545         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5546         * lib/spawn_faction_addopen.c: Add workaround implementation if
5547         HAVE_WORKING_POSIX_SPAWN.
5548         * modules/spawn (Makefile): Substitute
5549         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5550         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5551         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5552         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5553         (Depends-on): Update conditions.
5554         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5555         the Solaris 11 bug.
5556
5557 2012-01-08  Bruno Haible  <bruno@clisp.org>
5558
5559         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5560         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5561         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5562         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5563         macro.
5564         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5565         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5566         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5567         HAVE_WORKING_POSIX_SPAWN.
5568         * modules/spawn (Makefile): Substitute
5569         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5570         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5571         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5572         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5573         (Depends-on): Update conditions.
5574         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5575         the Solaris 11 bug.
5576
5577 2012-01-08  Bruno Haible  <bruno@clisp.org>
5578
5579         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5580         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5581         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5582         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5583         HAVE_WORKING_POSIX_SPAWN.
5584         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5585         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5586         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5587         * lib/spawn_faction_addclose.c: Add workaround implementation if
5588         HAVE_WORKING_POSIX_SPAWN.
5589         * modules/spawn (Makefile): Substitute
5590         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5591         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5592         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5593         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5594         (Depends-on): Update conditions.
5595         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5596         the Solaris 11 bug.
5597
5598 2012-01-08  Bruno Haible  <bruno@clisp.org>
5599
5600         doc: Update for Solaris 11 2011-11.
5601         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5602         * m4/printf.m4: Update comments.
5603
5604 2012-01-08  Bruno Haible  <bruno@clisp.org>
5605
5606         mktime: Avoid compilation error on Solaris 11.
5607         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5608
5609 2012-01-08  Bruno Haible  <bruno@clisp.org>
5610
5611         doc: Small fix.
5612         * doc/posix-headers/nl_types.texi: Correct platforms list.
5613
5614 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5615
5616         Add lgpl-3.0 module.
5617         * MODULES.html.sh (Support for building documentation): Add
5618         lgpl-3.0.
5619         * modules/lgpl-3.0: New file.
5620
5621 2012-01-08  Jim Meyering  <meyering@redhat.com>
5622
5623         select.c: indent with spaces, not TABs
5624         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5625
5626 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5627
5628         quotearg: do not use grave accent for left quote
5629         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5630         locale_quoting_style.
5631         (quotearg_buffer_restyled): Fix example.
5632         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5633
5634 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5635
5636         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5637         Most programs do not have translation catalogs for English and much
5638         less separate catalogs for British and American English.  Drop the
5639         suggestion to translators about these two, and provide it
5640         automatically for Unicode locales.  Like most programs, even those
5641         using American English, we use single quotation marks.  This conflicts
5642         with the American typographic convention, but works better when you
5643         cite the entire error message within double quotes.  It also tries not
5644         to clash with established practice and with what non-gnulib programs
5645         will usually do.
5646         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5647         using an UTF-8 or GB-18030 locale.  The list of other locales with
5648         quotes was provided by Bruno Haible.
5649         (quotearg_buffer_restyled): Adjust instructions to translators.
5650         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5651         text, since this would be wrong when using Unicode.
5652         * modules/quotearg: Depend on c-strcaseeq.
5653
5654 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5655
5656         quotearg: fix Wikipedia link
5657         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5658
5659 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5660
5661         Fix for mingw with MSVC9.
5662         * m4/ld-version-script.m4: Check that compiler rejects version
5663         scripts with syntax errors.  Reported by Bruno Haible
5664         <bruno@clisp.org>.
5665
5666 2012-01-06  Bruno Haible  <bruno@clisp.org>
5667
5668         Talk about "native Windows API", not "Woe32".
5669         * lib/accept4.c: Update comments to mention native Windows.
5670         * lib/execute.c: Likewise.
5671         * lib/fatal-signal.c: Likewise.
5672         * lib/localcharset.c: Likewise.
5673         * lib/nanosleep.c: Likewise.
5674         * lib/nl_langinfo.c: Likewise.
5675         * lib/pclose.c: Likewise.
5676         * lib/pipe-filter-gi.c: Likewise.
5677         * lib/pipe-filter-ii.c: Likewise.
5678         * lib/pipe.c: Likewise.
5679         * lib/pipe2.c: Likewise.
5680         * lib/popen.c: Likewise.
5681         * lib/progreloc.c: Likewise.
5682         * lib/relocatable.c: Likewise.
5683         * lib/sigaction.c: Likewise.
5684         * lib/sigprocmask.c: Likewise.
5685         * lib/spawn-pipe.h: Likewise.
5686         * lib/spawn-pipe.c: Likewise.
5687         * lib/spawni.c: Likewise.
5688         * lib/stat-time.h: Likewise.
5689         * lib/w32spawn.h: Likewise.
5690         * tests/test-isatty.c: Likewise.
5691         * lib/config.charset: More comments.
5692         * doc/gnulib-intro.texi: Mention native Windows.
5693         * doc/posix-functions/_Exit_C99.texi: Likewise.
5694         * doc/posix-headers/fcntl.texi: Likewise.
5695
5696 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5697
5698         argp: Avoid crash if translator uses % characters in a translation.
5699         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5700         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5701
5702 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5703
5704         doc: C11 and C++11 are now official
5705         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5706         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5707         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5708         * modules/stdalign:
5709         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5710
5711 2012-01-06  Bruno Haible  <bruno@clisp.org>
5712
5713         uc-is-grapheme-break tests: Tweak.
5714         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5715         message.
5716
5717 2012-01-06  Bruno Haible  <bruno@clisp.org>
5718
5719         test-init.sh: correct the test for diff -u
5720         * tests/test-init.sh: Also redirect stdout to /dev/null.
5721
5722 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5723
5724         Use ', not `, for quoting output.
5725         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5726         (print_changelog_deltas, get_tool_versions, main program):
5727         * build-aux/git-version-gen:
5728         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5729         * build-aux/move-if-change (help):
5730         * build-aux/useless-if-before-free (usage, main program):
5731         * check-module (parse_module_file, usage)
5732         (find_included_lib_files, check_module):
5733         * lib/argmatch.c (main) [TEST]:
5734         * lib/argp-help.c (_help):
5735         * lib/getopt1.c (main) [TEST]:
5736         * lib/git-merge-changelog.c (usage):
5737         * lib/xstrtol-error.c (xstrtol_error):
5738         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5739         * m4/argz.m4 (gl_FUNC_ARGZ):
5740         * m4/bison.m4 (gl_BISON):
5741         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5742         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5743         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5744         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5745         * m4/gc-random.m4 (gl_GC_RANDOM):
5746         * m4/intl.m4 (gt_CHECK_DECL):
5747         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5748         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5749         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5750         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5751         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5752         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5753         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5754         * tests/test-dirname.c (main):
5755         * tests/test-getpass.c (main):
5756         * tests/test-iconvme.c (main):
5757         * tests/test-parse-datetime.c (LOG):
5758         * tests/test-xstrtoimax.sh:
5759         * tests/test-xstrtol.sh:
5760         * tests/test-xstrtoll.sh:
5761         * tests/test-xstrtoumax.sh:
5762         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5763         * top/GNUmakefile (abort-due-to-no-makefile):
5764         Quote 'like this', not `like this', as per the recent change to
5765         the GNU coding standards.
5766
5767 2012-01-05  Bruno Haible  <bruno@clisp.org>
5768
5769         strtoimax: Don't force a replacement on systems where intmax_t is int.
5770         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5771         'intmax_t' is not larger than 'int'.
5772         Reported by Pádraig Brady <P@draigBrady.com>.
5773
5774 2012-01-05  Bruno Haible  <bruno@clisp.org>
5775
5776         doc: Mention NetBSD bugs.
5777         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5778         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5779
5780 2012-01-05  Bruno Haible  <bruno@clisp.org>
5781
5782         strtoumax tests: Enhance tests.
5783         * tests/test-strtoumax.c (main): Add tests for large values.
5784
5785 2012-01-05  Bruno Haible  <bruno@clisp.org>
5786
5787         strtoimax: Work around AIX 5.1 bug.
5788         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5789         definition.
5790         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5791         Set HAVE_STRTOIMAX.
5792         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5793         REPLACE_STRTOIMAX.
5794         * modules/inttypes-incomplete (Makefile.am): Substitute
5795         REPLACE_STRTOIMAX.
5796         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5797         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5798         (Depends-on): Update conditions.
5799         * tests/test-strtoimax.c (main): Add tests for large values.
5800         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5801
5802 2012-01-05  Bruno Haible  <bruno@clisp.org>
5803
5804         inttypes: Modernize.
5805         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5806         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5807         (Makefile.am): Update inttypes.h rule.
5808
5809 2012-01-05  Jim Meyering  <meyering@redhat.com>
5810
5811         init.sh: don't waste a subshell just to redirect stderr
5812         * tests/init.sh: In testing for diff -u and diff -c, use a
5813         stderr-redirecting exec inside `...` rather than a subshell.
5814
5815         test-init.sh: avoid failure on HP-UX 11.00
5816         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5817         resolves to diff -c or cmp.  Reported by Bruno Haible.
5818
5819 2012-01-05  Bruno Haible  <bruno@clisp.org>
5820
5821         Tests for module 'strtoull'.
5822         * modules/strtoull-tests: New file.
5823         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5824
5825 2012-01-05  Bruno Haible  <bruno@clisp.org>
5826
5827         Tests for module 'strtoll'.
5828         * modules/strtoll-tests: New file.
5829         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5830
5831 2012-01-05  Bruno Haible  <bruno@clisp.org>
5832
5833         Tests for module 'strtoul'.
5834         * modules/strtoul-tests: New file.
5835         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5836
5837 2012-01-05  Bruno Haible  <bruno@clisp.org>
5838
5839         Tests for module 'strtol'.
5840         * modules/strtol-tests: New file.
5841         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5842
5843 2012-01-04  Jim Meyering  <meyering@redhat.com>
5844
5845         test-init.sh: accommodate Solaris 5.10's different diff -u output
5846         * tests/test-init.sh: Also exempt @@ lines from the comparison
5847         of diff output, since Solaris 5.10 and GNU diff formats differ.
5848         Reported by Stefano Lattarini.
5849
5850 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5851
5852         test-posixtm: don't assume signed integer wraparound
5853         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5854         after signed integer overflow.  Inspired by (though it may not
5855         fix) Bruno Haible's bug report in
5856         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5857
5858         Spell out "Windows 9x" and "Windows XP".
5859         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5860         "Windows 9x" and "WinXP" with "Windows XP".
5861
5862 2012-01-04  Jim Meyering  <meyering@redhat.com>
5863
5864         test-vc-list-files-cvs.sh: remove obsolete comment
5865         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5866         double exit.  Now that's all encapsulated via skip_ and Exit.
5867
5868 2012-01-04  Bruno Haible  <bruno@clisp.org>
5869
5870         Talk about "native Windows API", not "Win32".
5871         * lib/classpath.c: Update comments to mention native Windows.
5872         * lib/csharpexec.c: Likewise.
5873         * lib/dup2.c: Likewise.
5874         * lib/error.c: Likewise.
5875         * lib/fcntl.c: Likewise.
5876         * lib/filename.h: Likewise.
5877         * lib/findprog.c: Likewise.
5878         * lib/get-rusage-as.c: Likewise.
5879         * lib/get-rusage-data.c: Likewise.
5880         * lib/getpagesize.c: Likewise.
5881         * lib/javaexec.c: Likewise.
5882         * lib/msvc-inval.c: Likewise.
5883         * lib/msvc-nothrow.c: Likewise.
5884         * lib/nanosleep.c: Likewise.
5885         * lib/nonblocking.c: Likewise.
5886         * lib/printf-parse.c: Likewise.
5887         * lib/setlocale.c: Likewise.
5888         * lib/sigaction.c: Likewise.
5889         * lib/strerror_r.c: Likewise.
5890         * lib/tmpdir.c: Likewise.
5891         * lib/vasnprintf.c: Likewise.
5892         * lib/w32spawn.h: Likewise.
5893         * lib/waitpid.c: Likewise.
5894         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5895         * m4/locale-ar.m4: Likewise.
5896         * m4/locale-fr.m4: Likewise.
5897         * m4/locale-ja.m4: Likewise.
5898         * m4/locale-tr.m4: Likewise.
5899         * m4/locale-zh.m4: Likewise.
5900         * m4/printf.m4: Likewise.
5901         * tests/test-cloexec.c: Likewise.
5902         * tests/test-copy-acl.sh: Likewise.
5903         * tests/test-copy-file.sh: Likewise.
5904         * tests/test-file-has-acl.sh: Likewise.
5905         * tests/test-set-mode-acl.sh: Likewise.
5906         * tests/test-dup-safer.c: Likewise.
5907         * tests/test-dup2.c: Likewise.
5908         * tests/test-dup3.c: Likewise.
5909         * tests/test-fcntl.c: Likewise.
5910         * tests/test-nonblocking-pipe.h: Likewise.
5911         * tests/test-nonblocking-socket.h: Likewise.
5912         * tests/test-pipe.c: Likewise.
5913         * tests/test-pipe2.c: Likewise.
5914         * tests/test-spawn-pipe-child.c: Likewise.
5915         * doc/acl-resources.txt: Likewise.
5916         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5917         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5918         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5919         * lib/localcharset.c: Update comments to mention native Windows.
5920         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5921         * lib/localename.c: Likewise.
5922         * lib/progreloc.c: Likewise.
5923         * lib/relocatable.c: Likewise.
5924         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5925         (windows_compute_revents): Renamed from win32_compute_revents.
5926         (windows_compute_revents_socket): Renamed from
5927         win32_compute_revents_socket.
5928         * lib/select.c: Update comments to mention native Windows.
5929         (windows_poll_handle): Renamed from win32_poll_handle.
5930         * m4/threadlib.m4: Update comments to mention native Windows.
5931         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5932         --enable-threads=windows instead of --enable-threads=win32. Set
5933         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5934         * lib/glthread/lock.h: Update comments to mention native Windows.
5935         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5936         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5937         USE_WIN32_THREADS.
5938         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5939         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5940         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5941         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5942         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5943         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5944         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5945         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5946         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5947         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5948         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5949         * tests/test-tls.c: Likewise.
5950         Rationale:
5951         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5952         on both 32-bit and 64-bit Windows systems.
5953         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5954         line of distinction is between "native Windows" on one side and Unix/
5955         POSIX systems on the other side. More details in
5956         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5957         Suggested by Paul Eggert.
5958
5959 2012-01-03  Bruno Haible  <bruno@clisp.org>
5960
5961         isatty: Support for MSVC 9.
5962         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5963         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5964         (_isatty_nothrow): New function.
5965         (isatty): Use it instead of _isatty.
5966         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5967         * lib/poll.c (IsConsoleHandle): Likewise.
5968         * lib/select.c (IsConsoleHandle): Likewise.
5969         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5970         (gl_PREREQ_ISATTY): New macro.
5971         * modules/isatty (Depends-on): Add msvc-inval.
5972         (configure.ac): Invoke gl_PREREQ_ISATTY.
5973
5974 2012-01-03  Jim Meyering  <meyering@redhat.com>
5975
5976         maint.mk: remove temporary transition aid from over 1.5 years ago
5977         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5978         purpose was to aid in the transition (avoiding silent malfunction)
5979         from that old name to the new _sc_search_regexp.  This shim was
5980         added by commit 219c504b.
5981
5982         init.sh: do not try to accommodate compare arguments starting with "-"
5983         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5984         compare arguments that start with "-".  Besides, we do not worry
5985         about this when invoking diff or cmp; why start now with sed?
5986         Using "--" to separate options from argument would trigger sed
5987         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5988         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5989
5990 2012-01-02  Bruno Haible  <bruno@clisp.org>
5991
5992         Enhance tests for module 'isatty'.
5993         * modules/isatty-tests (Depends-on): Add pipe-posix.
5994         * tests/test-isatty.c: Include <fcntl.h>.
5995         (DEV_NULL): New macro.
5996         (main): Test the resut of isatty() also on regular files, pipes, and
5997         /dev/null.
5998
5999         New module 'isatty'.
6000         * lib/unistd.in.h (isatty): New declaration.
6001         * lib/isatty.c: New file, based on an idea of
6002         Bastien Roucariès <roucaries.bastien@gmail.com>.
6003         * m4/isatty.m4: New file.
6004         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6005         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6006         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6007         REPLACE_ISATTY.
6008         * modules/isatty: New file.
6009         * doc/posix-functions/isatty.texi: Mention the new module.
6010         Suggested by Paolo Bonzini.
6011
6012 2012-01-02  Bruno Haible  <bruno@clisp.org>
6013
6014         canonicalize: Tweak 2011-12-29 commit.
6015         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6016         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6017
6018 2012-01-02  Jim Meyering  <meyering@redhat.com>
6019
6020         gitlog-to-changelog: describe input syntax in --help output
6021         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6022
6023         gitlog-to-changelog: fix typo in --help: show backslash before email @
6024         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6025         in sources, but not in actual output.
6026
6027 2011-12-30  Jim Meyering  <meyering@redhat.com>
6028
6029         gitlog-to-changelog: don't malfunction when name contains %-directive
6030         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6031         in a name string cause trouble.  E.g., with a user name of "%s",
6032         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6033
6034 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6035
6036         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6037         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6038         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6039         the "  (tiny change)" notation that is appended to the standard
6040         ChangeLog "date  name  email" header line.
6041
6042 2012-01-01  Jim Meyering  <meyering@redhat.com>
6043
6044         test-framework-sh: init.sh: fix "make dist" failure
6045         When using gnulib-tool's --with-tests option and any module that
6046         depends on test-framework-sh, "make dist" would fail due to the
6047         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6048         in the gltests directory, and not in the gllib/ directory.
6049         One way to work around that is to move the EXTRA_DIST += init.sh
6050         from the primary module to the -tests one:
6051         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6052         * modules/test-framework-sh (Makefile.am): ...not here.
6053         Reported by Tom G. Christensen in
6054         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6055
6056         version-etc: update copyright year reported by --version
6057         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6058
6059 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6060
6061         canonicalize: only stat() if required
6062         * lib/canonicalize.c (canonicalize_filename_mode):
6063         Avoid calling l?stat() when both CAN_MISSING,
6064         and CAN_NOLINKS are set, as we neither need
6065         to resolve symlinks or test component existence.
6066
6067 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6068
6069         doc: cover st_ino issues once; add OpenVMS etc.
6070         * doc/posix-functions/stat.texi (stat):
6071         * doc/posix-functions/lstat.texi (lstat):
6072         * doc/posix-functions/fstatat.texi (fstatat):
6073         * doc/posix-functions/fstat.texi (fstat):
6074         Move general 'struct stat' stuff to sys_stat.texi,
6075         leaving behind a pointer.
6076         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6077         Merge duplicate info about 'struct stat' problems into here.
6078         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6079         and suggest partial workarounds.
6080
6081         same-inode: port to OpenVMS
6082         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6083         three st_ino values.
6084
6085 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6086
6087         canonicalize: fix references to stat() and lstat()
6088         * lib/canonicalize.c (canonicalize_filename_mode):
6089         Ensure references always resolve to a replacement
6090         function if required (even via a macro).
6091
6092 2011-12-30  Jim Meyering  <meyering@redhat.com>
6093
6094         gitlog-to-changelog: remove a little duplication
6095         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6096         rather than twice.
6097
6098 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6099
6100         canonicalize: add support for not resolving symlinks
6101         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6102         indicate we don't want to follow symlinks.  Also
6103         provide CAN_MODE_MASK to aid setting these existing
6104         mutually exclusive values.
6105         * lib/canonicalize.c (canonicalize_filename_mode):
6106         Extract the flags from can_mode parameter, which
6107         are currently just used to select between stat()
6108         and lstat().  Also ensure that mutually exclusive
6109         values are flagged immediately as invalid.
6110         * tests/test-canonicalize.c: Verify symlinks are
6111         not followed, and that invalid flag combinations
6112         are diagnosed.
6113
6114 2011-12-25  Jim Meyering  <meyering@redhat.com>
6115
6116         gitlog-to-changelog: do not clump multi-paragraph entries
6117         Identical header lines (date,name,email+coauthors) are suppressed,
6118         thus putting all entries with those same characteristics under
6119         a single header.  However, when a log entry consists of two or
6120         more paragraphs, it may not be clear where it starts and ends.
6121         This change makes it so that such an entry is always separated
6122         from others by a header line, even when that header would
6123         otherwise be suppressed.
6124         * build-aux/gitlog-to-changelog: Implement the above.
6125         Inspired by a related request from Stefano Lattarini in
6126         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6127
6128 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6129
6130         announce-gen: fix `cmd' typo in diagnostic
6131         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6132         diagnostic: a missing '$' meant that the command was not output.
6133
6134 2011-12-23  Jim Meyering  <meyering@redhat.com>
6135
6136         test-framework-sh: distribute init.sh
6137         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6138         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6139         fail due to the lack of init.sh.
6140
6141         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6142         * modules/atexit-tests: Rather than listing tests/init.sh,
6143         now that there's a module for it, simply depend on that new module.
6144         * modules/closein-tests: Likewise.
6145         * modules/exclude-tests: Likewise.
6146         * modules/getcwd-tests: Likewise.
6147         * modules/perror-tests: Likewise.
6148         * modules/pread-tests: Likewise.
6149         * modules/pwrite-tests: Likewise.
6150         * modules/vc-list-files-tests: Likewise.
6151         * modules/verify-tests: Likewise.
6152         * modules/xalloc-die-tests: Likewise.
6153         * modules/xstrtoimax-tests: Likewise.
6154         * modules/xstrtol-tests: Likewise.
6155         * modules/xstrtoll-tests: Likewise.
6156         * modules/xstrtoumax-tests: Likewise.
6157         * modules/yesno-tests: Likewise.
6158
6159 2011-12-22  Jim Meyering  <meyering@redhat.com>
6160
6161         test-framework-sh: add minimal tests of init.sh's compare function
6162         * modules/test-framework-sh-tests: New file.
6163         * tests/test-init.sh: New file.
6164
6165         test-framework-sh: new module
6166         * modules/test-framework-sh: New file.
6167         * MODULES.html.sh (Support for maintaining and releasing projects):
6168         List it.
6169
6170         init.sh: do not emit simulated diff output to stderr
6171         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6172
6173 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6174
6175         .gitignore: ignore gnulib.dvi and regex.info
6176         * doc/.gitignore:add gnulib.dvi and regex.info
6177
6178 2011-12-22  Jim Meyering  <meyering@redhat.com>
6179
6180         init.sh: correct previous change
6181         * tests/init.sh (compare): My previous change was wrong.
6182         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6183
6184         init.sh: avoid unwarranted test failure when using "set -e"
6185         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6186         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6187         a use like "compare exp out" would get evoke an unconditional failure.
6188
6189 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6190
6191         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6192         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6193         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6194         autoreconf that did not.
6195         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6196         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6197
6198 2011-12-17  Jim Meyering  <meyering@redhat.com>
6199
6200         bootstrap: remove some now-unneeded code
6201         This script arose back when gnulib-tool was young.
6202         Since then, it has seen improvements that render much of this
6203         script unnecessary.  In particular, it can now make symlinks
6204         to the files it uses.  Also, I no longer see as much value in
6205         marking files as read-only via comments.
6206         If you relied on the symlink-creation feature of the preceding
6207         version of this script, you can get most of that functionality
6208         by adding the --symlink option to the definition of
6209         gnulib_tool_option_extras in your bootstrap.conf file.
6210         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6211         Run autopoint and libtoolize *before* gnulib-tool.
6212         After it, run an abbreviated autoreconf, rather than a loop around
6213         all tools.
6214         (slirp, bt_mark_as_generated): Remove functions.
6215
6216 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6217
6218         ftoastr: fix typo
6219         * lib/ftoastr.h: Fix misspelling in comment.
6220
6221 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6222
6223         * top/README-release: fix punctuation.
6224
6225 2011-12-17  Jim Meyering  <meyering@redhat.com>
6226
6227         bootstrap: correct the recent buildreq change
6228         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6229         had no effect.
6230         * build-aux/bootstrap (buildreq): Bracket each search term with
6231         "*...*", so that the shell "case" statement works as intended.
6232         Add comments.
6233
6234 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6235
6236         build: let bootstrap resort to wget when downloading .po files
6237         * build-aux/bootstrap (download_po_files): Fallback to wget when
6238         downloading the .po files via rsync fails.  This is necessary to
6239         bootstrap from behind a strict firewall.
6240
6241 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6242
6243         stdint: don't assume C++11 when compiling with g++
6244         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6245         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6246         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6247         work also in C++ before C++11, as that improperly inhibits
6248         generating a substitute stdint.h for that case.
6249
6250 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6251
6252         alloca: protect comment from gnulib-tool
6253         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6254         that gnulib-tool doesn't think it's a license, and munge it to
6255         say "GCC version 3".
6256
6257 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
6258
6259         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
6260         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
6261         $(abs_top_builddir) instead of $(top_builddir).
6262
6263 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
6264
6265         strftime-tests: also test nanoseconds
6266         * tests/test-strftime.c (T): Add a test of %N.
6267
6268 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6269
6270         inttypes, stdint: add C++11 support
6271         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6272         when including inttypes.h and stdint.h.  Support this change to
6273         the standard.
6274         * doc/posix-headers/inttypes.texi (inttypes.h):
6275         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6276         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6277         Define if not defined already, for the benefit of pre-C++11 hosts.
6278         Define the standard format macros (e.g., PRId8) always.
6279         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6280         Likewise, if __cpluspus.  Define the standard constant and limit
6281         macros (e.g., INT8_C, INT8_MAX) always.
6282         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6283         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6284         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6285         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6286         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6287         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6288         Likewise.
6289
6290 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6291
6292         nonblocking tests: Fix test failure on Linux/PPC.
6293         Suggested by Prerna Saxena in
6294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6295         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6296         Set to 1100000.
6297
6298 2011-12-12  Jim Meyering  <meyering@redhat.com>
6299
6300         argmatch: don't hard-code `' when listing valid option arguments
6301         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6302         use the quote function to add quotes.  Use fputs rather than
6303         fprintf for the format string with no format directive.
6304
6305 2011-12-07  Eric Blake  <eblake@redhat.com>
6306
6307         bootstrap: detect tools required by gnulib-tool
6308         * build-aux/bootstrap (buildreq): Provide minimum implicit
6309         dependencies.
6310         * DEPENDENCIES: Mention patch as a prereq.
6311
6312 2011-12-04  Bruno Haible  <bruno@clisp.org>
6313
6314         sethostname: Port to Windows platforms.
6315         * lib/sethostname.c: Provide an alternate implementation for Windows
6316         platforms.
6317         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6318         (main): Skip the test if sethostname() fails with EPERM. On Windows
6319         platforms, don't check the result of gethostname().
6320
6321 2011-12-04  Bruno Haible  <bruno@clisp.org>
6322             Jim Meyering  <meyering@redhat.com>
6323
6324         tests: Avoid spurious error message on platforms without mktemp program.
6325         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6326
6327 2011-12-04  Bruno Haible  <bruno@clisp.org>
6328
6329         sethostname: Fix documentation.
6330         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
6331         "not fixed" section.
6332
6333 2011-12-03  Bruno Haible  <bruno@clisp.org>
6334
6335         gnulib-tool: Verify that the License field is present and non-empty.
6336         * gnulib-tool (func_get_license_raw): New function, extracted from
6337         func_get_license.
6338         (func_get_license): Use it. Warn if the module is not a test module and
6339         has no license.
6340         Suggested by Jim Meyering.
6341
6342 2011-12-03  Bruno Haible  <bruno@clisp.org>
6343
6344         sethostname tests: Fix link error on mingw.
6345         * tests/test-sethostname1.c: New file, extracted from
6346         tests/test-sethostname.c.
6347         * tests/test-sethostname2.c: New file, extracted from
6348         tests/test-sethostname.c.
6349         * tests/test-sethostname.c: Remove file.
6350         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
6351         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
6352         (Depends-on): Add gethostname.
6353         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
6354         Link the latter with $(GETHOSTNAME_LIB).
6355
6356         sethostname tests: Fix compilation error on mingw.
6357         * tests/test-sethostname.c: Don't include <sys/types.h>.
6358         (geteuid): Use a dummy value without uid_t.
6359         * modules/sethostname-tests (Depends-on): Remove sys_types.
6360
6361         sethostname tests: Avoid a gcc warning.
6362         * tests/test-sethostname.c (main): Remove an unused variable.
6363
6364         Tweak last commit.
6365         * modules/sethostname-tests (Files): Sort by decreasing importance.
6366         (configure.ac): Check for geteuid.
6367         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
6368         the test when there's nothing to test. Drop an unnecessary cast.
6369         Improve an error message. Verify that the final sethostname() call
6370         succeeds.
6371
6372 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6373
6374         Add a test suite for the sethostname module.
6375         * modules/sethostname-tests: New file.  A test program
6376         for the sethostname module.
6377         * tests/test-sethostname.c: Likewise.
6378
6379 2011-12-03  Bruno Haible  <bruno@clisp.org>
6380
6381         Tweak last commit.
6382         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
6383         Fix preprocessor directives indentation. Fix typos.
6384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
6385         * modules/unistd (Makefile): Likewise.
6386
6387 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6388
6389         Integrate the sethostname module into unistd.
6390         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6391         into the unistd.h header.
6392         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6393         preprocessor directives.
6394         * modules/unistd: Setup the Makefile substitutions of the
6395         SETHOSTNAME preprocessor directives.
6396
6397 2011-12-03  Bruno Haible  <bruno@clisp.org>
6398
6399         Tweak last commit.
6400         * lib/sethostname.c: Don't include <string.h>.
6401         (sethostname): No need to copy the argument string to the stack. Don't
6402         call clearerr. Preserve errno when fprintf failed.
6403         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6404         Don't invoke AC_REPLACE_FUNCS.
6405         * modules/sethostname (Link): Remove empty section.
6406         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
6407         failure problem.
6408
6409 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6410
6411         New module 'sethostname'.
6412         * lib/sethostname.c (sethostname): New file.  Provide sethostname
6413         for systems that lack it.
6414         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
6415         sethostname declaration and function.
6416         * modules/sethostname: New file.  Define the sethostname module.
6417
6418 2011-12-03  Bruno Haible  <bruno@clisp.org>
6419
6420         Tweak last commit.
6421         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
6422
6423 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6424
6425         Split the HOST_NAME_MAX detection into a separate m4 macro.
6426         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6427         macro so it can be used by the pending sethostname module.
6428
6429 2011-12-03  Bruno Haible  <bruno@clisp.org>
6430
6431         Fix module descriptions syntax.
6432         * modules/argv-iter (License): Fix syntax.
6433         * modules/di-set (License): Likewise.
6434         * modules/ino-map (License): Likewise.
6435         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6436
6437 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6438
6439         stdalign: port to Clang 3.0
6440         Problem reported by Simon Josefsson in
6441         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
6442         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
6443         which has <stdalign.h> but which does not define alignof.
6444         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
6445
6446 2011-12-01  Eric Blake  <eblake@redhat.com>
6447
6448         mktempd: silence dd usage
6449         * build-aux/mktempd (rand_bytes): Silence dd.
6450
6451 2011-11-30  Simon Josefsson  <simon@josefsson.org>
6452
6453         manywarnings: Don't mention gcc version in docstring.
6454         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
6455         Jim Meyering <meyering@redhat.com>.
6456
6457 2011-11-30  Jim Meyering  <meyering@redhat.com>
6458
6459         hash: mark a few floating point constants with "f" suffix
6460         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
6461         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
6462         floating point constants with "f", since they're destined to be
6463         saved/used as "float"s.
6464
6465 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
6466
6467         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
6468         * tests/test-float.c (test_long_double): Correct and re-enable the
6469         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6470
6471 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
6472
6473         Avoid subtracting two pointers that don't point into the same block.
6474         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
6475         only pointers into the same memory block are subtracted. We cannot
6476         assume that sizeof (ptrdiff_t) == sizeof (void *).
6477
6478 2011-11-29  Eric Blake  <eblake@redhat.com>
6479
6480         maint.mk: add syntax check for use of compare from init.sh
6481         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6482         moved here from coreutils.
6483
6484         manywarnings: drop -Wunsuffixed-float-constants
6485         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6486         '1.0D', which is the only way to silence this warning for 'double'.
6487
6488 2011-11-29  Jim Meyering  <meyering@redhat.com>
6489
6490         hash: mark compute_bucket_size with the pure attribute
6491         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6492
6493         quotearg, propername: correct pragma guard expression
6494         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6495         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6496
6497 2011-11-28  Jim Meyering  <meyering@redhat.com>
6498
6499         propername: do not mark proper_name with the const attribute
6500         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6501         since it examines data pointed to by its parameter.
6502         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6503         the suggestion from -Wsuggest-attribute=const.
6504
6505         propername: mark one more function as const
6506         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6507
6508 2011-11-27  Jim Meyering  <meyering@redhat.com>
6509
6510         mark functions with const and pure attributes
6511
6512         Mark functions per suggestions from gcc-4.6 when using these options:
6513         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6514         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6515         Follow these guidelines: when possible, apply the attribute to
6516         an extern declaration, not to its definition.  Apply it to the
6517         definition only when the definition is static.
6518         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6519         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6520         * lib/base64.h (isbase64): Likewise.
6521         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6522         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6523         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6524         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6525         (c_tolower, c_toupper): Likewise.
6526         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6527         * lib/chdir-long.c (find_non_slash): Likewise.
6528         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6529         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6530         * lib/file-type.h (file_type): Likewise.
6531         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6532         * lib/filevercmp.c (verrevcmp): Likewise.
6533         * lib/freadahead.h (freadahead): Likewise.
6534         * lib/fts.c (fts_maxarglen): Likewise.
6535         * lib/hash-pjw.h (hash_pjw): Likewise.
6536         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6537         * lib/hash.c (is_prime, next_prime): Likewise.
6538         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6539         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6540         (hash_table_ok, hash_get_first, hash_string): Likewise.
6541         (compute_bucket_size): Likewise.
6542         * lib/i-ring.h (i_ring_empty): Likewise.
6543         * lib/isnan.c (isnanl): Likewise.
6544         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6545         * lib/memcasecmp.h (memcasecmp): Likewise.
6546         * lib/memchr2.h (memchr2): Likewise.
6547         * lib/memcmp2.h (memcmp2): Likewise.
6548         * lib/parse-datetime.y (lookup_zone): Likewise.
6549         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6550         [!WINDOWS_SOCKETS]: Likewise.
6551         * lib/strnlen1.h (strnlen1): Likewise.
6552         * lib/uniwidth.in.h (uc_width): Likewise.
6553         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6554         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6555         (quoting_options_from_style): Add a comment.
6556         * lib/propername.h (proper_name): Add a comment.
6557
6558 2011-11-27  Bruno Haible  <bruno@clisp.org>
6559
6560         Remove unused macros from !_LIBC code in glibc-borrowed files.
6561         * lib/fnmatch.c (STRCOLL): Remove macro.
6562         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6563         * lib/glob.c (__stat, __readdir64): Remove macros.
6564         * lib/tempname.c (__open64, __xstat64): Remove macros.
6565         Suggested by Paul Eggert.
6566
6567 2011-11-27  Bruno Haible  <bruno@clisp.org>
6568
6569         getcwd: Fix link error on MSVC 9.
6570         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6571
6572 2011-11-27  Bruno Haible  <bruno@clisp.org>
6573
6574         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6575         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6576         HAVE_OPENDIR is 0.
6577         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6578         HAVE_CLOSEDIR is 0.
6579         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6580         is 0.
6581         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6582
6583 2011-11-27  Bruno Haible  <bruno@clisp.org>
6584
6585         getcwd: Fix bug from 2011-08-17.
6586         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6587         platforms that need it.
6588         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6589         code of 4 to be a failure, not a success. This ensures that
6590         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6591
6592 2011-11-27  Bruno Haible  <bruno@clisp.org>
6593
6594         binary-io tests: Avoid test failure on mingw when libtool is used.
6595         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6596         Don't verify the size of t-bin-out1.tmp here.
6597         * tests/test-binary-io.sh: Verify it here.
6598         Reported by Simon Josefsson.
6599
6600 2011-11-26  Bruno Haible  <bruno@clisp.org>
6601
6602         Fix conflict between two instantiations of module 'unistd'.
6603         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6604         ${include_guard_prefix} also in the autoconf snippet.
6605         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6607         GNULIB_UNISTD_H_GETOPT.
6608         * modules/getopt-posix (configure.ac): Set the
6609         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6610         * modules/getopt-gnu (configure.ac): Likewise.
6611         * modules/unistd (Makefile.am): Change the substitution value of
6612         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6613         Reported by Simon Josefsson.
6614
6615 2011-11-25  Bruno Haible  <bruno@clisp.org>
6616
6617         pagealign_alloc: Doc and comments.
6618         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6619         module.
6620         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6621
6622 2011-11-25  Jim Meyering  <meyering@redhat.com>
6623
6624         test-update-copyright.sh: avoid false-positive failure
6625         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6626         around false positive failure on Cygwin/Windows.  The latter was
6627         matching erroneously-created files with names like
6628         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6629
6630 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6631
6632         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6633         * m4/valgrind-tests.m4: Check that the parameters that will be
6634         used works, not just a subset of them.  Reported by Bruno Haible
6635         <bruno@clisp.org>.
6636
6637 2011-11-24  Jim Meyering  <meyering@redhat.com>
6638
6639         test-stdalign.c: comment out long double tests
6640         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6641         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6642         error: '_Alignas' specifiers cannot reduce alignment of \
6643         'static_longdouble_alignas'.
6644
6645 2011-11-22  Jim Meyering  <meyering@redhat.com>
6646
6647         init.sh: make "compare /dev/null FILE" output more readable
6648         * tests/init.sh (compare_): Document the preferred order of arguments.
6649         (emit_diff_u_header_): New function.
6650         (compare_dev_null_): Emit a simulated diff, rather than just the
6651         contents of the unexpected file.  Suggestion from Bruno Haible.
6652
6653 2011-11-21  Jim Meyering  <meyering@redhat.com>
6654             Eric Blake  <eblake@redhat.com>
6655
6656         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6657         * tests/init.sh: Make our compare function slightly more portable.
6658         Reported by Bruno Haible in
6659         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6660
6661 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6662
6663         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6664         before using it, in code that ends up in config.h.
6665
6666 2011-11-20  Bruno Haible  <bruno@clisp.org>
6667
6668         getcwd: Work around getcwd bug on AIX 5..7.
6669         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6670         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6671         Use a different value for gl_cv_func_getcwd_path_max. Move the
6672         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6673         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6674         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6675         Define HAVE_MINIMALLY_WORKING_GETCWD.
6676         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6677         where it is not even minimally working, that is, on AIX.
6678         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6679         m4/getcwd-path-max.m4.
6680         (main): Update exit code computation.
6681         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6682         getcwd does not handle long file names.
6683
6684 2011-11-20  Bruno Haible  <bruno@clisp.org>
6685
6686         getcwd: Fix bug from 2009-09-10.
6687         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6688         like "no".
6689
6690 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6691
6692         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6693
6694 2011-11-20  Bruno Haible  <bruno@clisp.org>
6695
6696         fma tests: Avoid shadowing local variables.
6697         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6698         expected.
6699
6700 2011-11-20  Bruno Haible  <bruno@clisp.org>
6701
6702         copysignf tests: Fix.
6703         * tests/test-copysignf.c: Fix signature check.
6704
6705 2011-11-20  Bruno Haible  <bruno@clisp.org>
6706
6707         fma: Remove unused code.
6708         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6709         unused macros.
6710
6711 2011-11-20  Bruno Haible  <bruno@clisp.org>
6712
6713         sethostname: Fix doc about AIX.
6714         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6715         sethostname; it has it.
6716
6717         sethostname: Mention more portability problems.
6718         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6719         problem.
6720         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6721
6722 2011-11-19  Bruno Haible  <bruno@clisp.org>
6723
6724         Depend on module fcntl-h when AT_FDCWD is used.
6725         * modules/utimens (Depends-on): Add fcntl-h.
6726         * modules/areadlinkat (Depends-on): Likewise.
6727         * modules/areadlinkat-with-size (Depends-on): Likewise.
6728         * modules/faccessat (Depends-on): Likewise.
6729         * modules/fchmodat (Depends-on): Likewise.
6730         * modules/fchownat (Depends-on): Likewise.
6731         * modules/getcwd (Depends-on): Likewise.
6732         * modules/mkdirat (Depends-on): Likewise.
6733         * modules/mkfifoat (Depends-on): Likewise.
6734         * modules/readlinkat (Depends-on): Likewise.
6735         * modules/symlinkat (Depends-on): Likewise.
6736         * modules/dup2-tests (Depends-on): Likewise.
6737         * modules/fdutimensat-tests (Depends-on): Likewise.
6738         * modules/futimens-tests (Depends-on): Likewise.
6739
6740 2011-11-19  Bruno Haible  <bruno@clisp.org>
6741
6742         euidaccess: Update a comment.
6743         * lib/euidaccess.c: Update comment about platforms with faccessat.
6744
6745 2011-11-19  Bruno Haible  <bruno@clisp.org>
6746
6747         openat: Fix file list.
6748         * modules/openat (Files): Remove lib/at-func.c.
6749
6750 2011-11-19  Bruno Haible  <bruno@clisp.org>
6751
6752         fstatat: Simplify.
6753         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6754         gnulib should define rpl_fstatat, there is a
6755         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6756
6757 2011-11-19  Bruno Haible  <bruno@clisp.org>
6758
6759         Ensure 'inline' can be used in tests/test-utimens-common.h.
6760         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6761         * modules/futimens-tests (configure.ac): Likewise.
6762         * modules/utimens-tests (configure.ac): Likewise.
6763         * modules/utimensat-tests (configure.ac): Likewise.
6764
6765 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6766
6767         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6768         not hash_insert0.
6769         (hash_insert_if_absent): Doc fix.
6770
6771 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6772
6773         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6774
6775 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6776
6777         test-getcwd: disambiguate exit status
6778         * tests/test-getcwd.c (test_long_name): Return 0..7.
6779         (main): Exit with an unambiguous exit status.  The old
6780         code yielded a mysterious mixture of two failure codes.
6781
6782         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6783         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6784         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6785         rpl_fstatat or fstatat.  This should fix the other problem
6786         reported by Kai Habel in
6787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6788         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6790         and I reproduced it on a Solaris 8 host we still have in production.
6791
6792 2011-11-18  Jim Meyering  <meyering@redhat.com>
6793
6794         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6795         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6796         Add a sentence to the comment.
6797         (hash_insert0): New function that simply calls hash_insert_if_absent.
6798         * lib/hash.h (hash_insert_if_absent): Declare it.
6799         (hash_insert0): Add deprecation attribute.
6800         (_GL_ATTRIBUTE_DEPRECATED): Define.
6801         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6802         not hash_insert0.
6803         * NEWS: Mention it, even though it's not really an incompatible change.
6804
6805 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6806
6807         openat: avoid compilation failure due to lack of <errno.h> inclusion
6808         * lib/openat.c: Include <errno.h>.
6809
6810 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6811
6812         * modules/getcwd (Depends-on): Add fdopendir.
6813         This fixes one of the two problems reported by Kai Habel in
6814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6815
6816         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6817         stdalign problem reported by Ian Beckwith in
6818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6819         * modules/crypto/gc-arcfour (Depends-on):
6820         Depend conditionally on crypto/arcfour.
6821         * modules/crypto/gc-arctwo (Depends-on):
6822         Depend conditionally on crypto/arctwo.
6823         * modules/crypto/gc-des (Depends-on):
6824         Depend conditionally on crypto/des.
6825         * modules/crypto/gc-hmac-md5 (Depends-on):
6826         Depend conditionally on crypto/hmac-md5.
6827         * modules/crypto/gc-hmac-sha1 (Depends-on):
6828         Depend conditionally on crypto/hmac-sha1.
6829         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6830         * modules/crypto/gc-md4 (Depends-on):
6831         Depend conditionally on crypto/md4.
6832         * modules/crypto/gc-md5 (Depends-on):
6833         Depend conditionally on crypto/md5.
6834         * modules/crypto/gc-rijndael (Depends-on):
6835         Depend conditionally on crypto/rijndael.
6836         * modules/crypto/gc-sha1 (Depends-on):
6837         Depend conditionally on crypto/sha1.
6838         * modules/crypto/gc-arcfour:
6839         * modules/crypto/gc-arctwo:
6840         * modules/crypto/gc-des:
6841         * modules/crypto/gc-hmac-md5:
6842         * modules/crypto/gc-hmac-sha1:
6843         * modules/crypto/gc-md2:
6844         * modules/crypto/gc-md4:
6845         * modules/crypto/gc-md5:
6846         * modules/crypto/gc-rijndael:
6847         * modules/crypto/gc-sha1:
6848         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6849         now that the conditional dependencies do the work for us.
6850
6851 2011-11-17  Jim Meyering  <meyering@redhat.com>
6852
6853         tests: factor st_ctime-comparison out of two headers
6854         * tests/test-utimens-common.h (ctime_compare): Define.
6855         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6856         * tests/test-lutimens.h (test_lutimens): Likewise.
6857         * tests/test-utimens.h (test_utimens): Likewise.
6858
6859         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6860         Invoke the test program via an init.sh-using wrapper.
6861         * tests/test-getcwd.sh: New file.
6862         * modules/getcwd-tests (Files): Add it.
6863         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6864
6865 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6866
6867         gitlog-to-changelog: support multi-author commits.
6868         The FSF cares about keeping track of all authors of patches to its
6869         projects, but Git doesn't provide obvious support for multi-author
6870         changesets. Consensus seems to be forming around the use of extra
6871         Signed-off-by inspired lines in the log message formatted as
6872         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6873         multi-author commits between version control systems.
6874         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6875         log message and output in standard ChangeLog multi-author format.
6876         Reported by Peter Rosin <peda@lysator.liu.se>
6877
6878 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6879             Bruno Haible  <bruno@clisp.org>
6880
6881         Fix some modules' file list.
6882         * modules/fstatat (Files): Add m4/lstat.m4.
6883         * modules/openat (Files): Likewise.
6884         * modules/unlinkat (Files): Likewise.
6885
6886 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6887
6888         maint.mk: fix tight-scope.mk generation in VPATH builds.
6889         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6890         reference with $(srcdir) so that the file is found correctly even
6891         when running `make syntax-check' in a VPATH build.
6892
6893 2011-11-13  Bruno Haible  <bruno@clisp.org>
6894             Jim Meyering  <meyering@redhat.com>
6895
6896         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6897         * tests/init.sh (compare): Remove "No differences encountered" or
6898         synonymous output from the 'diff' program.
6899
6900 2011-11-13  Bruno Haible  <bruno@clisp.org>
6901
6902         Makefile: Tweak indentation.
6903         * Makefile: Use tab as first character in every line that contains rule
6904         commands.
6905
6906 2011-11-13  Bruno Haible  <bruno@clisp.org>
6907
6908         Syntax check for copyright statements.
6909         * check-copyright: New file.
6910         * Makefile (sc_check_copyright): New rule.
6911
6912 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6913
6914         * build-aux/git-version-gen: Add --prefix to configure the tag
6915         match string.
6916
6917 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6918
6919         * build-aux/git-version-gen: Add --help and --version.
6920
6921 2011-11-12  Jim Meyering  <meyering@redhat.com>
6922
6923         revamp the other test-exclude?.sh scripts to use init.sh, too
6924         * tests/test-exclude1.sh: Use init.sh.
6925         * tests/test-exclude2.sh: Likewise.
6926         * tests/test-exclude3.sh: Likewise.
6927         * tests/test-exclude4.sh: Likewise.
6928         * tests/test-exclude5.sh: Likewise.
6929         * tests/test-exclude6.sh: Likewise.
6930         * tests/test-exclude7.sh: Likewise.
6931         * tests/test-exclude8.sh: Likewise.
6932         * modules/exclude-tests (Files): List init.sh.
6933
6934         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6935         These shell scripts ignored failure of the binary test-exclude,
6936         so making the latter return 77 didn't cause them to be skipped.
6937         * tests/test-exclude5.sh: Exit with test-exclude's error status
6938         when that program fails.  Revamp to use init.sh.
6939         * tests/test-exclude2.sh: Likewise.
6940
6941         test-exclude: fix a typo
6942         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6943
6944 2011-11-11  Bruno Haible  <bruno@clisp.org>
6945
6946         obstack: Fix compilation error on MSVC 9.
6947         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6948
6949 2011-11-11  Jim Meyering  <meyering@redhat.com>
6950
6951         test-exclude: skip tests rather than failing on deficient systems
6952         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6953         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6954         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6955         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6956
6957 2011-11-10  Bruno Haible  <bruno@clisp.org>
6958
6959         ptsname_r test: Avoid gcc warning on glibc systems.
6960         * tests/test-ptsname_r.c (null_ptr): New function.
6961         (test_errors): Use it.
6962
6963 2011-11-10  Bruno Haible  <bruno@clisp.org>
6964
6965         ptsname_r: Avoid compilation error on OSF/1 5.1.
6966         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6968         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6969         function is not declared or incompatibly declared.
6970         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6971         * modules/ptsname_r (Depends-on, configure.ac): Update.
6972         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6973
6974 2011-11-10  Bruno Haible  <bruno@clisp.org>
6975
6976         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6977         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6978         When cross-compiling, guess yes on all platforms except AIX.
6979         Reported by Ludovic Courtès <ludo@gnu.org>.
6980
6981 2011-11-09  Bruno Haible  <bruno@clisp.org>
6982
6983         ptsname_r tests: Fix bugs.
6984         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6985         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6986
6987 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6988
6989         fstatat: work with cross-compilation
6990         Problem reported by Ludovic Courtès in
6991         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6992         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6993         "cross-compiling" and assume the bug is present.  Replace
6994         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6995         an inverted sense, to be more conservative about our assumptions.
6996         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6997
6998 2011-11-09  Bruno Haible  <bruno@clisp.org>
6999
7000         Improve MODULES.html output.
7001         * modules/mkfifoat (Description): Use the word "function".
7002         * modules/readlinkat (Description): Likewise.
7003         * modules/symlinkat (Description): Likewise.
7004
7005 2011-11-09  Eric Blake  <eblake@redhat.com>
7006
7007         ptsname_r-tests: new test module
7008         * modules/ptsname_r-tests: New module.
7009         * tests/test-ptsname_r.c: New file.
7010
7011         ptsname_r: new module
7012         * modules/ptsname_r: New module.
7013         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7014         * lib/ptsname.c (__ptsname_r): Split...
7015         * lib/ptsname_r.c: ...into new file.
7016         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7017         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7018         * modules/stdlib (Makefile.am): Substitute witnesses.
7019         * lib/stdlib.in.h (ptsname_r): Declare it.
7020         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7021         * MODULES.html.sh (Misc): Likewise.
7022         * modules/ptsname (Depends-on): Alter dependency.
7023         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7024
7025 2011-11-09  Jim Meyering  <meyering@redhat.com>
7026
7027         announce-gen: be more concise when there's only one URL+tarball
7028         * build-aux/announce-gen (get_tool_versions): When you distribute
7029         only one type of tarball, combine the first two "Here are..."
7030         sections and make the key-checking grammar independent of
7031         how many tarballs there are.
7032
7033 2011-11-09  Eric Blake  <eblake@redhat.com>
7034
7035         openpty: provide a stub on mingw
7036         * lib/pty.in.h (includes): Provide forward declarations.
7037         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7038
7039         raise: fix mingw handling of SIGPIPE
7040         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7041
7042 2011-11-08  Bruno Haible  <bruno@clisp.org>
7043
7044         More conditional dependencies.
7045         * modules/faccessat (Depends-on): Add conditions.
7046         * modules/fchmodat (Depends-on): Likewise.
7047         * modules/fchownat (Depends-on): Likewise.
7048         * modules/fstatat (Depends-on): Likewise.
7049         * modules/mkfifoat (Depends-on): Likewise.
7050         * modules/readlinkat (Depends-on): Likewise.
7051         * modules/symlinkat (Depends-on): Likewise.
7052         * modules/unlinkat (Depends-on): Likewise.
7053         * modules/utimensat (Depends-on): Likewise.
7054         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7055         * modules/linkat (Depends-on): Refine the conditions.
7056         * modules/renameat (Depends-on): Likewise.
7057
7058 2011-11-08  Bruno Haible  <bruno@clisp.org>
7059
7060         faccessat: Move AC_LIBOBJ invocation to module description.
7061         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7062         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7063         invocation from here...
7064         * modules/faccessat (configure.ac): ... to here. Invoke
7065         gl_PREREQ_FACCESSAT.
7066
7067 2011-11-08  Bruno Haible  <bruno@clisp.org>
7068
7069         faccessat: Simplify autoconf macro.
7070         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7071         gl_FUNC_EUIDACCESS.
7072
7073 2011-11-08  Bruno Haible  <bruno@clisp.org>
7074
7075         renameat: Fix dependencies.
7076         * modules/renameat (Depends-on): Add stdbool.
7077
7078 2011-11-08  Bruno Haible  <bruno@clisp.org>
7079
7080         mkfifoat: Fix module description.
7081         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7082         not gl_UNISTD_MODULE_INDICATOR.
7083
7084 2011-11-08  Bruno Haible  <bruno@clisp.org>
7085
7086         fstatat: Remove unused dependency.
7087         * modules/fstatat (Depends-on): Remove fstat.
7088
7089 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7090
7091         GNUmakefile: behave when Makefile is missing.
7092         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7093
7094 2011-11-08  Bruno Haible  <bruno@clisp.org>
7095
7096         openat: Conditionalize dependencies.
7097         * lib/openat.c: Reduce the scope of some #includes.
7098         * modules/openat (Depends-on): Add conditions.
7099
7100 2011-11-07  Jim Meyering  <meyering@redhat.com>
7101
7102         maint.mk: extract GPG key ID without using a temporary file
7103         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7104         without using a temporary file.  Based on a suggestion from Werner Koch
7105         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7106
7107 2011-11-07  Eric Blake  <eblake@redhat.com>
7108
7109         grantpt: fix typo
7110         * lib/stdlib.in.h (grantpt): Check correct function.
7111
7112         maint.mk: silence new syntax check
7113         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7114
7115 2011-11-06  Bruno Haible  <bruno@clisp.org>
7116
7117         Doc about floating-point and math API.
7118         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7119         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7120
7121 2011-11-06  Bruno Haible  <bruno@clisp.org>
7122
7123         stdalign tests: Skip the test when compiled by Sun C.
7124         * tests/test-stdalign.c (main): Skip the test on Sun C.
7125
7126 2011-11-06  Bruno Haible  <bruno@clisp.org>
7127
7128         ansi-c++-opt: Complete the 2011-06-05 change.
7129         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7130         does not support namespaces, set the variable to "no", not to ":".
7131
7132 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7133
7134         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7135
7136 2011-11-06  Bruno Haible  <bruno@clisp.org>
7137
7138         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7139         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7140         (minus_zerol) [HP-UX]: New macro.
7141         (unary_minus) [HP-UX]: New function.
7142         (copysignl) [HP-UX]: Use unary_minus function.
7143
7144 2011-11-06  Bruno Haible  <bruno@clisp.org>
7145
7146         ldexp, ldexpf, ldexpl: Enhance tests.
7147         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7148         and tests/test-ldexpl.c.
7149         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7150         LDEXP, MIN_EXP, MAX_EXP): New macros.
7151         Include test-ldexp.h.
7152         (main): Just call test_function.
7153         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7154         infinity.h, nan.h.
7155         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7156         MAX_EXP): New macros.
7157         Include test-ldexp.h.
7158         (x, y): Remove variables.
7159         (main): Just call test_function.
7160         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7161         infinity.h, nan.h.
7162         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7163         MAX_EXP): New macros.
7164         Include test-ldexp.h.
7165         (x, y): Remove variables.
7166         (main): Just call test_function.
7167         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7168         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7169         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7170         (Depends-on): Add isnand-nolibm, signbit, float.
7171         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7172         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7173         (Depends-on): Add isnanf-nolibm, signbit, float.
7174
7175 2011-11-06  Bruno Haible  <bruno@clisp.org>
7176
7177         math tests: Cosmetics.
7178         * tests/test-math-c++.cc: Reorder declarations.
7179
7180 2011-11-05  Bruno Haible  <bruno@clisp.org>
7181
7182         fma*: Simplify test.
7183         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7184         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7185
7186         Tests for module 'fmal'.
7187         * modules/fmal-tests: New file.
7188         * tests/test-fmal1.c: New file.
7189         * tests/test-fmal2.c: New file.
7190
7191         New module 'fmal'.
7192         * lib/math.in.h (fmal): New declaration.
7193         * lib/fmal.c: New file.
7194         * m4/fmal.m4: New file.
7195         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7196         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7197         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7198         REPLACE_FMAL.
7199         * modules/fmal: New file.
7200         * doc/posix-functions/fmal.texi: Mention the new module and the various
7201         bugs.
7202
7203         Tests for module 'fmaf'.
7204         * modules/fmaf-tests: New file.
7205         * tests/test-fmaf1.c: New file.
7206         * tests/test-fmaf2.c: New file.
7207
7208         New module 'fmaf'.
7209         * lib/math.in.h (fmaf): New declaration.
7210         * lib/fmaf.c: New file.
7211         * m4/fmaf.m4: New file.
7212         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7213         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7214         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7215         REPLACE_FMAF.
7216         * modules/fmaf: New file.
7217         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7218         bugs.
7219
7220         Tests for module 'fma'.
7221         * modules/fma-tests: New file.
7222         * tests/test-fma1.c: New file.
7223         * tests/test-fma1.h: New file.
7224         * tests/test-fma2.c: New file.
7225         * tests/test-fma2.h: New file.
7226
7227         New module 'fma'.
7228         * lib/math.in.h (fma): New declaration.
7229         * lib/fma.c: New file.
7230         * m4/fma.m4: New file.
7231         * m4/fegetround.m4: New file.
7232         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7233         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7234         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7235         REPLACE_FMA.
7236         * modules/fma: New file.
7237         * doc/posix-functions/fma.texi: Mention the new module and the various
7238         bugs.
7239
7240         Extend gl_MATHFUNC.
7241         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7242         Support 'void' as argument type.
7243         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7244
7245 2011-11-05  Jim Meyering  <meyering@redhat.com>
7246
7247         maint.mk: also prohibit inclusion of dirent.h without use
7248         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7249
7250 2011-11-05  Bruno Haible  <bruno@clisp.org>
7251
7252         ldexpl tests: Avoid test failure on MSVC 9.
7253         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7254         value. Needed in order to enforce the conversion from a value greater
7255         than LDBL_MAX to Infinity.
7256
7257 2011-11-05  Bruno Haible  <bruno@clisp.org>
7258
7259         New modules 'at-internal', 'openat-h', split off from module 'openat'.
7260         * modules/at-internal: New file, extracted from modules/openat.
7261         * modules/openat-h: New file.
7262         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
7263         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
7264         * modules/openat (Description): Add reference to POSIX function.
7265         (Files): Remove lib/openat.h, lib/openat-proc.c.
7266         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7267         intprops, unistd.
7268         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7269         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7270         gl_FCNTL_MODULE_INDICATOR.
7271         (Include): Remove unistd.h, openat.h.
7272         * modules/areadlinkat (Files): Add lib/at-func.c.
7273         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7274         openat-die, openat-h, save-cwd.
7275         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7276         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7277         openat-die, openat-h, save-cwd, unistd.
7278         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7279         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7280         openat-h, save-cwd. Remove fcntl-h, openat.
7281         * modules/fchmodat (Files): Remove lib/openat.h.
7282         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7283         openat, stdbool, unistd.
7284         * modules/fchownat (Files): Remove lib/openat.h.
7285         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7286         openat, stdbool, sys_stat.
7287         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7288         lib/openat-proc.c.
7289         (Depends-on): Add at-internal.
7290         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7291         * modules/fstatat (Files): Remove lib/openat.h.
7292         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7293         stdbool, unistd.
7294         * modules/fts (Depends-on): Add openat-h.
7295         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7296         openat.
7297         * modules/mkdirat (Files): Remove lib/openat.h.
7298         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7299         openat, stdbool, sys_stat.
7300         * modules/mkfifoat (Files): Add lib/at-func.c.
7301         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7302         openat-h, save-cwd. Remove fcntl-h, openat.
7303         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7304         * modules/readlinkat (Files): Add lib/at-func.c.
7305         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7306         openat-h, save-cwd. Remove fcntl-h, openat.
7307         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
7308         openat.
7309         * modules/selinux-at (Files): Add lib/at-func.c.
7310         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7311         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7312         * modules/symlinkat (Files): Add lib/at-func.c.
7313         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7314         openat-h, save-cwd. Remove fcntl-h, openat.
7315         * modules/unlinkat (Files): Remove lib/openat.h.
7316         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7317         stdbool.
7318         * modules/utimensat (Files): Add lib/at-func.c.
7319         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7320         openat-die, openat-h, save-cwd.
7321         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7322         * modules/fdutimensat-tests (Depends-on): Add openat.
7323         * modules/fstatat-tests (Depends-on): Add openat-h.
7324         * modules/readlinkat-tests (Depends-on): Add openat.
7325         * modules/symlinkat-tests (Depends-on): Add openat.
7326
7327 2011-11-05  Bruno Haible  <bruno@clisp.org>
7328
7329         openat: Include <stdbool.h>.
7330         * lib/openat.c: Include <stdbool.h>.
7331
7332 2011-11-04  Bruno Haible  <bruno@clisp.org>
7333
7334         fchownat, renameat, unlinkat: Fix dependencies.
7335         * modules/fchownat (Depends-on): Add fstatat.
7336         * modules/renameat (Depends-on): Likewise.
7337         * modules/unlinkat (Depends-on): Likewise.
7338
7339 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7340
7341         openat: remove direct dependency on dirent
7342         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
7343         and hasn't been needed ever since fdopendir was split into its own
7344         module on 2009-08-31.
7345         * modules/openat (Depends-on): Remove dirent.
7346
7347 2011-11-04  Bruno Haible  <bruno@clisp.org>
7348
7349         renameat: Optimize code size.
7350         * modules/renameat (configure.ac): Don't compile at-func2.c if
7351         REPLACE_RENAMEAT is 1.
7352
7353 2011-11-04  Bruno Haible  <bruno@clisp.org>
7354
7355         openat tests: Fix file list.
7356         * modules/openat-tests (Files): Add tests/test-open.h.
7357
7358 2011-11-04  Bruno Haible  <bruno@clisp.org>
7359
7360         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
7361         * modules/fchmodat (Depends-on): Add openat-die.
7362         * modules/fchownat (Depends-on): Likewise.
7363         * modules/linkat (Depends-on): Likewise.
7364         * modules/renameat (Depends-on): Likewise.
7365         * modules/openat (Depends-on): Add dirent.
7366
7367 2011-11-04  Jim Meyering  <meyering@redhat.com>
7368
7369         at-func*.c: fix comments
7370         * lib/at-func2.c: Correct/improve first-line comment.
7371         * lib/at-func.c: Correct grammar in first-line comment.
7372
7373 2011-11-04  Bruno Haible  <bruno@clisp.org>
7374
7375         New module 'mkdirat', split off from module 'openat'.
7376         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
7377         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
7378         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
7379         * modules/mkdirat: New file, extracted from modules/openat.
7380         * modules/openat (Files): Remove lib/mkdirat.c.
7381         (Depends-on): Remove mkdir.
7382         (configure.ac): Remove AC_LIBOBJ of mkdirat.
7383         (Include): Remove <sys/stat.h>.
7384         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
7385         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7386         tests/test-mkdir.h.
7387         (Depends-on): Remove ignore-value.
7388         (Makefile.am): Remove rules for test-mkdirat.
7389         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7390         of module 'openat'.
7391         * NEWS: Mention the change.
7392
7393 2011-11-04  Bruno Haible  <bruno@clisp.org>
7394
7395         closedir: Avoid warning on mingw.
7396         * lib/closedir.c: Include <unistd.h>.
7397
7398 2011-11-04  Bruno Haible  <bruno@clisp.org>
7399
7400         New module 'fstatat', split off from module 'openat'.
7401         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7402         defined.
7403         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7404         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7405         gl_FUNC_FSTATAT.
7406         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
7407         * modules/fstatat: New file, extracted from modules/openat.
7408         * modules/openat (Files): Remove lib/fstatat.c.
7409         (Depends-on): Remove lstat.
7410         (configure.ac): Remove AC_LIBOBJ of fstatat.
7411         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
7412         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
7413         tests/test-lstat.h, tests/test-stat.h.
7414         (Depends-on): Remove getcwd-lgpl.
7415         (Makefile.am): Remove rules for test-fstatat.
7416         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
7417         of module 'openat'.
7418         * NEWS: Mention the change.
7419         * modules/getcwd (Depends-on): Add fstatat.
7420         * modules/linkat (Depends-on): Likewise.
7421         * modules/mkfifoat-tests (Depends-on): Likewise.
7422         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
7423
7424 2011-11-03  Bruno Haible  <bruno@clisp.org>
7425
7426         New module 'unlinkat', split off from module 'openat'.
7427         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7428         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7429         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7430         * modules/unlinkat: New file, extracted from modules/openat. Correct
7431         the dependency conditions.
7432         * modules/openat (Files): Remove lib/unlinkat.c.
7433         (Depends-on): Remove rmdir, unlink.
7434         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7435         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7436         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
7437         tests/test-rmdir.h, tests/test-unlink.h.
7438         (Depends-on): Remove unlinkdir.
7439         (Makefile.am): Remove rules for test-unlinkat.
7440         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
7441         of module 'openat'.
7442         * NEWS: Mention the change.
7443         * modules/linkat-tests (Depends-on): Add unlinkat.
7444         * modules/mkfifoat-tests (Depends-on): Likewise.
7445         * modules/readlinkat-tests (Depends-on): Likewise.
7446
7447 2011-11-02  Bruno Haible  <bruno@clisp.org>
7448
7449         New module 'fchmodat', split off from module 'openat'.
7450         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
7451         defined.
7452         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
7453         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
7454         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
7455         * modules/fchmodat: New file, extracted from modules/openat.
7456         * modules/openat (Files): Remove lib/fchmodat.c.
7457         (configure.ac): Remove AC_LIBOBJ of fchmodat.
7458         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
7459         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
7460         (Makefile.am): Remove rules for test-fchmodat.
7461         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
7462         of module 'openat'.
7463         * NEWS: Mention the change.
7464
7465 2011-11-02  Jim Meyering  <meyering@redhat.com>
7466
7467         putenv: indent #definition of "environ" to placate cppi
7468         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
7469
7470         gitlog-to-changelog: provide a ChangeLog-repair mechanism
7471         Git logs are often treated as immutable, because editing them
7472         changes the SHA1 checksums of all descendants.  Thus, errors in
7473         git logs tend to stay there forever.  However, when we generate
7474         a ChangeLog file -- typically for distribution -- from that git log,
7475         we can actually make corrections in the generated file.  The key
7476         lies in recording in machine-readable/applicable form the desired
7477         corrections.  See --help for description and an example.
7478         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
7479         (usage): Describe it; alphabetize option descriptions.
7480         (main): Honor the new option, carefully.
7481
7482 2011-11-01  Jim Meyering  <meyering@redhat.com>
7483
7484         gitlog-to-changelog: avoid an infloop
7485         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7486         that ends up being empty.
7487
7488 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7489
7490         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7491         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7492         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7493         contains (possibly-quoted) backslashes.  This should avoid
7494         all-too-common shell bugs if COMPLICATED contains backslashes in
7495         the "wrong" places.  Reported by David Evans in
7496         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7497         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7498         because we want ASCII ranges.  Is there some reason we don't use
7499         the C locale everywhere in this script?
7500         (func_module, top level): Avoid unwanted pathname expansion when
7501         $repo_url_prefix or $repo_url_suffix_repl contain shell
7502         metacharacters like '?' and '*'.
7503
7504 2011-11-01  Bruno Haible  <bruno@clisp.org>
7505
7506         fchownat: Improve description.
7507         * modules/fchownat (Description): Add link to function.
7508
7509 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7510
7511         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7512         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7514         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7515
7516 2011-11-01  Bruno Haible  <bruno@clisp.org>
7517
7518         alignof: Avoid collision with stdalign module.
7519         * lib/alignof.h (alignof): Remove macro.
7520         * NEWS: Mention the change.
7521         Reported by Paul Eggert.
7522
7523 2011-11-01  Bruno Haible  <bruno@clisp.org>
7524
7525         New module 'fchownat', split off from module 'openat'.
7526         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7527         defined.
7528         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7529         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7530         invoke gl_FUNC_FCHOWNAT.
7531         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7532         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7533         * modules/fchownat: New file, extracted from modules/openat.
7534         * modules/openat (Files): Remove lib/fchownat.c.
7535         (Depends-on): Remove lchown.
7536         (configure.ac): Remove AC_LIBOBJ of fchownat.
7537         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7538         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7539         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7540         (Depends-on): Remove mgetgroups, usleep, stat-time.
7541         (configure.ac): Remove test for getegid.
7542         (Makefile.am): Remove rules for test-fchownat.
7543         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7544         of module 'openat'.
7545         * NEWS: Mention the change.
7546
7547 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7548
7549         stdalign: port better to MSVC and to Sun C 5.11
7550         This fixes some of the problems reported by Bruno Haible in
7551         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7552         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7553         shortcomings of MSVC and of Sun C 5.11.
7554         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7555         around __declspec arg.
7556         * modules/stdalign-tests (Files): Add tests/macros.h.
7557         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7558         Include macros.h, for ASSERT.
7559         (DECLARE_ALIGNED): Remove.
7560         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7561         to catch bug), and to 1 if not (simplifies the rest of the code).
7562         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7563         (CHECK_AUTO): Remove.
7564         (CHECK_ALIGNED): Check only the alignment of the static vars,
7565         since auto var alignment isn't supported by Sun C 5.11.
7566         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7567         ASSERT failures are easier to diagnose.
7568
7569 2011-10-31  Bruno Haible  <bruno@clisp.org>
7570
7571         doc about some IRIX 5.3 problems.
7572         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7573         on IRIX 5.3.
7574         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7575         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7576         5.3.
7577         * doc/posix-functions/grantpt.texi: Likewise.
7578         * doc/posix-functions/unlockpt.texi: Likewise.
7579         * doc/posix-functions/lgamma.texi: Likewise.
7580         * doc/posix-functions/nextafter.texi: Likewise.
7581         * doc/posix-functions/remainder.texi: Likewise.
7582         * doc/posix-functions/select.texi: Mention misplaced declaration on
7583         IRIX 5.3.
7584         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7585
7586 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7587
7588         gitlog-to-changelog: fix git-log invocation.
7589         git-log mishandles date strings before 1970-01-01 UTC, and there is
7590         no use to specify --since=1970-01-01 by default anyway.
7591         * build-aux/gitlog-to-changelog: By default, when no --since option
7592         was given, do not specify explicit --since option to git-log.
7593
7594 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7595
7596         gitlog-to-changelog: new option --append-dot.
7597         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7598         first non-blank line of each commit message terminated with a dot.
7599
7600 2011-10-30  Bruno Haible  <bruno@clisp.org>
7601
7602         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7603         * lib/ffsl.h: Include <config.h>.
7604         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7605
7606 2011-10-30  Jim Meyering  <meyering@redhat.com>
7607
7608         GNUmakefile: reenable "make syntax-check" for most projects
7609         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7610         build-aux variable", "syntax-check" would do nothing but succeed with
7611         the "No version control files detected..." diagnostic (unless you
7612         happened to override _build-aux via cfg.mk).
7613         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7614         to precede inclusion of maint.mk.  Otherwise, these variables would
7615         be used undefined in any project that does not override the default.
7616
7617 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7618
7619         gitlog-to-changelog: treat a message with only blank lines as empty.
7620         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7621         trailing blank lines before the code that issues a warning about an
7622         empty commit message.
7623
7624 2011-10-30  Jim Meyering  <meyering@redhat.com>
7625
7626         test-parse-datetime.c: avoid new DST-related false positive test failure
7627         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7628         based on the time/date we'll convert, not the current time.
7629         Otherwise, the moment we cross a DST boundary like today's in
7630         Europe, (CEST to CET), that offset ends up being one hour off.
7631
7632 2011-10-27  Bruno Haible  <bruno@clisp.org>
7633
7634         fstat: Tweak documentation.
7635         * modules/fstat (Description): More precise description.
7636
7637 2011-10-27  Bruno Haible  <bruno@clisp.org>
7638
7639         Update documentation regarding 'largefile' module.
7640         * doc/posix-functions/fstat.texi: Tweak wording.
7641         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7642         problems with huge directories and/or small ino_t types.
7643         * doc/posix-functions/readdir.texi: Likewise.
7644         * doc/posix-functions/rewinddir.texi: Likewise.
7645
7646 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7647
7648         maint.mk: don't maintain a second build-aux variable.
7649         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7650         depends on GNUmakefile, which already maintains a cfg.mk
7651         overridable $(_build-aux) for projects with a non-standard
7652         build-aux directory location, although without the $(srcdir)
7653         prefix.  Use that variable consistently instead of introducing a
7654         second one.  Adjust all call sites.
7655
7656 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7657
7658         Add stdalign module and use it in other modules.
7659         This is based on a previous proposal by Bruno Haible
7660         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7661
7662         stdalign: new module
7663         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7664         * modules/stdalign: New files.
7665         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7666         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7667
7668         stdalign-tests: new module
7669         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7670
7671         argp: use stdalign
7672         * lib/argp-parse.c: Include <stdalign.h>.
7673         (alignof): Remove.
7674         * modules/argp (Depends-on): Add stdalign.
7675
7676         crypto libraries: use stdalign
7677         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7678         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7679         Do not include <stdlib.h> twice, in md4.c.
7680         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7681         because we are accessing a pointer's bit-pattern, not a size.
7682         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7683         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7684         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7685         * modules/crypto/sha512: Likewise.
7686
7687         sys_socket: use stdalign, not alignof
7688         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7689         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7690
7691 2011-10-27  Bruno Haible  <bruno@clisp.org>
7692
7693         raise test: Avoid a test failure on Linux/MIPS.
7694         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7695         because 99 is a valid signal on Linux/MIPS.
7696
7697 2011-10-27  Bruno Haible  <bruno@clisp.org>
7698
7699         nonblocking tests: Fix test failure on Linux/MIPS.
7700         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7701         Set to 270000.
7702
7703 2011-10-27  Bruno Haible  <bruno@clisp.org>
7704
7705         utimensat: Work around problem on Linux/hppa.
7706         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7707         values.
7708         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7709
7710 2011-10-25  Jim Meyering  <meyering@redhat.com>
7711
7712         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7713         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7714         after symbols like NULL, size_t, etc.
7715         Reported by Alfred M. Szmidt.
7716
7717         maint.mk: exempt ENODATA from a syntax-check rule
7718         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7719         from the sc_prohibit_always-defined_macros syntax-check rule.
7720         Add a comment.  See this for more details:
7721         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7722
7723 2011-10-23  Jim Meyering  <meyering@redhat.com>
7724
7725         fts: close parent dir FD before returning from post-traversal fts_read
7726         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7727         unlink A, even though an FD open on A remained.  This is suboptimal
7728         (holding a file descriptor open longer than needed), but otherwise not
7729         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7730         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7731         that represents a real problem: it causes the removal of A to fail
7732         with e.g., "rm: cannot remove `A': Device or resource busy"
7733
7734         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7735         directory file descriptors.  After completing the final, FTS_DP,
7736         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7737         cache, but then proceeded to add a new FD to it via the subsequent
7738         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7739         final file descriptor would be closed only via fts_close's call to
7740         fd_ring_clear.  Now, it is usually closed earlier, via the final
7741         FTS_DP-returning fts_read call.
7742         * lib/fts.c (restore_initial_cwd): New function, converted from
7743         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7744         Update callers.
7745         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7746         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7747
7748 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7749             Bruno Haible  <bruno@clisp.org>
7750             Jim Meyering  <jim@meyering.net>
7751
7752         readme-release: improve safety of release prep instructions.
7753         * README-release: Don't git pull all branches when only master
7754         is needed for the release process.
7755         Run make maintainer-clean before changing trees and merging.
7756         Don't try to run ./configure right after git pull in case files
7757         that influence the bootstrap process have changed, move the
7758         ./configure step to after running ./bootstrap.
7759         Don't bootstrap "one last time"... it's the first time!
7760
7761 2011-10-22  Bruno Haible  <bruno@clisp.org>
7762
7763         errno, strerror-override: Support for MSVC 10.
7764         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7765         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7766         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7767         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7768         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7769         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7770         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7771         Assign values compatible with MSVC 10.
7772         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7773         New macros.
7774         (GNULIB_defined_EWINSOCK): New macro.
7775         * lib/strerror-override.c (strerror_override): Update accordingly.
7776         * lib/strerror-override.h: Likewise.
7777         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7778         longer equal to the corresponding errno value.
7779         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7780
7781 2011-10-22  Bruno Haible  <bruno@clisp.org>
7782
7783         perror: Recognize when test program crashes.
7784         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7785         strerror, set gl_cv_func_perror_works to no.
7786         Reported by Daniel Richard G. <skunk@iskunk.org>.
7787
7788         perror: Fix indentation.
7789         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7790
7791 2011-10-22  Bruno Haible  <bruno@clisp.org>
7792
7793         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7794         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7795         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7796         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7797         functions, not as a macro.
7798         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7799         macros.
7800         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7801         absence of macro.
7802         Suggested by Eric Blake.
7803         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7804
7805 2011-10-21  Bruno Haible  <bruno@clisp.org>
7806
7807         relocatable-prog-wrapper: Don't leave object files behind.
7808         * build-aux/install-reloc: Re-synchronize list of .o files to be
7809         removed with list of compilation units.
7810
7811 2011-10-20  Bruno Haible  <bruno@clisp.org>
7812
7813         openpty, posix_openpt: Remove code duplication.
7814         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7815         * lib/openpty.c: Include <stdlib.h>.
7816         (openpty): Use posix_openpt on all platforms except IRIX.
7817         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7818
7819 2011-10-20  Bruno Haible  <bruno@clisp.org>
7820
7821         unlockpt: Detect invalid argument.
7822         * lib/unlockpt.c: Include <fcntl.h>.
7823         (unlockpt): Check whether fd is valid, using fcntl().
7824         * modules/unlockpt (Depends-on): Add fcntl-h.
7825
7826 2011-10-20  Bruno Haible  <bruno@clisp.org>
7827
7828         openpty: Avoid compilation error on AIX 6.1.
7829         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7830
7831 2011-10-20  Bruno Haible  <bruno@clisp.org>
7832
7833         posix_openpt: Support for OpenBSD.
7834         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7835         (posix_openpt) [OpenBSD]: New code.
7836         * lib/grantpt.c: Include <fcntl.h>.
7837         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7838         * modules/grantpt (Depends-on): Add fcntl-h.
7839
7840 2011-10-20  Bruno Haible  <bruno@clisp.org>
7841
7842         posix_openpt test: Coding style.
7843         * tests/test-posix_openpt.c: Use GNU coding style.
7844
7845 2011-10-20  Bruno Haible  <bruno@clisp.org>
7846
7847         grantpt: Support --avoid=pt_chown.
7848         * modules/grantpt (Files): Add lib/pty-private.h.
7849
7850 2011-10-20  Bruno Haible  <bruno@clisp.org>
7851
7852         posix_openpt: Fix autoconf macro.
7853         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7854         unneeded check for _getpty.
7855
7856 2011-10-20  Bruno Haible  <bruno@clisp.org>
7857
7858         openpty: Update comments.
7859         * lib/openpty.c: Add comments about Minix.
7860
7861 2011-10-19  Eric Blake  <eblake@redhat.com>
7862
7863         openpty: relax license
7864         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7865
7866         pt_chown: use configmake to simplify build
7867         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7868
7869         ptsname and others: relax license
7870         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7871         * modules/unlockpt (License): Likewise.
7872         * modules/pt_chown (License): Likewise.
7873         * modules/ptsname (License): Likewise.
7874         * modules/ttyname_r (License): Likewise.
7875
7876 2011-10-19  Jim Meyering  <meyering@redhat.com>
7877
7878         posix_openpt: remove spurious #endif
7879         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7880
7881 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7882
7883         maint.mk: Respect $(build_aux) in web-manual rule.
7884         * top/maint.mk (web-manual): Find gen-announce script in user's
7885         $(build_aux) directory instead of hard-coding 'build-aux'.
7886
7887 2011-10-19  Bruno Haible  <bruno@clisp.org>
7888
7889         posix_openpt: Fix compilation error.
7890         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7891         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7892         Mention the openpty module as an alternative.
7893
7894 2011-10-19  Bruno Haible  <bruno@clisp.org>
7895
7896         Support for old NeXTstep 3.3 frexp().
7897         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7898         execution time of the test to 5 seconds.
7899         Reported by Daniel Richard G. <skunk@iskunk.org>.
7900
7901 2011-10-19  Bruno Haible  <bruno@clisp.org>
7902
7903         Support for old NeXTstep 3.3 sed.
7904         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7905         part, use /.../, not \|...|. Escape periods in the header file name.
7906         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7907         Reported by Daniel Richard G. <skunk@iskunk.org>.
7908
7909 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7910
7911         Support for old NeXTstep 3.3 gcc.
7912         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7913         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7914         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7915         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7916         * lib/regex.h (_Restrict_arr_): Likewise.
7917         * lib/regex_internal.h (re_token_t): Likewise.
7918         * lib/regexec.c (check_node_accept_bytes): Likewise.
7919         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7920
7921 2011-10-18  Eric Blake  <eblake@redhat.com>
7922
7923         posix_openpt: new module
7924         * modules/posix_openpt: New module.
7925         * m4/posix_openpt.m4: New file.
7926         * lib/posix_openpt.c: Likewise.
7927         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7928         (gl_STDLIB_H_DEFAULTS): Set defaults.
7929         * modules/stdlib (Makefile.am): Substitute macros.
7930         * lib/stdlib.in.h (posix_openpt): Declare.
7931         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7932         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7933         * modules/posix_openpt-tests: New test module.
7934         * tests/test-posix_openpt.c: New test.
7935
7936 2011-10-15  Bruno Haible  <bruno@clisp.org>
7937
7938         xstrtoll: Fix compilation failure.
7939         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7940         from lib/strtol.c.
7941         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7942         some platforms.
7943         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7944
7945 2011-10-15  Bruno Haible  <bruno@clisp.org>
7946
7947         vasnprintf: Optimize bit search operation.
7948         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7949         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7950         gl_DOUBLE_EXPONENT_LOCATION.
7951         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7952         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7953         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7954         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7955         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7956         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7957         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7958         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7959         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7960
7961 2011-10-15  Bruno Haible  <bruno@clisp.org>
7962
7963         vasnprintf: Fix comments.
7964         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7965
7966 2011-10-14  Bruno Haible  <bruno@clisp.org>
7967
7968         Tests for module 'integer_length_ll'.
7969         * modules/integer_length_ll-tests: New file.
7970         * tests/test-integer_length_ll.c: New file.
7971
7972         New module 'integer_length_ll'.
7973         * lib/integer_length_ll.c: New file.
7974         * modules/integer_length_ll: New file.
7975
7976 2011-10-14  Bruno Haible  <bruno@clisp.org>
7977
7978         Tests for module 'integer_length_l'.
7979         * modules/integer_length_l-tests: New file.
7980         * tests/test-integer_length_l.c: New file.
7981
7982         New module 'integer_length_l'.
7983         * lib/integer_length_l.c: New file.
7984         * modules/integer_length_l: New file.
7985
7986 2011-10-14  Bruno Haible  <bruno@clisp.org>
7987
7988         Tests for module 'integer_length'.
7989         * modules/integer_length-tests: New file.
7990         * tests/test-integer_length.c: New file.
7991
7992         New module 'integer_length'.
7993         * lib/integer_length.h: New file.
7994         * lib/integer_length.c: New file.
7995         * modules/integer_length: New file.
7996
7997 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7998
7999         popen: Fix dependency conditions.
8000         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8001
8002 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8003
8004         perror: Fix autoconf test.
8005         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8006         <stdlib.h> and <string.h>.
8007
8008 2011-10-14  Bruno Haible  <bruno@clisp.org>
8009
8010         ffsl: Optimize on 64-bit platforms.
8011         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8012         unrolling.
8013
8014 2011-10-13  Bruno Haible  <bruno@clisp.org>
8015
8016         ffsl: Optimize on 32-bit platforms.
8017         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8018         use ffs() without a loop.
8019
8020         ffsl, ffsll: Optimize for GCC.
8021         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8022         * lib/ffsl.c (GCC_BUILTIN): New macro.
8023         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8024
8025 2011-10-13  Bruno Haible  <bruno@clisp.org>
8026
8027         ffs, bcopy, memset: Support symbol renaming via config.h.
8028         * lib/ffs.c: Include <config.h>.
8029         * lib/bcopy.c: Likewise.
8030         * lib/memset.c: Likewise.
8031
8032 2011-10-10  Bruno Haible  <bruno@clisp.org>
8033
8034         atanl: Simplify for platforms where 'long double' == 'double'.
8035         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8036         alternative implementation.
8037         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8038         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8039         * modules/atanl (Depends-on): Add atan. Update conditions.
8040
8041 2011-10-10  Bruno Haible  <bruno@clisp.org>
8042
8043         acosl: Simplify for platforms where 'long double' == 'double'.
8044         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8045         alternative implementation.
8046         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8047         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8048         * modules/acosl (Depends-on): Add acos. Update conditions.
8049
8050 2011-10-10  Bruno Haible  <bruno@clisp.org>
8051
8052         asinl: Simplify for platforms where 'long double' == 'double'.
8053         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8054         alternative implementation.
8055         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8056         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8057         * modules/asinl (Depends-on): Add asin. Update conditions.
8058
8059 2011-10-10  Bruno Haible  <bruno@clisp.org>
8060
8061         tanl: Simplify for platforms where 'long double' == 'double'.
8062         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8063         implementation.
8064         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8065         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8066         * modules/tanl (Depends-on): Add tan. Update conditions.
8067         (configure.ac): Don't compile trigl.c if
8068         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8069
8070 2011-10-10  Bruno Haible  <bruno@clisp.org>
8071
8072         cosl: Simplify for platforms where 'long double' == 'double'.
8073         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8074         implementation.
8075         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8076         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8077         * modules/cosl (Depends-on): Add cos. Update conditions.
8078         (configure.ac): Don't compile sincosl.c and trigl.c if
8079         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8080
8081 2011-10-10  Bruno Haible  <bruno@clisp.org>
8082
8083         sinl: Simplify for platforms where 'long double' == 'double'.
8084         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8085         implementation.
8086         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8087         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8088         * modules/sinl (Depends-on): Add sin. Update conditions.
8089         (configure.ac): Don't compile sincosl.c and trigl.c if
8090         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8091
8092 2011-10-10  Bruno Haible  <bruno@clisp.org>
8093
8094         logl: Simplify for platforms where 'long double' == 'double'.
8095         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8096         implementation.
8097         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8098         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8099         * modules/logl (Depends-on): Add log. Update conditions.
8100
8101 2011-10-10  Bruno Haible  <bruno@clisp.org>
8102
8103         expl: Simplify for platforms where 'long double' == 'double'.
8104         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8105         implementation.
8106         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8107         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8108         * modules/expl (Depends-on): Add exp. Update conditions.
8109
8110 2011-10-10  Bruno Haible  <bruno@clisp.org>
8111
8112         sqrtl: Simplify for platforms where 'long double' == 'double'.
8113         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8114         alternative implementation.
8115         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8116         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8117         * modules/sqrtl (Depends-on): Update conditions.
8118
8119 2011-10-10  Bruno Haible  <bruno@clisp.org>
8120
8121         ldexpl: Simplify for platforms where 'long double' == 'double'.
8122         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8123         alternative implementation.
8124         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8125         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8126         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8127
8128 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8129
8130         ffsll: set correct witness
8131         * modules/ffsll (configure.ac): Fix typo.
8132
8133 2011-10-10  Bruno Haible  <bruno@clisp.org>
8134
8135         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8136         * lib/printf-frexpl.c: Include <config.h>.
8137         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8138         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8139         second time.
8140         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8141         gl_LONG_DOUBLE_VS_DOUBLE.
8142         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8143         conditions.
8144
8145 2011-10-10  Bruno Haible  <bruno@clisp.org>
8146
8147         frexpl: Simplify for platforms where 'long double' == 'double'.
8148         * lib/frexpl.c: Include <config.h>.
8149         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8150         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8151         time.
8152         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8153         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8154         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8155         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8156         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8157         conditions.
8158
8159 2011-10-10  Jim Meyering  <meyering@redhat.com>
8160
8161         test-renameat: don't leave behind a temporary file
8162         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8163           ERROR: files left in build directory after distclean:
8164           ./gltests/test-renameat.too
8165           make[1]: *** [distcleancheck] Error 1
8166         Reported by Tom G. Christensen.
8167
8168 2011-10-09  Bruno Haible  <bruno@clisp.org>
8169
8170         rint: Determine RINT_LIBM correctly on AIX 7.
8171         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8172         directly, not only through a function pointer. Also accept an optional
8173         4th argument with extra code.
8174         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8175         rintf() call by gcc when optimizing.
8176
8177         mathfunc.m4: Refactor.
8178         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8179         m4 variable.
8180
8181 2011-10-09  Bruno Haible  <bruno@clisp.org>
8182
8183         rintl: Simplify for platforms where 'long double' == 'double'.
8184         * lib/rintl.c: Include <config.h>.
8185         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8186         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8187         time.
8188         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8189         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8190         * modules/rintl (Depends-on): Add rint. Update conditions.
8191
8192 2011-10-09  Bruno Haible  <bruno@clisp.org>
8193
8194         roundl: Simplify for platforms where 'long double' == 'double'.
8195         * lib/roundl.c: Include <config.h>.
8196         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8197         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8198         time.
8199         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8200         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8201         * modules/roundl (Depends-on): Add round. Update conditions.
8202
8203 2011-10-09  Bruno Haible  <bruno@clisp.org>
8204
8205         truncl: Simplify for platforms where 'long double' == 'double'.
8206         * lib/truncl.c: Include <config.h>.
8207         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8208         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8209         time.
8210         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8211         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8212         * modules/truncl (Depends-on): Add trunc. Update conditions.
8213
8214 2011-10-09  Bruno Haible  <bruno@clisp.org>
8215
8216         ceill: Simplify for platforms where 'long double' == 'double'.
8217         * lib/ceill.c: Include <config.h>.
8218         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8219         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8220         time.
8221         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8222         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8223         * modules/ceill (Depends-on): Add ceil. Update conditions.
8224
8225 2011-10-09  Bruno Haible  <bruno@clisp.org>
8226
8227         floorl: Simplify for platforms where 'long double' == 'double'.
8228         * lib/floorl.c: Include <config.h>.
8229         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8230         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8231         time.
8232         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8233         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8234         * modules/floorl (Depends-on): Add floor. Update conditions.
8235
8236 2011-10-09  Bruno Haible  <bruno@clisp.org>
8237
8238         rint: Fix ordering constraints.
8239         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8240         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8241         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8242
8243 2011-10-09  Bruno Haible  <bruno@clisp.org>
8244
8245         copysignl: Simplify for platforms where 'long double' == 'double'.
8246         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8247         alternative.
8248         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8249         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8250         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8251
8252 2011-10-09  Bruno Haible  <bruno@clisp.org>
8253
8254         Tests for module 'rintl'.
8255         * modules/rintl-tests: New file.
8256         * tests/test-rintl.c: New file.
8257
8258         New module 'rintl'.
8259         * lib/math.in.h (rintl): New declaration.
8260         * lib/rintl.c: New file.
8261         * m4/rintl.m4: New file.
8262         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
8263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
8264         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
8265         * modules/rintl: New file.
8266         * tests/test-math-c++.cc: Check the declaration of rintl.
8267         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8268         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8269         * doc/posix-functions/rintl.texi: Mention the new module.
8270
8271 2011-10-09  Bruno Haible  <bruno@clisp.org>
8272
8273         Tests for module 'rintf'.
8274         * modules/rintf-tests: New file.
8275         * tests/test-rintf.c: New file.
8276
8277         New module 'rintf'.
8278         * lib/math.in.h (rintf): New declaration.
8279         * lib/rintf.c: New file.
8280         * m4/rintf.m4: New file.
8281         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8282         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8283         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8284         * modules/rintf: New file.
8285         * tests/test-math-c++.cc: Check the declaration of rintf.
8286         * doc/posix-functions/rintf.texi: Mention the new module.
8287
8288 2011-10-09  Bruno Haible  <bruno@clisp.org>
8289
8290         rint: Support for MSVC.
8291         * lib/math.in.h (rint): New declaration.
8292         * lib/rint.c: New file.
8293         * m4/rint.m4: New file.
8294         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8296         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8297         * modules/rint (Description): Fix.
8298         (Files): Add lib/rint.c, m4/rint.m4.
8299         (Depends-on): Add math.
8300         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8301         gl_MATH_MODULE_INDICATOR.
8302         * tests/test-math-c++.cc: Check the declaration of rint.
8303         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8304         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8305         * doc/posix-functions/rint.texi: Mention the replacement provided by
8306         the module.
8307
8308         rint tests: More tests.
8309         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8310         minus-zero.h, infinity.h, nan.h.
8311         (main): Skip the test if the current rounding mode is not standard. Add
8312         tests for negative numbers, minus zero, infinity, NaN.
8313         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8314         tests/nan.h.
8315         (Depends-on): Add isnand-nolibm.
8316
8317 2011-10-09  Bruno Haible  <bruno@clisp.org>
8318
8319         Tests for module 'copysignl'.
8320         * modules/copysignl-tests: New file.
8321         * tests/test-copysignl.c: New file.
8322
8323         New module 'copysignl'.
8324         * lib/math.in.h (copysignl): New declaration.
8325         * lib/copysignl.c: New file.
8326         * m4/copysignl.m4: New file.
8327         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
8329         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
8330         HAVE_COPYSIGNL.
8331         * modules/copysignl: New file.
8332         * tests/test-math-c++.cc: Check the declaration of copysignl.
8333         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8334         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
8335         * doc/posix-functions/copysignl.texi: Mention the new module.
8336
8337 2011-10-09  Bruno Haible  <bruno@clisp.org>
8338
8339         Tests for module 'copysignf'.
8340         * modules/copysignf-tests: New file.
8341         * tests/test-copysignf.c: New file.
8342
8343         New module 'copysignf'.
8344         * lib/math.in.h (copysignf): New declaration.
8345         * lib/copysignf.c: New file.
8346         * m4/copysignf.m4: New file.
8347         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
8348         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
8349         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
8350         HAVE_COPYSIGNF.
8351         * modules/copysignf: New file.
8352         * tests/test-math-c++.cc: Check the declaration of copysignf.
8353         * doc/posix-functions/copysignf.texi: Mention the new module.
8354
8355 2011-10-09  Bruno Haible  <bruno@clisp.org>
8356
8357         Ensure that HAVE_* variables are set to 1 before they are set to 0.
8358         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
8359         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
8360         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8361         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
8362         gl_SIGNAL_H_DEFAULTS.
8363
8364 2011-10-09  Bruno Haible  <bruno@clisp.org>
8365
8366         poll: Make macro safer.
8367         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
8368         ac_cv_header_poll_h is not set.
8369
8370 2011-10-09  Bruno Haible  <bruno@clisp.org>
8371
8372         copysign: Provide replacement.
8373         * lib/math.in.h (copysign): New declaration.
8374         * lib/copysign.c: New file.
8375         * m4/copysign.m4: New file.
8376         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
8377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
8378         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
8379         HAVE_COPYSIGN.
8380         * modules/copysign (Description): Clarify.
8381         (Files): Add lib/copysign.c, m4/copysign.m4.
8382         (Depends-on): Add math, signbit.
8383         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
8384         gl_MATH_MODULE_INDICATOR.
8385         * tests/test-math-c++.cc: Check the declaration of copysign.
8386         * doc/posix-functions/copysign.texi: Mention the effects of the module
8387         on Minix and MSVC.
8388
8389 2011-10-09  Bruno Haible  <bruno@clisp.org>
8390
8391         isinf: Ensure macro on AIX 5.1.
8392         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8393         macro.
8394         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8395
8396 2011-10-09  Bruno Haible  <bruno@clisp.org>
8397
8398         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8399         * modules/snprintf-posix-tests (configure.ac): Require
8400         gl_LONG_DOUBLE_VS_DOUBLE.
8401         * modules/sprintf-posix-tests (configure.ac): Likewise.
8402         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8403         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8404         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8405         * modules/vsprintf-posix-tests (configure.ac): Likewise.
8406         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
8407         tests on platforms where 'long double' is the same as 'double'.
8408         * tests/test-sprintf-posix.h (test_function): Likewise.
8409         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8410         * tests/test-vasprintf-posix.c (test_function): Likewise.
8411
8412         *printf: Fix for platforms where 'long double' == 'double'.
8413         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8414         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
8415         * modules/dprintf-posix (Files): Add m4/math_h.m4.
8416         * modules/fprintf-posix (Files): Likewise.
8417         * modules/obstack-printf-posix (Files): Likewise.
8418         * modules/snprintf-posix (Files): Likewise.
8419         * modules/sprintf-posix (Files): Likewise.
8420         * modules/vasnprintf (Files): Likewise.
8421         * modules/vasnprintf-posix (Files): Likewise.
8422         * modules/vasprintf-posix (Files): Likewise.
8423         * modules/vdprintf-posix (Files): Likewise.
8424         * modules/vfprintf-posix (Files): Likewise.
8425         * modules/vsnprintf-posix (Files): Likewise.
8426         * modules/vsprintf-posix (Files): Likewise.
8427         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8428         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8429         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8430         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8431         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8432         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8433         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8434
8435         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8436         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
8437         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8438         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
8439         'long double'.
8440         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
8441
8442         isinf: Fix for platforms where 'long double' == 'double'.
8443         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8444         Don't blindly assume 80-bit 'long double'.
8445
8446         isfinite: Fix for platforms where 'long double' == 'double'.
8447         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8448         Don't blindly assume 80-bit 'long double'.
8449
8450         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8451         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
8452         * modules/isfinite-tests (configure.ac): Require
8453         gl_LONG_DOUBLE_VS_DOUBLE.
8454         * modules/isinf-tests (configure.ac): Likewise.
8455         * modules/isnan-tests (configure.ac): Likewise.
8456         * modules/isnanl-tests (configure.ac): Likewise.
8457         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
8458         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
8459         tests on platforms where 'long double' is the same as 'double'.
8460         * tests/test-isinf.c (test_isinfl): Likewise.
8461         * tests/test-isnan.c (test_long_double): Likewise.
8462         * tests/test-isnanl.h (main): Likewise.
8463
8464 2011-10-08  Bruno Haible  <bruno@clisp.org>
8465
8466         Tests for module 'tanhf'.
8467         * modules/tanhf-tests: New file.
8468         * tests/test-tanhf.c: New file.
8469
8470         New module 'tanhf'.
8471         * lib/math.in.h (tanhf): New declaration.
8472         * lib/tanhf.c: New file.
8473         * m4/tanhf.m4: New file.
8474         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
8475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
8476         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
8477         * modules/tanhf: New file.
8478         * tests/test-math-c++.cc: Check the declaration of tanhf.
8479         * doc/posix-functions/tanhf.texi: Mention the new module.
8480
8481         tanh: Use a .m4 file.
8482         * m4/tanh.m4: New file.
8483         * modules/tanh (Files): Add it.
8484         (configure.ac): Just invoke gl_FUNC_TANH.
8485
8486 2011-10-08  Bruno Haible  <bruno@clisp.org>
8487
8488         Tests for module 'coshf'.
8489         * modules/coshf-tests: New file.
8490         * tests/test-coshf.c: New file.
8491
8492         New module 'coshf'.
8493         * lib/math.in.h (coshf): New declaration.
8494         * lib/coshf.c: New file.
8495         * m4/coshf.m4: New file.
8496         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8498         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8499         * modules/coshf: New file.
8500         * tests/test-math-c++.cc: Check the declaration of coshf.
8501         * doc/posix-functions/coshf.texi: Mention the new module.
8502
8503         cosh: Use a .m4 file.
8504         * m4/cosh.m4: New file.
8505         * modules/cosh (Files): Add it.
8506         (configure.ac): Just invoke gl_FUNC_COSH.
8507
8508 2011-10-08  Bruno Haible  <bruno@clisp.org>
8509
8510         Tests for module 'sinhf'.
8511         * modules/sinhf-tests: New file.
8512         * tests/test-sinhf.c: New file.
8513
8514         New module 'sinhf'.
8515         * lib/math.in.h (sinhf): New declaration.
8516         * lib/sinhf.c: New file.
8517         * m4/sinhf.m4: New file.
8518         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8519         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8520         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8521         * modules/sinhf: New file.
8522         * tests/test-math-c++.cc: Check the declaration of sinhf.
8523         * doc/posix-functions/sinhf.texi: Mention the new module.
8524
8525         sinh: Use a .m4 file.
8526         * m4/sinh.m4: New file.
8527         * modules/sinh (Files): Add it.
8528         (configure.ac): Just invoke gl_FUNC_SINH.
8529
8530 2011-10-08  Bruno Haible  <bruno@clisp.org>
8531
8532         Tests for module 'atan2f'.
8533         * modules/atan2f-tests: New file.
8534         * tests/test-atan2f.c: New file.
8535
8536         New module 'atan2f'.
8537         * lib/math.in.h (atan2f): New declaration.
8538         * lib/atan2f.c: New file.
8539         * m4/atan2f.m4: New file.
8540         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8542         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8543         * modules/atan2f: New file.
8544         * tests/test-math-c++.cc: Check the declaration of atan2f.
8545         * doc/posix-functions/atan2f.texi: Mention the new module.
8546
8547         atan2: Use a .m4 file.
8548         * m4/atan2.m4: New file.
8549         * modules/atan2 (Files): Add it.
8550         (configure.ac): Just invoke gl_FUNC_ATAN2.
8551
8552 2011-10-08  Bruno Haible  <bruno@clisp.org>
8553
8554         Tests for module 'atanf'.
8555         * modules/atanf-tests: New file.
8556         * tests/test-atanf.c: New file.
8557
8558         New module 'atanf'.
8559         * lib/math.in.h (atanf): New declaration.
8560         * lib/atanf.c: New file.
8561         * m4/atanf.m4: New file.
8562         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8564         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8565         * modules/atanf: New file.
8566         * tests/test-math-c++.cc: Check the declaration of atanf.
8567         * doc/posix-functions/atanf.texi: Mention the new module.
8568
8569         atan: Use a .m4 file.
8570         * m4/atan.m4: New file.
8571         * modules/atan (Files): Add it.
8572         (configure.ac): Just invoke gl_FUNC_ATAN.
8573
8574 2011-10-08  Bruno Haible  <bruno@clisp.org>
8575
8576         Tests for module 'acosf'.
8577         * modules/acosf-tests: New file.
8578         * tests/test-acosf.c: New file.
8579
8580         New module 'acosf'.
8581         * lib/math.in.h (acosf): New declaration.
8582         * lib/acosf.c: New file.
8583         * m4/acosf.m4: New file.
8584         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8585         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8586         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8587         * modules/acosf: New file.
8588         * tests/test-math-c++.cc: Check the declaration of acosf.
8589         * doc/posix-functions/acosf.texi: Mention the new module.
8590
8591         acos: Use a .m4 file.
8592         * m4/acos.m4: New file.
8593         * modules/acos (Files): Add it.
8594         (configure.ac): Just invoke gl_FUNC_ACOS.
8595
8596 2011-10-08  Bruno Haible  <bruno@clisp.org>
8597
8598         Tests for module 'asinf'.
8599         * modules/asinf-tests: New file.
8600         * tests/test-asinf.c: New file.
8601
8602         New module 'asinf'.
8603         * lib/math.in.h (asinf): New declaration.
8604         * lib/asinf.c: New file.
8605         * m4/asinf.m4: New file.
8606         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8607         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8608         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8609         * modules/asinf: New file.
8610         * tests/test-math-c++.cc: Check the declaration of asinf.
8611         * doc/posix-functions/asinf.texi: Mention the new module.
8612
8613         asin: Use a .m4 file.
8614         * m4/asin.m4: New file.
8615         * modules/asin (Files): Add it.
8616         (configure.ac): Just invoke gl_FUNC_ASIN.
8617
8618 2011-10-08  Bruno Haible  <bruno@clisp.org>
8619
8620         Tests for module 'tanf'.
8621         * modules/tanf-tests: New file.
8622         * tests/test-tanf.c: New file.
8623
8624         New module 'tanf'.
8625         * lib/math.in.h (tanf): New declaration.
8626         * lib/tanf.c: New file.
8627         * m4/tanf.m4: New file.
8628         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8629         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8630         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8631         * modules/tanf: New file.
8632         * tests/test-math-c++.cc: Check the declaration of tanf.
8633         * doc/posix-functions/tanf.texi: Mention the new module.
8634
8635         tan: Use a .m4 file.
8636         * m4/tan.m4: New file.
8637         * modules/tan (Files): Add it.
8638         (configure.ac): Just invoke gl_FUNC_TAN.
8639
8640 2011-10-08  Bruno Haible  <bruno@clisp.org>
8641
8642         Tests for module 'cosf'.
8643         * modules/cosf-tests: New file.
8644         * tests/test-cosf.c: New file.
8645
8646         New module 'cosf'.
8647         * lib/math.in.h (cosf): New declaration.
8648         * lib/cosf.c: New file.
8649         * m4/cosf.m4: New file.
8650         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8651         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8652         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8653         * modules/cosf: New file.
8654         * tests/test-math-c++.cc: Check the declaration of cosf.
8655         * doc/posix-functions/cosf.texi: Mention the new module.
8656
8657         cos: Use a .m4 file.
8658         * m4/cos.m4: New file.
8659         * modules/cos (Files): Add it.
8660         (configure.ac): Just invoke gl_FUNC_COS.
8661
8662 2011-10-08  Bruno Haible  <bruno@clisp.org>
8663
8664         Tests for module 'sinf'.
8665         * modules/sinf-tests: New file.
8666         * tests/test-sinf.c: New file.
8667
8668         New module 'sinf'.
8669         * lib/math.in.h (sinf): New declaration.
8670         * lib/sinf.c: New file.
8671         * m4/sinf.m4: New file.
8672         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8673         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8674         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8675         * modules/sinf: New file.
8676         * tests/test-math-c++.cc: Check the declaration of sinf.
8677         * doc/posix-functions/sinf.texi: Mention the new module.
8678
8679         sin: Use a .m4 file.
8680         * m4/sin.m4: New file.
8681         * modules/sin (Files): Add it.
8682         (configure.ac): Just invoke gl_FUNC_SIN.
8683
8684 2011-10-08  Bruno Haible  <bruno@clisp.org>
8685
8686         Tests for module 'powf'.
8687         * modules/powf-tests: New file.
8688         * tests/test-powf.c: New file.
8689
8690         New module 'powf'.
8691         * lib/math.in.h (powf): New declaration.
8692         * lib/powf.c: New file.
8693         * m4/powf.m4: New file.
8694         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8696         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8697         * modules/powf: New file.
8698         * tests/test-math-c++.cc: Check the declaration of powf.
8699         * doc/posix-functions/powf.texi: Mention the new module.
8700
8701         pow: Use a .m4 file.
8702         * m4/pow.m4: New file.
8703         * modules/pow (Files): Add it.
8704         (configure.ac): Just invoke gl_FUNC_POW.
8705
8706 2011-10-08  Bruno Haible  <bruno@clisp.org>
8707
8708         Tests for module 'log10f'.
8709         * modules/log10f-tests: New file.
8710         * tests/test-log10f.c: New file.
8711
8712         New module 'log10f'.
8713         * lib/math.in.h (log10f): New declaration.
8714         * lib/log10f.c: New file.
8715         * m4/log10f.m4: New file.
8716         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8718         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8719         * modules/log10f: New file.
8720         * tests/test-math-c++.cc: Check the declaration of log10f.
8721         * doc/posix-functions/log10f.texi: Mention the new module.
8722
8723         log10: Use a .m4 file.
8724         * m4/log10.m4: New file.
8725         * modules/log10 (Files): Add it.
8726         (configure.ac): Just invoke gl_FUNC_LOG10.
8727
8728 2011-10-08  Bruno Haible  <bruno@clisp.org>
8729
8730         Tests for module 'logf'.
8731         * modules/logf-tests: New file.
8732         * tests/test-logf.c: New file.
8733
8734         New module 'logf'.
8735         * lib/math.in.h (logf): New declaration.
8736         * lib/logf.c: New file.
8737         * m4/logf.m4: New file.
8738         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8739         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8740         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8741         * modules/logf: New file.
8742         * tests/test-math-c++.cc: Check the declaration of logf.
8743         * doc/posix-functions/logf.texi: Mention the new module.
8744
8745         log: Use a .m4 file.
8746         * m4/log.m4: New file.
8747         * modules/log (Files): Add it.
8748         (configure.ac): Just invoke gl_FUNC_LOG.
8749
8750 2011-10-08  Bruno Haible  <bruno@clisp.org>
8751
8752         Tests for module 'expf'.
8753         * modules/expf-tests: New file.
8754         * tests/test-expf.c: New file.
8755
8756         New module 'expf'.
8757         * lib/math.in.h (expf): New declaration.
8758         * lib/expf.c: New file.
8759         * m4/expf.m4: New file.
8760         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8761         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8762         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8763         * modules/expf: New file.
8764         * tests/test-math-c++.cc: Check the declaration of expf.
8765         * doc/posix-functions/expf.texi: Mention the new module.
8766
8767         exp: Use a .m4 file.
8768         * m4/exp.m4: New file.
8769         * modules/exp (Files): Add it.
8770         (configure.ac): Just invoke gl_FUNC_EXP.
8771
8772 2011-10-08  Bruno Haible  <bruno@clisp.org>
8773
8774         Tests for module 'sqrtf'.
8775         * modules/sqrtf-tests: New file.
8776         * tests/test-sqrtf.c: New file.
8777
8778         New module 'sqrtf'.
8779         * lib/math.in.h (sqrtf): New declaration.
8780         * lib/sqrtf.c: New file.
8781         * m4/sqrtf.m4: New file.
8782         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8784         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8785         * modules/sqrtf: New file.
8786         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8787         * doc/posix-functions/sqrtf.texi: Mention the new module.
8788
8789 2011-10-08  Bruno Haible  <bruno@clisp.org>
8790
8791         Tests: Avoid link failures w.r.t. libintl.
8792         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8793         $(LIBINTL).
8794         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8795         $(LIBINTL).
8796         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8797         against $(LIBINTL).
8798         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8799         $(LIBINTL).
8800         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8801         $(LIBINTL).
8802         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8803
8804 2011-10-08  Bruno Haible  <bruno@clisp.org>
8805
8806         pow tests: Defeat compiler optimizations.
8807         * tests/test-pow.c (main): Assign arguments to x and y before use.
8808
8809 2011-10-08  Bruno Haible  <bruno@clisp.org>
8810
8811         gnulib-tool: Improve last commit.
8812         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8813         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8814         ignore dependencies that are not among the modules list.
8815
8816 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8817
8818         gnulib-tool: don't follow dependencies to avoided modules
8819         This fixes a bug that is related to the previous one.
8820         * gnulib-tool (func_modules_transitive_closure)
8821         (func_emit_autoconf_snippets):
8822         Check whether a dependency is acceptable before using it.
8823         (--extract-dependencies): Report an error if --avoid is also used,
8824         since this combination of options is not yet supported.
8825
8826         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8827         Problem reported by Peter Dyballa in
8828         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8829         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8830         when echoing "$condition".
8831
8832 2011-10-07  Bruno Haible  <bruno@clisp.org>
8833
8834         Fix documentation about math functions on MacOS X.
8835         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8836         MacOS X 10.5.
8837         * doc/posix-functions/fdim.texi: Likewise.
8838         * doc/posix-functions/feclearexcept.texi: Likewise.
8839         * doc/posix-functions/fegetenv.texi: Likewise.
8840         * doc/posix-functions/fegetround.texi: Likewise.
8841         * doc/posix-functions/feholdexcept.texi: Likewise.
8842         * doc/posix-functions/feraiseexcept.texi: Likewise.
8843         * doc/posix-functions/fesetenv.texi: Likewise.
8844         * doc/posix-functions/fesetround.texi: Likewise.
8845         * doc/posix-functions/fetestexcept.texi: Likewise.
8846         * doc/posix-functions/feupdateenv.texi: Likewise.
8847         * doc/posix-functions/fmax.texi: Likewise.
8848         * doc/posix-functions/fmin.texi: Likewise.
8849         * doc/posix-functions/log2.texi: Likewise.
8850         * doc/posix-functions/modff.texi: Likewise.
8851         * doc/posix-functions/nan.texi: Likewise.
8852         * doc/posix-functions/nanf.texi: Likewise.
8853         * doc/posix-functions/nextafterf.texi: Likewise.
8854         * doc/posix-functions/remquo.texi: Likewise.
8855
8856 2011-10-07  Bruno Haible  <bruno@clisp.org>
8857
8858         modff: Drop assumption about library that defines modff.
8859         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8860         AC_CHECK_FUNCS.
8861         * modules/modff (Files): Add m4/mathfunc.m4.
8862
8863 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8864
8865         raise tests: Avoid a GCC warning.
8866         * tests/test-raise.c (handler): Use _Noreturn.
8867
8868 2011-10-07  Bruno Haible  <bruno@clisp.org>
8869
8870         Tests for module 'ldexpf'.
8871         * modules/ldexpf-tests: New file.
8872         * tests/test-ldexpf.c: New file.
8873
8874         New module 'ldexpf'.
8875         * lib/math.in.h (ldexpf): New declaration.
8876         * lib/ldexpf.c: New file.
8877         * m4/ldexpf.m4: New file.
8878         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8879         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8880         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8881         * modules/ldexpf: New file.
8882         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8883         * doc/posix-functions/ldexpf.texi: Mention the new module.
8884
8885 2011-10-06  Bruno Haible  <bruno@clisp.org>
8886
8887         frexpf: Work around problems on IRIX and mingw.
8888         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8890         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8891         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8892         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8893         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8894         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8895
8896 2011-10-06  Bruno Haible  <bruno@clisp.org>
8897
8898         fabsf: Drop assumption about library that defines fabsf.
8899         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8900         AC_CHECK_FUNCS.
8901         * modules/fabsf (Files): Add m4/mathfunc.m4.
8902
8903 2011-10-06  Bruno Haible  <bruno@clisp.org>
8904
8905         frexpf: Drop assumption about library that defines frexpf.
8906         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8907         'int *', 'float *', 'long double *', 'float', 'long double'.
8908         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8909         AC_CHECK_FUNCS.
8910         * modules/frexpf (Files): Add m4/mathfunc.m4.
8911
8912         Tests for module 'frexpf'.
8913         * modules/frexpf-tests: New file.
8914         * tests/test-frexpf.c: New file.
8915
8916         New module 'frexpf'.
8917         * lib/math.in.h (frexpf): New declaration.
8918         * lib/frexpf.c: New file.
8919         * m4/frexpf.m4: New file.
8920         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8921         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8922         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8923         * modules/frexpf: New file.
8924         * tests/test-math-c++.cc: Check the declaration of frexpf.
8925         * doc/posix-functions/frexpf.texi: Mention the new module.
8926
8927 2011-10-06  Bruno Haible  <bruno@clisp.org>
8928
8929         math: Sort function declarations of math.in.h.
8930         * lib/math.in.h (frexp, logb): Move declarations.
8931
8932 2011-10-05  Bruno Haible  <bruno@clisp.org>
8933
8934         Tests for module 'modff'.
8935         * modules/modff-tests: New file.
8936         * tests/test-modff.c: New file.
8937
8938         New module 'modff'.
8939         * lib/math.in.h (modff): New declaration.
8940         * lib/modff.c: New file.
8941         * m4/modff.m4: New file.
8942         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8944         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8945         * modules/modff: New file.
8946         * tests/test-math-c++.cc: Check the declaration of modff.
8947         * doc/posix-functions/modff.texi: Mention the new module.
8948
8949         modf tests: Make test sharper.
8950         * tests/test-modf.c (main): Strengthen upper bound.
8951
8952         modf: Use a .m4 file.
8953         * m4/modf.m4: New file.
8954         * modules/modf (Files): Add it.
8955         (configure.ac): Just invoke gl_FUNC_MODF.
8956
8957 2011-10-05  Bruno Haible  <bruno@clisp.org>
8958
8959         Tests for module 'fmodf'.
8960         * modules/fmodf-tests: New file.
8961         * tests/test-fmodf.c: New file.
8962
8963         New module 'fmodf'.
8964         * lib/math.in.h (fmodf): New declaration.
8965         * lib/fmodf.c: New file.
8966         * m4/fmodf.m4: New file.
8967         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8969         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8970         * modules/fmodf: New file.
8971         * tests/test-math-c++.cc: Check the declaration of fmodf.
8972         * doc/posix-functions/fmodf.texi: Mention the new module.
8973
8974         fmod: Use a .m4 file.
8975         * m4/fmod.m4: New file.
8976         * modules/fmod (Files): Add it.
8977         (configure.ac): Just invoke gl_FUNC_FMOD.
8978
8979 2011-10-05  Bruno Haible  <bruno@clisp.org>
8980
8981         Tests for module 'fabsf'.
8982         * modules/fabsf-tests: New file.
8983         * tests/test-fabsf.c: New file.
8984
8985         New module 'fabsf'.
8986         * lib/math.in.h (fabsf): New declaration.
8987         * lib/fabsf.c: New file.
8988         * m4/fabsf.m4: New file.
8989         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8991         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8992         * modules/fabsf: New file.
8993         * tests/test-math-c++.cc: Check the declaration of fabsf.
8994         * doc/posix-functions/fabsf.texi: Mention the new module.
8995
8996         fabs: Use a .m4 file.
8997         * m4/fabs.m4: New file.
8998         * modules/fabs (Files): Add it.
8999         (configure.ac): Just invoke gl_FUNC_FABS.
9000
9001 2011-10-05  Jim Meyering  <meyering@redhat.com>
9002
9003         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9004         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9005         ls -lL regression introduced in coreutils-8.12, it does so at the
9006         cost of an additional stat call in the common case.  Besides, now
9007         that the kernel change that prompted commit 95f7c57f has been reverted
9008         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9009         we have no use for commit 95f7c57f, "file-has-acl: use
9010         acl_extended_file_nofollow if available".
9011
9012 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9013
9014         file-has-acl: revert unintended change in behavior of ls -L
9015         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9016         derived from...
9017         (file_has_acl): ...code here.  Call it.
9018         This problem was introduced with 2011-07-22 commit 95f7c57f,
9019         "file-has-acl: use acl_extended_file_nofollow if available".
9020         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9021
9022 2011-10-03  Bruno Haible  <bruno@clisp.org>
9023
9024         poll: Avoid link errors on MSVC.
9025         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9026         * modules/poll (Depends-on): Add sockets.
9027         (Link): New section.
9028         * NEWS: Mention the change.
9029         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9030         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9031         $(LIB_POLL) instead of $(LIBSOCKET).
9032
9033 2011-10-03  Bruno Haible  <bruno@clisp.org>
9034
9035         sys_select tests: Fix link error on MSVC 9.
9036         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9037         with $(LIB_SELECT) instead of $(LIBSOCKET).
9038
9039 2011-10-03  Bruno Haible  <bruno@clisp.org>
9040
9041         sys_select: Fix compilation error on mingw.
9042         * lib/sys_select.in.h: On native Windows, include <io.h>.
9043
9044 2011-10-03  Bruno Haible  <bruno@clisp.org>
9045
9046         wmemset: Support for MSVC.
9047         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9048         whether wmemset() exists.
9049
9050 2011-10-03  Bruno Haible  <bruno@clisp.org>
9051
9052         wmemmove: Support for MSVC.
9053         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9054         whether wmemmove() exists.
9055
9056 2011-10-03  Bruno Haible  <bruno@clisp.org>
9057
9058         wmemcpy: Support for MSVC.
9059         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9060         whether wmemcpy() exists.
9061
9062 2011-10-03  Bruno Haible  <bruno@clisp.org>
9063
9064         wmemcmp: Support for MSVC.
9065         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9066         whether wmemcmp() exists.
9067
9068 2011-10-03  Bruno Haible  <bruno@clisp.org>
9069
9070         wmemchr: Support for MSVC.
9071         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9072         whether wmemchr() exists.
9073
9074 2011-10-03  Bruno Haible  <bruno@clisp.org>
9075
9076         glthread/*, strsignal: Support for MSVC.
9077         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9078         including <winsock.h> on MSVC 9.
9079         * lib/glthread/lock.h: Likewise.
9080         * lib/glthread/thread.h: Likewise.
9081         * lib/glthread/tls.h: Likewise.
9082         * lib/glthread/yield.h: Likewise.
9083         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9084         if HAVE_UNISTD_H is false.
9085         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9086
9087 2011-10-03  Bruno Haible  <bruno@clisp.org>
9088
9089         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9090         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9091         Set to 100000.
9092
9093 2011-10-03  Bruno Haible  <bruno@clisp.org>
9094
9095         acl: Fix specification.
9096         * lib/file-has-acl.c (file_has_acl): Fix specification.
9097
9098 2011-10-03  Bruno Haible  <bruno@clisp.org>
9099
9100         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9101         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9102         (compute_curr_prefix, shared_library_fullname,
9103         find_shared_library_fullname, get_shared_library_fullname, relocate):
9104         Use it together with PIC && INSTALLDIR.
9105         Reported by <jojelino@gmail.com>
9106         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9107
9108 2011-10-01  Jim Meyering  <meyering@redhat.com>
9109
9110         maint.mk: adjust a release-related rule not to require use of gzip
9111         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9112         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9113         projects that build only .tar.xz files.  Also fix an erroneous test.
9114
9115         test-linkat: don't leave behind a temporary file
9116         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9117         Otherwise, coreutils' "make distcheck" would fail with this:
9118           Only in /c/cu/tests/torture/coreutils/test/\
9119             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9120           make[2]: *** [my-distcheck] Error 1
9121
9122         float, math: add omitted file
9123         * lib/itold.c: Add file, required for yesterday's float change.
9124
9125 2011-10-01  Bruno Haible  <bruno@clisp.org>
9126
9127         isinf: Fix for OpenBSD/x86.
9128         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9129         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9130         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9131
9132 2011-10-01  Bruno Haible  <bruno@clisp.org>
9133
9134         isfinite: Fix syntax error in configure test.
9135         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9136
9137         isfinite: Fix typo.
9138         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9139         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9140
9141 2011-10-01  Bruno Haible  <bruno@clisp.org>
9142
9143         nonblocking tests: Fix test failure on Linux/IA-64.
9144         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9145         Set to 270000.
9146
9147 2011-10-01  Bruno Haible  <bruno@clisp.org>
9148
9149         mkfifoat tests: Fix a test failure on mingw.
9150         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9151         with error ENOSYS.
9152
9153 2011-09-30  Bruno Haible  <bruno@clisp.org>
9154
9155         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9156         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9157         'long double'. Set REPLACE_ITOLD.
9158         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9159         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9160         * lib/itold.c: New file.
9161         * modules/float (Files): Add lib/itold.c.
9162         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9163         (Makefile.am): Substitute REPLACE_ITOLD.
9164         * modules/math (Depends-on): Add float.
9165         (Makefile.am): Substitute REPLACE_ITOLD.
9166         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9167         * doc/posix-headers/math.texi: Likewise.
9168         * doc/posix-functions/logl.texi: Likewise.
9169
9170 2011-09-30  Bruno Haible  <bruno@clisp.org>
9171
9172         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9173         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9174         Set to 140000.
9175
9176 2011-09-30  Bruno Haible  <bruno@clisp.org>
9177
9178         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9179         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9180         invocation, say "right after AC_PROG_CC_STDC", not "right after
9181         AC_PROG_CC".
9182         Reported by Gary V. Vaughan <gary@gnu.org>.
9183
9184 2011-09-30  Bruno Haible  <bruno@clisp.org>
9185
9186         Centralize C99 requirement.
9187         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9188         * modules/stdarg (configure.ac-early): Invoke it instead of
9189         AC_PROG_CC_STDC.
9190         Reported by Gary V. Vaughan and Paul Eggert.
9191
9192 2011-09-29  Bruno Haible  <bruno@clisp.org>
9193
9194         float: Fix LDBL_MAX value on Linux/PowerPC.
9195         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9196         on Linux/PowerPC.
9197         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9198         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9199         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9200         platform.
9201         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9202
9203 2011-09-29  Bruno Haible  <bruno@clisp.org>
9204
9205         doc: Improve doc about gl_EARLY.
9206         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9207         AC_PROG_CC_STDC invocation.
9208         Reported by Gary V. Vaughan <gary@gnu.org>.
9209
9210 2011-09-28  Bruno Haible  <bruno@clisp.org>
9211
9212         fgetc, fputc, fread, fwrite tests: Fix link error.
9213         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9214         on non-MSVC platforms.
9215         * tests/test-fputc.c (main): Likewise.
9216         * tests/test-fread.c (main): Likewise.
9217         * tests/test-fwrite.c (main): Likewise.
9218         Reported by Jim Meyering.
9219
9220 2011-09-27  Bruno Haible  <bruno@clisp.org>
9221
9222         fputc, fwrite tests: Avoid test failure on MSVC.
9223         * tests/test-fgetc.c: Include msvc-inval.h.
9224         (main): Invoke gl_msvc_inval_ensure_handler.
9225         * tests/test-fputc.c: Include msvc-inval.h.
9226         (main): Invoke gl_msvc_inval_ensure_handler.
9227         * tests/test-fread.c: Include msvc-inval.h.
9228         (main): Invoke gl_msvc_inval_ensure_handler.
9229         * tests/test-fwrite.c: Include msvc-inval.h.
9230         (main): Invoke gl_msvc_inval_ensure_handler.
9231         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9232         * modules/fputc-tests (Depends-on): Likewise.
9233         * modules/fread-tests (Depends-on): Likewise.
9234         * modules/fwrite-tests (Depends-on): Likewise.
9235
9236 2011-09-27  Bruno Haible  <bruno@clisp.org>
9237
9238         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9239         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9240         (raise): Remove older, duplicated declaration.
9241         (_gl_raise_SIGPIPE): New declaration.
9242         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9243         (rpl_raise): Remove function.
9244         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9245         a gnulib-defined SIGPIPE here.
9246         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9247         'sigprocmask' has detected missing signal-blocking and the module
9248         'sigpipe' is enabled.
9249         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9250
9251 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9252
9253         base64-tests: avoid memory leak
9254         * tests/test-base64.c (main): Plug memory leak.
9255
9256         base32: new module
9257         * modules/base32: New module.
9258         * lib/base32.c: New file.
9259         * lib/base32.h: Likewise.
9260         * m4/base32.m4: Likewise.
9261         * modules/base32-tests: New test.
9262         * tests/test-base32.c: Likewise.
9263         * MODULES.html.sh (Misc): Mention it.
9264
9265 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9266
9267         gnulib: use more-standard license notice wording
9268         * gnulib-tool (func_emit_copyright_notice): When emitting a
9269         license notice into a file, use the standard wording as suggested
9270         by the current information for GNU maintainers, except say "file"
9271         rather than "program".  The new wording gives a license version
9272         number, which addresses an issue raised by Glenn Morris in
9273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9274         * m4/onceonly.m4: Use that same wording here, too.
9275
9276         dup2: minor simplification
9277         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9278         as lib/dup2.c no longer uses 'inline'.
9279
9280 2011-09-25  Bruno Haible  <bruno@clisp.org>
9281
9282         strings: Fix compilation error on MSVC.
9283         * lib/strings.in.h: Include <stddef.h> for size_t.
9284
9285 2011-09-25  Bruno Haible  <bruno@clisp.org>
9286
9287         fflush et al.: Document limitation on MSVC.
9288         * doc/posix-functions/fflush.texi: Document possible crash in handling
9289         mode other than DEFAULT_HANDLING.
9290         * doc/posix-functions/fgetc.texi: Likewise.
9291         * doc/posix-functions/fputc.texi: Likewise.
9292         * doc/posix-functions/fread.texi: Likewise.
9293         * doc/posix-functions/fwrite.texi: Likewise.
9294
9295 2011-09-25  Bruno Haible  <bruno@clisp.org>
9296
9297         msvc-inval: Allow three invalid parameter handling modes.
9298         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9299         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9300         macros.
9301         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9302         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9303         SANE_LIBRARY_HANDLING as a no-op.
9304         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9305         <stdlib.h>.
9306         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9307
9308 2011-09-25  Bruno Haible  <bruno@clisp.org>
9309
9310         msvc-inval: Make handler multithread-safe.
9311         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9312         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9313         declarations.
9314         (gl_msvc_inval_current): New declaration.
9315         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9316         Operate on the structure returned by gl_msvc_inval_current().
9317         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9318         Remove varaiables.
9319         (tls_index, tls_initialized): New variables.
9320         (not_per_thread): New variable.
9321         (gl_msvc_inval_current): New function.
9322         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9323         returned by gl_msvc_inval_current().
9324
9325 2011-09-25  Bruno Haible  <bruno@clisp.org>
9326
9327         msvc-inval: Install handler globally.
9328         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
9329         !_MSC_VER.
9330         (gl_msvc_invalid_parameter_handler): Remove declaration.
9331         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
9332         declarations.
9333         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9334         Install the handler globally, don't uninstall it.
9335         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
9336         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
9337         currently valid, call RaiseException instead.
9338         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
9339         for !_MSC_VER.
9340
9341 2011-09-25  Bruno Haible  <bruno@clisp.org>
9342
9343         strerror_r-posix: Fix for MSVC 9.
9344         * lib/strerror_r.c (local_snprintf): New function.
9345         (snprintf): Define to local_snprintf, not to _snprintf.
9346
9347 2011-09-25  Bruno Haible  <bruno@clisp.org>
9348
9349         ftruncate: Support for MSVC 9.
9350         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
9351         (chsize_nothrow): New function.
9352         (chsize): Redefine as a macro.
9353         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
9354         * modules/ftruncate (Depends-on): Add msvc-inval.
9355
9356 2011-09-25  Bruno Haible  <bruno@clisp.org>
9357
9358         New module 'fstat'.
9359         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
9360         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
9361         * lib/fchdir.c (rpl_fstat): Remove function.
9362         * m4/fstat.m4: New file.
9363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
9364         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
9365         declared.
9366         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
9367         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
9368         * modules/fstat: New file.
9369         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
9370         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
9371         is set.
9372         * doc/posix-functions/fstat.texi: Mention the new module and the
9373         problem on MSVC.
9374         * NEWS: Mention the change.
9375         * modules/acl (Depends-on): Add fstat.
9376         * modules/chdir-safer (Depends-on): Likewise.
9377         * modules/chown (Depends-on): Likewise.
9378         * modules/copy-file (Depends-on): Likewise.
9379         * modules/fchdir (Depends-on): Likewise.
9380         * modules/fdopendir (Depends-on): Likewise.
9381         * modules/fopen (Depends-on): Likewise.
9382         * modules/fts (Depends-on): Likewise.
9383         * modules/getcwd (Depends-on): Likewise.
9384         * modules/isapipe (Depends-on): Likewise.
9385         * modules/linkat (Depends-on): Likewise.
9386         * modules/lseek (Depends-on): Likewise.
9387         * modules/mkdir-p (Depends-on): Likewise.
9388         * modules/open (Depends-on): Likewise.
9389         * modules/openat (Depends-on): Likewise.
9390         * modules/read-file (Depends-on): Likewise.
9391         * modules/renameat (Depends-on): Likewise.
9392         * modules/utimens (Depends-on): Likewise.
9393
9394 2011-09-25  Bruno Haible  <bruno@clisp.org>
9395
9396         linkat: Fix compilation on MSVC 9.
9397         * lib/linkat.c: Don't include <stdint.h>.
9398
9399 2011-09-25  Bruno Haible  <bruno@clisp.org>
9400
9401         fclose: Support for MSVC 9.
9402         * lib/fclose.c: Include msvc-inval.h.
9403         (fclose_nothrow): New function.
9404         (rpl_fclose): Use it.
9405         * modules/fclose (Depends-on): Add msvc-inval.
9406         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
9407
9408 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9409
9410         dup2: minor simplifications
9411         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
9412         that it's a performance win.
9413         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
9414         ! defined __CYGWIN__)" to "ifdef F_GETFL".
9415
9416 2011-09-24  Jim Meyering  <meyering@redhat.com>
9417
9418         test-futimens: avoid a warning from gcc -Wshadow
9419         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
9420         to avoid a shadowing warning.
9421
9422 2011-09-24  Bruno Haible  <bruno@clisp.org>
9423
9424         fdopen: Support for MSVC 9.
9425         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
9426         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9427         * lib/fdopen.c: Include msvc-inval.h.
9428         (fdopen_nothrow): New function.
9429         (rpl_fdopen): Use it.
9430         * modules/fdopen (Depends-on): Add msvc-inval.
9431         * modules/fclose-tests (Depends-on): Add fdopen.
9432         * modules/fflush-tests (Depends-on): Likewise.
9433         * modules/fgetc-tests (Depends-on): Likewise.
9434         * modules/fputc-tests (Depends-on): Likewise.
9435         * modules/fread-tests (Depends-on): Likewise.
9436         * modules/freopen-tests (Depends-on): Likewise.
9437         * modules/fseeko-tests (Depends-on): Likewise.
9438         * modules/ftello-tests (Depends-on): Likewise.
9439         * modules/fwrite-tests  (Depends-on): Likewise.
9440         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
9441
9442 2011-09-24  Bruno Haible  <bruno@clisp.org>
9443
9444         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
9445         * modules/fgetc-tests (Depends-on): Add unistd.
9446         * modules/fputc-tests (Depends-on): Likewise.
9447         * modules/fread-tests (Depends-on): Likewise.
9448         * modules/fwrite-tests (Depends-on): Likewise.
9449
9450 2011-09-24  Bruno Haible  <bruno@clisp.org>
9451
9452         dup: Simplify autoconf test.
9453         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
9454         on gl_MSVC_INVAL's result.
9455
9456 2011-09-24  Bruno Haible  <bruno@clisp.org>
9457
9458         Tests for function fwrite().
9459         * modules/fwrite-tests: New file.
9460         * tests/test-fwrite.c: New file.
9461         * modules/stdio-tests (Depends-on): Add fwrite-tests.
9462
9463         Tests for function fread().
9464         * modules/fread-tests: New file.
9465         * tests/test-fread.c: New file.
9466         * modules/stdio-tests (Depends-on): Add fread-tests.
9467
9468         Activate fputc tests.
9469         * modules/stdio-tests (Depends-on): Add fputc-tests.
9470
9471         Enhance fgetc, fputc tests.
9472         * tests/test-fgetc.c (main): Also test the stream's error indicator.
9473         * tests/test-fputc.c (main): Likewise.
9474
9475 2011-09-24  Bruno Haible  <bruno@clisp.org>
9476
9477         write: Support for MSVC 9.
9478         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9479         is not 1.
9480         * lib/write.c (write_nothrow): New function.
9481         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9482         not 1. Use write_nothrow.
9483         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9484         invalid parameter handler.
9485         (gl_PREREQ_WRITE): New macro.
9486         * modules/write (Depends-on): Add msvc-inval.
9487         (configure.ac): Invoke gl_PREREQ_WRITE.
9488         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9489
9490 2011-09-24  Bruno Haible  <bruno@clisp.org>
9491
9492         read: Fix last commit.
9493         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9494
9495 2011-09-24  Bruno Haible  <bruno@clisp.org>
9496
9497         dup2: Fix last commit.
9498         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9499         (rpl_dup2): Disable fcntl workaround on native Windows.
9500
9501         sigprocmask: Make code safer.
9502         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9503         section that changes macro definitions for this compilation unit.
9504
9505 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9506
9507         dup2: clarify by coalescing Windows-specific material
9508         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9509         "msvc-nothrow.h"' to the Windows-specific section, so that the
9510         Emacs source need not contain these include files.
9511         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9512         Windows-specific fixes into this function rather than just the
9513         nothrow fix, as this shortens and clarifies the code.  Always
9514         define as a function, as that's a bit cleaner than having it be
9515         sometimes a function and sometimes a macro.
9516         (rpl_dup2): Move the Windows-specific stuff out of here and into
9517         ms_windows_dup2.  Don't protect the Haiku-related fix with
9518         "#if !defined __linux__", as the same code also works around
9519         a Linux kernel bug, and it doesn't add any system calls on any
9520         platform.  Add comment about FreeBSD 6.1.
9521
9522         sigprocmask: move #include directive
9523         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9524         Windows-specific section, so that the Emacs source need not
9525         contain msvc-inval.h.
9526
9527 2011-09-23  Bruno Haible  <bruno@clisp.org>
9528
9529         read: Support for MSVC 9.
9530         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9531         is not 1.
9532         * lib/read.c (read_nothrow): New function.
9533         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9534         read_nothrow.
9535         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9536         invalid parameter handler.
9537         (gl_PREREQ_READ): New macro.
9538         * modules/read (Depends-on): Add msvc-inval.
9539         (configure.ac): Invoke gl_PREREQ_READ.
9540         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9541
9542 2011-09-23  Bruno Haible  <bruno@clisp.org>
9543
9544         close: Support for MSVC 9.
9545         * lib/close.c: Include <errno.h>, msvc-inval.h.
9546         (close_nothrow): New function.
9547         (rpl_close): Use it.
9548         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9549         invalid parameter handler.
9550         * modules/close (Depends-on): Add msvc-inval.
9551         * modules/dup2-tests (Depends-on): Add close.
9552         * modules/dup3-tests (Depends-on): Likewise.
9553         * modules/fcntl-tests (Depends-on): Likewise.
9554         * modules/spawn-pipe-tests (Depends-on): Likewise.
9555         * modules/unistd-safer-tests (Depends-on): Likewise.
9556         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9557
9558 2011-09-23  Bruno Haible  <bruno@clisp.org>
9559
9560         New module 'dup'.
9561         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9562         Allow replacement.
9563         * lib/dup.c: New file.
9564         * lib/fchdir.c (rpl_dup): Remove function.
9565         * m4/dup.m4: New file.
9566         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9567         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9568         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9569         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9570         * modules/dup: New file.
9571         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9572         'dup' module is in use.
9573         * modules/fdopendir (Depends-on): Add dup.
9574         * modules/fdutimensat-tests (Depends-on): Likewise.
9575         * modules/fts (Depends-on): Likewise.
9576         * modules/futimens-tests (Depends-on): Likewise.
9577         * modules/posix_spawnp-tests (Depends-on): Likewise.
9578         * modules/unistd-safer-tests (Depends-on): Likewise.
9579         * modules/utimens-tests (Depends-on): Likewise.
9580         * doc/posix-functions/dup.texi: Mention the new module and the problem
9581         on MSVC.
9582
9583 2011-09-23  Bruno Haible  <bruno@clisp.org>
9584
9585         getdtablesize: Support for MSVC 9.
9586         * lib/getdtablesize.c: Include msvc-inval.h.
9587         (_setmaxstdio_nothrow): New function.
9588         (_setmaxstdio): Redefine it.
9589         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9590         * modules/getdtablesize (Depends-on): Add msvc-inval.
9591         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9592
9593 2011-09-23  Bruno Haible  <bruno@clisp.org>
9594
9595         signal-h: Rename from signal.
9596         * modules/signal-h: Renamed from modules/signal.
9597         * modules/pthread_sigmask (Depends-on): Update.
9598         * modules/raise (Depends-on): Likewise.
9599         * modules/sigaction (Depends-on): Likewise.
9600         * modules/sigpipe (Depends-on): Likewise.
9601         * modules/sigprocmask (Depends-on): Likewise.
9602         * modules/sys_select (Depends-on): Likewise.
9603         * modules/signal-h-tests: Renamed from modules/signal-tests.
9604         (Files, Depends-on, Makefile.am): Update.
9605         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9606         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9607         (Files, Makefile.am): Update.
9608         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9609         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9610         * modules/signal: New placeholder file.
9611         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9612         * doc/posix-headers/signal.texi: Update.
9613         * NEWS: Mention the change.
9614
9615 2011-09-23  Bruno Haible  <bruno@clisp.org>
9616
9617         sigprocmask: Avoid crashes through signal() on MSVC 9.
9618         * lib/sigprocmask.c: Include msvc-inval.h.
9619         (signal_nothrow): New function.
9620         (signal): Redefine it.
9621         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9622         * modules/sigprocmask (Depends-on): Add msvc-inval.
9623         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9624
9625 2011-09-23  Bruno Haible  <bruno@clisp.org>
9626
9627         Tests for module 'raise'.
9628         * modules/raise-tests: New file.
9629         * tests/test-raise.c: New file.
9630
9631         raise: Support for MSVC.
9632         * lib/signal.in.h (raise): New declaration.
9633         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9634         for native Windows platforms.
9635         * m4/raise.m4: New file.
9636         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9637         HAVE_RAISE, REPLACE_RAISE.
9638         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9639         REPLACE_RAISE.
9640         * modules/raise (Status, Notice): Remove fields.
9641         (Files): Add m4/raise.m4.
9642         (Depends-on): Add signal, msvc-inval.
9643         (configure.ac): Use the common idioms.
9644         (Maintainer): Add me.
9645         * tests/test-signal-c++.cc: Check the signature of raise.
9646         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9647
9648 2011-09-23  Bruno Haible  <bruno@clisp.org>
9649
9650         pipe2: Fix compilation on pre-C99 compilers.
9651         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9652
9653 2011-09-23  Bruno Haible  <bruno@clisp.org>
9654
9655         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9656         * lib/msvc-nothrow.h: New file.
9657         * lib/msvc-nothrow.c: New file.
9658         * m4/msvc-nothrow.m4: New file.
9659         * modules/msvc-nothrow: New file.
9660         * lib/dup2.c: Include msvc-nothrow.h.
9661         (rpl_dup2): No need to protect _get_osfhandle call here.
9662         * lib/accept4.c: Include msvc-nothrow.h.
9663         * lib/error.c: Likewise.
9664         * lib/fcntl.c: Likewise.
9665         * lib/lseek.c: Likewise.
9666         * lib/nonblocking.c: Likewise.
9667         * lib/poll.c: Likewise.
9668         * lib/read.c: Likewise.
9669         * lib/select.c: Likewise.
9670         * lib/sockets.h: Likewise.
9671         * lib/sockets.c: Likewise.
9672         * lib/stdio-read.c: Likewise.
9673         * lib/stdio-write.c: Likewise.
9674         * lib/write.c: Likewise.
9675         * lib/w32sock.h: Likewise.
9676         * lib/w32spawn.h: Likewise.
9677         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9678         * lib/fsync.c: Likewise.
9679         * lib/isapipe.c: Likewise.
9680         * modules/dup2 (Depends-on): Add msvc-nothrow.
9681         * modules/accept4 (Depends-on): Likewise.
9682         * modules/error (Depends-on): Likewise.
9683         * modules/fcntl (Depends-on): Likewise.
9684         * modules/lseek (Depends-on): Likewise.
9685         * modules/nonblocking (Depends-on): Likewise.
9686         * modules/poll (Depends-on): Likewise.
9687         * modules/read (Depends-on): Likewise.
9688         * modules/select (Depends-on): Likewise.
9689         * modules/sockets (Depends-on): Likewise.
9690         * modules/sigpipe (Depends-on): Likewise.
9691         * modules/write (Depends-on): Likewise.
9692         * modules/accept (Depends-on): Likewise.
9693         * modules/bind (Depends-on): Likewise.
9694         * modules/connect (Depends-on): Likewise.
9695         * modules/gethostname (Depends-on): Likewise.
9696         * modules/getpeername (Depends-on): Likewise.
9697         * modules/getsockname (Depends-on): Likewise.
9698         * modules/getsockopt (Depends-on): Likewise.
9699         * modules/ioctl (Depends-on): Likewise.
9700         * modules/listen (Depends-on): Likewise.
9701         * modules/recv (Depends-on): Likewise.
9702         * modules/recvfrom (Depends-on): Likewise.
9703         * modules/send (Depends-on): Likewise.
9704         * modules/sendto (Depends-on): Likewise.
9705         * modules/setsockopt (Depends-on): Likewise.
9706         * modules/shutdown (Depends-on): Likewise.
9707         * modules/socket (Depends-on): Likewise.
9708         * modules/execute (Depends-on): Likewise.
9709         * modules/spawn-pipe (Depends-on): Likewise.
9710         * modules/flock (Depends-on): Likewise.
9711         * modules/fsync (Depends-on): Likewise.
9712         * modules/isapipe (Depends-on): Likewise.
9713         * tests/test-cloexec.c: Include msvc-nothrow.h.
9714         * tests/test-dup-safer.c: Likewise.
9715         * tests/test-dup2.c: Likewise.
9716         * tests/test-dup3.c: Likewise.
9717         * tests/test-fcntl.c: Likewise.
9718         * tests/test-pipe.c: Likewise.
9719         * tests/test-pipe2.c: Likewise.
9720         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9721         * modules/unistd-safer-tests (Depends-on): Likewise.
9722         * modules/dup2-tests (Depends-on): Likewise.
9723         * modules/dup3-tests (Depends-on): Likewise.
9724         * modules/fcntl-tests (Depends-on): Likewise.
9725         * modules/pipe-posix-tests (Depends-on): Likewise.
9726         * modules/pipe2-tests (Depends-on): Likewise.
9727
9728 2011-09-23  Bruno Haible  <bruno@clisp.org>
9729
9730         dup2: Make code more maintainable.
9731         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9732         (rpl_dup2): Use it.
9733         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9734         * modules/dup2 (configure.ac): Invoke it.
9735         Reported by Paul Eggert.
9736
9737 2011-09-23  Bruno Haible  <bruno@clisp.org>
9738
9739         msvc-inval: Fix compilation error.
9740         * lib/msvc-inval.h: Include <excpt.h>.
9741
9742 2011-09-23  Bruno Haible  <bruno@clisp.org>
9743
9744         mkdir: Tweak for MSVC 9.
9745         * lib/sys_stat.in.h: Update comments.
9746         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9747
9748         Tests for module 'chdir'.
9749         * modules/chdir-tests: New file.
9750         * tests/test-chdir.c: New file.
9751
9752         New module 'chdir'.
9753         * modules/chdir: New file.
9754         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9755         (chdir): New declaration.
9756         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9757         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9758         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9759         * tests/test-unistd-c++.cc: Check signature of chdir.
9760         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9761         * modules/chdir-long (Depends-on): Add chdir.
9762         * modules/fchdir (Depends-on): Likewise.
9763         * modules/rename (Depends-on): Likewise.
9764         * modules/savewd (Depends-on): Likewise.
9765
9766         rmdir: Support for mingw, MSVC 9.
9767         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9768         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9769
9770         getcwd: Tweak for MSVC 9.
9771         * lib/unistd.in.h: Update comments.
9772         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9773
9774 2011-09-22  Bruno Haible  <bruno@clisp.org>
9775
9776         strerror_r-posix: Avoid a link error on MSVC.
9777         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9778         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9779
9780 2011-09-22  Bruno Haible  <bruno@clisp.org>
9781
9782         select: Avoid link errors on MSVC.
9783         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9784         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9785         * modules/pselect (Link): Likewise.
9786         * NEWS: Mention the change.
9787         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9788         test-select-stdin against $(LIB_SELECT).
9789         * modules/pselect-tests (Makefile.am): Link test-pselect against
9790         $(LIB_SELECT).
9791
9792 2011-09-22  Bruno Haible  <bruno@clisp.org>
9793
9794         select: Avoid compilation error on MSVC.
9795         * lib/select.c: Don't include <stdbool.h>.
9796
9797 2011-09-21  Bruno Haible  <bruno@clisp.org>
9798
9799         Consolidate all uses of PATH_MAX in *.m4 files.
9800         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9801         macros.
9802         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9803         and gl_PATHMAX_SNIPPET.
9804         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9805         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9806         * modules/chdir-long (Files): Add m4/pathmax.m4.
9807         * modules/getcwd (Files): Likewise.
9808
9809 2011-09-21  Bruno Haible  <bruno@clisp.org>
9810
9811         ftruncate: Un-deprecate, concentrate on Win32 support.
9812         * modules/ftruncate (Status, Notice): Remove sections.
9813         (Depends-on): Add largefile.
9814         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9815         non-mingw platforms.
9816         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9817         include <io.h>.
9818         * modules/perror-tests (Depends-on): Add ftruncate.
9819         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9820         'ftruncate' module.
9821
9822 2011-09-21  Bruno Haible  <bruno@clisp.org>
9823
9824         Add dependencies to new dirent related modules.
9825         * modules/opendir (Depends-on): Add closedir.
9826         * modules/getcwd (Depends-on): Add opendir, closedir.
9827         * modules/dirent-safer-tests (Depends-on): Likewise.
9828         * modules/fdopendir-tests (Depends-on): Likewise.
9829         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9830         * modules/renameat-tests (Depends-on): Likewise.
9831
9832 2011-09-21  Bruno Haible  <bruno@clisp.org>
9833
9834         opendir: Avoid compilation error on mingw.
9835         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9836         * modules/opendir (Depends-on): Add unistd.
9837
9838 2011-09-21  Bruno Haible  <bruno@clisp.org>
9839
9840         ftruncate tests: Avoid a test failure on mingw.
9841         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9842
9843 2011-09-21  Bruno Haible  <bruno@clisp.org>
9844
9845         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9846         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9847         native Windows.
9848
9849 2011-09-21  Bruno Haible  <bruno@clisp.org>
9850
9851         New module 'fdopen'.
9852         * lib/stdio.in.h (fdopen): New declaration.
9853         * lib/fdopen.c: New file.
9854         * m4/fdopen.m4: New file.
9855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9856         REPLACE_FDOPEN.
9857         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9858         REPLACE_FDOPEN.
9859         * modules/fdopen: New file.
9860         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9861         * tests/test-stdio-c++.cc: Check signature of fdopen.
9862         * doc/posix-functions/fdopen.texi: Mention the new module.
9863
9864 2011-09-21  Bruno Haible  <bruno@clisp.org>
9865
9866         unlockpt tests: Avoid test failure on NetBSD 5.1.
9867         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9868         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9869
9870 2011-09-21  Bruno Haible  <bruno@clisp.org>
9871
9872         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9873         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9874         * tests/test-getlogin_r.c (main): Likewise.
9875
9876 2011-09-20  Bruno Haible  <bruno@clisp.org>
9877
9878         time tests: Don't require pid_t.
9879         * doc/posix-headers/time.texi: Revert last change.
9880         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9881         * tests/test-time.c: Comment out the check for pid_t.
9882
9883 2011-09-20  Bruno Haible  <bruno@clisp.org>
9884
9885         fsync tests: Avoid a test failure on mingw.
9886         * tests/test-fsync.c (main): Allow a failure with EIO.
9887
9888 2011-09-20  Bruno Haible  <bruno@clisp.org>
9889
9890         euidaccess: Update comments.
9891         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9892
9893 2011-09-20  Bruno Haible  <bruno@clisp.org>
9894
9895         Ensure EBADF returns for socket functions on mingw.
9896         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9897         descriptor is invalid.
9898         * lib/bind.c (rpl_bind): Likewise.
9899         * lib/connect.c (rpl_connect): Likewise.
9900         * lib/getpeername.c (rpl_getpeername): Likewise.
9901         * lib/getsockname.c (rpl_getsockname): Likewise.
9902         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9903         * lib/listen.c (rpl_listen): Likewise.
9904         * lib/recv.c (rpl_recv): Likewise.
9905         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9906         * lib/send.c (rpl_send): Likewise.
9907         * lib/sendto.c (rpl_sendto): Likewise.
9908         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9909         * lib/shutdown.c (rpl_shutdown): Likewise.
9910
9911 2011-09-20  Bruno Haible  <bruno@clisp.org>
9912
9913         select tests: EBADF tests.
9914         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9915         test_bad_fd): New functions.
9916         (test_function): Invoke also test_bad_fd.
9917
9918 2011-09-20  Bruno Haible  <bruno@clisp.org>
9919
9920         Tests for module 'posix_spawn_file_actions_addopen.
9921         * modules/posix_spawn_file_actions_addopen-tests: New file.
9922         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9923
9924         Tests for module 'posix_spawn_file_actions_adddup2'.
9925         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9926         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9927
9928         Tests for module 'posix_spawn_file_actions_addclose'.
9929         * modules/posix_spawn_file_actions_addclose-tests: New file.
9930         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9931
9932 2011-09-20  Bruno Haible  <bruno@clisp.org>
9933
9934         Tests for module 'unlockpt'.
9935         * modules/unlockpt-tests: New file.
9936         * tests/test-unlockpt.c: New file.
9937         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9938
9939         Tests for module 'grantpt'.
9940         * modules/grantpt-tests: New file.
9941         * tests/test-grantpt.c: New file.
9942         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9943
9944 2011-09-20  Bruno Haible  <bruno@clisp.org>
9945
9946         freopen tests: EBADF tests.
9947         * tests/test-freopen.c: Include errno.h, unistd.h.
9948         (main): Add tests for EBADF, commented out for the moment.
9949
9950         fclose tests: EBADF tests.
9951         * tests/test-fclose.c (main): Add tests for EBADF.
9952
9953         fflush tests: EBADF tests.
9954         * tests/test-fflush.c: Include errno.h, macros.h.
9955         (main): Add tests for EBADF.
9956
9957         ftello tests: EBADF tests.
9958         * tests/test-ftello4.sh: New file.
9959         * tests/test-ftello4.c: New file.
9960         * modules/ftello-tests (Files): Add them.
9961         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9962
9963         fseeko tests: EBADF tests.
9964         * tests/test-fseeko4.sh: New file.
9965         * tests/test-fseeko4.c: New file.
9966         * modules/fseeko-tests (Files): Add them.
9967         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9968
9969         Tests for function fputc().
9970         * modules/fputc-tests: New file.
9971         * tests/test-fputc.c: New file.
9972         * modules/stdio-tests (Depends-on): Add fputc-tests.
9973
9974         Tests for function fgetc().
9975         * modules/fgetc-tests: New file.
9976         * tests/test-fgetc.c: New file.
9977         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9978
9979         Tests for function fdopen().
9980         * modules/fdopen-tests: New file.
9981         * tests/test-fdopen.c: New file.
9982         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9983
9984         Tests for module 'vdprintf'.
9985         * modules/vdprintf-tests: New file.
9986         * tests/test-vdprintf.c: New file.
9987
9988         Tests for module 'dprintf'.
9989         * modules/dprintf-tests: New file.
9990         * tests/test-dprintf.c: New file.
9991
9992 2011-09-20  Bruno Haible  <bruno@clisp.org>
9993
9994         Tests for module 'ioctl'.
9995         * modules/ioctl-tests: New file.
9996         * tests/test-ioctl.c: New file.
9997
9998 2011-09-20  Bruno Haible  <bruno@clisp.org>
9999
10000         fcntl tests: EBADF tests.
10001         * tests/test-fcntl.c (main): Add more tests for EBADF.
10002
10003 2011-09-20  Bruno Haible  <bruno@clisp.org>
10004
10005         utimensat tests: EBADF tests.
10006         * tests/test-utimensat.c (main): Add tests for EBADF.
10007
10008         renameat tests: EBADF tests.
10009         * tests/test-renameat.c (main): Add tests for EBADF.
10010
10011         mkfifoat tests: EBADF tests.
10012         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10013
10014         readlinkat tests: EBADF tests.
10015         * tests/test-readlinkat.c (main): Add tests for EBADF.
10016
10017         symlinkat tests: EBADF tests.
10018         * tests/test-symlinkat.c (main): Add tests for EBADF.
10019
10020         linkat tests: EBADF tests.
10021         * tests/test-linkat.c (main): Add tests for EBADF.
10022
10023         Tests for module 'faccessat'.
10024         * modules/faccessat-tests: New file.
10025         * tests/test-faccessat.c: New file.
10026
10027         fdopendir tests: EBADF tests.
10028         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10029
10030         openat tests: EBADF tests.
10031         * tests/test-fchownat.c (main): Add tests for EBADF.
10032         * tests/test-fstatat.c (main): Likewise.
10033         * tests/test-mkdirat.c (main): Likewise.
10034         * tests/test-openat.c (main): Likewise.
10035         * tests/test-unlinkat.c (main): Likewise.
10036         * tests/test-fchmodat.c: New file.
10037         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10038         (Makefile.am): Also run 'test-fchmodat'.
10039
10040 2011-09-20  Bruno Haible  <bruno@clisp.org>
10041
10042         utimens, futimens, fdutimensat tests: EBADF tests.
10043         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10044
10045         Tests for function fstat().
10046         * modules/fstat-tests: New file.
10047         * tests/test-fstat.c: New file.
10048         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10049
10050 2011-09-20  Bruno Haible  <bruno@clisp.org>
10051
10052         test-ttyname_r tests: EBADF tests.
10053         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10054
10055         Tests for module 'isatty'.
10056         * modules/isatty-tests: New file.
10057         * tests/test-isatty.c: New file.
10058
10059         Tests for module 'write'.
10060         * modules/write-tests: New file.
10061         * tests/test-write.c: New file.
10062
10063         Tests for module 'read'.
10064         * modules/read-tests: New file.
10065         * tests/test-read.c: New file.
10066
10067         pwrite tests: EBADF tests.
10068         * tests/test-pwrite.c (main): Add tests for EBADF.
10069
10070         pread tests: EBADF tests.
10071         * tests/test-pread.c (main): Add tests for EBADF.
10072
10073         lseek tests: EBADF tests.
10074         * tests/test-lseek.c (main): Add more tests for EBADF.
10075
10076         Tests for module 'ftruncate'.
10077         * modules/ftruncate-tests: New file.
10078         * tests/test-ftruncate.sh: New file.
10079         * tests/test-ftruncate.c: New file.
10080
10081         fsync tests: EBADF tests.
10082         * tests/test-fsync.c (main): Add more tests for EBADF.
10083
10084         fdatasync tests: EBADF tests.
10085         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10086
10087         Tests for module 'fchown'.
10088         * modules/fchown-tests: New file.
10089         * tests/test-fchown.c: New file.
10090
10091         Tests for module 'fchmod'.
10092         * modules/fchmod-tests: New file.
10093         * tests/test-fchmod.c: New file.
10094
10095         fchdir tests: EBADF tests.
10096         * tests/test-fchdir.c (main): Add more tests for EBADF.
10097
10098         dup2 tests: EBADF tests.
10099         * tests/test-dup2.c (main): Add more tests for EBADF.
10100
10101         Tests for module 'dup'.
10102         * modules/dup-tests: New file.
10103         * tests/test-dup.c: New file.
10104
10105         Tests for module 'close'.
10106         * modules/close-tests: New file.
10107         * tests/test-close.c: New file.
10108
10109 2011-09-20  Bruno Haible  <bruno@clisp.org>
10110
10111         Tests for module 'shutdown'.
10112         * modules/shutdown-tests: New file.
10113         * tests/test-shutdown.c: New file.
10114
10115         Tests for module 'setsockopt'.
10116         * modules/setsockopt-tests: New file.
10117         * tests/test-setsockopt.c: New file.
10118
10119         Tests for module 'sendto'.
10120         * modules/sendto-tests: New file.
10121         * tests/test-sendto.c: New file.
10122
10123         Tests for module 'send'.
10124         * modules/send-tests: New file.
10125         * tests/test-send.c: New file.
10126
10127         Tests for module 'recvfrom'.
10128         * modules/recvfrom-tests: New file.
10129         * tests/test-recvfrom.c: New file.
10130
10131         Tests for module 'recv'.
10132         * modules/recv-tests: New file.
10133         * tests/test-recv.c: New file.
10134
10135         Tests for module 'listen'.
10136         * modules/listen-tests: New file.
10137         * tests/test-listen.c: New file.
10138
10139         Tests for module 'getsockopt'.
10140         * modules/getsockopt-tests: New file.
10141         * tests/test-getsockopt.c: New file.
10142
10143         Tests for module 'getsockname'.
10144         * modules/getsockname-tests: New file.
10145         * tests/test-getsockname.c: New file.
10146
10147         Tests for module 'getpeername'.
10148         * modules/getpeername-tests: New file.
10149         * tests/test-getpeername.c: New file.
10150
10151         Tests for module 'connect'.
10152         * modules/connect-tests: New file.
10153         * tests/test-connect.c: New file.
10154
10155         Tests for module 'bind'.
10156         * modules/bind-tests: New file.
10157         * tests/test-bind.c: New file.
10158
10159         accept4 tests: Fix for native Windows.
10160         * tests/test-accept4.c: Include sockets.h.
10161         (main): Invoke gl_sockets_startup.
10162         * modules/accept4-tests (Depends-on): Add sockets.
10163
10164         accept tests: Fix for native Windows.
10165         * tests/test-accept.c: Include sockets.h.
10166         (main): Invoke gl_sockets_startup.
10167         * modules/accept-tests (Depends-on): Add sockets.
10168
10169 2011-09-19  Bruno Haible  <bruno@clisp.org>
10170
10171         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10172         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10173         do...while(0).
10174         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10175         Suggested by Paul Eggert.
10176
10177 2011-09-19  Bruno Haible  <bruno@clisp.org>
10178
10179         sched: Ensure pid_t is defined.
10180         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10181         not define pid_t.
10182         * lib/sched.in.h: Include <sys/types.h>.
10183         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10184         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10185
10186 2011-09-19  Bruno Haible  <bruno@clisp.org>
10187
10188         msvc-inval: Ensure the entire expansion is a single statement.
10189         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10190         of braces.
10191
10192 2011-09-19  Jim Meyering  <meyering@redhat.com>
10193
10194         tests: use printf, not echo in init.sh's warn_ function
10195         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10196         misbehave when given strings containing a backslash or starting
10197         with e.g., -n.  James Youngman suggested setting IFS.
10198
10199 2011-09-19  Eric Blake  <eblake@redhat.com>
10200
10201         futimens: enhance test
10202         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10203         closed non-negative fd.
10204
10205         date: accept 'hence' as opposite of 'ago'
10206         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10207         * tests/test-parse-datetime.c (main): Enhance test.
10208         Suggested by Jesse Wilson.
10209
10210 2011-09-19  Jim Meyering  <meyering@redhat.com>
10211
10212         getcwd: don't fail in a deep directory on a system without openat
10213         Before this change, getcwd would fail when called from a directory
10214         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10215         the non-openat implementation used "..", "../..", "../../..", etc.
10216         to access ancestor directories.  With too many, that string would
10217         be longer than PATH_MAX.
10218         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10219         using gnulib's openat replacement.
10220         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10221         we're using the replacement function.
10222
10223 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10224
10225         maint.mk: avoid warnings from perl about missing files
10226         * top/maint.mk (def_sym_regex): Ignore files listed in
10227         $(gl_other_headers_) that do not exist, say because a project
10228         does not use a corresponding module.
10229
10230 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10231
10232         stat: use pathmax.h only if needed
10233         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10234         This is better for Emacs, which does not have a mingw port and
10235         therefore can avoid the pathmax module.
10236
10237         utimens: remove dependency on dup2
10238         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10239         to work around the Linux kernel bug.
10240         * modules/utimens (Depends-on): Remove dup2.
10241
10242 2011-09-18  Bruno Haible  <bruno@clisp.org>
10243
10244         inet_ntop, inet_pton: Look for it also in libresolv.
10245         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10246         libnsl, search for it in libresolv.
10247         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10248         Needed on Solaris 7.
10249
10250 2011-09-18  Bruno Haible  <bruno@clisp.org>
10251
10252         accept, accept4 tests: Avoid link error on Solaris.
10253         * modules/accept-tests (Makefile.am): Link test-accept against
10254         $(LIBSOCKET).
10255         * modules/accept4-tests (Makefile.am): Link test-accept4 against
10256         $(LIBSOCKET).
10257
10258         accept4: Avoid link error on Solaris.
10259         * modules/accept4 (Link): New section.
10260
10261         socket functions: Avoid link errors on Solaris.
10262         * modules/accept (Depends-on): Add socketlib.
10263         (Link): New section.
10264         * modules/bind (Depends-on): Add socketlib.
10265         (Link): New section.
10266         * modules/connect (Depends-on): Add socketlib.
10267         (Link): New section.
10268         * modules/getpeername (Depends-on): Add socketlib.
10269         (Link): New section.
10270         * modules/getsockname (Depends-on): Add socketlib.
10271         (Link): New section.
10272         * modules/getsockopt (Depends-on): Add socketlib.
10273         (Link): New section.
10274         * modules/listen (Depends-on): Add socketlib.
10275         (Link): New section.
10276         * modules/recv (Depends-on): Add socketlib.
10277         (Link): New section.
10278         * modules/recvfrom (Depends-on): Add socketlib.
10279         (Link): New section.
10280         * modules/send (Depends-on): Add socketlib.
10281         (Link): New section.
10282         * modules/sendto (Depends-on): Add socketlib.
10283         (Link): New section.
10284         * modules/setsockopt (Depends-on): Add socketlib.
10285         (Link): New section.
10286         * modules/shutdown (Depends-on): Add socketlib.
10287         (Link): New section.
10288         * modules/socket (Depends-on): Add socketlib.
10289         (Link): New section.
10290
10291 2011-09-18  Bruno Haible  <bruno@clisp.org>
10292
10293         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10294         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10295         than 5 seconds.
10296         * modules/ptsname-tests (configure.ac): Test for alarm.
10297
10298 2011-09-18  Bruno Haible  <bruno@clisp.org>
10299
10300         posix_spawn_file_actions_add*: Fix module dependencies.
10301         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10302         posix_spawn_file_actions_init.
10303         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10304         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10305
10306 2011-09-18  Bruno Haible  <bruno@clisp.org>
10307
10308         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10309         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10310         * tests/test-renameat.c (main): Likewise.
10311
10312 2011-09-18  Bruno Haible  <bruno@clisp.org>
10313
10314         Tests for module 'accept4'.
10315         * modules/accept4-tests: New file.
10316         * tests/test-accept4.c: New file.
10317
10318 2011-09-18  Bruno Haible  <bruno@clisp.org>
10319
10320         Tests for module 'accept'.
10321         * modules/accept-tests: New file.
10322         * tests/test-accept.c: New file.
10323
10324 2011-09-18  Bruno Haible  <bruno@clisp.org>
10325
10326         dup2: Support for MSVC.
10327         * lib/dup2.c: Include msvc-inval.h.
10328         (rpl_dup2): Handle invalid parameter notifications during dup2 and
10329         _get_osfhandle calls.
10330         * modules/dup2 (Depends-on): Add msvc-inval.
10331         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
10332
10333         New module 'msvc-inval'.
10334         * lib/msvc-inval.h: New file.
10335         * lib/msvc-inval.c: New file.
10336         * m4/msvc-inval.m4: New file.
10337         * modules/msvc-inval: New file.
10338
10339 2011-09-17  Bruno Haible  <bruno@clisp.org>
10340
10341         Tests for module 'pclose'.
10342         * modules/pclose-tests: New file.
10343
10344         New module 'pclose'.
10345         * lib/stdio.in.h (pclose): New declaration.
10346         * lib/pclose.c: New file.
10347         * m4/pclose.m4: New file.
10348         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
10349         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
10350         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
10351         * modules/pclose: New file.
10352         * modules/popen-tests (Depends-on): Add pclose.
10353         * modules/popen-safer-tests (Depends-on): Likewise.
10354         * doc/posix-functions/pclose.texi: Mention the new module.
10355
10356 2011-09-17  Bruno Haible  <bruno@clisp.org>
10357
10358         popen: Support for MSVC.
10359         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
10360         * lib/popen.c (popen): Provide alternate definition for native Windows.
10361         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
10362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
10363         * modules/popen (Depends-on, configure.ac): Update condition.
10364         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
10365         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
10366         fixed.
10367
10368 2011-09-17  Bruno Haible  <bruno@clisp.org>
10369
10370         isnanl, isnand, isnanf: Work around MSVC bug.
10371         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
10372
10373 2011-09-17  Bruno Haible  <bruno@clisp.org>
10374
10375         sys_socket tests: Fix recent mistake.
10376         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10377
10378 2011-09-17  Bruno Haible  <bruno@clisp.org>
10379
10380         putenv: Support for MSVC.
10381         * modules/putenv (Depends-on): Add environ.
10382         * lib/putenv.c (environ): Disable declaration.
10383         * lib/unistd.in.h: Update comment.
10384
10385 2011-09-17  Bruno Haible  <bruno@clisp.org>
10386
10387         math: Avoid macro redefinition warnings on MSVC.
10388         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10389         Undefine before redefining.
10390
10391 2011-09-17  Bruno Haible  <bruno@clisp.org>
10392
10393         doc: Mention functions which are declared as macros.
10394         * doc/posix-functions/*[fl].texi: Mention that some functions are
10395         defined as macros with arguments only.
10396
10397 2011-09-17  Bruno Haible  <bruno@clisp.org>
10398
10399         Add dependencies to new dirent related modules.
10400         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10401         * modules/fts (Depends-on): Likewise.
10402         * modules/glob (Depends-on): Likewise.
10403         * modules/savedir (Depends-on): Likewise.
10404         * modules/scandir (Depends-on): Likewise.
10405         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10406         * modules/fdopendir (Depends-on): Add opendir.
10407
10408 2011-09-17  Bruno Haible  <bruno@clisp.org>
10409
10410         inet_pton: Support for MSVC on Windows Vista or newer.
10411         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
10412         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
10413         HAVE_DECL_INET_PTON is defined.
10414         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10415         On platforms with <winsock2.h>, test whether inet_pton is declared in
10416         <ws2tcpip.h>. If so, arrange to replace it.
10417         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10418         REPLACE_INET_PTON.
10419         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
10420         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
10421         (Depends-on, configure.ac): Update condition.
10422         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
10423
10424 2011-09-17  Bruno Haible  <bruno@clisp.org>
10425
10426         inet_ntop: Support for MSVC on Windows Vista or newer.
10427         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10428         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10429         HAVE_DECL_INET_NTOP is defined.
10430         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10431         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10432         <ws2tcpip.h>. If so, arrange to replace it.
10433         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10434         REPLACE_INET_NTOP.
10435         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10436         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
10437         (Depends-on, configure.ac): Update condition.
10438         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
10439
10440 2011-09-16  Eric Blake  <eblake@redhat.com>
10441
10442         test-fsync: yet another enhancement
10443         * tests/test-fsync.c (main): Also test behavior on read-only text
10444         file.
10445
10446 2011-09-16  Bruno Haible  <bruno@clisp.org>
10447
10448         Enhance fsync, fdatasync tests.
10449         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
10450         * tests/test-fdatasync.c (main): Likewise.
10451
10452 2011-09-16  Bruno Haible  <bruno@clisp.org>
10453
10454         Support for MSVC compiler: Ensure mode_t gets defined.
10455         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
10456         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10457         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10458         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
10459         * tests/test-fcntl-h.c: Check that mode_t is defined.
10460         * tests/test-sys_stat.c: Likewise.
10461         * tests/test-sys_types.c: Likewise.
10462         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
10463         * doc/posix-headers/sys_stat.texi: Likewise.
10464         * doc/posix-headers/sys_types.texi: Likewise.
10465
10466 2011-09-16  Bruno Haible  <bruno@clisp.org>
10467
10468         sys_stat: Support for MSVC.
10469         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
10470         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
10471         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
10472         MSVC.
10473
10474 2011-09-16  Bruno Haible  <bruno@clisp.org>
10475
10476         Support for MSVC compiler: Ensure off_t gets defined.
10477         * lib/unistd.in.h: Include <sys/types.h>.
10478         * tests/test-fcntl-h.c: Check that off_t is defined.
10479         * tests/test-sys_stat.c: Likewise.
10480         * tests/test-sys_types.c: Likewise.
10481
10482 2011-09-16  Eric Blake  <eblake@redhat.com>
10483
10484         fdatasync: port to Solaris
10485         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10486         * modules/fdatasync (Link): Document it.
10487         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10488
10489         fdatasync: port to MacOS X 10.7
10490         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10491         declared.
10492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10493         * modules/unistd (Makefile.am): Substitute it.
10494         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10495         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10496
10497         fdatasync: minor improvements
10498         * modules/fdatasync (Depends-on): Add condition for fsync.
10499         * lib/fdatasync.c (fdatasync): Add comment.
10500         * tests/test-unistd-c++.cc: Test fdatasync.
10501
10502         unistd: update refs to newer POSIX
10503         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10504         Suggested by Bruno Haible.
10505
10506         fdatasync: new module
10507         * modules/fsync (Description): Document difference to fdatasync.
10508         * modules/fdatasync: New module.
10509         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10510         * lib/fdatasync.c (fdatasync): Likewise.
10511         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10512         defaults.
10513         * modules/unistd (Makefile.am): Set witnesses.
10514         * lib/unistd.in.h (fdatasync): Declare.
10515         * MODULES.html.sh: Document it.
10516         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10517         * modules/fdatasync-tests: New test.
10518         * tests/test-fdatasync.c: Likewise.
10519
10520 2011-09-16  Eric Blake  <eblake@redhat.com>
10521
10522         test-fsync: enhance tests
10523         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10524         * tests/test-fsync.c (main): Enhance test.
10525
10526 2011-09-15  Bruno Haible  <bruno@clisp.org>
10527
10528         Support for MSVC compiler: Ensure ssize_t gets defined.
10529         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10530         * doc/posix-headers/stdio.texi: Likewise.
10531         * modules/stdio (Depends-on): Add ssize_t.
10532         * modules/sys_socket (Depends-on): Likewise.
10533         * modules/sys_types (Depends-on): Likewise.
10534         * modules/sys_uio (Depends-on): Likewise.
10535         * modules/unistd (Depends-on): Likewise.
10536         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10537         * tests/test-sys_types.c: Check that ssize_t is defined.
10538
10539 2011-09-14  Bruno Haible  <bruno@clisp.org>
10540
10541         Avoid using #, the m4 comment starter character, near brackets.
10542         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10543         delimiter character in sed expressions.
10544         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10545         Suggested by Eric Blake.
10546
10547         Properly quote AC_CHECK_DECLS' 4th argument.
10548         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10549         argument.
10550         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10551         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10552         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10553         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10554         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10555         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10556         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10557         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10558         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10559         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10560         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10561         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10562         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10563         * m4/isinf.m4 (gl_ISINF): Likewise.
10564         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10565         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10566         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10567         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10568         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10569         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10570         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10571         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10572         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10573         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10574         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10575         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10576         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10577         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10579         Reported by Eric Blake.
10580
10581         Properly quote AC_CHECK_DECL's 4th argument.
10582         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10583         argument.
10584         * m4/argp.m4 (gl_ARGP): Likewise.
10585         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10586         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10587         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10588         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10589         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10590         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10591         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10592         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10593         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10594         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10595         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10596         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10597         Reported by Eric Blake.
10598
10599 2011-09-14  Eric Blake  <eblake@redhat.com>
10600
10601         opendir: avoid compile warning
10602         * lib/opendir.c (includes): Always include errno.h.
10603         Reported by Tatsuro MATSUOKA.
10604
10605 2011-09-14  Jim Meyering  <meyering@redhat.com>
10606
10607         maint.mk: sc_tight_scope: propagate failure from sub-make
10608         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10609         Reported by Martin von Gagern.
10610
10611 2011-09-13  Bruno Haible  <bruno@clisp.org>
10612
10613         tempname: Support for MSVC.
10614         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10615         MSVC.
10616         * modules/tempname (Depends-on): Add fcntl-h.
10617
10618 2011-09-13  Bruno Haible  <bruno@clisp.org>
10619
10620         sys_time: Support for MSVC.
10621         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10622         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10623         include <winsock2.h>.
10624         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10625         function declarations that collide with POSIX.
10626         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10627         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10628
10629 2011-09-13  Bruno Haible  <bruno@clisp.org>
10630
10631         stat: Support for MSVC.
10632         * lib/stat.c: Include pathmax.h.
10633         * modules/stat (Depends-on): Add pathmax.
10634
10635         pathmax: Support for native Windows.
10636         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10637
10638 2011-09-12  Bruno Haible  <bruno@clisp.org>
10639
10640         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10641         * lib/dirent.in.h (struct dirent): New type.
10642         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10643         DT_WHT): New macros.
10644         (DIR): New type.
10645         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10646         (readdir, rewinddir): New declarations.
10647         * lib/dirent-private.h: New file.
10648         * lib/opendir.c: New file.
10649         * lib/readdir.c: New file.
10650         * lib/rewinddir.c: New file.
10651         * lib/closedir.c: New file.
10652         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10653         * m4/opendir.m4: New file.
10654         * m4/readdir.m4: New file.
10655         * m4/rewinddir.m4: New file.
10656         * m4/closedir.m4: New file.
10657         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10658         REPLACE_CLOSEDIR here.
10659         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10660         readdir, rewinddir are declared.
10661         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10662         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10663         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10664         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10665         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10666         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10667         * modules/opendir: New file.
10668         * modules/readdir: New file.
10669         * modules/rewinddir: New file.
10670         * modules/closedir: New file.
10671         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10672         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10673         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10674         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10675         * NEWS: Mention the 'fchdir' change.
10676
10677 2011-09-11  Bruno Haible  <bruno@clisp.org>
10678
10679         asm-underscore.m4: Support for MSVC.
10680         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10681         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10682
10683 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10684
10685         Doc about crypt functions.
10686         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10687         needing for _GNU_SOURCE to get crypt.
10688         * doc/posix-functions/encrypt.texi: Likewise.
10689         * doc/posix-functions/setkey.texi: Likewise.
10690
10691 2011-09-11  Bruno Haible  <bruno@clisp.org>
10692
10693         doc: Update regarding MSVC 9.
10694         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10695         tested".
10696         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10697         * doc/posix-headers/*.texi: Likewise.
10698         * doc/pastposix-functions/*.texi: Likewise.
10699         * doc/glibc-functions/*.texi: Likewise.
10700         * doc/glibc-headers/*.texi: Likewise.
10701
10702 2011-09-11  Bruno Haible  <bruno@clisp.org>
10703
10704         unistd et al.: Don't assume <unistd.h> exists.
10705         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10706         does not exist.
10707         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10708         exist. But include <stdlib.h>.
10709         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10710         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10711         symlink() does not exist.
10712         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10713         include <io.h> instead.
10714         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10715         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10716         include <direct.h> instead.
10717         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10718         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10719         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10720         <io.h> instead.
10721         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10722         correctly if the system does not have hard links.
10723         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10724         <direct.h> instead.
10725         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10726         it when looking for function declarations.
10727         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10728         <direct.h> and <io.h> instead.
10729         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10730
10731 2011-09-11  Bruno Haible  <bruno@clisp.org>
10732
10733         strcase: Support for MSVC.
10734         * modules/strcase (Status, Notice): Remove obsoletion mark.
10735         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10736         * doc/posix-functions/strncasecmp.texi: Likewise.
10737
10738         strings: Don't assume <strings.h> exists.
10739         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10740         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10741         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10742         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10743
10744 2011-09-11  Bruno Haible  <bruno@clisp.org>
10745
10746         dirent: Don't assume <dirent.h> exists.
10747         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10748         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10749         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10750         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10751
10752 2011-09-11  Bruno Haible  <bruno@clisp.org>
10753
10754         Fix wint_t on MSVC.
10755         * lib/wchar.in.h (wint_t): On MSVC, override it.
10756         * lib/wctype.in.h (wint_t): Likewise.
10757         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10758         MSVC.
10759         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10760         * doc/posix-headers/wctype.texi: Likewise.
10761
10762 2011-09-11  Bruno Haible  <bruno@clisp.org>
10763
10764         sys_types: Fix typo.
10765         * lib/sys_types.in.h: Fix typo in comment.
10766         Reported by Paul Eggert.
10767
10768         Support for MSVC compiler: Ensure size_t gets defined.
10769         * modules/strings (Depends-on): Add 'sys_types'.
10770         * modules/sys_uio (Depends-on): Likewise.
10771         * lib/sys_uio.in.h: Update comment.
10772
10773         C++ tests for module 'sys_types'.
10774         * modules/sys_types-c++-tests: New file.
10775         * tests/test-sys_types-c++.cc: New file.
10776
10777         Tests for module 'sys_types'.
10778         * modules/sys_types-tests: New file.
10779         * tests/test-sys_types.c: New file.
10780
10781         New module 'sys_types'.
10782         * lib/sys_types.in.h: New file.
10783         * m4/sys_types_h.m4: New file.
10784         * modules/sys_types: New file.
10785         * doc/posix-headers/sys_types.texi: Mention the new module and the
10786         size_t problem on MSVC 9.
10787
10788 2011-09-11  Bruno Haible  <bruno@clisp.org>
10789
10790         Support for MSVC compiler: Avoid division by a literal 0.
10791         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10792         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10793         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10794         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10795         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10796         * tests/infinity.h: New file.
10797         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10798         on MSVC.
10799         * tests/test-ceilf1.c: Include infinity.h.
10800         (main): Use Infinityf.
10801         * tests/test-ceil1.c: Include infinity.h.
10802         (main): Use Infinityd.
10803         * tests/test-ceill.c: Include infinity.h.
10804         (main): Use Infinityl.
10805         * tests/test-dprintf-posix.c: Include infinity.h.
10806         (test_function): Use Infinityd.
10807         * tests/test-floorf1.c: Include infinity.h.
10808         (main): Use Infinityf.
10809         * tests/test-floor1.c: Include infinity.h.
10810         (main): Use Infinityd.
10811         * tests/test-floorl.c: Include infinity.h.
10812         (main): Use Infinityl.
10813         * tests/test-fprintf-posix.c: Include infinity.h.
10814         (test_function): Use Infinityd.
10815         * tests/test-frexp.c: Include infinity.h.
10816         (main): Use Infinityd.
10817         * tests/test-frexpl.c: Include infinity.h.
10818         (main): Use Infinityl.
10819         * tests/test-isfinite.c: Include infinity.h.
10820         (test_isfinitef): Use Infinityf.
10821         (test_isfinited): Use Infinityd.
10822         (test_isfinitel): Use Infinityl.
10823         * tests/test-isinf.c: Include infinity.h.
10824         (test_isinff): Use Infinityf.
10825         (test_isinfd): Use Infinityd.
10826         (test_isinfl): Use Infinityl.
10827         * tests/test-isnan.c: Include infinity.h.
10828         (test_float): Use Infinityf.
10829         (test_double): Use Infinityd.
10830         (test_long_double): Use Infinityl.
10831         * tests/test-isnanf.h: Include infinity.h.
10832         (main): Use Infinityf.
10833         * tests/test-isnand.h: Include infinity.h.
10834         (main): Use Infinityd.
10835         * tests/test-isnanl.h: Include infinity.h.
10836         (main): Use Infinityl.
10837         * tests/test-ldexpl.c: Include infinity.h.
10838         (main): Use Infinityl.
10839         * tests/test-printf-posix.h: Include infinity.h.
10840         (test_function): Use Infinityd.
10841         * tests/test-roundf1.c: Include infinity.h.
10842         (main): Use Infinityf.
10843         * tests/test-round1.c: Include infinity.h.
10844         (main): Use Infinityd.
10845         * tests/test-roundl.c: Include infinity.h.
10846         (main): Use Infinityl.
10847         * tests/test-signbit.c: Include infinity.h.
10848         (test_signbitf): Use Infinityf.
10849         (test_signbitd): Use Infinityd.
10850         (test_signbitl): Use Infinityl.
10851         * tests/test-snprintf-posix.h: Include infinity.h.
10852         (test_function): Use Infinityd, Infinityl.
10853         * tests/test-sprintf-posix.h: Include infinity.h.
10854         (test_function): Use Infinityd, Infinityl.
10855         * tests/test-truncf1.c: Include infinity.h.
10856         (main): Use Infinityf.
10857         * tests/test-trunc1.c: Include infinity.h.
10858         (main): Use Infinityd.
10859         * tests/test-truncl.c: Include infinity.h.
10860         (main): Use Infinityl.
10861         * tests/test-vasnprintf-posix.c: Include infinity.h.
10862         (test_function): Use Infinityd, Infinityl.
10863         * tests/test-vasprintf-posix.c: Include infinity.h.
10864         (test_function): Use Infinityd, Infinityl.
10865         * modules/ceilf-tests (Files): Add tests/infinity.h.
10866         * modules/ceil-tests (Files): Likewise.
10867         * modules/ceill-tests (Files): Likewise.
10868         * modules/dprintf-posix-tests (Files): Likewise.
10869         * modules/floorf-tests (Files): Likewise.
10870         * modules/floor-tests (Files): Likewise.
10871         * modules/floorl-tests (Files): Likewise.
10872         * modules/fprintf-posix-tests (Files): Likewise.
10873         * modules/frexp-tests (Files): Likewise.
10874         * modules/frexp-nolibm-tests (Files): Likewise.
10875         * modules/frexpl-tests (Files): Likewise.
10876         * modules/frexpl-nolibm-tests (Files): Likewise.
10877         * modules/isfinite-tests (Files): Likewise.
10878         * modules/isinf-tests (Files): Likewise.
10879         * modules/isnan-tests (Files): Likewise.
10880         * modules/isnanf-tests (Files): Likewise.
10881         * modules/isnanf-nolibm-tests (Files): Likewise.
10882         * modules/isnand-tests (Files): Likewise.
10883         * modules/isnand-nolibm-tests (Files): Likewise.
10884         * modules/isnanl-tests (Files): Likewise.
10885         * modules/isnanl-nolibm-tests (Files): Likewise.
10886         * modules/ldexpl-tests (Files): Likewise.
10887         * modules/printf-posix-tests (Files): Likewise.
10888         * modules/roundf-tests (Files): Likewise.
10889         * modules/round-tests (Files): Likewise.
10890         * modules/roundl-tests (Files): Likewise.
10891         * modules/signbit-tests (Files): Likewise.
10892         * modules/snprintf-posix-tests (Files): Likewise.
10893         * modules/sprintf-posix-tests (Files): Likewise.
10894         * modules/truncf-tests (Files): Likewise.
10895         * modules/trunc-tests (Files): Likewise.
10896         * modules/truncl-tests (Files): Likewise.
10897         * modules/vasnprintf-posix-tests (Files): Likewise.
10898         * modules/vasprintf-posix-tests (Files): Likewise.
10899         * modules/vdprintf-posix-tests (Files): Likewise.
10900         * modules/vfprintf-posix-tests (Files): Likewise.
10901         * modules/vprintf-posix-tests (Files): Likewise.
10902         * modules/vsnprintf-posix-tests (Files): Likewise.
10903         * modules/vsprintf-posix-tests (Files): Likewise.
10904         * modules/xprintf-posix-tests (Files): Likewise.
10905
10906 2011-09-11  Bruno Haible  <bruno@clisp.org>
10907
10908         Ensure pid_t gets defined.
10909         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10910         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10911         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10912         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10913         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10914         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10915         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10916         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10917         * tests/test-fcntl-h.c: Check that pid_t is defined.
10918         * tests/test-sched.c: Likewise.
10919         * tests/test-termios.c: Likewise.
10920         * tests/test-time.c: Likewise.
10921         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10922         * doc/posix-headers/signal.texi: Likewise.
10923         * doc/posix-headers/sys_types.texi: Likewise.
10924         * doc/posix-headers/time.texi: Likewise.
10925
10926 2011-09-11  Bruno Haible  <bruno@clisp.org>
10927
10928         acl: Fix compilation on Solaris 10 (older version).
10929         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10930         of ACE_EVERYONE.
10931         * lib/set-mode-acl.c (qset_acl): Likewise.
10932         Reported by Christian Jullien <eligis@orange.fr>.
10933
10934 2011-09-10  Bruno Haible  <bruno@clisp.org>
10935
10936         iconv, unsetenv: Add support for MSVC compiler.
10937         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10938         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10939
10940 2011-09-10  Bruno Haible  <bruno@clisp.org>
10941
10942         *printf: Add support for MSVC compiler.
10943         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10944         handles the exception caused by the %n directive. When cross-compiling,
10945         guess no on native Windows.
10946         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10947         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10948         emulate it through vsnprintf.
10949         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10950         * doc/posix-functions/dprintf.texi: Update documentation regarding
10951         MSVC 9.
10952         * doc/posix-functions/fprintf.texi: Likewise.
10953         * doc/posix-functions/printf.texi: Likewise.
10954         * doc/posix-functions/snprintf.texi: Likewise.
10955         * doc/posix-functions/sprintf.texi: Likewise.
10956         * doc/posix-functions/swprintf.texi: Likewise.
10957         * doc/posix-functions/vdprintf.texi: Likewise.
10958         * doc/posix-functions/vfprintf.texi: Likewise.
10959         * doc/posix-functions/vprintf.texi: Likewise.
10960         * doc/posix-functions/vsnprintf.texi: Likewise.
10961         * doc/posix-functions/vsprintf.texi: Likewise.
10962         * doc/glibc-functions/asprintf.texi: Likewise.
10963         * doc/glibc-functions/obstack_printf.texi: Likewise.
10964         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10965         * doc/glibc-functions/vasprintf.texi: Likewise.
10966
10967 2011-09-10  Bruno Haible  <bruno@clisp.org>
10968
10969         nocrash: Add support for native Windows.
10970         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10971
10972 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10973             Bruno Haible  <bruno@clisp.org>
10974
10975         absolute-header, include-next: Add support for MSVC compiler.
10976         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10977         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10978         directory separator in #line directives.
10979         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10980         recognize also backslash as directory separator in #line directives.
10981
10982 2011-09-08  Jim Meyering  <meyering@redhat.com>
10983
10984         maint.mk: mark the post-release commit log with "maint: " prefix
10985         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10986         one-line commit-log summary.
10987
10988 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10989             Bruno Haible  <bruno@clisp.org>
10990
10991         Doc about crypt functions.
10992         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10993         systems.
10994         * doc/posix-functions/encrypt.texi: Likewise.
10995         * doc/posix-functions/setkey.texi: Likewise.
10996
10997 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10998
10999         * lib/gc.h: Fix copyright header.
11000
11001 2011-09-07  Bruno Haible  <bruno@clisp.org>
11002
11003         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11004         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11005         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11006
11007 2011-09-07  Bruno Haible  <bruno@clisp.org>
11008
11009         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11010         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11011         * lib/freopen.c: Likewise.
11012         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11013         * lib/lstat.c: Likewise.
11014         * lib/stat.c: Likewise.
11015         * lib/open.c: Use different syntax for include of <fcntl.h>.
11016         * lib/openat.c: Include fcntl.h again, explicitly.
11017
11018 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11019
11020         parse-datetime: document the newly accepted format
11021         * doc/parse-datetime.texi (Combined date and time of day items):
11022         New section.
11023
11024 2011-09-06  Bruno Haible  <bruno@clisp.org>
11025
11026         acl: Fix a test failure on newer Solaris 10 with ZFS.
11027         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11028         ENOSYS as no ACL.
11029         Reported by Jim Meyering.
11030
11031 2011-09-06  Bruno Haible  <bruno@clisp.org>
11032
11033         acl: Update for AIX >= 5.3 with NFS.
11034         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11035         ENOSYS as no ACL.
11036
11037         acl: Fix a test failure on AIX >= 5.3 with NFS.
11038         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11039         as no ACL.
11040
11041 2011-09-06  Bruno Haible  <bruno@clisp.org>
11042
11043         acl: Fix a test failure on IRIX 6.5 with NFS.
11044         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11045         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11046         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11047         * lib/copy-acl.c (qcopy_acl): Likewise.
11048
11049 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11050
11051         openat: port to AIX 7.1 with large files
11052         AIX 7.1 does a "#define openat open64at" if large files are in use,
11053         so we can't simply #undef openat.  Use the orig_openat trick (similar
11054         to orig_open in lib/open.c) to work around the problem.  Problem
11055         reported by Kevin Brott for GNU tar, in the thread containing
11056         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11057         * lib/openat.c (__need_system_fcntl_h): Define first.
11058         Include <fcntl.h> and <sys/types.h> before undefining.
11059         (orig_openat) [HAVE_OPENAT]: New inline function.
11060         (openat) [HAVE_OPENAT]: Do not undef.
11061         (rpl_openat): Use orig_openat, not openat.
11062
11063 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11064             Bruno Haible  <bruno@clisp.org>
11065
11066         acl: Avoid errors on NonStop Kernel.
11067         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11068         ENOTSUP errors.
11069
11070 2011-09-05  Bruno Haible  <bruno@clisp.org>
11071
11072         acl: Clean up Solaris code.
11073         * lib/acl-internal.h: Remove no-op #if.
11074         * lib/file-has-acl.c: Likewise.
11075         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11076         * lib/copy-acl.c (qcopy_acl): Likewise.
11077
11078 2011-09-05  Bruno Haible  <bruno@clisp.org>
11079
11080         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11081         binaries built on the original Solaris 10.
11082         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11083         trivial.
11084
11085 2011-09-05  Bruno Haible  <bruno@clisp.org>
11086
11087         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11088         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11089         10.
11090         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11091         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11092         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11093         instead of acl_get, facl_get, acl_set, facl_set.
11094
11095 2011-09-05  Bruno Haible  <bruno@clisp.org>
11096
11097         copy-file: Try unit tests on more file systems.
11098         * tests/test-copy-file-1.sh: New file.
11099         * tests/test-copy-file-2.sh: New file.
11100         * modules/copy-file-tests (Files): Add them.
11101         (Makefile.am): Add them to TESTS.
11102
11103         acl: Try unit tests on more file systems.
11104         * tests/test-file-has-acl-1.sh: New file.
11105         * tests/test-file-has-acl-2.sh: New file.
11106         * tests/test-set-mode-acl-1.sh: New file.
11107         * tests/test-set-mode-acl-2.sh: New file.
11108         * tests/test-copy-acl-1.sh: New file.
11109         * tests/test-copy-acl-2.sh: New file.
11110         * modules/acl-tests (Files): Add them.
11111         (Makefile.am): Add them to TESTS.
11112
11113 2011-09-04  Bruno Haible  <bruno@clisp.org>
11114
11115         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11116         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11117         10.
11118         (OLD_ALLOW, OLD_DENY): New macros.
11119         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11120         ACE_ACCESS_ALLOWED_ACE_TYPE.
11121         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11122         ACE_ACCESS_DENIED_ACE_TYPE.
11123         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11124         (NEW_ACE_EXECUTE): Fix value.
11125         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11126         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11127         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11128         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11129         NEW_ACE_SYNCHRONIZE): New macros.
11130         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11131         instead of acl_fromtext, acl_set, facl_set.
11132         Fixes a coreutils/tests/cp/perm failure.
11133
11134 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11135
11136         openat: test for fstatat (..., 0) bug
11137         Further testing with tar suggests that fstatat (..., 0)
11138         does not work in general, on AIX 7.1; see
11139         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11140         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11141         replacement fstatat (which is what older AIX releases were using
11142         anyway).
11143         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11144         use is now changed to orig_fstatat.  This was probably the right
11145         thing to do anyway.
11146         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11147         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11148         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11149         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11150         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11151         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11152         if the bug is found.
11153
11154         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11155         This tests for another fstatat bug on AIX 7.1:
11156         fstatat (AT_FDCWD, ..., 0) does not work.  See
11157         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11158         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11159         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11160         (rpl_fstatat): Adjust so that it works around either (or both)
11161         bugs if present.
11162         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11163
11164 2011-09-03  Karl Berry  <karl@gnu.org>
11165
11166         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11167         in index entries.
11168
11169 2011-09-02  Bruno Haible  <bruno@clisp.org>
11170
11171         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11172         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11173         values of AR, ARFLAGS, RANLIB.
11174         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11175
11176 2011-09-02  Bruno Haible  <bruno@clisp.org>
11177
11178         Find 'ar' program that fits with --host argument.
11179         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11180
11181 2011-09-02  Bruno Haible  <bruno@clisp.org>
11182
11183         tests: init.sh: Support any non-GNU diff.
11184         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11185         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11186         Solaris 8.
11187
11188 2011-09-02  Bruno Haible  <bruno@clisp.org>
11189
11190         tests: init.sh: work also with any non-GNU diff that supports -u
11191         * tests/init.sh: Relax check for diff -u support.
11192         Rather than checking for GNU diff via --version, simply check
11193         for support for -u itself.  Useful at least on OpenBSD 4.9,
11194         AIX 7.1, IRIX 6.5, and Solaris 10.
11195
11196 2011-09-01  Bruno Haible  <bruno@clisp.org>
11197
11198         strtoimax, strtoumax: Document problem on HP-UX 11.
11199         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11200         * doc/posix-functions/strtoumax.texi: Likewise.
11201
11202 2011-09-01  Bruno Haible  <bruno@clisp.org>
11203
11204         strtoumax: Avoid link error on OSF/1 with DTK cc.
11205         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11206         defined as a function.
11207         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11208         strtoumax is defined, not whether it is declared.
11209
11210 2011-09-01  Bruno Haible  <bruno@clisp.org>
11211
11212         strtoimax: Avoid link error on OSF/1 with DTK cc.
11213         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11214         defined as a function.
11215         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11216         strtoimax is defined, not whether it is declared.
11217
11218 2011-09-01  Bruno Haible  <bruno@clisp.org>
11219
11220         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11221         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11222         as a function.
11223         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11224         whether it is declared.
11225
11226 2011-09-01  Bruno Haible  <bruno@clisp.org>
11227
11228         imaxabs: Avoid link error on OSF/1 with DTK cc.
11229         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11230         as a function.
11231         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11232         whether it is declared.
11233
11234 2011-09-01  Bruno Haible  <bruno@clisp.org>
11235
11236         Tests for module 'strtoumax'.
11237         * modules/strtoumax-tests: New file.
11238         * tests/test-strtoumax.c: New file.
11239
11240         Tests for module 'strtoimax'.
11241         * modules/strtoimax-tests: New file.
11242         * tests/test-strtoimax.c: New file.
11243
11244         Tests for module 'imaxdiv'.
11245         * modules/imaxdiv-tests: New file.
11246         * tests/test-imaxdiv.c: New file.
11247
11248         Tests for module 'imaxabs'.
11249         * modules/imaxabs-tests: New file.
11250         * tests/test-imaxabs.c: New file.
11251
11252 2011-09-01  Bruno Haible  <bruno@clisp.org>
11253
11254         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
11255         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
11256         pthread_create.
11257
11258 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11259
11260         openat: work around AIX 7.1 fstatat issue
11261         This should fix the problem that was not properly fixed
11262         in the previous change, dated 2011-08-30.
11263         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
11264         __need_system_stat_h defined.
11265         (orig_fstatat) [HAVE_FSTATAT]: New function.
11266         (rpl_fstatat): Go back to the old way of doing things,
11267         except call orig_fstatat instead of fstatat.
11268         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11269         Remove unnecessary check whether fstatat fills in st_size etc.
11270
11271 2011-09-01  Bruno Haible  <bruno@clisp.org>
11272
11273         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11274         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11275         just include the system's header.
11276
11277 2011-08-31  Jim Meyering  <meyering@redhat.com>
11278
11279         tests: avoid spurious assertion failure in test-float.c on ppc64
11280         * tests/test-float.c (test_long_double): Comment out an assertion,
11281         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11282         with gcc-4.4.4.
11283
11284         maint: indent with spaces, not TABs
11285         I need to get in the habit of running gnulib's "make check".
11286         Both of these would have been caught.
11287         * m4/largefile.m4: Indent with spaces, not TABs.
11288         * lib/parse-datetime.y (iso_8601_time): Likewise.
11289         Spotted by Pádraig Brady.
11290
11291         test-parse-datetime.c: accommodate a relatively strict gcc warning
11292         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11293         to avoid a warning from gcc's -Werror=missing-declarations.
11294         Insert a few spaces-before-funcall-parenthesis.
11295
11296 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11297
11298         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11299         The parser now accepts ISO 8601 date-time strings with "T" as the
11300         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11301         with a space between the date and time strings.  Now it also parses
11302         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11303         variants like "2004-02-29T16:21:42.333-07:00"
11304         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11305         of day representation using the 'T' separator character.
11306         * doc/parse-datetime.texi (General date syntax): replace use of
11307         deprecated --iso-8601 option with --rfc-3339 in example of date
11308         command output formats that can be parsed.
11309         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11310         lib/parse-datetime.y.
11311         (gmt_offset): New function.
11312         (main): Add additional test cases to validate ISO8601 extended
11313         date and time of day parsing.
11314
11315 2011-08-31  Bruno Haible  <bruno@clisp.org>
11316
11317         freopen: Documentation.
11318         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11319         name.
11320         Reported by Claudio Bley <claudio.bley@gmail.com>.
11321
11322 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11323
11324         freopen: Don't crash if the filename argument is NULL.
11325         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11326         NULL.
11327
11328 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11329
11330         openat: work around AIX 7.1 fstatat bug
11331         Problem reported by Kevin Brott for GNU tar, in the thread containing
11332         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
11333         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
11334         FSTATAT_ST_SIZE_ETC_BROKEN.
11335         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
11336         rpl_fstatat.
11337         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
11338         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
11339         AC_CHECK_FUNCS_ONCE for fstatat.
11340         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
11341         fchmodat, mkdirat, openat and unlinkat.
11342
11343 2011-08-30  Bruno Haible  <bruno@clisp.org>
11344
11345         Avoid endless recursions if config.h includes some header files.
11346         * lib/fopen.c (__need_FILE): Define already before including config.h.
11347         * lib/freopen.c (__need_FILE): Likewise.
11348         * lib/open.c (__need_system_fcntl_h): Likewise.
11349         * lib/stat.c (__need_system_sys_stat_h): Likewise.
11350         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
11351         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11352
11353 2011-08-25  Karl Berry  <karl@gnu.org>
11354
11355         * config/srclist.txt (ylwrap): new try.
11356         * build-aux/ylwrap: new file.
11357
11358 2011-08-23  Bruno Haible  <bruno@clisp.org>
11359
11360         tmpdir: Use a good default directory on native Windows.
11361         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
11362         (P_tmpdir): Default to _P_tmpdir on native Windows.
11363         (path_search): On native Windows, try the value returned by GetTempPath
11364         before trying P_tmpdir.
11365         * modules/tmpdir (Depends-on): Add pathmax.
11366         Suggested by John Darrington <john@darrington.wattle.id.au>.
11367
11368 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
11369
11370         doc: fix typo in README-release
11371         * top/README-release: Capitalize first word of a sentence.
11372
11373 2011-08-19  Jim Meyering  <meyering@redhat.com>
11374
11375         fts: do not exhaust memory when processing million-entry directories
11376         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
11377         directory would require about 256*N bytes of memory.  Thus, it was
11378         easy to construct a directory too large to be processed by any of
11379         those tools.  With this change, fts' maximum memory utilization is
11380         now limited to around 30MB.
11381         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
11382         (fts_read): When we've processed the final entry (i.e., when
11383         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
11384         using the parent entry to read any remaining entries.  Dispatch
11385         depending on what fts_build returns:
11386         - NULL+stop, aka failure: stop
11387         - NULL otherwise: move up in the dir hierarchy
11388         - non-NULL: handle this new entry
11389         (fts_build): Declare and use new local, continue_readdir.
11390         Prepare to be called from fts_read, when the entries
11391         from a partially-read directory have just been exhausted.
11392         In that case, we'll skip the opendir and instead use the parent's
11393         fts_dirp and derive dir_fd from that.
11394         Finally, in the readdir loop, if we read max_entries entries,
11395         exit the loop ensuring *not* to call closedir.  This is required
11396         so that fts_dirp can be reused on a subsequent call.
11397         Prompted by Ben England's report of memory exhaustion in find
11398         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11399
11400         maint: fts: move decl of `dp' down into while loop; split a long line
11401         * lib/fts.c (fts_build): No semantic change.
11402
11403         fts: add/use new struct member, fts_dirp
11404         We are about to use this to manage any directory with
11405         too many entries to read all of them into memory at once.
11406         To do that, we'll need to save the DIR* pointer in each
11407         affected FTSENT struct.
11408         * lib/fts_.h: Include <dirent.h>.
11409         (struct FTSENT) [fts_dirp]: New member.
11410         * lib/fts.c (closedir_and_clear): Define.
11411         Use it in place of closedir so that we are sure to
11412         clear the new fts_dirp member when done with it.
11413         (fts_alloc): Initialize the new member.
11414         (fts_lfree): Free, if needed.
11415
11416         maint: fts: give __opendir2 a new parameter and rename
11417         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
11418         than surreptitiously using sole caller's "dir_fd".
11419         (fts_opendir): Rename from __opendir2.
11420
11421         maint: fts.c: remove __opendir2's now-unused parameter, oflag
11422         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
11423
11424         maint: fts.c: correct off-by-one indentation
11425         * lib/fts.c (fts_build): Correct indentation, change style
11426         of a couple of block comments, and bracing style.
11427
11428         maint: fts.c: move __opendir2 #define "up" out of function body
11429         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11430
11431         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11432         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11433         out for a long time and besides was useful only on BSD systems.
11434
11435 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11436
11437         regex: port to Stratus OpenVOS
11438         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
11439         define to empty, rather than attempting nonportable optimizations.
11440         Problem reported by Paul Green in:
11441         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
11442         and fix suggested by Eric Blake in:
11443         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
11444
11445 2011-08-17  Eric Blake  <eblake@redhat.com>
11446
11447         getcwd: fix test failures on mingw
11448         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
11449         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
11450         test if long directory cannot be created, and allow mingw errno.
11451
11452         getcwd-lgpl: fix m4 to match relaxed test for BSD
11453         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
11454         (gl_FUNC_GETCWD_SIGNATURE): New macro.
11455         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
11456         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
11457         signature problem.
11458
11459         getcwd: fix compilation on mingw64
11460         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
11461         getcwd.
11462         Reported by Marc-André Lureau.
11463
11464         pipe2: silence compiler warning
11465         * lib/pipe2.c (pipe2): Hide label if it is not used.
11466
11467 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
11468
11469         relocatable-prog: fix link error
11470         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
11471         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
11472         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
11473         into modules/relocatable-lib without noticing that
11474         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
11475         also needs to build relocatable.c.
11476
11477 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11478
11479         getaddrinfo: fix sh typo in gai_strerrorA decl checking
11480         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
11481         shell code: it contained a 'break' that was not in a loop.
11482         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11483         via a shell-language loop; this may have been true in old Autoconf
11484         versions, but it's not true in Autoconf 2.68.  I found this bug
11485         when testing coreutils git on Solaris 8, whose shell complains
11486         about the syntax error.
11487
11488 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11489
11490         * lib/base64.c: Fix comment to reference RFC 4648.
11491         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11492         <gvtulder@gmail.com>.
11493
11494 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11495
11496         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11497
11498         po/Makefile.in.in: fix make -q problem
11499         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11500         rule, since there's no file named 'check-macro-version' and its
11501         use as a file breaks make -q.
11502         (all): Don't depend on check-macro-version.
11503         (CHECK_MACRO_VERSION): New macro.
11504         (stamp-po): Use it.
11505
11506         configmake: fix make -q problem
11507         * modules/configmake (configmake.h): Update configmake.h's time stamp
11508         even if the file does not change.  Otherwise, 'make -q' fails.
11509         Problem reported by Simon Josefsson in
11510         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11511
11512 2011-08-11  Jim Meyering  <meyering@redhat.com>
11513
11514         git-version-gen: correct the advice in a comment
11515         * build-aux/git-version-gen: Correct comment.
11516         Don't recommend to list .tarball-version in .gitignore.
11517
11518 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11519
11520         base64: fix off-by-one buffer size bug
11521         Problem and (trivial) fix reported by Gijs van Tulder in
11522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11523         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11524         * tests/test-base64.c (main): Catch the bug.
11525
11526 2011-08-10  Eric Blake  <eblake@redhat.com>
11527
11528         closein: correct comments
11529         * lib/closein.c (close_stdin): Improve comments.
11530
11531 2011-08-09  Bruno Haible  <bruno@clisp.org>
11532
11533         More tests for 'fseeko'.
11534         * tests/test-fseeko3.c: New file, from Eric Blake.
11535         * tests/test-fseeko3.sh: New file.
11536         * modules/fseeko-tests (Files): Add them.
11537         (TESTS): Add test-fseeko3.sh.
11538         (check_PROGRAMS): Add test-fseeko3.
11539
11540 2011-08-09  Eric Blake  <eblake@redhat.com>
11541
11542         fseeko: remove unneeded hack
11543         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11544
11545         fseeko: fix bug on glibc
11546         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11547         Reported by John W. Eaton.
11548
11549 2011-08-08  Bruno Haible  <bruno@clisp.org>
11550
11551         unictype/base: Fix interoperability with preinstalled libunistring.
11552         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11553         Reported by Simon Josefsson.
11554
11555 2011-08-08  Bruno Haible  <bruno@clisp.org>
11556
11557         iswblank: Detect declaration correctly.
11558         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11559         AC_CHECK_DECLS invocation.
11560
11561 2011-08-08  Bruno Haible  <bruno@clisp.org>
11562
11563         tcgetsid: Detect declaration correctly.
11564         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11565         AC_CHECK_DECLS invocation.
11566         Reported by Simon Josefsson.
11567
11568 2011-08-08  Eric Blake  <eblake@redhat.com>
11569
11570         largefile: fix typo that regressed large file support
11571         * modules/largefile (configure.ac-early): Fix section name.
11572
11573 2011-08-06  Karl Berry  <karl@gnu.org>
11574
11575         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11576         a separate module.
11577
11578 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11579
11580         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11581         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11582         get prototype for free.
11583
11584 2011-08-04  Bruno Haible  <bruno@clisp.org>
11585
11586         Tests for module 'pathmax'.
11587         * modules/pathmax-tests: New file.
11588         * tests/test-pathmax.c: New file.
11589
11590         canonicalize-lgpl: Support larger filenames on the Hurd.
11591         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11592         Reported by Paul Eggert.
11593
11594         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11595         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11596         * lib/chdir-long.h: Include pathmax.h.
11597         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11598         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11599         (PATH_MAX): Remove code that is done by pathmax.h.
11600         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11601         * lib/tmpfile.c: Add a comment.
11602         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11603         * modules/chdir-long (Depends-on): Add pathmax.
11604         * modules/getcwd (Depends-on): Add pathmax.
11605         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11606         is not defined.
11607         * doc/posix-headers/limits.texi: Mention the pathmax module.
11608         * NEWS: Mention the change.
11609
11610 2011-08-02  Bruno Haible  <bruno@clisp.org>
11611
11612         pthread_sigmask: Actually use results of gl_THREADLIB.
11613         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11614         gl_THREADLIB, not gl_[]THREADLIB.
11615         Reported by Eric Blake.
11616
11617 2011-08-02  Jim Meyering  <meyering@redhat.com>
11618
11619         maint.mk: relax the default _gl_TS_function_match regexp
11620         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11621         space between function name and "(" in an "extern" declaration.
11622         That would fail to match a decl with no space there: extern void foo();
11623
11624 2011-07-31  Iain Nicol  <iain@thenicols.net>
11625
11626         git-version-gen: document that EXTRA_DIST must include .version
11627         * build-aux/git-version-gen: In the how-to-use comment, document
11628         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11629         will fail when run from an unpacked distribution tarball.
11630
11631 2011-08-01  Bruno Haible  <bruno@clisp.org>
11632
11633         wctype-h: Fix last change.
11634         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11635         REPLACE_TOWLOWER to 0.
11636         Reported by Sam Steingold <sds@gnu.org>.
11637
11638 2011-07-31  Bruno Haible  <bruno@clisp.org>
11639
11640         frexpl: Update autoconf test.
11641         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11642         according to changes of 2011-06-20.
11643
11644 2011-07-31  Bruno Haible  <bruno@clisp.org>
11645
11646         sys_utsname: Add support for Minix.
11647         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11648         <sys/utsname.h>.
11649         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11650         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11651
11652 2011-07-31  Bruno Haible  <bruno@clisp.org>
11653
11654         strings: Add support for Minix.
11655         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11656         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11657         * doc/posix-headers/strings.texi: Document the Minix problem.
11658
11659 2011-07-31  Bruno Haible  <bruno@clisp.org>
11660
11661         wctype-h: Add support for Minix.
11662         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11663         REPLACE_TOWLOWER.
11664         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11665         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11666         REPLACE_ISWCNTRL.
11667
11668 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11669
11670         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11671         This is a performance improvement for 64-bit hosts: it causes the
11672         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11673
11674 2011-07-31  Bruno Haible  <bruno@clisp.org>
11675
11676         stdioext: Add support for Minix.
11677         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11678         * lib/fpurge.c (fpurge): Likewise.
11679         * lib/freadahead.c (freadahead): Likewise.
11680         * lib/freadable.c (freadable): Likewise.
11681         * lib/freading.c (freading): Likewise.
11682         * lib/freadptr.c (freadptr): Likewise.
11683         * lib/freadseek.c (freadptrinc): Likewise.
11684         * lib/fseeko.c (rpl_fseeko): Likewise.
11685         * lib/fseterr.c (fseterr): Likewise.
11686         * lib/fwritable.c (fwritable): Likewise.
11687         * lib/fwriting.c (fwriting): Likewise.
11688         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11689         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11690
11691 2011-07-31  Bruno Haible  <bruno@clisp.org>
11692
11693         errno: Port to Minix.
11694         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11695         ECONNABORTED are defined.
11696         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11697         GNULIB_defined_ECONNABORTED): New macros.
11698         * lib/strerror-override.h (strerror_override): Test also
11699         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11700         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11701         ECONNABORTED.
11702         * doc/posix-headers/errno.texi: Mention the Minix problem.
11703
11704 2011-07-31  Bruno Haible  <bruno@clisp.org>
11705
11706         Work around declaration collisions on Minix.
11707         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11708         defined, set REPLACE_MBSINIT.
11709         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11710         defined, set REPLACE_MBRTOWC.
11711         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11712         set REPLACE_MBRLEN.
11713         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11714         defined, set REPLACE_MBSRTOWCS.
11715         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11716         defined, set REPLACE_WCRTOMB.
11717         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11718         defined, set REPLACE_WCSRTOMBS.
11719
11720 2011-07-31  Bruno Haible  <bruno@clisp.org>
11721
11722         Add support for Minix with ACK compiler.
11723         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11724         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11725         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11726
11727 2011-07-31  Bruno Haible  <bruno@clisp.org>
11728
11729         Documentation about Minix.
11730         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11731         * doc/glibc-headers/*.texi: Likewise.
11732         * doc/posix-functions/*.texi: Likewise.
11733         * doc/glibc-functions/*.texi: Likewise.
11734
11735 2011-07-31  Bruno Haible  <bruno@clisp.org>
11736
11737         snippet/warn-on-use: Fix indentation.
11738         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11739
11740 2011-07-25  Jim Meyering  <meyering@redhat.com>
11741
11742         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11743         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11744         commands.
11745
11746 2011-07-27  Jim Meyering  <meyering@redhat.com>
11747
11748         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11749         * top/maint.mk (gl_extract_significant_defines_): Now that
11750         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11751         gnulib/lib/signal.in.h, and now that we recommend to
11752         define-if-undefined those two symbols in application code,
11753         we must filter them out of the "significant" list.
11754         This avoids a "make syntax-check" failure in coreutils.
11755
11756 2011-07-26  Eric Blake  <eblake@redhat.com>
11757
11758         warnings: add comments about previous patch
11759         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11760         * m4/include_next.m4: Likewise.
11761         * m4/warn-on-use.m4: Likewise.
11762         * m4/warnings.m4: Likewise, and simplify use.
11763         Suggested by Stefano Lattarini.
11764
11765         include-next, warnings: support older autoconf
11766         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11767         AS_VAR_PUSHDEF in a way that works with older autoconf.
11768         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11769         Reported by Daniel P. Berrange.
11770
11771 2011-07-25  Bruno Haible  <bruno@clisp.org>
11772
11773         fseek, ftell: Fix doc.
11774         * doc/posix-functions/fseek.texi: Reword statement about
11775         AC_SYS_LARGEFILE.
11776         * doc/posix-functions/ftell.texi: Likewise.
11777
11778 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11779             Bruno Haible  <bruno@clisp.org>
11780
11781         Add dependencies to the 'largefile' module.
11782         * modules/fopen (Depends-on): Add 'largefile'.
11783         * modules/freopen (Depends-on): Likewise.
11784         * modules/fseeko (Depends-on): Likewise.
11785         * modules/ftello (Depends-on): Likewise.
11786         * modules/glob (Depends-on): Likewise.
11787         * modules/lseek (Depends-on): Likewise.
11788         * modules/lstat (Depends-on): Likewise.
11789         * modules/mkostemp (Depends-on): Likewise.
11790         * modules/mkostemps (Depends-on): Likewise.
11791         * modules/mkstemp (Depends-on): Likewise.
11792         * modules/mkstemps (Depends-on): Likewise.
11793         * modules/open (Depends-on): Likewise.
11794         * modules/openat (Depends-on): Likewise.
11795         * modules/pread (Depends-on): Likewise.
11796         * modules/pwrite (Depends-on): Likewise.
11797         * modules/scandir (Depends-on): Likewise.
11798         * modules/stat (Depends-on): Likewise.
11799         * modules/tmpfile (Depends-on): Likewise.
11800         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11801         since the containing module now depends on the largefile module.
11802         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11803         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11804         off_t is fixed by gnulib.
11805         * doc/posix-functions/freopen.texi: Likewise.
11806         * doc/posix-functions/fseeko.texi: Likewise.
11807         * doc/posix-functions/fstatat.texi: Likewise.
11808         * doc/posix-functions/ftello.texi: Likewise.
11809         * doc/posix-functions/glob.texi: Likewise.
11810         * doc/posix-functions/lseek.texi: Likewise.
11811         * doc/posix-functions/lstat.texi: Likewise.
11812         * doc/posix-functions/mkstemp.texi: Likewise.
11813         * doc/posix-functions/open.texi: Likewise.
11814         * doc/posix-functions/openat.texi: Likewise.
11815         * doc/posix-functions/pread.texi: Likewise.
11816         * doc/posix-functions/pwrite.texi: Likewise.
11817         * doc/posix-functions/scandir.texi: Likewise.
11818         * doc/posix-functions/stat.texi: Likewise.
11819         * doc/posix-functions/tmpfile.texi: Likewise.
11820         * doc/glibc-functions/mkostemp.texi: Likewise.
11821         * doc/glibc-functions/mkostemps.texi: Likewise.
11822         * doc/glibc-functions/mkstemps.texi: Likewise.
11823
11824 2011-07-25  Bruno Haible  <bruno@clisp.org>
11825
11826         fcntl: Move AC_LIBOBJ invocation to module description.
11827         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11828         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11829
11830         fcntl: Remove call-in from fchdir.m4.
11831         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11832         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11833
11834         dup3: Remove potential call-in from fchdir.m4.
11835         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11836         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11837
11838         dup2: Move AC_LIBOBJ invocation to module description.
11839         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11840         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11841         Don't invoke AC_LIBOBJ.
11842         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11843
11844         dup2: Remove call-in from fchdir.m4.
11845         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11847
11848         fclose: Move AC_LIBOBJ invocation to module description.
11849         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11850         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11851         to 1.
11852         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11853
11854         fclose: Remove call-in from close.m4.
11855         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11856         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11857
11858         close: Move AC_LIBOBJ invocation to module description.
11859         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11860         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11861         1.
11862         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11863
11864         close: Remove call-in from fchdir.m4.
11865         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11866         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11867
11868         open: Move AC_LIBOBJ invocation to module description.
11869         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11870         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11871         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11872
11873         open: Remove call-in from fchdir.m4.
11874         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11875         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11876
11877         fchdir: Start to remove gl_REPLACE_* idiom.
11878         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11879         (gl_FUNC_FCHDIR): Invoke it.
11880
11881 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11882
11883         * lib/ftell.c (ftell): Comment out cast.
11884
11885         close: use gl_REPLACE_FCLOSE only if defined
11886         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11887         is defined.  The close module doesn't depend on the fclose module
11888         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11890         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11891
11892 2011-07-24  Jim Meyering  <meyering@redhat.com>
11893
11894         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11895         * tests/test-select.h (test_function): Declare as "static".
11896
11897 2011-07-24  Bruno Haible  <bruno@clisp.org>
11898
11899         doc: Mention the effects of AC_SYS_LARGEFILE.
11900         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11901         on this function.
11902         * doc/posix-functions/aio_error.texi: Likewise.
11903         * doc/posix-functions/aio_fsync.texi: Likewise.
11904         * doc/posix-functions/aio_read.texi: Likewise.
11905         * doc/posix-functions/aio_return.texi: Likewise.
11906         * doc/posix-functions/aio_suspend.texi: Likewise.
11907         * doc/posix-functions/aio_write.texi: Likewise.
11908         * doc/posix-functions/fgetpos.texi: Likewise.
11909         * doc/posix-functions/fopen.texi: Likewise.
11910         * doc/posix-functions/freopen.texi: Likewise.
11911         * doc/posix-functions/fsetpos.texi: Likewise.
11912         * doc/posix-functions/fstatvfs.texi: Likewise.
11913         * doc/posix-functions/ftruncate.texi: Likewise.
11914         * doc/posix-functions/ftw.texi: Likewise.
11915         * doc/posix-functions/getrlimit.texi: Likewise.
11916         * doc/posix-functions/glob.texi: Likewise.
11917         * doc/posix-functions/lio_listio.texi: Likewise.
11918         * doc/posix-functions/lockf.texi: Likewise.
11919         * doc/posix-functions/mkstemp.texi: Likewise.
11920         * doc/posix-functions/mmap.texi: Likewise.
11921         * doc/posix-functions/nftw.texi: Likewise.
11922         * doc/posix-functions/openat.texi: Likewise.
11923         * doc/posix-functions/opendir.texi: Likewise.
11924         * doc/posix-functions/posix_fadvise.texi: Likewise.
11925         * doc/posix-functions/posix_fallocate.texi: Likewise.
11926         * doc/posix-functions/pread.texi: Likewise.
11927         * doc/posix-functions/pwrite.texi: Likewise.
11928         * doc/posix-functions/readdir.texi: Likewise.
11929         * doc/posix-functions/readdir_r.texi: Likewise.
11930         * doc/posix-functions/rewinddir.texi: Likewise.
11931         * doc/posix-functions/scandir.texi: Likewise.
11932         * doc/posix-functions/seekdir.texi: Likewise.
11933         * doc/posix-functions/setrlimit.texi: Likewise.
11934         * doc/posix-functions/statvfs.texi: Likewise.
11935         * doc/posix-functions/telldir.texi: Likewise.
11936         * doc/posix-functions/tmpfile.texi: Likewise.
11937         * doc/posix-functions/truncate.texi: Likewise.
11938         * doc/glibc-functions/fallocate.texi: Likewise.
11939         * doc/glibc-functions/fstatfs.texi: Likewise.
11940         * doc/glibc-functions/fts_children.texi: Likewise.
11941         * doc/glibc-functions/fts_read.texi: Likewise.
11942         * doc/glibc-functions/getdirentries.texi: Likewise.
11943         * doc/glibc-functions/mkostemp.texi: Likewise.
11944         * doc/glibc-functions/mkostemps.texi: Likewise.
11945         * doc/glibc-functions/mkstemps.texi: Likewise.
11946         * doc/glibc-functions/preadv.texi: Likewise.
11947         * doc/glibc-functions/pwritev.texi: Likewise.
11948         * doc/glibc-functions/sendfile.texi: Likewise.
11949         * doc/glibc-functions/statfs.texi: Likewise.
11950
11951 2011-07-24  Bruno Haible  <bruno@clisp.org>
11952
11953         doc: Fix typo.
11954         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11955
11956 2011-07-24  Bruno Haible  <bruno@clisp.org>
11957
11958         doc: Mention fsusage.
11959         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11960
11961 2011-07-24  Bruno Haible  <bruno@clisp.org>
11962
11963         doc: Mention new glibc headers and functions.
11964         * doc/glibc-headers/gshadow.texi: New file.
11965         * doc/glibc-functions/endsgent.texi: New file.
11966         * doc/glibc-functions/fgetsgent.texi: New file.
11967         * doc/glibc-functions/fgetsgent_r.texi: New file.
11968         * doc/glibc-functions/getsgent.texi: New file.
11969         * doc/glibc-functions/getsgent_r.texi: New file.
11970         * doc/glibc-functions/getsgnam.texi: New file.
11971         * doc/glibc-functions/getsgnam_r.texi: New file.
11972         * doc/glibc-functions/putsgent.texi: New file.
11973         * doc/glibc-functions/setsgent.texi: New file.
11974         * doc/glibc-functions/sgetsgent.texi: New file.
11975         * doc/glibc-functions/sgetsgent_r.texi: New file.
11976         * doc/glibc-functions/malloc_info.texi: New file.
11977         * doc/glibc-functions/preadv.texi: New file.
11978         * doc/glibc-functions/pwritev.texi: New file.
11979         * doc/glibc-functions/register_printf_modifier.texi: New file.
11980         * doc/glibc-functions/register_printf_specifier.texi: New file.
11981         * doc/glibc-functions/register_printf_type.texi: New file.
11982         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11983         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11984         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11985         * doc/glibc-functions/pthread_getname_np.texi: New file.
11986         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11987         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11988         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11989         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11990         * doc/glibc-functions/pthread_setname_np.texi: New file.
11991         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11992         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11993         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11994         * doc/glibc-functions/qsort_r.texi: New file.
11995         * doc/glibc-functions/quick_exit.texi: New file.
11996         * doc/glibc-functions/syncfs.texi: New file.
11997         * doc/gnulib.texi: Include them.
11998         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11999         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12000         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12001         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12002         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12003         * doc/glibc-functions/execvpe.texi: Likewise.
12004
12005 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12006
12007         ftell: don't include <unistd.h>
12008         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12009         guaranteed to define off_t, and the ftell module depends on the
12010         stdio module.
12011
12012         ftell: do not assume wraparound signed arithmetic
12013         * lib/ftell.c: Include <limits.h>.
12014         (ftell): Don't assume wraparound signed arithmetic.
12015
12016 2011-07-24  Bruno Haible  <bruno@clisp.org>
12017
12018         close: No longer depend on module 'fclose'.
12019         * modules/close (Depends-on): Remove fclose.
12020         * NEWS: Mention the change.
12021         Suggested by Sam Steingold <sds@gnu.org>.
12022
12023 2011-07-24  Bruno Haible  <bruno@clisp.org>
12024
12025         fsusage: Enable large volume support on AIX >= 5.2.
12026         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12027         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12028         instead of STAT_STATVFS.
12029         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12030
12031         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12032         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12033         f_blocks field only on MacOS X.
12034
12035         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12036         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12037         * modules/fsusage (Depends-on): Add largefile.
12038
12039 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12040
12041         * README: Modernize discussion of signed integers.
12042         Assuming overflow wraparound is no longer safe.
12043         Mention ones' complement and signed magnitude.
12044
12045 2011-07-22  Bruno Haible  <bruno@clisp.org>
12046
12047         select tests, pselect tests: Refactor.
12048         * tests/test-select.h: New file, extracted from tests/test-select.c.
12049         (select_fn): New type.
12050         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12051         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12052         test_pipe): Add my_select argument.
12053         (test_function): Renamed from main. Add my_select argument.
12054         * tests/test-select.c: Move most code to tests/test-select.h. Include
12055         test-select.h.
12056         * modules/select-tests (Files): Add tests/test-select.h.
12057         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12058         (my_select, main): New functions.
12059         * modules/pselect-tests (Files): Add tests/test-select.h,
12060         tests/macros.h, tests/signature.h.
12061         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12062         (configure.ac): Check for <sys/wait.h>.
12063
12064 2011-07-22  Bruno Haible  <bruno@clisp.org>
12065
12066         sys_select tests: Check the signature of FD_*.
12067         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12068         signature tests from here...
12069         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12070         here.
12071         * modules/sys_select-tests (Files): Add tests/signature.h.
12072
12073 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12074
12075         largefile: new module, replacing large-inode
12076         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12077         * MODULES.html.sh: Add largefile, remove large-inode.
12078         * modules/largefile, m4/largefile.m4: New files.
12079         * modules/large-inode, m4/large-inode.m4: Remove.
12080
12081         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12082         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12083         implementations that use only 32 bits to count blocks.
12084         On typical hosts with 1024-byte blocks, this fails with file
12085         systems as small as 4 TiB.  Problem reported by Herb Wartens
12086         <http://debbugs.gnu.org/9140> and this should also fix a similar
12087         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12088
12089         large-inode: New module
12090         * MODULES.html.sh: Add it.
12091         * modules/large-inode, m4/large-inode.m4: New files.
12092
12093         extensions: Enable extensions on MacOS X 10.5 and later.
12094         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12095
12096 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12097
12098         file-has-acl: use acl_extended_file_nofollow if available
12099         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12100         (acl_extended_file): New macro.
12101         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12102         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12103
12104 2011-07-21  Bruno Haible  <bruno@clisp.org>
12105
12106         Declare system functions in a way that works with C++.
12107         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12108         declare fdopendir as extern "C".
12109         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12110         declare frexpl as extern "C".
12111         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12112         declare gai_strerror as extern "C".
12113         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12114         programs, declare gai_strerror as extern "C".
12115         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12116         declare getlogin_r as extern "C".
12117         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12118         as extern "C".
12119         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12120         declare ldexpl as extern "C".
12121         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12122         as extern "C".
12123         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12124         program, declare getmntinfo as extern "C".
12125         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12126         stpncpy as extern "C".
12127         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12128         program, declare __xpg_strerror_r as extern "C".
12129         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12130         strndup as extern "C".
12131         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12132         declare memset and bzero as extern "C".
12133         Reported by Sam Steingold <sds@gnu.org>.
12134
12135 2011-07-12  Jim Meyering  <meyering@redhat.com>
12136
12137         maint.mk: prohibit inclusion of "verify.h" without use
12138         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12139
12140 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12141
12142         timer-time: A new module to check for timer_settime()
12143         * m4/timer_time.m4: Check for the posix function.
12144         * modules/timer-time: Add the new module.
12145         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12146         Mention it.
12147
12148 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12149             Bruno Haible  <bruno@clisp.org>
12150
12151         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12152         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12153         not defined, assume POSIX threads and look for pthread_sigmask in
12154         $LIBS, without changing $CPPFLAGS.
12155
12156 2011-07-19  Bruno Haible  <bruno@clisp.org>
12157
12158         strstr: Update cross-compilation guess.
12159         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12160         CPUs, guess no, in view of glibc
12161         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12162         Suggested by Eric Blake. Reported by Reuben Thomas.
12163
12164 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12165
12166         getopt-gnu: suppress core dumps from detection code
12167         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12168         to suppress core dumps that may well occur on glibc systems.
12169         * modules/getopt-gnu: Depend on nocrash.
12170
12171 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12172
12173         pthread_sigmask: ensure usleep is declared
12174         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12175         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12176
12177 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12178
12179         doc: Document NonStop portability issues.
12180         * doc/posix-functions/sigaction.texi (sigaction):
12181         * doc/posix-headers/signal.texi (signal.h):
12182         Document NonStop.  See Joachim Schmitz in
12183         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12184
12185 2011-07-15  Bruno Haible  <bruno@clisp.org>
12186
12187         ffsl, ffsll: Avoid unportable behaviour.
12188         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12189
12190 2011-07-15  Bruno Haible  <bruno@clisp.org>
12191
12192         ffs: More tests.
12193         * tests/test-ffs.c (NBITS): New macro.
12194         (main): Add more tests.
12195         * tests/test-ffsl.c (NBITS): New macro.
12196         (main): Add more tests.
12197         * tests/test-ffsll.c (NBITS): New macro.
12198         (main): Add more tests.
12199
12200 2011-07-15  Eric Blake  <eblake@redhat.com>
12201
12202         ffsl, ffsll: new modules
12203         * modules/ffsl: New file.
12204         * modules/ffsll: Likewise.
12205         * m4/ffsl.m4: Likewise.
12206         * m4/ffsll.m4: Likewise.
12207         * lib/ffsl.c: Likewise.
12208         * lib/ffsl.h: Likewise.
12209         * lib/ffsll.c: Likewise.
12210         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12211         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12212         * modules/string (Makefile.am): Substitute witnesses.
12213         * lib/strings.in.h (ffsl, ffsll): Declare.
12214         * modules/ffsl-tests: New test file.
12215         * modules/ffsll-tests: Likewise.
12216         * tests/test-ffsl.c: Likewise.
12217         * tests/test-ffsll.c: Likewise.
12218         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12219         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12220         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12221
12222         ffs: fix m4 prerequisite
12223         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12224
12225         ffs: avoid undefined behavior
12226         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12227         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12228         Reported by Bruno Haible.
12229
12230 2011-07-12  Bruno Haible  <bruno@clisp.org>
12231
12232         pthread_sigmask: Rely on module 'threadlib'.
12233         * modules/pthread_sigmask (Depends-on): Add threadlib.
12234         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12235         is defined.
12236
12237 2011-07-12  Bruno Haible  <bruno@clisp.org>
12238
12239         regex: Depend on module 'strcase'.
12240         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12241
12242 2011-07-12  Jim Meyering  <meyering@redhat.com>
12243
12244         warn-on-use: fix typo in file name
12245         * modules/snippet/warn-on-use (Files): Correct file name:
12246         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12247
12248 2011-07-12  Bruno Haible  <bruno@clisp.org>
12249
12250         strings: Document module.
12251         * doc/posix-headers/strings.texi: Mention module 'strings'.
12252
12253 2011-07-12  Bruno Haible  <bruno@clisp.org>
12254
12255         Rename module '_Noreturn' to 'snippet/_Noreturn'.
12256         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
12257         (Files, Makefile.am): Update.
12258         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
12259         * modules/stdlib (Depends-on): Update.
12260
12261 2011-07-12  Bruno Haible  <bruno@clisp.org>
12262
12263         * NEWS: Mention the changes.
12264
12265         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12266         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12267         (Files, Makefile.am): Update.
12268         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12269         * modules/arpa_inet (Depends-on): Update.
12270         * modules/ctype (Depends-on): Update.
12271         * modules/dirent (Depends-on): Update.
12272         * modules/fcntl-h (Depends-on): Update.
12273         * modules/glob (Depends-on): Update.
12274         * modules/iconv-h (Depends-on): Update.
12275         * modules/inttypes-incomplete (Depends-on): Update.
12276         * modules/langinfo (Depends-on): Update.
12277         * modules/locale (Depends-on): Update.
12278         * modules/math (Depends-on): Update.
12279         * modules/netdb (Depends-on): Update.
12280         * modules/poll-h (Depends-on): Update.
12281         * modules/pty (Depends-on): Update.
12282         * modules/search (Depends-on): Update.
12283         * modules/signal (Depends-on): Update.
12284         * modules/spawn (Depends-on): Update.
12285         * modules/stdio (Depends-on): Update.
12286         * modules/stdlib (Depends-on): Update.
12287         * modules/string (Depends-on): Update.
12288         * modules/strings (Depends-on): Update.
12289         * modules/sys_file (Depends-on): Update.
12290         * modules/sys_ioctl (Depends-on): Update.
12291         * modules/sys_select (Depends-on): Update.
12292         * modules/sys_socket (Depends-on): Update.
12293         * modules/sys_stat (Depends-on): Update.
12294         * modules/sys_time (Depends-on): Update.
12295         * modules/sys_times (Depends-on): Update.
12296         * modules/sys_utsname (Depends-on): Update.
12297         * modules/sys_wait (Depends-on): Update.
12298         * modules/termios (Depends-on): Update.
12299         * modules/time (Depends-on): Update.
12300         * modules/unistd (Depends-on): Update.
12301         * modules/wchar (Depends-on): Update.
12302         * modules/wctype-h (Depends-on): Update.
12303         * MODULES.html.sh (Support for building libraries and executables):
12304         Update.
12305
12306         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12307         * modules/snippet/unused-parameter: Renamed from
12308         modules/unused-parameter.
12309         (Files, Makefile.am): Update.
12310         * build-aux/snippet/unused-parameter.h: Renamed from
12311         build-aux/unused-parameter.h.
12312         * modules/selinux-h (Depends-on): Update.
12313         * modules/unistr/base (Depends-on): Update.
12314         * MODULES.html.sh (Core language properties): Update.
12315
12316         Rename module 'link-warning' to 'snippet/link-warning'.
12317         * modules/snippet/link-warning: Renamed from modules/link-warning.
12318         (Files, Makefile.am): Update.
12319         * build-aux/snippet/link-warning.h: Renamed from
12320         build-aux/link-warning.h.
12321         * MODULES.html.sh (Support for building libraries and executables):
12322         Update.
12323
12324         Rename module 'c++defs' to 'snippet/c++defs'.
12325         * modules/snippet/c++defs: Renamed from modules/c++defs.
12326         (Files, Makefile.am): Update.
12327         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12328         * modules/arpa_inet (Depends-on): Update.
12329         * modules/ctype (Depends-on): Update.
12330         * modules/dirent (Depends-on): Update.
12331         * modules/fcntl-h (Depends-on): Update.
12332         * modules/glob (Depends-on): Update.
12333         * modules/iconv-h (Depends-on): Update.
12334         * modules/langinfo (Depends-on): Update.
12335         * modules/locale (Depends-on): Update.
12336         * modules/math (Depends-on): Update.
12337         * modules/netdb (Depends-on): Update.
12338         * modules/poll-h (Depends-on): Update.
12339         * modules/pty (Depends-on): Update.
12340         * modules/search (Depends-on): Update.
12341         * modules/signal (Depends-on): Update.
12342         * modules/spawn (Depends-on): Update.
12343         * modules/stdio (Depends-on): Update.
12344         * modules/stdlib (Depends-on): Update.
12345         * modules/string (Depends-on): Update.
12346         * modules/strings (Depends-on): Update.
12347         * modules/sys_ioctl (Depends-on): Update.
12348         * modules/sys_select (Depends-on): Update.
12349         * modules/sys_socket (Depends-on): Update.
12350         * modules/sys_stat (Depends-on): Update.
12351         * modules/sys_time (Depends-on): Update.
12352         * modules/sys_wait (Depends-on): Update.
12353         * modules/termios (Depends-on): Update.
12354         * modules/time (Depends-on): Update.
12355         * modules/unistd (Depends-on): Update.
12356         * modules/wchar (Depends-on): Update.
12357         * modules/wctype-h (Depends-on): Update.
12358
12359         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
12360         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
12361         (Files, Makefile.am): Update.
12362         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
12363         * modules/argv-iter (Depends-on): Update.
12364         * modules/arpa_inet (Depends-on): Update.
12365         * modules/dirent (Depends-on): Update.
12366         * modules/fcntl-h (Depends-on): Update.
12367         * modules/fnmatch (Depends-on): Update.
12368         * modules/getopt-posix (Depends-on): Update.
12369         * modules/glob (Depends-on): Update.
12370         * modules/iconv-h (Depends-on): Update.
12371         * modules/inttypes-incomplete (Depends-on): Update.
12372         * modules/locale (Depends-on): Update.
12373         * modules/math (Depends-on): Update.
12374         * modules/netdb (Depends-on): Update.
12375         * modules/search (Depends-on): Update.
12376         * modules/signal (Depends-on): Update.
12377         * modules/spawn (Depends-on): Update.
12378         * modules/stdio (Depends-on): Update.
12379         * modules/stdlib (Depends-on): Update.
12380         * modules/string (Depends-on): Update.
12381         * modules/strings (Depends-on): Update.
12382         * modules/sys_socket (Depends-on): Update.
12383         * modules/sys_stat (Depends-on): Update.
12384         * modules/sys_time (Depends-on): Update.
12385         * modules/sys_times (Depends-on): Update.
12386         * modules/sys_utsname (Depends-on): Update.
12387         * modules/time (Depends-on): Update.
12388         * modules/unistd (Depends-on): Update.
12389         * modules/wchar (Depends-on): Update.
12390         * MODULES.html.sh (Support for building libraries and executables):
12391         Update.
12392
12393 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12394
12395         Improvements on _Noreturn and related modules.
12396
12397         modules/_Exit-tests: test _Noreturn too
12398         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12399         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12400         (main): Use them.
12401
12402         stdnoreturn, stdnoreturn-tests: remove modules
12403         They're not needed here and a bit premature for use elsewhere.  See
12404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12405         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
12406         * tests/test-stdnoreturn.c: Remove files.
12407         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
12408         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
12409         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
12410         and using noreturn.
12411         * modules/openat, modules/sigpipe-die, modules/xalloc:
12412         * modules/xmemdup0, modules/xstrtol:
12413         Remove dependency on stdnoreturn.
12414
12415         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
12416         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
12417         Reparenthesize to avoid GCC warning.
12418         Support Microsoft's syntax.
12419         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
12420
12421         _Noreturn-tests: remove module
12422         * modules/_Noreturn-tests: Remove.
12423         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
12424         * tests/test-_Noreturn.c: Remove.
12425         * tests/test-stdnoreturn.c: Merge from the old
12426         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12427
12428 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12429
12430         _Noreturn, stdnoreturn, and related modules.
12431
12432         * top/maint.mk: Adjust to new noreturn support.
12433         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12434         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12435
12436         xalloc: use stdnoreturn.h
12437         * lib/xalloc.h: Include <stdnoreturn.h>.
12438         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12439         * modules/xalloc (Depends-on): Add stdnoreturn.
12440
12441         xstrtol: use stdnoreturn.h
12442         * lib/xstrtol.h: Include <stdnoreturn.h>.
12443         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12444         * modules/xstrtol (Depends-on): Add stdnoreturn.
12445
12446         xmemdup0: use stdnoreturn.h
12447         * lib/xmemdup0.h: Include <stdnoreturn.h>.
12448         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12449         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
12450
12451         sigpipe-die: use stdnoreturn.h
12452         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
12453         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12454         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12455
12456         openat: use stdnoreturn.h
12457         * lib/openat.h: Include <stdnoreturn.h>.
12458         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12459         * modules/openat (Depends-on): Add stdnoreturn.
12460
12461         * lib/openat-die.c (openat_save_fail): Modernize comment.
12462
12463         * lib/xalloc-die.c (xalloc_die): Modernize comment.
12464
12465         * lib/glthread/thread.h: Modernize comment.
12466
12467         obstack: use _Noreturn
12468         * lib/obstack.c (__attribute__): Remove macro.
12469         (print_and_abort): Use _Noreturn.
12470
12471         c-stack: use _Noreturn
12472         * lib/c-stack.c (die, overflow_handler, segv_handler):
12473         Use _Noreturn rather than __attribute__((noreturn)).
12474
12475         argmatch-tests, exclude_tests: use _Noreturn
12476         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
12477         Remove.
12478         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
12479
12480         stdlib: use _Noreturn
12481         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12482         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12483         * modules/stdlib (Depends-on): Add _Noreturn.
12484         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12485
12486         stdnoreturn-tests: new module
12487         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12488
12489         stdnoreturn: new module
12490         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12491         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12492
12493         _Noreturn-tests: new module
12494         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12495
12496         _Noreturn: new module
12497         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12498         New section, mentioning it.
12499         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12500
12501         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12502
12503 2011-07-11  Eric Blake  <eblake@redhat.com>
12504
12505         ffs: new module
12506         * modules/ffs: New file.
12507         * m4/ffs.m4: Likewise.
12508         * lib/ffs.c: Likewise.
12509         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12510         * modules/strings (Makefile.am): Substitute witness.
12511         (Depends-on): Add c++defs.
12512         * lib/strings.in.h (ffs): Declare.
12513         * modules/ffs-tests: New test file.
12514         * tests/test-ffs.c: Test new module.
12515         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12516         * doc/posix-functions/ffs.texi (ffs): Likewise.
12517
12518         regex: avoid compiler warning
12519         * lib/regex.c (includes): Include <strings.h>, for use of
12520         strcasecmp in regcomp.c.
12521         Reported by Joachim Schmitz.
12522
12523 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12524
12525         stdint: respect system's intmax_t if INTMAX_MAX
12526         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12527         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12528         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12529         long but int64_t is long long, and where we will clash with the
12530         system intmax_t if we override it.  See
12531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12532         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12533         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12534         similarly for UINTMAX_C.
12535
12536 2011-07-08  Bruno Haible  <bruno@clisp.org>
12537
12538         pthread_sigmask tests: Avoid a compiler warning.
12539         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12540         non-zero.
12541
12542         sigprocmask tests: A better way to avoid a compiler warning.
12543         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12544         (main): Complain if system() returns non-zero.
12545         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12546
12547 2011-07-08  Bruno Haible  <bruno@clisp.org>
12548
12549         pthread_sigmask: Work around IRIX bug.
12550         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12551         bug.
12552         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12553         there may be unblocked pending signals.
12554         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12555
12556 2011-07-08  Bruno Haible  <bruno@clisp.org>
12557
12558         pthread_sigmask: Work around Cygwin bug.
12559         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12560         bug.
12561         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12562         the system's pthread_sigmask function.
12563         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12564
12565 2011-07-08  Bruno Haible  <bruno@clisp.org>
12566
12567         pthread_sigmask: Work around bug in single-threaded implementation.
12568         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12569         FreeBSD, HP-UX, Solaris bug.
12570         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12571         * lib/pthread_sigmask.c: Include <stddef.h>.
12572         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12573         the system's pthread_sigmask function.
12574         * modules/pthread_sigmask (configure.ac): Invoke
12575         gl_PREREQ_PTHREAD_SIGMASK.
12576         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12577         HP-UX, Solaris.
12578
12579 2011-07-08  Eric Blake  <eblake@redhat.com>
12580
12581         test-sigprocmask: avoid compiler warning
12582         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12583         * tests/test-sigprocmask.c (main): Use it to silence warning.
12584         Reported by Jim Meyering.
12585
12586         test-snprintf: avoid compiler warning
12587         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12588         * tests/test-vsnprintf.c (main): Likewise.
12589         Reported by Jim Meyering.
12590
12591 2011-07-08  Bruno Haible  <bruno@clisp.org>
12592
12593         Tests for module 'pthread_sigmask'.
12594         * modules/pthread_sigmask-tests: New file.
12595         * tests/test-pthread_sigmask1.c: New file, based on
12596         tests/test-sigprocmask.c.
12597         * tests/test-pthread_sigmask2.c: New file.
12598
12599 2011-07-08  Jim Meyering  <meyering@redhat.com>
12600
12601         test-getopt.h: avoid warning about an unused variable
12602         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12603
12604 2011-07-07  Jim Meyering  <meyering@redhat.com>
12605
12606         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12607         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12608         now that it no longer contains leading TABs.
12609         Remove unused "url=FIXME" statement.
12610
12611 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12612
12613         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12614         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12615         When gl_THREADLIB is not in use, assume that the POSIX sematics
12616         are desired.  This is better for Emacs, which uses POSIX semantics
12617         on GNUish and/or POSIXish platforms, and does not use threads at
12618         all otherwise.
12619
12620         pthread_sigmask: fix typo when testing for libraries
12621         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12622         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12623
12624 2011-07-08  Eric Blake  <eblake@redhat.com>
12625
12626         fts: introduce FTS_NOATIME
12627         * lib/fts_.h (FTS_NOATIME): New bit flag.
12628         (FTS_OPTIONMASK): Adjust.
12629         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12630         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12631
12632 2011-07-08  Bruno Haible  <bruno@clisp.org>
12633
12634         Tests for module 'thread'.
12635         * modules/thread-tests: New file.
12636         * tests/test-thread_self.c: New file.
12637         * tests/test-thread_create.cc: New file.
12638
12639 2011-07-08  Bruno Haible  <bruno@clisp.org>
12640
12641         thread: Avoid gcc warnings when using gl_thread_self().
12642         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12643         'void *'.
12644         (gl_thread_self_pointer): Update.
12645
12646 2011-07-07  Bruno Haible  <bruno@clisp.org>
12647
12648         signal-c++-tests: Check declaration of pthread_sigmask.
12649         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12650         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12651         $(LIB_PTHREAD_SIGMASK).
12652
12653 2011-07-07  Bruno Haible  <bruno@clisp.org>
12654
12655         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12656         * lib/signal.in.h (pthread_sigmask): Override if
12657         REPLACE_PTHREAD_SIGMASK is 1.
12658         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12659         REPLACE_PTHREAD_SIGMASK.
12660         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12661         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12662         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12663         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12664         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12665
12666 2011-07-07  Bruno Haible  <bruno@clisp.org>
12667
12668         pthread_sigmask: Ensure declaration in <signal.h>.
12669         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12670         include <pthread.h>.
12671         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12672         problem.
12673
12674 2011-07-07  Bruno Haible  <bruno@clisp.org>
12675
12676         pthread_sigmask: Document the module.
12677         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12678
12679 2011-07-07  Bruno Haible  <bruno@clisp.org>
12680
12681         pthread_sigmask: Follow gnulib conventions.
12682         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12683         gl_PTHREAD_SIGMASK.
12684         * modules/pthread_sigmask (configure.ac): Update.
12685
12686 2011-07-07  Bruno Haible  <bruno@clisp.org>
12687
12688         pthread_sigmask: Make declaration C++ safe.
12689         * lib/signal.in.h: In two special conditions, just do an #include_next.
12690         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12691         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12692         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12693         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12694         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12695         not REPLACE_PTHREAD_MASK.
12696         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12697         not REPLACE_PTHREAD_MASK.
12698         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12699
12700 2011-07-07  Bruno Haible  <bruno@clisp.org>
12701
12702         pthread_sigmask: Fix return value.
12703         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12704         * lib/pthread_sigmask.c: New file.
12705         * modules/pthread_sigmask (Files): Add it.
12706         (configure.ac): Invoke AC_LIBOBJ.
12707
12708 2011-07-07  Eric Blake  <eblake@redhat.com>
12709
12710         getopt: more portable argv creation
12711         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12712         const, use char arrays rather than strings.
12713         Suggested by Paul Eggert.
12714
12715 2011-07-07  Bruno Haible  <bruno@clisp.org>
12716
12717         Tests for module 'sigprocmask'.
12718         * modules/sigprocmask-tests: New file.
12719         * tests/test-sigprocmask.c: New file.
12720
12721 2011-07-07  Bruno Haible  <bruno@clisp.org>
12722
12723         float tests: Tweak.
12724         * tests/test-float.c (main): Tweak skip message.
12725
12726 2011-07-07  Eric Blake  <eblake@redhat.com>
12727
12728         getopt: avoid compiler warning during configure
12729         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12730         assigning string literals to non-const pointer.
12731
12732         getopt-gnu: avoid crash in glibc getopt
12733         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12734         * tests/test-getopt.h (test_getopt): Enhance test.
12735         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12736         * doc/posix-functions/getopt.texi (getopt): Document it.
12737         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12738         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12739         Likewise.
12740
12741 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12742
12743         getopt: handle W; without long options in getopt [BZ #12922]
12744         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12745         but no long options are defined, just return 'W'.
12746
12747 2011-07-07  Bruno Haible  <bruno@clisp.org>
12748
12749         Avoid literal tabs.
12750         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12751         variable containing a tab instead of a literal tab.
12752         Reported by Jim Meyering.
12753
12754 2011-07-07  Bruno Haible  <bruno@clisp.org>
12755
12756         Comments.
12757         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12758
12759 2011-07-06  Bruno Haible  <bruno@clisp.org>
12760
12761         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12762         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12763         <winsock2.h>.
12764         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12765         lib/sys_socket.in.h.
12766         (close, gethostname): Hide declarations from <winsock2.h>.
12767         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12768         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12769         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12770         (select): Don't override if gnulib's <sys/select.h> was already
12771         included.
12772         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12773         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12774         setsockopt, shutdown, select): Tweak indentation.
12775
12776 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12777
12778         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12779         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12780         in an application that does not use the sys_select module.
12781
12782 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12783
12784         poll: do not return 0 on timeout=-1
12785         * lib/poll.c: Loop with yield if no events occured
12786
12787 2011-07-06  Eric Blake  <eblake@redhat.com>
12788
12789         pthread_sigmask: always replace when not using pthread
12790         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12791         replacement when using some threading other than pthread.  Fix
12792         logic bug.
12793
12794 2011-07-06  Bruno Haible  <bruno@clisp.org>
12795
12796         Comments.
12797         * m4/printf.m4: Update comments about mingw.
12798
12799 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12800
12801         sys_select: define sigset_t more portably
12802         * lib/sys_select.in.h: Always include <sys/types.h>, since
12803         we now need sigset_t and mingw defines it there.
12804         Include <signal.h> before split inclusion guard, to avoid
12805         mishaps on Solaris, whose <signal.h> eventually includes us.
12806         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12807         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12808         which come from ...
12809         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12810         gl_CHECK_TYPE_SIGSET_T.
12811         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12812         does the real work.
12813         * modules/sys_select (Depends-on): Add 'signal'.
12814
12815         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12816         Suggested by Bruno Haible.
12817
12818         pselect: Use pthread_sigmask, not sigprocmask.
12819         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12820         multithreaded apps better than sigprocmask does.
12821         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12822         sigprocmask directly.
12823
12824 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12825
12826         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12827         Don't #undef,  since we don't need any underlying pselect.
12828         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12829         (Depends-on): Add select.
12830         (Link): Add $(LIBSOCKET).
12831         These changes suggested by Bruno Haible.
12832
12833         pselect: document better
12834         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12835         * doc/posix-functions/pselect.texi (pselect): Document new module.
12836
12837         pthread_sigmask: new module
12838         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12839         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12840         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12841         This is done only as a macro; I don't know how well that'll
12842         work for C++.  Move <sys/types.h> include before the include_next,
12843         to avoid mishap on Solaris.
12844         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12845         * modules/signal (Makefile.am): Substitute the check's results.
12846         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12847
12848         test-pselect: new module
12849         * modules/pselect-tests, tests/test-pselect.c: New files.
12850         * tests/test-select.c, tests/test-sys_select-c++.cc:
12851         If TEST_PSELECT is defined, test pselect instead of testing select.
12852
12853         * tests/test-sys_select.c (sigset_t): Test for it, too.
12854         Suggested by Bruno Haible.
12855
12856 2011-07-05  Eric Blake  <eblake@redhat.com>
12857
12858         snprintf: guarantee %1$d, for libintl
12859         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12860         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12861         * doc/posix-functions/snprintf.texi (snprintf): Update.
12862         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12863         * tests/test-snprintf.c (main): Enhance test.
12864         * tests/test-vsnprintf.c (main): Likewise.
12865
12866 2011-07-05  Jim Meyering  <meyering@redhat.com>
12867
12868         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12869         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12870         per Bruno's request, to accommodate this idiom (no space after "#")
12871         even when the function is inside an #if block:
12872         char *
12873         gets (char *s)
12874         #undef gets
12875         {
12876           ...
12877         }
12878
12879 2011-07-04  Jim Meyering  <meyering@redhat.com>
12880
12881         maint: indent with spaces, not TABs, and add a rule to check this
12882         * tests/test-userspec.c: Indent with spaces, not TABs.
12883         * tests/test-argp.c: Likewise.
12884         * tests/test-c-stack2.sh: Likewise.
12885         * tests/test-parse-duration.sh: Likewise
12886         * m4/strtod.m4: Likewise.
12887         * m4/alloca.m4: Likewise.
12888         * m4/pselect.m4: Likewise.
12889         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12890
12891 2011-07-03  Jim Meyering  <meyering@redhat.com>
12892
12893         maint.mk: correct omissions in prohibit_argmatch_without_use check
12894         This rule would mistakenly report that argmatch.h is included without
12895         use even when both the argmatch and invalid_arg macro were used.
12896         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12897         of argmatch and invalid_arg.
12898
12899 2011-07-03  Bruno Haible  <bruno@clisp.org>
12900
12901         Comments about EINTR.
12902         * lib/safe-read.h: Explain the purpose of this module.
12903         * lib/safe-write.h: Likewise.
12904         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12905         module.
12906         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12907         module.
12908         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12909
12910 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12911
12912         xnanosleep: Rewrite to use new dtotimespec module.
12913         It has the conversion code that used to be in xnanosleep.
12914         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12915         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12916         (TIME_T_MAX): Remove.
12917         (xnanosleep): Rewrite in terms of dtotimespec.
12918         * modules/xnanosleep (Depends-on): Add dtotimespec.
12919         Remove intprops, stdbool.
12920
12921         timespec-add, timespec-sub: new modules
12922         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12923         * lib/timespec-add.c, lib/timespec-sub.c:
12924         * modules/timespec-add, modules/timespec-sub: New files.
12925
12926         dtotimespec: new module
12927         * lib/timespec.h (dtotimespec): New decl.
12928         * lib/dtotimespec.c, modules/dtotimespec: New files.
12929
12930         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12931
12932         pselect: new module
12933         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12934         (pselect): New decls.
12935         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12936         since the standard pselect decl uses 'restrict'.
12937         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12938         HAVE_PSELECT, REPLACE_PSELECT.
12939         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12940         HAVE_PSELECT, REPLACE_PSELECT.
12941         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12942
12943         sys_select: don't depend on sys_socket
12944         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12945         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12946         This fix works on GNU and GNU-like platforms, but has not been tested
12947         on native Windows.
12948         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12949         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12950         gl_HEADER_SYS_SOCKET.
12951         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12952         gl_PREREQ_SYS_H_WINSOCK2.
12953
12954 2011-06-29  Eric Blake  <eblake@redhat.com>
12955
12956         pipe2: fix C89 compile problem
12957         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12958         Reported by Bruno Haible.
12959
12960         pipe, pipe2: don't corrupt fd on error
12961         * lib/pipe.c (pipe): Leave fd unchanged on error.
12962         * lib/pipe2.c (pipe2): Likewise.
12963         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12964         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12965
12966 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12967
12968         mmap-anon: do not use regular expressions inadvertently
12969         * m4/mmap-anon.m4: Remove trailing period from strings sought
12970         in the output.
12971
12972 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12973
12974         nanosleep: fix integer overflow problem
12975         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12976         arithmetic wraps around on overflow.
12977
12978         nanosleep: simplify carrying
12979         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12980         first call to the underyling nanosleep, not for the last one.
12981         This doesn't fix any bugs, but it simplifies the computation of
12982         the remaining delay.  Found while auditing integer overflow issues.
12983
12984         dup2: remove test for existence of fcntl
12985         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12986         "#if HAVE_FCNTL", in the configure-time test program.
12987         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12988         and therefore speeds up "configure" a bit.  Found while
12989         adding the dup2 module to Emacs.
12990
12991 2011-06-24  Eric Blake  <eblake@redhat.com>
12992
12993         maint.mk: enhance useless header checks
12994         * top/maint.mk (_sc_header_without_use): Check both include
12995         styles.
12996         (sc_prohibit_assert_without_use)
12997         (sc_prohibit_close_stream_without_use)
12998         (sc_prohibit_getopt_without_use)
12999         (sc_prohibit_quotearg_without_use)
13000         (sc_prohibit_quote_without_use)
13001         (sc_prohibit_long_options_without_use)
13002         (sc_prohibit_inttostr_without_use)
13003         (sc_prohibit_ignore_value_without_use)
13004         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13005         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13006         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13007         (sc_prohibit_hash_pjw_without_use)
13008         (sc_prohibit_safe_read_without_use)
13009         (sc_prohibit_argmatch_without_use)
13010         (sc_prohibit_canonicalize_without_use)
13011         (sc_prohibit_root_dev_ino_without_use)
13012         (sc_prohibit_openat_without_use)
13013         (sc_prohibit_c_ctype_without_use)
13014         (sc_prohibit_signal_without_use)
13015         (sc_prohibit_stdio--_without_use)
13016         (sc_prohibit_stdio-safer_without_use)
13017         (sc_prohibit_strings_without_use)
13018         (sc_prohibit_intprops_without_use)
13019         (sc_prohibit_stddef_without_use)
13020         (sc_prohibit_xfreopen_without_use): Update clients.
13021
13022 2011-06-24  Jim Meyering  <meyering@redhat.com>
13023
13024         syntax-check: keep one maint.mk rule in sync with its header
13025         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13026         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13027         I prefer to avoid temporary files here, so use <(...), but that
13028         is not supported by /bin/sh, so...
13029         (SHELL): Define to /bin/bash.
13030
13031 2011-06-24  Eric Blake  <eblake@redhat.com>
13032
13033         maint.mk: update sc_prohibit_intprops_without_use
13034         * top/maint.mk (_intprops_names): Match recent changes.
13035
13036 2011-06-24  Bruno Haible  <bruno@clisp.org>
13037
13038         strerror-override: No-op tweak.
13039         * lib/strerror-override.h (strerror_override): Reorder conditions,
13040         for consistency with lib/strerror-override.c.
13041
13042 2011-06-23  Eric Blake  <eblake@redhat.com>
13043
13044         maint.mk: test further PATH_MAX issues
13045         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13046         (sc_prohibit_path_max_allocation): ...and also test alloca.
13047         Suggested by Jim Meyering.
13048
13049 2011-06-22  Eric Blake  <eblake@redhat.com>
13050
13051         maint.mk: add syntax-check to avoid char[PATH_MAX]
13052         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13053
13054         stat: be robust to PATH_MAX definition
13055         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13056         * modules/stat (Depends-on): Add verify.
13057
13058         link: work around IRIX bug
13059         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13060         * lib/link.c (rpl_link): Work around it.
13061         * tests/test-link.h (test_link): Enhance test.
13062         * doc/posix-functions/link.texi (link): Document the bug.
13063
13064         getopt: silence clang warning
13065         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13066         dereference.
13067         Reported by Gustavo Martin Domato.
13068
13069 2011-06-22  Jim Meyering  <meyering@redhat.com>
13070
13071         bootstrap: do not insert a blank line into each .gitignore file
13072         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13073
13074 2011-06-21  Eric Blake  <eblake@redhat.com>
13075
13076         perror: test for output mismatch
13077         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13078         perror on IRIX.
13079
13080         strerror_r: fix OpenBSD behavior on out-of-range
13081         * lib/strerror_r.c (strerror_r): Always use maximal string.
13082         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13083
13084         strerror_r: fix OpenBSD behavior on 0
13085         * lib/strerror-override.c (strerror_override): Also override 0
13086         when needed.
13087         * lib/strerror-override.h (strerror_override): Likewise.
13088         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13089         earlier.
13090         * lib/strerror_r.c (strerror_r): Likewise.
13091         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13092         behavior...
13093         (gl_FUNC_STRERROR_0): ...into new macro.
13094         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13095         is overridden.
13096         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13097         * modules/strerror-override (Files): Add strerror.m4.
13098         (configure.ac): Also provide override for 0 when needed.
13099         * doc/posix-functions/strerror.texi (strerror): Document this.
13100         * doc/posix-functions/perror.texi (perror): Likewise.
13101
13102         perror: adjust array size
13103         * modules/perror (Depends-on): Add strerror-override.
13104         * lib/perror.c (perror): Use it to avoid magic number.
13105
13106         strerror-override: reduce size
13107         * lib/strerror-override.c (strerror_override): Use fewer lines.
13108
13109 2011-06-20  Bruno Haible  <bruno@clisp.org>
13110
13111         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13112         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13113
13114 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13115
13116         alloca: port to compilers that can optimize like GCC 4.6.0
13117         * lib/alloca.c (find_stack_direction): New signature, taken from
13118         Autoconf git.  This works with GCC 4.6.0.  This code should never
13119         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13120         be used with other compilers that optimize as well as GCC 4.6.0 does.
13121         (alloca): Adjust to new signature.
13122         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13123         New macro, which patches Autoconf in a similar way.
13124
13125         c-stack: stop worrying about stack direction
13126         * lib/c-stack.c (find_stack_direction): Remove.
13127         (segv_handler): Don't worry about stack direction growth, as it's
13128         too much of a pain to configure this correctly, given how compilers
13129         are optimizing-away our stack-growth detection code.  Instead, assume
13130         that any access to just before or just after the stack is OK.
13131         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13132         Don't require AC_FUNC_ALLOCA; no longer needed.
13133
13134 2011-06-20  Eric Blake  <eblake@redhat.com>
13135
13136         test-stat: don't allocate PATH_MAX bytes
13137         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13138         PATH_MAX-sized buffer.
13139         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13140         * modules/stat-tests (Depends-on): Likewise.
13141         * tests/test-fstatat.c (includes): Drop pathmax.h.
13142         * tests/test-stat.c (includes): Likewise.
13143         Reported by Bruno Haible.
13144
13145 2011-06-20  Bruno Haible  <bruno@clisp.org>
13146
13147         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13148         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13149         * lib/float.c: New file.
13150         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13151         REPLACE_FLOAT_LDBL.
13152         * modules/float (Files): Add lib/float.c.
13153         (configure.ac): Invoke AC_LIBOBJ.
13154         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13155
13156 2011-06-20  Bruno Haible  <bruno@clisp.org>
13157
13158         Tests for module 'float'.
13159         * modules/float-tests: New file.
13160         * tests/test-float.c: New file.
13161
13162 2011-06-19  Bruno Haible  <bruno@clisp.org>
13163
13164         isinf: Coding style.
13165         * lib/isinf.c: Use GNU coding style.
13166
13167 2011-06-19  Bruno Haible  <bruno@clisp.org>
13168
13169         linkat test: Avoid test failure on AIX 7.1.
13170         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13171         * tests/test-link.h (test_link): Likewise.
13172
13173 2011-06-19  Bruno Haible  <bruno@clisp.org>
13174
13175         pread test: Avoid test failure on OpenBSD 4.9.
13176         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13177
13178 2011-06-19  Bruno Haible  <bruno@clisp.org>
13179
13180         sprintf-posix: Fix test failure on AIX 7.1.
13181         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13182         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13183         on AIX.
13184         * doc/posix-functions/fprintf.texi: Likewise.
13185         * doc/posix-functions/printf.texi: Likewise.
13186         * doc/posix-functions/snprintf.texi: Likewise.
13187         * doc/posix-functions/sprintf.texi: Likewise.
13188         * doc/posix-functions/vdprintf.texi: Likewise.
13189         * doc/posix-functions/vfprintf.texi: Likewise.
13190         * doc/posix-functions/vprintf.texi: Likewise.
13191         * doc/posix-functions/vsnprintf.texi: Likewise.
13192         * doc/posix-functions/vsprintf.texi: Likewise.
13193
13194 2011-06-19  Bruno Haible  <bruno@clisp.org>
13195
13196         roundl-ieee: Fix test failure on AIX 7.1.
13197         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13198         * doc/posix-functions/roundl.texi: Mention problem with negative
13199         arguments.
13200
13201 2011-06-19  Bruno Haible  <bruno@clisp.org>
13202
13203         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13204         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13205         * doc/posix-functions/round.texi: Mention problem with negative
13206         arguments.
13207         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13208
13209 2011-06-19  Bruno Haible  <bruno@clisp.org>
13210
13211         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13212         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13213         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13214         * doc/posix-functions/roundf.texi: Mention problem with negative
13215         arguments.
13216         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13217
13218 2011-06-19  Bruno Haible  <bruno@clisp.org>
13219
13220         ceilf-ieee: Work around bug on MacOS X 10.5.
13221         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13222
13223         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13224         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13225         IEEE compliant, avoid compiler optimizations.
13226         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13227         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13228         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13229         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13230         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13231         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13232         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13233         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13234         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13235         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13236
13237 2011-06-19  Bruno Haible  <bruno@clisp.org>
13238
13239         ceilf-ieee: Work around bug on AIX 7.1.
13240         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13241         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13242
13243 2011-06-19  Bruno Haible  <bruno@clisp.org>
13244
13245         ceil-ieee: Work around bug on AIX 7.1.
13246         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13247         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13248
13249 2011-06-18  Bruno Haible  <bruno@clisp.org>
13250
13251         fsync test: Avoid test failure on MacOS X and AIX.
13252         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13253         EINVAL.
13254
13255 2011-06-18  Bruno Haible  <bruno@clisp.org>
13256
13257         openat, fdopendir tests: Fix link errors.
13258         * modules/openat-tests (Depends-on): Add progname.
13259         * modules/fdopendir-tests (Depends-on): Likewise.
13260         * tests/test-fchownat.c: Include progname.h.
13261         (main): Call set_program_name.
13262         * tests/test-fstatat.c: Include progname.h.
13263         (main): Call set_program_name.
13264         * tests/test-mkdirat.c: Include progname.h.
13265         (main): Call set_program_name.
13266         * tests/test-openat.c: Include progname.h.
13267         (main): Call set_program_name.
13268         * tests/test-unlinkat.c: Include progname.h.
13269         (main): Call set_program_name.
13270         * tests/test-fdopendir.c: Include progname.h.
13271         (main): Call set_program_name.
13272
13273 2011-06-18  Bruno Haible  <bruno@clisp.org>
13274
13275         Doc update.
13276         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13277         HP-UX.
13278         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13279
13280 2011-06-18  Bruno Haible  <bruno@clisp.org>
13281
13282         getcwd tests: Avoid compilation error on HP-UX 11.31.
13283         * modules/getcwd-tests (Depends-on): Add pathmax.
13284         * tests/test-getcwd.c: Include pathmax.h.
13285
13286 2011-06-18  Bruno Haible  <bruno@clisp.org>
13287
13288         isfinite, isinf: Fix link error on AIX 6 and 7.
13289         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13290         needed, also test the macro with a 'float' argument.
13291         * m4/isinf.m4 (gl_ISINF): Likewise.
13292
13293 2011-06-18  Bruno Haible  <bruno@clisp.org>
13294
13295         getloadavg: Don't clobber LIBS. Regression from previous commit.
13296         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13297         AC_CHECK_LIB from here...
13298         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13299         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13300         gl_func_getloadavg_done.
13301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13302
13303 2011-06-18  Bruno Haible  <bruno@clisp.org>
13304
13305         clean-temp: Improve documentation.
13306         * lib/clean-temp.h: Explain better how to use this module.
13307         Reported by John Darrington <john@darrington.wattle.id.au>.
13308
13309 2011-06-17  Bruno Haible  <bruno@clisp.org>
13310
13311         pread, pwrite: Avoid cc warning on AIX.
13312         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13313         (pwrite): Likewise.
13314
13315 2011-06-17  Bruno Haible  <bruno@clisp.org>
13316
13317         spawn-pipe tests: Fix link error.
13318         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13319         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13320
13321 2011-06-17  Bruno Haible  <bruno@clisp.org>
13322
13323         Tests: Remove unnecessary dependency.
13324         * modules/canonicalize-tests (Depends-on): Remove progname.
13325         * modules/chown-tests (Depends-on): Likewise.
13326         * modules/dirname-tests (Depends-on): Likewise.
13327         * modules/fdopendir-tests (Depends-on): Likewise.
13328         * modules/fdutimensat-tests (Depends-on): Likewise.
13329         * modules/hash-tests (Depends-on): Likewise.
13330         * modules/lchown-tests (Depends-on): Likewise.
13331         * modules/linkat-tests (Depends-on): Likewise.
13332         * modules/renameat-tests (Depends-on): Likewise.
13333         * modules/spawn-pipe-tests (Depends-on): Likewise.
13334         * modules/utimensat-tests (Depends-on): Likewise.
13335
13336 2011-06-17  Bruno Haible  <bruno@clisp.org>
13337
13338         spawn-pipe tests: Fix link error.
13339         * tests/test-spawn-pipe-child.c: Undefine fflush.
13340
13341 2011-06-17  Bruno Haible  <bruno@clisp.org>
13342
13343         Fix tests link errors.
13344         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
13345         * modules/chown-tests (Makefile.am): Don't link test-chown with
13346         LIBINTL.
13347         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
13348         LIBINTL.
13349         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
13350         LIBINTL.
13351         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
13352         LIBINTL.
13353
13354 2011-06-16  Bruno Haible  <bruno@clisp.org>
13355
13356         crypto/gc-sha1: Fix recent regression.
13357         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
13358         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
13359
13360         crypto/gc-md5: Fix recent regression.
13361         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
13362
13363         crypto/gc-md4: Fix recent regression.
13364         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
13365         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
13366
13367         crypto/gc-arctwo: Fix recent regression.
13368         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
13369         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
13370
13371         crypto/gc-rijndael: Fix recent regression.
13372         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
13373         (configure.ac): Invoke AC_LIBOBJ here.
13374         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
13375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13376
13377         crypto/gc-hmac-sha1: Fix recent regression.
13378         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
13379         (configure.ac): Invoke AC_LIBOBJ here.
13380         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
13381         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13382
13383         crypto/gc-hmac-md5: Fix recent regression.
13384         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
13385         (configure.ac): Invoke AC_LIBOBJ here.
13386         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13387         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13388
13389         crypto/gc-des: Fix recent regression.
13390         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13391         (configure.ac): Invoke AC_LIBOBJ here.
13392         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13393         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13394
13395         crypto/gc-arcfour: Fix recent regression.
13396         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13397         (configure.ac): Invoke AC_LIBOBJ here.
13398         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13399         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13400
13401 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13402
13403         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13404         After the 2011-05-21 change, this macro requires
13405         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
13406         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13407
13408 2011-06-16  Bruno Haible  <bruno@clisp.org>
13409
13410         fprintftime: Move AC_LIBOBJ invocations to module description.
13411         * m4/fprintftime.m4: Remove file.
13412         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
13413         (configure.ac): Remove gl_FPRINTFTIME call.
13414         (Makefile.am): Augment lib_SOURCES.
13415         Reported by Jim Meyering.
13416
13417 2011-06-16  Bruno Haible  <bruno@clisp.org>
13418
13419         tmpfile-safer: Finish 2011-05-23 commit.
13420         * m4/stdio-safer.m4: Really remove file.
13421         Reported by Jim Meyering.
13422
13423 2011-06-16  Bruno Haible  <bruno@clisp.org>
13424
13425         syntax-check: Fix typo.
13426         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13427         printf-posix.m4.
13428         Reported by Jim Meyering.
13429
13430 2011-06-13  Jim Meyering  <meyering@redhat.com>
13431
13432         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13433         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13434
13435 2011-05-23  Bruno Haible  <bruno@clisp.org>
13436
13437         yesno: Move AC_LIBOBJ invocations to module description.
13438         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
13439         * modules/yesno (Makefile.am): Augment lib_SOURCES.
13440
13441 2011-05-23  Bruno Haible  <bruno@clisp.org>
13442
13443         xstrtol: Move AC_LIBOBJ invocations to module description.
13444         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
13445         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
13446
13447 2011-05-23  Bruno Haible  <bruno@clisp.org>
13448
13449         xstrtold: Move AC_LIBOBJ invocations to module description.
13450         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
13451         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
13452
13453 2011-05-23  Bruno Haible  <bruno@clisp.org>
13454
13455         xstrtod: Move AC_LIBOBJ invocations to module description.
13456         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
13457         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
13458
13459 2011-05-23  Bruno Haible  <bruno@clisp.org>
13460
13461         xnanosleep: Move AC_LIBOBJ invocations to module description.
13462         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
13463         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
13464
13465 2011-05-23  Bruno Haible  <bruno@clisp.org>
13466
13467         xgetcwd: Move AC_LIBOBJ invocations to module description.
13468         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
13469         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
13470
13471 2011-05-23  Bruno Haible  <bruno@clisp.org>
13472
13473         xalloc: Move AC_LIBOBJ invocations to module description.
13474         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
13475         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
13476
13477 2011-05-23  Bruno Haible  <bruno@clisp.org>
13478
13479         write-any-file: Move AC_LIBOBJ invocations to module description.
13480         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
13481         invocation.
13482         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13483
13484 2011-05-23  Bruno Haible  <bruno@clisp.org>
13485
13486         utimens: Move AC_LIBOBJ invocations to module description.
13487         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13488         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13489
13490 2011-05-23  Bruno Haible  <bruno@clisp.org>
13491
13492         utimecmp: Move AC_LIBOBJ invocations to module description.
13493         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13494         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13495
13496 2011-05-23  Bruno Haible  <bruno@clisp.org>
13497
13498         userspec: Move AC_LIBOBJ invocations to module description.
13499         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13500         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13501
13502 2011-05-23  Bruno Haible  <bruno@clisp.org>
13503
13504         unlinkdir: Move AC_LIBOBJ invocations to module description.
13505         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13506         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13507
13508 2011-05-23  Bruno Haible  <bruno@clisp.org>
13509
13510         unistd-safer: Move AC_LIBOBJ invocations to module description.
13511         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13512         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13513
13514 2011-05-23  Bruno Haible  <bruno@clisp.org>
13515
13516         tempname: Move AC_LIBOBJ invocations to module description.
13517         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13518         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13519
13520 2011-05-23  Bruno Haible  <bruno@clisp.org>
13521
13522         strftime: Move AC_LIBOBJ invocations to module description.
13523         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13524         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13525
13526 2011-05-23  Bruno Haible  <bruno@clisp.org>
13527
13528         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13529         * m4/stdlib-safer.m4: Remove file.
13530         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13531         (configure.ac): Remove gl_STDLIB_SAFER call.
13532         (Makefile.am): Augment lib_SOURCES.
13533
13534 2011-05-23  Bruno Haible  <bruno@clisp.org>
13535
13536         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13537         * m4/stdio-safer.m4: Remove file.
13538         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13539         (configure.ac): Remove gl_TMPFILE_SAFER call.
13540         (Makefile.am): Augment lib_SOURCES.
13541
13542 2011-05-23  Bruno Haible  <bruno@clisp.org>
13543
13544         popen-safer: Move AC_LIBOBJ invocations to module description.
13545         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13546         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13547         (configure.ac): Remove gl_POPEN_SAFER call.
13548         (Makefile.am): Augment lib_SOURCES.
13549
13550 2011-05-23  Bruno Haible  <bruno@clisp.org>
13551
13552         freopen-safer: Move AC_LIBOBJ invocations to module description.
13553         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13554         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13555         (configure.ac): Remove gl_FREOPEN_SAFER call.
13556         (Makefile.am): Augment lib_SOURCES.
13557
13558 2011-05-23  Bruno Haible  <bruno@clisp.org>
13559
13560         fopen-safer: Move AC_LIBOBJ invocations to module description.
13561         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13562         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13563         (configure.ac): Remove gl_FOPEN_SAFER call.
13564         (Makefile.am): Augment lib_SOURCES.
13565
13566 2011-05-23  Bruno Haible  <bruno@clisp.org>
13567
13568         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13569         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13570         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13571
13572 2011-05-23  Bruno Haible  <bruno@clisp.org>
13573
13574         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13575         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13576         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13577
13578 2011-05-23  Bruno Haible  <bruno@clisp.org>
13579
13580         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13581         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13582         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13583
13584 2011-05-23  Bruno Haible  <bruno@clisp.org>
13585
13586         settime: Move AC_LIBOBJ invocations to module description.
13587         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13588         * modules/settime (Makefile.am): Augment lib_SOURCES.
13589
13590 2011-05-23  Bruno Haible  <bruno@clisp.org>
13591
13592         savedir: Move AC_LIBOBJ invocations to module description.
13593         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13594         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13595
13596 2011-05-23  Bruno Haible  <bruno@clisp.org>
13597
13598         save-cwd: Move AC_LIBOBJ invocations to module description.
13599         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13600         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13601
13602 2011-05-23  Bruno Haible  <bruno@clisp.org>
13603
13604         same: Move AC_LIBOBJ invocations to module description.
13605         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13606         * modules/same (Makefile.am): Augment lib_SOURCES.
13607
13608 2011-05-23  Bruno Haible  <bruno@clisp.org>
13609
13610         safe-write: Move AC_LIBOBJ invocations to module description.
13611         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13612         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13613         instead of gl_SAFE_WRITE.
13614         (Makefile.am): Augment lib_SOURCES.
13615
13616 2011-05-23  Bruno Haible  <bruno@clisp.org>
13617
13618         safe-read: Move AC_LIBOBJ invocations to module description.
13619         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13620         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13621         of gl_SAFE_READ.
13622         (Makefile.am): Augment lib_SOURCES.
13623
13624 2011-05-23  Bruno Haible  <bruno@clisp.org>
13625
13626         safe-alloc: Move AC_LIBOBJ invocations to module description.
13627         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13628         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13629
13630 2011-05-23  Bruno Haible  <bruno@clisp.org>
13631
13632         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13633         * m4/rijndael.m4: Remove file.
13634         * modules/crypto/rijndael (Files): Remove it.
13635         (configure.ac): Remove gl_RIJNDAEL call.
13636         (Makefile.am): Augment lib_SOURCES.
13637
13638 2011-05-23  Bruno Haible  <bruno@clisp.org>
13639
13640         readtokens: Move AC_LIBOBJ invocations to module description.
13641         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13642         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13643
13644 2011-05-23  Bruno Haible  <bruno@clisp.org>
13645
13646         read-file: Move AC_LIBOBJ invocations to module description.
13647         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13648         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13649         of gl_FUNC_READ_FILE.
13650         (Makefile.am): Augment lib_SOURCES.
13651
13652 2011-05-23  Bruno Haible  <bruno@clisp.org>
13653
13654         quotearg: Move AC_LIBOBJ invocations to module description.
13655         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13656         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13657
13658 2011-05-23  Bruno Haible  <bruno@clisp.org>
13659
13660         quote: Move AC_LIBOBJ invocations to module description.
13661         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13662         * modules/quote (Makefile.am): Augment lib_SOURCES.
13663
13664 2011-05-23  Bruno Haible  <bruno@clisp.org>
13665
13666         posixver: Move AC_LIBOBJ invocations to module description.
13667         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13668         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13669
13670 2011-05-23  Bruno Haible  <bruno@clisp.org>
13671
13672         posixtm: Move AC_LIBOBJ invocations to module description.
13673         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13674         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13675
13676 2011-05-23  Bruno Haible  <bruno@clisp.org>
13677
13678         physmem: Move AC_LIBOBJ invocations to module description.
13679         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13680         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13681
13682 2011-05-23  Bruno Haible  <bruno@clisp.org>
13683
13684         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13685         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13686         invocation.
13687         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13688
13689 2011-05-23  Bruno Haible  <bruno@clisp.org>
13690
13691         mpsort: Move AC_LIBOBJ invocations to module description.
13692         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13693         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13694
13695 2011-05-23  Bruno Haible  <bruno@clisp.org>
13696
13697         modechange: Move AC_LIBOBJ invocations to module description.
13698         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13699         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13700
13701 2011-05-23  Bruno Haible  <bruno@clisp.org>
13702
13703         mkdir-p: Move AC_LIBOBJ invocations to module description.
13704         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13705         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13706
13707 2011-05-23  Bruno Haible  <bruno@clisp.org>
13708
13709         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13710         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13711         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13712
13713 2011-05-23  Bruno Haible  <bruno@clisp.org>
13714
13715         mgetgroups: Move AC_LIBOBJ invocations to module description.
13716         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13717         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13718
13719 2011-05-23  Bruno Haible  <bruno@clisp.org>
13720
13721         memxor: Move AC_LIBOBJ invocations to module description.
13722         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13723         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13724
13725 2011-05-23  Bruno Haible  <bruno@clisp.org>
13726
13727         memcoll: Move AC_LIBOBJ invocations to module description.
13728         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13729         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13730
13731 2011-05-23  Bruno Haible  <bruno@clisp.org>
13732
13733         memcasecmp: Move AC_LIBOBJ invocations to module description.
13734         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13735         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13736
13737 2011-05-23  Bruno Haible  <bruno@clisp.org>
13738
13739         crypto/md5: Move AC_LIBOBJ invocations to module description.
13740         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13741         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13742
13743 2011-05-23  Bruno Haible  <bruno@clisp.org>
13744
13745         crypto/md4: Move AC_LIBOBJ invocations to module description.
13746         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13747         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13748
13749 2011-05-23  Bruno Haible  <bruno@clisp.org>
13750
13751         crypto/md2: Move AC_LIBOBJ invocations to module description.
13752         * m4/md2.m4: Remove file.
13753         * modules/crypto/md2 (Files): Remove it.
13754         (configure.ac): Remove gl_MD2 call.
13755         (Makefile.am): Augment lib_SOURCES.
13756
13757 2011-05-23  Bruno Haible  <bruno@clisp.org>
13758
13759         long-options: Move AC_LIBOBJ invocations to module description.
13760         * m4/long-options.m4: Remove file.
13761         * modules/long-options (Files): Remove it.
13762         (configure.ac): Remove gl_LONG_OPTIONS call.
13763         (Makefile.am): Augment lib_SOURCES.
13764
13765 2011-05-23  Bruno Haible  <bruno@clisp.org>
13766
13767         i-ring: Move AC_LIBOBJ invocations to module description.
13768         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13769         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13770
13771 2011-05-23  Bruno Haible  <bruno@clisp.org>
13772
13773         idcache: Move AC_LIBOBJ invocations to module description.
13774         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13775         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13776
13777 2011-05-23  Bruno Haible  <bruno@clisp.org>
13778
13779         human: Move AC_LIBOBJ invocations to module description.
13780         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13781         * modules/human (Makefile.am): Augment lib_SOURCES.
13782
13783 2011-05-23  Bruno Haible  <bruno@clisp.org>
13784
13785         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13786         * m4/hmac-sha1.m4: Remove file.
13787         * modules/crypto/hmac-sha1 (Files): Remove it.
13788         (configure.ac): Remove gl_HMAC_SHA1 call.
13789         (Makefile.am): Augment lib_SOURCES.
13790
13791 2011-05-23  Bruno Haible  <bruno@clisp.org>
13792
13793         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13794         * m4/hmac-md5.m4: Remove file.
13795         * modules/crypto/hmac-md5 (Files): Remove it.
13796         (configure.ac): Remove gl_HMAC_MD5 call.
13797         (Makefile.am): Augment lib_SOURCES.
13798
13799 2011-05-23  Bruno Haible  <bruno@clisp.org>
13800
13801         hash: Move AC_LIBOBJ invocations to module description.
13802         * m4/hash.m4: Remove file.
13803         * modules/hash (Files): Remove it.
13804         (configure.ac): Remove gl_HASH call.
13805         (Makefile.am): Augment lib_SOURCES.
13806
13807 2011-05-23  Bruno Haible  <bruno@clisp.org>
13808
13809         hard-locale: Move AC_LIBOBJ invocations to module description.
13810         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13811         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13812
13813 2011-05-23  Bruno Haible  <bruno@clisp.org>
13814
13815         getugroups: Move AC_LIBOBJ invocations to module description.
13816         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13817         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13818
13819 2011-05-23  Bruno Haible  <bruno@clisp.org>
13820
13821         gettime: Move AC_LIBOBJ invocations to module description.
13822         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13823         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13824
13825 2011-05-23  Bruno Haible  <bruno@clisp.org>
13826
13827         getndelim2: Move AC_LIBOBJ invocations to module description.
13828         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13829         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13830
13831 2011-05-23  Bruno Haible  <bruno@clisp.org>
13832
13833         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13834         * m4/gc-pbkdf2-sha1.m4: Remove file.
13835         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13836         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13837         (Makefile.am): Augment lib_SOURCES.
13838
13839 2011-05-23  Bruno Haible  <bruno@clisp.org>
13840
13841         fts: Move AC_LIBOBJ invocations to module description.
13842         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13843         * modules/fts (configure.ac): ... to here.
13844
13845 2011-05-23  Bruno Haible  <bruno@clisp.org>
13846
13847         file-type: Move AC_LIBOBJ invocations to module description.
13848         * m4/file-type.m4: Remove file.
13849         * modules/file-type (Files): Remove it.
13850         (configure.ac): Remove gl_FILE_TYPE call.
13851         (Makefile.am): Augment lib_SOURCES.
13852
13853 2011-05-23  Bruno Haible  <bruno@clisp.org>
13854
13855         filenamecat*: Respect rules for use of AC_LIBOBJ.
13856         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13857         Remove AC_LIBOBJ invocation.
13858         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13859         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13860
13861 2011-05-23  Bruno Haible  <bruno@clisp.org>
13862
13863         filemode: Move AC_LIBOBJ invocations to module description.
13864         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13865         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13866
13867 2011-05-23  Bruno Haible  <bruno@clisp.org>
13868
13869         openat-safer: Move AC_LIBOBJ invocations to module description.
13870         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13871         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13872
13873 2011-05-23  Bruno Haible  <bruno@clisp.org>
13874
13875         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13876         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13877         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13878
13879 2011-05-23  Bruno Haible  <bruno@clisp.org>
13880
13881         exclude: Move AC_LIBOBJ invocations to module description.
13882         * m4/exclude.m4: Remove file.
13883         * modules/exclude (Files): Remove it.
13884         (configure.ac): Remove gl_EXCLUDE call.
13885         (Makefile.am): Augment lib_SOURCES.
13886
13887 2011-05-23  Bruno Haible  <bruno@clisp.org>
13888
13889         dirname*: Respect rules for use of AC_LIBOBJ.
13890         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13891         invocations.
13892         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13893         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13894
13895 2011-05-23  Bruno Haible  <bruno@clisp.org>
13896
13897         dirent-safer: Move AC_LIBOBJ invocations to module description.
13898         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13899         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13900
13901 2011-05-23  Bruno Haible  <bruno@clisp.org>
13902
13903         crypto/des: Move AC_LIBOBJ invocations to module description.
13904         * m4/des.m4: Remove file.
13905         * modules/crypto/des (Files): Remove it.
13906         (configure.ac): Remove gl_DES call.
13907         (Makefile.am): Augment lib_SOURCES.
13908
13909 2011-05-23  Bruno Haible  <bruno@clisp.org>
13910
13911         cycle-check: Move AC_LIBOBJ invocations to module description.
13912         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13913         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13914
13915 2011-05-23  Bruno Haible  <bruno@clisp.org>
13916
13917         c-strtold: Move AC_LIBOBJ invocations to module description.
13918         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13919         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13920
13921 2011-05-23  Bruno Haible  <bruno@clisp.org>
13922
13923         c-strtod: Move AC_LIBOBJ invocations to module description.
13924         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13925         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13926
13927 2011-05-23  Bruno Haible  <bruno@clisp.org>
13928
13929         crc: Move AC_LIBOBJ invocations to module description.
13930         * m4/crc.m4: Remove file.
13931         * modules/crc (Files): Remove it.
13932         (configure.ac): Remove gl_CRC call.
13933         (Makefile.am): Augment lib_SOURCES.
13934
13935 2011-05-23  Bruno Haible  <bruno@clisp.org>
13936
13937         close-stream: Move AC_LIBOBJ invocations to module description.
13938         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13939         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13940
13941 2011-05-23  Bruno Haible  <bruno@clisp.org>
13942
13943         closeout: Move AC_LIBOBJ invocations to module description.
13944         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13945         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13946
13947 2011-05-23  Bruno Haible  <bruno@clisp.org>
13948
13949         closein: Move AC_LIBOBJ invocations to module description.
13950         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13951         * modules/closein (Makefile.am): Augment lib_SOURCES.
13952
13953 2011-05-23  Bruno Haible  <bruno@clisp.org>
13954
13955         cloexec: Move AC_LIBOBJ invocations to module description.
13956         * m4/cloexec.m4: Remove file.
13957         * modules/cloexec (Files): Remove it.
13958         (configure.ac): Remove gl_CLOEXEC call.
13959         (Makefile.am): Augment lib_SOURCES.
13960
13961 2011-05-23  Bruno Haible  <bruno@clisp.org>
13962
13963         check-version: Move AC_LIBOBJ invocations to module description.
13964         * m4/check-version.m4: Remove file.
13965         * modules/check-version (Files): Remove it.
13966         (configure.ac): Remove gl_CHECK_VERSION call.
13967         (Makefile.am): Augment lib_SOURCES.
13968
13969 2011-05-23  Bruno Haible  <bruno@clisp.org>
13970
13971         chdir-safer: Move AC_LIBOBJ invocations to module description.
13972         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13973         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13974
13975 2011-05-23  Bruno Haible  <bruno@clisp.org>
13976
13977         canonicalize: Move AC_LIBOBJ invocations to module description.
13978         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13979         AC_LIBOBJ invocation.
13980         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13981
13982 2011-05-23  Bruno Haible  <bruno@clisp.org>
13983
13984         canon-host: Move AC_LIBOBJ invocations to module description.
13985         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13986         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13987         instead of gl_CANON_HOST.
13988         (Makefile.am): Augment lib_SOURCES.
13989
13990 2011-05-23  Bruno Haible  <bruno@clisp.org>
13991
13992         backupfile: Move AC_LIBOBJ invocations to module description.
13993         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13994         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13995
13996 2011-05-23  Bruno Haible  <bruno@clisp.org>
13997
13998         argmatch: Move AC_LIBOBJ invocations to module description.
13999         * m4/argmatch.m4: Remove file.
14000         * modules/argmatch (Files): Remove it.
14001         (configure.ac): Remove gl_ARGMATCH call.
14002         (Makefile.am): Augment lib_SOURCES.
14003
14004 2011-05-23  Bruno Haible  <bruno@clisp.org>
14005
14006         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14007         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14008         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14009
14010 2011-05-23  Bruno Haible  <bruno@clisp.org>
14011
14012         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14013         * m4/arcfour.m4: Remove file.
14014         * modules/crypto/arcfour (Files): Remove it.
14015         (configure.ac): Remove gl_ARCFOUR call.
14016         (Makefile.am): Augment lib_SOURCES.
14017
14018 2011-05-22  Bruno Haible  <bruno@clisp.org>
14019
14020         write: Move AC_LIBOBJ invocations to module description.
14021         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14022         * modules/write (configure.ac): ... to here.
14023
14024 2011-05-22  Bruno Haible  <bruno@clisp.org>
14025
14026         wmemset: Move AC_LIBOBJ invocations to module description.
14027         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14028         here...
14029         * modules/wmemset (configure.ac): ... to here.
14030
14031 2011-05-22  Bruno Haible  <bruno@clisp.org>
14032
14033         wmemmove: Move AC_LIBOBJ invocations to module description.
14034         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14035         here...
14036         * modules/wmemmove (configure.ac): ... to here.
14037
14038 2011-05-22  Bruno Haible  <bruno@clisp.org>
14039
14040         wmemcpy: Move AC_LIBOBJ invocations to module description.
14041         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14042         here...
14043         * modules/wmemcpy (configure.ac): ... to here.
14044
14045 2011-05-22  Bruno Haible  <bruno@clisp.org>
14046
14047         wmemcmp: Move AC_LIBOBJ invocations to module description.
14048         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14049         here...
14050         * modules/wmemcmp (configure.ac): ... to here.
14051
14052 2011-05-22  Bruno Haible  <bruno@clisp.org>
14053
14054         wmemchr: Move AC_LIBOBJ invocations to module description.
14055         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14056         here...
14057         * modules/wmemchr (configure.ac): ... to here.
14058
14059 2011-05-22  Bruno Haible  <bruno@clisp.org>
14060
14061         wcswidth: Move AC_LIBOBJ invocations to module description.
14062         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14063         here...
14064         * modules/wcswidth (configure.ac): ... to here.
14065
14066 2011-05-22  Bruno Haible  <bruno@clisp.org>
14067
14068         wcwidth: Respect rules for use of AC_LIBOBJ.
14069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14070         invocation from here...
14071         * modules/wcwidth (configure.ac): ... to here.
14072         (Depends-on): Update conditions.
14073
14074 2011-05-22  Bruno Haible  <bruno@clisp.org>
14075
14076         wctype: Move AC_LIBOBJ invocations to module description.
14077         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14078         invocation from here...
14079         * modules/wctype (configure.ac): ... to here.
14080         (Depends-on): Update conditions.
14081
14082 2011-05-22  Bruno Haible  <bruno@clisp.org>
14083
14084         wctrans: Move AC_LIBOBJ invocations to module description.
14085         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14086         invocation from here...
14087         * modules/wctrans (configure.ac): ... to here.
14088
14089 2011-05-22  Bruno Haible  <bruno@clisp.org>
14090
14091         wctomb: Move AC_LIBOBJ invocations to module description.
14092         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14093         invocations from here...
14094         * modules/wctomb (configure.ac): ... to here.
14095
14096 2011-05-22  Bruno Haible  <bruno@clisp.org>
14097
14098         wctob: Move AC_LIBOBJ invocations to module description.
14099         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14100         gl_PREREQ_WCTOB invocations from here...
14101         * modules/wctob (configure.ac): ... to here.
14102         (Depends-on): Update conditions.
14103
14104 2011-05-22  Bruno Haible  <bruno@clisp.org>
14105
14106         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14107         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14108         here...
14109         * modules/wcsxfrm (configure.ac): ... to here.
14110
14111 2011-05-22  Bruno Haible  <bruno@clisp.org>
14112
14113         wcstok: Move AC_LIBOBJ invocations to module description.
14114         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14115         * modules/wcstok (configure.ac): ... to here.
14116
14117 2011-05-22  Bruno Haible  <bruno@clisp.org>
14118
14119         wcsstr: Move AC_LIBOBJ invocations to module description.
14120         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14121         * modules/wcsstr (configure.ac): ... to here.
14122
14123 2011-05-22  Bruno Haible  <bruno@clisp.org>
14124
14125         wcsspn: Move AC_LIBOBJ invocations to module description.
14126         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14127         * modules/wcsspn (configure.ac): ... to here.
14128
14129 2011-05-22  Bruno Haible  <bruno@clisp.org>
14130
14131         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14132         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14133         gl_PREREQ_WCSRTOMBS invocations from here...
14134         * modules/wcsrtombs (configure.ac): ... to here.
14135
14136 2011-05-22  Bruno Haible  <bruno@clisp.org>
14137
14138         wcsrchr: Move AC_LIBOBJ invocations to module description.
14139         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14140         here...
14141         * modules/wcsrchr (configure.ac): ... to here.
14142
14143 2011-05-22  Bruno Haible  <bruno@clisp.org>
14144
14145         wcspbrk: Move AC_LIBOBJ invocations to module description.
14146         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14147         here...
14148         * modules/wcspbrk (configure.ac): ... to here.
14149
14150 2011-05-22  Bruno Haible  <bruno@clisp.org>
14151
14152         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14153         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14154         gl_PREREQ_WCSNRTOMBS invocations from here...
14155         * modules/wcsnrtombs (configure.ac): ... to here.
14156
14157 2011-05-22  Bruno Haible  <bruno@clisp.org>
14158
14159         wcsnlen: Move AC_LIBOBJ invocations to module description.
14160         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14161         here...
14162         * modules/wcsnlen (configure.ac): ... to here.
14163
14164 2011-05-22  Bruno Haible  <bruno@clisp.org>
14165
14166         wcsncpy: Move AC_LIBOBJ invocations to module description.
14167         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14168         here...
14169         * modules/wcsncpy (configure.ac): ... to here.
14170
14171 2011-05-22  Bruno Haible  <bruno@clisp.org>
14172
14173         wcsncmp: Move AC_LIBOBJ invocations to module description.
14174         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14175         here...
14176         * modules/wcsncmp (configure.ac): ... to here.
14177
14178 2011-05-22  Bruno Haible  <bruno@clisp.org>
14179
14180         wcsncat: Move AC_LIBOBJ invocations to module description.
14181         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14182         here...
14183         * modules/wcsncat (configure.ac): ... to here.
14184
14185 2011-05-22  Bruno Haible  <bruno@clisp.org>
14186
14187         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14188         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14189         from here...
14190         * modules/wcsncasecmp (configure.ac): ... to here.
14191
14192 2011-05-22  Bruno Haible  <bruno@clisp.org>
14193
14194         wcslen: Move AC_LIBOBJ invocations to module description.
14195         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14196         * modules/wcslen (configure.ac): ... to here.
14197
14198 2011-05-22  Bruno Haible  <bruno@clisp.org>
14199
14200         wcsdup: Move AC_LIBOBJ invocations to module description.
14201         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14202         * modules/wcsdup (configure.ac): ... to here.
14203
14204 2011-05-22  Bruno Haible  <bruno@clisp.org>
14205
14206         wcscspn: Move AC_LIBOBJ invocations to module description.
14207         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14208         here...
14209         * modules/wcscspn (configure.ac): ... to here.
14210
14211 2011-05-22  Bruno Haible  <bruno@clisp.org>
14212
14213         wcscpy: Move AC_LIBOBJ invocations to module description.
14214         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14215         * modules/wcscpy (configure.ac): ... to here.
14216
14217 2011-05-22  Bruno Haible  <bruno@clisp.org>
14218
14219         wcscoll: Move AC_LIBOBJ invocations to module description.
14220         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14221         here...
14222         * modules/wcscoll (configure.ac): ... to here.
14223
14224 2011-05-22  Bruno Haible  <bruno@clisp.org>
14225
14226         wcscmp: Move AC_LIBOBJ invocations to module description.
14227         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14228         * modules/wcscmp (configure.ac): ... to here.
14229
14230 2011-05-22  Bruno Haible  <bruno@clisp.org>
14231
14232         wcschr: Move AC_LIBOBJ invocations to module description.
14233         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14234         * modules/wcschr (configure.ac): ... to here.
14235
14236 2011-05-22  Bruno Haible  <bruno@clisp.org>
14237
14238         wcscat: Move AC_LIBOBJ invocations to module description.
14239         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14240         * modules/wcscat (configure.ac): ... to here.
14241
14242 2011-05-22  Bruno Haible  <bruno@clisp.org>
14243
14244         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14245         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14246         here...
14247         * modules/wcscasecmp (configure.ac): ... to here.
14248
14249 2011-05-22  Bruno Haible  <bruno@clisp.org>
14250
14251         wcrtomb: Move AC_LIBOBJ invocations to module description.
14252         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14253         invocations from here...
14254         * modules/wcrtomb (configure.ac): ... to here.
14255
14256 2011-05-22  Bruno Haible  <bruno@clisp.org>
14257
14258         wcpncpy: Move AC_LIBOBJ invocations to module description.
14259         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
14260         here...
14261         * modules/wcpncpy (configure.ac): ... to here.
14262
14263 2011-05-22  Bruno Haible  <bruno@clisp.org>
14264
14265         wcpcpy: Move AC_LIBOBJ invocations to module description.
14266         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14267         * modules/wcpcpy (configure.ac): ... to here.
14268
14269 2011-05-22  Bruno Haible  <bruno@clisp.org>
14270
14271         waitpid: Move AC_LIBOBJ invocations to module description.
14272         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14273         invocation from here...
14274         * modules/waitpid (configure.ac): ... to here.
14275
14276 2011-05-22  Bruno Haible  <bruno@clisp.org>
14277
14278         utimensat: Move AC_LIBOBJ invocations to module description.
14279         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14280         here...
14281         * modules/utimensat (configure.ac): ... to here.
14282
14283 2011-05-22  Bruno Haible  <bruno@clisp.org>
14284
14285         usleep: Move AC_LIBOBJ invocations to module description.
14286         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14287         here...
14288         * modules/usleep (configure.ac): ... to here.
14289
14290 2011-05-22  Bruno Haible  <bruno@clisp.org>
14291
14292         unlockpt: Move AC_LIBOBJ invocations to module description.
14293         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14294         gl_PREREQ_UNLOCKPT invocations from here...
14295         * modules/unlockpt (configure.ac): ... to here.
14296
14297 2011-05-22  Bruno Haible  <bruno@clisp.org>
14298
14299         unlink: Respect rules for use of AC_LIBOBJ.
14300         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14301         * modules/unlink (configure.ac): ... to here.
14302
14303 2011-05-22  Bruno Haible  <bruno@clisp.org>
14304
14305         uname: Move AC_LIBOBJ invocations to module description.
14306         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14307         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14308         here...
14309         * modules/uname (configure.ac): ... to here.
14310
14311 2011-05-22  Bruno Haible  <bruno@clisp.org>
14312
14313         ttyname_r: Move AC_LIBOBJ invocations to module description.
14314         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14315         gl_PREREQ_TTYNAME_R invocations from here...
14316         * modules/ttyname_r (configure.ac): ... to here.
14317
14318 2011-05-22  Bruno Haible  <bruno@clisp.org>
14319
14320         tsearch: Move AC_LIBOBJ invocations to module description.
14321         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14322         invocations from here...
14323         * modules/tsearch (configure.ac): ... to here.
14324
14325 2011-05-22  Bruno Haible  <bruno@clisp.org>
14326
14327         towctrans: Move AC_LIBOBJ invocations to module description.
14328         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
14329         AC_LIBOBJ invocation from here...
14330         * modules/towctrans (configure.ac): ... to here.
14331
14332 2011-05-22  Bruno Haible  <bruno@clisp.org>
14333
14334         tmpfile: Move AC_LIBOBJ invocations to module description.
14335         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
14336         invocations from here...
14337         * modules/tmpfile (configure.ac): ... to here.
14338
14339 2011-05-22  Bruno Haible  <bruno@clisp.org>
14340
14341         times: Move AC_LIBOBJ invocations to module description.
14342         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
14343         * modules/times (configure.ac): ... to here.
14344
14345 2011-05-22  Bruno Haible  <bruno@clisp.org>
14346
14347         time_r: Move AC_LIBOBJ invocations to module description.
14348         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
14349         invocations from here...
14350         * modules/time_r (configure.ac): ... to here.
14351
14352 2011-05-22  Bruno Haible  <bruno@clisp.org>
14353
14354         timegm: Move AC_LIBOBJ invocations to module description.
14355         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
14356         invocations from here...
14357         * modules/timegm (configure.ac): ... to here.
14358
14359 2011-05-22  Bruno Haible  <bruno@clisp.org>
14360
14361         tcgetsid: Move AC_LIBOBJ invocations to module description.
14362         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
14363         and gl_PREREQ_TCGETSID invocations from here...
14364         * modules/tcgetsid (configure.ac): ... to here.
14365         (Depends-on): Update conditions.
14366
14367 2011-05-22  Bruno Haible  <bruno@clisp.org>
14368
14369         symlinkat: Move AC_LIBOBJ invocations to module description.
14370         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
14371         here...
14372         * modules/symlinkat (configure.ac): ... to here.
14373
14374 2011-05-22  Bruno Haible  <bruno@clisp.org>
14375
14376         symlink: Move AC_LIBOBJ invocations to module description.
14377         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
14378         here...
14379         * modules/symlink (configure.ac): ... to here.
14380
14381 2011-05-22  Bruno Haible  <bruno@clisp.org>
14382
14383         strverscmp: Move AC_LIBOBJ invocations to module description.
14384         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
14385         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14386         from here...
14387         * modules/strverscmp (configure.ac): ... to here.
14388
14389 2011-05-22  Bruno Haible  <bruno@clisp.org>
14390
14391         strtok_r: Move AC_LIBOBJ invocations to module description.
14392         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14393         and gl_PREREQ_STRTOK_R invocations from here...
14394         * modules/strtok_r (configure.ac): ... to here.
14395         (Depends-on): Update conditions.
14396
14397 2011-05-22  Bruno Haible  <bruno@clisp.org>
14398
14399         strtoumax: Move AC_LIBOBJ invocations to module description.
14400         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14401         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14402         from here...
14403         * modules/strtoumax (configure.ac): ... to here.
14404
14405 2011-05-22  Bruno Haible  <bruno@clisp.org>
14406
14407         strtoimax: Move AC_LIBOBJ invocations to module description.
14408         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
14409         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
14410         from here...
14411         * modules/strtoimax (configure.ac): ... to here.
14412
14413 2011-05-22  Bruno Haible  <bruno@clisp.org>
14414
14415         strtoull: Move AC_LIBOBJ invocations to module description.
14416         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
14417         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
14418         from here...
14419         * modules/strtoull (configure.ac): ... to here.
14420
14421 2011-05-22  Bruno Haible  <bruno@clisp.org>
14422
14423         strtoll: Move AC_LIBOBJ invocations to module description.
14424         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
14425         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
14426         here...
14427         * modules/strtoll (configure.ac): ... to here.
14428
14429 2011-05-22  Bruno Haible  <bruno@clisp.org>
14430
14431         strtoul: Move AC_LIBOBJ invocations to module description.
14432         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14433         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14434         * modules/strtoul (configure.ac): ... to here.
14435
14436 2011-05-22  Bruno Haible  <bruno@clisp.org>
14437
14438         strtol: Move AC_LIBOBJ invocations to module description.
14439         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
14440         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14441         * modules/strtol (configure.ac): ... to here.
14442
14443 2011-05-22  Bruno Haible  <bruno@clisp.org>
14444
14445         strtod: Move AC_LIBOBJ invocations to module description.
14446         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
14447         invocations from here...
14448         * modules/strtod (configure.ac): ... to here.
14449
14450 2011-05-22  Bruno Haible  <bruno@clisp.org>
14451
14452         strstr*: Move AC_LIBOBJ invocations to module description.
14453         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
14454         invocations from here...
14455         * modules/strstr-simple (configure.ac): ... to here.
14456         * modules/strstr (configure.ac): ... and here.
14457
14458 2011-05-22  Bruno Haible  <bruno@clisp.org>
14459
14460         strsignal: Move AC_LIBOBJ invocations to module description.
14461         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
14462         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
14463         * modules/strsignal (configure.ac): ... to here.
14464         (Depends-on): Update conditions.
14465
14466 2011-05-22  Bruno Haible  <bruno@clisp.org>
14467
14468         strsep: Move AC_LIBOBJ invocations to module description.
14469         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
14470         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
14471         here...
14472         * modules/strsep (configure.ac): ... to here.
14473
14474 2011-05-22  Bruno Haible  <bruno@clisp.org>
14475
14476         strptime: Move AC_LIBOBJ invocations to module description.
14477         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
14478         gl_PREREQ_STRPTIME invocations from here...
14479         * modules/strptime (configure.ac): ... to here.
14480
14481 2011-05-22  Bruno Haible  <bruno@clisp.org>
14482
14483         strpbrk: Move AC_LIBOBJ invocations to module description.
14484         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14485         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14486         here...
14487         * modules/strpbrk (configure.ac): ... to here.
14488
14489 2011-05-22  Bruno Haible  <bruno@clisp.org>
14490
14491         strnlen: Move AC_LIBOBJ invocations to module description.
14492         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14493         invocations from here...
14494         * modules/strnlen (configure.ac): ... to here.
14495
14496 2011-05-22  Bruno Haible  <bruno@clisp.org>
14497
14498         strndup: Move AC_LIBOBJ invocations to module description.
14499         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14500         invocations from here...
14501         * modules/strndup (configure.ac): ... to here.
14502         (Depends-on): Update conditions.
14503
14504 2011-05-22  Bruno Haible  <bruno@clisp.org>
14505
14506         strncat: Move AC_LIBOBJ invocations to module description.
14507         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14508         invocations from here...
14509         * modules/strncat (configure.ac): ... to here.
14510
14511 2011-05-22  Bruno Haible  <bruno@clisp.org>
14512
14513         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14514         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14515         invocations from here...
14516         * modules/strdup (configure.ac): ... to here.
14517         * modules/strdup-posix (configure.ac): ... and here.
14518
14519 2011-05-22  Bruno Haible  <bruno@clisp.org>
14520
14521         strcspn: Move AC_LIBOBJ invocations to module description.
14522         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14524         here...
14525         * modules/strcspn (configure.ac): ... to here.
14526
14527 2011-05-22  Bruno Haible  <bruno@clisp.org>
14528
14529         strchrnul: Move AC_LIBOBJ invocations to module description.
14530         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14531         gl_PREREQ_STRCHRNUL invocations from here...
14532         * modules/strchrnul (configure.ac): ... to here.
14533
14534 2011-05-22  Bruno Haible  <bruno@clisp.org>
14535
14536         strcasestr*: Move AC_LIBOBJ invocations to module description.
14537         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14538         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14539         * modules/strcasestr-simple (configure.ac): ... to here.
14540         * modules/strcasestr (configure.ac): ... and here.
14541
14542 2011-05-22  Bruno Haible  <bruno@clisp.org>
14543
14544         strcase: Move AC_LIBOBJ invocations to module description.
14545         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14546         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14547         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14548         gl_PREREQ_STRNCASECMP invocations from here...
14549         * modules/strcase (configure.ac): ... to here.
14550
14551 2011-05-22  Bruno Haible  <bruno@clisp.org>
14552
14553         stpncpy: Move AC_LIBOBJ invocations to module description.
14554         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14555         here...
14556         * modules/stpncpy (configure.ac): ... to here.
14557
14558 2011-05-22  Bruno Haible  <bruno@clisp.org>
14559
14560         stpcpy: Move AC_LIBOBJ invocations to module description.
14561         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14562         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14563         here...
14564         * modules/stpcpy (configure.ac): ... to here.
14565
14566 2011-05-21  Bruno Haible  <bruno@clisp.org>
14567
14568         stat: Move AC_LIBOBJ invocations to module description.
14569         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14570         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14571         here...
14572         * modules/stat (configure.ac): ... to here.
14573
14574 2011-05-21  Bruno Haible  <bruno@clisp.org>
14575
14576         sleep: Move AC_LIBOBJ invocations to module description.
14577         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14578         * modules/sleep (configure.ac): ... to here.
14579
14580 2011-05-21  Bruno Haible  <bruno@clisp.org>
14581
14582         signbit: Move AC_LIBOBJ invocations to module description.
14583         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14584         * modules/signbit (configure.ac): ... to here.
14585
14586 2011-05-21  Bruno Haible  <bruno@clisp.org>
14587
14588         sigprocmask: Move AC_LIBOBJ invocations to module description.
14589         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14590         gl_PREREQ_SIGPROMASK invocations from here...
14591         * modules/sigprocmask (configure.ac): ... to here.
14592
14593 2011-05-21  Bruno Haible  <bruno@clisp.org>
14594
14595         sigaction: Move AC_LIBOBJ invocations to module description.
14596         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14597         gl_PREREQ_SIGACTION invocations from here...
14598         * modules/sigaction (configure.ac): ... to here.
14599
14600 2011-05-21  Bruno Haible  <bruno@clisp.org>
14601
14602         sig2str: Move AC_LIBOBJ invocations to module description.
14603         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14604         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14605         here...
14606         * modules/sig2str (configure.ac): ... to here.
14607
14608 2011-05-21  Bruno Haible  <bruno@clisp.org>
14609
14610         setlocale: Move AC_LIBOBJ invocations to module description.
14611         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14612         gl_PREREQ_SETLOCALE invocations from here...
14613         * modules/setlocale (configure.ac): ... to here.
14614
14615 2011-05-21  Bruno Haible  <bruno@clisp.org>
14616
14617         unsetenv: Move AC_LIBOBJ invocations to module description.
14618         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14619         and gl_PREREQ_UNSETENV invocations from here...
14620         * modules/unsetenv (configure.ac): ... to here.
14621         (Depends-on): Update.
14622
14623 2011-05-21  Bruno Haible  <bruno@clisp.org>
14624
14625         setenv: Move AC_LIBOBJ invocations to module description.
14626         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14627         here...
14628         * modules/setenv (configure.ac): ... to here.
14629
14630 2011-05-21  Bruno Haible  <bruno@clisp.org>
14631
14632         selinux-h: Move AC_LIBOBJ invocations to module description.
14633         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14634         AC_LIBOBJ invocation from here...
14635         * modules/selinux-h (configure.ac): ... to here.
14636
14637 2011-05-21  Bruno Haible  <bruno@clisp.org>
14638
14639         select: Respect rules for use of AC_LIBOBJ.
14640         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14641         here...
14642         * modules/select (configure.ac): ... to here.
14643
14644 2011-05-21  Bruno Haible  <bruno@clisp.org>
14645
14646         scandir: Move AC_LIBOBJ invocations to module description.
14647         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14648         invocations from here...
14649         * modules/scandir (configure.ac): ... to here.
14650
14651 2011-05-21  Bruno Haible  <bruno@clisp.org>
14652
14653         rpmatch: Move AC_LIBOBJ invocations to module description.
14654         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14655         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14656         here...
14657         * modules/rpmatch (configure.ac): ... to here.
14658
14659 2011-05-21  Bruno Haible  <bruno@clisp.org>
14660
14661         rmdir: Respect rules for use of AC_LIBOBJ.
14662         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14663         * modules/rmdir (configure.ac): ... to here.
14664
14665 2011-05-21  Bruno Haible  <bruno@clisp.org>
14666
14667         renameat: Move AC_LIBOBJ invocations to module description.
14668         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14669         here...
14670         * modules/renameat (configure.ac): ... to here.
14671
14672 2011-05-21  Bruno Haible  <bruno@clisp.org>
14673
14674         rename: Respect rules for use of AC_LIBOBJ.
14675         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14676         here...
14677         * modules/rename (configure.ac): ... to here.
14678
14679 2011-05-21  Bruno Haible  <bruno@clisp.org>
14680
14681         remove: Move AC_LIBOBJ invocations to module description.
14682         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14683         here...
14684         * modules/remove (configure.ac): ... to here.
14685
14686 2011-05-21  Bruno Haible  <bruno@clisp.org>
14687
14688         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14689         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14690         macro.
14691         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14692         * modules/relocatable-lib (configure.ac): ... to here.
14693         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14694         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14695
14696 2011-05-21  Bruno Haible  <bruno@clisp.org>
14697
14698         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14699         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14700         here...
14701         * modules/relocatable-prog (configure.ac): ... to here.
14702
14703 2011-05-21  Bruno Haible  <bruno@clisp.org>
14704
14705         regex: Move AC_LIBOBJ invocations to module description.
14706         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14707         invocations from here...
14708         * modules/regex (configure.ac): ... to here.
14709
14710 2011-05-21  Bruno Haible  <bruno@clisp.org>
14711
14712         realloc-*: Move AC_LIBOBJ invocations to module description.
14713         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14714         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14715         AC_LIBOBJ invocations from here...
14716         * modules/realloc-gnu (configure.ac): ... to here.
14717         * modules/realloc-posix (configure.ac): ... and here.
14718
14719 2011-05-21  Bruno Haible  <bruno@clisp.org>
14720
14721         readutmp: Move AC_LIBOBJ invocations to module description.
14722         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14723         * modules/readutmp (configure.ac): ... to here.
14724
14725 2011-05-21  Bruno Haible  <bruno@clisp.org>
14726
14727         readlinkat: Move AC_LIBOBJ invocations to module description.
14728         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14729         here...
14730         * modules/readlinkat (configure.ac): ... to here.
14731
14732 2011-05-21  Bruno Haible  <bruno@clisp.org>
14733
14734         readlink: Move AC_LIBOBJ invocations to module description.
14735         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14736         gl_PREREQ_READLINK invocations from here...
14737         * modules/readlink (configure.ac): ... to here.
14738
14739 2011-05-21  Bruno Haible  <bruno@clisp.org>
14740
14741         readline: Move AC_LIBOBJ invocations to module description.
14742         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14743         gl_PREREQ_READLINE invocations from here...
14744         * modules/readline (configure.ac): ... to here.
14745
14746 2011-05-21  Bruno Haible  <bruno@clisp.org>
14747
14748         read: Move AC_LIBOBJ invocations to module description.
14749         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14750         * modules/read (configure.ac): ... to here.
14751
14752 2011-05-21  Bruno Haible  <bruno@clisp.org>
14753
14754         rawmemchr: Move AC_LIBOBJ invocations to module description.
14755         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14756         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14757         from here...
14758         * modules/rawmemchr (configure.ac): ... to here.
14759
14760 2011-05-21  Bruno Haible  <bruno@clisp.org>
14761
14762         random_r: Move AC_LIBOBJ invocations to module description.
14763         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14764         gl_PREREQ_RANDOM_R invocations from here...
14765         * modules/random_r (configure.ac): ... to here.
14766
14767 2011-05-21  Bruno Haible  <bruno@clisp.org>
14768
14769         pwrite: Move AC_LIBOBJ invocations to module description.
14770         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14771         * modules/pwrite (configure.ac): ... to here.
14772
14773 2011-05-21  Bruno Haible  <bruno@clisp.org>
14774
14775         putenv: Move AC_LIBOBJ invocations to module description.
14776         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14777         * modules/putenv (configure.ac): ... to here.
14778
14779 2011-05-21  Bruno Haible  <bruno@clisp.org>
14780
14781         login_tty: Move AC_LIBOBJ invocations to module description.
14782         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14783         * modules/login_tty (configure.ac): ... to here.
14784
14785 2011-05-21  Bruno Haible  <bruno@clisp.org>
14786
14787         openpty: Move AC_LIBOBJ invocations to module description.
14788         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14789         * modules/openpty (configure.ac): ... to here.
14790
14791 2011-05-21  Bruno Haible  <bruno@clisp.org>
14792
14793         forkpty: Move AC_LIBOBJ invocations to module description.
14794         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14795         * modules/forkpty (configure.ac): ... to here.
14796
14797 2011-05-21  Bruno Haible  <bruno@clisp.org>
14798
14799         ptsname: Move AC_LIBOBJ invocations to module description.
14800         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14801         invocations from here...
14802         * modules/ptsname (configure.ac): ... to here.
14803
14804 2011-05-21  Bruno Haible  <bruno@clisp.org>
14805
14806         pread: Move AC_LIBOBJ invocations to module description.
14807         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14808         * modules/pread (configure.ac): ... to here.
14809
14810 2011-05-21  Bruno Haible  <bruno@clisp.org>
14811
14812         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14813         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14814         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14815         * modules/posix_spawn (configure.ac): ... to here.
14816         * modules/posix_spawnp (configure.ac): ... and here.
14817
14818 2011-05-21  Bruno Haible  <bruno@clisp.org>
14819
14820         popen: Move AC_LIBOBJ invocations to module description.
14821         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14822         invocations from here...
14823         * modules/popen (configure.ac): ... to here.
14824
14825 2011-05-21  Bruno Haible  <bruno@clisp.org>
14826
14827         poll: Move AC_LIBOBJ invocations to module description.
14828         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14829         invocations from here...
14830         * modules/poll (configure.ac): ... to here.
14831
14832 2011-05-21  Bruno Haible  <bruno@clisp.org>
14833
14834         pipe-posix: Move AC_LIBOBJ invocations to module description.
14835         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14836         * modules/pipe-posix (configure.ac): ... to here.
14837
14838 2011-05-21  Bruno Haible  <bruno@clisp.org>
14839
14840         openat: Respect rules for use of AC_LIBOBJ.
14841         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14842         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14843         * modules/openat (configure.ac): ... to here.
14844
14845 2011-05-21  Bruno Haible  <bruno@clisp.org>
14846
14847         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14848         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14849         invocation from here...
14850         * modules/obstack-printf (configure.ac): ... to here.
14851         * modules/obstack-printf-posix (configure.ac): ... and here.
14852
14853 2011-05-21  Bruno Haible  <bruno@clisp.org>
14854
14855         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14856         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14857         from here...
14858         * modules/nl_langinfo (configure.ac): ... to here.
14859
14860 2011-05-21  Bruno Haible  <bruno@clisp.org>
14861
14862         nanosleep: Move AC_LIBOBJ invocations to module description.
14863         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14864         gl_PREREQ_NANOSLEEP invocations from here...
14865         * modules/nanosleep (configure.ac): ... to here.
14866
14867 2011-05-21  Bruno Haible  <bruno@clisp.org>
14868
14869         mountlist: Move AC_LIBOBJ invocations to module description.
14870         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14871         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14872         * modules/mountlist (configure.ac): ... to here.
14873
14874 2011-05-21  Bruno Haible  <bruno@clisp.org>
14875
14876         mktime: Respect rules for use of AC_LIBOBJ.
14877         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14878         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14879         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14880         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14881         * modules/mktime (configure.ac): ... to here.
14882         * modules/mktime-internal (configure.ac): ... and here.
14883         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14884
14885 2011-05-21  Bruno Haible  <bruno@clisp.org>
14886
14887         mkstemps: Move AC_LIBOBJ invocations to module description.
14888         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14889         here...
14890         * modules/mkstemps (configure.ac): ... to here.
14891
14892 2011-05-21  Bruno Haible  <bruno@clisp.org>
14893
14894         mkstemp: Move AC_LIBOBJ invocations to module description.
14895         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14896         gl_PREREQ_MKSTEMP invocations from here...
14897         * modules/mkstemp (configure.ac): ... to here.
14898
14899 2011-05-21  Bruno Haible  <bruno@clisp.org>
14900
14901         mkostemps: Move AC_LIBOBJ invocations to module description.
14902         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14903         here...
14904         * modules/mkostemps (configure.ac): ... to here.
14905
14906 2011-05-21  Bruno Haible  <bruno@clisp.org>
14907
14908         mkostemp: Move AC_LIBOBJ invocations to module description.
14909         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14910         gl_PREREQ_MKOSTEMP invocations from here...
14911         * modules/mkostemp (configure.ac): ... to here.
14912
14913 2011-05-21  Bruno Haible  <bruno@clisp.org>
14914
14915         mknod: Move AC_LIBOBJ invocations to module description.
14916         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14917         * modules/mknod (configure.ac): ... to here.
14918
14919 2011-05-21  Bruno Haible  <bruno@clisp.org>
14920
14921         mkfifoat: Move AC_LIBOBJ invocations to module description.
14922         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14923         here...
14924         * modules/mkfifoat (configure.ac): ... to here.
14925
14926 2011-05-21  Bruno Haible  <bruno@clisp.org>
14927
14928         mkfifo: Respect rules for use of AC_LIBOBJ.
14929         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14930         here...
14931         * modules/mkfifo (configure.ac): ... to here.
14932
14933 2011-05-21  Bruno Haible  <bruno@clisp.org>
14934
14935         mkdtemp: Move AC_LIBOBJ invocations to module description.
14936         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14937         invocations from here...
14938         * modules/mkdtemp (configure.ac): ... to here.
14939
14940 2011-05-21  Bruno Haible  <bruno@clisp.org>
14941
14942         mkdir: Move AC_LIBOBJ invocations to module description.
14943         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14944         * modules/mkdir (configure.ac): ... to here.
14945
14946 2011-05-21  Bruno Haible  <bruno@clisp.org>
14947
14948         memset: Move AC_LIBOBJ invocations to module description.
14949         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14950         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14951         here...
14952         * modules/memset (configure.ac): ... to here.
14953
14954 2011-05-21  Bruno Haible  <bruno@clisp.org>
14955
14956         memrchr: Move AC_LIBOBJ invocations to module description.
14957         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14958         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14959         here...
14960         * modules/memrchr (configure.ac): ... to here.
14961
14962 2011-05-21  Bruno Haible  <bruno@clisp.org>
14963
14964         mempcpy: Move AC_LIBOBJ invocations to module description.
14965         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14966         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14967         here...
14968         * modules/mempcpy (configure.ac): ... to here.
14969
14970 2011-05-21  Bruno Haible  <bruno@clisp.org>
14971
14972         memmove: Move AC_LIBOBJ invocations to module description.
14973         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14974         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14975         here...
14976         * modules/memmove (configure.ac): ... to here.
14977
14978 2011-05-21  Bruno Haible  <bruno@clisp.org>
14979
14980         memmem*: Move AC_LIBOBJ invocations to module description.
14981         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14982         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14983         here...
14984         (gl_FUNC_MEMMEM): ... and here...
14985         * modules/memmem-simple (configure.ac): ... to here.
14986         * modules/memmem (configure.ac): ... and here.
14987
14988 2011-05-21  Bruno Haible  <bruno@clisp.org>
14989
14990         memcpy: Move AC_LIBOBJ invocations to module description.
14991         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14992         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14993         here...
14994         * modules/memcpy (configure.ac): ... to here.
14995
14996 2011-05-21  Bruno Haible  <bruno@clisp.org>
14997
14998         memcmp: Simplify autoconf macro.
14999         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15000         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15001         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15002
15003 2011-05-21  Bruno Haible  <bruno@clisp.org>
15004
15005         memcmp: Move AC_LIBOBJ invocations to module description.
15006         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15007         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15008         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15009         * modules/memcmp (configure.ac): ... to here.
15010         (Depends-on): Update conditions.
15011
15012 2011-05-21  Bruno Haible  <bruno@clisp.org>
15013
15014         memchr: Respect rules for use of AC_LIBOBJ.
15015         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15016         invocations from here...
15017         * modules/memchr (configure.ac): ... to here.
15018
15019 2011-05-21  Bruno Haible  <bruno@clisp.org>
15020
15021         mbtowc: Move AC_LIBOBJ invocations to module description.
15022         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15023         invocations from here...
15024         * modules/mbtowc (configure.ac): ... to here.
15025
15026 2011-05-21  Bruno Haible  <bruno@clisp.org>
15027
15028         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15029         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15030         gl_PREREQ_MBSRTOWCS invocations from here...
15031         * modules/mbsrtowcs (configure.ac): ... to here.
15032
15033 2011-05-21  Bruno Haible  <bruno@clisp.org>
15034
15035         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15036         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15037         gl_PREREQ_MBSNRTOWCS invocations from here...
15038         * modules/mbsnrtowcs (configure.ac): ... to here.
15039
15040 2011-05-21  Bruno Haible  <bruno@clisp.org>
15041
15042         mbsinit: Move AC_LIBOBJ invocations to module description.
15043         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15044         invocations from here...
15045         * modules/mbsinit (configure.ac): ... to here.
15046
15047 2011-05-21  Bruno Haible  <bruno@clisp.org>
15048
15049         mbrlen: Move AC_LIBOBJ invocations to module description.
15050         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15051         invocations from here...
15052         * modules/mbrlen (configure.ac): ... to here.
15053
15054 2011-05-21  Bruno Haible  <bruno@clisp.org>
15055
15056         mbrtowc: Respect rules for use of AC_LIBOBJ.
15057         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15058         invocations from here...
15059         * modules/mbrtowc (configure.ac): ... to here.
15060
15061 2011-05-21  Bruno Haible  <bruno@clisp.org>
15062
15063         malloc-*: Move AC_LIBOBJ invocations to module description.
15064         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15065         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15066         AC_LIBOBJ invocations from here...
15067         * modules/malloc-gnu (configure.ac): ... to here.
15068         * modules/malloc-posix (configure.ac): ... and here.
15069
15070 2011-05-21  Bruno Haible  <bruno@clisp.org>
15071
15072         lstat, openat: Respect rules for use of AC_LIBOBJ.
15073         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15074         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15075         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15076         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15077         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15078         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15079         here.
15080         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15081
15082 2011-05-21  Bruno Haible  <bruno@clisp.org>
15083
15084         lseek: Move AC_LIBOBJ invocations to module description.
15085         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15086         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15087         * modules/lseek (configure.ac): ... to here.
15088
15089 2011-05-21  Bruno Haible  <bruno@clisp.org>
15090
15091         linkat: Move AC_LIBOBJ invocations to module description.
15092         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15093         here...
15094         * modules/linkat (configure.ac): ... to here.
15095
15096 2011-05-21  Bruno Haible  <bruno@clisp.org>
15097
15098         link: Respect rules for use of AC_LIBOBJ.
15099         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15100         * modules/link (configure.ac): ... to here.
15101
15102 2011-05-21  Bruno Haible  <bruno@clisp.org>
15103
15104         lchown: Move AC_LIBOBJ invocations to module description.
15105         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15106         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15107         * modules/lchown (configure.ac): ... to here.
15108
15109 2011-05-21  Bruno Haible  <bruno@clisp.org>
15110
15111         iswctype: Move AC_LIBOBJ invocations to module description.
15112         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15113         here...
15114         * modules/iswctype (configure.ac): ... to here.
15115
15116 2011-05-21  Bruno Haible  <bruno@clisp.org>
15117
15118         iswblank: Move AC_LIBOBJ invocations to module description.
15119         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15120         here...
15121         * modules/iswblank (configure.ac): ... to here.
15122
15123 2011-05-21  Bruno Haible  <bruno@clisp.org>
15124
15125         atanl: Move AC_LIBOBJ invocations to module description.
15126         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15127         * modules/atanl (configure.ac): ... to here.
15128
15129 2011-05-21  Bruno Haible  <bruno@clisp.org>
15130
15131         acosl: Move AC_LIBOBJ invocations to module description.
15132         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15133         * modules/acosl (configure.ac): ... to here.
15134
15135 2011-05-21  Bruno Haible  <bruno@clisp.org>
15136
15137         asinl: Respect rules for use of AC_LIBOBJ.
15138         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15139         * modules/asinl (configure.ac): ... to here.
15140
15141 2011-05-21  Bruno Haible  <bruno@clisp.org>
15142
15143         tanl: Move AC_LIBOBJ invocations to module description.
15144         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15145         * modules/tanl (configure.ac): ... to here.
15146
15147 2011-05-21  Bruno Haible  <bruno@clisp.org>
15148
15149         cosl: Move AC_LIBOBJ invocations to module description.
15150         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15151         * modules/cosl (configure.ac): ... to here.
15152
15153 2011-05-21  Bruno Haible  <bruno@clisp.org>
15154
15155         sinl: Move AC_LIBOBJ invocations to module description.
15156         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15157         * modules/sinl (configure.ac): ... to here.
15158
15159 2011-05-21  Bruno Haible  <bruno@clisp.org>
15160
15161         logl: Move AC_LIBOBJ invocations to module description.
15162         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15163         * modules/logl (configure.ac): ... to here.
15164
15165 2011-05-21  Bruno Haible  <bruno@clisp.org>
15166
15167         expl: Move AC_LIBOBJ invocations to module description.
15168         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15169         * modules/expl (configure.ac): ... to here.
15170
15171 2011-05-21  Bruno Haible  <bruno@clisp.org>
15172
15173         roundl: Move AC_LIBOBJ invocations to module description.
15174         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15175         * modules/roundl (configure.ac): ... to here.
15176
15177 2011-05-21  Bruno Haible  <bruno@clisp.org>
15178
15179         round: Move AC_LIBOBJ invocations to module description.
15180         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15181         * modules/round (configure.ac): ... to here.
15182
15183 2011-05-21  Bruno Haible  <bruno@clisp.org>
15184
15185         roundf: Move AC_LIBOBJ invocations to module description.
15186         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15187         * modules/roundf (configure.ac): ... to here.
15188
15189 2011-05-21  Bruno Haible  <bruno@clisp.org>
15190
15191         truncl: Move AC_LIBOBJ invocations to module description.
15192         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15193         * modules/truncl (configure.ac): ... to here.
15194
15195 2011-05-21  Bruno Haible  <bruno@clisp.org>
15196
15197         trunc: Move AC_LIBOBJ invocations to module description.
15198         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15199         * modules/trunc (configure.ac): ... to here.
15200
15201 2011-05-21  Bruno Haible  <bruno@clisp.org>
15202
15203         truncf: Move AC_LIBOBJ invocations to module description.
15204         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15205         * modules/truncf (configure.ac): ... to here.
15206
15207 2011-05-21  Bruno Haible  <bruno@clisp.org>
15208
15209         ceill: Move AC_LIBOBJ invocations to module description.
15210         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15211         * modules/ceill (configure.ac): ... to here.
15212
15213 2011-05-21  Bruno Haible  <bruno@clisp.org>
15214
15215         ceil: Move AC_LIBOBJ invocations to module description.
15216         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15217         * modules/ceil (configure.ac): ... to here.
15218
15219 2011-05-21  Bruno Haible  <bruno@clisp.org>
15220
15221         ceilf: Move AC_LIBOBJ invocations to module description.
15222         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15223         * modules/ceilf (configure.ac): ... to here.
15224
15225 2011-05-21  Bruno Haible  <bruno@clisp.org>
15226
15227         floorl: Respect rules for use of AC_LIBOBJ.
15228         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15229         * modules/floorl (configure.ac): ... to here.
15230
15231 2011-05-21  Bruno Haible  <bruno@clisp.org>
15232
15233         floor: Respect rules for use of AC_LIBOBJ.
15234         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15235         * modules/floor (configure.ac): ... to here.
15236
15237 2011-05-21  Bruno Haible  <bruno@clisp.org>
15238
15239         floorf: Move AC_LIBOBJ invocations to module description.
15240         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15241         * modules/floorf (configure.ac): ... to here.
15242
15243 2011-05-20  Bruno Haible  <bruno@clisp.org>
15244
15245         sqrtl: Respect rules for use of AC_LIBOBJ.
15246         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15247         * modules/sqrtl (configure.ac): ... to here.
15248
15249 2011-05-20  Bruno Haible  <bruno@clisp.org>
15250
15251         ldexpl: Respect rules for use of AC_LIBOBJ.
15252         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15253         * modules/ldexpl (configure.ac): ... to here.
15254
15255 2011-05-20  Bruno Haible  <bruno@clisp.org>
15256
15257         frexpl*: Respect rules for use of AC_LIBOBJ.
15258         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
15259         invocation from here...
15260         * modules/frexpl (configure.ac): ... to here.
15261         * modules/frexpl-nolibm (configure.ac): ... and here.
15262
15263 2011-05-20  Bruno Haible  <bruno@clisp.org>
15264
15265         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15266         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15267         invocation from here...
15268         * modules/frexp (configure.ac): ... to here.
15269         * modules/frexp-nolibm (configure.ac): ... and here.
15270
15271 2011-05-20  Bruno Haible  <bruno@clisp.org>
15272
15273         isnan: Respect rules for use of AC_LIBOBJ.
15274         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15275         invocations here.
15276         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15277         REPLACE_ISNAN.
15278         * modules/isnand (configure.ac): Likewise.
15279         * modules/isnanl (configure.ac): Likewise.
15280
15281 2011-05-20  Bruno Haible  <bruno@clisp.org>
15282
15283         isnanl*: Respect rules for use of AC_LIBOBJ.
15284         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15285         invocation from here...
15286         * modules/isnanl (configure.ac): ... to here.
15287         * modules/isnanl-nolibm (configure.ac): ... and here.
15288
15289 2011-05-20  Bruno Haible  <bruno@clisp.org>
15290
15291         isnand*: Move AC_LIBOBJ invocations to module description.
15292         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15293         invocation from here...
15294         * modules/isnand (configure.ac): ... to here.
15295         * modules/isnand-nolibm (configure.ac): ... and here.
15296
15297 2011-05-20  Bruno Haible  <bruno@clisp.org>
15298
15299         isnanf*: Move AC_LIBOBJ invocations to module description.
15300         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15301         invocation from here...
15302         * modules/isnanf (configure.ac): ... to here.
15303         * modules/isnanf-nolibm (configure.ac): ... and here.
15304
15305 2011-05-20  Bruno Haible  <bruno@clisp.org>
15306
15307         isnan*: Separate the AC_LIBOBJ invocations.
15308         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15309         AC_LIBOBJ invocation.
15310         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15311         here.
15312         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15313         AC_LIBOBJ invocation.
15314         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15315         here.
15316         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15317         AC_LIBOBJ invocation.
15318         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15319         here.
15320         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15321
15322 2011-05-08  Bruno Haible  <bruno@clisp.org>
15323
15324         isinf: Move AC_LIBOBJ invocations to module description.
15325         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15326         * modules/isinf (configure.ac): ... to here.
15327
15328 2011-05-08  Bruno Haible  <bruno@clisp.org>
15329
15330         isfinite: Move AC_LIBOBJ invocations to module description.
15331         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
15332         * modules/isfinite (configure.ac): ... to here.
15333
15334 2011-05-08  Bruno Haible  <bruno@clisp.org>
15335
15336         isblank: Move AC_LIBOBJ invocations to module description.
15337         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
15338         here...
15339         * modules/isblank (configure.ac): ... to here.
15340
15341 2011-05-08  Bruno Haible  <bruno@clisp.org>
15342
15343         isapipe: Move AC_LIBOBJ invocations to module description.
15344         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
15345         gl_PREREQ_ISAPIPE invocations from here...
15346         * modules/isapipe (configure.ac): ... to here.
15347         (Depends-on): Update condition.
15348
15349 2011-05-08  Bruno Haible  <bruno@clisp.org>
15350
15351         ioctl: Move AC_LIBOBJ invocations to module description.
15352         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
15353         invocations from here...
15354         * modules/ioctl (configure.ac): ... to here.
15355         (Depends-on): Update condition.
15356
15357 2011-05-08  Bruno Haible  <bruno@clisp.org>
15358
15359         imaxdiv: Move AC_LIBOBJ invocations to module description.
15360         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
15361         invocations from here...
15362         * modules/imaxdiv (configure.ac): ... to here.
15363
15364 2011-05-08  Bruno Haible  <bruno@clisp.org>
15365
15366         imaxabs: Move AC_LIBOBJ invocations to module description.
15367         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
15368         invocations from here...
15369         * modules/imaxabs (configure.ac): ... to here.
15370
15371 2011-05-08  Bruno Haible  <bruno@clisp.org>
15372
15373         getaddrinfo: Move AC_LIBOBJ invocations to module description.
15374         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
15375         AC_LIBOBJ invocations from here...
15376         * modules/getaddrinfo (configure.ac): ... to here.
15377         (Depends-on): Add conditions.
15378
15379 2011-05-08  Bruno Haible  <bruno@clisp.org>
15380
15381         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15382         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
15383         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15384         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
15385         (gl_PREREQ_INET_PTON): ... from here.
15386         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15387         gl_PREREQ_INET_PTON here.
15388         (Depends-on): Update condition.
15389
15390 2011-05-08  Bruno Haible  <bruno@clisp.org>
15391
15392         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15393         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15394         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15395         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15396         (gl_PREREQ_INET_NTOP): ... from here.
15397         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15398         gl_PREREQ_INET_NTOP here.
15399         (Depends-on): Update condition.
15400
15401 2011-05-08  Bruno Haible  <bruno@clisp.org>
15402
15403         iconv_open: Move AC_LIBOBJ invocations to module description.
15404         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15405         AC_LIBOBJ invocations from here...
15406         * modules/iconv_open (configure.ac): ... to here.
15407
15408 2011-05-08  Bruno Haible  <bruno@clisp.org>
15409
15410         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
15411         If module 'iconv_open' is among the main modules and module
15412         'iconv_open-utf' is among the tests dependencies, then
15413         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
15414         return the special iconv_t values. Therefore iconv() and iconv_close()
15415         must support these special iconv_t values, already in lib, not only in
15416         tests.
15417         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
15418         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
15419         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
15420         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
15421         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
15422         (Depends-on): Add the dependencies of iconv_open-utf.
15423         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
15424         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
15425         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
15426
15427 2011-05-08  Bruno Haible  <bruno@clisp.org>
15428
15429         group-member: Move AC_LIBOBJ invocations to module description.
15430         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15431         gl_PREREQ_GROUP_MEMBER invocations from here...
15432         * modules/group-member (configure.ac): ... to here.
15433
15434 2011-05-08  Bruno Haible  <bruno@clisp.org>
15435
15436         grantpt: Move AC_LIBOBJ invocations to module description.
15437         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
15438         invocations from here...
15439         * modules/grantpt (configure.ac): ... to here.
15440
15441 2011-05-08  Bruno Haible  <bruno@clisp.org>
15442
15443         glob: Move AC_LIBOBJ invocations to module description.
15444         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
15445         from here...
15446         * modules/glob (configure.ac): ... to here.
15447
15448 2011-05-08  Bruno Haible  <bruno@clisp.org>
15449
15450         getusershell: Move AC_LIBOBJ invocations to module description.
15451         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
15452         Move AC_LIBOBJ invocation from here...
15453         * modules/getusershell (configure.ac): ... to here.
15454         (Depends-on): Update condition.
15455
15456 2011-05-08  Bruno Haible  <bruno@clisp.org>
15457
15458         gettimeofday: Move AC_LIBOBJ invocations to module description.
15459         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15460         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
15461         gl_PREREQ_GETTIMEOFDAY invocations from here...
15462         * modules/gettimeofday (configure.ac): ... to here.
15463
15464 2011-05-08  Bruno Haible  <bruno@clisp.org>
15465
15466         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
15467         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
15468         just gl_FUNC_TZSET.
15469         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
15470         (gl_FUNC_TZSET_CLOBBER): Remove actions.
15471         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
15472         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
15473
15474 2011-05-08  Bruno Haible  <bruno@clisp.org>
15475
15476         getsubopt: Move AC_LIBOBJ invocations to module description.
15477         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
15478         gl_PREREQ_GETSUBOPT invocations from here...
15479         * modules/getsubopt (configure.ac): ... to here.
15480
15481 2011-05-08  Bruno Haible  <bruno@clisp.org>
15482
15483         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15484         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15485         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15486         * modules/getpass-gnu (configure.ac): ... to here.
15487
15488 2011-05-08  Bruno Haible  <bruno@clisp.org>
15489
15490         getpass: Move AC_LIBOBJ invocations to module description.
15491         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15492         gl_PREREQ_GETPASS invocations from here...
15493         * modules/getpass (configure.ac): ... to here.
15494
15495 2011-05-08  Bruno Haible  <bruno@clisp.org>
15496
15497         getpagesize: Move AC_LIBOBJ invocations to module description.
15498         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15499         from here...
15500         * modules/getpagesize (configure.ac): ... to here.
15501
15502 2011-05-08  Bruno Haible  <bruno@clisp.org>
15503
15504         getopt: Move AC_LIBOBJ invocations to module description.
15505         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15506         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15507         invocations from here...
15508         * modules/getopt-gnu (configure.ac): ... to here.
15509         * modules/getopt-posix (configure.ac): ... and here.
15510         (Depends-on): Update condition.
15511
15512 2011-05-08  Bruno Haible  <bruno@clisp.org>
15513
15514         getopt, argp: Respect rules for use of AC_LIBOBJ.
15515         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15516         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15517         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15518         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15519
15520 2011-05-08  Bruno Haible  <bruno@clisp.org>
15521
15522         getlogin_r: Move AC_LIBOBJ invocations to module description.
15523         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15524         gl_PREREQ_GETLOGIN_R invocations from here...
15525         * modules/getlogin_r (configure.ac): ... to here.
15526
15527 2011-05-08  Bruno Haible  <bruno@clisp.org>
15528
15529         getlogin: Move AC_LIBOBJ invocations to module description.
15530         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15531         here...
15532         * modules/getlogin (configure.ac): ... to here.
15533
15534 2011-05-08  Bruno Haible  <bruno@clisp.org>
15535
15536         getloadavg: Move AC_LIBOBJ invocations to module description.
15537         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15538         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15539         * modules/getloadavg (configure.ac): ... to here.
15540
15541 2011-05-08  Bruno Haible  <bruno@clisp.org>
15542
15543         gethrxtime: Move AC_LIBOBJ invocations to module description.
15544         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15545         LIB_GETHRXTIME from here...
15546         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15547         invocations from here...
15548         * modules/gethrxtime (configure.ac): ... to here.
15549
15550 2011-05-08  Bruno Haible  <bruno@clisp.org>
15551
15552         gethostname: Move AC_LIBOBJ invocations to module description.
15553         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15554         gl_PREREQ_GETHOSTNAME invocations from here...
15555         * modules/gethostname (configure.ac): ... to here.
15556
15557 2011-05-08  Bruno Haible  <bruno@clisp.org>
15558
15559         getgroups: Move AC_LIBOBJ invocations to module description.
15560         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15561         here...
15562         * modules/getgroups (configure.ac): ... to here.
15563
15564 2011-05-08  Bruno Haible  <bruno@clisp.org>
15565
15566         getdtablesize: Move AC_LIBOBJ invocations to module description.
15567         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15568         invocation from here...
15569         * modules/getdtablesize (configure.ac): ... to here.
15570
15571 2011-05-08  Bruno Haible  <bruno@clisp.org>
15572
15573         getdomainname: Move AC_LIBOBJ invocations to module description.
15574         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15575         gl_PREREQ_GETDOMAINNAME invocations from here...
15576         * modules/getdomainname (configure.ac): ... to here.
15577
15578 2011-05-08  Bruno Haible  <bruno@clisp.org>
15579
15580         getline: Move AC_LIBOBJ invocations to module description.
15581         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15582         invocations from here...
15583         * modules/getline (configure.ac): ... to here.
15584
15585 2011-05-08  Bruno Haible  <bruno@clisp.org>
15586
15587         getline: Simplify.
15588         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15589         It's already handled through the module dependency.
15590
15591 2011-05-08  Bruno Haible  <bruno@clisp.org>
15592
15593         getdelim: Move AC_LIBOBJ invocations to module description.
15594         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15595         and gl_PREREQ_GETDELIM invocations from here...
15596         * modules/getdelim (configure.ac): ... to here.
15597         (Depends-on): Fix condition.
15598
15599 2011-05-08  Bruno Haible  <bruno@clisp.org>
15600
15601         getcwd: Move AC_LIBOBJ invocations to module description.
15602         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15603         invocations from here...
15604         * modules/getcwd (configure.ac): ... to here.
15605
15606 2011-05-08  Bruno Haible  <bruno@clisp.org>
15607
15608         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15609         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15610         here...
15611         * modules/getcwd-lgpl (configure.ac): ... to here.
15612
15613 2011-05-07  Bruno Haible  <bruno@clisp.org>
15614
15615         crypto/gc: Move AC_LIBOBJ invocations to module description.
15616         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15617         * modules/crypto/gc (configure.ac): ... to here.
15618
15619 2011-05-07  Bruno Haible  <bruno@clisp.org>
15620
15621         fwriting: Move AC_LIBOBJ invocations to module description.
15622         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15623         here...
15624         * modules/fwriting (configure.ac): ... to here.
15625
15626 2011-05-07  Bruno Haible  <bruno@clisp.org>
15627
15628         fwritable: Move AC_LIBOBJ invocations to module description.
15629         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15630         here...
15631         * modules/fwritable (configure.ac): ... to here.
15632
15633 2011-05-07  Bruno Haible  <bruno@clisp.org>
15634
15635         futimens: Move AC_LIBOBJ invocations to module description.
15636         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15637         here...
15638         * modules/futimens (configure.ac): ... to here.
15639
15640 2011-05-07  Bruno Haible  <bruno@clisp.org>
15641
15642         ftruncate: Move AC_LIBOBJ invocations to module description.
15643         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15644         gl_PREREQ_FTRUNCATE invocations from here...
15645         * modules/ftruncate (configure.ac): ... to here.
15646
15647 2011-05-07  Bruno Haible  <bruno@clisp.org>
15648
15649         fsync: Move AC_LIBOBJ invocations to module description.
15650         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15651         invocations from here...
15652         * modules/fsync (configure.ac): ... to here.
15653
15654 2011-05-07  Bruno Haible  <bruno@clisp.org>
15655
15656         fsusage: Move AC_LIBOBJ invocations to module description.
15657         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15658         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15659         * modules/fsusage (configure.ac): ... to here.
15660
15661 2011-05-07  Bruno Haible  <bruno@clisp.org>
15662
15663         freopen: Move AC_LIBOBJ invocations to module description.
15664         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15665         invocations from here...
15666         * modules/freopen (configure.ac): ... to here.
15667
15668 2011-05-07  Bruno Haible  <bruno@clisp.org>
15669
15670         free: Move AC_LIBOBJ invocations to module description.
15671         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15672         invocations from here...
15673         * modules/free (configure.ac): ... to here.
15674
15675 2011-05-07  Bruno Haible  <bruno@clisp.org>
15676
15677         freadable: Move AC_LIBOBJ invocations to module description.
15678         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15679         here...
15680         * modules/freadable (configure.ac): ... to here.
15681
15682 2011-05-07  Bruno Haible  <bruno@clisp.org>
15683
15684         fpurge: Move AC_LIBOBJ invocations to module description.
15685         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15686         invocations from here...
15687         * modules/fpurge (configure.ac): ... to here.
15688
15689 2011-05-07  Bruno Haible  <bruno@clisp.org>
15690
15691         fpending: Move AC_LIBOBJ invocations to module description.
15692         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15693         gl_FUNC_FPENDING.
15694         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15695         invocations from here...
15696         * modules/fpending (configure.ac): ... to here.
15697
15698 2011-05-07  Bruno Haible  <bruno@clisp.org>
15699
15700         fopen: Move AC_LIBOBJ invocations to module description.
15701         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15702         invocations from here...
15703         * modules/fopen (configure.ac): ... to here.
15704
15705 2011-05-07  Bruno Haible  <bruno@clisp.org>
15706
15707         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15708         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15709         gl_FUNC_FNMATCH_POSIX.
15710         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15711         invocations from here...
15712         * modules/fnmatch (configure.ac): ... to here.
15713         * modules/fnmatch-gnu (configure.ac): ... and here.
15714
15715 2011-05-07  Bruno Haible  <bruno@clisp.org>
15716
15717         flock: Move AC_LIBOBJ invocations to module description.
15718         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15719         invocations from here...
15720         * modules/flock (configure.ac): ... to here.
15721
15722 2011-05-07  Bruno Haible  <bruno@clisp.org>
15723
15724         fileblocks: Move AC_LIBOBJ invocations to module description.
15725         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15726         gl_PREREQ_FILEBLOCKS invocations from here...
15727         * modules/fileblocks (configure.ac): ... to here.
15728
15729 2011-05-06  Bruno Haible  <bruno@clisp.org>
15730
15731         fflush: Move AC_LIBOBJ invocations to module description.
15732         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15733         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15734         invocations from here...
15735         * modules/fflush (configure.ac): ... to here.
15736
15737 2011-05-06  Bruno Haible  <bruno@clisp.org>
15738
15739         fdopendir: Move AC_LIBOBJ invocations to module description.
15740         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15741         here...
15742         * modules/fdopendir (configure.ac): ... to here.
15743         (Depends-on): Improve conditions.
15744
15745 2011-05-06  Bruno Haible  <bruno@clisp.org>
15746
15747         _Exit: Move AC_LIBOBJ invocations to module description.
15748         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15749         invocations from here...
15750         * modules/_Exit (configure.ac): ... to here.
15751
15752 2011-05-21  Bruno Haible  <bruno@clisp.org>
15753
15754         euidaccess: Respect rules for use of AC_LIBOBJ.
15755         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15756         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15757         from here...
15758         * modules/euidaccess (configure.ac): ... to here.
15759
15760 2011-05-06  Bruno Haible  <bruno@clisp.org>
15761
15762         error: Move AC_LIBOBJ invocations to module description.
15763         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15764         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15765         invocations from here...
15766         * modules/error (configure.ac): ... to here.
15767
15768 2011-05-06  Bruno Haible  <bruno@clisp.org>
15769
15770         duplocale: Move AC_LIBOBJ invocations to module description.
15771         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15772         gl_PREREQ_DUPLOCALE invocations from here...
15773         * modules/duplocale (configure.ac): ... to here.
15774
15775 2011-05-05  Bruno Haible  <bruno@clisp.org>
15776
15777         dirfd: Move AC_LIBOBJ invocations to module description.
15778         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15779         gl_FUNC_DIRFD.
15780         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15781         here...
15782         * modules/dirfd (configure.ac): ... to here.
15783         (Depends-on): Fix condition.
15784
15785 2011-05-05  Bruno Haible  <bruno@clisp.org>
15786
15787         chown: Respect rules for use of AC_LIBOBJ.
15788         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15789         * modules/chown (configure.ac): ... to here.
15790
15791 2011-05-05  Bruno Haible  <bruno@clisp.org>
15792
15793         chdir-long: Move AC_LIBOBJ invocations to module description.
15794         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15795         gl_PREREQ_CHDIR_LONG invocations from here...
15796         * modules/chdir-long (configure.ac): ... to here.
15797
15798 2011-05-05  Bruno Haible  <bruno@clisp.org>
15799
15800         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15801         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15802         from here...
15803         * modules/canonicalize-lgpl (configure.ac): ... to here.
15804
15805 2011-05-05  Bruno Haible  <bruno@clisp.org>
15806
15807         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15808         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15809         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15810         REPLACE_CALLOC.
15811         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15812         * modules/calloc-gnu (configure.ac): Likewise.
15813
15814 2011-05-05  Bruno Haible  <bruno@clisp.org>
15815
15816         btowc: Move AC_LIBOBJ invocations to module description.
15817         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15818         invocations from here...
15819         * modules/btowc (configure.ac): ... to here.
15820
15821 2011-05-21  Bruno Haible  <bruno@clisp.org>
15822
15823         atexit: Move AC_LIBOBJ invocations to module description.
15824         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15825         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15826         here...
15827         * modules/atexit (configure.ac): ... to here.
15828
15829 2011-05-05  Bruno Haible  <bruno@clisp.org>
15830
15831         atoll: Move AC_LIBOBJ invocations to module description.
15832         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15833         invocations from here...
15834         * modules/atoll (configure.ac): ... to here.
15835
15836 2011-05-05  Bruno Haible  <bruno@clisp.org>
15837
15838         argz: Move AC_LIBOBJ invocations to module description.
15839         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15840         * modules/argz (configure.ac): ... to here.
15841
15842 2011-05-05  Bruno Haible  <bruno@clisp.org>
15843
15844         alphasort: Move AC_LIBOBJ invocations to module description.
15845         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15846         gl_PREREQ_ALPHASORT invocations from here...
15847         * modules/alphasort (configure.ac): ... to here.
15848
15849 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15850
15851         verify: new macro verify_expr; verify_true deprecated
15852         * NEWS: Mention this.
15853         * doc/verify.texi (Compile-time Assertions): Document this.
15854         * lib/verify.h (verify_true): Deprecate.
15855         (verify_expr): New macro.
15856         * tests/test-verify.c (function): Test verify_expr.
15857
15858 2011-06-14  Jim Meyering  <meyering@redhat.com>
15859
15860         init.sh: give more portable redirection-related advice in a comment
15861         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15862         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15863         for lots of discussion.  Stefano Lattarini suggested the solution
15864         of putting "9>&2" after the command.  Reported by Bruno Haible.
15865
15866 2011-06-13  Bruno Haible  <bruno@clisp.org>
15867
15868         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15869         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15870         'none'.
15871
15872 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15873
15874         ftoastr: use strtof only if HAVE_STRTOF
15875         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15877         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15878         * modules/ftoastr (configure.ac): Check for strtof.
15879
15880 2011-06-13  Bruno Haible  <bruno@clisp.org>
15881
15882         gnulib-tool: Addendum to 2011-06-08 commit.
15883         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15884         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15885
15886 2011-06-13  Bruno Haible  <bruno@clisp.org>
15887
15888         fseeko: Provide a non-inline replacement of fseek().
15889         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15890         * modules/fseeko (Depends-on): Add fseek.
15891         * modules/fseek (License): Change to LGPLv2+.
15892
15893 2011-06-13  Bruno Haible  <bruno@clisp.org>
15894
15895         ftello: Provide a non-inline replacement of ftell().
15896         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15897         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15898         not have ftello() (such as on mingw).
15899         * modules/ftello (Depends-on): Add ftell.
15900         * modules/ftell (License): Change to LGPLv2+.
15901
15902 2011-05-07  Bruno Haible  <bruno@clisp.org>
15903
15904         ftell: Move AC_LIBOBJ invocations to module description.
15905         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15906         * modules/ftell (configure.ac): ... to here.
15907
15908 2011-05-07  Bruno Haible  <bruno@clisp.org>
15909
15910         ftello: Respect rules for use of AC_LIBOBJ.
15911         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15912         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15913         here...
15914         * modules/ftello (configure.ac): ... to here.
15915
15916 2011-05-07  Bruno Haible  <bruno@clisp.org>
15917
15918         fseeko: Simplify.
15919         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15920         (gl_FUNC_FSEEKO): Inline it here.
15921
15922 2011-05-07  Bruno Haible  <bruno@clisp.org>
15923
15924         fseek: Move AC_LIBOBJ invocations to module description.
15925         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15926         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15927         * modules/fseek (configure.ac): ... to here.
15928
15929 2011-05-07  Bruno Haible  <bruno@clisp.org>
15930
15931         fseek: Respect rules for use of AC_LIBOBJ.
15932         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15933         here...
15934         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15935
15936 2011-05-07  Bruno Haible  <bruno@clisp.org>
15937
15938         fseeko: Respect rules for use of AC_LIBOBJ.
15939         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15940         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15941         here...
15942         * modules/fseeko (configure.ac): ... to here.
15943
15944 2011-06-13  Bruno Haible  <bruno@clisp.org>
15945
15946         gnulib-tool: Allow comments in the 'Depends-on' section.
15947         * doc/gnulib.texi (Module description): Mention comment syntax in the
15948         Depends-on section.
15949         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15950
15951 2011-06-13  Bruno Haible  <bruno@clisp.org>
15952
15953         file-set.h: guard __attibute__ use, now that it's not always defined
15954         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15955         versions that support it.  This fixes a coreutils build failure with
15956         the vendor cc on HP-UX 11.31.
15957
15958 2011-06-12  Bruno Haible  <bruno@clisp.org>
15959
15960         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15961         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15962         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15963         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15964         (acl, aclsort): New declarations.
15965         (aclv_nontrivial): New declaration.
15966         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15967         (file_has_acl): Read also the second kind of HP-UX ACLs.
15968         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15969         kind of HP-UX ACLs if the first kind fails.
15970         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15971         second kind of HP-UX ACLs.
15972         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15973         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15974         agree.
15975         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15976         hpuxjfs.
15977         Handle hpuxjfs.
15978         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15979         hpuxjfs.
15980         Handle hpuxjfs.
15981         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15982         (func_test_same_acls): Use both lsacl and getacl.
15983         Handle hpuxjfs.
15984         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15985         (func_test_same_acls): Use both lsacl and getacl.
15986         Handle hpuxjfs.
15987
15988 2011-06-12  Bruno Haible  <bruno@clisp.org>
15989
15990         acl: Complete the 2010-08-10 fix.
15991         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15992         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15993         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15994         explicitly.
15995         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15996         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15997
15998 2011-06-12  Bruno Haible  <bruno@clisp.org>
15999
16000         spawn-pipe tests: Comments.
16001         * tests/test-spawn-pipe-child.c (main): Update comment.
16002         Reported by James Youngman <jay@gnu.org>.
16003
16004 2011-06-11  James Youngman  <jay@gnu.org>
16005
16006         New module 'stat-size'.
16007         * modules/stat-size: New module.  Provides macros for accessing
16008         file size information in instances of struct stat.  Depends on the
16009         fileblocks module because it calls st_blocks.
16010         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16011         * doc/gnulib.texi: Include stat-size.texi.
16012         * doc/stat-size.texi: Documentation for this module.
16013         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16014         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16015         AC_STRUCT_ST_BLOCKS.
16016
16017 2011-06-09  Bruno Haible  <bruno@clisp.org>
16018
16019         thread: Support pthreads-win32.
16020         * lib/glthread/thread.h (gl_thread_self): Define differently on
16021         pthreads-win32.
16022         (gl_null_thread): New declaration.
16023         (gl_thread_self_pointer): New macro.
16024         * lib/glthread/thread.c (gl_null_thread): New constant.
16025         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16026         gl_thread_self.
16027         * tests/test-tls.c: Likewise.
16028         Suggested by Paul Eggert. Reported by Eric Blake.
16029
16030 2011-06-09  Bruno Haible  <bruno@clisp.org>
16031
16032         thread: Fix confusion between NULL and 0.
16033         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16034         Reported by Paul Eggert.
16035
16036 2011-06-09  Bruno Haible  <bruno@clisp.org>
16037
16038         spawn-pipe tests: Avoid test failure on HP-UX 11.
16039         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16040         is closed.
16041
16042 2011-06-09  Bruno Haible  <bruno@clisp.org>
16043
16044         acl tests: Fix compilation error on HP-UX 11.
16045         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16046
16047 2011-06-09  Bruno Haible  <bruno@clisp.org>
16048
16049         rmdir: Avoid test failure on HP-UX 10.20.
16050         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16051         EEXIST.
16052
16053 2011-06-08  Eric Blake  <eblake@redhat.com>
16054
16055         perror: fix test on mingw
16056         * modules/perror-tests (Depends-on): Add dup2.
16057
16058         strerror_r-posix: fix on MacOS
16059         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16060         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16061         logic bug.
16062         * lib/strerror_r.c (strerror_r): Fix the bug.
16063         * lib/strerror.c (strerror): Likewise.
16064         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16065         problem.
16066         * doc/posix-functions/strerror.texi (strerror): Likewise.
16067         * doc/posix-functions/perror.texi (perror): Likewise.
16068         * tests/test-strerror.c (main): Enhance test.
16069         * tests/test-strerror_r.c (main): Likewise.
16070
16071 2011-06-08  Bruno Haible  <bruno@clisp.org>
16072
16073         gnulib-tool: Better isolation between different gnulib-tool invocations.
16074         * gnulib-tool: New option --witness-c-macro.
16075         (witness_c_macro): New variable.
16076         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16077         AM_CPPFLAGS define it as a C macro.
16078         (func_emit_tests_Makefile_am): Likewise.
16079         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16080         read it from there.
16081         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16082         m4_define, not AC_DEFUN.
16083         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16084         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16085         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16086         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16087         s|...|...|, to substitute the values of the GNULIB_* module indicator
16088         variables.
16089         * modules/dirent (Makefile.am): Likewise.
16090         * modules/fcntl-h (Makefile.am): Likewise.
16091         * modules/iconv-h (Makefile.am): Likewise.
16092         * modules/langinfo (Makefile.am): Likewise.
16093         * modules/locale (Makefile.am): Likewise.
16094         * modules/math (Makefile.am): Likewise.
16095         * modules/netdb (Makefile.am): Likewise.
16096         * modules/poll-h (Makefile.am): Likewise.
16097         * modules/pty (Makefile.am): Likewise.
16098         * modules/search (Makefile.am): Likewise.
16099         * modules/signal (Makefile.am): Likewise.
16100         * modules/spawn (Makefile.am): Likewise.
16101         * modules/stdio (Makefile.am): Likewise.
16102         * modules/stdlib (Makefile.am): Likewise.
16103         * modules/string (Makefile.am): Likewise.
16104         * modules/sys_ioctl (Makefile.am): Likewise.
16105         * modules/sys_select (Makefile.am): Likewise.
16106         * modules/sys_socket (Makefile.am): Likewise.
16107         * modules/sys_stat (Makefile.am): Likewise.
16108         * modules/sys_times (Makefile.am): Likewise.
16109         * modules/sys_utsname (Makefile.am): Likewise.
16110         * modules/sys_wait (Makefile.am): Likewise.
16111         * modules/termios (Makefile.am): Likewise.
16112         * modules/time (Makefile.am): Likewise.
16113         * modules/unistd (Makefile.am): Likewise.
16114         * modules/wchar (Makefile.am): Likewise.
16115
16116 2011-06-08  Eric Blake  <eblake@redhat.com>
16117
16118         strerror: simplify replacement
16119         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16120         * modules/strerror (configure.ac): No prereqs needed here...
16121         * modules/strerror-override (configure.ac): ...but this needs it.
16122         (Files): Add file for needed prereq macro.
16123
16124 2011-06-08  Bruno Haible  <bruno@clisp.org>
16125
16126         strerror_r-posix: Tweaks.
16127         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16128         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16129         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16130         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16131         (gl_FUNC_STRERROR_R): ... to here.
16132         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16133
16134 2011-06-07  Eric Blake  <eblake@redhat.com>
16135
16136         perror: document fixed bugs
16137         * doc/posix-functions/perror.texi (perror): Document recent
16138         patches.
16139
16140 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16141
16142         stat-time: get_stat_birthtime failure is better-defined
16143         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16144         return a timestamp whose tv_sec and tv_nsec values are both -1.
16145         Previously, the spec said only that the tv_nsec value was negative.
16146         This upward-compatible change simplifies GNU tar a bit.
16147
16148 2011-06-07  Eric Blake  <eblake@redhat.com>
16149
16150         strerror_r-posix: work around cygwin 1.7.9
16151         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16152         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16153         bug without replacing strerror_r.
16154         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16155         strerror_r is buggy, but without requiring strerror_r compilation.
16156         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16157
16158         test-perror: relax test to ignore cygwin bug
16159         * tests/test-perror2.c (main): Relax test on requiring detection
16160         of stream errors, and use unbuffered stream.
16161         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16162         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16163         * doc/posix-functions/fputc.texi (fputc): Likewise.
16164         * doc/posix-functions/fputs.texi (fputs): Likewise.
16165         * doc/posix-functions/fputws.texi (fputws): Likewise.
16166         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16167         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16168         * doc/posix-functions/getopt.texi (getopt): Likewise.
16169         * doc/posix-functions/perror.texi (perror): Likewise.
16170         * doc/posix-functions/printf.texi (printf): Likewise.
16171         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16172         * doc/posix-functions/psignal.texi (psignal): Likewise.
16173         * doc/posix-functions/putc.texi (putc): Likewise.
16174         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16175         Likewise.
16176         * doc/posix-functions/putchar.texi (putchar): Likewise.
16177         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16178         Likewise.
16179         * doc/posix-functions/puts.texi (puts): Likewise.
16180         * doc/posix-functions/putwc.texi (putwc): Likewise.
16181         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16182         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16183         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16184         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16185         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16186         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16187         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16188         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16189
16190 2011-05-22  Bruno Haible  <bruno@clisp.org>
16191
16192         strerror: Move AC_LIBOBJ invocations to module description.
16193         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16194         gl_PREREQ_STRERROR invocations from here...
16195         * modules/strerror (configure.ac): ... to here.
16196
16197 2011-05-21  Bruno Haible  <bruno@clisp.org>
16198
16199         perror: Use common idiom.
16200         * modules/perror (configure.ac): Reorder statements.
16201
16202 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16203
16204         tests: fix usage message in 'mktempd_'
16205         * tests/init.sh (mktempd_): In the usage message, use literal
16206         'mktempd_', not '$ME' (which is even undefined), as the name of
16207         the subroutine.
16208
16209 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16210
16211         tests init: new function 'fatal_', for hard errors
16212         Before this patch, the only way offered by tests/init.sh to
16213         properly signal a hard error was the `framework_failure_'
16214         function.  But the error message issued by that function,
16215         as its name would suggest, refers to a set-up failure in the
16216         testsuite, while hard errors can obviously also be due to
16217         other reasons.  The best way to fix this inconsistency is to
16218         introduce a new function with a more general error message.
16219         * tests/init.sh (fatal_): New function.
16220
16221 2011-06-06  Eric Blake  <eblake@redhat.com>
16222
16223         canonicalize-lgpl: use common idiom
16224         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16225         over newer POSIX -Rf.
16226         Reported by Bruno Haible.
16227
16228         canonicalize-lgpl: work around AIX realpath bug
16229         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16230         * doc/posix-functions/realpath.texi (realpath): Document it.
16231         Reported by Bruno Haible.
16232
16233         strerror: work around FreeBSD bug
16234         * lib/strerror.c (strerror): Special case 0.
16235         Reported by Bruno Haible.
16236
16237         strerror-override: avoid bloating errno module
16238         * modules/errno (Files, configure.ac): Move replacement strings...
16239         * modules/strerror-override: ...to new module.
16240         * modules/strerror (Depends-on): Add strerror-override.
16241         * modules/strerror_r-posix (Depends-on): Likewise.
16242         * MODULES.html.sh: Document new module.
16243         Reported by Bruno Haible.
16244
16245 2011-06-06  Bruno Haible  <bruno@clisp.org>
16246
16247         spawn-pipe tests: Rename program.
16248         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16249         * tests/test-spawn-pipe-child.c: Update comment.
16250         * tests/test-spawn-pipe.sh: Update.
16251         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16252
16253         spawn-pipe tests: Link the child program only against libc.
16254         * tests/test-spawn-pipe-child.c: New file, extracted from
16255         tests/test-spawn-pipe.c.
16256         (main): Expect only one argument.
16257         (is_open): New function, copied from tests/test-pipe.c.
16258         * tests/test-spawn-pipe.c: Don't include <errno.h>.
16259         (child_main): Remove function.
16260         (test_pipe): Pass only one argument to the child program.
16261         (main): Remove child process code. Expect the child program's name as
16262         first argument.
16263         * tests/test-spawn-pipe.sh: Pass the child program's name as first
16264         argument.
16265         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16266         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16267         test-spawn-pipe-child against no libraries.
16268
16269 2011-06-06  Bruno Haible  <bruno@clisp.org>
16270
16271         careadlinkat: Avoid mismatch between ssize_t and int.
16272         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16273         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16274
16275 2011-06-06  Jim Meyering  <meyering@redhat.com>
16276
16277         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16278         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16279         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16280
16281 2011-06-05  Bruno Haible  <bruno@clisp.org>
16282
16283         ansi-c++-opt: Interoperability with libtool.
16284         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16285         set the variable to "no", not to ":".
16286         * NEWS: Mention the change.
16287
16288 2011-06-05  Bruno Haible  <bruno@clisp.org>
16289
16290         acl: Fix test failure on AIX 7.
16291         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16292         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16293
16294 2011-06-05  Bruno Haible  <bruno@clisp.org>
16295
16296         pipe-filter-ii: Fix test failure on AIX and IRIX.
16297         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16298         with EAGAIN, retry with a smaller buffer size.
16299
16300 2011-06-05  Bruno Haible  <bruno@clisp.org>
16301
16302         localename: Fix link dependencies.
16303         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16304         * modules/localename-tests (Makefile.am): Link test-localename with
16305         $(LIBTHREAD).
16306
16307 2011-06-05  Bruno Haible  <bruno@clisp.org>
16308
16309         error: Avoid gcc warning.
16310         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16311
16312 2011-06-05  Bruno Haible  <bruno@clisp.org>
16313
16314         unsetenv: Avoid gcc warning.
16315         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16316
16317 2011-06-05  Bruno Haible  <bruno@clisp.org>
16318
16319         setenv: Avoid gcc warning.
16320         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16321
16322 2011-06-05  Bruno Haible  <bruno@clisp.org>
16323
16324         sys_select: Ensure memset is declared also on AIX 7.
16325         * lib/sys_select.in.h: Include <string.h> also on AIX.
16326         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16327         self-contained also on AIX 7.1.
16328
16329 2011-06-04  Jim Meyering  <meyering@redhat.com>
16330
16331         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
16332         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
16333         function name, "error".
16334         (_gl_translatable_diag_func_re): New configurable variable.
16335
16336 2011-06-04  Bruno Haible  <bruno@clisp.org>
16337
16338         getopt: Avoid gcc warning.
16339         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
16340
16341 2011-06-04  Bruno Haible  <bruno@clisp.org>
16342
16343         strerror_r: Fix comments.
16344         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
16345         commit.
16346
16347 2011-06-04  Bruno Haible  <bruno@clisp.org>
16348
16349         perror: Fix compilation error.
16350         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
16351         Undefine fprintf, not sprintf.
16352         * modules/perror (Depends-on): Remove intprops, verify.
16353
16354 2011-06-04  Bruno Haible  <bruno@clisp.org>
16355
16356         setlocale: Enable replacement on Cygwin 1.5.
16357         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
16358         Cygwin 1.5.x.
16359         * doc/posix-functions/setlocale.texi: Mention that the problem with the
16360         LC_CTYPE category also exists on Cygwin 1.5.x.
16361
16362 2011-06-04  Bruno Haible  <bruno@clisp.org>
16363
16364         strerror-override: Don't disable symbol renamings.
16365         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
16366         * lib/strerror-override.c: Include config.h.
16367         (strerror_override): Don't undefine.
16368
16369 2011-06-03  Bruno Haible  <bruno@clisp.org>
16370
16371         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
16372         * lib/localename.h: Update copyright header.
16373         * lib/localename.c: Likewise.
16374         * lib/relocatable.h: Likewise.
16375         * lib/relocatable.c: Likewise.
16376
16377 2011-06-02  Bruno Haible  <bruno@clisp.org>
16378
16379         doc: Fix a module name.
16380         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
16381
16382 2011-06-02  Bruno Haible  <bruno@clisp.org>
16383
16384         pipe2: Remove dependency on 'nonblocking' module.
16385         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16386         O_NONBLOCK is defined by gnulib.
16387         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16388         is zero.
16389         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16390         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16391         defined by gnulib.
16392         (get_nonblocking_flag): New function.
16393         (main): Test O_NONBLOCK flag only if it is nonzero.
16394         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16395
16396 2011-06-03  Jim Meyering  <meyering@redhat.com>
16397
16398         maint: three new prohibit-header-without-use rules
16399         Prohibit use of cloexec.h, posixver.h, same.h without use.
16400         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16401         (sc_prohibit_posixver_without_use): Likewise.
16402         (sc_prohibit_same_without_use): Likewise.
16403
16404 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16405
16406         allocator: 'die' routine is now given requested size
16407         * lib/allocator.h (struct allocator.die): New size arg.
16408         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
16409         If the actual problem is an ssize_t limitation, not a size_t or
16410         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
16411
16412 2011-06-01  Eric Blake  <eblake@redhat.com>
16413
16414         strerror: drop strerror_r dependency
16415         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
16416         * lib/strerror-override.c (strerror_override): ...to new file.
16417         * lib/strerror-override.h: Add prototype.
16418         * lib/strerror-impl.h: Delete.
16419         * lib/strerror.c (strerror): New implementation.
16420         * modules/errno (Files): Add new files.
16421         (configure.ac): Compile new file as appropriate.
16422         * modules/strerror (Files): Drop unused file.
16423         (Depends-on): Drop strerror_r-posix.
16424         * MODULES.html.sh: Document strerror_r-posix.
16425         Requested by Sam Steingold.
16426
16427         perror: call strerror_r directly
16428         * modules/perror (Files): Drop strerror-impl.h.
16429         * lib/perror.c (perror): Use our own stack buffer, rather than
16430         calling a wrapper that uses static storage.
16431         * doc/posix-functions/perror.texi (perror): Document a limitation
16432         of our replacement.
16433
16434         strerror_r: fix includes for FreeBSD
16435         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16436         since we use abort on some platforms.
16437         Reported by Matthias Bolte.
16438
16439 2011-05-31  Bruno Haible  <bruno@clisp.org>
16440
16441         Fix link errors in tests: openat-die uses gettext-h.
16442         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
16443         against $(LIBINTL).
16444         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
16445         against $(LIBINTL).
16446         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
16447         $(LIBINTL).
16448         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
16449         against $(LIBINTL).
16450         * modules/linkat-tests (Makefile.am): Link test-linkat against
16451         $(LIBINTL).
16452         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
16453         $(LIBINTL).
16454         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
16455         against $(LIBINTL).
16456         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
16457         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
16458         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
16459         $(LIBINTL).
16460         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
16461         $(LIBINTL).
16462         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
16463         $(LIBINTL).
16464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16465
16466 2011-05-31  Bruno Haible  <bruno@clisp.org>
16467
16468         Fix link errors in tests: wait-process uses gettext-h.
16469         * modules/nonblocking-pipe-tests (Makefile.am): Set
16470         test_nonblocking_pipe_main_LDADD.
16471         * modules/nonblocking-socket-tests (Makefile.am): Link
16472         test-nonblocking-socket-main against $(LIBINTL).
16473         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16474
16475 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16476
16477         assert-h: work around 'verify' incompatibility
16478         * lib/verify.h: Use @...@ directives, not ifdef.
16479         * modules/assert-h (assert.h): Implement the directives.
16480         (assert.h): Substitute the symbol-prefix more consistently.
16481
16482 2011-05-29  Jim Meyering  <meyering@redhat.com>
16483
16484         trim: remove three superfluous assignments
16485         * lib/trim.c (trim2): Remove three superfluous assignments
16486         and correct brace positioning.
16487
16488 2011-05-29  Bruno Haible  <bruno@clisp.org>
16489
16490         wctype-h: Avoid namespace pollution on Solaris 2.6.
16491         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16492         identifiers.
16493         * doc/posix-headers/wctype.texi: Mention the problem.
16494         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16495
16496 2011-05-28  Jim Meyering  <meyering@redhat.com>
16497
16498         parse-datetime.y: accommodate -Wstrict-overflow
16499         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16500         placate -Wstrict-overflow.
16501
16502         trim: avoid a warning from -O2 -Wstrict-overflow
16503         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16504
16505 2011-05-29  Bruno Haible  <bruno@clisp.org>
16506
16507         gnulib-tool: Fix bug in yesterday's commit.
16508         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16509         twice.
16510
16511 2011-05-29  Bruno Haible  <bruno@clisp.org>
16512
16513         Allow multiple gnulib generated include files to be combined.
16514         * gnulib-tool (func_compute_include_guard_prefix): New function.
16515         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16516         ${gl_include_guard_prefix} references.
16517         (func_import, func_create_testdir): Invoke
16518         func_compute_include_guard_prefix.
16519         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16520         * lib/ctype.in.h: Likewise.
16521         * lib/dirent.in.h: Likewise.
16522         * lib/errno.in.h: Likewise.
16523         * lib/fcntl.in.h: Likewise.
16524         * lib/float.in.h: Likewise.
16525         * lib/getopt.in.h: Likewise.
16526         * lib/iconv.in.h: Likewise.
16527         * lib/langinfo.in.h: Likewise.
16528         * lib/locale.in.h: Likewise.
16529         * lib/math.in.h: Likewise.
16530         * lib/netdb.in.h: Likewise.
16531         * lib/netinet_in.in.h: Likewise.
16532         * lib/poll.in.h: Likewise.
16533         * lib/pthread.in.h: Likewise.
16534         * lib/pty.in.h: Likewise.
16535         * lib/sched.in.h: Likewise.
16536         * lib/se-selinux.in.h: Likewise.
16537         * lib/search.in.h: Likewise.
16538         * lib/signal.in.h: Likewise.
16539         * lib/spawn.in.h: Likewise.
16540         * lib/stdarg.in.h: Likewise.
16541         * lib/stddef.in.h: Likewise.
16542         * lib/stdint.in.h: Likewise.
16543         * lib/stdio.in.h: Likewise.
16544         * lib/stdlib.in.h: Likewise.
16545         * lib/string.in.h: Likewise.
16546         * lib/strings.in.h: Likewise.
16547         * lib/sys_file.in.h: Likewise.
16548         * lib/sys_ioctl.in.h: Likewise.
16549         * lib/sys_select.in.h: Likewise.
16550         * lib/sys_socket.in.h: Likewise.
16551         * lib/sys_stat.in.h: Likewise.
16552         * lib/sys_time.in.h: Likewise.
16553         * lib/sys_times.in.h: Likewise.
16554         * lib/sys_uio.in.h: Likewise.
16555         * lib/sys_utsname.in.h: Likewise.
16556         * lib/sys_wait.in.h: Likewise.
16557         * lib/sysexits.in.h: Likewise.
16558         * lib/termios.in.h: Likewise.
16559         * lib/time.in.h: Likewise.
16560         * lib/unistd.in.h: Likewise.
16561         * lib/wchar.in.h: Likewise.
16562         * lib/wctype.in.h: Likewise.
16563         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16564         * modules/ctype (Makefile.am): Likewise.
16565         * modules/dirent (Makefile.am): Likewise.
16566         * modules/errno (Makefile.am): Likewise.
16567         * modules/fcntl-h (Makefile.am): Likewise.
16568         * modules/float (Makefile.am): Likewise.
16569         * modules/getopt-posix (Makefile.am): Likewise.
16570         * modules/iconv-h (Makefile.am): Likewise.
16571         * modules/langinfo (Makefile.am): Likewise.
16572         * modules/locale (Makefile.am): Likewise.
16573         * modules/math (Makefile.am): Likewise.
16574         * modules/netdb (Makefile.am): Likewise.
16575         * modules/netinet_in (Makefile.am): Likewise.
16576         * modules/poll-h (Makefile.am): Likewise.
16577         * modules/pthread (Makefile.am): Likewise.
16578         * modules/pty (Makefile.am): Likewise.
16579         * modules/sched (Makefile.am): Likewise.
16580         * modules/search (Makefile.am): Likewise.
16581         * modules/selinux-h (Makefile.am): Likewise.
16582         * modules/signal (Makefile.am): Likewise.
16583         * modules/spawn (Makefile.am): Likewise.
16584         * modules/stdarg (Makefile.am): Likewise.
16585         * modules/stddef (Makefile.am): Likewise.
16586         * modules/stdint (Makefile.am): Likewise.
16587         * modules/stdio (Makefile.am): Likewise.
16588         * modules/stdlib (Makefile.am): Likewise.
16589         * modules/string (Makefile.am): Likewise.
16590         * modules/strings (Makefile.am): Likewise.
16591         * modules/sys_file (Makefile.am): Likewise.
16592         * modules/sys_ioctl (Makefile.am): Likewise.
16593         * modules/sys_select (Makefile.am): Likewise.
16594         * modules/sys_socket (Makefile.am): Likewise.
16595         * modules/sys_stat (Makefile.am): Likewise.
16596         * modules/sys_time (Makefile.am): Likewise.
16597         * modules/sys_times (Makefile.am): Likewise.
16598         * modules/sys_uio (Makefile.am): Likewise.
16599         * modules/sys_utsname (Makefile.am): Likewise.
16600         * modules/sys_wait (Makefile.am): Likewise.
16601         * modules/sysexits (Makefile.am): Likewise.
16602         * modules/termios (Makefile.am): Likewise.
16603         * modules/time (Makefile.am): Likewise.
16604         * modules/unistd (Makefile.am): Likewise.
16605         * modules/wchar (Makefile.am): Likewise.
16606         * modules/wctype-h (Makefile.am): Likewise.
16607         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16608
16609 2011-05-29  Bruno Haible  <bruno@clisp.org>
16610
16611         assert-h: Allow multiple gnulib generated replacements to coexist.
16612         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16613
16614 2011-05-29  Bruno Haible  <bruno@clisp.org>
16615
16616         argp: Allow coexistence with strerror_r-posix module.
16617         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16618         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16619         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16620         not the glibc signature.
16621
16622 2011-05-28  Bruno Haible  <bruno@clisp.org>
16623
16624         gnulib-tool: Alternative structure of testdirs, similar to --import.
16625         * gnulib-tool: New option --single-configure.
16626         (func_usage): Document it.
16627         (single_configure): New variable.
16628         (func_modules_transitive_closure_separately,
16629         func_modules_transitive_closure_separately,
16630         func_determine_use_libtests, func_modules_add_dummy_separately,
16631         func_modules_to_filelist_separately): New functions, extracted from
16632         func_import.
16633         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16634         (func_import): Use the new functions.
16635         (func_create_testdir): Set final_modules. Handle $single_configure =
16636         true case.
16637
16638 2011-05-28  Bruno Haible  <bruno@clisp.org>
16639
16640         getloadavg: Remove an unreliable safety check.
16641         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16642         getloadavg.c is in place.
16643         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16644         Reported by Sam Steingold <sds@gnu.org>.
16645
16646 2011-05-28  Bruno Haible  <bruno@clisp.org>
16647
16648         doc: Cleanup yet another file produced by texinfo.tex.
16649         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16650
16651 2011-05-28  Bruno Haible  <bruno@clisp.org>
16652
16653         Finish the conditional dependencies mechanism.
16654         * gnulib-tool: New option --no-conditional-dependencies.
16655         (func_usage): Document it. Don't mark --conditional-dependencies as
16656         experimental.
16657         (cond_dependencies): The possible values can now be true, false, empty.
16658         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16659         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16660         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16661
16662 2011-05-28  Bruno Haible  <bruno@clisp.org>
16663
16664         doc: Use a recent texinfo.tex.
16665         * doc/Makefile (tex_opts): New variable.
16666         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16667
16668 2011-05-28  Jim Meyering  <meyering@redhat.com>
16669
16670         intprops.h: adjust comment to match code change
16671         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16672         only once, it *may* have side effects.  Also fix an unrelated typo.
16673         (_GL_INT_SIGNED): Likewise.
16674
16675 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16676
16677         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16678
16679 2011-05-26  Bruno Haible  <bruno@clisp.org>
16680
16681         mbsrchr: Avoid collision with system function on Interix.
16682         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16683         Reported by Markus Duft <mduft@gentoo.org>.
16684
16685 2011-05-15  James Youngman  <jay@gnu.org>
16686
16687         getopt: for ambiguous options, enumerate the possibilities.
16688         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16689         the ambiguous options when an ambiguous prefix is given. This was
16690         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16691         glibc change was
16692         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16693
16694 2011-05-25  Eric Blake  <eblake@redhat.com>
16695
16696         getcwd: work around mingw bug
16697         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16698         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16699         Reported by Matthias Bolte.
16700
16701 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16702
16703         test-intprops: disable -Wtype-limits diagnostics
16704         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16705         diagnostics.  Otherwise, the integer overflow macros generate many
16706         diagnostics.  Reported by Jim Meyering in
16707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16708
16709         intprops: shorten, to pacify gcc -Woverlength-strings
16710         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16711         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16712         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16713         likely to run afoul of C compiler limits for string constant lengths.
16714         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16715
16716 2011-05-24  Eric Blake  <eblake@redhat.com>
16717
16718         docs: document recently fixed glibc printf bug
16719         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16720         * doc/posix-functions/printf.texi (printf): Likewise.
16721         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16722         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16723
16724         closein-tests: convert to init.sh
16725         * modules/closein-tests (Files): Add init.sh
16726         * tests/test-closein.sh Use it.
16727
16728         yesno-tests: convert to init.sh
16729         * modules/yesno-tests (Files): Add init.sh.
16730         * tests/test-yesno.sh: Use it.
16731
16732         atexit-tests: ensure reliable exit status
16733         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16734         Reported by Bruno Haible.
16735
16736 2011-05-24  Bruno Haible  <bruno@clisp.org>
16737
16738         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16739         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16740         gl_PREREQ_STRERROR_R invocations from here...
16741         * modules/strerror_r-posix (configure.ac): ... to here.
16742
16743 2011-05-24  Eric Blake  <eblake@redhat.com>
16744
16745         strerror_r: fix missing header
16746         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16747
16748         strerror_r: fix AIX test failures
16749         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16750         ERANGE failure.
16751
16752         strerror_r: fix Solaris test failures
16753         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16754         failures.
16755         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16756
16757         strerror_r: enforce POSIX recommendations
16758         * lib/strerror_r.c (safe_copy): New helper method.
16759         (strerror_r): Guarantee a non-empty string.
16760         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16761         recent POSIX rulings and to match our strerror guarantees.
16762         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16763
16764 2011-05-24  Jim Meyering  <meyering@redhat.com>
16765
16766         test-perror2.c: avoid warning about unused variable
16767         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16768
16769 2011-05-24  Eric Blake  <eblake@redhat.com>
16770
16771         perror: avoid spurious test failure on HP-UX
16772         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16773
16774         tests: fix logic bug in init.sh
16775         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16776         shell.
16777
16778 2011-05-24  Jim Meyering  <meyering@redhat.com>
16779
16780         utimensat: do not reference an out-of-scope buffer
16781         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16782         declared in an inner scope, yet "times" would be dereferenced outside
16783         the scope in which "ts" was valid.
16784         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16785         of ts[2] "out/up", so that the use of aliased "times" (via
16786         "times = ts;") does not end up referencing an out-of-scope "ts"
16787
16788         opendir-safer.c: don't clobber errno; don't close negative FD
16789         * lib/opendir-safer.c (opendir_safer):
16790         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16791         file descriptor, and more importantly, don't clobber the
16792         offending errno value with EINVAL.  Before, upon failure
16793         of dup_safer, we would pass the negative file descriptor to
16794         fdopendir, which would clobber errno.
16795
16796 2011-05-23  Bruno Haible  <bruno@clisp.org>
16797
16798         idcache: Fix module description.
16799         * modules/idcache (Include): Set to "idcache.h".
16800
16801 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16802
16803         gnulib-tool: fix portability problem with MacOS sed
16804         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16805         before the "}".  Problem reported by Leo in
16806         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16807         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16808         sed_extract_condition1, sed_extract_condition2.
16809
16810 2011-05-23  Bruno Haible  <bruno@clisp.org>
16811
16812         hash: Simplify autoconf macro.
16813         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16814
16815 2011-05-23  Bruno Haible  <bruno@clisp.org>
16816
16817         getugroups: Fix module description.
16818         * modules/getugroups (Include): Set to "getugroups.h".
16819
16820 2011-05-23  Bruno Haible  <bruno@clisp.org>
16821
16822         linkat: Simplify autoconf macro.
16823         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16824
16825 2011-05-23  Bruno Haible  <bruno@clisp.org>
16826             Eric Blake  <eblake@redhat.com>
16827
16828         linkat, renameat: Update dependencies.
16829         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16830         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16831         symlinkat.
16832
16833 2011-05-23  Jim Meyering  <meyering@redhat.com>
16834
16835         maint.mk: more tight_scope improvements
16836         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16837         (_gl_TS_headers): Define only in if-0'd block.
16838         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16839         sometimes we must *not* use it.  Adjust uses accordingly.
16840         (sc_tight_scope): Use much simpler grep-based test to determine
16841         whether we skip this rule.
16842
16843         maint.mk: generalize/improve the tight-scope rule
16844         * top/maint.mk: Emit a warning when the test is skipped.
16845         (_gl_TS_dir): Add $(srcdir)/ prefix.
16846         (_gl_TS_function_match): Simplify, rather than trying
16847         to enumerate common types.  Otherwise, it would fail to match an
16848         "extern unsigned char const *" declaration in idutils.
16849         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16850         a way to support use of that type of macro.
16851         (_gl_TS_var_match): Simplify regexp.
16852         (_gl_TS_obj_files): New configurable variable.
16853         (_gl_TS_headers): Likewise.
16854
16855 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16856
16857         verify: fix bug when gnulib <assert.h> is also included
16858         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16859         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16860         Perhaps there's a better way, but this fixes the immediate problem.
16861         Problem reported by Bruno Haible in
16862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16863
16864 2011-05-22  Bruno Haible  <bruno@clisp.org>
16865
16866         xgetcwd: Simplify autoconf macro.
16867         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16868
16869 2011-05-22  Bruno Haible  <bruno@clisp.org>
16870
16871         New module 'mktime-internal'.
16872         * modules/mktime-internal: New file.
16873         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16874         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16875         mktime_internal as a C macro if libc has __mktime_internal.
16876         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16877         conditions.
16878         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16879
16880 2011-05-22  Bruno Haible  <bruno@clisp.org>
16881
16882         timegm: Correct mktime replacement statements.
16883         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16884         defining mktime as a C macro. This completes a 2009-07-28 commit.
16885
16886 2011-05-22  Bruno Haible  <bruno@clisp.org>
16887
16888         timegm: Simplify autoconf macro.
16889         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16890
16891 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16892
16893         clock-time: change to LGPLv2+.
16894         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16895         BSD-like but we have no mark for that; this is good enough for now.
16896
16897 2011-05-21  Bruno Haible  <bruno@clisp.org>
16898
16899         strerror_r: Fix comments.
16900         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16901
16902 2011-05-21  Bruno Haible  <bruno@clisp.org>
16903
16904         relocatable-prog-wrapper: Fix possible link error.
16905         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16906         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16907         (gl_FUNC_SETENV): ... to here.
16908         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16909         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16910
16911 2011-05-21  Bruno Haible  <bruno@clisp.org>
16912
16913         relocatable-prog-wrapper: Assume strerror() exists.
16914         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16915         m4/strerror.m4.
16916         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16917         * lib/relocwrapper.c: Remove mention of strerror module.
16918         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16919         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16920         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16921         C macro.
16922
16923 2011-05-21  Bruno Haible  <bruno@clisp.org>
16924
16925         select: Simplify replacement idiom.
16926         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16927         Win32 platforms.
16928         * lib/sys_select.in.h (select): Simplify accordingly.
16929         * modules/select (Depends-on): Likewise.
16930
16931 2011-05-21  Bruno Haible  <bruno@clisp.org>
16932
16933         mkdir-p: Simplify autoconf macro.
16934         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16935         gl_FUNC_LCHOWN.
16936
16937 2011-05-21  Eric Blake  <eblake@redhat.com>
16938
16939         strerror_r: avoid clobbering strerror on cygwin
16940         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16941         fall back instead to sys_errlist.
16942         * modules/strerror (configure.ac): Add witness.
16943         * tests/test-strerror_r.c (main): Enhance test.
16944         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16945         * tests/test-perror2.c (main): Free memory before exit.
16946
16947 2011-05-21  Bruno Haible  <bruno@clisp.org>
16948
16949         mkdtemp: Use gnulib naming conventions.
16950         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16951         * modules/mkdtemp (configure.ac): Update.
16952
16953 2011-05-20  Eric Blake  <eblake@redhat.com>
16954
16955         strerror_r: avoid corrupting errno on Solaris
16956         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16957         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16958
16959         strerror_r: avoid compiler warning
16960         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16961
16962         strerror_r: simplify AIX code
16963         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16964
16965         test-perror: avoid spurious failure on FreeBSD
16966         * modules/perror-tests (Depends-on): Add strerror, now that
16967         strerror_r no longer pulls it in.
16968
16969 2011-05-20  Bruno Haible  <bruno@clisp.org>
16970
16971         strerror_r-posix: Remove unused dependencies.
16972         * modules/strerror_r-posix (Depends-on): Remove strerror.
16973         Reported by Eric Blake.
16974
16975 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16976
16977         intprops: remove assumption about A|B representation
16978         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16979         is a valid integer if both A and B are.  Although this is true for
16980         all known practical hosts, the C standard doesn't guarantee it,
16981         and the code need not assume it.  Also, this change may work around
16982         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16983         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16984
16985 2011-05-20  Eric Blake  <eblake@redhat.com>
16986
16987         perror: work around FreeBSD bug
16988         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16989         is broken.  Move AC_LIBOBJ...
16990         * modules/perror (configure.ac): Here.
16991         * doc/posix-functions/perror.texi (perror): Document this.
16992         * tests/test-perror2.c (main): Enhance test.
16993
16994         test-perror: check for strerror interactions
16995         * tests/macros.h (STREQ): Add macro.
16996         * modules/perror-tests (Files): Add second test.
16997         * tests/test-perror2.c (main): New file.
16998         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16999
17000         test-perror: rewrite to use init script
17001         * modules/perror-tests (Files): Add init.sh.
17002         * tests/test-perror.sh: Use temporary directory.
17003
17004 2011-05-20  Jim Meyering  <meyering@redhat.com>
17005
17006         maint: replace misused "a" with "an"
17007         * doc/intprops.texi: "a integer"
17008         * doc/regex.texi: "a explanation"
17009         * lib/alignof.h: "a object"
17010         * lib/argmatch.h: "a explanation"
17011         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17012         * lib/stdint.in.h: "a integer"
17013         * lib/userspec.c: "a owner"
17014         * doc/gnulib.texi: Fix "a idea", and reword.
17015
17016 2011-05-19  Jim Meyering  <meyering@redhat.com>
17017
17018         maint: correct misuse of "a" and "an"
17019         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17020         * lib/argp-help.c: "an docum...": s/an/a/
17021         * lib/argp-parse.c: "An vector": s/An/A/
17022         * lib/execute.c: "an native": s/an/a/
17023         * lib/spawn-pipe.c: Likewise.
17024         * lib/gc.h: "an Gc_rc": s/an/a/
17025         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17026         * lib/fts.c: "an stat.st_dev": s/an/a/
17027
17028 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17029
17030         intprops-tests: work around HP-UX 11.23 cc bug with constants
17031         * tests/test-intprops.c (VERIFY): New macro.
17032         (main): Use it, instead of verify, to work around the compiler bug; see
17033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17034
17035         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17036         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17037         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17038         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17039         (_GL_REMAINDER_OVERFLOW): Use it.
17040
17041         intprops-tests: revert unsigned part of previous change
17042         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17043         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17044         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17046
17047 2011-05-19  Bruno Haible  <bruno@clisp.org>
17048
17049         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17050         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17051         strerror_r() returned without filling the buffer.
17052         Reported by Eric Blake.
17053
17054 2011-05-19  Eric Blake  <eblake@redhat.com>
17055
17056         strerror_r: guarantee unchanged errno
17057         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17058         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17059         failure.
17060         * tests/test-strerror_r.c (main): Enhance test.
17061
17062 2011-05-19  Bruno Haible  <bruno@clisp.org>
17063
17064         strerror_r: Reorder #if blocks.
17065         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17066         for consistency with the previous commit.
17067
17068 2011-05-19  Bruno Haible  <bruno@clisp.org>
17069
17070         perror: Avoid clobbering the strerror buffer when possible.
17071         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17072         * lib/strerror.c: Include it.
17073         * modules/strerror (Files): Add lib/strerror-impl.h.
17074         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17075         (my_strerror): New function, defined through lib/strerror-impl.h.
17076         (perror): Use it instead of strerror.
17077         * modules/perror (Files): Add lib/strerror-impl.h.
17078         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17079
17080 2011-05-19  Eric Blake  <eblake@redhat.com>
17081
17082         strerror_r: fix on newer cygwin
17083         * lib/strerror_r.c (strerror_r): Cygwin now has
17084         __xpg_strerror_r, use it.
17085
17086 2011-05-19  Bruno Haible  <bruno@clisp.org>
17087
17088         strerror_r: Avoid clobbering the strerror buffer when possible.
17089         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17090         (sys_nerr, sys_errlist): New declarations.
17091         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17092         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17093         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17094
17095 2011-05-19  Bruno Haible  <bruno@clisp.org>
17096
17097         strerror_r: Fix test failure on mingw.
17098         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17099         EXTEND_STRERROR_R.
17100         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17101         macros from errno.in.h instead.
17102
17103 2011-05-19  Eric Blake  <eblake@redhat.com>
17104
17105         strerror: relax test for Solaris
17106         * tests/test-strerror.c (main): Permit Solaris behavior.
17107         * tests/test-strerror_r.c (main): Likewise.
17108
17109         strerror: enforce POSIX ruling on strerror(0)
17110         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17111         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17112         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17113         * doc/posix-functions/strerror.texi (strerror): Document it.
17114         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17115         * tests/test-strerror.c (main): Strengthen test.
17116         * tests/test-strerror_r.c (main): Likewise.
17117
17118 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17119
17120         intprop-tests: port to older and more-pedantic compilers
17121         * modules/intprops-tests (Files): Add tests/macros.h.
17122         * tests/test-intprops.c: Include macros.h.
17123         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17124         it's no longer documented to expand to an integer constant expression.
17125         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17126         argument is floating point, as it's no longer documented to expand
17127         to an integer constant expression in that case.
17128         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17129         compiler bugs reported by Bruno Haible.  See
17130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17131         (U0, U1): New constants, to work around the same bugs.  Also,
17132         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17133
17134         intprops: work around C compiler bugs
17135         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17136         bug in Sun C 5.11 2010/08/13 and other compilers; see
17137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17138
17139         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17140         * doc/intprops.texi (Integer Type Determination): Fix
17141         documentation for TYPE_IS_INTEGER: it returns an constant
17142         expression, not an integer constant expression.  Fix doc for
17143         TYPE_SIGNED: it returns an integer constant expression only if its
17144         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17145         hardly worth documented that way....)
17146
17147 2011-05-18  Bruno Haible  <bruno@clisp.org>
17148
17149         strerror_r: Avoid clobbering the strerror buffer when possible.
17150         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17151         Handle gnulib defined errno values here. When strerror() returns NULL
17152         or an empty string, return EINVAL.
17153         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17154         gnulib defined errno values here.
17155         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17156
17157 2011-05-18  Eric Blake  <eblake@redhat.com>
17158
17159         fnmatch: avoid compiler warning
17160         * lib/fnmatch_loop.c (FCT): Use correct type.
17161         Reported by Matthias Bolte.
17162
17163 2011-05-13  Jim Meyering  <meyering@redhat.com>
17164
17165         maint.mk: three new prohibit_<HDR>_without_use rules
17166         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17167         (sc_prohibit_stdio-safer_without_use): Likewise.
17168         (sc_prohibit_xfreopen_without_use): Likewise.
17169
17170 2011-05-17  Jim Meyering  <meyering@redhat.com>
17171
17172         announce-gen: fail if the NEWS delta is empty
17173         If there's nothing noteworthy in NEWS, then either you forgot
17174         or you shouldn't be releasing.
17175         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17176
17177 2011-05-17  Pádraig Brady <P@draigBrady.com>
17178
17179         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17180         reserved symbols starting with double underscore from the check.
17181
17182 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17183
17184         intprops: add doc
17185         * doc/intprops.texi: New file, documenting intprops.
17186         * doc/gnulib.texi (Particular Modules): Include it.
17187
17188         verify: add doc to gnulib manual and fix example
17189         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17190         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17191         (Compile-time Assertions): Fix example so it can't overflow.
17192
17193 2011-05-17  Jim Meyering  <meyering@redhat.com>
17194
17195         warnings.m4: don't usurp save_CPPFLAGS variable name
17196         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17197
17198         doc: fix typo
17199         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17200
17201 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17202             Bruno Haible  <bruno@clisp.org>
17203
17204         doc: Tweak recent change.
17205         * README (Portability guidelines): Tweak new text.
17206         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17207         Interix 6.1.
17208
17209 2011-05-16  Eric Blake  <eblake@redhat.com>
17210
17211         inttypes: avoid autoconf warning
17212         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17213         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17214
17215 2011-05-16  Sam Steingold <sds@gnu.org>
17216         and Eric Blake  <eblake@redhat.com>
17217
17218         vc-list-files: accept multiple directory operands
17219         * build-aux/vc-list-files: Iterate over all remaining operands.
17220
17221 2011-05-16  Bruno Haible  <bruno@clisp.org>
17222
17223         Fix confusion regarding deprecated modules.
17224         * modules/calloc (Status, Notice): Mark module as deprecated, not
17225         obsolete.
17226         * modules/fnmatch-posix (Status, Notice): Likewise.
17227         * modules/getdate (Status, Notice): Likewise.
17228         * modules/getopt (Status, Notice): Likewise.
17229         * modules/malloc (Status, Notice): Likewise.
17230         * modules/pipe (Status, Notice): Likewise.
17231         * modules/realloc (Status, Notice): Likewise.
17232         * modules/rename-dest-slash (Status, Notice): Likewise.
17233         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17234         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17235         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17236         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17237         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17238
17239 2011-05-16  Bruno Haible  <bruno@clisp.org>
17240
17241         doc: List the target platforms.
17242         * doc/gnulib-intro.texi (Target Platforms): New section.
17243         * doc/gnulib.texi (Introduction): Update menu.
17244         * README (Portability guidelines): Refer to the new section. Update
17245         statement about oldest supported environment. Remove rationale why
17246         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17247         unportable C89 function.
17248         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17249         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17250
17251 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17252
17253         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17254
17255 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17256
17257         intprops-tests: new module
17258         * modules/intprops-tests, tests/test-intprops.c: New files.
17259
17260         intprops: add safe, portable integer overflow checking
17261         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
17262         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
17263         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
17264         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
17265         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17266         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17267         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17268         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17269         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17270         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17271         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17272
17273 2011-05-12  James Youngman  <jay@gnu.org>
17274
17275         Add a test for glibc's Bugzilla bug #12378.
17276         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17277         doesn't allow the literal matching of a lone "[" (which is
17278         required by POSIX).
17279         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17280
17281 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17282
17283         Sync glibc change fixing Bugzilla bug #12378.
17284         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17285         beginning and fall back to matching as normal character if the
17286         string ends before the matching ']' is found.  This is what POSIX
17287         requires.
17288
17289 2011-05-13  Eric Blake  <eblake@redhat.com>
17290
17291         getcwd-lgpl: relax test for FreeBSD
17292         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17293         issue.
17294         * tests/test-getcwd-lgpl.c (main): Relax test.
17295         Reported by Matthias Bolte.
17296
17297 2011-05-11  Eric Blake  <eblake@redhat.com>
17298
17299         test-fflush: silence compiler warning
17300         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17301
17302 2011-05-11  Bruno Haible  <bruno@clisp.org>
17303
17304         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17305         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17306         * modules/canonicalize (Depends-on): Add 'nocrash'.
17307         * modules/canonicalize-lgpl (Depends-on): Likewise.
17308         * doc/posix-functions/realpath.texi: Update platforms list.
17309         Reported by Ryan Schmidt <ryandesign@macports.org>.
17310
17311 2011-05-11  Bruno Haible  <bruno@clisp.org>
17312
17313         group-member: Declare function in <unistd.h>.
17314         * lib/unistd.in.h (group_member): New declaration.
17315         * lib/group-member.h: Remove file.
17316         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17317         * tests/test-unistd-c++.cc: Check signature of group_member.
17318         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17319         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17320         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17321         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17322         HAVE_GROUP_MEMBER.
17323         * modules/group-member (Files): Remove lib/group-member.h.
17324         (Depends-on): Add unistd. Specify conditions.
17325         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17326         (Include): Change to <unistd.h>.
17327         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17328         HAVE_GROUP_MEMBER.
17329         * NEWS: Mention the change.
17330         * lib/euidaccess.c: Don't include group-member.h.
17331
17332 2011-05-11  Bruno Haible  <bruno@clisp.org>
17333
17334         group-member: Document module.
17335         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
17336         module.
17337
17338 2011-05-11  Bruno Haible  <bruno@clisp.org>
17339
17340         fclose: Fix mistake earlier today.
17341         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
17342
17343 2011-05-11  Eric Blake  <eblake@redhat.com>
17344
17345         fclose: preserve fflush errors
17346         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
17347         Reported by Jim Meyering.
17348
17349         bootstrap: support a prereq of 'rpcgen -' on RHEL5
17350         * build-aux/bootstrap (check_versions): When no specific version
17351         is required, merely check that the app produces an exit status
17352         that indicates its existence.
17353
17354         maint.mk: drop redundant check
17355         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
17356         the same but better.
17357
17358 2011-05-11  Bruno Haible  <bruno@clisp.org>
17359
17360         fclose: Fix possible link error.
17361         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
17362         unregister_shadow_fd. Improve comments.
17363         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
17364         Eric Blake.
17365
17366 2011-05-11  Jim Meyering  <meyering@redhat.com>
17367
17368         maint.mk: improve "can not" detection and generalize rule name
17369         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
17370         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
17371         Use the same technique as in sc_prohibit_doubled_word, so that
17372         we recognize "can not" also when the words are separated by a newline.
17373         Suggested by Eric Blake.
17374         (perl_filename_lineno_text_): Define.  Factored out of...
17375         (prohibit_doubled_word_): ...here.  Use the new definition.
17376         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
17377         (prohibit_undesirable_word_seq_RE_): New overridable variable.
17378         (ignore_undesirable_word_sequence_RE_): New overridable variable.
17379
17380 2011-05-10  Eric Blake  <eblake@redhat.com>
17381
17382         fclose: avoid double close race when possible
17383         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
17384         all but WINDOWS_SOCKETS.
17385
17386 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17387
17388         openat: correct new comment
17389         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17390
17391 2011-05-10  Jim Meyering  <meyering@redhat.com>
17392
17393         openat: add comments
17394         * lib/openat-proc.c (openat_proc_name): Add comments,
17395         mostly from Eric Blake.
17396
17397 2011-05-09  Eric Blake  <eblake@redhat.com>
17398
17399         openat: reduce syscalls in first probe of /proc
17400         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17401         be a directory.  Simplify the probe for .. bugs.
17402         * modules/openat (Depends-on): Drop same-inode.
17403         Reported by Bastien ROUCARIES.
17404
17405 2011-05-09  Jim Meyering  <meyering@redhat.com>
17406
17407         maint.mk: change semantics/name of tight_scope variables
17408         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
17409         Rename variables to align with semantics that make them more useful.
17410
17411         maint.mk: tweak new rule's name not to impinge
17412         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
17413         (sc_tight_scope): Use new rule name rather than $@-0.
17414
17415         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
17416         * top/maint.mk (sc_tight_scope): New rule.
17417         (sc_tight_scope-0): New rule, ifdef'd out.
17418         (_gl_TS_dir): Default.
17419         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
17420         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
17421
17422 2011-05-09  Simon Josefsson  <simon@josefsson.org>
17423
17424         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
17425         Haible <bruno@clisp.org>.
17426
17427 2011-05-08  Bruno Haible  <bruno@clisp.org>
17428
17429         Comments.
17430         * m4/isnanf.m4: Add comment.
17431         * m4/isnanl.m4: Likewise.
17432
17433 2011-05-08  Bruno Haible  <bruno@clisp.org>
17434
17435         glob: Remove obsolete macro.
17436         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
17437
17438 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17439
17440         intprops: Sun C 5.11 supports __typeof__
17441         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
17442         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
17443         which is new.
17444         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
17445
17446         intprops: switch to usual gnulib indenting and naming
17447         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
17448         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
17449
17450         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
17451
17452 2011-05-08  Jim Meyering  <meyering@redhat.com>
17453
17454         maint.mk: suppress "Entering/Leaving directory" diag in announcement
17455         * top/maint.mk (release-prep): Use make's --no-print-directory
17456         option when generating the announcement.  This eliminates the
17457         pesky "make[2]: Entering/Leaving directory" diagnostics in the
17458         generated announcement template.
17459
17460 2011-05-08  Bruno Haible  <bruno@clisp.org>
17461
17462         tzset: Fix gettimeofday wrapper on Solaris 2.6.
17463         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
17464         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
17465
17466 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17467
17468         ignore-value, verify: Omit include files from lib_SOURCES.
17469         * modules/ignore-value, modules/verify (Makefile.am):
17470         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
17471         that leads Automake to duplicate use of am__objects_... variables
17472         in Makefile.in.  See
17473         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
17474
17475 2011-05-07  Bruno Haible  <bruno@clisp.org>
17476
17477         fclose: Simplify autoconf macro.
17478         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
17479         defined.
17480
17481 2011-05-07  Bruno Haible  <bruno@clisp.org>
17482
17483         canonicalize-lgpl: Fix autoconf macro ordering bug.
17484         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17485         gl_STDLIB_H_DEFAULTS.
17486
17487 2011-05-06  Eric Blake  <eblake@redhat.com>
17488
17489         maintainer-makefile: make sc_po_check easier to tune
17490         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17491         to probe for strings, such as an alternate location for gnulib.
17492
17493         fclose: guarantee behavior on seekable stdin
17494         * modules/fclose (Depends-on): Add fflush.
17495         * doc/posix-functions/fclose.texi (fclose): Document this.
17496         * tests/test-fclose.c (main): Make test for this unconditional.
17497
17498 2011-05-06  Bruno Haible  <bruno@clisp.org>
17499
17500         fflush, fpurge: Relicense under LGPLv2+.
17501         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17502         * modules/fpurge (License): Likewise.
17503         With permission from Eric Blake and Jim Meyering.
17504         Suggested by Eric Blake.
17505
17506 2011-05-06  Karl Berry  <karl@gnu.org>
17507
17508         * MODULES.html.sh (func_all_modules): remove exit.
17509
17510 2011-05-06  Jim Meyering  <meyering@redhat.com>
17511
17512         maint.mk: use info-gnu@ as the default only for a stable release
17513         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17514         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17515         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17516         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17517
17518 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17519
17520         assert-h: new module, which supports C1X-style static_assert
17521         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17522         * lib/verify.h: Revamp so that this can be copied into assert.h,
17523         while retaining the ability to use it standalone as before.
17524         Rename private identifiers so as not to encroach on the
17525         standard C namespace, since this is now used by assert.h.
17526         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17527         the old verify_true.
17528         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17529         the old verify_true.  Use _GL_VERIFY_TYPE.
17530         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17531         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17532         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17533         defined when this file is copied into the replacement assert.h.
17534         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17535         and _Static_assert is not built in.
17536         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17537         defined, and use the new macros mentioned above.
17538         * doc/posix-headers/assert.texi: Document this.
17539
17540 2011-05-05  Bruno Haible  <bruno@clisp.org>
17541
17542         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17543         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17544         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17545         gl_REPLACE_FCLOSE here.
17546         * modules/fflush (Depends-on): Remove fclose.
17547         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17548         combination with module 'fclose'.
17549
17550 2011-05-05  Bruno Haible  <bruno@clisp.org>
17551
17552         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17553         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17554         gl_FUNC_FFLUSH.
17555         (gl_FUNC_FFLUSH): Use it.
17556         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17557         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17558         gl_REPLACE_FSEEKO here.
17559
17560 2011-05-05  Bruno Haible  <bruno@clisp.org>
17561
17562         tzset: Relicense under LGPL.
17563         * modules/tzset (License): Change to LGPL.
17564         No agreement needed; it's a no-op.
17565
17566         strtoimax, strtoumax: Relicense under LGPL.
17567         * modules/strtoimax (License): Change to LGPL.
17568         * modules/strtoumax (License): Likewise.
17569         With permission from Jim Meyering, Paul Eggert:
17570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17571         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17572
17573         getgroups: Relicense under LGPL.
17574         * modules/getgroups (License): Change to LGPL.
17575         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17577         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17579
17580         nanosleep: Relicense under LGPL.
17581         * modules/nanosleep (License): Change to LGPL.
17582         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17583         Haible:
17584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17585         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17586         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17587         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17588
17589         futimens: Relicense under LGPL.
17590         * modules/futimens (License): Change to LGPL.
17591         With permission from Eric Blake:
17592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17593
17594         fflush: Relicense under LGPL.
17595         * modules/fflush (License): Change to LGPL.
17596         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17598         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17600
17601         tmpfile: Relicense under LGPL.
17602         * modules/tmpfile (License): Change to LGPL.
17603         With permission from Ben Pfaff:
17604         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17605
17606         isfinite: Relicense under LGPL.
17607         * modules/isfinite (License): Change to LGPL.
17608         With permission from Ben Pfaff, Bruno Haible:
17609         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17611
17612         acosl..tanl: Relicense under LGPL.
17613         * modules/acosl (License): Change to LGPL.
17614         * modules/asinl (License): Likewise.
17615         * modules/atanl (License): Likewise.
17616         * modules/cosl (License): Likewise.
17617         * modules/expl (License): Likewise.
17618         * modules/logl (License): Likewise.
17619         * modules/sinl (License): Likewise.
17620         * modules/sqrtl (License): Likewise.
17621         * modules/tanl (License): Likewise.
17622         Source code originally from glibc and Paolo Bonzini. Agreements:
17623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17625
17626 2011-05-05  Bruno Haible  <bruno@clisp.org>
17627
17628         signal: Define sighandler_t.
17629         * lib/signal.in.h (sighandler_t): New type.
17630         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17631         whether sighandler_t is defined.
17632         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17633         * modules/signal (Depends-on): Add extensions.
17634         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17635         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17636         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17637
17638 2011-05-05  Eric Blake  <eblake@redhat.com>
17639
17640         maint: remove useless REPLACE_*_H macros
17641         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17642         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17643         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17644         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17645         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17646         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17647         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17648         * m4/btowc.m4: Update callers.
17649         * m4/dirfd.m4: Likewise.
17650         * m4/duplocale.m4: Likewise.
17651         * m4/fchdir.m4: Likewise.
17652         * m4/fdopendir.m4: Likewise.
17653         * m4/inet_ntop.m4: Likewise.
17654         * m4/inet_pton.m4: Likewise.
17655         * m4/ioctl.m4: Likewise.
17656         * m4/mbrlen.m4: Likewise.
17657         * m4/mbrtowc.m4: Likewise.
17658         * m4/mbsinit.m4: Likewise.
17659         * m4/mbsnrtowcs.m4: Likewise.
17660         * m4/mbsrtowcs.m4: Likewise.
17661         * m4/poll.m4: Likewise.
17662         * m4/setlocale.m4: Likewise.
17663         * m4/wcrtomb.m4: Likewise.
17664         * m4/wcsnrtombs.m4: Likewise.
17665         * m4/wcsrtombs.m4: Likewise.
17666         * m4/wctob.m4: Likewise.
17667         * m4/wcwidth.m4: Likewise.
17668         * modules/posix_spawn: Likewise.
17669         * modules/posix_spawn_file_actions_addclose: Likewise.
17670         * modules/posix_spawn_file_actions_adddup2: Likewise.
17671         * modules/posix_spawn_file_actions_addopen: Likewise.
17672         * modules/posix_spawn_file_actions_destroy: Likewise.
17673         * modules/posix_spawn_file_actions_init: Likewise.
17674         * modules/posix_spawnattr_destroy: Likewise.
17675         * modules/posix_spawnattr_getflags: Likewise.
17676         * modules/posix_spawnattr_getpgroup: Likewise.
17677         * modules/posix_spawnattr_getschedparam: Likewise.
17678         * modules/posix_spawnattr_getschedpolicy: Likewise.
17679         * modules/posix_spawnattr_getsigdefault: Likewise.
17680         * modules/posix_spawnattr_getsigmask: Likewise.
17681         * modules/posix_spawnattr_init: Likewise.
17682         * modules/posix_spawnattr_setflags: Likewise.
17683         * modules/posix_spawnattr_setpgroup: Likewise.
17684         * modules/posix_spawnattr_setschedparam: Likewise.
17685         * modules/posix_spawnattr_setschedpolicy: Likewise.
17686         * modules/posix_spawnattr_setsigdefault: Likewise.
17687         * modules/posix_spawnattr_setsigmask: Likewise.
17688         * modules/posix_spawnp: Likewise.
17689
17690 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17691
17692         Add option to do-release-commit-and-tag to specify branch.
17693         * build-aux/do-release-commit-and-tag: Add --branch.
17694
17695 2011-05-03  Bruno Haible  <bruno@clisp.org>
17696
17697         Avoid unnecessary compilation units, through conditional dependencies.
17698         * modules/accept (Depends-on): Add conditions to the dependencies.
17699         * modules/acosl (Depends-on): Likewise.
17700         * modules/argz (Depends-on): Likewise.
17701         * modules/asinl (Depends-on): Likewise.
17702         * modules/atanl (Depends-on): Likewise.
17703         * modules/atoll (Depends-on): Likewise.
17704         * modules/bind (Depends-on): Likewise.
17705         * modules/btowc (Depends-on): Likewise.
17706         * modules/canonicalize-lgpl (Depends-on): Likewise.
17707         * modules/ceil (Depends-on): Likewise.
17708         * modules/ceilf (Depends-on): Likewise.
17709         * modules/ceill (Depends-on): Likewise.
17710         * modules/chdir-long (Depends-on): Likewise.
17711         * modules/chown (Depends-on): Likewise.
17712         * modules/close (Depends-on): Likewise.
17713         * modules/connect (Depends-on): Likewise.
17714         * modules/cosl (Depends-on): Likewise.
17715         * modules/dirfd (Depends-on): Likewise.
17716         * modules/dprintf (Depends-on): Likewise.
17717         * modules/dprintf-posix (Depends-on): Likewise.
17718         * modules/error (Depends-on): Likewise.
17719         * modules/euidaccess (Depends-on): Likewise.
17720         * modules/expl (Depends-on): Likewise.
17721         * modules/faccessat (Depends-on): Likewise.
17722         * modules/fchdir (Depends-on): Likewise.
17723         * modules/fclose (Depends-on): Likewise.
17724         * modules/fcntl (Depends-on): Likewise.
17725         * modules/fdopendir (Depends-on): Likewise.
17726         * modules/fflush (Depends-on): Likewise.
17727         * modules/floor (Depends-on): Likewise.
17728         * modules/floorf (Depends-on): Likewise.
17729         * modules/floorl (Depends-on): Likewise.
17730         * modules/fnmatch (Depends-on): Likewise.
17731         * modules/fopen (Depends-on): Likewise.
17732         * modules/fprintf-posix (Depends-on): Likewise.
17733         * modules/frexp (Depends-on): Likewise.
17734         * modules/frexp-nolibm (Depends-on): Likewise.
17735         * modules/frexpl (Depends-on): Likewise.
17736         * modules/frexpl-nolibm (Depends-on): Likewise.
17737         * modules/fseek (Depends-on): Likewise.
17738         * modules/fsusage (Depends-on): Likewise.
17739         * modules/ftell (Depends-on): Likewise.
17740         * modules/ftello (Depends-on): Likewise.
17741         * modules/futimens (Depends-on): Likewise.
17742         * modules/getcwd (Depends-on): Likewise.
17743         * modules/getcwd-lgpl (Depends-on): Likewise.
17744         * modules/getdelim (Depends-on): Likewise.
17745         * modules/getdomainname (Depends-on): Likewise.
17746         * modules/getgroups (Depends-on): Likewise.
17747         * modules/gethostname (Depends-on): Likewise.
17748         * modules/getline (Depends-on): Likewise.
17749         * modules/getlogin_r (Depends-on): Likewise.
17750         * modules/getopt-posix (Depends-on): Likewise.
17751         * modules/getpeername (Depends-on): Likewise.
17752         * modules/getsockname (Depends-on): Likewise.
17753         * modules/getsockopt (Depends-on): Likewise.
17754         * modules/getsubopt (Depends-on): Likewise.
17755         * modules/getusershell (Depends-on): Likewise.
17756         * modules/glob (Depends-on): Likewise.
17757         * modules/grantpt (Depends-on): Likewise.
17758         * modules/iconv_open (Depends-on): Likewise.
17759         * modules/iconv_open-utf (Depends-on): Likewise.
17760         * modules/inet_ntop (Depends-on): Likewise.
17761         * modules/inet_pton (Depends-on): Likewise.
17762         * modules/ioctl (Depends-on): Likewise.
17763         * modules/isapipe (Depends-on): Likewise.
17764         * modules/isfinite (Depends-on): Likewise.
17765         * modules/isinf (Depends-on): Likewise.
17766         * modules/lchown (Depends-on): Likewise.
17767         * modules/ldexpl (Depends-on): Likewise.
17768         * modules/link (Depends-on): Likewise.
17769         * modules/linkat (Depends-on): Likewise.
17770         * modules/listen (Depends-on): Likewise.
17771         * modules/logl (Depends-on): Likewise.
17772         * modules/lstat (Depends-on): Likewise.
17773         * modules/mbrlen (Depends-on): Likewise.
17774         * modules/mbrtowc (Depends-on): Likewise.
17775         * modules/mbsinit (Depends-on): Likewise.
17776         * modules/mbsnrtowcs (Depends-on): Likewise.
17777         * modules/mbsrtowcs (Depends-on): Likewise.
17778         * modules/mbtowc (Depends-on): Likewise.
17779         * modules/memcmp (Depends-on): Likewise.
17780         * modules/mkdir (Depends-on): Likewise.
17781         * modules/mkdtemp (Depends-on): Likewise.
17782         * modules/mkfifo (Depends-on): Likewise.
17783         * modules/mkfifoat (Depends-on): Likewise.
17784         * modules/mknod (Depends-on): Likewise.
17785         * modules/mkostemp (Depends-on): Likewise.
17786         * modules/mkostemps (Depends-on): Likewise.
17787         * modules/mkstemp (Depends-on): Likewise.
17788         * modules/mkstemps (Depends-on): Likewise.
17789         * modules/mktime (Depends-on): Likewise.
17790         * modules/nanosleep (Depends-on): Likewise.
17791         * modules/open (Depends-on): Likewise.
17792         * modules/openat (Depends-on): Likewise.
17793         * modules/perror (Depends-on): Likewise.
17794         * modules/poll (Depends-on): Likewise.
17795         * modules/popen (Depends-on): Likewise.
17796         * modules/posix_spawn (Depends-on): Likewise.
17797         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17798         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17799         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17800         * modules/posix_spawnp (Depends-on): Likewise.
17801         * modules/pread (Depends-on): Likewise.
17802         * modules/printf-posix (Depends-on): Likewise.
17803         * modules/ptsname (Depends-on): Likewise.
17804         * modules/putenv (Depends-on): Likewise.
17805         * modules/pwrite (Depends-on): Likewise.
17806         * modules/readline (Depends-on): Likewise.
17807         * modules/readlink (Depends-on): Likewise.
17808         * modules/readlinkat (Depends-on): Likewise.
17809         * modules/recv (Depends-on): Likewise.
17810         * modules/recvfrom (Depends-on): Likewise.
17811         * modules/regex (Depends-on): Likewise.
17812         * modules/remove (Depends-on): Likewise.
17813         * modules/rename (Depends-on): Likewise.
17814         * modules/renameat (Depends-on): Likewise.
17815         * modules/rmdir (Depends-on): Likewise.
17816         * modules/round (Depends-on): Likewise.
17817         * modules/roundf (Depends-on): Likewise.
17818         * modules/roundl (Depends-on): Likewise.
17819         * modules/rpmatch (Depends-on): Likewise.
17820         * modules/select (Depends-on): Likewise.
17821         * modules/send (Depends-on): Likewise.
17822         * modules/sendto (Depends-on): Likewise.
17823         * modules/setenv (Depends-on): Likewise.
17824         * modules/setlocale (Depends-on): Likewise.
17825         * modules/setsockopt (Depends-on): Likewise.
17826         * modules/shutdown (Depends-on): Likewise.
17827         * modules/sigaction (Depends-on): Likewise.
17828         * modules/signbit (Depends-on): Likewise.
17829         * modules/sigprocmask (Depends-on): Likewise.
17830         * modules/sinl (Depends-on): Likewise.
17831         * modules/sleep (Depends-on): Likewise.
17832         * modules/snprintf (Depends-on): Likewise.
17833         * modules/snprintf-posix (Depends-on): Likewise.
17834         * modules/socket (Depends-on): Likewise.
17835         * modules/sprintf-posix (Depends-on): Likewise.
17836         * modules/sqrtl (Depends-on): Likewise.
17837         * modules/stat (Depends-on): Likewise.
17838         * modules/strchrnul (Depends-on): Likewise.
17839         * modules/strdup-posix (Depends-on): Likewise.
17840         * modules/strerror (Depends-on): Likewise.
17841         * modules/strerror_r-posix (Depends-on): Likewise.
17842         * modules/strndup (Depends-on): Likewise.
17843         * modules/strnlen (Depends-on): Likewise.
17844         * modules/strptime (Depends-on): Likewise.
17845         * modules/strsep (Depends-on): Likewise.
17846         * modules/strsignal (Depends-on): Likewise.
17847         * modules/strstr-simple (Depends-on): Likewise.
17848         * modules/strtod (Depends-on): Likewise.
17849         * modules/strtoimax (Depends-on): Likewise.
17850         * modules/strtok_r (Depends-on): Likewise.
17851         * modules/strtoumax (Depends-on): Likewise.
17852         * modules/symlink (Depends-on): Likewise.
17853         * modules/symlinkat (Depends-on): Likewise.
17854         * modules/tanl (Depends-on): Likewise.
17855         * modules/tcgetsid (Depends-on): Likewise.
17856         * modules/tmpfile (Depends-on): Likewise.
17857         * modules/trunc (Depends-on): Likewise.
17858         * modules/truncf (Depends-on): Likewise.
17859         * modules/truncl (Depends-on): Likewise.
17860         * modules/uname (Depends-on): Likewise.
17861         * modules/unlink (Depends-on): Likewise.
17862         * modules/unlockpt (Depends-on): Likewise.
17863         * modules/unsetenv (Depends-on): Likewise.
17864         * modules/usleep (Depends-on): Likewise.
17865         * modules/utimensat (Depends-on): Likewise.
17866         * modules/vasprintf (Depends-on): Likewise.
17867         * modules/vdprintf (Depends-on): Likewise.
17868         * modules/vdprintf-posix (Depends-on): Likewise.
17869         * modules/vfprintf-posix (Depends-on): Likewise.
17870         * modules/vprintf-posix (Depends-on): Likewise.
17871         * modules/vsnprintf (Depends-on): Likewise.
17872         * modules/vsnprintf-posix (Depends-on): Likewise.
17873         * modules/vsprintf-posix (Depends-on): Likewise.
17874         * modules/wcrtomb (Depends-on): Likewise.
17875         * modules/wcscasecmp (Depends-on): Likewise.
17876         * modules/wcscspn (Depends-on): Likewise.
17877         * modules/wcsdup (Depends-on): Likewise.
17878         * modules/wcsncasecmp (Depends-on): Likewise.
17879         * modules/wcsnrtombs (Depends-on): Likewise.
17880         * modules/wcspbrk (Depends-on): Likewise.
17881         * modules/wcsrtombs (Depends-on): Likewise.
17882         * modules/wcsspn (Depends-on): Likewise.
17883         * modules/wcsstr (Depends-on): Likewise.
17884         * modules/wcstok (Depends-on): Likewise.
17885         * modules/wcswidth (Depends-on): Likewise.
17886         * modules/wctob (Depends-on): Likewise.
17887         * modules/wctomb (Depends-on): Likewise.
17888         * modules/wctype (Depends-on): Likewise.
17889         * modules/wcwidth (Depends-on): Likewise.
17890         * modules/write (Depends-on): Likewise.
17891
17892 2011-05-03  Bruno Haible  <bruno@clisp.org>
17893
17894         Support for conditional dependencies.
17895         * doc/gnulib.texi (Module description): Document the syntax of
17896         conditional dependencies.
17897         * gnulib-tool: New option --conditional-dependencies.
17898         (func_usage): Document it.
17899         (cond_dependencies): New variable.
17900         (func_get_automake_snippet_conditional,
17901         func_get_automake_snippet_unconditional): New functions, extracted from
17902         func_get_automake_snippet.
17903         (func_get_automake_snippet): Use them.
17904         (sed_first_32_chars): New variable.
17905         (func_module_shellfunc_name): New function.
17906         (func_module_shellvar_name): New function.
17907         (func_module_conditional_name): New function.
17908         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17909         func_cond_module_condition): New functions.
17910         (func_modules_transitive_closure): Add support for conditional
17911         dependencies.
17912         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17913         conditional automake snippet in an automake conditional.
17914         (func_emit_autoconf_snippets): Emit shell functions that contain the
17915         code for conditional modules.
17916         (func_import, func_create_testdir): Update specification.
17917
17918 2011-05-03  Eric Blake  <eblake@redhat.com>
17919
17920         test-getaddrinfo: report error information
17921         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17922
17923 2011-05-03  Jim Meyering  <meyering@redhat.com>
17924
17925         bootstrap: avoid build failure when $GZIP is set
17926         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17927         program name.  If defined at all, it is supposed to list gzip options.
17928         Reported by Alan Curry in http://debbugs.gnu.org/8609
17929
17930 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17931
17932         readme-release: new module with release instructions
17933         * modules/readme-release: New module.
17934         * top/README-release: New file, from coreutils, grep, diffutils.
17935         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17936
17937 2011-05-02  Eric Blake  <eblake@redhat.com>
17938
17939         fflush: also replace fclose when fixing fflush
17940         * modules/fflush (Depends-on): Add fclose.
17941         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17942         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17943         memstreams with no backing fd.
17944         * doc/posix-functions/fclose.texi (fclose): Document the use of
17945         fflush module to fix the bug.
17946         * tests/test-fclose.c (main): Relax test when fclose is used in
17947         isolation.
17948
17949         fclose: add some tests
17950         * modules/fclose-tests: New test module.
17951         * tests/test-fclose.c: New file.
17952         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17953
17954         fclose: reduced dependencies
17955         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17956         simpler lseek.
17957         * lib/fclose.c (rpl_fclose): Likewise.
17958         Reported by Simon Josefsson.
17959
17960         exit: drop remaining clients
17961         * modules/argmatch (Depends-on): Replace exit with stdlib.
17962         * modules/copy-file (Depends-on): Likewise.
17963         * modules/execute (Depends-on): Likewise.
17964         * modules/exitfail (Depends-on): Likewise.
17965         * modules/obstack (Depends-on): Likewise.
17966         * modules/pagealign_alloc (Depends-on): Likewise.
17967         * modules/pipe-filter-gi (Depends-on): Likewise.
17968         * modules/pipe-filter-ii (Depends-on): Likewise.
17969         * modules/savewd (Depends-on): Likewise.
17970         * modules/spawn-pipe (Depends-on): Likewise.
17971         * modules/wait-process (Depends-on): Likewise.
17972         * modules/xsetenv (Depends-on): Likewise.
17973         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17974         * modules/git-merge-changelog (Depends-on): Likewise.
17975         * modules/long-options (Depends-on): Likewise.
17976         * modules/pt_chown (Depends-on): Likewise.
17977         * modules/sysexits (Depends-on): Likewise.
17978
17979         freading: relax license from LGPLv3+ to LGPLv2+
17980         * modules/freading (License): Relax LGPL version.
17981
17982 2011-05-02  Bruno Haible  <bruno@clisp.org>
17983
17984         fchdir: Remove unused dependencies.
17985         * modules/fchdir (Depends-on): Remove include_next.
17986
17987 2011-05-02  Bruno Haible  <bruno@clisp.org>
17988
17989         gnulib-tool: Refactor.
17990         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17991         from func_emit_autoconf_snippets.
17992         (func_emit_autoconf_snippets): Use it.
17993
17994 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17995
17996         * NEWS: Document removal of 'exit'.
17997         * modules/exit: Remove file.
17998
17999 2011-05-01  Bruno Haible  <bruno@clisp.org>
18000
18001         Update DEPENDENCIES.
18002         * DEPENDENCIES (gettext): Recommend the newest release.
18003         Reported by Simon Josefsson.
18004
18005 2011-05-01  Bruno Haible  <bruno@clisp.org>
18006
18007         gnulib-tool: Reduce code duplication.
18008         * gnulib-tool (func_emit_autoconf_snippets): New function.
18009         (func_import, func_create_testdir): Use it.
18010
18011 2011-04-30  Eric Blake  <eblake@redhat.com>
18012
18013         fclose: don't fail on non-seekable input stream
18014         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18015         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18016         since fflush is allowed to fail in that case.
18017
18018 2011-04-30  Bruno Haible  <bruno@clisp.org>
18019
18020         dup3: cleanup
18021         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18022
18023 2011-04-30  Bruno Haible  <bruno@clisp.org>
18024
18025         netdb: Make it work in C++ mode.
18026         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18027         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18028         module.
18029         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18030         gl_MODULE_INDICATOR_FOR_TESTS.
18031         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18032         * modules/netdb-c++-tests: New file.
18033         * tests/test-netdb-c++.cc: New file.
18034
18035 2011-04-30  Bruno Haible  <bruno@clisp.org>
18036
18037         New modules 'vfscanf', 'vscanf'.
18038         * modules/vfscanf: New file.
18039         * modules/vscanf: New file.
18040         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18041         here.
18042         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18043         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18044
18045 2011-04-30  Bruno Haible  <bruno@clisp.org>
18046
18047         passfd: Add comments.
18048         * lib/passfd.c: Add comments about platforms.
18049
18050 2011-04-30  Bruno Haible  <bruno@clisp.org>
18051
18052         sys_uio: Make <sys/uio.h> self-contained.
18053         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18054         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18055
18056 2011-04-30  Bruno Haible  <bruno@clisp.org>
18057
18058         sys_socket: Ensure 'struct iovec' definition.
18059         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18060         <sys/socket.h>.
18061         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18062
18063 2011-04-30  Bruno Haible  <bruno@clisp.org>
18064
18065         sys_uio: Protect definition of 'struct iovec'.
18066         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18067         it as a C struct.
18068
18069 2011-04-30  Bruno Haible  <bruno@clisp.org>
18070
18071         manywarnings: fix indentation
18072         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18073
18074 2011-04-30  Pádraig Brady <P@draigBrady.com>
18075
18076         manywarnings: add -Wno-missing-field-initializers if needed.
18077         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18078         option if it's needed to allow initialization with { 0, }
18079
18080 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18081
18082         announce-gen: cosmetic improvement
18083         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18084
18085 2011-04-29  Jim Meyering  <meyering@redhat.com>
18086
18087         vc-list-files: indent with spaces, not TABs
18088         * build-aux/vc-list-files: Convert leading TABs to spaces,
18089         to match the style of most other files in gnulib.
18090
18091         announce-gen: indent with spaces, not TABs
18092         * build-aux/announce-gen: Convert all TABs to spaces, to match
18093         the style of most other files in gnulib.
18094
18095 2011-04-29  Eric Blake  <eblake@redhat.com>
18096
18097         quotearg: avoid uninitialized variable use
18098         * lib/quotearg.c (quoting_options_from_style): Initialize
18099         remaining fields, and ensure that custom styles are only used via
18100         quoting_options rather than quoting_style.
18101
18102 2011-04-29  Jim Meyering  <meyering@redhat.com>
18103
18104         maint.mk: remove unused VC-tag variable
18105         * top/maint.mk (VC-tag): Remove unused variable.
18106
18107 2011-04-29  Bruno Haible  <bruno@clisp.org>
18108
18109         netdb: fix gai_strerror replacements
18110         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18111         * modules/netdb: Substitute it.
18112
18113 2011-04-29  Jim Meyering  <meyering@redhat.com>
18114
18115         test-getcwd.c: avoid new set-but-not-used warning
18116         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18117         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18118         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18119         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18120
18121         test-hash.c: avoid a new shadowing warning
18122         * tests/test-hash.c (main): Don't shadow "dup".
18123
18124 2011-04-28  Eric Blake  <eblake@redhat.com>
18125
18126         getaddrinfo: fix gai_strerror signature
18127         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18128         and work around mingw with UNICODE defined.
18129         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18130         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18131         * modules/netdb (Makefile.am): Substitute it.
18132         * lib/netdb.in.h (gai_strerror): Declare replacement.
18133         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18134         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18135         the fix.
18136
18137         getsockopt: avoid compiler warning
18138         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18139         Reported by Matthias Bolte.
18140
18141         tests: drop unused link dependency
18142         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18143         * modules/dirent-safer-tests (Makefile.am): Likewise.
18144         * modules/fdopendir-tests (Makefile.am): Likewise.
18145         * modules/mkfifoat-tests (Makefile.am): Likewise.
18146         * modules/openat-safer-tests (Makefile.am): Likewise.
18147         * modules/openat-tests (Makefile.am): Likewise.
18148         * modules/readlinkat-tests (Makefile.am): Likewise.
18149         * modules/symlinkat-tests (Makefile.am): Likewise.
18150         * modules/linkat-tests (Makefile.am): Likewise.
18151         (Depends-on): Switch to filenamecat-lgpl.
18152         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18153         LIBINTL.
18154         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18155         * tests/test-linkat.c (main): Don't require xalloc.
18156
18157         hash, mgetgroups: drop xalloc dependency
18158         * lib/hash.c (includes): Adjust includes.
18159         * lib/mgetgroups.c (includes): Likewise.
18160         (xgetgroups): Move...
18161         * lib/xgetgroups.c: ...to new file.
18162         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18163         * modules/xgetgroups: New file, split from...
18164         * modules/mgetgroups: ...here.
18165         (Depends-on): Add xalloc-oversized.
18166         * modules/hash (Depends-on): Likewise.
18167         * modules/hash-tests (Depends-on): Drop xalloc.
18168         (test_hash_LDADD): Drop unused library.
18169         * tests/test-hash.c (main): Break xalloc dependency.
18170         (includes): Drop unused include.
18171
18172         xalloc-oversized: new module
18173         * modules/xalloc-oversized: New module.
18174         * modules/xalloc (Depends-on): Add it.
18175         * lib/xalloc.h (xalloc_oversized): Move...
18176         * lib/xalloc-oversized.h: ...into new file.
18177
18178         utimecmp: drop dependency on xmalloc
18179         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18180         due to memory pressure.
18181         * modules/utimecmp (Depends-on): Drop xalloc.
18182
18183 2011-04-27  Eric Blake  <eblake@redhat.com>
18184
18185         getcwd: fix mingw bugs
18186         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18187         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18188         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18189
18190 2011-04-27  Bruno Haible  <bruno@clisp.org>
18191
18192         mkstemps: Ensure declaration on MacOS X 10.5.
18193         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18194         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18195         MacOS X.
18196
18197 2011-04-27  Bruno Haible  <bruno@clisp.org>
18198
18199         mkstemp: More documentation.
18200         * doc/posix-functions/mkstemp.texi: Document header file problem on
18201         MacOS X.
18202
18203 2011-04-27  Bruno Haible  <bruno@clisp.org>
18204
18205         mkstemp: Tweak configure message when cross-compiling.
18206         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18207         result as a guess.
18208
18209 2011-04-27  Bruno Haible  <bruno@clisp.org>
18210
18211         clean-temp: Clarify what it does.
18212         * lib/clean-temp.h: Add more comments.
18213         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18214         module.
18215         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18216         * doc/glibc-functions/mkstemps.texi: Likewise.
18217         * doc/glibc-functions/mkostemps.texi: Likewise.
18218
18219 2011-04-27  Eric Blake  <eblake@redhat.com>
18220
18221         fchdir: avoid extra chdir and fix test
18222         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18223         getcwd-lgpl.
18224         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18225         have to be canonical.
18226         (canonicalize_file_name): Drop unused macro.
18227         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18228
18229         filenamecat-lgpl: fix licence
18230         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18231         when it was first created.
18232
18233         linkat, renameat: add missing dependency
18234         * modules/linkat (Depends-on): Require getcwd-lgpl.
18235         * modules/renameat (Depends-on): Likewise.
18236
18237         tests: reduce dependencies
18238         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18239         * tests/test-renameat.c (main): Likewise.
18240         * modules/linkat-tests (Depends-on): Relax dependency.
18241         * modules/renameat-tests (Depends-on): Likewise.
18242         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18243         dependency explicit.
18244
18245         save-cwd: reduce default dependency
18246         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18247         * lib/save-cwd.c: Update comments.
18248         * NEWS: Document the semantic change.
18249
18250         getcwd: enhance tests
18251         * tests/test-getcwd-lgpl.c: New file, taken from...
18252         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18253         repeat long path stress tests from m4 probe.
18254         * modules/getcwd-lgpl-tests: New module.
18255         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
18256         * m4/getcwd-abort-bug.m4: Update comment.
18257         * m4/getcwd-path-max.m4: Likewise.
18258
18259         getcwd-lgpl: new module
18260         * modules/getcwd-lgpl: New module.
18261         * lib/getcwd-lgpl.c: New file.
18262         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18263         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18264         * modules/getcwd (configure.ac): Set C witness.
18265         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18266
18267         getcwd: tweak comments
18268         * m4/getcwd-abort-bug.m4: Fix comments.
18269         * m4/getcwd-path-max.m4: Likewise.
18270         * m4/getcwd.m4: Likewise.
18271
18272 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18273         and Eric Blake  <eblake@redhat.com>
18274
18275         mkstemp: replace if system version uses wrong permissions
18276         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18277         read/write mode bits set in file created by mkstemp.
18278         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18279
18280 2011-04-27  Eric Blake  <eblake@redhat.com>
18281
18282         passfd: avoid compiler warning
18283         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18284         Reported by Laine Stump.
18285
18286 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18287
18288         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18289         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18290
18291 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18292         and Eric Blake  <eblake@redhat.com>
18293
18294         mkstemp: mention clean-temp module
18295         * lib/mkstemp.c: Add comment.
18296         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18297
18298 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18299
18300         inttypes: also provide default values for 32-bit tests
18301         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18302         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18303
18304 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18305
18306         strtoumax: remove dependency on strtoimax
18307         This is like the strtoull change of yesterday.
18308         * modules/strtoumax (Files): Add lib/strtoimax.c.
18309         (Depends-on): Remove strtoimax and add verify.
18310
18311         inttypes-incomplete: new module
18312         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18313         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18314         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18315         of gl_INTTYPES_H.
18316         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18317         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18318         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18319         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18320         * modules/strtoumax, modules/xstrtol (Depends-on):
18321         Depend on inttypes-incomplete, not inttypes.
18322         * modules/inttypes-incomplete: New module, containing the contents
18323         of the old modules/inttypes module, except that the Files: section
18324         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18325         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18326         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18327         (Depends-on): Depend only on inttypes-incomplete.
18328         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
18329
18330         inttypes: omit now-redundant strtoimax and strtoumax work
18331         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
18332         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
18333
18334         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
18335         This supports apps that need pointers to strtoimax and strtoumax,
18336         and ports to HP-UX 11.00 64.bit, which has macros that expand to
18337         nonexistent functions.  See
18338         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
18339         et seq.
18340         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
18341         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
18342         a macro.
18343         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18344
18345 2011-04-25  Simon Josefsson  <simon@josefsson.org>
18346
18347         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
18348
18349 2011-04-25  Bruno Haible  <bruno@clisp.org>
18350
18351         strtol, strtoul: Mark modules as obsolete.
18352         * modules/strtol (Status, Notice): New sections.
18353         * modules/strtoul (Status, Notice): New sections.
18354
18355 2011-04-25  Bruno Haible  <bruno@clisp.org>
18356
18357         strtod: Remove check for strtod, unless supporting old platforms.
18358         * modules/strtod-obsolete: New file.
18359         * m4/strtod-obsolete.m4: New file.
18360         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
18361         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
18362         * modules/strtod (Depends-on): Add strtod-obsolete.
18363         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
18364
18365 2011-04-25  Bruno Haible  <bruno@clisp.org>
18366
18367         strcase: Make module obsolete.
18368         * modules/strcase (Status, Notice): New sections.
18369
18370 2011-04-25  Bruno Haible  <bruno@clisp.org>
18371
18372         dup2: Remove check for dup2, unless supporting old obsolete platforms.
18373         * modules/dup2-obsolete: New file.
18374         * m4/dup2-obsolete.m4: New file.
18375         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
18376         gl_FUNC_DUP2_OBSOLETE is not also defined.
18377         * modules/dup2 (Depends-on): Add dup2-obsolete.
18378         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
18379
18380 2011-04-25  Bruno Haible  <bruno@clisp.org>
18381
18382         strnlen: Avoid memchr related link error on old obsolete platforms.
18383         * modules/memchr-obsolete: New file.
18384         * m4/memchr-obsolete.m4: New file.
18385         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18386         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18387         * modules/memchr (Depends-on): Add memchr-obsolete.
18388         * modules/strnlen (Depends-on): Likewise.
18389         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18390
18391 2011-04-25  Jim Meyering  <meyering@redhat.com>
18392
18393         maint.mk: makefile_at_at_check extend and clean up
18394         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18395         in addition to */Makefile.am.
18396         Exempt legitimate uses of @VAR@ notation, e.g.,
18397         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18398         Remove obsolete coreutils-specific comment.
18399         Prompted by discussion here:
18400         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18401
18402 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18403
18404         strtoul: remove dependency on strtol
18405         This is so that 'configure' need not check for strtol merely because
18406         the application needs strtoul.
18407         * modules/strtoul (Files): Add lib/strtol.c.
18408         (Depends-on): Remove strtol.
18409
18410         strtoull: remove dependency on strtoul
18411         This is like the strtoll change.
18412         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
18413         (Depends-on): Remove strtoul.
18414
18415         strtoll: remove dependency on strtol
18416         This is so that 'configure' need not check for strtol merely because
18417         the application needs strtoll.
18418         * modules/strtoll (Files): Add lib/strtol.c.
18419         (Depends-on): Remove strtol.
18420
18421 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18422
18423         inttypes: Move some configure check to module 'imaxdiv'.
18424         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
18425         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
18426         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18427
18428 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18429
18430         inttypes: Move some configure check to module 'imaxabs'.
18431         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18432         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18433         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18434
18435 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18436
18437         inttypes: Remove configure tests that are not needed since 2009-12-31.
18438         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
18439         gl_cv_header_working_inttypes_h.
18440
18441 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18442
18443         * modules/strnlen (Depends-on): Remove memchr.
18444         The strnlen implementation doesn't need the memchr module's fixes; see
18445         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
18446
18447         strtol: remove dependency on wchar
18448         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
18449         * modules/strtol (Depends-on): Remove wchar.
18450
18451 2011-04-21  Eric Blake  <eblake@redhat.com>
18452
18453         passfd: fix test regression on Linux
18454         * modules/passfd-tests (configure.ac): Correct socketpair check.
18455
18456         passfd: speed up configure and drop unused code
18457         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
18458         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
18459         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
18460         Instead of probing at configure for unix_scm_rights_bsd44_way,
18461         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
18462         check to a struct member probe.
18463         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
18464         (sendfd, recvfd): Update preprocessor checks.
18465         * modules/passfd (Files): Reflect rename, and drop unused file.
18466         (Depends-on): Drop unused dependency.
18467
18468         passfd: allow compilation on mingw
18469         * modules/sys_socket (Depends-on): Add sys_uio.
18470         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
18471         iovec and a minimal struct msghdr.
18472         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
18473         * tests/test-sys_socket.c (main): Enhance test.
18474         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
18475         guaranteed to provide what we need.
18476         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
18477         * modules/passfd-tests (Depends-on): Add sys_wait.
18478         * tests/test-passfd.c (main): Skip test on mingw, for now.
18479         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
18480         partial 'struct msghdr' implementation.
18481
18482         sys_uio: new module
18483         * modules/sys_uio: New module.
18484         * modules/sys_uio-tests: Likewise.
18485         * lib/sys_uio.in.h: New file.
18486         * m4/sys_uio_h.m4: Likewise.
18487         * tests/test-sys_uio.c: Likewise.
18488         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18489         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18490
18491 2011-04-20  Jim Meyering  <meyering@redhat.com>
18492
18493         useless-if-before-free: avoid false-positive
18494         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18495         disjunct so that it too requires a terminating ";".  Without that,
18496         this script would identify as useless one statement from gcc that
18497         was not:
18498           if (aligned_ptr)
18499             free (((void **) aligned_ptr) [-1]);
18500
18501 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18502
18503         doc: update users.txt.
18504         * users.txt: Add barcode.
18505
18506 2011-04-19  Bruno Haible  <bruno@clisp.org>
18507
18508         ioctl: Remove link dependency on native Windows.
18509         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18510         (gl_close_fn, gl_ioctl_fn): New types.
18511         (struct fd_hook): Renamed from struct close_hook. Change type of
18512         private_close_fn field. Add private_ioctl_fn field.
18513         (close_hook_fn): Add parameter for primary close method.
18514         (execute_close_hooks, execute_all_close_hooks): Likewise.
18515         (ioctl_hook_fn): New type.
18516         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18517         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18518         argument.
18519         (unregister_fd_hook): Renamed from unregister_close_hook.
18520         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18521         Don't include <unistd.h>.
18522         (close): Remove undef.
18523         (anchor): Update.
18524         (execute_close_hooks): Add argument for primary close method.
18525         (execute_all_close_hooks): Likewise.
18526         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18527         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18528         argument. Allow each argument to be NULL.
18529         (unregister_fd_hook): Renamed from unregister_close_hook.
18530         * lib/close.c (rpl_close): Pass 'close' function pointer to
18531         execute_all_close_hooks.
18532         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18533         (primary_ioctl): New function.
18534         (ioctl): Don't call ioctlsocket here. Instead, call
18535         execute_all_ioctl_hooks.
18536         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18537         close method.
18538         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18539         (fd_sockets_hook): Renamed from close_sockets_hook.
18540         (gl_sockets_startup, gl_sockets_cleanup): Update.
18541         * modules/fd-hook: Renamed from modules/close-hook. Update.
18542         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18543         * modules/sockets (Depends-on): Likewise.
18544         * modules/ioctl (Depends-on): Add fd-hook.
18545         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18546         GNULIB_SOCKET.
18547
18548 2011-04-19  Bruno Haible  <bruno@clisp.org>
18549
18550         Move the support of O_NONBLOCK in open() to the 'open' module.
18551         * modules/nonblocking (Depends-on): Remove 'open'.
18552         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18553         gl_cv_have_open_O_NONBLOCK.
18554         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18555         O_NONBLOCK support.
18556         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18557
18558 2011-04-17  Bruno Haible  <bruno@clisp.org>
18559
18560         pipe2: Simplify code.
18561         * lib/pipe2.c (pipe2): Reduce code duplication.
18562
18563 2011-04-17  Bruno Haible  <bruno@clisp.org>
18564
18565         nonblocking: Add comment.
18566         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18567
18568 2011-04-17  Bruno Haible  <bruno@clisp.org>
18569
18570         nonblocking: Add tests for sockets.
18571         * tests/test-nonblocking-socket.sh: New file.
18572         * tests/test-nonblocking-socket-main.c: New file.
18573         * tests/test-nonblocking-socket-child.c: New file.
18574         * tests/test-nonblocking-socket.h: New file.
18575         * tests/socket-server.h: New file.
18576         * tests/socket-client.h: New file.
18577         * modules/nonblocking-socket-tests: New file.
18578         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18579
18580 2011-04-17  Bruno Haible  <bruno@clisp.org>
18581
18582         nonblocking: Add tests for pipes.
18583         * tests/test-nonblocking-pipe.sh: New file.
18584         * tests/test-nonblocking-pipe-main.c: New file.
18585         * tests/test-nonblocking-pipe-child.c: New file.
18586         * tests/test-nonblocking-pipe.h: New file.
18587         * tests/test-nonblocking-writer.h: New file.
18588         * tests/test-nonblocking-reader.h: New file.
18589         * tests/test-nonblocking-misc.h: New file.
18590         * modules/nonblocking-pipe-tests: New file.
18591         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18592
18593 2011-04-16  Bruno Haible  <bruno@clisp.org>
18594
18595         gettext: Clarify the needed programmer actions.
18596         * modules/gettext (Notice): New field.
18597         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18598
18599 2011-04-16  Bruno Haible  <bruno@clisp.org>
18600
18601         strchrnul: Tweak last commit.
18602         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18603         bug.
18604         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18605         as in _GL_FUNCDECL_SYS.
18606         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18607         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18608
18609 2011-04-15  Eric Blake  <eblake@redhat.com>
18610
18611         strchrnul: work around cygwin bug
18612         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18613         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18615         * modules/string (Makefile.am): Substitute it.
18616         * lib/string.in.h (strchrnul): Use it.
18617
18618 2011-04-15  Bruno Haible  <bruno@clisp.org>
18619
18620         Don't require lib/stdio-write.c when only module 'stdio' is used.
18621         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18622         invocation.
18623         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18624
18625 2011-04-14  Bruno Haible  <bruno@clisp.org>
18626
18627         Support non-blocking pipe I/O in read() on native Windows.
18628         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18629         (read): New declaration.
18630         * lib/read.c: New file.
18631         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18632         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18633         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18634         vscanf): New declarations.
18635         * lib/stdio-read.c: New file.
18636         * m4/read.m4: New file.
18637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18638         REPLACE_READ.
18639         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18640         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18641         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18642         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18643         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18644         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18645         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18646         * modules/read: New file.
18647         * modules/nonblocking (Files): Add lib/stdio-read.c.
18648         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18649         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18650         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18651         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18652         * modules/pread (Depends-on): Add read.
18653         * modules/safe-read (Depends-on): Likewise.
18654         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18655         gets, scanf, vfscanf, vscanf): Verify signatures.
18656         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18657         problem with non-blocking pipes.
18658         * doc/posix-functions/fgetc.texi: Likewise.
18659         * doc/posix-functions/fgets.texi: Likewise.
18660         * doc/posix-functions/fread.texi: Likewise.
18661         * doc/posix-functions/fscanf.texi: Likewise.
18662         * doc/posix-functions/getc.texi: Likewise.
18663         * doc/posix-functions/getchar.texi: Likewise.
18664         * doc/posix-functions/gets.texi: Likewise.
18665         * doc/posix-functions/scanf.texi: Likewise.
18666         * doc/posix-functions/vfscanf.texi: Likewise.
18667         * doc/posix-functions/vscanf.texi: Likewise.
18668
18669 2011-04-14  Bruno Haible  <bruno@clisp.org>
18670
18671         Support non-blocking pipe I/O in write() on native Windows.
18672         * lib/write.c (rpl_write): Split a write request that failed merely
18673         because the byte count was larger than the pipe buffer's size.
18674         * doc/posix-functions/write.texi: Mention the problem with large byte
18675         counts.
18676
18677 2011-04-14  Bruno Haible  <bruno@clisp.org>
18678
18679         wchar: Ensure that wchar_t gets defined on uClibc.
18680         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18681         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18682
18683 2011-04-13  Bruno Haible  <bruno@clisp.org>
18684
18685         safe-write, full-read: Avoid unnecessary compilation units.
18686         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18687         (Depends-on): Remove safe-read. Add ssize_t.
18688         * modules/full-read (Files): Add lib/full-write.c.
18689         (Depends-on): Add full-write.
18690
18691 2011-04-13  Bruno Haible  <bruno@clisp.org>
18692
18693         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18694         * modules/pwrite (Depends-on): Add 'write'.
18695
18696 2011-04-13  Bruno Haible  <bruno@clisp.org>
18697
18698         Support non-blocking pipe I/O in write() on native Windows.
18699         * lib/unistd.in.h (write): Enable replacement also if
18700         GNULIB_UNISTD_H_NONBLOCKING is 1.
18701         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18702         (rpl_write): When failing to write on a non-blocking pipe, change
18703         errno from ENOSPC to EAGAIN.
18704         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18705         putchar, puts, vfprintf, vprintf): Enable replacement also if
18706         GNULIB_STDIO_H_NONBLOCKING is 1.
18707         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18708         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18709         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18710         CALL_WITH_SIGPIPE_EMULATION.
18711         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18712         * m4/nonblocking.m4: New file.
18713         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18714         for non-blocking I/O support.
18715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18716         GNULIB_UNISTD_H_NONBLOCKING.
18717         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18718         required for non-blocking I/O support.
18719         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18720         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18721         lib/stdio-write.c, m4/asm-underscore.m4.
18722         (Depends-on): Add stdio, unistd.
18723         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18724         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18725         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18726         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18727         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18728         problem with non-blocking pipes.
18729         * doc/posix-functions/fputc.texi: Likewise.
18730         * doc/posix-functions/fputs.texi: Likewise.
18731         * doc/posix-functions/fwrite.texi: Likewise.
18732         * doc/posix-functions/printf.texi: Likewise.
18733         * doc/posix-functions/putc.texi: Likewise.
18734         * doc/posix-functions/putchar.texi: Likewise.
18735         * doc/posix-functions/puts.texi: Likewise.
18736         * doc/posix-functions/vfprintf.texi: Likewise.
18737         * doc/posix-functions/vprintf.texi: Likewise.
18738         * doc/posix-functions/write.texi: Likewise.
18739
18740 2011-04-10  Jim Meyering  <meyering@redhat.com>
18741
18742         maint.mk: prohibit doubled words
18743         Detect them also when they're separated by a newline.
18744         There are 3 ways to customize it:
18745           - disable the test on a per file basis, as usual with rules using
18746             $(VC_LIST_EXCEPT)
18747           - replace the default doubled-word-selecting regexp (affects all files)
18748           - ignore a particular file-vs-doubled-word match
18749         I nearly used that last one to ignore the "is is" match in
18750         coreutils' NEWS file, since the text was "ls -is is ..."
18751         To do that, I would have added this line to cfg.mk:
18752           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18753         but it would have ignored any "is is" match in NEWS.
18754         Low probability, but still...
18755         Instead, I changed the text, slightly:
18756           -  ls -is is now consistent with ls -lis in ignoring values returned
18757           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18758         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18759         (prohibit_doubled_word_): Define.
18760         (sc_prohibit_doubled_word): New rule.
18761         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18762
18763 2011-04-10  Jim Meyering  <meyering@redhat.com>
18764
18765         maint: fix doubled-word typo in comment
18766         * m4/gethostname.m4: s/is is/it is/
18767         * m4/getdomainname.m4: Likewise.
18768
18769 2011-04-10  Jim Meyering  <meyering@redhat.com>
18770
18771         maint: remove doubled word: s/it it/it/
18772         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18773
18774 2011-04-10  Jim Meyering  <meyering@redhat.com>
18775
18776         maint.mk: remove useless semicolon and backslash
18777         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18778         semicolon and backslash.
18779
18780 2011-04-10  Bruno Haible  <bruno@clisp.org>
18781
18782         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18783         * modules/stdint-tests (Depends-on): Add wchar.
18784
18785 2011-04-10  Jim Meyering  <meyering@redhat.com>
18786
18787         maint: remove doubled words in comments, e.g., s/a a/a/
18788         * lib/strptime.c (day_of_the_week): s/the the/the/
18789         * tests/test-chown.h (test_chown): s/a a/a/
18790
18791         test-chown.h: correct a cast
18792         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18793         when the destination is a stat.st_gid.
18794
18795 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18796
18797         getaddrinfo: Fix test for sa_len member.
18798         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18799         include <sys/types.h> before <sys/socket.h>.
18800
18801 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18802
18803         maint: change "can not" to "cannot"
18804         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18805         boundaries.
18806
18807 2011-04-09  Jim Meyering  <meyering@redhat.com>
18808
18809         maint: change "a a" to "a"
18810         * tests/test-lchown.h (test_lchown): s/a a/a/
18811
18812         maint.mk: prohibit \<the the\>
18813         * top/maint.mk (sc_prohibit_the_the): New rule.
18814
18815         maint: fix "the the" in comment
18816         * lib/count-one-bits.h: s/the the/the/
18817
18818         maint: change "can not" to "cannot"
18819         But do not change the occurrences in maintain.texi or in
18820         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18821         * doc/gnulib-tool.texi: s/can not/cannot/
18822         * doc/posix-functions/accept.texi (accept): Likewise.
18823         * doc/posix-functions/socket.texi (socket): Likewise.
18824         * lib/mbrtowc.c: Likewise.
18825
18826         maint.mk: prohibit use of "can not"
18827         * top/maint.mk (sc_prohibit_can_not): New rule.
18828         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18829
18830 2011-04-09  Bruno Haible  <bruno@clisp.org>
18831
18832         careadlinkat: Guard against misuse of careadlinkatcwd.
18833         * lib/careadlinkat.c: Include <stdlib.h>.
18834         (careadlinkatcwd): Check that the fd argument is as expected.
18835
18836 2011-04-09  Bruno Haible  <bruno@clisp.org>
18837
18838         careadlinkat: Use common coding style.
18839         * lib/careadlinkat.c: Move gnulib includes after system includes.
18840
18841 2011-04-09  Bruno Haible  <bruno@clisp.org>
18842
18843         careadlinkat: Clarify specification.
18844         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18845         (careadlinkatcwd): Add comment.
18846         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18847
18848 2011-04-09  Bruno Haible  <bruno@clisp.org>
18849
18850         areadlinkat: Avoid link error on many platforms.
18851         * modules/areadlinkat (Depends-on): Add areadlink.
18852
18853 2011-04-09  Bruno Haible  <bruno@clisp.org>
18854
18855         allocator, careadlinkat: Fix double-inclusion guard.
18856         * lib/allocator.h: Fix double-inclusion guard.
18857         * lib/careadlinkat.h: Likewise.
18858
18859 2011-04-09  Bruno Haible  <bruno@clisp.org>
18860
18861         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18862         * lib/relocwrapper.c: Update dependencies hierarchy.
18863         * build-aux/install-reloc: Update list of files to be compiled.
18864         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18865         lib/allocator.[hc].
18866
18867 2011-04-08  Eric Blake  <eblake@redhat.com>
18868
18869         strftime: silence gnulib-tool warning
18870         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18871
18872 2011-04-08  Bruno Haible  <bruno@clisp.org>
18873
18874         verify: Fix syntax error with GCC 4.6 in C++ mode.
18875         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18876         (HAVE_STATIC_ASSERT): New macro.
18877         (verify_true, verify): Use 'static_assert' if it is supported and
18878         '_Static_assert' is not supported.
18879
18880 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18881
18882         allocator: New module.
18883         * modules/allocator, lib/allocator.c: New files.
18884         * lib/allocator.h (stdlib_allocator): New decl.
18885         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18886         Remove.  Do not include <stdlib.h>.
18887         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18888         * modules/careadlinkat (Files): Remove lib/allocator.h.
18889         (Depends-on): Add allocator.
18890
18891         stdlib: let modules use system malloc, realloc
18892         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18893         if !_GL_USE_STDLIB_ALLOC.
18894         (malloc, realloc): Limit this change to a smaller scope.
18895
18896         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18897         (malloc, realloc): Don't #undef; no longer needed.
18898         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18899         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18900         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18901         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18902         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18903         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18904         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18905         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18906
18907         careadlinkat: rename members to avoid problem
18908         * lib/allocator.h (struct allocator): Rename members from
18909         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18910         and realloc are #define'd.  Reported by Eric Blake in
18911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18912         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18913
18914 2011-04-08  Eric Blake  <eblake@redhat.com>
18915
18916         nonblocking: reduce dependency
18917         * tests/test-nonblocking.c: Only test sockets when in use.
18918         * modules/nonblocking-tests (Depends-on): Drop socket.
18919         (Makefile.am): Link even if sockets are not present.
18920         * modules/pipe2-tests (Makefile.am): Likewise.
18921         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18922
18923         pipe2: fix O_NONBLOCK support on mingw
18924         * modules/pipe2 (Depends-on): Add nonblocking.
18925         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18926         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18927         * tests/test-nonblocking.c (main): Likewise.
18928         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18929
18930         fcntl-h: fix O_ACCMODE on cygwin
18931         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18932         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18933
18934         pipe-filter: drop O_NONBLOCK workarounds
18935         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18936         * modules/pipe-filter-ii (Depends-on): Likewise.
18937         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18938
18939         nonblocking: provide O_NONBLOCK for mingw
18940         * modules/nonblocking (Depends-on): Add open.
18941         (configure.ac): Set new witness macro.
18942         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18943         * modules/fcntl-h (Makefile.am): Substitute it.
18944         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18945         nonblocking module is in use.
18946         * lib/nonblocking.c: Adjust portability test.
18947         * lib/open.c (open): Don't let native open see gnulib flag.
18948         * tests/test-fcntl-h.c (main): Enhance test.
18949         * tests/test-open.h (test_open): Likewise.
18950         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18951
18952         careadlinkat: fix compilation error on mingw
18953         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18954         within struct allocator.
18955
18956 2011-04-06  Eric Blake  <eblake@redhat.com>
18957
18958         binary-io: relicense under LGPLv2+
18959         * modules/binary-io (License): Relax to LGPLv2+.
18960         Requested for libvirt, and required by pipe2.
18961
18962 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18963
18964         verify: use _Static_assert if available
18965         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18966         (verify_true, verify): Use it if available.  This generates better
18967         diagnostics with GCC 4.6.0 and later.
18968
18969 2011-04-05  Bruno Haible  <bruno@clisp.org>
18970
18971         Remove leftover generated .h files after config.status changed.
18972
18973         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18974         GL_GENERATE_ALLOCA_H.
18975         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18976         GL_GENERATE_ALLOCA_H evaluates to false.
18977
18978         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18979         GL_GENERATE_ARGZ_H.
18980         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18981         evaluates to false.
18982
18983         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18984         GL_GENERATE_BYTESWAP_H.
18985         * modules/byteswap (Makefile.am): Remove byteswap.h if
18986         GL_GENERATE_BYTESWAP_H evaluates to false.
18987
18988         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18989         GL_GENERATE_ERRNO_H.
18990         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18991         evaluates to false.
18992
18993         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18994         GL_GENERATE_FLOAT_H.
18995         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18996         evaluates to false.
18997
18998         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18999         GL_GENERATE_FNMATCH_H.
19000         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19001         GL_GENERATE_FNMATCH_H evaluates to false.
19002
19003         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19004         GL_GENERATE_GLOB_H.
19005         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19006         evaluates to false.
19007
19008         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19009         automake conditional GL_GENERATE_ICONV_H.
19010         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19011         evaluates to false.
19012
19013         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19014         GL_GENERATE_NETINET_IN_H.
19015         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19016         GL_GENERATE_NETINET_IN_H evaluates to false.
19017
19018         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19019         conditional GL_GENERATE_PTHREAD_H.
19020         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19021         * modules/pthread (Makefile.am): Remove pthread.h if
19022         GL_GENERATE_PTHREAD_H evaluates to false.
19023
19024         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19025         GL_GENERATE_SCHED_H.
19026         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19027         evaluates to false.
19028
19029         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19030         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19031         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19032         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19033
19034         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19035         GL_GENERATE_STDARG_H.
19036         * modules/stdarg (Makefile.am): Remove stdarg.h if
19037         GL_GENERATE_STDARG_H evaluates to false.
19038
19039         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19040         GL_GENERATE_STDBOOL_H.
19041         * modules/stdbool (Makefile.am): Remove stdbool.h if
19042         GL_GENERATE_STDBOOL_H evaluates to false.
19043
19044         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19045         conditional GL_GENERATE_STDDEF_H.
19046         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19047         * modules/stddef (Makefile.am): Remove stddef.h if
19048         GL_GENERATE_STDDEF_H evaluates to false.
19049
19050         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19051         GL_GENERATE_STDINT_H.
19052         * modules/stdint (Makefile.am): Remove stdint.h if
19053         GL_GENERATE_STDINT_H evaluates to false.
19054
19055         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19056         GL_GENERATE_SYSEXITS_H.
19057         * modules/sysexits (Makefile.am): Remove sysexits.h if
19058         GL_GENERATE_SYSEXITS_H evaluates to false.
19059
19060         Reported by Karl Berry and Ralf Wildenhues.
19061
19062 2011-04-05  Bruno Haible  <bruno@clisp.org>
19063
19064         Ensure to rebuild generated .h files when config.status has changed.
19065         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19066         config.status.
19067         * modules/ctype (Makefile.am): Likewise.
19068         * modules/dirent (Makefile.am): Likewise.
19069         * modules/errno (Makefile.am): Likewise.
19070         * modules/fcntl-h (Makefile.am): Likewise.
19071         * modules/float (Makefile.am): Likewise.
19072         * modules/getopt-posix (Makefile.am): Likewise.
19073         * modules/glob (Makefile.am): Likewise.
19074         * modules/iconv-h (Makefile.am): Likewise.
19075         * modules/inttypes (Makefile.am): Likewise.
19076         * modules/langinfo (Makefile.am): Likewise.
19077         * modules/locale (Makefile.am): Likewise.
19078         * modules/math (Makefile.am): Likewise.
19079         * modules/netdb (Makefile.am): Likewise.
19080         * modules/netinet_in (Makefile.am): Likewise.
19081         * modules/poll-h (Makefile.am): Likewise.
19082         * modules/pthread (Makefile.am): Likewise.
19083         * modules/pty (Makefile.am): Likewise.
19084         * modules/sched (Makefile.am): Likewise.
19085         * modules/search (Makefile.am): Likewise.
19086         * modules/selinux-h (Makefile.am): Likewise.
19087         * modules/signal (Makefile.am): Likewise.
19088         * modules/spawn (Makefile.am): Likewise.
19089         * modules/stdarg (Makefile.am): Likewise.
19090         * modules/stdbool (Makefile.am): Likewise.
19091         * modules/stddef (Makefile.am): Likewise.
19092         * modules/stdint (Makefile.am): Likewise.
19093         * modules/stdio (Makefile.am): Likewise.
19094         * modules/stdlib (Makefile.am): Likewise.
19095         * modules/string (Makefile.am): Likewise.
19096         * modules/strings (Makefile.am): Likewise.
19097         * modules/sys_file (Makefile.am): Likewise.
19098         * modules/sys_ioctl (Makefile.am): Likewise.
19099         * modules/sys_select (Makefile.am): Likewise.
19100         * modules/sys_socket (Makefile.am): Likewise.
19101         * modules/sys_stat (Makefile.am): Likewise.
19102         * modules/sys_time (Makefile.am): Likewise.
19103         * modules/sys_times (Makefile.am): Likewise.
19104         * modules/sys_utsname (Makefile.am): Likewise.
19105         * modules/sys_wait (Makefile.am): Likewise.
19106         * modules/sysexits (Makefile.am): Likewise.
19107         * modules/termios (Makefile.am): Likewise.
19108         * modules/time (Makefile.am): Likewise.
19109         * modules/unistd (Makefile.am): Likewise.
19110         * modules/wchar (Makefile.am): Likewise.
19111         * modules/wctype-h (Makefile.am): Likewise.
19112         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19113
19114 2011-04-05  Bruno Haible  <bruno@clisp.org>
19115
19116         pipe2: Relicense under LGPLv2+.
19117         * modules/pipe2 (License): Change to LGPLv2+.
19118         Requested by Eric Blake, for libvirt.
19119
19120 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19121
19122         bootstrap: compute gnulib_extra_files after updating build_aux
19123         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19124         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19125
19126 2011-04-05  Eric Blake  <eblake@redhat.com>
19127
19128         bootstrap: preserve git whitelist item sorting
19129         * build-aux/bootstrap (sort_patterns): New function.
19130         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19131
19132 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19133
19134         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19135         sc_space_tab check.
19136
19137 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19138
19139         areadlink, areadlinkat: rewrite in terms of careadlinkat
19140         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19141         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19142         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19143         (malloc, realloc): Remove #undefs.
19144         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19145         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19146         readlink, ssize_t, stdint, unistd.
19147         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19148         areadlink, stdint.
19149
19150         careadlinkat: new module
19151         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19152         * modules/careadlinkat: New files, written by me with
19153         a review and feedback from Ben Pfaff in
19154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19155
19156 2011-04-01  Bruno Haible  <bruno@clisp.org>
19157
19158         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19159         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19160         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19161         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19162         Reported by Bruce Korb <bruce.korb@gmail.com>.
19163
19164 2011-04-01  Bruno Haible  <bruno@clisp.org>
19165
19166         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19167         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19168         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19169         * modules/wcpcpy (Depends-on): Add extensions.
19170         * modules/wcpncpy (Depends-on): Likewise.
19171         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19172         systems.
19173         * doc/posix-functions/wcpncpy.texi: Likewise.
19174         * doc/posix-functions/wcwidth.texi: Likewise.
19175
19176 2011-03-31  Eric Blake  <eblake@redhat.com>
19177
19178         nonblocking: fix mingw test failures
19179         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19180         non-blocking flag on regular file.
19181         (get_nonblocking_flag): Set errno on invalid fd.
19182         * tests/test-nonblocking.c (main): Avoid test failure on
19183         directories if fchdir is not active.
19184         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19185
19186 2011-03-31  Bruno Haible  <bruno@clisp.org>
19187
19188         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19189         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19190         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19191         Reported by Simon Josefsson <simon@josefsson.org>.
19192
19193 2011-03-31  Bruno Haible  <bruno@clisp.org>
19194         and Eric Blake  <eblake@redhat.com>
19195
19196         nonblocking: new module
19197         * modules/nonblocking: New module.
19198         * modules/nonblocking-tests: Likewise.
19199         * lib/nonblocking.h: New file.
19200         * lib/nonblocking.c: Likewise.
19201         * tests/test-nonblocking.c: New test.
19202         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19203
19204 2011-03-30  Bruno Haible  <bruno@clisp.org>
19205
19206         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19207         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19208         instead of 'printf' format for GCC >= 4.4.
19209         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19210         (fprintf, printf, vfprintf, vprintf): Declare with
19211         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19212         the system's vfprintf() function.
19213         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19214
19215 2011-03-30  Eric Blake  <eblake@redhat.com>
19216
19217         passfd: fix scoping bug
19218         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19219         before sendmsg/recvmsg.
19220
19221         passfd: standardize coding conventions
19222         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19223         can be learned at compile time.
19224         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19225         ifdefs.
19226         (sendfd, recvfd): Follow gnulib code conventions.
19227
19228         passfd: fix incorrect sendmsg arguments
19229         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19230         incorrect msg_controllen value.
19231         * modules/passfd-tests (Depends-on): Check for alarm.
19232         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19233         Reported by Bastien ROUCARIES.
19234
19235 2011-03-30  Bruno Haible  <bruno@clisp.org>
19236
19237         c-strcasestr: Relicense under LGPLv2+.
19238         * modules/c-strcasestr (License): Change to LGPLv2+.
19239         Requested by Eric Blake, for libvirt.
19240
19241 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19242
19243         * users.txt: Add libidn2.  Fix libtasn1 link.
19244
19245 2011-03-30  Jim Meyering  <meyering@redhat.com>
19246
19247         tests: readlink* ("",... fails with EINVAL on newer kernels
19248         readlink and readlinkat have typically failed with ENOENT for
19249         the invalid, empty file name,  "".  However, with the advent
19250         of linux-2.6.39, they fail with EINVAL.
19251         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19252         when operating on the empty file name.
19253         * tests/test-readlink.h (test_readlink): Likewise.
19254
19255 2011-03-29  Bruno Haible  <bruno@clisp.org>
19256
19257         Relicense some modules under LGPLv2+, for libidn2.
19258         * modules/array-mergesort (License): Change to LGPLv2+.
19259         * modules/c-strcaseeq (License): Likewise.
19260         * modules/striconveh (License): Likewise.
19261         * modules/striconveha (License): Likewise.
19262         * modules/uniconv/base (License): Likewise.
19263         * modules/uniconv/u8-conv-from-enc (License): Likewise.
19264         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
19265         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19266         * modules/unictype/base (License): Likewise.
19267         * modules/unictype/bidiclass-of (License): Likewise.
19268         * modules/unictype/category-M (License): Likewise.
19269         * modules/unictype/category-none (License): Likewise.
19270         * modules/unictype/category-of (License): Likewise.
19271         * modules/unictype/category-test (License): Likewise.
19272         * modules/unictype/category-test-withtable (License): Likewise.
19273         * modules/unictype/combining-class (License): Likewise.
19274         * modules/unictype/joiningtype-of (License): Likewise.
19275         * modules/unictype/scripts (License): Likewise.
19276         * modules/uninorm/base (License): Likewise.
19277         * modules/uninorm/canonical-decomposition (License): Likewise.
19278         * modules/uninorm/composition (License): Likewise.
19279         * modules/uninorm/decompose-internal (License): Likewise.
19280         * modules/uninorm/decomposition-table (License): Likewise.
19281         * modules/uninorm/nfc (License): Likewise.
19282         * modules/uninorm/nfd (License): Likewise.
19283         * modules/uninorm/u32-normalize (License): Likewise.
19284         * modules/unistr/base (License): Likewise.
19285         * modules/unistr/u32-cpy (License): Likewise.
19286         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19287         * modules/unistr/u32-to-u8 (License): Likewise.
19288         * modules/unistr/u32-uctomb (License): Likewise.
19289         * modules/unistr/u8-check (License): Likewise.
19290         * modules/unistr/u8-mblen (License): Likewise.
19291         * modules/unistr/u8-mbtouc (License): Likewise.
19292         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19293         * modules/unistr/u8-mbtoucr (License): Likewise.
19294         * modules/unistr/u8-prev (License): Likewise.
19295         * modules/unistr/u8-strlen (License): Likewise.
19296         * modules/unistr/u8-to-u32 (License): Likewise.
19297         * modules/unistr/u8-uctomb (License): Likewise.
19298         * modules/unitypes (License): Likewise.
19299         Requested by Simon Josefsson.
19300
19301 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19302
19303         lib-symbol-visibility: Add a notice.
19304         * modules/lib-symbol-visibility (Notice): New field.
19305
19306 2011-03-29  Bruno Haible  <bruno@clisp.org>
19307
19308         getaddrinfo: Doc fix.
19309         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19310         section "fixed in Gnulib".
19311
19312 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19313
19314         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19315         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19316
19317 2011-03-26  Bruno Haible  <bruno@clisp.org>
19318
19319         unictype/property-byname: Reduce the number of load-time relocations.
19320         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19321         (UC_PROPERTY_INDEX_*): New enumeration values.
19322         (uc_property_byname): Convert an index from the lookup table to an
19323         uc_property_t.
19324         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19325         values.
19326
19327 2011-03-26  Bruno Haible  <bruno@clisp.org>
19328
19329         unictype/property-byname: Allow omitted word separators and aliases.
19330         * lib/unictype/pr_byname.gperf: Add property names without word
19331         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
19332         for 'space'.
19333
19334 2011-03-26  Bruno Haible  <bruno@clisp.org>
19335
19336         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
19337         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
19338         also hyphens to space.
19339         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
19340         without spaces.
19341         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
19342
19343 2011-03-26  Bruno Haible  <bruno@clisp.org>
19344
19345         unictype/joiningtype-byname: Recognize long names as well.
19346         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
19347         a long name.
19348         * lib/unictype/joiningtype_byname.c: Include <string.h>,
19349         unictype/joiningtype_byname.h.
19350         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
19351         * lib/unictype/joiningtype_byname.gperf: New file.
19352         * modules/unictype/joiningtype-byname (Files): Add
19353         lib/unictype/joiningtype_byname.gperf.
19354         (Depends-on): Add gperf.
19355         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
19356         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
19357         long names.
19358
19359         Tests for module 'unictype/joiningtype-longname'.
19360         * modules/unictype/joiningtype-longname-tests: New file.
19361         * tests/unictype/test-joiningtype_longname.c: New file.
19362
19363         New module 'unictype/joiningtype-longname'.
19364         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
19365         * lib/unictype/joiningtype_longname.c: New file.
19366         * modules/unictype/joiningtype-longname: New file.
19367         * modules/unictype/joiningtype-all (Depends-on): Add
19368         unictype/joiningtype-longname.
19369
19370 2011-03-26  Bruno Haible  <bruno@clisp.org>
19371
19372         unictype/bidiclass-byname: Recognize long names as well.
19373         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
19374         name.
19375         * lib/unictype/bidi_byname.c: Include <string.h>,
19376         unictype/bidi_byname.h.
19377         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
19378         * lib/unictype/bidi_byname.gperf: New file.
19379         * modules/unictype/bidiclass-byname (Files): Add
19380         lib/unictype/bidi_byname.gperf.
19381         (Depends-on): Add gperf.
19382         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
19383         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
19384         long names.
19385
19386         Tests for module 'unictype/bidiclass-longname'.
19387         * modules/unictype/bidiclass-longname-tests: New file.
19388         * tests/unictype/test-bidi_longname.c: New file.
19389
19390         New module 'unictype/bidiclass-longname'.
19391         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19392         * lib/unictype/bidi_longname.c: New file.
19393         * modules/unictype/bidiclass-longname: New file.
19394         * modules/unictype/bidiclass-all (Depends-on): Add
19395         unictype/bidiclass-longname.
19396
19397 2011-03-26  Bruno Haible  <bruno@clisp.org>
19398
19399         unictype/bidi*: Rename modules.
19400         * modules/unictype/bidiclass-all: Renamed from
19401         modules/unictype/bidicategory-all.
19402         * modules/unictype/bidiclass-name: Renamed from
19403         modules/unictype/bidiclass-name.
19404         (Description): Update.
19405         * modules/unictype/bidiclass-name-tests: Renamed from
19406         modules/unictype/bidicategory-name-tests.
19407         * modules/unictype/bidiclass-byname: Renamed from
19408         modules/unictype/bidicategory-byname.
19409         (Description): Update.
19410         * modules/unictype/bidiclass-byname-tests: Renamed from
19411         modules/unictype/bidicategory-byname-tests.
19412         * modules/unictype/bidiclass-of: Renamed from
19413         modules/unictype/bidicategory-of.
19414         (Description): Update.
19415         * modules/unictype/bidiclass-of-tests: Renamed from
19416         modules/unictype/bidicategory-of-tests.
19417         * modules/unictype/bidiclass-test: Renamed from
19418         modules/unictype/bidicategory-test.
19419         (Description): Update.
19420         * modules/unictype/bidiclass-test-tests: Renamed from
19421         modules/unictype/bidicategory-test-tests.
19422         * modules/unictype/bidicategory-all: New file, a simple redirection.
19423         * modules/unictype/bidicategory-name: Likewise.
19424         * modules/unictype/bidicategory-byname: Likewise.
19425         * modules/unictype/bidicategory-of: Likewise.
19426         * modules/unictype/bidicategory-test: Likewise.
19427         * modules/unictype/property-bidi-* (Dependencies): Update.
19428         * lib/unictype/bidi_*.c: Update comment.
19429
19430 2011-03-26  Bruno Haible  <bruno@clisp.org>
19431
19432         unictype/bidi*: Rename functions, part 2.
19433         * modules/unictype/bidicategory-name (configure.ac): Update required
19434         libunistring version.
19435         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19436
19437 2011-03-25  Bruno Haible  <bruno@clisp.org>
19438
19439         New module 'unictype/combining-class-all'.
19440         * modules/unictype/combining-class-all: New file.
19441
19442         Tests for module 'unictype/combining-class-byname'.
19443         * modules/unictype/combining-class-byname-tests: New file.
19444         * tests/unictype/test-combiningclass_byname.c: New file.
19445
19446         New module 'unictype/combining-class-byname'.
19447         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19448         * lib/unictype/combiningclass_byname.c: New file.
19449         * lib/unictype/combiningclass_byname.gperf: New file.
19450         * modules/unictype/combining-class-byname: New file.
19451
19452         Tests for module 'unictype/combining-class-longname'.
19453         * modules/unictype/combining-class-longname-tests: New file.
19454         * tests/unictype/test-combiningclass_longname.c: New file.
19455
19456         New module 'unictype/combining-class-longname'.
19457         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
19458         * lib/unictype/combiningclass_longname.c: New file.
19459         * modules/unictype/combining-class-longname: New file.
19460
19461         Tests for module 'unictype/combining-class-name'.
19462         * modules/unictype/combining-class-name-tests: New file.
19463         * tests/unictype/test-combiningclass_name.c: New file.
19464
19465         New module 'unictype/combining-class-name'.
19466         * lib/unictype.in.h (uc_combining_class_name): New declaration.
19467         * lib/unictype/combiningclass_name.c: New file.
19468         * modules/unictype/combining-class-name: New file.
19469
19470 2011-03-25  Bruno Haible  <bruno@clisp.org>
19471
19472         unictype/combining-class: Rename source files.
19473         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
19474         of unictype/combining.h.
19475         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
19476         Update.
19477         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
19478         * modules/unictype/combining-class (Description): Fix.
19479         (Files, Makefile.am): Update.
19480         * tests/unictype/test-combiningclass.c: Renamed from
19481         tests/unictype/test-combining.c.
19482         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19483
19484 2011-03-25  Bruno Haible  <bruno@clisp.org>
19485
19486         unictype: Update list of canonical combining classes.
19487         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19488
19489 2011-03-25  Bruno Haible  <bruno@clisp.org>
19490
19491         unictype/category-byname: Recognize long names as well.
19492         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19493         a long name.
19494         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19495         unictype/categ_byname.h.
19496         (UC_CATEGORY_INDEX_*): New enumeration values.
19497         (uc_general_category_byname): Use uc_general_category_lookup and
19498         convert from index to value.
19499         * lib/unictype/categ_byname.gperf: New file.
19500         * modules/unictype/category-byname (Files): Add
19501         lib/unictype/categ_byname.gperf.
19502         (Depends-on): Add gperf.
19503         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19504         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19505         long names.
19506
19507         Tests for module 'unictype/category-longname'.
19508         * modules/unictype/category-longname-tests: New file.
19509         * tests/unictype/test-categ_longname.c: New file.
19510
19511         New module 'unictype/category-longname'.
19512         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19513         * lib/unictype/categ_longname.c: New file.
19514         * modules/unictype/category-longname: New file.
19515         * modules/unictype/category-all (Depends-on): Add it.
19516
19517 2011-03-25  Bruno Haible  <bruno@clisp.org>
19518
19519         Tests for module 'unictype/category-LC'.
19520         * modules/unictype/category-LC-tests: New file.
19521         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19522
19523         New module 'unictype/category-LC'.
19524         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19525         (UC_CATEGORY_LC): New declaration.
19526         (UC_CASED_LETTER): New macro.
19527         * lib/gen-uni-tables.c (is_category_LC): New function.
19528         (output_categories): Also handle category LC.
19529         (UC_CATEGORY_MASK_LC): New enumeration value.
19530         (general_category_byname): Also handle category LC.
19531         * lib/unictype/categ_LC.c: New file.
19532         * lib/unictype/categ_LC.h: New file, automatically generated.
19533         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19534         category LC.
19535         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19536         * modules/unictype/category-LC: New file.
19537         * modules/unictype/category-byname (Depends-on): Add
19538         unictype/category-LC.
19539         * modules/unictype/category-all (Depends-on): Likewise.
19540
19541 2011-03-25  Eric Blake  <eblake@redhat.com>
19542
19543         xmalloc: revert yesterday's regression
19544         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19545         realloc's underlying behavior (allowing allocation of zero-size
19546         objects, especially if malloc-gnu is also in use).
19547
19548 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19549
19550         maint.mk: add missing version to VC-tag
19551         * top/maint.mk: git tag was missing actual tag name; add it.
19552
19553         valgrind: do leak checking, and exit with code 1 on error (not 0)
19554         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19555         to VALGRIND.
19556
19557 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19558
19559         posix-modules: say what it does.
19560         * posix-modules: Add a line to the --help output saying what it does.
19561
19562 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19563
19564         xmalloc: Do not leak if underlying realloc is C99 compatible.
19565         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19566         This avoids a leak on C99-based systems.  See
19567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19568
19569 2011-03-24  Eric Blake  <eblake@redhat.com>
19570
19571         realloc: document portability problem
19572         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19573         passing 0 size to realloc.
19574
19575 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19576
19577         doc: update users.txt
19578         * users.txt: Add cvsps, tmpwatch
19579
19580 2011-03-23  Matt Rice  <ratmice@gmail.com>
19581
19582         doc: update users.txt
19583         * users.txt: Add gdb.
19584
19585 2011-03-23  Jim Meyering  <meyering@redhat.com>
19586
19587         doc: update users.txt
19588         Looking through matches up to the following URL (there are still
19589         several more pages), I found several projects that use gnulib:
19590         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19591         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19592         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19593
19594 2011-03-22  Bruno Haible  <bruno@clisp.org>
19595
19596         unictype/bidi*: Rename functions.
19597         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19598         uc_bidi_class, uc_is_bidi_class): New declarations.
19599         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19600         uc_bidi_category_byname.
19601         (uc_bidi_category_byname): New function.
19602         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19603         u_bidi_category_name.
19604         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19605         (uc_bidi_category_name): New function.
19606         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19607         uc_bidi_category.
19608         (uc_bidi_category): New function.
19609         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19610         uc_is_bidi_category. Invoke uc_bidi_class.
19611         (uc_is_bidi_category): New function.
19612         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19613         instead of uc_bidi_category_byname.
19614         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19615         instead of uc_bidi_category_name.
19616         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19617         uc_bidi_category.
19618         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19619         instead of uc_is_bidi_category.
19620
19621 2011-03-21  Bruno Haible  <bruno@clisp.org>
19622
19623         New module 'unictype/joininggroup-all'.
19624         * modules/unictype/joininggroup-all: New file.
19625
19626         Tests for module 'unictype/joininggroup-of'.
19627         * modules/unictype/joininggroup-of-tests: New file.
19628         * tests/unictype/test-joininggroup_of.c: New file.
19629         * tests/unictype/test-joininggroup_of.h: New file, automatically
19630         generated by gen-uni-tables.
19631
19632         New module 'unictype/joininggroup-of'.
19633         * modules/unictype/joininggroup-of: New file.
19634         * lib/unictype/joininggroup_of.c: New file.
19635         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19636         gen-uni-tables.
19637
19638         Tests for module 'unictype/joininggroup-byname'.
19639         * modules/unictype/joininggroup-byname-tests: New file.
19640         * tests/unictype/test-joininggroup_byname.c: New file.
19641
19642         New module 'unictype/joininggroup-byname'.
19643         * modules/unictype/joininggroup-byname: New file.
19644         * lib/unictype/joininggroup_byname.c: New file.
19645         * lib/unictype/joininggroup_byname.gperf: New file.
19646
19647         Tests for module 'unictype/joininggroup-name'.
19648         * modules/unictype/joininggroup-name-tests: New file.
19649         * tests/unictype/test-joininggroup_name.c: New file.
19650
19651         New module 'unictype/joininggroup-name'.
19652         * modules/unictype/joininggroup-name: New file.
19653         * lib/unictype/joininggroup_name.c: New file.
19654         * lib/unictype/joininggroup_name.h: New file.
19655
19656         New module 'unictype/joiningtype-all'.
19657         * modules/unictype/joiningtype-all: New file.
19658
19659         Tests for module 'unictype/joiningtype-of'.
19660         * modules/unictype/joiningtype-of-tests: New file.
19661         * tests/unictype/test-joiningtype_of.c: New file.
19662         * tests/unictype/test-joiningtype_of.h: New file, automatically
19663         generated by gen-uni-tables.
19664
19665         New module 'unictype/joiningtype-of'.
19666         * modules/unictype/joiningtype-of: New file.
19667         * lib/unictype/joiningtype_of.c: New file.
19668         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19669         gen-uni-tables.
19670
19671         Tests for module 'unictype/joiningtype-byname'.
19672         * modules/unictype/joiningtype-byname-tests: New file.
19673         * tests/unictype/test-joiningtype_byname.c: New file.
19674
19675         New module 'unictype/joiningtype-byname'.
19676         * modules/unictype/joiningtype-byname: New file.
19677         * lib/unictype/joiningtype_byname.c: New file.
19678
19679         Tests for module 'unictype/joiningtype-name'.
19680         * modules/unictype/joiningtype-name-tests: New file.
19681         * tests/unictype/test-joiningtype_name.c: New file.
19682
19683         New module 'unictype/joiningtype-name'.
19684         * modules/unictype/joiningtype-name: New file.
19685         * lib/unictype/joiningtype_name.c: New file.
19686
19687         unictype: Add support for Arabic shaping properties.
19688         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19689         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19690         declarations.
19691         (UC_JOINING_GROUP_*): New enumeration values.
19692         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19693         declarations.
19694         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19695         (unicode_joining_type): New variable.
19696         (UC_JOINING_GROUP_*): New enumeration values.
19697         (unicode_joining_group): New variable.
19698         (fill_arabicshaping, joining_type_as_c_identifier,
19699         output_joining_type_test, output_joining_type,
19700         joining_group_as_c_identifier, output_joining_group_test,
19701         output_joining_group): New functions.
19702         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19703         fill_arabicshaping and output_joining_type_test, output_joining_type,
19704         output_joining_group_test, output_joining_group.
19705         Reported by Simon Josefsson.
19706
19707 2011-03-21  Jim Meyering  <meyering@redhat.com>
19708
19709         strftime: fix a bug in yesterday's change
19710         * lib/strftime.c (add): Accommodate width's initial value of -1.
19711         Otherwise, nstrftime would copy uninitialized data into
19712         the result buffer.
19713
19714 2011-03-21  Jim Meyering  <meyering@redhat.com>
19715
19716         tests: add strftime-tests module
19717         * tests/test-strftime.c: New file.
19718         * modules/strftime-tests: New module.
19719
19720 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19721
19722         strftime: don't assume a byte count fits in 'int'
19723         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19724         found this problem by static analysis, using gcc -Wstrict-overflow
19725         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19726         on an integer overflow having undefined behavior, but it turns out
19727         that the argument is a size, which might not fit in 'int' anyway,
19728
19729 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19730
19731         stdio: don't require ignore_value around fwrite
19732
19733         This patch works around libc bug 11959
19734         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19735         Without this patch, applications must often write
19736         ignore_value (fwrite (...)) even though the ignore_value is
19737         not helpful here.  It's common to write many objects, using
19738         fwrite/printf/etc., and then use ferror to detect output error.
19739
19740         I considered making this patch optional, but decided against it,
19741         because libc is obviously being inconsistent here: there is no
19742         reason libc should insist that user code must inspect fwrite
19743         return's value without also insisting that it inspect printf's,
19744         putchar's, etc.  If user code wants to have a strict style where
19745         all these functions' values are checked (so that ferror need not
19746         be checked), we could add support for that style in a new gnulib
19747         module, but in the meantime it's better to be consistent and to
19748         support common usage.
19749
19750         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19751         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19752         that we are compiling in checking mode, and if not C++, and
19753         if not already wrapping fwrite for some other reason.
19754         (fwrite): #define to rpl_fwrite if the latter is defined.
19755
19756 2011-03-20  Bruno Haible  <bruno@clisp.org>
19757
19758         verror: Fix compilation error introduced on 2011-02-13.
19759         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19760         instead of __attribute__.
19761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19762
19763 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19764             Bruno Haible  <bruno@clisp.org>
19765
19766         socklen: do not depend on sys_socket
19767         While trying to modify Emacs to use gnulib's socklen module,
19768         I discovered a circular dependency: socklen depends on sys_socket
19769         and vice versa.  Emacs can use socklen, but it does not need
19770         sys_socket because it has its own substitute for sys/socket.h.
19771         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19772         gl_TYPE_SOCKLEN_T.
19773         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19774         gl_PREREQ_SYS_H_SOCKET.
19775         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19776         gl_PREREQ_SYS_H_SOCKET.
19777         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19778         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19779         * modules/socklen (Depends-on): Do not depend on sys_socket.
19780         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19781
19782 2011-03-20  Jim Meyering  <meyering@redhat.com>
19783
19784         maint.mk: sort file names *after* new transformation
19785         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19786         prefix would have led to an unwarranted failure in GNU parted.
19787         Sort after that transformation.
19788
19789 2011-03-19  Jim Meyering  <meyering@redhat.com>
19790
19791         maint.mk: fix po-file syntax-check rule
19792         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19793         Patch by Bruno Haible.
19794
19795 2011-03-19  Bruno Haible  <bruno@clisp.org>
19796
19797         socklen: Update comment.
19798         * m4/socklen.m4: Update comment about platforms.
19799
19800 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19801             Bruno Haible  <bruno@clisp.org>
19802
19803         inet_ntop, inet_pton: Simplify.
19804         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19805         documented to provide socklen_t and we already depend on sys_socket.
19806         * modules/inet_pton (Depends-on): Likewise.
19807         * lib/arpa_inet.in.h: Adjust comment.
19808
19809 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19810             Bruno Haible  <bruno@clisp.org>
19811
19812         netdb: Simplify.
19813         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19814         documented to provide socklen_t and we already depend on sys_socket.
19815         * lib/netdb.in.h: Adjust comment.
19816
19817 2011-03-19  Bruno Haible  <bruno@clisp.org>
19818
19819         sys_socket, netdb: Document problem with socklen_t.
19820         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19821         platforms.
19822         * doc/posix-headers/netdb.texi: Likewise.
19823
19824 2011-03-18  Eric Blake  <eblake@redhat.com>
19825
19826         maint.mk: let po check work in VPATH build
19827         * top/maint.mk (po_file): Allow cfg.mk override.
19828         (sc_po_check): Allow VPATH use.
19829         Reported by Jiri Denemark.
19830
19831 2011-03-16  Jim Meyering  <meyering@redhat.com>
19832
19833         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19834         Before, you would have had to create one .x-sc_ file per rule in order
19835         to exempt offending files.  Now, you may instead use a Make variable --
19836         usually defined in cfg.mk -- whose name identifies the affected rule.
19837         * top/maint.mk (_sc_excl): Define.
19838         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19839         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19840
19841 2011-03-13  Bruno Haible  <bruno@clisp.org>
19842
19843         ignore-value tests: Avoid warnings.
19844         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19845         empty for gcc < 3.4.
19846
19847 2011-03-13  Bruno Haible  <bruno@clisp.org>
19848
19849         passfd: Fix link error on Solaris.
19850         * modules/passfd (Description): Correct.
19851         (Depends-on): Add socketlib.
19852         (Link): New section.
19853         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19854
19855 2011-03-13  Bruno Haible  <bruno@clisp.org>
19856
19857         passfd: Fix link error on AIX 5.2.
19858         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19859
19860 2011-03-13  Bruno Haible  <bruno@clisp.org>
19861
19862         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19863         * lib/sys_socket.in.h: Include <stddef.h>.
19864         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19865         CMSG_FIRSTHDR. Remove unused variable.
19866
19867 2011-03-13  Bruno Haible  <bruno@clisp.org>
19868
19869         passfd: Fix compilation error on OpenBSD.
19870         * lib/passfd.c: Include <sys/uio.h>.
19871
19872 2011-03-13  Bruno Haible  <bruno@clisp.org>
19873
19874         passfd test: Fix warnings.
19875         * tests/test-passfd.c: Include <sys/wait.h>.
19876         (main): Fix typo.
19877
19878 2011-03-13  Bruno Haible  <bruno@clisp.org>
19879
19880         passfd module, part 4, tweaks.
19881         * tests/test-passfd.c: Reorder includes.
19882         (main): Fix perror and printf calls.
19883
19884 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19885
19886         passfd module, part 4.
19887         * modules/passfd-tests: New file.
19888         * tests/test-passfd.c: New file.
19889
19890 2011-03-13  Jim Meyering  <meyering@redhat.com>
19891
19892         Makefile: rely on GNU make; derive syntax-check rule names
19893         Rather than requiring that each sc_ rule be listed as a dependent
19894         of "check", use features of GNU make to derive the list.
19895         * Makefile (syntax-check-rules): Define.
19896         (check): Depend on the new variable, not the hard-coded list.
19897
19898 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19899             Bruno Haible  <bruno@clisp.org>
19900
19901         passfd module, part 3.
19902         * lib/passfd.h (recvfd): Add a flags argument.
19903         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19904         (recvfd): Add a flags argument.
19905         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19906         exists.
19907         * modules/passfd (Depends-on): Add cloexec.
19908         Suggested by Eric Blake.
19909
19910 2011-03-13  Bruno Haible  <bruno@clisp.org>
19911
19912         passfd module, part 2, tweaks.
19913         * modules/passfd (Files): Reorder.
19914         (Depends-on): Remove errno.
19915         (Include): Remove <sys/socket.h>, <sys/un.h>.
19916         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19917         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19918         specification header. Include <sys/socket.h> always. Don't include
19919         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19920         (sendfd): Clarify that it sets errno when it fails.
19921         (recvfd): Fix specification.
19922
19923 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19924
19925         passfd module, part 2.
19926         * modules/passfd: New file.
19927         * lib/passfd.h: New file.
19928         * lib/passfd.c: New file.
19929
19930 2011-03-12  Bruno Haible  <bruno@clisp.org>
19931
19932         wcswidth, mbswidth: Avoid integer overflow.
19933         * lib/wcswidth.c: Include <limits.h>.
19934         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19935         * lib/mbswidth.c: Include <limits.h>.
19936         (mbsnwidth): Avoid 'int' overflow.
19937         Reported by Jim Meyering.
19938
19939 2011-03-12  Bruno Haible  <bruno@clisp.org>
19940
19941         futimens, utimensat: Avoid endless recursion on Solaris 10.
19942         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19943         Solaris.
19944         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19945         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19946
19947 2011-03-11  Jim Meyering  <meyering@redhat.com>
19948
19949         maint.mk: relax a regexp to accommodate other formatting styles
19950         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19951         between "ngettext" and the following "(".
19952
19953 2011-03-11  Pádraig Brady <P@draigBrady.com>
19954
19955         maint.mk: suppress a false positive warning
19956         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19957         diagnostics are marked with ngettext.
19958
19959 2011-03-10  Eric Blake  <eblake@redhat.com>
19960
19961         wchar: add explicit dependencies, for Tru64
19962         * modules/mbmemcasecoll (Depends-on): Add wchar.
19963         * modules/mbtowc (Depends-on): Likewise.
19964         * modules/vasnprintf (Depends-on): Likewise.
19965         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19966         * modules/wctomb (Depends-on): Likewise.
19967         Reported by Peter O'Gorman.
19968
19969 2011-03-08  Bruno Haible  <bruno@clisp.org>
19970
19971         passfd module, part 1, tweaks.
19972         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19973         Improve indentation. Improve AC_MSG_CHECKING messages.
19974         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19975         gl_SOCKET_FAMILIES.
19976
19977 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19978
19979         passfd module, part 1.
19980         * m4/afunix.m4: New file.
19981         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19982         sockets.
19983
19984 2011-03-08  Bruno Haible  <bruno@clisp.org>
19985
19986         regex-quote: New API.
19987         * lib/regex-quote.h: Include <stdbool.h>.
19988         (struct regex_quote_spec): New type.
19989         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19990         New declarations.
19991         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19992         'const struct regex_quote_spec *' argument.
19993         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19994         (pcre_special): New constant.
19995         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19996         New functions.
19997         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19998         'const struct regex_quote_spec *' argument.
19999         * modules/regex-quote (Depends-on): Add stdbool.
20000         * tests/test-regex-quote.c (check): Update for new API. Add test for
20001         anchored results.
20002         * NEWS: Mention the API change.
20003         Reported by Reuben Thomas and Eric Blake.
20004
20005 2011-03-06  Bruno Haible  <bruno@clisp.org>
20006
20007         regex-quote: Fix creation of POSIX extended regular expressions.
20008         * lib/regex-quote.c (ere_special): Add grouping and alternation
20009         operators.
20010
20011 2011-03-05  Bruno Haible  <bruno@clisp.org>
20012
20013         doc: Improve doc regarding autopoint vs. gnulib.
20014         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20015         disable autopoint while running autoreconf.
20016         Suggested by Ralf Wildenhues.
20017
20018 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20019
20020         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20021         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20022
20023 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20024
20025         parse-duration: remove xalloc.h dependency
20026         * lib/parse-duration.c (parse_period): handle NULL return from
20027         strdup instead of calling xstrdup().
20028         * modules/parse-duration: remove "xalloc" dependency
20029
20030 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20031
20032         bootstrap: honor m4_base when running aclocal
20033         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20034
20035 2011-03-02  Jim Meyering  <meyering@redhat.com>
20036
20037         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20038         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20039         on request from Matt Booth.
20040
20041 2011-03-01  Eric Blake  <eblake@redhat.com>
20042
20043         test-link: work on Hurd
20044         * tests/test-link.h (test_link): Hurd rejects linking directories
20045         with EISDIR instead of the POSIX-mandated EPERM.
20046
20047 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20048
20049         stdio: simplify by moving files to printf-posix, sigpipe
20050         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20051         since this symbol is needed only if printf is replaced.
20052         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20053         Require gl_ASM_SYMBOL_PREFIX.
20054         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20055         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20056         (Depends-on): Add 'raise'.
20057         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20058         * modules/stdio (Files): Remove lib/stdio-write.c,
20059         m4/asm-underscore.m4.
20060         (Depends-on): Remove 'raise'.
20061
20062         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20063         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20064         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20065         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20066
20067 2011-02-28  Bruno Haible  <bruno@clisp.org>
20068
20069         localcharset: Assume ANSI C behaviour of free().
20070         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20071         calling free().
20072         Suggested by Simon Josefsson <simon@josefsson.org>.
20073
20074 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20075             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20076             Bruno Haible  <bruno@clisp.org>  (tiny change)
20077
20078         On Cygwin, use /proc file system instead of win32 API.
20079         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20080         Win32 file names.
20081         (DllMain): Simplify by removing Cygwin specific code.
20082         (find_shared_library_fullname): Use Linux specific implementation also
20083         for Cygwin.
20084         (get_shared_library_fullname): Update accordingly.
20085         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20086         Win32 file names.
20087         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20088         Cygwin specific code.
20089
20090 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20091             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20092
20093         Fix OpenMP flag detection for various Fortran compilers.
20094         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20095         OpenMP-conditional compilation construct, to force compile
20096         failure with missing OpenMP flag.
20097         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20098
20099 2011-02-25  Eric Blake  <eblake@redhat.com>
20100
20101         strstr: expand test coverage
20102         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20103         compilation.
20104         * tests/test-memmem.c (main): Duplicate tests.
20105         * tests/test-strcasestr.c (main): Likewise.
20106         * tests/test-c-strcasestr.c (main): Likewise.
20107
20108 2011-02-25  Jim Meyering  <meyering@redhat.com>
20109
20110         maint.mk: detect missing-NL-at-EOF, too
20111         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20112         it also detects when a file lacks a newline at EOF.
20113         (require_exactly_one_NL_at_EOF_): Renamed from
20114         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20115         since people may well have .x-sc_... file names tied to the
20116         existing name.  Suggested by Eric Blake.
20117
20118 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20119
20120         dirname: move m4/dos.m4 functionality into lib/dosname.h
20121
20122         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20123         extracts symbols from it, puts them into config.h; but it's much
20124         easier to use the symbols directly.  filename.h already does this,
20125         but it disagrees with dos.m4 in some respects.  This patch
20126         introduces a different include file dosname.h that packages up
20127         dos.m4, and then later we can work on merging filename.h and
20128         dosname.h.  Applications that need only the easy-to-configure
20129         symbols should consider including dosname.h rather than dirname.h.
20130         * NEWS: Mention incompatible changes.
20131         * m4/dos.m4: Remove.
20132         * lib/dosname.h, modules/dosname: New files.
20133         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20134         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20135         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20136         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20137         Include dosname.h, not dirname.h.
20138         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20139         Include dosname.h, for definitions of symbols like ISSLASH
20140         that used to be in config.h.
20141         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20142         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20143         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20144         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20145         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20146         * modules/rmdir (Files): Likewise.
20147         * modules/stat (Files): Likewise.
20148         * modules/unlink (Files): Likewise.
20149         * modules/dirname-lgpl (Depends-on): Add dosname.
20150         * modules/lstat (Depends-on): Likewise.
20151         * modules/openat (Depends-on): Likewise.
20152         * modules/rmdir (Depends-on): Likewise.
20153         * modules/savewd (Depends-on): Likewise.
20154         * modules/stat (Depends-on): Likewise.
20155         * modules/unlink (Depends-on): Likewise.
20156         * modules/openat (Depends-on): Remove dirname-lgpl.
20157         * modules/savewd (Depends-on): Likewise.
20158         * tests/test-dirname.c: Do not use removed symbols like
20159         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20160         the remaining symbols, e.g., ISSLASH ('\\').
20161
20162 2011-02-25  Eric Blake  <eblake@redhat.com>
20163
20164         strstr: revert patches that introduced bug and pessimization
20165         * lib/str-two-way.h: Add another reference.
20166         (two_way_short_needle, two_way_long_needle): Revert changes from
20167         2011-02-24; they pessimize search speed.
20168         (critical_factorization): Partially revert changes from
20169         2010-06-22; they violate the requirement that the left half of the
20170         needle be smaller than the period of the needle.
20171
20172 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20173
20174         filenamecat: remove unnecessary dependency on dirname-lgpl
20175         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20176         is no direct dependency, just an indirect one via filenamecat-lgpl.
20177
20178         remove: remove unnecessary use of m4/dos.m4
20179         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20180         * modules/remove (FILES): Remove m4/dos.m4.
20181
20182         * lib/openat-proc.c: Don't include dirname.h; not needed.
20183
20184         backupfile: remove unnecessary use of m4/dos.m4
20185         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20186         of its symbols are used by the backupfile code.  backupfile.c does
20187         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20188         for the rare case of programs that want all their backup file
20189         names to live within 8+3 limits, and dos.m4 doesn't address that.
20190         * modules/backupfile (Files): Remove m4/dos.m4.
20191
20192 2011-02-24  Jim Meyering  <meyering@redhat.com>
20193
20194         strstr: fix a bug whereby strstr would mistakenly return NULL
20195         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20196         in period calculation.
20197         (two_way_long_needle): Likewise.
20198         The original problem was reported by Mike Stump in
20199         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20200         Ralf Wildenhues provided the short needle and haystack.
20201         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20202         Add a more involved test to trigger the bug in two_way_long_needle.
20203
20204 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20205
20206         gnulib-tool: remove use of bold display in help screen
20207         * gnulib-tool (func_usage): Do not use bold display anymore in the
20208         help screen.  That was just meant to be a temporary emphasis for a
20209         backward-incompatible change.
20210
20211 2011-02-23  Bruno Haible  <bruno@clisp.org>
20212
20213         Fix misindentation of preprocessor directives.
20214         * lib/argp-namefrob.h: Reindent preprocessor directives.
20215         * lib/getopt_int.h (struct _getopt_data): Likewise.
20216         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20217         * lib/vasnprintf.c (decode_long_double): Likewise.
20218         * tests/test-argmatch.c: Insert blank lines, for clarity.
20219         * tests/test-exclude.c: Likewise.
20220
20221 2011-02-22  Bruno Haible  <bruno@clisp.org>
20222
20223         ioctl: Fix for MacOS X in 64-bit mode.
20224         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20225         value.
20226         Suggested by Eric Blake.
20227         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20228
20229 2011-02-22  Jim Meyering  <meyering@redhat.com>
20230
20231         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20232         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20233         in lib/.
20234
20235 2011-02-22  Eric Blake  <eblake@redhat.com>
20236
20237         maint: avoid any CDPATH issue
20238         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20239
20240         maint: adjust cpp indentation for my modules, as well
20241         * Makefile (sc_cpp_indent_check): Add my name.
20242         * lib/fbufmode.c: Filter through cppi.
20243         * lib/fpurge.c: Likewise.
20244         * lib/freadable.c: Likewise.
20245         * lib/freading.c: Likewise.
20246         * lib/fwritable.c: Likewise.
20247         * lib/fwriting.c: Likewise.
20248         * lib/sigaction.c: Likewise.
20249
20250 2011-02-22  Jim Meyering  <meyering@redhat.com>
20251
20252         maint: adjust cpp indentation to reflect nesting depth
20253         I.e., in a block of code that begins with an unnested "#if",
20254         put one space between the "#" in column 1 and following token.
20255         For example,
20256         -#include <sys/vfs.h>
20257         +# include <sys/vfs.h>
20258         Do this only in .c files that are part of a module I maintain.
20259         * lib/linkat.c: Filter through cppi.
20260         * lib/nanosleep.c: Likewise.
20261         * lib/openat.c: Likewise.
20262         * lib/openat-die.c: Likewise.
20263         * lib/dup3.c: Likewise.
20264         * lib/fchownat.c: Likewise.
20265         * lib/flock.c: Likewise.
20266         * lib/fsync.c: Likewise.
20267         * lib/fts.c: Likewise.
20268         * lib/getpass.c: Likewise.
20269         * lib/gettimeofday.c: Likewise.
20270         * lib/userspec.c: Likewise.
20271         * Makefile (sc_cpp_indent_check): New rule, to check this.
20272
20273 2011-02-22  Bruno Haible  <bruno@clisp.org>
20274
20275         New module 'wctomb'.
20276         * lib/stdlib.in.h (wctomb): New declaration.
20277         * lib/wctomb.c: New file.
20278         * lib/wctomb-impl.h: New file.
20279         * m4/wctomb.m4: New file.
20280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20281         REPLACE_WCTOMB.
20282         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20283         REPLACE_WCTOMB.
20284         * modules/wctomb: New file.
20285         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20286         * doc/posix-functions/wctomb.texi: Mention the new module.
20287         * modules/wctob (Depends-on): Add wctomb.
20288
20289 2011-02-22  Bruno Haible  <bruno@clisp.org>
20290
20291         New module 'mbtowc'.
20292         * lib/stdlib.in.h (mbtowc): New declaration.
20293         * lib/mbtowc.c: New file.
20294         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20295         * m4/mbtowc.m4: New file.
20296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20297         REPLACE_MBTOWC.
20298         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20299         REPLACE_MBTOWC.
20300         * modules/mbtowc: New file.
20301         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20302         * doc/posix-functions/mbtowc.texi: Mention the new module.
20303         * modules/btowc (Depends-on): Add mbtowc.
20304
20305 2011-02-22  Bruno Haible  <bruno@clisp.org>
20306
20307         wcrtomb: Add more tests for native Windows platforms.
20308         * tests/test-wcrtomb-w32-1.sh: New file.
20309         * tests/test-wcrtomb-w32-2.sh: New file.
20310         * tests/test-wcrtomb-w32-3.sh: New file.
20311         * tests/test-wcrtomb-w32-4.sh: New file.
20312         * tests/test-wcrtomb-w32-5.sh: New file.
20313         * tests/test-wcrtomb-w32.c: New file.
20314         * modules/wcrtomb-tests (Files): Add them.
20315         (Makefile.am): Arrange to run these tests.
20316         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20317         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20318
20319 2011-02-20  Bruno Haible  <bruno@clisp.org>
20320
20321         wcrtomb: Enhance test.
20322         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20323
20324 2011-02-20  Bruno Haible  <bruno@clisp.org>
20325
20326         mbrtowc: Tiny optimization.
20327         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20328
20329 2011-02-20  Jim Meyering  <meyering@redhat.com>
20330
20331         test-exclude.c: remove unmatched #endif
20332         * tests/test-exclude.c: Remove stray #endif, left over from
20333         the change of a week ago.
20334
20335 2011-02-19  Jim Meyering  <meyering@redhat.com>
20336
20337         git-version-gen: skip "-dirty" check when appropriate
20338         * build-aux/git-version-gen: Don't run any git commands when the
20339         version string comes from .tarball-version.  Prior to this, we
20340         would run git update-index --refresh even from a just-unpacked
20341         tarball directory, and that could affect a .git/ directory in a
20342         parent of the build directory.  Reported by Mike Frysinger.
20343
20344 2011-02-19  Bruno Haible  <bruno@clisp.org>
20345
20346         unictype/property-byname: Reduce the size of the 'data' segment.
20347         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
20348
20349 2011-02-19  Bruno Haible  <bruno@clisp.org>
20350
20351         unictype/scripts: Reduce the size of the 'data' segment.
20352         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
20353         '%pic'.
20354         * lib/unictype/scripts_byname.gperf: Regenerated.
20355
20356 2011-02-19  Bruno Haible  <bruno@clisp.org>
20357
20358         stdint: Update documentation.
20359         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
20360
20361 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20362
20363         stdint: omit redundant check for wchar.h
20364         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
20365         always tests whether wchar.h exists, so remove the now-redundant test.
20366
20367 2011-02-18  Bruno Haible  <bruno@clisp.org>
20368
20369         stdint: Cut dependency to module 'wchar'.
20370         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
20371         include the necessary prerequisites.
20372         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
20373         * modules/stdint (Depends-on): Remove wchar.
20374         (Makefile.am): Substitute HAVE_WCHAR_H.
20375         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
20376
20377 2011-02-18  Eric Blake  <eblake@redhat.com>
20378
20379         longlong: skip, rather than fail, on cross-compilation
20380         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
20381         when cross-compiling; regression from 2011-02-16.
20382
20383 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20384
20385         * NEWS: Mention 2011-02-08 change to stdlib.
20386
20387 2011-02-17  Bruno Haible  <bruno@clisp.org>
20388
20389         getloadavg: Add comments about platforms.
20390         * m4/getloadavg.m4: Add comment.
20391         * lib/getloadavg.c: Likewise.
20392
20393 2011-02-17  Bruno Haible  <bruno@clisp.org>
20394
20395         getloadavg: Fix link error on Solaris 2.6.
20396         * modules/getloadavg (Link): New section.
20397         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20398         linking test-getloadavg.
20399         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20400         getloadavg.
20401
20402 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20403
20404         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20405         It was 'int', but this doesn't match the IRIX 6.5 manual.
20406         Suggested by Bruno Haible in
20407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
20408
20409 2011-02-17  Bruno Haible  <bruno@clisp.org>
20410
20411         havelib: Fix comments.
20412         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
20413         change.
20414
20415 2011-02-17  Bruno Haible  <bruno@clisp.org>
20416
20417         havelib: Update config.rpath.
20418         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
20419
20420 2011-02-17  Bruno Haible  <bruno@clisp.org>
20421
20422         getloadavg test: Add some plausibility checks.
20423         * tests/test-getloadavg.c (check_avg): Print a warning when the value
20424         is improbable.
20425
20426 2011-02-16  Eric Blake  <eblake@redhat.com>
20427
20428         maintainer-makefile: make syntax-check a no-op from tarballs
20429         * top/maint.mk (no-vc-detected): New rule.
20430         (local-checks-available): Use it to avoid hanging if someone tries
20431         'make syntax-check' from a tarball.  Also append to any non-syntax
20432         checks already defined in cfg.mk.
20433
20434 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20435
20436         longlong: tune, particularly for common case of c99
20437
20438         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
20439         or running anything if c99, or if unsigned long long int does not
20440         work.  In either case, we know the answer without further tests.
20441         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
20442         it at most once, and use its results for both long long int and
20443         unsigned long long int.  This is more likely to be efficient in
20444         the common case where the program wants to check for both long
20445         long int and unsigned long long int.
20446         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
20447         since the answer is already known.
20448
20449 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20450
20451         getloadavg: set errno
20452         * lib/getloadavg.c: Set errno when returning -1.  If no other
20453         error number looks appropriate, set it to ENOSYS if the getloadavg
20454         looks like it can't possibly ever work, ENOTSUP otherwise.
20455         Suggested by Bruno Haible in
20456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
20457
20458         getloadavg: trim unused parts and speed up 'configure'
20459         * NEWS: Document this.
20460         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
20461         always compiled if getloadavg is absent.
20462         Move test code to ...
20463         * tests/test-getloadavg.c: New file, containing previous
20464         contents of test from lib/getloadavg.c.  It also contains
20465         suggestions by Bruno Haible in
20466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
20467         * modules/getloadavg-tests: New file.
20468         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
20469         Do tests in the same order as they're needed for getloadavg.c.
20470         Omit setgid-related tests that generate symbols KMEM_GROUP,
20471         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
20472         Do only the tests that are needed to see whether the system has
20473         getloadavg, moving the other tests into ...
20474         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
20475         NLIST_NAME_UNION; nobody should be using it.  Do not define
20476         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
20477         relevant, as the user of this module shouldn't care how getloadavg
20478         is implemented.
20479
20480         getloadavg: omit unused var
20481         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20482
20483 2011-02-15  Jim Meyering  <meyering@redhat.com>
20484
20485         doc: update users.txt
20486         * users.txt: Update iwhd's URL.
20487
20488 2011-02-13  Bruno Haible  <bruno@clisp.org>
20489
20490         Consistent macro naming for macros that use GCC __attribute__.
20491         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20492         _ATTRIBUTE_NONNULL_.
20493         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20494         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20495         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20496         ATTRIBUTE_DEPRECATED.
20497         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20498         ATTRIBUTE_NORETURN.
20499         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20500         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20501         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20502         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20503         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20504         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20505         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20506         ATTRIBUTE_SENTINEL.
20507         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20508         ATTRIBUTE_RETURN_CHECK.
20509         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20510         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20511         ATTRIBUTE_NORETURN.
20512         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20513         Reported by Paul Eggert.
20514
20515 2011-02-13  Bruno Haible  <bruno@clisp.org>
20516
20517         Don't interfere with a program's definition of __attribute__.
20518         * lib/argp.h (__attribute__): Remove definition.
20519         (_GL_ATTRIBUTE_FORMAT): New macro.
20520         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20521         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20522         (_GL_ATTRIBUTE_FORMAT): New macro.
20523         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20524         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20525         GCC 3 or newer.
20526         * lib/error.h (__attribute__): Remove definition.
20527         (_GL_ATTRIBUTE_FORMAT): New macro.
20528         (error, error_at_line): Use it.
20529         * lib/hash.h (__attribute__): Remove definition.
20530         (ATTRIBUTE_WUR): Update definition. Define always.
20531         * lib/openat.h (__attribute__): Remove definition.
20532         (ATTRIBUTE_NORETURN): Update definition. Define always.
20533         * lib/sigpipe-die.h (__attribute__): Remove definition.
20534         (ATTRIBUTE_NORETURN): Update definition. Define always.
20535         * lib/vasnprintf.h (__attribute__): Remove definition.
20536         (_GL_ATTRIBUTE_FORMAT): New macro.
20537         (asnprintf, vasnprintf): Use it.
20538         * lib/xalloc.h (__attribute__): Remove definition.
20539         (ATTRIBUTE_NORETURN): Update definition. Define always.
20540         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20541         * lib/xmemdup0.h (__attribute__): Remove definition.
20542         (ATTRIBUTE_NORETURN): Update definition. Define always.
20543         * lib/xprintf.h (__attribute__): Remove definition.
20544         (_GL_ATTRIBUTE_FORMAT): New macro.
20545         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20546         * lib/xstrtol.h (__attribute__): Remove definition.
20547         (ATTRIBUTE_NORETURN): Update definition. Define always.
20548         * lib/xvasprintf.h (__attribute__): Remove definition.
20549         (_GL_ATTRIBUTE_FORMAT): New macro.
20550         (xasprintf, xvasprintf): Use it.
20551         * tests/test-argmatch.c (__attribute__): Remove definition.
20552         (ATTRIBUTE_NORETURN): Update definition. Define always.
20553         * tests/test-exclude.c (__attribute__): Remove definition.
20554         (ATTRIBUTE_NORETURN): Update definition. Define always.
20555         Reported by Paul Eggert.
20556
20557 2011-02-13  Bruno Haible  <bruno@clisp.org>
20558
20559         mbrtowc: Add more tests for native Windows platforms.
20560         * tests/test-mbrtowc-w32-1.sh: New file.
20561         * tests/test-mbrtowc-w32-2.sh: New file.
20562         * tests/test-mbrtowc-w32-3.sh: New file.
20563         * tests/test-mbrtowc-w32-4.sh: New file.
20564         * tests/test-mbrtowc-w32-5.sh: New file.
20565         * tests/test-mbrtowc-w32.c: New file.
20566         * modules/mbrtowc-tests (Files): Add them.
20567         (Makefile.am): Arrange to run these tests.
20568         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20569         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20570
20571 2011-02-13  Bruno Haible  <bruno@clisp.org>
20572
20573         mbrtowc: Work around native Windows bug.
20574         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20575         guess when no suitable locale for testing was found.
20576         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20577
20578 2011-02-13  Bruno Haible  <bruno@clisp.org>
20579
20580         mbsinit: Work around mingw bug.
20581         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20582         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20583         Windows.
20584         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20585
20586 2011-02-13  Bruno Haible  <bruno@clisp.org>
20587
20588         mbsinit: Don't crash for a NULL argument.
20589         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20590         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20591
20592 2011-02-13  Bruno Haible  <bruno@clisp.org>
20593
20594         Don't interfere with a program's definition of __attribute__.
20595         * lib/stdio.in.h (__attribute__): Remove definition.
20596         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20597         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20598         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20599         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20600         * lib/string.in.h (__attribute__): Remove definition.
20601         Reported by Paul Eggert.
20602
20603 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20604
20605         stdlib: don't get in the way of non-GCC __attribute__
20606         See thread starting at
20607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20608         Revert previous stdlib change, installing the following instead:
20609         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20610         to get in the way of a non-GCC compiler that supports __attribute__.
20611         (_GL_ATTRIBUTE_RETURN): New macro.
20612         (_Exit): Use it instead of __attribute__.
20613
20614 2011-02-12  Bruno Haible  <bruno@clisp.org>
20615
20616         quotearg test: Avoid test failure on mingw.
20617         * tests/test-quotearg.sh: Convert the locale identifier from native
20618         Windows syntax to Unix syntax.
20619
20620 2011-02-12  Bruno Haible  <bruno@clisp.org>
20621
20622         setlocale: Prefer gnulib's override over libintl's override.
20623         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20624         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20625         GNULIB_defined_setlocale is set.
20626
20627 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20628
20629         stdlib: support non-GCC __attribute__
20630
20631         Fix a serious and tricky problem encountered when attempting to
20632         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20633         5.5, but it crashed due to memory corruption on Solaris 10 with
20634         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20635         bits that are otherwise zero.  This tagging is optional inside
20636         Emacs but is preferred and is used when __attribute__ ((__aligned
20637         (8))) works, as it does with both recent-enough GCC and with Sun C
20638         5.11.  However, Sun C 5.11 is not GCC and does not #define
20639         __GNUC__ and __GNUC_MINOR__.
20640
20641         When I added the getloadavg module to Emacs, it brought in
20642         stdlib.in.h, which contained this fragment:
20643
20644            #ifndef __attribute__
20645            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20646            #  define __attribute__(Spec)   /* empty */
20647            # endif
20648            #endif
20649
20650         When files that include <stdlib.h> were compiled with Sun C 5.11,
20651         the above code disabled __attribute__ ((__aligned (8))), which
20652         caused variables to not be properly aligned, which eventually led
20653         to the pointer corruption mentioned above.  (This was a bit hard
20654         to diagnose, unfortunately.)
20655
20656         Several "#define __attribute__(X) /* empty */" code snippets need
20657         to be eradicated from Gnulib to work with non-GCC compilers that
20658         support __attribute__.  The Autoconf way to do this is to test for
20659         each kind of attribute that we want support for, and selectively
20660         enable that in source code.
20661
20662         Fix this problem just for stdlib.h, by adding a test for the
20663         __noreturn__ attribute, and change stdlib.in.h to use that test
20664         when needed.  This technique can be easily generalized to the
20665         other *.in.h files and attributes, and a similar technique can be
20666         used for *.h and *.c files.  This patch is enough to solve the
20667         problem for Emacs + getloadavg, and I thought I'd publish it for
20668         feedback before undertaking further, similar fixes in other
20669         modules.
20670
20671         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20672         because it's not needed for stdlib.h.  It merely substitutes the
20673         value directly into stdlib.h.  We may well need to #define it, or
20674         similar symbols, for other modules, but it's nice to also have an
20675         option to not #define it for applications like Emacs that do not
20676         need it.
20677
20678         * lib/stdlib.in.h (__attribute__): Do not #define.
20679         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20680         be defined only if the _Exit module is also used.
20681         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20683         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20684         platforms.
20685         * modules/_Exit (Files): Add m4/attribute.m4.
20686         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20687         * m4/attribute.m4: New file.
20688
20689 2011-02-12  Bruno Haible  <bruno@clisp.org>
20690
20691         wcsrtombs: Work around bug on native Windows.
20692         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20693         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20694         instead of len.
20695         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20696
20697 2011-02-12  Bruno Haible  <bruno@clisp.org>
20698
20699         mbsrtowcs: Work around bug on native Windows.
20700         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20701         against mingw bug.
20702         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20703
20704 2011-02-12  Bruno Haible  <bruno@clisp.org>
20705
20706         Avoid setlocale bugs in tests.
20707         * modules/btowc (Dependencies): Add setlocale.
20708         * modules/c-strcase (Dependencies): Likewise.
20709         * modules/mbmemcasecmp (Dependencies): Likewise.
20710         * modules/mbmemcasecoll (Dependencies): Likewise.
20711         * modules/mbrtowc (Dependencies): Likewise.
20712         * modules/mbscasecmp (Dependencies): Likewise.
20713         * modules/mbscasestr (Dependencies): Likewise.
20714         * modules/mbschr (Dependencies): Likewise.
20715         * modules/mbscspn (Dependencies): Likewise.
20716         * modules/mbsinit (Dependencies): Likewise.
20717         * modules/mbsncasecmp (Dependencies): Likewise.
20718         * modules/mbsnrtowcs (Dependencies): Likewise.
20719         * modules/mbspbrk (Dependencies): Likewise.
20720         * modules/mbspcasecmp (Dependencies): Likewise.
20721         * modules/mbsrchr (Dependencies): Likewise.
20722         * modules/mbsrtowcs (Dependencies): Likewise.
20723         * modules/mbsspn (Dependencies): Likewise.
20724         * modules/mbsstr (Dependencies): Likewise.
20725         * modules/nl_langinfo (Dependencies): Likewise.
20726         * modules/quotearg (Dependencies): Likewise.
20727         * modules/unicase/locale-language (Dependencies): Likewise.
20728         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20729         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20730         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20731         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20732         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20733         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20734         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20735         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20736         * modules/vasnprintf-posix (Dependencies): Likewise.
20737         * modules/wcrtomb (Dependencies): Likewise.
20738         * modules/wcsnrtombs (Dependencies): Likewise.
20739         * modules/wcsrtombs (Dependencies): Likewise.
20740
20741 2011-02-12  Bruno Haible  <bruno@clisp.org>
20742
20743         setlocale: Workaround native Windows bug.
20744         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20745         succeeds but sets LC_CTYPE to "C", report a failure.
20746         * tests/test-setlocale2.sh: New file.
20747         * tests/test-setlocale2.c: New file.
20748         * modules/setlocale-tests (Files): Add the new files.
20749         (Makefile.am): Enable test-setlocale2.sh test.
20750         * doc/posix-functions/setlocale.texi: Mention workaround.
20751
20752 2011-02-11  Bruno Haible  <bruno@clisp.org>
20753
20754         Tests for module 'setlocale'.
20755         * modules/setlocale-tests: New file.
20756         * tests/test-setlocale1.sh: New file.
20757         * tests/test-setlocale1.c: New file.
20758
20759         New module 'setlocale'.
20760         * lib/locale.in.h (setlocale): New declaration.
20761         * lib/setlocale.c: New file, based on
20762         gettext/gettext-runtime/intl/setlocale.c.
20763         * m4/setlocale.m4: New file.
20764         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20765         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20766         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20767         REPLACE_SETLOCALE.
20768         * modules/setlocale: New file.
20769         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20770         * doc/posix-functions/setlocale.texi: Mention the new module.
20771
20772 2011-02-11  Bruno Haible  <bruno@clisp.org>
20773
20774         Prepare for locale dependent tests on mingw.
20775         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20776         because it has the wrong locale encoding.
20777         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20778         French_France.1252 instead of "fr".
20779         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20780         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20781         because it has the wrong locale encoding.
20782         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20783         native Windows, try Turkish_Turkey.65001.
20784         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20785         Chinese_China.54936.
20786
20787         Prepare for locale dependent tests on mingw.
20788         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20789         differently.
20790         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20791         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20792         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20793         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20794
20795 2011-02-11  Eric Blake  <eblake@redhat.com>
20796
20797         strptime: avoid compiler warnings
20798         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20799         compiler warnings about dead code.
20800         Reported by Daniel P. Berrange.
20801
20802 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20803
20804         doc: update users.txt
20805         * users.txt: Add rcs.
20806
20807 2011-02-10  John W. Eaton  <jwe@gnu.org>
20808
20809         doc: update users.txt
20810         * users.txt: Add octave.
20811
20812 2011-02-10  Jim Meyering  <meyering@redhat.com>
20813
20814         doc: update users.txt
20815         * users.txt: Add iwhd.
20816
20817 2011-02-09  Bruno Haible  <bruno@clisp.org>
20818
20819         gnulib-tool: Make copyright notice adjustment more robust.
20820         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20821         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20822         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20823         License".
20824         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20825
20826 2011-02-06  Bruno Haible  <bruno@clisp.org>
20827
20828         New module 'towctrans'.
20829         * modules/towctrans: New file.
20830         * lib/wctype.in.h (towctrans): New declaration.
20831         * lib/towctrans.c: New file.
20832         * lib/towctrans-impl.h: New file.
20833         * m4/towctrans.m4: New file.
20834         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20835         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20836         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20837         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20838         * doc/posix-functions/towctrans.texi: Mention the new module.
20839
20840 2011-02-06  Bruno Haible  <bruno@clisp.org>
20841
20842         New module 'wctrans'.
20843         * modules/wctrans: New file.
20844         * lib/wctype.in.h (wctrans): New declaration.
20845         * lib/wctrans.c: New file.
20846         * lib/wctrans-impl.h: New file.
20847         * m4/wctrans.m4: New file.
20848         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20849         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20850         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20851         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20852         * doc/posix-functions/wctrans.texi: Mention the new module.
20853
20854 2011-02-06  Bruno Haible  <bruno@clisp.org>
20855
20856         New module 'iswctype'.
20857         * modules/iswctype: New file.
20858         * lib/wctype.in.h (iswctype): New declaration.
20859         * lib/iswctype.c: New file.
20860         * lib/iswctype-impl.h: New file.
20861         * m4/iswctype.m4: New file.
20862         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20863         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20864         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20865         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20866         * doc/posix-functions/iswctype.texi: Mention the new module and the
20867         HP-UX 11.00 problem.
20868
20869 2011-02-06  Bruno Haible  <bruno@clisp.org>
20870
20871         New module 'wctype'.
20872         * modules/wctype: Change to represent the wctype() substitute.
20873         * lib/wctype.in.h (wctype): New declaration.
20874         * lib/wctype.c: New file.
20875         * lib/wctype-impl.h: New file.
20876         * m4/wctype.m4: New file.
20877         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20878         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20879         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20880         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20881         * doc/posix-functions/wctype.texi: Mention the new module and the
20882         HP-UX 11.00 problem.
20883
20884 2011-02-06  Bruno Haible  <bruno@clisp.org>
20885
20886         wctype-h: Ensure wctype_t and wctrans_t are defined.
20887         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20888         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20889         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20890         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20891         HAVE_WCTRANS_T.
20892         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20893
20894 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20895
20896         flock: fix license typo
20897
20898         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20899         omitted.
20900
20901 2011-02-08  Bruno Haible  <bruno@clisp.org>
20902
20903         Split large sed scripts, for HP-UX sed.
20904         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20905         to avoid HP-UX limit of 99 commands, in the near future.
20906         * modules/stdlib (Makefile.am): Likewise.
20907         * modules/unistd (Makefile.am): Likewise.
20908         * modules/wchar (Makefile.am): Likewise.
20909         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20910         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20911         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20912
20913 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20914             Bruno Haible  <bruno@clisp.org>
20915
20916         stdlib: improve random_r modularization
20917         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20918         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20919         you also need the random_r module to get this material right.
20920         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20921         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20922         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20923
20924 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20925
20926         stdlib: don't depend on stdint
20927         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20928         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20929         be independent of whether stdint.h is needed.
20930         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20931         here, instead of ...
20932         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20933         struct random_data should be using the random_r module, not just
20934         the stdlib module (which wouldn't make sense: what package needs
20935         just struct random_data without also needing random_r?).
20936         * modules/stdlib (Depends-on): Remove stdint.
20937
20938         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20939         See the thread rooted at
20940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20941         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20942         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20943         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20944         __VMS)); previously it was always included (via fcntl--.h).
20945         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20946         hand; this is good enough for load averages.  Also, do not use
20947         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20948         flags directly if available and don't bother otherwise.  (Packages
20949         that need the extra reliability should use the modules that define
20950         these flags on older platforms that lack them.)
20951         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20952         fcntl-safer.
20953
20954 2011-02-08  Jim Meyering  <meyering@redhat.com>
20955
20956         di-set.h, ino-map.h: add multiple-inclusion guard
20957         Technically, the guard is required only for ino-map.h, due to its
20958         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20959         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20960         * lib/ino-map.h: Likewise.
20961
20962 2011-02-06  Bruno Haible  <bruno@clisp.org>
20963
20964         iswblank: Ensure declaration on glibc systems.
20965         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20966         * modules/iswblank (Dependencies): Add 'extensions'.
20967         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20968
20969 2011-02-06  Bruno Haible  <bruno@clisp.org>
20970
20971         New module 'iswblank'.
20972         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20973         * modules/iswblank: New file.
20974         * modules/wctype-h (Files): Remove lib/iswblank.c.
20975         (Makefile.am): Substitute GNULIB_ISWBLANK.
20976         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20977         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20978         (gl_WCTYPE_H_DEFAULTS): New macro.
20979         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20980         * modules/iswblank-tests: New file.
20981         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20982         * tests/test-wctype-h.c (main): Remove iswblank tests.
20983         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20984         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20985         of 'wctype-h'.
20986         * NEWS: Mention the change.
20987         * modules/mbchar (Depends-on): Add iswblank.
20988
20989 2011-02-08  Bruno Haible  <bruno@clisp.org>
20990
20991         di-set tests: Refactor.
20992         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20993         unnecessary includes.
20994         (ASSERT): Remove macro.
20995         (main): Make C90 compliant by avoiding variable declaration after
20996         statement.
20997         * modules/di-set-tests (Files): Add tests/macros.h.
20998
20999 2011-02-08  Bruno Haible  <bruno@clisp.org>
21000
21001         ino-map tests: Refactor.
21002         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21003         unnecessary includes.
21004         (ASSERT): Remove macro.
21005         (main): Make C90 compliant by avoiding variable declaration after
21006         statement.
21007         * modules/ino-map-tests (Files): Add tests/macros.h.
21008
21009 2011-02-08  Jim Meyering  <meyering@redhat.com>
21010
21011         di-set: add "const" to a cast
21012         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21013         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21014
21015 2011-02-06  Bruno Haible  <bruno@clisp.org>
21016
21017         Rename module 'wctype' to 'wctype-h'.
21018         * modules/wctype-h: Renamed from modules/wctype.
21019         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21020         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21021         (Files, Depends-on, Makefile.am): Update.
21022         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21023         (Files, Makefile.am): Update.
21024         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21025         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21026         * doc/posix-headers/wctype.texi: Update.
21027         * doc/posix-functions/iswalnum.texi: Update.
21028         * doc/posix-functions/iswalpha.texi: Update.
21029         * doc/posix-functions/iswblank.texi: Update.
21030         * doc/posix-functions/iswcntrl.texi: Update.
21031         * doc/posix-functions/iswdigit.texi: Update.
21032         * doc/posix-functions/iswgraph.texi: Update.
21033         * doc/posix-functions/iswlower.texi: Update.
21034         * doc/posix-functions/iswprint.texi: Update.
21035         * doc/posix-functions/iswpunct.texi: Update.
21036         * doc/posix-functions/iswspace.texi: Update.
21037         * doc/posix-functions/iswupper.texi: Update.
21038         * doc/posix-functions/iswxdigit.texi: Update.
21039         * doc/posix-functions/towlower.texi: Update.
21040         * doc/posix-functions/towupper.texi: Update.
21041         * NEWS: Mention the change.
21042         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21043         * modules/mbchar (Dependencies): Likewise.
21044         * modules/mbswidth (Dependencies): Likewise.
21045         * modules/quotearg (Dependencies): Likewise.
21046         * modules/regex (Dependencies): Likewise.
21047         * modules/wcscasecmp (Dependencies): Likewise.
21048         * modules/wcsncasecmp (Dependencies): Likewise.
21049         * modules/wcwidth (Dependencies): Likewise.
21050
21051 2011-02-06  Bruno Haible  <bruno@clisp.org>
21052
21053         New module 'wcswidth'.
21054         * modules/wcswidth: New file.
21055         * lib/wchar.in.h (wcswidth): New declaration.
21056         * lib/wcswidth.c: New file.
21057         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21058         * m4/wcswidth.m4: New file.
21059         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21060         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21061         REPLACE_WCSWIDTH.
21062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21063         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21064         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21065         * doc/posix-functions/wcswidth.texi: Mention the new module.
21066
21067 2011-02-06  Bruno Haible  <bruno@clisp.org>
21068
21069         New module 'wcstok'.
21070         * modules/wcstok: New file.
21071         * lib/wchar.in.h (wcstok): New declaration.
21072         * lib/wcstok.c: New file.
21073         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21074         * m4/wcstok.m4: New file.
21075         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21076         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21077         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21078         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21079         * doc/posix-functions/wcstok.texi: Mention the new module.
21080
21081 2011-02-06  Bruno Haible  <bruno@clisp.org>
21082
21083         New module 'wcsstr'.
21084         * modules/wcsstr: New file.
21085         * lib/wchar.in.h (wcsstr): New declaration.
21086         * lib/wcsstr.c: New file.
21087         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21088         * m4/wcsstr.m4: New file.
21089         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21090         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21091         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21092         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21093         * doc/posix-functions/wcsstr.texi: Mention the new module.
21094
21095 2011-02-06  Bruno Haible  <bruno@clisp.org>
21096
21097         New module 'wcspbrk'.
21098         * modules/wcspbrk: New file.
21099         * lib/wchar.in.h (wcspbrk): New declaration.
21100         * lib/wcspbrk.c: New file.
21101         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21102         * m4/wcspbrk.m4: New file.
21103         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21104         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21105         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21106         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21107         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21108
21109 2011-02-06  Bruno Haible  <bruno@clisp.org>
21110
21111         New module 'wcsspn'.
21112         * modules/wcsspn: New file.
21113         * lib/wchar.in.h (wcsspn): New declaration.
21114         * lib/wcsspn.c: New file.
21115         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21116         * m4/wcsspn.m4: New file.
21117         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21118         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21119         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21120         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21121         * doc/posix-functions/wcsspn.texi: Mention the new module.
21122
21123 2011-02-06  Bruno Haible  <bruno@clisp.org>
21124
21125         New module 'wcscspn'.
21126         * modules/wcscspn: New file.
21127         * lib/wchar.in.h (wcscspn): New declaration.
21128         * lib/wcscspn.c: New file.
21129         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21130         * m4/wcscspn.m4: New file.
21131         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21132         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21133         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21134         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21135         * doc/posix-functions/wcscspn.texi: Mention the new module.
21136
21137 2011-02-06  Bruno Haible  <bruno@clisp.org>
21138
21139         New module 'wcsrchr'.
21140         * modules/wcsrchr: New file.
21141         * lib/wchar.in.h (wcsrchr): New declaration.
21142         * lib/wcsrchr.c: New file.
21143         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21144         * m4/wcsrchr.m4: New file.
21145         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21146         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21147         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21148         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21149         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21150
21151 2011-02-06  Bruno Haible  <bruno@clisp.org>
21152
21153         New module 'wcschr'.
21154         * modules/wcschr: New file.
21155         * lib/wchar.in.h (wcschr): New declaration.
21156         * lib/wcschr.c: New file.
21157         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21158         * m4/wcschr.m4: New file.
21159         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21160         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21161         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21162         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21163         * doc/posix-functions/wcschr.texi: Mention the new module.
21164
21165 2011-02-06  Bruno Haible  <bruno@clisp.org>
21166
21167         New module 'wcsdup'.
21168         * modules/wcsdup: New file.
21169         * lib/wchar.in.h (wcsdup): New declaration.
21170         * lib/wcsdup.c: New file.
21171         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21172         * m4/wcsdup.m4: New file.
21173         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21174         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21175         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21176         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21177         * doc/posix-functions/wcsdup.texi: Mention the new module.
21178
21179 2011-02-06  Bruno Haible  <bruno@clisp.org>
21180
21181         New module 'wcsxfrm'.
21182         * modules/wcsxfrm: New file.
21183         * lib/wchar.in.h (wcsxfrm): New declaration.
21184         * lib/wcsxfrm.c: New file.
21185         * lib/wcsxfrm-impl.h: New file.
21186         * m4/wcsxfrm.m4: New file.
21187         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21188         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21189         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21190         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21191         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21192
21193 2011-02-06  Bruno Haible  <bruno@clisp.org>
21194
21195         New module 'wcscoll'.
21196         * modules/wcscoll: New file.
21197         * lib/wchar.in.h (wcscoll): New declaration.
21198         * lib/wcscoll.c: New file.
21199         * lib/wcscoll-impl.h: New file.
21200         * m4/wcscoll.m4: New file.
21201         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21202         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21203         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21204         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21205         * doc/posix-functions/wcscoll.texi: Mention the new module.
21206
21207 2011-02-06  Bruno Haible  <bruno@clisp.org>
21208
21209         New module 'wcsncasecmp'.
21210         * modules/wcsncasecmp: New file.
21211         * lib/wchar.in.h (wcsncasecmp): New declaration.
21212         * lib/wcsncasecmp.c: New file.
21213         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21214         * m4/wcsncasecmp.m4: New file.
21215         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21216         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21217         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21218         HAVE_WCSNCASECMP.
21219         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21220         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21221
21222 2011-02-06  Bruno Haible  <bruno@clisp.org>
21223
21224         New module 'wcscasecmp'.
21225         * modules/wcscasecmp: New file.
21226         * lib/wchar.in.h (wcscasecmp): New declaration.
21227         * lib/wcscasecmp.c: New file.
21228         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21229         * m4/wcscasecmp.m4: New file.
21230         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21231         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21232         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21233         HAVE_WCSCASECMP.
21234         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21235         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21236
21237 2011-02-05  Bruno Haible  <bruno@clisp.org>
21238
21239         New module 'wcsncmp'.
21240         * modules/wcsncmp: New file.
21241         * lib/wchar.in.h (wcsncmp): New declaration.
21242         * lib/wcsncmp.c: New file.
21243         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21244         * m4/wcsncmp.m4: New file.
21245         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21246         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21247         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21248         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21249         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21250
21251 2011-02-05  Bruno Haible  <bruno@clisp.org>
21252
21253         New module 'wcscmp'.
21254         * modules/wcscmp: New file.
21255         * lib/wchar.in.h (wcscmp): New declaration.
21256         * lib/wcscmp.c: New file.
21257         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
21258         * m4/wcscmp.m4: New file.
21259         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
21260         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
21261         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
21262         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
21263         * doc/posix-functions/wcscmp.texi: Mention the new module.
21264
21265 2011-02-05  Bruno Haible  <bruno@clisp.org>
21266
21267         New module 'wcsncat'.
21268         * modules/wcsncat: New file.
21269         * lib/wchar.in.h (wcsncat): New declaration.
21270         * lib/wcsncat.c: New file.
21271         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21272         * m4/wcsncat.m4: New file.
21273         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21274         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21275         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21276         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21277         * doc/posix-functions/wcsncat.texi: Mention the new module.
21278
21279 2011-02-05  Bruno Haible  <bruno@clisp.org>
21280
21281         New module 'wcscat'.
21282         * modules/wcscat: New file.
21283         * lib/wchar.in.h (wcscat): New declaration.
21284         * lib/wcscat.c: New file.
21285         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21286         * m4/wcscat.m4: New file.
21287         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21288         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21289         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21290         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21291         * doc/posix-functions/wcscat.texi: Mention the new module.
21292
21293 2011-02-05  Bruno Haible  <bruno@clisp.org>
21294
21295         New module 'wcpncpy'.
21296         * modules/wcpncpy: New file.
21297         * lib/wchar.in.h (wcpncpy): New declaration.
21298         * lib/wcpncpy.c: New file.
21299         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21300         * m4/wcpncpy.m4: New file.
21301         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21302         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21303         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21304         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21305         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21306
21307 2011-02-05  Bruno Haible  <bruno@clisp.org>
21308
21309         New module 'wcsncpy'.
21310         * modules/wcsncpy: New file.
21311         * lib/wchar.in.h (wcsncpy): New declaration.
21312         * lib/wcsncpy.c: New file.
21313         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21314         * m4/wcsncpy.m4: New file.
21315         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21316         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21317         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21318         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21319         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21320
21321 2011-02-05  Bruno Haible  <bruno@clisp.org>
21322
21323         New module 'wcpcpy'.
21324         * modules/wcpcpy: New file.
21325         * lib/wchar.in.h (wcpcpy): New declaration.
21326         * lib/wcpcpy.c: New file.
21327         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21328         * m4/wcpcpy.m4: New file.
21329         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
21330         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
21331         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
21332         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
21333         * doc/posix-functions/wcpcpy.texi: Mention the new module.
21334
21335 2011-02-05  Bruno Haible  <bruno@clisp.org>
21336
21337         New module 'wcscpy'.
21338         * modules/wcscpy: New file.
21339         * lib/wchar.in.h (wcscpy): New declaration.
21340         * lib/wcscpy.c: New file.
21341         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
21342         * m4/wcscpy.m4: New file.
21343         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
21344         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
21345         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
21346         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
21347         * doc/posix-functions/wcscpy.texi: Mention the new module.
21348
21349 2011-02-05  Bruno Haible  <bruno@clisp.org>
21350
21351         New module 'wcsnlen'.
21352         * modules/wcsnlen: New file.
21353         * lib/wchar.in.h (wcsnlen): New declaration.
21354         * lib/wcsnlen.c: New file.
21355         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
21356         * m4/wcsnlen.m4: New file.
21357         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
21358         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
21359         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
21360         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
21361         * doc/posix-functions/wcsnlen.texi: Mention the new module.
21362
21363 2011-02-05  Bruno Haible  <bruno@clisp.org>
21364
21365         New module 'wcslen'.
21366         * modules/wcslen: New file.
21367         * lib/wchar.in.h (wcslen): New declaration.
21368         * lib/wcslen.c: New file.
21369         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
21370         * m4/wcslen.m4: New file.
21371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
21372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
21373         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
21374         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
21375         * doc/posix-functions/wcslen.texi: Mention the new module.
21376
21377 2011-02-05  Bruno Haible  <bruno@clisp.org>
21378
21379         New module 'wmemset'.
21380         * modules/wmemset: New file.
21381         * lib/wchar.in.h (wmemset): New declaration.
21382         * lib/wmemset.c: New file.
21383         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
21384         * m4/wmemset.m4: New file.
21385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21387         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21388         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21389         * doc/posix-functions/wmemset.texi: Mention the new module.
21390
21391 2011-02-05  Bruno Haible  <bruno@clisp.org>
21392
21393         New module 'wmemmove'.
21394         * modules/wmemmove: New file.
21395         * lib/wchar.in.h (wmemmove): New declaration.
21396         * lib/wmemmove.c: New file.
21397         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21398         * m4/wmemmove.m4: New file.
21399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21401         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21402         HAVE_WMEMMOVE.
21403         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21404         * doc/posix-functions/wmemmove.texi: Mention the new module.
21405
21406 2011-02-05  Bruno Haible  <bruno@clisp.org>
21407
21408         New module 'wmemcpy'.
21409         * modules/wmemcpy: New file.
21410         * lib/wchar.in.h (wmemcpy): New declaration.
21411         * lib/wmemcpy.c: New file.
21412         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
21413         * m4/wmemcpy.m4: New file.
21414         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
21415         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
21416         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
21417         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
21418         * doc/posix-functions/wmemcpy.texi: Mention the new module.
21419
21420 2011-02-05  Bruno Haible  <bruno@clisp.org>
21421
21422         New module 'wmemcmp'.
21423         * modules/wmemcmp: New file.
21424         * lib/wchar.in.h (wmemcmp): New declaration.
21425         * lib/wmemcmp.c: New file.
21426         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21427         * m4/wmemcmp.m4: New file.
21428         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21429         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21430         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21431         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21432         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21433
21434 2011-02-07  Jim Meyering  <meyering@redhat.com>
21435
21436         di-set, ino-map: new modules, from coreutils
21437         * lib/di-set.c: New file.
21438         * lib/di-set.h: Likewise.
21439         * lib/ino-map.c: Likewise.
21440         * lib/ino-map.h: Likewise.
21441         * modules/di-set: Likewise.
21442         * modules/di-set-tests: Likewise.
21443         * modules/ino-map: Likewise.
21444         * modules/ino-map-tests: Likewise.
21445         * tests/test-di-set.c: Likewise.
21446         * tests/test-ino-map.c: Likewise.
21447
21448 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
21449
21450         getloadavg: merge minor changes from Emacs
21451
21452         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
21453         (getloadavg): Use memset, not bzero.
21454
21455         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
21456         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
21457         clash (bug#86).
21458
21459 2010-11-14  Bruno Haible  <bruno@clisp.org>
21460
21461         Allow multiple gnulib generated replacements to coexist.
21462         * lib/getopt.in.h (struct option): Avoid identical redefinition.
21463         * lib/inttypes.in.h (imaxdiv_t): Likewise.
21464         * lib/langinfo.in.h (nl_item): Likewise.
21465         * lib/math.in.h (_NaN, NAN): Likewise.
21466         * lib/netdb.in.h (struct addrinfo): Likewise.
21467         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
21468         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
21469         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
21470         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
21471         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
21472         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
21473         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
21474         pthread_mutexattr_init, pthread_mutexattr_settype,
21475         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
21476         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
21477         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
21478         pthread_spin_trylock, pthread_spin_unlock): Likewise.
21479         * lib/sched.in.h (struct sched_param): Likewise.
21480         * lib/se-selinux.in.h (security_class_t, security_context_t,
21481         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21482         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21483         lsetfilecon, fsetfilecon, security_check_context,
21484         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21485         Likewise.
21486         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21487         Likewise.
21488         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21489         _gl_function_taking_int_returning_void_t, union sigval,
21490         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21491         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21492         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21493         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21494         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21495         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21496         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21497         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21498         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21499         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21500         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21501         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21502         socklen_t, rpl_fd_isset): Likewise.
21503         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21504         * lib/sys_time.in.h (struct timeval): Likewise.
21505         * lib/sys_times.in.h (struct tms): Likewise.
21506         * lib/sys_utsname.in.h (struct utsname):
21507         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21508         * lib/unistd.in.h (getpagesize): Likewise.
21509         * lib/wchar.in.h (mbstate_t): Likewise.
21510         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21511         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21512         towlower, towupper): Likewise.
21513         Reported by Sam Steingold <sds@gnu.org>.
21514
21515 2011-02-05  Eric Blake  <eblake@redhat.com>
21516
21517         unsetenv: work around Haiku issues
21518         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21519         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21520
21521 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21522
21523         libposix: avoid calling error() within libposix
21524         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21525         is defined.
21526
21527 2011-02-05  Eric Blake  <eblake@redhat.com>
21528
21529         strerror_r-posix: port to cygwin
21530         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21531         implementation.
21532         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21533         * tests/test-strerror_r.c (main): Fix test.
21534         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21535         issue.
21536
21537 2011-02-05  Bruno Haible  <bruno@clisp.org>
21538
21539         New module 'wmemchr'.
21540         * modules/wmemchr: New file.
21541         * lib/wchar.in.h (wmemchr): New declaration.
21542         * lib/wmemchr.c: New file.
21543         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21544         * m4/wmemchr.m4: New file.
21545         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21546         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21547         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21548         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21549         * doc/posix-functions/wmemchr.texi: Mention the new module.
21550
21551 2011-02-04  Eric Blake  <eblake@redhat.com>
21552
21553         fdopendir: detect FreeBSD bug
21554         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21555         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21556
21557 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21558
21559         stdbool: do not define HAVE_STDBOOL_H
21560         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21561         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21562         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21563         imported from the latest Autoconf git.  It was motivated by Emacs,
21564         which uses gnulib but does not need HAVE_STDBOOL_H.
21565
21566 2011-02-04  Bruno Haible  <bruno@clisp.org>
21567
21568         wcsnrtombs: Prepare for new module wwcsnrtombs.
21569         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21570         * lib/wcsnrtombs.c: Include it.
21571         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21572
21573         wcsrtombs: Prepare for new module wwcsrtombs.
21574         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21575         * lib/wcsrtombs.c: Include it.
21576         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21577
21578         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21579         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21580         * lib/mbsnrtowcs.c: Include it.
21581         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21582
21583         mbsrtowcs: Prepare for new module mbsrtowwcs.
21584         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21585         * lib/mbsrtowcs.c: Include it.
21586         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21587
21588 2011-02-04  Bruno Haible  <bruno@clisp.org>
21589
21590         vasnprintf: Reduce use of malloc for small format strings.
21591         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21592         (arguments): Add room for the first 7 arguments.
21593         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21594         (char_directives, u8_directives, u16_directives, u32_directives): Add
21595         room for the first 7 directives.
21596         * lib/printf-parse.c: Include <string.h>.
21597         (PRINTF_PARSE): Change memory handling code so that it uses the first
21598         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21599         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21600         Reported by Pádraig Brady <P@draigbrady.com>.
21601
21602 2011-01-31  Eric Blake  <eblake@redhat.com>
21603
21604         dup2: work around Haiku bug
21605         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21606         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21607         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21608         * tests/test-dup2.c (main): Enhance test.
21609
21610 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21611
21612         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21613         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21614         declared by eglibc 2.11.2.
21615         * lib/stdio.in.h: Likewise.
21616
21617 2011-01-31  Eric Blake  <eblake@redhat.com>
21618
21619         ignore-value: add missing test dependency
21620         * tests/test-ignore-value.c: Revert previous change; stdio.h
21621         provides off_t.
21622         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21623
21624 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21625
21626         mktime: clarify long_int width checking
21627         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21628         the top level, to make it clearer that the assumption about
21629         long_int width is being checked.  See
21630         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21631
21632 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21633
21634         ignore-value: Fix self-test.
21635         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21636
21637 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21638
21639         TYPE_MAXIMUM: avoid theoretically undefined behavior
21640         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21641         negative number, which the C Standard says has undefined behavior.
21642         In practice this is not a problem, but might as well do it by the book.
21643         Reported by Rich Felker and Eric Blake; see
21644         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21645         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21646         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21648         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21649         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21650         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21651
21652         mktime: #undef mktime before #defining it
21653         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21654
21655         mktime: systematically normalize tm_isdst comparisons
21656         * lib/mktime.c (isdst_differ): New function.
21657         (__mktime_internal): Use it systematically for all isdst comparisons.
21658         This completes the fix for libc BZ #6723, and removes the need for
21659         normalizing tm_isdst.  See
21660         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21661         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21662
21663         mktime: fix some integer overflow issues and sidestep the rest
21664
21665         This was prompted by a bug report by Benjamin Lindner for MinGW
21666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21667         His bug is due to signed integer overflow (0 - INT_MIN), and I
21668         I scanned through mktime.c looking for other integer overflow
21669         problems, fixing all the bugs I found.
21670
21671         Although the C Standard says the resulting code is still not safe
21672         in the presence of integer overflow, in practice it should be good
21673         enough for all real-world two's-complement implementations, except
21674         for debugging environments that deliberately trap on integer
21675         overflow (e.g., gcc -ftrapv).
21676
21677         * lib/mktime.c (WRAPV): New macro.
21678         (SHR): Also check that long_int and time_t shift right in the
21679         usual way, before using the fast-but-unportable method.
21680         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21681         used.  The code already assumed two's complement, so there's
21682         no need to test for alternatives.  All uses removed.
21683         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21684         the C standard.  Problem reported by Rich Felker in
21685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21686         (twos_complement_arithmetic): Also check long_int and time_t.
21687         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21688         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21689         (__mktime_internal): Avoid integer overflow with unary subtraction
21690         in two instances where -1 - X is an adequate replacement for -X,
21691         since the calculations are approximate.
21692
21693 2011-01-29  Eric Blake  <eblake@redhat.com>
21694
21695         mktime: avoid infinite loop
21696         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21697         type; behavior is still undefined but portable to all known targets.
21698         Reported by Rich Felker.
21699
21700 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21701
21702         rename, unlink, same-inode: Relicense.
21703         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21704         * modules/unlink (License): Likewise.
21705         * modules/same-inode (License): Likewise.
21706
21707 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21708
21709         mktime: avoid problems on NetBSD 5 / i386
21710         * lib/mktime.c (long_int): New type.  This works around a problem
21711         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21712         but time_t is 64 bits, and where I expect the existing code is
21713         wrong in some cases.
21714         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21715         (ydhms_diff): Bring back the compile-time check for wide-enough
21716         year and yday.
21717
21718         mktime: fix misspelling in comment
21719         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21720         This merges all recent glibc changes of importance.
21721
21722 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21723
21724         move-if-change: cope with concurrent mv of identical file.
21725         * build-aux/move-if-change (CMPPROG): Accept environment
21726         variable as an override for `cmp'.
21727         (usage): Document CMPPROG.
21728         Adjust comparison to drop stdout.  Cope with failure of mv if
21729         the target file exists and is identical to the source, for
21730         parallel builds.
21731         Report from H.J. Lu against binutils in PR binutils/12283.
21732
21733 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21734
21735         * users.txt: Mention sharutils.
21736
21737 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21738
21739         * users.txt: Mention OATH Toolkit.
21740
21741 2011-01-27  Bruno Haible  <bruno@clisp.org>
21742
21743         Prepare for supporting FreeBSD 10.
21744         * build-aux/config.libpath: Remove handling of freebsd1*.
21745
21746 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21747
21748         Prepare for supporting FreeBSD 10.
21749         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21750         match FreeBSD 10.0.
21751
21752 2011-01-27  Bruno Haible  <bruno@clisp.org>
21753
21754         vma-iter, get-rusage-as: Add OpenBSD support.
21755         * modules/vma-iter (configure.ac): Test for mquery.
21756         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21757         * lib/vma-iter.c: Include <sys/mman.h>.
21758         (vma_iterate): Add an implementation based on mquery().
21759         * lib/resource-ext.h (get_rusage_as): Update comments.
21760         * lib/get-rusage-as.c: Likewise.
21761         * lib/get-rusage-data.c: Likewise.
21762
21763 2011-01-26  Karl Berry  <karl@gnu.org>
21764
21765         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21766         variables to make it easier to override the makeinfo program used.
21767
21768 2011-01-26  Eric Blake  <eblake@redhat.com>
21769
21770         fcntl: work around Haiku F_DUPFD bugs
21771         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21772         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21773         cloexec bit on duplication.
21774         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21775
21776 2011-01-26  Bruno Haible  <bruno@clisp.org>
21777
21778         Enable memory leak tests on AIX.
21779         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21780         * tests/test-fprintf-posix3.c (main): Likewise.
21781
21782 2011-01-26  Bruno Haible  <bruno@clisp.org>
21783
21784         Tests for module 'get-rusage-data'.
21785         * modules/get-rusage-data-tests: New file.
21786         * tests/test-get-rusage-data.c: New file.
21787
21788         New module 'get-rusage-data'.
21789         * lib/resource-ext.h (get_rusage_data): New declaration.
21790         * lib/get-rusage-data.c: New file.
21791         * modules/get-rusage-data: New file.
21792
21793 2011-01-25  Bruno Haible  <bruno@clisp.org>
21794
21795         get-rusage-as: Allow for easier testing.
21796         * lib/resource-ext.h (get_rusage_as): Add comment.
21797         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21798         (main): New function for interactive testing.
21799
21800 2011-01-25  Bruno Haible  <bruno@clisp.org>
21801
21802         vma-iter: Treat Haiku like BeOS.
21803         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21804         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21805
21806 2011-01-25  Eric Blake  <eblake@redhat.com>
21807
21808         c-stack: fix regression on cygwin when libsigsegv is present
21809         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21810
21811 2011-01-24  Bruno Haible  <bruno@clisp.org>
21812
21813         vma-iter: Avoid empty intervals.
21814         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21815         on an empty interval.
21816
21817 2011-01-24  Jim Meyering  <meyering@redhat.com>
21818
21819         u64: remove unnecessary #include
21820         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21821
21822 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21823
21824         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21825         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21826
21827 2011-01-23  Bruno Haible  <bruno@clisp.org>
21828
21829         New module 'vma-iter'.
21830         * lib/vma-iter.h: New file.
21831         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21832         * modules/vma-iter: New file.
21833         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21834         for get_rusage_as_via_iterator.
21835         (vma_iterate_callback): New function.
21836         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21837         * modules/get-rusage-as (Depends-on): Add vma-iter.
21838
21839 2011-01-23  Bruno Haible  <bruno@clisp.org>
21840
21841         uninorm: Tweak includes.
21842         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21843         Reported by Jim Meyering.
21844
21845 2011-01-23  Bruno Haible  <bruno@clisp.org>
21846
21847         get-rusage-as: Improve on NetBSD.
21848         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21849         /proc, like on FreeBSD.
21850
21851 2011-01-23  Jim Meyering  <meyering@redhat.com>
21852
21853         xreadlink.h: remove unnecessary #include
21854         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21855
21856         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21857         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21858
21859 2011-01-23  Bruno Haible  <bruno@clisp.org>
21860
21861         get-rusage-as: Fix bug.
21862         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21863         original limit when aborting the first loop.
21864
21865 2011-01-23  Bruno Haible  <bruno@clisp.org>
21866
21867         wctype: Ensure valid C syntax.
21868         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21869         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21870
21871 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21872
21873         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21874         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21875         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21876         as they are needed only for configure's test case.
21877         This removes two unnecessary symbols from config.h.
21878
21879         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21880         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21881         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21882         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21883         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21884         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21885         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21886         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21887         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21888         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21889         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21890         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21891         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21892         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21893         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21894         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21895         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21896         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21897
21898 2011-01-21  Eric Blake  <eblake@redhat.com>
21899
21900         maintainer-makefile: work with older git for submodule check
21901         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21902         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21903         Reported by Matthias Bolte.
21904
21905         bootstrap: minor portability fixes
21906         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21907         (usage): Omit leading capital and trailing . on help phrases, per
21908         GNU Coding Standards.
21909         (check_versions, top level): Prefix messages with script name.
21910
21911 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21912
21913         bootstrap: support --no-git option
21914         * build-aux/bootstrap: Add --no-git option, to be used when
21915         --gnulib-srcdir points to the exact desired checkout.
21916
21917 2011-01-21  Eric Blake  <eblake@redhat.com>
21918
21919         strerror_r-posix: work with glibc 2.13
21920         * lib/strerror_r.c (strerror_r): Fix return type.
21921
21922 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21923             Bruno Haible  <bruno@clisp.org>
21924
21925         uN_strstr: New unit tests.
21926         * modules/unistr/u8-strstr-tests: New file.
21927         * modules/unistr/u16-strstr-tests: New file.
21928         * modules/unistr/u32-strstr-tests: New file.
21929         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21930         * tests/unistr/test-u8-strstr.c: New file.
21931         * tests/unistr/test-u16-strstr.c: New file.
21932         * tests/unistr/test-u32-strstr.c: New file.
21933
21934 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21935             Bruno Haible  <bruno@clisp.org>
21936
21937         Make uN_strstr functions O(n) worst-case.
21938         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21939         16-bit and 32-bit unit cases, use the unibyte algorithm from
21940         lib/mbsstr.c.
21941         * lib/unistr/u8-strstr.c: Include <string.h>.
21942         (UNIT_IS_UINT8_T): New macro.
21943         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21944         (U_STRLEN, U_STRNLEN): New macros.
21945         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21946         (U_STRLEN, U_STRNLEN): New macros.
21947         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21948         (configure.ac): Update required libunistring version.
21949         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21950         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21951         malloca.
21952         (configure.ac): Update required libunistring version.
21953         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21954         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21955         malloca.
21956         (configure.ac): Update required libunistring version.
21957
21958 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21959             Bruno Haible  <bruno@clisp.org>
21960
21961         Prepare for faster uN_strstr functions.
21962         * lib/str-kmp.h: Support definable UNITs.
21963         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21964         needle_len argument.
21965         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21966         * lib/mbscasestr.c (mbscasestr): Likewise.
21967
21968 2011-01-21  Pádraig Brady <P@draigBrady.com>
21969
21970         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21971         * tests/test-malloca.c (main): Unset the environment variable
21972         to greatly speed up the test.
21973         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21974         * modules/malloca-tests: Depend on unsetenv.
21975
21976 2011-01-21  Pádraig Brady <P@draigBrady.com>
21977
21978         ignore-value: remove stdint dependency
21979         * lib/ignore-value.h: Remove <stdint.h>
21980         * modules/ignore-value: Remove stdint dependency.
21981
21982 2011-01-21  Jim Meyering  <meyering@redhat.com>
21983
21984         maint.mk: adjust variable name to be consistent with other gl_ vars
21985         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21986         to be lower case.
21987
21988 2011-01-20  Jim Meyering  <meyering@redhat.com>
21989
21990         maint.mk: make "check" depend on public-submodule-commit by default
21991         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21992
21993 2011-01-20  Bruno Haible  <bruno@clisp.org>
21994
21995         mbfile, mbiter: Complete change from 2008-12-21.
21996         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21997         * m4/mbiter.m4 (gl_MBITER): Likewise.
21998
21999 2011-01-20  Jim Meyering  <meyering@redhat.com>
22000
22001         init.sh: insert space between each function name and "()"
22002         * tests/init.sh: Make it a little easier to see that a function's
22003         name is "warn_", and not "warn" when looking at the first part of
22004         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22005
22006 2011-01-20  Jim Meyering  <meyering@redhat.com>
22007
22008         mountlist: clean up code formatting
22009         * lib/mountlist.c (read_file_system_list): Split a long line,
22010         correct bracing style, use NULL in place of "(struct statfs *)0",
22011         don't parenthesize return value, add spaces around "=" and after
22012         ";-in-for-stmt".
22013
22014 2011-01-14  Markus Duft <mduft@gentoo.org>
22015
22016         mountlist: add support for Interix
22017         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22018         Apply statvfs to all entries of /dev/fs.
22019         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22020         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22021
22022 2011-01-20  Jim Meyering  <meyering@redhat.com>
22023
22024         maint.mk: improve the public-submodule-commit rule
22025         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22026         to suppress printing of its commands... unless V=1.
22027         Add git submodule's --quiet option to suppress printing of e.g.,
22028         "Entering gnulib" output.
22029         "cd" into $(srcdir) before running git submodule.
22030
22031 2011-01-20  Bruno Haible  <bruno@clisp.org>
22032
22033         include_next: Fix bug introduced on 2011-01-18.
22034         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22035         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22036         ac_cv_header_... variable if the second argument is not 'check'.
22037         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22038         gl_NEXT_HEADERS_INTERNAL.
22039
22040 2011-01-20  Bruno Haible  <bruno@clisp.org>
22041
22042         Allow the user to avoid the GNULIB_TEST_* macros.
22043         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22044         Suggested by Paul Eggert.
22045
22046 2011-01-14  Jim Meyering  <meyering@redhat.com>
22047
22048         bootstrap: avoid failure when there is no .gitmodules file
22049         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22050         has been assigned to, even when its value is the empty string.
22051         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22052         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22053         Reported by John W. Eaton <jwe@gnu.org>.
22054
22055 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22056
22057         assume <ctype.h>, ..., <time.h> exist
22058         For years gnulib has been assuming the existence of the headers
22059         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22060         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22061         them, since they don't appear to be needed.
22062         * README (Portability guidelines): Document this.
22063         * lib/flock.c: Assume <fcntl.h> exists.
22064         * lib/regex_internal.h: Assume <locale.h> exists.
22065         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22066         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22067         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22068         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22069         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22070         * m4/regex.m4 (gl_REGEX): Likewise.
22071         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22072         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22073         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22074         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22075         * tests/test-argp.c: Likewise.
22076         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22077
22078         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22079         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22080         AA_APPLE_UNIVERSAL_BUILD.  See
22081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22082         * NEWS: Document this.
22083
22084 2011-01-19  Eric Blake  <eblake@redhat.com>
22085
22086         c-stack: assume stack overflow if SA_SIGINFO unsupported
22087         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22088         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22089         sigaction will work.
22090         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22091         behavior match Linux.
22092         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22093
22094         stdbool-tests: accommodate Haiku
22095         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22096
22097         binary-io: fix O_TEXT on Haiku
22098         * modules/binary-io (Depends-on): Add fcntl-h.
22099         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22100         than blindly undefining O_TEXT.
22101         Reported by Scott McCreary.
22102
22103 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22104
22105         include_next: do not check for standard headers like stddef.h
22106
22107         I found this problem when modifying Emacs to use gnulib.
22108         I noticed that it added HAVE_STDDEF_H to config.h, even though
22109         gnulib always assumes <stddef.h> exists as per README and this
22110         symbol is unnecessary.
22111         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22112         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22113         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22114         faster for headers like stddef.h that are known to exist.
22115         (gl_CHECK_NEXT_HEADERS): Use it.
22116         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22117         rather than gl_CHECK_NEXT_HEADERS.
22118         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22119         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22120
22121 2011-01-18  Eric Blake  <eblake@redhat.com>
22122
22123         ansi-c++-opt: skip C++ dependency style if C++ is unused
22124         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22125         tests when we know C++ compilation is not desired.
22126         Reported by Scott McCreary.
22127
22128 2011-01-18  Bruno Haible  <bruno@clisp.org>
22129
22130         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22131         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22132         (main): Perform test also when getrlimit and setrlimit don't exist or
22133         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22134         limiting the address space size using setrlimit, compare the address
22135         space size before and after the the test.
22136         * tests/test-dprintf-posix2.c: Likewise.
22137         * tests/test-fprintf-posix3.sh: Update skip messages.
22138         * tests/test-dprintf-posix2.sh: Likewise.
22139         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22140         * modules/dprintf-posix-tests (Depends-on): Likewise.
22141         Reported by Bruce Korb <bkorb@gnu.org> and
22142         Gary V. Vaughan <gary@gnu.org>.
22143
22144 2011-01-18  Bruno Haible  <bruno@clisp.org>
22145
22146         get-rusage-as: Improvement for Cygwin.
22147         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22148         areas that are merely reserved.
22149
22150 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22151
22152         strftime: remove dependencies on multibyte modules
22153
22154         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22155         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22156         only if __osf__ is defined, and I suspect OSF doesn't need these
22157         other modules.  If my guess is wrong, we'll need to come up with a
22158         variant of strftime that doesn't need the multibyte modules.
22159
22160         I discovered this problem when attempting modify Emacs to use the
22161         strftime module.  With the previous gnulib, this caused Emacs to
22162         need 31 new files, ranging from lib/config.charset to
22163         m4/wint_t.m4.  This was overkill and I expect would be offputting
22164         to the Emacs maintainers.  After this change, only 6 new files are
22165         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22166         stdbool.m4, and tm_gmtoff.m4.
22167
22168         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22169         Suggested by Bruno Haible in
22170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22171         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22172         and do not check for wchar.h.
22173         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22174         (Depends-on): Remove mbrlen, mbsinit, wchar.
22175
22176 2011-01-18  Bruno Haible  <bruno@clisp.org>
22177
22178         Tests for module 'get-rusage-as'.
22179         * modules/get-rusage-as-tests: New file.
22180         * tests/test-get-rusage-as.c: New file.
22181
22182         New module 'get-rusage-as'.
22183         * modules/get-rusage-as: New file.
22184         * lib/resource-ext.h: New file.
22185         * lib/get-rusage-as.c: New file.
22186
22187 2011-01-17  Eric Blake  <eblake@redhat.com>
22188
22189         sigaction: relax license from LGPLv3+ to LGPLv2+
22190         * modules/sigaction (License): Relax to LGPLv2+.
22191
22192 2011-01-14  Bruno Haible  <bruno@clisp.org>
22193
22194         filemode: Make function declarations usable in C++ mode.
22195         * lib/filemode.h: Enclose function declarations in extern "C" block.
22196         Reported by John W. Eaton <jwe@gnu.org>.
22197
22198 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22199
22200         save-cwd: no longer include "xgetcwd.h"
22201         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22202         This avoids a compilation failure in projects that use save-cwd
22203         without also using the xgetcwd module.
22204
22205 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22206
22207         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22208         This is so that a program like Emacs, which needs only dtoastr,
22209         does not have to bother with distributing and compiling ftoastr
22210         and ldtoastr.
22211         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22212         * modules/dtoastr, modules/ldtoastr: New files.
22213         * modules/ftoastr: Now works just for 'float'.
22214         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22215         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22216         dtoastr.c, ldtoastr.c.
22217
22218 2011-01-11  Jim Meyering  <meyering@redhat.com>
22219
22220         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22221         There is no need to work around the lack of the fchdir function,
22222         since gnulib can now provide a replacement when required.
22223         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22224         * modules/save-cwd (Depends-on): Add fchdir.
22225
22226 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22227
22228         openat, save-cwd: avoid xmalloc
22229
22230         This removes a direct (but undocumented) dependency of openat on
22231         xalloc, along with an indirect dependency via save-cwd.  It also
22232         removes a dependency of save-cwd on xgetcwd, and thereby
22233         indirectly on xalloc.  This change causes the openat substitute
22234         to fall back on save_cwd when memory is tight, and for save_cwd to
22235         fail instead of dying when memory is tight, but that's good enough.
22236         Problem and initial idea for fix reported by Bastien Roucaries in
22237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22238
22239         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22240         xalloc.h (for xmalloc).
22241         (openat_proc_name): Use malloc, not xmalloc.
22242         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22243         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22244
22245         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22246         This avoids heap allocation for file names whose lengths are in
22247         the range 512..1023, with the upper bound increasing to at most
22248         4031 depending on the platform's PATH_MAX.  (We do not want
22249         pathmax.h here as it might supply a non-constant PATH_MAX.)
22250         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22251         Perhaps they should be moved to malloca.h?
22252         (OPENAT_BUFFER_SIZE): Use them.
22253
22254 2011-01-10  Bruno Haible  <bruno@clisp.org>
22255
22256         doc: Update users.txt.
22257         * users.txt: Add recutils.
22258
22259 2011-01-09  Karl Berry  <karl@gnu.org>
22260
22261         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
22262
22263         * doc/configmake.texi: New file.
22264         * doc/gnulib.texi: Include it.
22265         * modules/configmake: Move documentation from here.
22266
22267 2011-01-09  Bruno Haible  <bruno@clisp.org>
22268
22269         Update to Unicode 6.0.0.
22270         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22271         (get_lbp): Update for Unicode 6.0.0.
22272         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22273         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22274         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22275         U+11001, U+11038..U+11046. Remove U+06DE.
22276         (uc_width): Fix bounds of planes.
22277         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22278         lib/uniwidth/width.c.
22279         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22280         trailing whitespace removed.
22281         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22282         without comments, but with the original copyright notice.
22283         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22284         * lib/unicase/ignorable.h: Likewise.
22285         * lib/unicase/tocasefold.h: Likewise.
22286         * lib/unicase/tolower.h: Likewise.
22287         * lib/unicase/totitle.h: Likewise.
22288         * lib/unicase/toupper.h: Likewise.
22289         * lib/unictype/bidi_of.h: Likewise.
22290         * lib/unictype/blocks.h: Likewise.
22291         * lib/unictype/categ_C.h: Likewise.
22292         * lib/unictype/categ_Cn.h: Likewise.
22293         * lib/unictype/categ_L.h: Likewise.
22294         * lib/unictype/categ_Ll.h: Likewise.
22295         * lib/unictype/categ_Lm.h: Likewise.
22296         * lib/unictype/categ_Lo.h: Likewise.
22297         * lib/unictype/categ_Lu.h: Likewise.
22298         * lib/unictype/categ_M.h: Likewise.
22299         * lib/unictype/categ_Mc.h: Likewise.
22300         * lib/unictype/categ_Me.h: Likewise.
22301         * lib/unictype/categ_Mn.h: Likewise.
22302         * lib/unictype/categ_N.h: Likewise.
22303         * lib/unictype/categ_Nd.h: Likewise.
22304         * lib/unictype/categ_No.h: Likewise.
22305         * lib/unictype/categ_P.h: Likewise.
22306         * lib/unictype/categ_Po.h: Likewise.
22307         * lib/unictype/categ_S.h: Likewise.
22308         * lib/unictype/categ_Sc.h: Likewise.
22309         * lib/unictype/categ_Sk.h: Likewise.
22310         * lib/unictype/categ_Sm.h: Likewise.
22311         * lib/unictype/categ_So.h: Likewise.
22312         * lib/unictype/categ_of.h: Likewise.
22313         * lib/unictype/combining.h: Likewise.
22314         * lib/unictype/ctype_alnum.h: Likewise.
22315         * lib/unictype/ctype_alpha.h: Likewise.
22316         * lib/unictype/ctype_graph.h: Likewise.
22317         * lib/unictype/ctype_lower.h: Likewise.
22318         * lib/unictype/ctype_print.h: Likewise.
22319         * lib/unictype/ctype_punct.h: Likewise.
22320         * lib/unictype/ctype_upper.h: Likewise.
22321         * lib/unictype/decdigit.h: Likewise.
22322         * lib/unictype/digit.h: Likewise.
22323         * lib/unictype/numeric.h: Likewise.
22324         * lib/unictype/pr_alphabetic.h: Likewise.
22325         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22326         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22327         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22328         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22329         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22330         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22331         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22332         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22333         * lib/unictype/pr_case_ignorable.h: Likewise.
22334         * lib/unictype/pr_cased.h: Likewise.
22335         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
22336         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
22337         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
22338         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
22339         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
22340         * lib/unictype/pr_combining.h: Likewise.
22341         * lib/unictype/pr_composite.h: Likewise.
22342         * lib/unictype/pr_currency_symbol.h: Likewise.
22343         * lib/unictype/pr_decimal_digit.h: Likewise.
22344         * lib/unictype/pr_deprecated.h: Likewise.
22345         * lib/unictype/pr_format_control.h: Likewise.
22346         * lib/unictype/pr_grapheme_base.h: Likewise.
22347         * lib/unictype/pr_grapheme_extend.h: Likewise.
22348         * lib/unictype/pr_grapheme_link.h: Likewise.
22349         * lib/unictype/pr_id_continue.h: Likewise.
22350         * lib/unictype/pr_id_start.h: Likewise.
22351         * lib/unictype/pr_ideographic.h: Likewise.
22352         * lib/unictype/pr_lowercase.h: Likewise.
22353         * lib/unictype/pr_math.h: Likewise.
22354         * lib/unictype/pr_numeric.h: Likewise.
22355         * lib/unictype/pr_other_alphabetic.h: Likewise.
22356         * lib/unictype/pr_other_id_continue.h: Likewise.
22357         * lib/unictype/pr_other_math.h: Likewise.
22358         * lib/unictype/pr_punctuation.h: Likewise.
22359         * lib/unictype/pr_sentence_terminal.h: Likewise.
22360         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22361         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22362         * lib/unictype/pr_unified_ideograph.h: Likewise.
22363         * lib/unictype/pr_uppercase.h: Likewise.
22364         * lib/unictype/pr_xid_continue.h: Likewise.
22365         * lib/unictype/pr_xid_start.h: Likewise.
22366         * lib/unictype/scripts.h: Likewise.
22367         * lib/unictype/scripts_byname.gperf: Likewise.
22368         * lib/unictype/sy_java_ident.h: Likewise.
22369         * lib/unigbrk/gbrkprop.h: Likewise.
22370         * lib/unilbrk/lbrkprop1.h: Likewise.
22371         * lib/unilbrk/lbrkprop2.h: Likewise.
22372         * lib/uninorm/decomposition-table2.h: Likewise.
22373         * lib/uniwbrk/wbrkprop.h: Likewise.
22374         * tests/unicase/test-cased.c: Likewise.
22375         * tests/unicase/test-ignorable.c: Likewise.
22376         * tests/unicase/test-uc_tolower.c: Likewise.
22377         * tests/unicase/test-uc_totitle.c: Likewise.
22378         * tests/unicase/test-uc_toupper.c: Likewise.
22379         * tests/unictype/test-categ_C.c: Likewise.
22380         * tests/unictype/test-categ_Cn.c: Likewise.
22381         * tests/unictype/test-categ_L.c: Likewise.
22382         * tests/unictype/test-categ_Ll.c: Likewise.
22383         * tests/unictype/test-categ_Lm.c: Likewise.
22384         * tests/unictype/test-categ_Lo.c: Likewise.
22385         * tests/unictype/test-categ_Lu.c: Likewise.
22386         * tests/unictype/test-categ_M.c: Likewise.
22387         * tests/unictype/test-categ_Mc.c: Likewise.
22388         * tests/unictype/test-categ_Me.c: Likewise.
22389         * tests/unictype/test-categ_Mn.c: Likewise.
22390         * tests/unictype/test-categ_N.c: Likewise.
22391         * tests/unictype/test-categ_Nd.c: Likewise.
22392         * tests/unictype/test-categ_No.c: Likewise.
22393         * tests/unictype/test-categ_P.c: Likewise.
22394         * tests/unictype/test-categ_Po.c: Likewise.
22395         * tests/unictype/test-categ_S.c: Likewise.
22396         * tests/unictype/test-categ_Sc.c: Likewise.
22397         * tests/unictype/test-categ_Sk.c: Likewise.
22398         * tests/unictype/test-categ_Sm.c: Likewise.
22399         * tests/unictype/test-categ_So.c: Likewise.
22400         * tests/unictype/test-ctype_alnum.c: Likewise.
22401         * tests/unictype/test-ctype_alpha.c: Likewise.
22402         * tests/unictype/test-ctype_graph.c: Likewise.
22403         * tests/unictype/test-ctype_lower.c: Likewise.
22404         * tests/unictype/test-ctype_print.c: Likewise.
22405         * tests/unictype/test-ctype_punct.c: Likewise.
22406         * tests/unictype/test-ctype_upper.c: Likewise.
22407         * tests/unictype/test-decdigit.h: Likewise.
22408         * tests/unictype/test-digit.h: Likewise.
22409         * tests/unictype/test-numeric.h: Likewise.
22410         * tests/unictype/test-pr_alphabetic.c: Likewise.
22411         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22412         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22413         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22414         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22415         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22416         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22417         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22418         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22419         * tests/unictype/test-pr_case_ignorable.c: Likewise.
22420         * tests/unictype/test-pr_cased.c: Likewise.
22421         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
22422         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
22423         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
22424         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
22425         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
22426         * tests/unictype/test-pr_combining.c: Likewise.
22427         * tests/unictype/test-pr_composite.c: Likewise.
22428         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22429         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22430         * tests/unictype/test-pr_deprecated.c: Likewise.
22431         * tests/unictype/test-pr_format_control.c: Likewise.
22432         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22433         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22434         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22435         * tests/unictype/test-pr_id_continue.c: Likewise.
22436         * tests/unictype/test-pr_id_start.c: Likewise.
22437         * tests/unictype/test-pr_ideographic.c: Likewise.
22438         * tests/unictype/test-pr_lowercase.c: Likewise.
22439         * tests/unictype/test-pr_math.c: Likewise.
22440         * tests/unictype/test-pr_numeric.c: Likewise.
22441         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22442         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22443         * tests/unictype/test-pr_other_math.c: Likewise.
22444         * tests/unictype/test-pr_punctuation.c: Likewise.
22445         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22446         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22447         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22448         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22449         * tests/unictype/test-pr_uppercase.c: Likewise.
22450         * tests/unictype/test-pr_xid_continue.c: Likewise.
22451         * tests/unictype/test-pr_xid_start.c: Likewise.
22452         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22453         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22454         changes.
22455         * lib/unictype/categ_Cc.h: Likewise.
22456         * lib/unictype/categ_Cf.h: Likewise.
22457         * lib/unictype/categ_Co.h: Likewise.
22458         * lib/unictype/categ_Cs.h: Likewise.
22459         * lib/unictype/categ_Lt.h: Likewise.
22460         * lib/unictype/categ_Nl.h: Likewise.
22461         * lib/unictype/categ_Pc.h: Likewise.
22462         * lib/unictype/categ_Pd.h: Likewise.
22463         * lib/unictype/categ_Pe.h: Likewise.
22464         * lib/unictype/categ_Pf.h: Likewise.
22465         * lib/unictype/categ_Pi.h: Likewise.
22466         * lib/unictype/categ_Ps.h: Likewise.
22467         * lib/unictype/categ_Z.h: Likewise.
22468         * lib/unictype/categ_Zl.h: Likewise.
22469         * lib/unictype/categ_Zp.h: Likewise.
22470         * lib/unictype/categ_Zs.h: Likewise.
22471         * lib/unictype/ctype_blank.h: Likewise.
22472         * lib/unictype/ctype_cntrl.h: Likewise.
22473         * lib/unictype/ctype_digit.h: Likewise.
22474         * lib/unictype/ctype_space.h: Likewise.
22475         * lib/unictype/ctype_xdigit.h: Likewise.
22476         * lib/unictype/mirror.h: Likewise.
22477         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22478         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22479         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22480         * lib/unictype/pr_bidi_control.h: Likewise.
22481         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22482         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22483         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22484         * lib/unictype/pr_bidi_pdf.h: Likewise.
22485         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22486         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22487         * lib/unictype/pr_dash.h: Likewise.
22488         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22489         * lib/unictype/pr_diacritic.h: Likewise.
22490         * lib/unictype/pr_extender.h: Likewise.
22491         * lib/unictype/pr_hex_digit.h: Likewise.
22492         * lib/unictype/pr_hyphen.h: Likewise.
22493         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22494         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22495         * lib/unictype/pr_ignorable_control.h: Likewise.
22496         * lib/unictype/pr_iso_control.h: Likewise.
22497         * lib/unictype/pr_join_control.h: Likewise.
22498         * lib/unictype/pr_left_of_pair.h: Likewise.
22499         * lib/unictype/pr_line_separator.h: Likewise.
22500         * lib/unictype/pr_logical_order_exception.h: Likewise.
22501         * lib/unictype/pr_non_break.h: Likewise.
22502         * lib/unictype/pr_not_a_character.h: Likewise.
22503         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22504         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22505         * lib/unictype/pr_other_id_start.h: Likewise.
22506         * lib/unictype/pr_other_lowercase.h: Likewise.
22507         * lib/unictype/pr_other_uppercase.h: Likewise.
22508         * lib/unictype/pr_paired_punctuation.h: Likewise.
22509         * lib/unictype/pr_paragraph_separator.h: Likewise.
22510         * lib/unictype/pr_pattern_syntax.h: Likewise.
22511         * lib/unictype/pr_pattern_white_space.h: Likewise.
22512         * lib/unictype/pr_private_use.h: Likewise.
22513         * lib/unictype/pr_quotation_mark.h: Likewise.
22514         * lib/unictype/pr_radical.h: Likewise.
22515         * lib/unictype/pr_soft_dotted.h: Likewise.
22516         * lib/unictype/pr_space.h: Likewise.
22517         * lib/unictype/pr_titlecase.h: Likewise.
22518         * lib/unictype/pr_variation_selector.h: Likewise.
22519         * lib/unictype/pr_white_space.h: Likewise.
22520         * lib/unictype/pr_zero_width.h: Likewise.
22521         * lib/unictype/sy_c_ident.h: Likewise.
22522         * lib/unictype/sy_c_whitespace.h: Likewise.
22523         * lib/unictype/sy_java_whitespace.h: Likewise.
22524         * lib/uninorm/composition-table.gperf: Likewise.
22525         * lib/uninorm/decomposition-table1.h: Likewise.
22526         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22527         LB8.
22528         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22529         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22530         * modules/unictype/*: Bump version number of expected libunistring
22531         version.
22532
22533 2011-01-09  Bruno Haible  <bruno@clisp.org>
22534
22535         Update to Unicode 5.2.0.
22536         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22537         trailing whitespace removed.
22538
22539 2011-01-09  Bruno Haible  <bruno@clisp.org>
22540
22541         New Unicode character properties, from Unicode 5.2.0.
22542         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22543         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22544         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22545         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22546         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22547         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22548         uc_is_property_cased, uc_is_property_case_ignorable,
22549         uc_is_property_changes_when_lowercased,
22550         uc_is_property_changes_when_uppercased,
22551         uc_is_property_changes_when_titlecased,
22552         uc_is_property_changes_when_casefolded,
22553         uc_is_property_changes_when_casemapped): New declarations.
22554         * lib/unictype/pr_byname.gperf: Add the new properties.
22555         * modules/unictype/property-byname (Depends-on): Depend on the new
22556         properties modules.
22557         * modules/unictype/property-all (Depends-on): Likewise.
22558         * MODULES.html.sh (Unicode string functions): Add
22559         unictype/property-case-ignorable, unictype/property-cased,
22560         unictype/property-changes-when-casefolded,
22561         unictype/property-changes-when-casemapped,
22562         unictype/property-changes-when-lowercased,
22563         unictype/property-changes-when-titlecased,
22564         unictype/property-changes-when-uppercased.
22565
22566         New module 'unictype/property-changes-when-casemapped'.
22567         * modules/unictype/property-changes-when-casemapped: New file.
22568         * lib/unictype/pr_changes_when_casemapped.c: New file.
22569         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22570         generated by gen-uni-tables.
22571         * modules/unictype/property-changes-when-casemapped-tests: New file.
22572         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22573         automatically generated by gen-uni-tables.
22574
22575         New module 'unictype/property-changes-when-casefolded'.
22576         * modules/unictype/property-changes-when-casefolded: New file.
22577         * lib/unictype/pr_changes_when_casefolded.c: New file.
22578         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22579         generated by gen-uni-tables.
22580         * modules/unictype/property-changes-when-casefolded-tests: New file.
22581         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22582         automatically generated by gen-uni-tables.
22583
22584         New module 'unictype/property-changes-when-titlecased'.
22585         * modules/unictype/property-changes-when-titlecased: New file.
22586         * lib/unictype/pr_changes_when_titlecased.c: New file.
22587         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22588         generated by gen-uni-tables.
22589         * modules/unictype/property-changes-when-titlecased-tests: New file.
22590         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22591         automatically generated by gen-uni-tables.
22592
22593         New module 'unictype/property-changes-when-uppercased'.
22594         * modules/unictype/property-changes-when-uppercased: New file.
22595         * lib/unictype/pr_changes_when_uppercased.c: New file.
22596         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22597         generated by gen-uni-tables.
22598         * modules/unictype/property-changes-when-uppercased-tests: New file.
22599         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22600         automatically generated by gen-uni-tables.
22601
22602         New module 'unictype/property-changes-when-lowercased'.
22603         * modules/unictype/property-changes-when-lowercased: New file.
22604         * lib/unictype/pr_changes_when_lowercased.c: New file.
22605         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22606         generated by gen-uni-tables.
22607         * modules/unictype/property-changes-when-lowercased-tests: New file.
22608         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22609         automatically generated by gen-uni-tables.
22610
22611         New module 'unictype/property-case-ignorable'.
22612         * modules/unictype/property-case-ignorable: New file.
22613         * lib/unictype/pr_case_ignorable.c: New file.
22614         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22615         by gen-uni-tables.
22616         * modules/unictype/property-case-ignorable-tests: New file.
22617         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22618         generated by gen-uni-tables.
22619
22620         New module 'unictype/property-cased'.
22621         * modules/unictype/property-cased: New file.
22622         * lib/unictype/pr_cased.c: New file.
22623         * lib/unictype/pr_cased.h: New file, automatically generated by
22624         gen-uni-tables.
22625         * modules/unictype/property-cased-tests: New file.
22626         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22627         gen-uni-tables.
22628
22629 2011-01-09  Bruno Haible  <bruno@clisp.org>
22630
22631         Update to Unicode 5.2.0.
22632         * lib/gen-uni-tables.c (output_predicate, output_category,
22633         output_combclass, output_bidi_category, output_decimal_digit_test,
22634         output_decimal_digit, output_digit_test, output_digit,
22635         output_numeric_test, output_numeric, output_mirror, output_scripts,
22636         output_scripts_byname, output_blocks, output_ident_category): Fix
22637         comment header.
22638         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22639         get_wbp.
22640         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22641         items.
22642         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22643         Changes_When_Lowercased, Changes_When_Uppercased,
22644         Changes_When_Titlecased, Changes_When_Casefolded,
22645         Changes_When_Casemapped.
22646         (is_property_alphabetic, is_property_default_ignorable_code_point):
22647         Update for Unicode 5.2.0.
22648         (is_property_cased, is_property_case_ignorable,
22649         is_property_changes_when_lowercased,
22650         is_property_changes_when_uppercased,
22651         is_property_changes_when_titlecased,
22652         is_property_changes_when_casefolded,
22653         is_property_changes_when_casemapped): New functions.
22654         (output_properties): Output also the properties cased, case_ignorable,
22655         changes_when_lowercased, changes_when_uppercased,
22656         changes_when_titlecased, changes_when_casefolded,
22657         changes_when_casemapped.
22658         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22659         Unicode TR#11 revision 17 -> 19.
22660         (LBP_CP): New enumeration value.
22661         (LBP_*): Adjust values accordingly.
22662         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22663         TR#14 revision 22 -> 24.
22664         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22665         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22666         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22667         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22668         is_WBP_MIDLETTER.
22669         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22670         the code1 and code2 of each composition rule.
22671         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22672         * lib/unicase/ignorable.h: Likewise.
22673         * lib/unicase/tocasefold.h: Likewise.
22674         * lib/unicase/tolower.h: Likewise.
22675         * lib/unicase/totitle.h: Likewise.
22676         * lib/unicase/toupper.h: Likewise.
22677         * lib/unictype/bidi_of.h: Likewise.
22678         * lib/unictype/blocks.h: Likewise.
22679         * lib/unictype/categ_C.h: Likewise.
22680         * lib/unictype/categ_Cf.h: Likewise.
22681         * lib/unictype/categ_Cn.h: Likewise.
22682         * lib/unictype/categ_L.h: Likewise.
22683         * lib/unictype/categ_Ll.h: Likewise.
22684         * lib/unictype/categ_Lm.h: Likewise.
22685         * lib/unictype/categ_Lo.h: Likewise.
22686         * lib/unictype/categ_Lu.h: Likewise.
22687         * lib/unictype/categ_M.h: Likewise.
22688         * lib/unictype/categ_Mc.h: Likewise.
22689         * lib/unictype/categ_Mn.h: Likewise.
22690         * lib/unictype/categ_N.h: Likewise.
22691         * lib/unictype/categ_Nd.h: Likewise.
22692         * lib/unictype/categ_Nl.h: Likewise.
22693         * lib/unictype/categ_No.h: Likewise.
22694         * lib/unictype/categ_P.h: Likewise.
22695         * lib/unictype/categ_Pd.h: Likewise.
22696         * lib/unictype/categ_Po.h: Likewise.
22697         * lib/unictype/categ_S.h: Likewise.
22698         * lib/unictype/categ_Sc.h: Likewise.
22699         * lib/unictype/categ_So.h: Likewise.
22700         * lib/unictype/categ_of.h: Likewise.
22701         * lib/unictype/combining.h: Likewise.
22702         * lib/unictype/ctype_alnum.h: Likewise.
22703         * lib/unictype/ctype_alpha.h: Likewise.
22704         * lib/unictype/ctype_graph.h: Likewise.
22705         * lib/unictype/ctype_lower.h: Likewise.
22706         * lib/unictype/ctype_print.h: Likewise.
22707         * lib/unictype/ctype_punct.h: Likewise.
22708         * lib/unictype/ctype_upper.h: Likewise.
22709         * lib/unictype/decdigit.h: Likewise.
22710         * lib/unictype/digit.h: Likewise.
22711         * lib/unictype/numeric.h: Likewise.
22712         * lib/unictype/pr_alphabetic.h: Likewise.
22713         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22714         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22715         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22716         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22717         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22718         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22719         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22720         * lib/unictype/pr_combining.h: Likewise.
22721         * lib/unictype/pr_composite.h: Likewise.
22722         * lib/unictype/pr_currency_symbol.h: Likewise.
22723         * lib/unictype/pr_dash.h: Likewise.
22724         * lib/unictype/pr_decimal_digit.h: Likewise.
22725         * lib/unictype/pr_deprecated.h: Likewise.
22726         * lib/unictype/pr_diacritic.h: Likewise.
22727         * lib/unictype/pr_extender.h: Likewise.
22728         * lib/unictype/pr_grapheme_base.h: Likewise.
22729         * lib/unictype/pr_grapheme_extend.h: Likewise.
22730         * lib/unictype/pr_grapheme_link.h: Likewise.
22731         * lib/unictype/pr_id_continue.h: Likewise.
22732         * lib/unictype/pr_id_start.h: Likewise.
22733         * lib/unictype/pr_ideographic.h: Likewise.
22734         * lib/unictype/pr_ignorable_control.h: Likewise.
22735         * lib/unictype/pr_logical_order_exception.h: Likewise.
22736         * lib/unictype/pr_lowercase.h: Likewise.
22737         * lib/unictype/pr_numeric.h: Likewise.
22738         * lib/unictype/pr_other_alphabetic.h: Likewise.
22739         * lib/unictype/pr_punctuation.h: Likewise.
22740         * lib/unictype/pr_sentence_terminal.h: Likewise.
22741         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22742         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22743         * lib/unictype/pr_unified_ideograph.h: Likewise.
22744         * lib/unictype/pr_uppercase.h: Likewise.
22745         * lib/unictype/pr_xid_continue.h: Likewise.
22746         * lib/unictype/pr_xid_start.h: Likewise.
22747         * lib/unictype/pr_zero_width.h: Likewise.
22748         * lib/unictype/scripts.h: Likewise.
22749         * lib/unictype/scripts_byname.gperf: Likewise.
22750         * lib/unictype/sy_java_ident.h: Likewise.
22751         * lib/unigbrk/gbrkprop.h: Likewise.
22752         * lib/unilbrk/lbrkprop1.h: Likewise.
22753         * lib/unilbrk/lbrkprop2.h: Likewise.
22754         * lib/unilbrk/lbrktables.h: Likewise.
22755         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22756         LBP_CP. Implement rule LB30.
22757         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22758         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22759         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22760         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22761         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22762         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22763         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22764         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22765         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22766         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22767         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22768         bits instead of 16 bits in the code1 and code2 of each composition
22769         rule.
22770         (uc_composition): Update for Unicode 5.2.0.
22771         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22772         * lib/uninorm/decomposition-table2.h: Likewise.
22773         * lib/uniwbrk/wbrkprop.h: Likewise.
22774         * tests/unicase/test-cased.c: Likewise.
22775         * tests/unicase/test-ignorable.c: Likewise.
22776         * tests/unicase/test-uc_tolower.c: Likewise.
22777         * tests/unicase/test-uc_totitle.c: Likewise.
22778         * tests/unicase/test-uc_toupper.c: Likewise.
22779         * tests/unictype/test-categ_C.c: Likewise.
22780         * tests/unictype/test-categ_Cf.c: Likewise.
22781         * tests/unictype/test-categ_Cn.c: Likewise.
22782         * tests/unictype/test-categ_L.c: Likewise.
22783         * tests/unictype/test-categ_Ll.c: Likewise.
22784         * tests/unictype/test-categ_Lm.c: Likewise.
22785         * tests/unictype/test-categ_Lo.c: Likewise.
22786         * tests/unictype/test-categ_Lu.c: Likewise.
22787         * tests/unictype/test-categ_M.c: Likewise.
22788         * tests/unictype/test-categ_Mc.c: Likewise.
22789         * tests/unictype/test-categ_Mn.c: Likewise.
22790         * tests/unictype/test-categ_N.c: Likewise.
22791         * tests/unictype/test-categ_Nd.c: Likewise.
22792         * tests/unictype/test-categ_Nl.c: Likewise.
22793         * tests/unictype/test-categ_No.c: Likewise.
22794         * tests/unictype/test-categ_P.c: Likewise.
22795         * tests/unictype/test-categ_Pd.c: Likewise.
22796         * tests/unictype/test-categ_Po.c: Likewise.
22797         * tests/unictype/test-categ_S.c: Likewise.
22798         * tests/unictype/test-categ_Sc.c: Likewise.
22799         * tests/unictype/test-categ_So.c: Likewise.
22800         * tests/unictype/test-ctype_alnum.c: Likewise.
22801         * tests/unictype/test-ctype_alpha.c: Likewise.
22802         * tests/unictype/test-ctype_graph.c: Likewise.
22803         * tests/unictype/test-ctype_lower.c: Likewise.
22804         * tests/unictype/test-ctype_print.c: Likewise.
22805         * tests/unictype/test-ctype_punct.c: Likewise.
22806         * tests/unictype/test-ctype_upper.c: Likewise.
22807         * tests/unictype/test-decdigit.h: Likewise.
22808         * tests/unictype/test-digit.h: Likewise.
22809         * tests/unictype/test-numeric.h: Likewise.
22810         * tests/unictype/test-pr_alphabetic.c: Likewise.
22811         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22812         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22813         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22814         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22815         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22816         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22817         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22818         * tests/unictype/test-pr_combining.c: Likewise.
22819         * tests/unictype/test-pr_composite.c: Likewise.
22820         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22821         * tests/unictype/test-pr_dash.c: Likewise.
22822         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22823         * tests/unictype/test-pr_deprecated.c: Likewise.
22824         * tests/unictype/test-pr_diacritic.c: Likewise.
22825         * tests/unictype/test-pr_extender.c: Likewise.
22826         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22827         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22828         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22829         * tests/unictype/test-pr_id_continue.c: Likewise.
22830         * tests/unictype/test-pr_id_start.c: Likewise.
22831         * tests/unictype/test-pr_ideographic.c: Likewise.
22832         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22833         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22834         * tests/unictype/test-pr_lowercase.c: Likewise.
22835         * tests/unictype/test-pr_numeric.c: Likewise.
22836         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22837         * tests/unictype/test-pr_punctuation.c: Likewise.
22838         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22839         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22840         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22841         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22842         * tests/unictype/test-pr_uppercase.c: Likewise.
22843         * tests/unictype/test-pr_xid_continue.c: Likewise.
22844         * tests/unictype/test-pr_xid_start.c: Likewise.
22845         * tests/unictype/test-pr_zero_width.c: Likewise.
22846         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22847         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22848         changed behaviour: line breaking is now disallowed between a letter
22849         or '=' and '('.
22850         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22851         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22852         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22853         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22854         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22855         lib/uniwidth/width.c.
22856         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22857         without comments, but with the original copyright notice.
22858         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22859         changes.
22860         * lib/unictype/categ_Cc.h: Likewise.
22861         * lib/unictype/categ_Co.h: Likewise.
22862         * lib/unictype/categ_Cs.h: Likewise.
22863         * lib/unictype/categ_Lt.h: Likewise.
22864         * lib/unictype/categ_Me.h: Likewise.
22865         * lib/unictype/categ_Pc.h: Likewise.
22866         * lib/unictype/categ_Pe.h: Likewise.
22867         * lib/unictype/categ_Pf.h: Likewise.
22868         * lib/unictype/categ_Pi.h: Likewise.
22869         * lib/unictype/categ_Ps.h: Likewise.
22870         * lib/unictype/categ_Sk.h: Likewise.
22871         * lib/unictype/categ_Sm.h: Likewise.
22872         * lib/unictype/categ_Z.h: Likewise.
22873         * lib/unictype/categ_Zl.h: Likewise.
22874         * lib/unictype/categ_Zp.h: Likewise.
22875         * lib/unictype/categ_Zs.h: Likewise.
22876         * lib/unictype/ctype_blank.h: Likewise.
22877         * lib/unictype/ctype_cntrl.h: Likewise.
22878         * lib/unictype/ctype_digit.h: Likewise.
22879         * lib/unictype/ctype_space.h: Likewise.
22880         * lib/unictype/ctype_xdigit.h: Likewise.
22881         * lib/unictype/mirror.h: Likewise.
22882         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22883         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22884         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22885         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22886         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22887         * lib/unictype/pr_bidi_control.h: Likewise.
22888         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22889         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22890         * lib/unictype/pr_bidi_pdf.h: Likewise.
22891         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22892         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22893         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22894         * lib/unictype/pr_format_control.h: Likewise.
22895         * lib/unictype/pr_hex_digit.h: Likewise.
22896         * lib/unictype/pr_hyphen.h: Likewise.
22897         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22898         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22899         * lib/unictype/pr_iso_control.h: Likewise.
22900         * lib/unictype/pr_join_control.h: Likewise.
22901         * lib/unictype/pr_left_of_pair.h: Likewise.
22902         * lib/unictype/pr_line_separator.h: Likewise.
22903         * lib/unictype/pr_math.h: Likewise.
22904         * lib/unictype/pr_non_break.h: Likewise.
22905         * lib/unictype/pr_not_a_character.h: Likewise.
22906         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22907         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22908         * lib/unictype/pr_other_id_continue.h: Likewise.
22909         * lib/unictype/pr_other_id_start.h: Likewise.
22910         * lib/unictype/pr_other_lowercase.h: Likewise.
22911         * lib/unictype/pr_other_math.h: Likewise.
22912         * lib/unictype/pr_other_uppercase.h: Likewise.
22913         * lib/unictype/pr_paired_punctuation.h: Likewise.
22914         * lib/unictype/pr_paragraph_separator.h: Likewise.
22915         * lib/unictype/pr_pattern_syntax.h: Likewise.
22916         * lib/unictype/pr_pattern_white_space.h: Likewise.
22917         * lib/unictype/pr_private_use.h: Likewise.
22918         * lib/unictype/pr_quotation_mark.h: Likewise.
22919         * lib/unictype/pr_radical.h: Likewise.
22920         * lib/unictype/pr_soft_dotted.h: Likewise.
22921         * lib/unictype/pr_space.h: Likewise.
22922         * lib/unictype/pr_titlecase.h: Likewise.
22923         * lib/unictype/pr_variation_selector.h: Likewise.
22924         * lib/unictype/pr_white_space.h: Likewise.
22925         * lib/unictype/sy_c_ident.h: Likewise.
22926         * lib/unictype/sy_c_whitespace.h: Likewise.
22927         * lib/unictype/sy_java_whitespace.h: Likewise.
22928         * modules/uni*/*: Bump version number of expected libunistring version.
22929         Reported by Simon Josefsson.
22930
22931 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22932
22933         useless-if-before-free: fix typo in --help and make the internal,
22934         automatic version date update process work once again.
22935         --help output contained a NUL character instead of the
22936         backslash-zero that was intended.  Also, the "must lie within
22937         the first 8 lines" line is on line 9, and hence not getting
22938         automatically updated.
22939         * build-aux/useless-if-before-free: Fix the former by adding a
22940         backslash, and the latter by condensing the three lines of what-it-does
22941         to a single line, leaving one line of slack for the future.
22942
22943 2011-01-09  Bruno Haible  <bruno@clisp.org>
22944
22945         uniwidth/width: Fix width of U+1D173..U+1D17A.
22946         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22947         symbolic_width, output_width_property_test): New functions.
22948         (main): Invoke output_nonspacing_property, output_width_property_test.
22949         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22950         U+1D173..U+1D17A.
22951         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22952         1.
22953         * modules/uniwidth/*: Bump version number of expected libunistring
22954         version.
22955         * modules/unilbrk/*: Likewise.
22956
22957 2011-01-08  Bruno Haible  <bruno@clisp.org>
22958
22959         uninorm tests: Preserve copyright of Unicode data file.
22960         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22961         Mention modifications.
22962
22963 2011-01-08  Bruno Haible  <bruno@clisp.org>
22964
22965         gen-uni-tables: Prepare for Unicode 5.2.0.
22966         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22967         (debug_output_lbp, output_lbp): Update.
22968
22969 2011-01-08  Bruno Haible  <bruno@clisp.org>
22970
22971         unilbrk: Clarify gen-uni-tables.c code.
22972         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22973         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22974         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22975
22976 2011-01-07  Bruno Haible  <bruno@clisp.org>
22977
22978         strtod: Restore errno when successfully parsing Infinity or NaN.
22979         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22980         restore the original errno.
22981
22982 2011-01-07  Bruno Haible  <bruno@clisp.org>
22983
22984         remove test: Avoid failure on HP-UX 11.
22985         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22986
22987 2011-01-07  Bruno Haible  <bruno@clisp.org>
22988
22989         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22990         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22991         error code.
22992
22993 2011-01-07  Pádraig Brady <P@draigBrady.com>
22994
22995         ignore-value: fixup comments, and add Eric Blake
22996         as an author since he rewrote the macros.
22997         * lib/ignore-value.h (ignore_value):  State that
22998         we now support aggregates.  Also specify exactly
22999         when the GCC warn_unused_result feature was added.
23000
23001 2011-01-06  Eric Blake  <eblake@redhat.com>
23002
23003         ignore-value: support aggregate types
23004         * lib/ignore-value.h (ignore_value): Provide separate gcc
23005         definition.
23006         * modules/ignore-value-tests: New test module.
23007         * tests/test-ignore-value.c: New test.
23008
23009         maint.mk: improve sc_prohibit_strcmp regex
23010         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23011         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23012         definition of STRNEQ.
23013
23014         signal: work around Haiku issue with SIGBUS
23015         * lib/siglist.h: Add comment.
23016         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23017         strsignal's favoring of SIGSEGV.
23018         * tests/test-signal.c (main): Avoid test failure.
23019         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23020         Reported by Scott McCreary.
23021
23022         maint.mk: add pre-release check to ensure submodule commits are public
23023         * top/maint.mk (public-submodule-commit): New rule.
23024         (submodule-checks): New variable.
23025         (alpha beta stable): Depend on the variable.
23026
23027 2011-01-05  Pádraig Brady <P@draigBrady.com>
23028         and Jim Meyering  <meyering@redhat.com>
23029
23030         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23031         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23032         (ATTRIBUTE_DEPRECATED): Define.
23033         (_ignore_case): New function.
23034         (ignore_value): New macro, to replace the old function.
23035         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23036         * modules/ignore-value (Depends-on): Add stdint.
23037
23038 2011-01-04  Eric Blake  <eblake@redhat.com>
23039
23040         doc: regenerate INSTALL
23041         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23042         @firstparagraphindent support, now that autoconf dropped it.
23043         (INSTALL_PRELUDE): Reinstate old macro.
23044         * doc/install.texi: Resync from autoconf.
23045         * doc/INSTALL: Reflect recent autoconf update.
23046         * doc/INSTALL.ISO: Likewise.
23047         * doc/INSTALL.UTF-8: Likewise.
23048         Reported by Karl Berry.
23049
23050 2011-01-04  Bruce Korb  <address@hidden>
23051
23052         git-version-gen: avoid a sub-shell
23053         * build-aux/git-version-gen: Redirect stderr in `...` via
23054         "exec 2>...", rather than via an added sub-shell.
23055
23056 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23057
23058         git-version-gen: use (...) rather than sh -c '...'
23059         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23060         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23061
23062 2011-01-03  Jim Meyering  <meyering@redhat.com>
23063
23064         git-version-gen: convert leading TABs to spaces
23065         * build-aux/git-version-gen: Expand leading TABs.
23066
23067         git-version-gen: handle failed "git rev-list"
23068         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23069         from git and proceeding as if it had succeeded but printed no SHA1
23070         checksums, suppress the diagnostic and handle the failure.
23071         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23072
23073         git-version-gen: include command name in one more diagnostic
23074         * build-aux/git-version-gen: When the required .tarball-version file
23075         was missing or unreadable, you might see the diagnostic from "cat",
23076         but no trace of the name of the invoking script.  Now, you still see
23077         the diagnostic from cat, but also get one from "git-version-gen: ".
23078         Inspired by a patch from Bruce Korb.
23079
23080         update-copyright: adjust test to match changed code
23081         * tests/test-update-copyright.sh: Change test's expected output
23082         to match new actual output.
23083
23084 2011-01-02  Bruno Haible  <bruno@clisp.org>
23085
23086         getlogin_r: Avoid test failure on HP-UX 11.
23087         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23088         ERANGE when the second argument is zero.
23089         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23090         portability problem.
23091
23092 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23093
23094         * build-aux/update-copyright: doc Simon's changes
23095
23096 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23097
23098         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23099         environment variable.
23100
23101 2011-01-02  Bruno Haible  <bruno@clisp.org>
23102
23103         unigbrk: Avoid gcc warnings.
23104         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23105         unused variable.
23106         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23107         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23108         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23109         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23110         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23111         Change type of first argument to 'const char *'.
23112         (main): Remove unused variable.
23113         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23114         type of first argument to 'const char *'.
23115         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23116         Likewise.
23117         (main): Change type of variable 's'.
23118         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23119         to 'int'.
23120
23121 2011-01-02  Bruno Haible  <bruno@clisp.org>
23122
23123         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23124         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23125         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23126         bug.
23127         * lib/pwrite.c: Undo 2010-12-31 patch.
23128         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23129
23130 2011-01-02  Bruno Haible  <bruno@clisp.org>
23131
23132         pread: Fix test whether it works.
23133         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23134
23135 2011-01-02  Bruno Haible  <bruno@clisp.org>
23136
23137         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23138         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23139         ends in "6". Don't require a specific month name. Try also the locale
23140         names found on HP-UX 11 and Solaris 7.
23141
23142 2011-01-02  Bruno Haible  <bruno@clisp.org>
23143
23144         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23145         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23146         C linkage.
23147         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23148
23149 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23150
23151         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23152         for consistency, since the "cluster" term is not used elsewhere.
23153         * lib/unigbrk.in.h: Update name.
23154         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23155         * lib/unigbrk/u16-grapheme-next.c: Update name.
23156         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23157         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23158         * lib/unigbrk/u32-grapheme-next.c: Update name.
23159         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23160         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23161         * lib/unigbrk/u8-grapheme-next.c: Update name.
23162         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23163         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23164         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23165         Suggested by Bruno Haible.
23166
23167 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23168
23169         Remove module 'u8-grapheme-len' as too redundant with
23170         'u8-grapheme-next'.
23171         * modules/unigbrk/u8-grapheme-len: Delete file.
23172         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23173         * lib/unigbrk.in.h: Remove prototype for deleted function.
23174         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23175         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23176
23177         Remove module 'u16-grapheme-len' as too redundant with
23178         'u16-grapheme-next'.
23179         * modules/unigbrk/u16-grapheme-len: Delete file.
23180         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23181         * lib/unigbrk.in.h: Remove prototype for deleted function.
23182         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23183         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23184
23185         Remove module 'u32-grapheme-len' as too redundant with
23186         'u32-grapheme-next'.
23187         * modules/unigbrk/u32-grapheme-len: Delete file.
23188         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23189         * lib/unigbrk.in.h: Remove prototype for deleted function.
23190         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23191         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23192
23193         Suggested by Bruno Haible.
23194
23195 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23196
23197         * unigbrk.in.h: Fix typo: "ben" => "been".
23198         Reported by Bruno Haible.
23199
23200 2011-01-01  Jim Meyering  <meyering@redhat.com>
23201
23202         maint: update almost all copyright ranges to include 2011
23203         Run the new "make update-copyright" rule.
23204
23205 2011-01-01  Jim Meyering  <meyering@redhat.com>
23206
23207         maint: update-copyright: exempt doc/INSTALL*
23208         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23209         since they are generated.  Suggested by Bruno Haible.
23210
23211 2011-01-01  Jim Meyering  <meyering@redhat.com>
23212
23213         maint: refine the update-copyright rule
23214         * Makefile (update-copyright): Also exclude any file that includes
23215         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23216         code that merely generates the comment.
23217
23218 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23219
23220         New module 'u8-grapheme-len'.
23221         * modules/unigbrk/u8-grapheme-len: New file.
23222         * modules/unigbrk/u8-grapheme-len-tests: New file.
23223         * lib/unigbrk.in.h: Add prototype for new function.
23224         * lib/unigbrk/u8-grapheme-len.c: New file.
23225         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23226
23227         New module 'u16-grapheme-len'.
23228         * modules/unigbrk/u16-grapheme-len: New file.
23229         * modules/unigbrk/u16-grapheme-len-tests: New file.
23230         * lib/unigbrk.in.h: Add prototype for new function.
23231         * lib/unigbrk/u16-grapheme-len.c: New file.
23232         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23233
23234         New module 'u32-grapheme-len'.
23235         * modules/unigbrk/u32-grapheme-len: New file.
23236         * modules/unigbrk/u32-grapheme-len-tests: New file.
23237         * lib/unigbrk.in.h: Add prototype for new function.
23238         * lib/unigbrk/u32-grapheme-len.c: New file.
23239         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23240
23241         New module 'u8-grapheme-next'.
23242         * modules/unigbrk/u8-grapheme-next: New file.
23243         * modules/unigbrk/u8-grapheme-next-tests: New file.
23244         * lib/unigbrk.in.h: Add prototype for new function.
23245         * lib/unigbrk/u8-grapheme-next.c: New file.
23246         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23247
23248         New module 'u16-grapheme-next'.
23249         * modules/unigbrk/u16-grapheme-next: New file.
23250         * modules/unigbrk/u16-grapheme-next-tests: New file.
23251         * lib/unigbrk.in.h: Add prototype for new function.
23252         * lib/unigbrk/u16-grapheme-next.c: New file.
23253         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23254
23255         New module 'u32-grapheme-next'.
23256         * modules/unigbrk/u32-grapheme-next: New file.
23257         * modules/unigbrk/u32-grapheme-next-tests: New file.
23258         * lib/unigbrk.in.h: Add prototype for new function.
23259         * lib/unigbrk/u32-grapheme-next.c: New file.
23260         * tests/unigbrk/test-u32-grapheme-next.c: New file.
23261
23262         New module 'u8-grapheme-prev'.
23263         * modules/unigbrk/u8-grapheme-prev: New file.
23264         * modules/unigbrk/u8-grapheme-prev-tests: New file.
23265         * lib/unigbrk.in.h: Add prototype for new function.
23266         * lib/unigbrk/u8-grapheme-prev.c: New file.
23267         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23268
23269         New module 'u16-grapheme-prev'.
23270         * modules/unigbrk/u16-grapheme-prev: New file.
23271         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23272         * lib/unigbrk.in.h: Add prototype for new function.
23273         * lib/unigbrk/u16-grapheme-prev.c: New file.
23274         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23275
23276         New module 'u32-grapheme-prev'.
23277         * modules/unigbrk/u32-grapheme-prev: New file.
23278         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23279         * lib/unigbrk.in.h: Add prototype for new function.
23280         * lib/unigbrk/u32-grapheme-prev.c: New file.
23281         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23282
23283         New module 'u8-grapheme-breaks'.
23284         * modules/unigbrk/u8-grapheme-breaks: New file.
23285         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23286         * lib/unigbrk.in.h: Add prototype for new function.
23287         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23288         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23289
23290         New module 'u16-grapheme-breaks'.
23291         * modules/unigbrk/u16-grapheme-breaks: New file.
23292         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23293         * lib/unigbrk.in.h: Add prototype for new function.
23294         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23295         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23296
23297         New module 'u32-grapheme-breaks'.
23298         * modules/unigbrk/u32-grapheme-breaks: New file.
23299         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23300         * lib/unigbrk.in.h: Add prototype for new function.
23301         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23302         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23303
23304         New module 'ulc-grapheme-breaks'.
23305         * modules/unigbrk/ulc-grapheme-breaks: New file.
23306         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23307         * m4/locale-ar.m4: New file.
23308         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23309         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23310         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23311
23312 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23313
23314         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23315         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23316         modified how this file was generated before I initially submitted
23317         the module, but failed to regenerate it.  This meant that several
23318         of the level2 entries were wrong.
23319         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23320         Remove the division-by-2 that is folded into the table now that
23321         gbrkprop.h has been regenerated properly.  Now -1 entries are
23322         handled correctly.
23323
23324         New module 'unigbrk/uc-gbrk-prop-tests'.
23325         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23326         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23327         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23328         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
23329
23330 2011-01-01  Bruno Haible  <bruno@clisp.org>
23331
23332         Avoid use of hexadecimal escapes.
23333         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
23334         instead of hexadecimal escapes.
23335
23336 2011-01-01  Jim Meyering  <meyering@redhat.com>
23337
23338         maint: new rule to update copyright year ranges
23339         * Makefile (update-copyright): New rule.
23340
23341         maint: indent with TABs in Makefile
23342         * Makefile: Expand leading sequences of spaces to TABs
23343
23344         version-etc: update the copyright year it reports
23345         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
23346
23347 2010-12-31  Bruno Haible  <bruno@clisp.org>
23348
23349         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
23350         * lib/isfinite.c (zerof, zerod, zerol): New variables.
23351         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
23352         zero.
23353
23354 2010-12-31  Bruno Haible  <bruno@clisp.org>
23355
23356         pwrite: Work around HP-UX 11.11 bug.
23357         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
23358         works and set REPLACE_PWRITE if not.
23359         * lib/pwrite.c (pwrite): Add an implementation that uses the system
23360         function.
23361         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
23362
23363 2010-12-31  Bruno Haible  <bruno@clisp.org>
23364
23365         pread: Work around HP-UX 11 bugs.
23366         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
23367         and set REPLACE_PREAD if not.
23368         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
23369
23370 2010-12-31  Eric Blake  <eblake@redhat.com>
23371
23372         nl_langinfo: fix YESEXPR on Irix 6.5
23373         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
23374         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
23375         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
23376         it.
23377
23378 2010-12-31  Bruno Haible  <bruno@clisp.org>
23379
23380         iconv: Document HP-UX 11 bug.
23381         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
23382
23383 2010-12-31  Bruno Haible  <bruno@clisp.org>
23384
23385         ldexpl: Fix link error on HP-UX 11.
23386         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23387         LDEXPL_LIBM, using $ISNANL_LIBM.
23388
23389 2010-12-31  Eric Blake  <eblake@redhat.com>
23390
23391         ftello: avoid compilation failure with SunStudio c89
23392         * lib/ftello.c (ftello): Use lseek, not llseek.
23393
23394         tests: avoid failing coreutils tests on cygwin
23395         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23396         (create_exe_shims_): Return 0 when skipping.
23397
23398 2010-12-31  Bruno Haible  <bruno@clisp.org>
23399
23400         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23401         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23402
23403 2010-12-31  Bruno Haible  <bruno@clisp.org>
23404
23405         waitpid: Fix link error in C++ mode.
23406         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
23407
23408 2010-12-31  Bruno Haible  <bruno@clisp.org>
23409
23410         isnan: Use GCC built-ins when possible.
23411         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
23412         __builtin_isnan.
23413         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
23414         (isnan): Define using GCC built-ins for GCC >= 4.0.
23415
23416 2010-12-31  Bruno Haible  <bruno@clisp.org>
23417
23418         isnand: Fix mistake.
23419         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
23420         __builtin_isnand.
23421
23422 2010-12-31  Bruno Haible  <bruno@clisp.org>
23423
23424         open: Avoid C++ error on HP-UX 11.
23425         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
23426
23427 2010-12-31  Bruno Haible  <bruno@clisp.org>
23428
23429         time_r: Add missing declarations on HP-UX 11.
23430         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23431         instead of HAVE_LOCALTIME_R.
23432         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23433         HAVE_LOCALTIME_R always.
23434         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23435         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23436         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
23437         HAVE_LOCALTIME_R.
23438         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
23439         * doc/posix-functions/localtime_r.texi: Likewise.
23440
23441 2010-12-29  Eric Blake  <eblake@redhat.com>
23442
23443         mountlist: tweak previous commit
23444         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
23445         Reported by Paul Eggert.
23446
23447         mountlist: fix local drive detection on cygwin
23448         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
23449         that works for cygwin.
23450
23451 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23452
23453         ftoastr, snprintf: ftoastr + snprintf module
23454         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
23455         since the snprintf module now should be good enough here.
23456         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
23457         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
23458         and gl_MODULE_INDICATOR([snprintf]), but the former enables
23459         GNULIB_SNPRINTF only for the test directory, and the latter
23460         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
23461         seems to suffice by itself.
23462
23463 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23464
23465         alloca: one step towards thread-safety
23466         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
23467         need for a static variable.  All callers changed.  This does not
23468         make the alloca replacement thread-safe, but it's one step.
23469
23470         tests: minor indenting change
23471         * tests/init.sh: Sync from coreutils housekeeping patch
23472         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
23473         to keep lines within 80 columns.
23474
23475 2010-12-28  Jim Meyering  <meyering@redhat.com>
23476
23477         regex: don't infloop on persistent failing calloc
23478         * lib/regexec.c (build_trtable): Return failure indication upon
23479         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23480         In glibc, this was fixed for version 2.13:
23481         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23482
23483 2010-12-28  Bruno Haible  <bruno@clisp.org>
23484             Paul Eggert <eggert@cs.ucla.edu>
23485
23486         linkat: Make implementation robust against system behaviour variations.
23487         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23488         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23489         way, and to -2 if it needs a generic runtime test.
23490         * lib/linkat.c (solaris_optimized_link_immediate,
23491         solaris_optimized_link_follow): New functions.
23492         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23493         (check_same_link): Use it.
23494
23495 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23496
23497         New module 'unigbrk/base'.
23498         * modules/unigbrk/base: New file.
23499         * lib/unigbrk.in.h: New file.
23500
23501         New module 'unigbrk/uc-gbrk-prop'.
23502         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23503         * modules/unigbrk/uc-gbrk-prop: New file.
23504         * lib/unigbrk/gbrkprop.h: New file.
23505         * lib/unigbrk/uc-gbrk-prop.c: New file.
23506
23507         New module 'unigbrk/uc-is-grapheme-break'.
23508         * modules/unigbrk/uc-is-grapheme-break: New file.
23509         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23510         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23511         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23512         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23513         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23514
23515         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23516
23517 2010-12-27  Bruno Haible  <bruno@clisp.org>
23518
23519         linkat test: Avoid failure on Solaris 11 2010-11.
23520         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23521
23522 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23523
23524         utimens: work around glibc rounding bug on more platforms
23525         * lib/utimens.c (fdutimens): Work around rounding bug even if
23526         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23527         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23528
23529 2010-12-27  Bruno Haible  <bruno@clisp.org>
23530
23531         select tests: Improve comments.
23532         * tests/test-select.c (do_select): Add comments.
23533
23534 2010-12-27  Bruno Haible  <bruno@clisp.org>
23535
23536         select tests: Safer way of handling timeout.
23537         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23538         at every invocation.
23539
23540 2010-12-27  Bruno Haible  <bruno@clisp.org>
23541
23542         select tests: Use 'bool' where appropriate.
23543         * tests/test-select.c (connect_to_socket): Change argument type to
23544         'bool'.
23545
23546 2010-12-27  Bruno Haible  <bruno@clisp.org>
23547
23548         select tests: Use existing modules.
23549         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23550         (configure.ac): Don't test for unistd.h.
23551         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23552         declared in <unistd.h>.
23553
23554 2010-12-27  Bruno Haible  <bruno@clisp.org>
23555
23556         mbrtowc: Work around a Solaris 7 bug.
23557         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23558         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23559         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23560         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23561         MBRTOWC_NULL_ARG1_BUG.
23562         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23563         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23564         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23565         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23566
23567 2010-12-27  Jim Meyering  <meyering@redhat.com>
23568
23569         read-file.c: tweak syntax
23570         * lib/read-file.c (fread_file): Remove space after "*" in function
23571         definitions.
23572
23573 2010-12-27  Bruno Haible  <bruno@clisp.org>
23574
23575         times test: Avoid gcc warnings on OSF/1.
23576         * tests/test-times.c (main): Cast printf arguments from clock_t to
23577         'long int'.
23578
23579 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23580
23581         utimens: work around glibc rounding bug on older Linux kernels
23582         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23583         on Linux with a glibc whose utimes might not work, then work
23584         around a longstanding glibc bug involving rounding rather than
23585         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23586         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23587
23588 2010-12-26  Bruno Haible  <bruno@clisp.org>
23589
23590         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23591         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23592         _GL_CXXALIAS_SYS.
23593         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23594
23595 2010-12-26  Bruno Haible  <bruno@clisp.org>
23596
23597         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23598         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23599         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23600         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23601         looking for the declaration.
23602         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23603         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23604         problem.
23605         * doc/posix-functions/inet_pton.texi: Likewise.
23606
23607 2010-12-26  Bruno Haible  <bruno@clisp.org>
23608
23609         arpa_inet: Use the common idioms with C++ support.
23610         * lib/arpa_inet.in.h: Include c++defs.h.
23611         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23612         support.
23613         * modules/arpa_inet (Depends-on): Add c++defs.
23614         (Makefile.am): Substitute the contents of c++defs.h.
23615         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23616         * modules/arpa_inet-c++-tests: New file.
23617         * tests/test-arpa_inet-c++.cc: New file.
23618
23619 2010-12-25  Bruno Haible  <bruno@clisp.org>
23620
23621         Fix more C++ link errors on Solaris 8.
23622         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23623         $(LIB_EACCESS).
23624         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23625         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23626         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23627         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23628         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23629
23630 2010-12-25  Bruno Haible  <bruno@clisp.org>
23631
23632         printf-posix: Fix link error when a non-GCC compiler is used.
23633         * lib/stdio.in.h (printf): When not using GCC, override printf
23634         correctly.
23635         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23636
23637 2010-12-25  Bruno Haible  <bruno@clisp.org>
23638
23639         strerror_r-posix: Update doc.
23640         * doc/posix-functions/strerror_r.texi: Update doc about the return
23641         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23642
23643 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23644
23645         utimens: simplify the logic of the previous change
23646         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23647         This should not affect whether the test succeeds or fails.
23648
23649         utimens: configure better on hosts with NFS clock skew
23650         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23651         uses the clock of the local host.  It might use the clock of the
23652         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23653         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23654
23655 2010-12-25  Bruno Haible  <bruno@clisp.org>
23656
23657         ptsname test: Avoid failure on Solaris.
23658         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23659         open a pseudo-terminal; don't use BSD-style ptys.
23660         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23661
23662 2010-12-25  Bruno Haible  <bruno@clisp.org>
23663
23664         ptsname: Avoid ERANGE failure on some systems.
23665         * lib/ptsname.c (buffer): Increase size.
23666
23667 2010-12-25  Bruno Haible  <bruno@clisp.org>
23668
23669         rename, renameat: Avoid test failures at NFS mounted locations.
23670         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23671         so that subsequent mkdir calls succeed.
23672
23673 2010-12-25  Bruno Haible  <bruno@clisp.org>
23674
23675         iswblank: Fix C++ link error on Solaris 8.
23676         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23677         _GL_FUNCDECL_SYS.
23678
23679 2010-12-25  Bruno Haible  <bruno@clisp.org>
23680
23681         unistd: Fix C++ link error on Solaris 8.
23682         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23683
23684 2010-12-25  Bruno Haible  <bruno@clisp.org>
23685
23686         readlink doc: Mention an old glibc bug.
23687         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23688
23689 2010-12-25  Bruno Haible  <bruno@clisp.org>
23690
23691         fcntl-h: Fix for use of C++ on glibc systems.
23692         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23693         also on glibc systems in C++ mode.
23694         Reported by Gary V. Vaughan <gary@gnu.org>.
23695
23696 2010-12-25  Bruno Haible  <bruno@clisp.org>
23697
23698         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23699         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23700
23701 2010-12-25  Bruno Haible  <bruno@clisp.org>
23702
23703         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23704         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23705         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23706         test whether truncl works according to ISO C 99 with IEC 60559.
23707         * m4/truncl-ieee.m4: New file.
23708         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23709         m4/signbit.m4.
23710         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23711
23712 2010-12-25  Bruno Haible  <bruno@clisp.org>
23713
23714         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23715         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23716         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23717         test whether ceill works according to ISO C 99 with IEC 60559.
23718         * m4/ceill-ieee.m4: New file.
23719         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23720         m4/signbit.m4.
23721         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23722
23723 2010-12-25  Bruno Haible  <bruno@clisp.org>
23724
23725         Ensure all prerequisites of <wchar.h> are included.
23726         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23727         before <wchar.h>.
23728         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23729         gl_MBRLEN_NUL_RETVAL): Likewise.
23730         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23731         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23732         AC_FUNC_MBRTOWC): Likewise.
23733         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23734         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23735         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23736         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23737         Likewise.
23738         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23739         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23740         (gl_WCHAR_H): Improve comments.
23741         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23742
23743 2010-12-25  Bruno Haible  <bruno@clisp.org>
23744
23745         strtok_r: Fix C syntax error in autoconf macro.
23746         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23747         characters in test program.
23748
23749 2010-12-24  Bruno Haible  <bruno@clisp.org>
23750
23751         ceil, trunc, round: Fix gcc warnings.
23752         * lib/ceil.c (MIN): Undefine before redefining.
23753         * lib/trunc.c (MIN): Likewise.
23754         * lib/round.c (MIN): Likewise.
23755         Include <math.h> first.
23756
23757 2010-12-24  Bruno Haible  <bruno@clisp.org>
23758
23759         select tests: Avoid failures on OSF/1 5.1.
23760         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23761         failure of closing the last socket; it may fail with ECONNRESET.
23762
23763 2010-12-24  Eric Blake  <eblake@redhat.com>
23764
23765         stdint: avoid HP-UX 10.20 preprocessor bug
23766         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23767         than #if.
23768         * tests/test-floor2.c (main): Likewise.
23769         Reported by Peter O'Gorman.
23770
23771         pipe: make obsoletion transition easier
23772         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23773         * modules/pipe (Files): Include revived file.
23774         (Include): Drop reference, to mirror getdate's behavior.
23775
23776 2010-12-24  Bruno Haible  <bruno@clisp.org>
23777
23778         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23779         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23780         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23781         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23782
23783 2010-12-24  Bruno Haible  <bruno@clisp.org>
23784
23785         gethostname: Ensure declaration on NonStop Kernel.
23786         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23787         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23788
23789 2010-12-24  Bruno Haible  <bruno@clisp.org>
23790
23791         sys_select: Ensure all necessary types on NonStop Kernel.
23792         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23793         include <sys/time.h>.
23794         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23795         NonStop Kernel.
23796         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23797
23798 2010-12-24  Bruno Haible  <bruno@clisp.org>
23799
23800         sys_select: Remove unneeded include.
23801         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23802         have <sys/select.h>.
23803
23804 2010-12-24  Bruno Haible  <bruno@clisp.org>
23805
23806         gethostname: Provide a fallback for HOST_NAME_MAX.
23807         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23808         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23809         instead.
23810         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23811
23812 2010-12-24  Bruno Haible  <bruno@clisp.org>
23813
23814         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23815         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23816         (SA_RESTART): Likewise.
23817         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23818
23819 2010-12-24  Bruno Haible  <bruno@clisp.org>
23820
23821         signal: Define NSIG.
23822         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23823         * tests/test-signal.c (nsig): New variable.
23824         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23825
23826 2010-12-24  Bruno Haible  <bruno@clisp.org>
23827
23828         rename, renameat: Avoid test failures on OSF/1 5.1.
23829         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23830         alternative error codes.
23831         * tests/test-renameat.c (main): Likewise.
23832
23833 2010-12-24  Bruno Haible  <bruno@clisp.org>
23834
23835         *printf: Detect large precisions bug on Solaris 10/SPARC.
23836         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23837         by Paul Eggert.
23838         * tests/test-snprintf-posix.h (test_function): Add this test code here
23839         too.
23840         * tests/test-sprintf-posix.h (test_function): Likewise.
23841         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23842         * tests/test-vasprintf-posix.c (test_function): Likewise.
23843         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23844         around by gnulib.
23845         * doc/posix-functions/printf.texi: Likewise.
23846         * doc/posix-functions/snprintf.texi: Likewise.
23847         * doc/posix-functions/sprintf.texi: Likewise.
23848         * doc/posix-functions/vfprintf.texi: Likewise.
23849         * doc/posix-functions/vprintf.texi: Likewise.
23850         * doc/posix-functions/vsnprintf.texi: Likewise.
23851         * doc/posix-functions/vsprintf.texi: Likewise.
23852         * doc/posix-functions/dprintf.texi: Undo last commit.
23853         * doc/posix-functions/vdprintf.texi: Likewise.
23854
23855 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23856
23857         tests: port test-fdutimensat.c to Solaris 8
23858         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23859         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23860         On Solaris 8, it fails with errno == ENOSYS, because there is no
23861         futimens (so it can't use the fd), and there is no lutimens (so it
23862         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23863
23864         vsnprintf: make more consistent with snprintf; doc fixes
23865
23866         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23867         the byte count return problem was promoted from the snprintf-posix
23868         to the snprintf module.
23869         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23870         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23871         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23872         * tests/test-snprintf.c (main): Check the byte count returned.
23873         * tests/test-vsnprintf.c (main): Likewise.
23874
23875 2010-12-23  Eric Blake  <eblake@redhat.com>
23876
23877         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23878         * modules/sigpipe (License): Relax license.
23879
23880 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23881
23882         doc: document Solaris printf bug with large float precisions
23883         * doc/posix-functions/dprintf.texi (dprintf):
23884         * doc/posix-functions/fprintf.texi (fprintf):
23885         * doc/posix-functions/printf.texi (printf):
23886         * doc/posix-functions/snprintf.texi (snprintf):
23887         * doc/posix-functions/sprintf.texi (sprintf):
23888         * doc/posix-functions/vdprintf.texi (vdprintf):
23889         * doc/posix-functions/vfprintf.texi (vfprintf):
23890         * doc/posix-functions/vprintf.texi (vprintf):
23891         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23892         * doc/posix-functions/vsprintf.texi (vsprintf):
23893         Mention that these functions mishandle large floating point
23894         precisions on Solaris 10.  The same bug is also present in Solaris
23895         8, and I assume earlier.  This causes "cd gnulib-tests; make
23896         check" to fail on Solaris 8 (and I assume, later) when building
23897         the latest coreutils, in test-vasprintf-posix's call to
23898         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23899         the wide flavors (e.g., wprintf) so this patch just updates the
23900         documentation for the narrow ones.
23901
23902         test-posixtm.c: add two tests
23903         * tests/test-posixtm.c: Add two tests, to highlight the
23904         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23905         around this bug; this is merely to document it.
23906
23907 2010-12-22  Bruno Haible  <bruno@clisp.org>
23908
23909         getlogin_r: Work around portability problem on OSF/1.
23910         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23911         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23912         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23913         test for a truncated result.
23914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23915         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23916         * modules/getlogin_r (Depends-on): Add memchr.
23917         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23918
23919 2010-12-22  Bruno Haible  <bruno@clisp.org>
23920
23921         ptsname: Avoid test failure on OSF/1 5.1.
23922         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23923         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23924         (same_slave): New function.
23925         (main): Use it to compare ptsname's result with the expected file name.
23926
23927 2010-12-22  Bruno Haible  <bruno@clisp.org>
23928
23929         Port extended stdio modules to HP NonStop Kernel.
23930         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23931         macros.
23932         * lib/fbufmode.c: Update comments.
23933         * lib/fflush.c: Likewise.
23934         * lib/fpurge.c: Likewise.
23935         * lib/freadable.c: Likewise.
23936         * lib/freadahead.c: Likewise.
23937         * lib/freading.c: Likewise.
23938         * lib/freadptr.c: Likewise.
23939         * lib/freadseek.c: Likewise.
23940         * lib/fseeko.c: Likewise.
23941         * lib/fseterr.c: Likewise.
23942         * lib/fwritable.c: Likewise.
23943         * lib/fwriting.c: Likewise.
23944         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23945
23946 2010-12-22  Bruno Haible  <bruno@clisp.org>
23947
23948         ttyname_r: Work around bug on OSF/1 5.1.
23949         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23950         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23951         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23952         present.
23953         * lib/ttyname_r.c (ttyname_r): Update comments.
23954
23955 2010-12-22  Bruno Haible  <bruno@clisp.org>
23956
23957         round: Implement result sign according to IEEE 754.
23958         * lib/round.c (MIN, MINUS_ZERO): New macros.
23959         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23960         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23961         * tests/test-round-ieee.c (main): Likewise.
23962         * tests/test-roundl-ieee.c (main): Likewise.
23963
23964         trunc: Implement result sign according to IEEE 754.
23965         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23966         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23967         * tests/test-trunc2.c: Include minus-zero.h.
23968         (MINUS_ZERO): New macro.
23969         (trunc_reference): Keep in sync with lib/trunc.c.
23970         * tests/test-truncf2.c: Include minus-zero.h.
23971         (MINUS_ZERO): New macro.
23972         (truncf_reference): Keep in sync with lib/trunc.c.
23973         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23974         * tests/test-trunc-ieee.c (main): Likewise.
23975         * tests/test-truncl-ieee.c (main): Likewise.
23976
23977         ceil: Implement result sign according to IEEE 754.
23978         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23979         (FUNC): Return -0.0 for -1 < x < 0.
23980         * tests/test-ceil2.c: Include minus-zero.h.
23981         (MINUS_ZERO): New macro.
23982         (ceil_reference): Keep in sync with lib/ceil.c.
23983         * tests/test-ceilf2.c: Include minus-zero.h.
23984         (MINUS_ZERO): New macro.
23985         (ceilf_reference): Keep in sync with lib/ceil.c.
23986         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23987         * tests/test-ceil-ieee.c (main): Likewise.
23988         * tests/test-ceill-ieee.c (main): Likewise.
23989
23990         floor: Implement result sign according to IEEE 754.
23991         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23992         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23993         * tests/test-floorf2.c (floorf_reference): Likewise.
23994         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23995         * tests/test-floor-ieee.c (main): Likewise.
23996         * tests/test-floorl-ieee.c (main): Likewise.
23997
23998 2010-12-22  Bruno Haible  <bruno@clisp.org>
23999
24000         getaddrinfo: Update doc.
24001         * doc/posix-functions/gai_strerror.texi: Return type is also different
24002         on AIX and HP-UX.
24003
24004 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24005
24006         getaddrinfo, inet_ntop: Update doc for Solaris.
24007         * doc/posix-functions/gai_strerror.texi: Return type is also an
24008         issue on Solaris 9 and earlier.
24009         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24010         on Solaris 10 and earlier.
24011
24012 2010-12-21  Bruno Haible  <bruno@clisp.org>
24013
24014         New module 'roundl-ieee'.
24015         * modules/roundl-ieee: New file.
24016         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24017         test whether roundl works according to ISO C 99 with IEC 60559.
24018         * m4/roundl-ieee.m4: New file.
24019         * modules/roundl-ieee-tests: New file.
24020         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24021         * tests/test-roundl.c (main): Remove signbit tests.
24022         * modules/roundl-tests (Depends-on): Remove signbit.
24023         * doc/posix-functions/roundl.texi: Mention the new module.
24024
24025 2010-12-21  Bruno Haible  <bruno@clisp.org>
24026
24027         New module 'truncl-ieee'.
24028         * modules/truncl-ieee: New file.
24029         * modules/truncl-ieee-tests: New file.
24030         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24031         * tests/test-truncl.c (main): Remove signbit tests.
24032         * modules/truncl-tests (Depends-on): Remove signbit.
24033         * doc/posix-functions/truncl.texi: Mention the new module.
24034
24035 2010-12-21  Bruno Haible  <bruno@clisp.org>
24036
24037         New module 'ceill-ieee'.
24038         * modules/ceill-ieee: New file.
24039         * modules/ceill-ieee-tests: New file.
24040         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24041         * tests/test-ceill.c (main): Remove signbit tests.
24042         * modules/ceill-tests (Depends-on): Remove signbit.
24043         * doc/posix-functions/ceill.texi: Mention the new module.
24044
24045 2010-12-21  Bruno Haible  <bruno@clisp.org>
24046
24047         New module 'floorl-ieee'.
24048         * modules/floorl-ieee: New file.
24049         * modules/floorl-ieee-tests: New file.
24050         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24051         * tests/test-floorl.c (main): Remove signbit tests.
24052         * modules/floorl-tests (Depends-on): Remove signbit.
24053         * doc/posix-functions/floorl.texi: Mention the new module.
24054
24055 2010-12-21  Bruno Haible  <bruno@clisp.org>
24056
24057         New module 'round-ieee'.
24058         * modules/round-ieee: New file.
24059         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24060         whether round works according to ISO C 99 with IEC 60559.
24061         * m4/round-ieee.m4: New file.
24062         * modules/round-ieee-tests: New file.
24063         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24064         * tests/test-round1.c (main): Remove signbit tests.
24065         * modules/round-tests (Depends-on): Remove 'signbit'.
24066         * doc/posix-functions/round.texi: Mention the new module.
24067
24068 2010-12-21  Bruno Haible  <bruno@clisp.org>
24069
24070         New module 'trunc-ieee'.
24071         * modules/trunc-ieee: New file.
24072         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24073         whether trunc works according to ISO C 99 with IEC 60559.
24074         * m4/trunc-ieee.m4: New file.
24075         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24077         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24078         * modules/trunc-ieee-tests: New file.
24079         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24080         * tests/test-trunc1.c (main): Remove signbit tests.
24081         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24082         * doc/posix-functions/trunc.texi: Mention the new module.
24083
24084 2010-12-21  Bruno Haible  <bruno@clisp.org>
24085
24086         New module 'ceil-ieee'.
24087         * modules/ceil-ieee: New file.
24088         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24089         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24090         ISO C 99 with IEC 60559.
24091         * m4/ceil-ieee.m4: New file.
24092         * modules/ceil (Files): Add lib/ceil.c.
24093         (Depends-on): Add 'float'.
24094         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24095         * lib/math.in.h (ceil): New declaration.
24096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24097         REPLACE_CEIL.
24098         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24099         * modules/ceil-ieee-tests: New file.
24100         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24101         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24102         * doc/posix-functions/ceil.texi: Mention the new module.
24103
24104 2010-12-21  Bruno Haible  <bruno@clisp.org>
24105
24106         New module 'floor-ieee'.
24107         * modules/floor-ieee: New file.
24108         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24109         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24110         ISO C 99 with IEC 60559.
24111         * m4/floor-ieee.m4: New file.
24112         * modules/floor (Files): Add lib/floor.c.
24113         (Depends-on): Add 'float'.
24114         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24115         * lib/math.in.h (floor): New declaration.
24116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24117         REPLACE_FLOOR.
24118         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24119         * modules/floor-ieee-tests: New file.
24120         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24121         * tests/test-math-c++.cc: Check the signature of 'floor'.
24122         * doc/posix-functions/floor.texi: Mention the new module.
24123
24124 2010-12-21  Bruno Haible  <bruno@clisp.org>
24125
24126         New module 'roundf-ieee'.
24127         * modules/roundf-ieee: New file.
24128         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24129         test whether roundf works according to ISO C 99 with IEC 60559.
24130         * m4/roundf-ieee.m4: New file.
24131         * modules/roundf-ieee-tests: New file.
24132         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24133         * tests/test-roundf1.c (main): Remove signbit tests.
24134         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24135         * doc/posix-functions/roundf.texi: Mention the new module.
24136
24137 2010-12-21  Bruno Haible  <bruno@clisp.org>
24138
24139         New module 'truncf-ieee'.
24140         * modules/truncf-ieee: New file.
24141         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24142         test whether truncf works according to ISO C 99 with IEC 60559.
24143         * m4/truncf-ieee.m4: New file.
24144         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24146         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24147         * modules/truncf-ieee-tests: New file.
24148         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24149         * tests/test-truncf1.c (main): Remove signbit tests.
24150         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24151         * doc/posix-functions/truncf.texi: Mention the new module.
24152
24153 2010-12-21  Bruno Haible  <bruno@clisp.org>
24154
24155         New module 'ceilf-ieee'.
24156         * modules/ceilf-ieee: New file.
24157         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24158         test whether ceilf works according to ISO C 99 with IEC 60559.
24159         * m4/ceilf-ieee.m4: New file.
24160         * modules/ceilf-ieee-tests: New file.
24161         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24162         * tests/test-ceilf1.c (main): Remove signbit tests.
24163         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24164         * doc/posix-functions/ceilf.texi: Mention the new module.
24165
24166 2010-12-21  Bruno Haible  <bruno@clisp.org>
24167
24168         New module 'floorf-ieee'.
24169         * modules/floorf-ieee: New file.
24170         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24171         test whether floorf works according to ISO C 99 with IEC 60559.
24172         * m4/floorf-ieee.m4: New file.
24173         * modules/floorf-ieee-tests: New file.
24174         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24175         * tests/test-floorf1.c (main): Remove signbit tests.
24176         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24177         * doc/posix-functions/floorf.texi: Mention the new module.
24178
24179 2010-12-21  Bruno Haible  <bruno@clisp.org>
24180
24181         Support for minus zero in autoconf macros.
24182         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24183         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24184         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24185         * tests/minus-zero.h: Update comments.
24186
24187 2010-12-21  Bruno Haible  <bruno@clisp.org>
24188
24189         Tests for module 'ceil'.
24190         * modules/ceil-tests: New file.
24191         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24192         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24193
24194 2010-12-21  Bruno Haible  <bruno@clisp.org>
24195
24196         Tests for module 'floor'.
24197         * modules/floor-tests: New file.
24198         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24199         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24200
24201 2010-12-21  Bruno Haible  <bruno@clisp.org>
24202
24203         math: Fix indentation.
24204         * lib/math.in.h (floorf): Fix indentation.
24205
24206 2010-12-21  Bruno Haible  <bruno@clisp.org>
24207
24208         Fix cross-compilation guesses on Solaris.
24209         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24210         not match "solaris2.10".
24211         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24212         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24213         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24214
24215 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24216
24217         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24218         This fixes a problem observed with the latest coreutils snapshot
24219         that caused a test to fail on Solaris 8.  src/csplit.c's call
24220         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24221         earlier, instead of returning the number of bytes that would have
24222         been generated; this causes csplit to incorrectly report memory
24223         exhaustion.
24224         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24225         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24226         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24227         comments to match.
24228         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24229         Fix typo in matching older versions of Solaris: "solaris2.10"
24230         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24231         only for guessing while cross-compiling.
24232         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24233
24234 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24235
24236         ftoastr: fix comment again
24237         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24238         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24239         Also, simplify example a bit by using flags = 0.
24240
24241 2010-12-20  Bruno Haible  <bruno@clisp.org>
24242
24243         round*, trunc*: Update documentation regarding glibc.
24244         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24245         * doc/posix-functions/round.texi: Likewise.
24246         * doc/posix-functions/roundl.texi: Likewise.
24247         * doc/posix-functions/truncf.texi: Likewise.
24248         * doc/posix-functions/trunc.texi: Likewise.
24249         * doc/posix-functions/truncl.texi: Likewise.
24250
24251 2010-12-20  Bruno Haible  <bruno@clisp.org>
24252
24253         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24254         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
24255         * doc/posix-functions/round.texi: Likewise.
24256         * doc/posix-functions/roundl.texi: Likewise.
24257
24258 2010-12-20  Bruno Haible  <bruno@clisp.org>
24259
24260         ttyname_r: Add missing declaration on HP-UX 11.
24261         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
24262         HAVE_TTYNAME_R.
24263         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
24264         declared. Set HAVE_TTYNAME_R always.
24265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24266         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24267         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24268         HAVE_TTYNAME_R.
24269         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24270
24271 2010-12-20  Bruno Haible  <bruno@clisp.org>
24272
24273         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24274         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24275         * doc/posix-functions/getlogin_r.texi: Likewise.
24276         * tests/test-getlogin.c: Include <errno.h>.
24277         (main): Avoid test failure on HP-UX 11.11.
24278         * tests/test-getlogin_r.c (main): Likewise.
24279
24280 2010-12-20  Bruno Haible  <bruno@clisp.org>
24281
24282         getlogin_r: Add missing declaration on HP-UX 11.
24283         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24284         declared also when it exists as a function.
24285         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24286
24287 2010-12-20  Bruno Haible  <bruno@clisp.org>
24288
24289         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24290         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24291         through wcrtomb.
24292
24293 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24294
24295         ftoastr: fix comment
24296         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24297         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24298
24299 2010-12-19  Bruno Haible  <bruno@clisp.org>
24300
24301         isnan: Ensure it is a macro.
24302         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24303         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24304         Solaris.
24305
24306 2010-12-19  Bruno Haible  <bruno@clisp.org>
24307
24308         ldexpl test: Fix link error on OSF/1 5.1.
24309         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24310
24311 2010-12-19  Bruno Haible  <bruno@clisp.org>
24312
24313         wctype: Make it work in C++ mode on OSF/1 5.1.
24314         * lib/wctype.in.h (iswblank): Declare but not define here.
24315         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24316         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24317         * modules/wctype (Files): Add lib/iswblank.c.
24318
24319 2010-12-19  Bruno Haible  <bruno@clisp.org>
24320
24321         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24322         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24323         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24324
24325 2010-12-19  Bruno Haible  <bruno@clisp.org>
24326
24327         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24328         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24329         _POSIX_PII_SOCKET.
24330         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
24331         * doc/posix-functions/recvfrom.texi: Likewise.
24332         * doc/posix-functions/send.texi: Likewise.
24333         * doc/posix-functions/sendto.texi: Likewise.
24334
24335 2010-12-19  Bruno Haible  <bruno@clisp.org>
24336
24337         tcgetsid: Add missing declaration on OSF/1 5.1.
24338         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
24339         HAVE_TCGETSID.
24340         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
24341         Don't set HAVE_TCGETSID.
24342         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
24343         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
24344         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
24345         HAVE_TCGETSID.
24346         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
24347
24348 2010-12-19  Bruno Haible  <bruno@clisp.org>
24349
24350         stdio: Fix problem with popen() declaration on OSF/1 5.1.
24351         * lib/stdio.in.h: During the include_next statement, let recursive
24352         includes of this file include only the system header file.
24353
24354 2010-12-19  Bruno Haible  <bruno@clisp.org>
24355
24356         iconv_open: Fix regression from 2010-12-04.
24357         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24358         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
24359
24360 2010-12-19  Bruno Haible  <bruno@clisp.org>
24361
24362         stdbool test: Avoid a gcc warning.
24363         * tests/test-stdbool.c (main): Fail if e1 is false.
24364         Reported by Jim Meyering.
24365
24366 2010-12-19  Jim Meyering  <meyering@redhat.com>
24367
24368         setenv: restore to working order
24369         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
24370         mistakenly removed.
24371         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
24372         HAVE_SETENV.
24373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
24374         HAVE_SETENV.
24375
24376 2010-12-19  Bruno Haible  <bruno@clisp.org>
24377
24378         Document some different function declarations on OSF/1 5.1.
24379         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
24380         * doc/posix-functions/inet_ntop.texi: Likewise.
24381         * doc/posix-functions/gethostname.texi: Likewise.
24382         * lib/unistd.in.h (gethostname): Update comment.
24383
24384 2010-12-19  Bruno Haible  <bruno@clisp.org>
24385
24386         doc: Mention vasprintf-posix module.
24387         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24388         the 'vasprintf-posix' module.
24389         * doc/glibc-functions/vasprintf.texi: Likewise.
24390
24391 2010-12-19  Bruno Haible  <bruno@clisp.org>
24392
24393         unsetenv: Add missing declaration on OSF/1 5.1.
24394         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24395         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24396         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24398         not HAVE_UNSETENV.
24399         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24400         HAVE_UNSETENV.
24401         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24402
24403 2010-12-19  Bruno Haible  <bruno@clisp.org>
24404
24405         setenv: Add missing declaration on OSF/1 5.1.
24406         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
24407         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
24408         declared. Don't set HAVE_SETENV.
24409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
24410         not HAVE_SETENV.
24411         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
24412         HAVE_SETENV.
24413         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
24414
24415 2010-12-19  Bruno Haible  <bruno@clisp.org>
24416
24417         nl_langinfo tests: Avoid gcc warning.
24418         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
24419
24420 2010-12-19  Bruno Haible  <bruno@clisp.org>
24421
24422         mknod: Avoid error in C++ mode on OSF/1 with GCC.
24423         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
24424         _GL_CXXALIAS_SYS.
24425
24426 2010-12-19  Bruno Haible  <bruno@clisp.org>
24427
24428         stdbool: Relax test.
24429         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24430         address to 'bool' work in static initializer, for compilers other than
24431         GCC.
24432
24433 2010-12-19  Bruno Haible  <bruno@clisp.org>
24434
24435         ftello: Add missing declaration on OSF/1 5.1.
24436         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
24437         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
24438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
24439         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
24440         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
24441
24442 2010-12-19  Bruno Haible  <bruno@clisp.org>
24443
24444         fseeko: Add missing declaration on OSF/1 5.1.
24445         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
24446         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
24447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
24448         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
24449         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
24450
24451 2010-12-19  Bruno Haible  <bruno@clisp.org>
24452
24453         fchdir: Add missing declaration on OSF/1 5.1.
24454         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
24455         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
24456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
24457         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
24458         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
24459
24460 2010-12-19  Bruno Haible  <bruno@clisp.org>
24461
24462         relocatable-prog-wrapper: Separate from relocatable-prog.
24463         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
24464         uninstall-relocwrapper rule here.
24465         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
24466         Reported by Ian Beckwith <ianb@erislabs.net>.
24467
24468 2010-12-19  Bruno Haible  <bruno@clisp.org>
24469
24470         unistr/u8-mbsnlen: Add missing dependency.
24471         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
24472         Reported by Ian Beckwith <ianb@erislabs.net>.
24473
24474 2010-12-19  Bruno Haible  <bruno@clisp.org>
24475
24476         iconv: Make it possible again to use this module without 'iconv-h'.
24477         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
24478         if it is not defined.
24479         Reported by Ian Beckwith <ianb@erislabs.net>.
24480
24481 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24482
24483         acl: port to Solaris 8 when copying from tmpfs to ufs
24484         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24485         error number.  Problem observed on Solaris 8 with latest
24486         coreutils, with "mv A B", where A is on a tmpfs file system and B
24487         is on a ufs file system.  This caused coreutils' mv/part-symlink
24488         test to fail.
24489
24490         tests: set fail=0 at start
24491         * tests/init.sh (setup_): Move fail=0 initialization here ...
24492         (mktempd_): ... from here, so that tests can rely on fail being
24493         set to 0 initially.  This fixes a problem in coreutils; see:
24494         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24495
24496 2010-12-18  Bruno Haible  <bruno@clisp.org>
24497
24498         memmem-simple: Stylistic changes.
24499         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24500         Fix preprocessor directive indentation.
24501
24502 2010-12-15  Pádraig Brady <P@draigBrady.com>
24503
24504         memmem, memmem-simple: reorganize and expand empty needle check
24505         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24506         functional checks to memmem-simple so that one has a fully functional
24507         memmem by using just this module.
24508         Restrict the performance only check to the memmem module.
24509         Also expand the empty needle check to ensure the correct
24510         pointer is returned, not just a non NULL pointer.
24511         * doc/glibc-functions/memmem.texi: Rearrange the portability
24512         documentation to correlate with the rearranged checks.
24513         Clarify exactly how the memmem and memmem-simple modules
24514         relate to each other.
24515
24516 2010-12-15  Pádraig Brady <P@draigBrady.com>
24517             Bruno Haible  <bruno@clisp.org>
24518
24519         Improve cross-compilation guesses for uClibc.
24520         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24521         that uClibc does not have the glibc bug.
24522         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24523         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24524
24525 2010-12-14  Eric Blake  <eblake@redhat.com>
24526
24527         configmake: provide fallbacks for oldest supported autotools
24528         * m4/configmake.m4: New file.
24529         * modules/configmake (Files): Ship it.
24530         (configure.ac): Use it to guarantee fallbacks.
24531
24532 2010-12-13  Pádraig Brady <P@draigBrady.com>
24533
24534         read-file: Improve handling of large files
24535         * lib/read-file.c (fread_file): Minimize realloc()s
24536         for regular files, and better manage sizes around SIZE_MAX.
24537
24538 2010-12-13  Eric Blake  <eblake@redhat.com>
24539
24540         cloexec, fcntl: relax license
24541         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24542         consent from all contributors.
24543         * modules/fcntl (License): Likewise.
24544
24545 2010-12-10  Bruno Haible  <bruno@clisp.org>
24546
24547         Tests for module 'pipe-posix'.
24548         * modules/pipe-posix-tests: New file.
24549         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24550
24551 2010-12-10  Bruno Haible  <bruno@clisp.org>
24552
24553         pipe-posix: Make it work in C++ mode.
24554         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24555         (pipe): Use common idiom, not a macro definition.
24556         * lib/pipe.c: New file.
24557         * m4/pipe.m4: New file.
24558         * modules/pipe-posix (Description): Enhance.
24559         (Files): Add lib/pipe.c, m4/pipe.m4.
24560         (configure.ac): Invoke gl_FUNC_PIPE.
24561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24562         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24563         * tests/test-unistd-c++.cc: Check the signature of pipe.
24564
24565 2010-12-10  Bruno Haible  <bruno@clisp.org>
24566
24567         Rename module 'pipe' to 'spawn-pipe'.
24568         * modules/spawn-pipe: New file, renamed from modules/pipe.
24569         (Files, configure.ac, Makefile.am): Update.
24570         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24571         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24572         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24573         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24574         "spawn-pipe.h" instead of "pipe.h".
24575         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24576         to gl_SPAWN_PIPE.
24577         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24578         (Files, Makefile.am): Update.
24579         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24580         Update.
24581         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24582         Include "spawn-pipe.h" instead of "pipe.h".
24583         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24584         * lib/javacomp.c: Likewise.
24585         * lib/javaversion.c: Likewise.
24586         * lib/pipe-filter-gi.c: Likewise.
24587         * lib/pipe-filter-ii.c: Likewise.
24588         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24589         * modules/javacomp (Depends-on): Likewise.
24590         * modules/javaversion (Depends-on): Likewise.
24591         * modules/pipe-filter-gi (Depends-on): Likewise.
24592         * modules/pipe-filter-ii (Depends-on): Likewise.
24593         * MODULES.html.sh (Executing programs): Update.
24594         * NEWS: Mention the change.
24595
24596 2010-12-10  Eric Blake  <eblake@redhat.com>
24597
24598         pipe-posix: new module
24599         * modules/pipe-posix: New file.
24600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24601         (gl_UNISTD_H): Check for declaration.
24602         * modules/unistd (Makefile.am): Substitute it.
24603         * lib/unistd.in.h (pipe): Provide it for mingw.
24604         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24605         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24606
24607 2010-12-07  Bruno Haible  <bruno@clisp.org>
24608
24609         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24610         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24611         u8_strcmp_gnu.
24612         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24613
24614 2010-12-06  Bruno Haible  <bruno@clisp.org>
24615
24616         Update internal documentation.
24617         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24618
24619 2010-12-04  Bruno Haible  <bruno@clisp.org>
24620
24621         Put more information about failed tests into the test return codes.
24622         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24623         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24624         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24625         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24626         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24627         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24628         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24629         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24630         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24632         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24633         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24634         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24635         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24636         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24637         returns a bit mask.
24638         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24639         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24640         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24641         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24642         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24643         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24644         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24645         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24646         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24647         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24648         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24649         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24650         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24651         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24652         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24653         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24654         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24655         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24656         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24657         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24658         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24659         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24660         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24661         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24662         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24663         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24664         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24665         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24666         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24667         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24668         gl_PRINTF_PRECISION): Likewise.
24669         * m4/regex.m4 (gl_REGEX): Likewise.
24670         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24671         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24672         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24673         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24674         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24675         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24676         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24677         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24678         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24679         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24680         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24681         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24682         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24683         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24684         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24685         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24686         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24687         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24689         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24690         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24691         enumerated value.
24692         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24693
24694 2010-12-04  Bruno Haible  <bruno@clisp.org>
24695
24696         Update for Solaris 11 2010-11.
24697         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24698         Express, released in November 2010.
24699
24700 2010-12-04  Bruno Haible  <bruno@clisp.org>
24701
24702         nproc: Relax license.
24703         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24704         and Paul Eggert.
24705         Requested by Ludovic Courtès <ludo@gnu.org>.
24706
24707 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24708
24709         utimecmp: fine-grained src to nearby coarse-grained dest
24710
24711         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24712         and the source is on a file system with higher-resolution time
24713         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24714         not work, and the time stamps are close together, the algorithm to
24715         determine the exact resolution from the read-back mtime was buggy:
24716         it had a "!=" where it should have had an "==".  This bug has been
24717         in the code ever since it was introduced to gnulib.
24718         Problem reported by Dan Jacobson in
24719         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24720
24721 2010-11-30  Bruno Haible  <bruno@clisp.org>
24722
24723         strerror_r-posix: Fix autoconf test.
24724         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24725
24726 2010-11-28  Bruno Haible  <bruno@clisp.org>
24727             Paul Eggert  <eggert@cs.ucla.edu>
24728
24729         Tests for module 'getdomainname'.
24730         * modules/getdomainname-tests: New file.
24731         * tests/test-getdomainname.c: New file, based on
24732         tests/test-gethostname.c.
24733
24734 2010-11-28  Bruno Haible  <bruno@clisp.org>
24735             Paul Eggert  <eggert@cs.ucla.edu>
24736
24737         getdomainname: Use the system function when possible.
24738         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24739         (getdomainname): Replace if needed. Provide the declaration if it is
24740         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24741         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24742         (getdomainname): When the system has getdomainname, call the system
24743         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24744         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24745         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24746         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24747         the function if its second argument is of type 'int' or if it is found
24748         in libnsl.
24749         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24750         <sys/systeminfo.h> and sysinfo().
24751         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24753         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24754         HAVE_GETDOMAINNAME.
24755         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24756         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24757         * doc/glibc-functions/getdomainname.texi: Document the problems with
24758         the getdomainname declaration.
24759
24760 2010-11-28  Bruno Haible  <bruno@clisp.org>
24761
24762         sys_socket: Ensure ss_family field on AIX.
24763         * lib/sys_socket.in.h (ss_family): New macro definition.
24764         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24765         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24766         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24767         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24768         * modules/sys_socket (Makefile.am): Substitute
24769         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24770         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24771
24772 2010-11-27  Bruno Haible  <bruno@clisp.org>
24773
24774         readline: Improve configure output.
24775         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24776         "checking for readline..." result understandable.
24777
24778 2010-11-27  Bruno Haible  <bruno@clisp.org>
24779
24780         *printf-posix: Detect a bug on Solaris 10/x86.
24781         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24782         for floating-point output.
24783         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24784         directive.
24785         * tests/test-snprintf-posix.h (test_function): Likewise.
24786         * tests/test-sprintf-posix.h (test_function): Likewise.
24787         * tests/test-vasprintf-posix.c (test_function): Likewise.
24788         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24789         * doc/posix-functions/printf.texi: Likewise.
24790         * doc/posix-functions/snprintf.texi: Likewise.
24791         * doc/posix-functions/sprintf.texi: Likewise.
24792         * doc/posix-functions/vfprintf.texi: Likewise.
24793         * doc/posix-functions/vprintf.texi: Likewise.
24794         * doc/posix-functions/vsnprintf.texi: Likewise.
24795         * doc/posix-functions/vsprintf.texi: Likewise.
24796         * doc/glibc-functions/obstack_printf.texi: Likewise.
24797         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24798
24799 2010-11-27  Bruno Haible  <bruno@clisp.org>
24800
24801         Fix link error when module libunistring-optional is in use.
24802         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24803         * modules/striconveha-tests (Makefile.am): Likewise.
24804
24805 2010-11-27  Bruno Haible  <bruno@clisp.org>
24806
24807         regex: Mention link dependencies.
24808         * modules/regex (Link): New section.
24809         * modules/rpmatch (Link): Likewise.
24810         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24811
24812 2010-11-27  Bruno Haible  <bruno@clisp.org>
24813
24814         ftoastr: Fix compilation error on Solaris.
24815         * lib/ftoastr.c: Include <config.h>.
24816
24817 2010-11-27  Bruno Haible  <bruno@clisp.org>
24818
24819         getloadavg: Update documentation.
24820         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24821
24822 2010-11-27  Bruno Haible  <bruno@clisp.org>
24823
24824         sys_socket: Fix test whether the functions are declared.
24825         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24826         not <sys/select.h>.
24827
24828 2010-11-27  Bruno Haible  <bruno@clisp.org>
24829
24830         getpass: Make sure to get system declaration on some platforms.
24831         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24832         gl_USE_SYSTEM_EXTENSIONS.
24833         * modules/getpass (Depends-on): Add extensions.
24834
24835 2010-11-26  Bruno Haible  <bruno@clisp.org>
24836
24837         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24838         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24839         'iconv' module is present.
24840         (ICONV_CONST): New macro.
24841         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24842         ICONV_CONST.
24843         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24844         set ICONV_CONST.
24845         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24846         here.
24847         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24848         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24849         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24850         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24851         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24852         present.
24853
24854 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24855
24856         ftoastr: comment fix
24857         * lib/ftoastr.c: "little" -> "little or no" in comment
24858
24859 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24860
24861         stdint: port to GCC 4.3 + OSX + Octave
24862         On this platform, stdint.h is buggy and defines int64_t to long
24863         long int.  The replacement defined it to long int, causing
24864         problems with C++ style name mangling.  Instead, trust the system
24865         definition if INT64_MAX is defined, and likewise for the unsigned
24866         variant.   Problem reported by Jarno Rajahalme in
24867         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24868         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24869         and don't mess with int64_t and INT64_MAX in this case.
24870         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24871
24872 2010-11-24  Bruno Haible  <bruno@clisp.org>
24873
24874         doc: Corrections regarding MacOS X 10.4 and 10.5.
24875         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24876         MacOS X.
24877         Reported by Simon Josefsson.
24878
24879 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24880
24881         Uninstall ".bin" files installed by relocwrapper.
24882         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24883         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24884         unless it is already there.
24885
24886 2010-11-21  Bruno Haible  <bruno@clisp.org>
24887
24888         Update for NetBSD 5.0.
24889         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24890         NetBSD; the test fails on NetBSD 5.0.
24891         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24892         about NetBSD.
24893
24894 2010-11-21  Bruno Haible  <bruno@clisp.org>
24895
24896         Update for HP-UX 11.23 and HP-UX 11.31.
24897         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24898         HP-UX.
24899
24900 2010-11-21  Bruno Haible  <bruno@clisp.org>
24901
24902         Update for MacOS X 10.5.
24903         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24904         MacOS X; the test fails on MacOS X 10.5.8.
24905         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24906         about MacOS X.
24907
24908 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24909
24910         bootstrap: add bootstrap_sync option.
24911         See discussion at
24912         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24913         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24914         * build-aux/bootstrap: Accept --bootstrap-sync to update
24915         bootstrap if it is not identical to the local gnulib's
24916         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24917         enable this by default.  Accept --no-bootstrap-sync to disable
24918         it.
24919
24920 2010-11-20  Bruno Haible  <bruno@clisp.org>
24921
24922         Ensure that <features.h> is included before __GLIBC__ is tested.
24923         * lib/printf-parse.h: Include <features.h>.
24924         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24925         Reported by Mike Frysinger <vapier@gentoo.org>.
24926
24927         Ensure that <features.h> is included before __GLIBC__ is tested.
24928         * lib/wchar.in.h: Include <features.h>.
24929         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24930         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24931         Reported by Mike Frysinger <vapier@gentoo.org>.
24932
24933         Ensure that <features.h> is included before __GLIBC__ is tested.
24934         * lib/arpa_inet.in.h: Include <features.h>.
24935         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24936         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24937         Reported by Mike Frysinger <vapier@gentoo.org>.
24938
24939         Ensure that <features.h> is included before __GLIBC__ is tested.
24940         * build-aux/link-warning.h: Include <features.h>.
24941         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24942         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24943         Reported by Mike Frysinger <vapier@gentoo.org>.
24944
24945         Ensure that <features.h> is included before __GLIBC__ is tested.
24946         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24947         Reported by Mike Frysinger <vapier@gentoo.org>.
24948
24949 2010-11-20  Bruno Haible  <bruno@clisp.org>
24950
24951         memmem: Fix autoconf test.
24952         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24953
24954 2010-11-20  Bruno Haible  <bruno@clisp.org>
24955
24956         Port to uClibc.
24957         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24958         * lib/fcntl.in.h: Likewise.
24959         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24960         * lib/mbrtowc.c (mbrtowc): Likewise.
24961         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24962         * lib/strerror_r.c: Likewise.
24963         * lib/unistr/u8-strnlen.c: Likewise.
24964         * lib/vasnprintf.c (decimal_point_char): Likewise.
24965         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24966         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24967         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24968         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24969         * tests/test-sigaction.c (handler, main): Likewise.
24970         * lib/freading.h: Treat uClibc like a non-glibc platform.
24971         * lib/freading.c: Likewise.
24972         * lib/gettext.h: Likewise.
24973         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24974         Likewise.
24975         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24976         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24977         * lib/propername.c (proper_name_utf8): Likewise.
24978         * lib/spawn.in.h: Likewise.
24979         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24980         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24981         mem_cd_iconveh_internal): Likewise.
24982         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24983         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24984         strstr, strcasestr): Likewise.
24985         * lib/unicodeio.c (unicode_to_mb): Likewise.
24986         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24987         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24988         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24989         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24990         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24991         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24992         * lib/unistr/u8-stpncpy.c: Likewise.
24993         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24994         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24995         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24996         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24997         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24998         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24999         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25000         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25001         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25002         Likewise.
25003         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25004         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25005         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25006         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25007         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25008         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25009         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25010         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25011         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25012         * tests/test-striconveha.c (main): Likewise.
25013         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25014         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25015         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25016         * doc/posix-functions/getline.texi: Likewise.
25017         Reported by Mike Frysinger <vapier@gentoo.org>.
25018
25019 2010-11-20  Bruno Haible  <bruno@clisp.org>
25020
25021         nproc: Fix condition.
25022         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25023         HAVE_PTHREAD_AFFINITY_NP.
25024
25025 2010-11-20  Bruno Haible  <bruno@clisp.org>
25026
25027         Fix a comment.
25028         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25029
25030 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25031
25032         ftoastr: don't assume snprintf
25033         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25034         Implement a subset of snprintf here, by using sprintf safely.
25035         * modules/ftoastr (Depends-on): Remove snprintf.
25036
25037 2010-11-19  Jim Meyering  <meyering@redhat.com>
25038
25039         test-rename.h: fix compilation failure
25040         * tests/test-rename.h (test_rename): Add omitted "}".
25041
25042 2010-11-17  Jim Meyering  <meyering@redhat.com>
25043
25044         maint.mk: add a URL discussing the no-@acronym policy
25045         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25046
25047 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25048
25049         ftoastr: depend on snprintf, improve comments
25050         * lib/ftoastr.c: Also mention Loitsch's draft.
25051         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25052         needed in the current implementation, but it might simplify
25053         speeding up the code later.
25054         * modules/ftoastr: Depend on snprintf; this improves portability.
25055         Suggested by Bruno Haible in the same email.
25056
25057         ftoastr: port to hosts lacking strtof and strtold
25058         Problem reported by Bruno Haible in
25059         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25060         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25061         environment and strtold (and presumably strtof) are not available.
25062         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25063         (configure.ac): Require gl_C99_STRTOLD.
25064
25065 2010-11-18  Bruno Haible  <bruno@clisp.org>
25066
25067         c-strtold: Avoid link error on AIX 7.
25068         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25069         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25070         (gl_C_STRTOLD): Test whether strtold_l exists.
25071         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25072
25073 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25074
25075         intprops: new macro INT_BITS_STRLEN_BOUND
25076         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25077         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25078         not exposed.  Also, it uses a slightly tighter bound than before;
25079         though this makes no practical difference, we might as well be as
25080         tight as we easily can.
25081
25082         ftoastr: new module, for lossless conversion of floats to short strings
25083         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25084         * modules/ftoastr: New files.
25085
25086 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25087
25088         bootstrap: port to Solaris sed
25089         * build-aux/bootstrap (get_version): Port to Solaris sed.
25090         See Ralf Wildenhues's note in
25091         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25092
25093 2010-11-14  Jim Meyering  <meyering@redhat.com>
25094
25095         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25096         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25097         and move definition closer to sole use.
25098
25099 2010-11-13  Jim Meyering  <meyering@redhat.com>
25100
25101         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25102         Now we require at least autoconf-2.59, which means the work-around
25103         is no longer needed.
25104         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25105         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25106         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25107         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25108         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25109
25110 2010-11-13  Bruno Haible  <bruno@clisp.org>
25111
25112         rename, renameat: Avoid test failures at NFS mounted locations.
25113         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25114         functions.
25115         (test_rename): Use assert_nonexistent.
25116         * tests/test-rename.c: Include <dirent.h>.
25117         * tests/test-renameat.c: Likewise.
25118         Reported by Gary V. Vaughan <gary@gnu.org>.
25119
25120         rename, renameat: Document Linux bug with NFS
25121         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25122         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25123         * doc/posix-functions/renameat.texi: Likewise.
25124         Suggested by Eric Blake.
25125
25126 2010-11-13  Bruno Haible  <bruno@clisp.org>
25127
25128         rename test: Add comments.
25129         * tests/test-rename.h (test_rename): Add structure and comments.
25130
25131 2010-11-13  Eric Blake  <eblake@redhat.com>
25132
25133         maintainer-makefile: cover a few more files
25134         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25135         scripts generated within C files, for libvirt.
25136
25137 2010-11-13  Bruno Haible  <bruno@clisp.org>
25138
25139         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25140         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25141         character, return the number of bytes that belong together, not always
25142         1.
25143         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25144         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25145         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25146         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25147         number of bytes of an invalid character.
25148         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25149         (main): Invoke it.
25150         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25151         results.
25152         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25153         malformed byte sequences.
25154         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25155         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25156         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25157         Reported by Ben Pfaff and Paolo Bonzini.
25158
25159 2010-11-13  Bruno Haible  <bruno@clisp.org>
25160
25161         openat: Work around glibc bug with fchownat() and empty file names.
25162         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25163         (gl_FUNC_FCHOWNAT): Invoke it.
25164         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25165         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25166         Reported by Gary V. Vaughan <gary@gnu.org>.
25167
25168 2010-11-13  Bruno Haible  <bruno@clisp.org>
25169
25170         openat: Ensure autoconf macro ordering.
25171         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25172         gl_USE_SYSTEM_EXTENSIONS.
25173         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25174
25175 2010-11-13  Bruno Haible  <bruno@clisp.org>
25176
25177         Update comments.
25178         * lib/unistr/u8-check.c: Update file name in comments.
25179         * lib/unistr/u8-mblen.c: Likewise.
25180         * lib/unistr/u8-prev.c: Likewise.
25181         * lib/unistr/u8-strmblen.c: Likewise.
25182         * lib/unistr/u8-strmbtouc.c: Likewise.
25183
25184 2010-11-13  Jim Meyering  <meyering@redhat.com>
25185
25186         tests: avoid test failure on Solaris 10 due to lack of PATH export
25187         * tests/test-update-copyright.sh: Don't forget to export PATH.
25188
25189         init.sh: ensure that IFS is defined, just in case...
25190         * tests/init.sh (setup_): Ensure that IFS is defined,
25191         so that saving and restoring it works as expected.  This
25192         appears to be useful at least for an old version of dash
25193         from a long time ago (RH 6).  See here for details:
25194         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25195
25196         maint.mk: tighten "test a == b" check
25197         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25198         test to files that contain something like #!/bin/sh.
25199         Without this, coreutils would get two false positives in
25200         the comments of C source files.
25201
25202 2010-11-12  Eric Blake  <eblake@redhat.com>
25203
25204         bootstrap: fix typo in previous attempt
25205         * build-aux/bootstrap (buildreq): Correct the grouping.
25206         Reported by Paul Eggert.
25207
25208         maintainer-makefile: prohibit test x == x
25209         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25210         Based on a report by Matthias Bolte.
25211
25212         bootstrap: allow FreeBSD gzip
25213         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25214         which has no '.' and goes to stderr.
25215         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25216         Reported by Matthias Bolte.
25217
25218         maintainer-makefile: check for i18n setup
25219         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25220         will likely work.
25221
25222 2010-11-12  Bruno Haible  <bruno@clisp.org>
25223
25224         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25225         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25226         * lib/nanosleep.c (nanosleep): Likewise.
25227
25228 2010-11-11  Bruno Haible  <bruno@clisp.org>
25229
25230         fcntl-h: Fix for use of C++ on glibc systems.
25231         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25232         also on glibc systems in C++ mode.
25233         Reported by Gary V. Vaughan <gary@gnu.org>.
25234
25235 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25236
25237         mknod: avoid false failure with dash
25238         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25239
25240 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25241
25242         unlink: Fix "is it should" typo in diagnostic.
25243         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25244         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25245
25246 2010-11-11  Bruno Haible  <bruno@clisp.org>
25247
25248         Tests for module 'strerror_r-posix'.
25249         * modules/strerror_r-posix-tests: New file.
25250         * tests/test-strerror_r.c: New file.
25251         * tests/test-string-c++.cc: Check the signature of strerror_r.
25252
25253         New module 'strerror_r-posix'.
25254         * lib/string.in.h (strerror_r): New declaration.
25255         * lib/strerror_r.c: New file.
25256         * m4/strerror_r.m4: New file.
25257         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
25258         of strerror_r.
25259         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
25260         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25261         * modules/strerror_r-posix: New file.
25262         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
25263         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25264         * doc/posix-functions/strerror_r.texi: Mention the new module and the
25265         portability problems.
25266
25267 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25268
25269         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25270         line is also considered for output. Quoted function name in shell
25271         command, so temporary files for functions like MyClass::operator()
25272         are removed correctly without errors.
25273
25274 2010-11-09  Bruno Haible  <bruno@clisp.org>
25275
25276         * doc/posix-functions/strerror.texi: List more failing platforms.
25277
25278         * doc/posix-functions/strerror.texi: Add a comment.
25279
25280 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25281
25282         fdopendir: fix bug on MacOS X when low on file descriptors
25283
25284         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25285         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25286         All callers changed.
25287         (fdopendir): Invoke save_cwd at the top level, not after using
25288         multiple dup() calls to use up file descriptors.  Then retry
25289         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25290         less than the maximum number of open file descriptors, because
25291         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25292         on Mac OS X 10.6.4 for tar 1.24
25293         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25294         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25295         and for tar 1.25
25296         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25297
25298 2010-11-07  Bruno Haible  <bruno@clisp.org>
25299
25300         vasnprintf: Support I flag on glibc systems.
25301         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25302         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25303         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25304         snprintf function.
25305         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25306         glibc systems.
25307         * tests/test-vasnprintf-posix3.c: New file.
25308         * modules/vasnprintf-posix-tests (Files): Add it.
25309         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25310
25311 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25312
25313         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25314         * MODULES.html.sh: For compiler warnings, use name
25315         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25316
25317 2010-11-05  Eric Blake  <eblake@redhat.com>
25318
25319         ceil, floor: avoid spurious failure with icc
25320         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25321         [denormals-as-zero] when optimizing without -mieee-fp option.
25322         * tests/test-floorf2.c (floorf_reference): Likewise.
25323         * tests/test-ceilf1.c (dummy): New function.
25324         (main): Use it to outsmart icc's optimization.
25325         * tests/test-floorf1.c (dummy, main): Likewise.
25326
25327         tests: require working signbit
25328         * modules/ceilf-tests (Depends-on): Add signbit.
25329         * modules/ceill-tests (Depends-on): Likewise.
25330         * modules/floorf-tests (Depends-on): Likewise.
25331         * modules/floorl-tests (Depends-on): Likewise.
25332         * modules/round-tests (Depends-on): Likewise.
25333         * modules/roundf-tests (Depends-on): Likewise.
25334         * modules/roundl-tests (Depends-on): Likewise.
25335         * modules/trunc-tests (Depends-on): Likewise.
25336         * modules/truncf-tests (Depends-on): Likewise.
25337         * modules/truncl-tests (Depends-on): Likewise.
25338
25339         strtod: work around icc bug
25340         * lib/strtod.c (minus_zero): Define to working value.
25341         (strtod): Use it to avoid icc bug.
25342
25343         copysign: enhance tests
25344         * modules/copysign-tests (Files): Add minus-zero.h.
25345         * tests/test-copysign.c (main): Also test zeros.
25346
25347 2010-11-04  Eric Blake  <eblake@redhat.com>
25348
25349         ceil, floor, round, trunc: enhance tests of -0
25350         * tests/test-ceilf1.c (main): Ensure correct sign of result.
25351         * tests/test-ceill.c (main): Likewise.
25352         * tests/test-floorf1.c (main): Likewise.
25353         * tests/test-floorl.c (main): Likewise.
25354         * tests/test-round1.c (main): Likewise.
25355         * tests/test-roundf1.c (main): Likewise.
25356         * tests/test-roundl.c (main): Likewise.
25357         * tests/test-trunc1.c (main): Likewise.
25358         * tests/test-truncf1.c (main): Likewise.
25359         * tests/test-truncl.c (main): Likewise.
25360
25361 2010-11-04  Eric Blake  <eblake@redhat.com>
25362
25363         frexp, tests: work around ICC bug with -zero
25364         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
25365         works with more compilers.
25366         * tests/minus-zero.h: New file.
25367         * modules/ceilf-tests (Files): Include it.
25368         * modules/ceill-tests (Files): Likewise.
25369         * modules/floorf-tests (Files): Likewise.
25370         * modules/floorl-tests (Files): Likewise.
25371         * modules/frexp-nolibm-tests (Files): Likewise.
25372         * modules/frexp-tests (Files): Likewise.
25373         * modules/frexpl-nolibm-tests (Files): Likewise.
25374         * modules/frexpl-tests (Files): Likewise.
25375         * modules/isnan-tests (Files): Likewise.
25376         * modules/isnand-nolibm-tests (Files): Likewise.
25377         * modules/isnand-tests (Files): Likewise.
25378         * modules/isnanf-nolibm-tests (Files): Likewise.
25379         * modules/isnanf-tests (Files): Likewise.
25380         * modules/isnanl-nolibm-tests (Files): Likewise.
25381         * modules/isnanl-tests (Files): Likewise.
25382         * modules/round-tests (Files): Likewise.
25383         * modules/roundf-tests (Files): Likewise.
25384         * modules/roundl-tests (Files): Likewise.
25385         * modules/ldexpl-tests (Files): Likewise.
25386         * modules/signbit-tests (Files): Likewise.
25387         * modules/snprintf-posix-tests (Files): Likewise.
25388         * modules/sprintf-posix-tests (Files): Likewise.
25389         * modules/strtod-tests (Files): Likewise.
25390         * modules/trunc-tests (Files): Likewise.
25391         * modules/truncf-tests (Files): Likewise.
25392         * modules/truncl-tests (Files): Likewise.
25393         * modules/vsnprintf-posix-tests (Files): Likewise.
25394         * modules/vsprintf-posix-tests (Files): Likewise.
25395         * modules/vasnprintf-posix-tests (Files): Likewise.
25396         * modules/vasprintf-posix-tests (Files): Likewise.
25397         * tests/test-ceilf1.c (main): Use it.
25398         * tests/test-ceill.c (main): Likewise.
25399         * tests/test-floorf1.c (main): Likewise.
25400         * tests/test-floorl.c (main): Likewise.
25401         * tests/test-frexp.c (main): Likewise.
25402         * tests/test-frexpl.c (main): Likewise.
25403         * tests/test-isnan.c (main): Likewise.
25404         * tests/test-isnand.h (main): Likewise.
25405         * tests/test-isnanf.h (main): Likewise.
25406         * tests/test-isnanl.h (main): Likewise.
25407         * tests/test-ldexpl.c (main): Likewise.
25408         * tests/test-round.c (main): Likewise.
25409         * tests/test-roundf.c (main): Likewise.
25410         * tests/test-roundl.c (main): Likewise.
25411         * tests/test-signbit.c (test_signbitf, test_signbitd)
25412         (test_signbitl): Likewise.
25413         * tests/test-snprintf-posix.h (test_function): Likewise.
25414         * tests/test-sprintf-posix.h (test_function): Likewise.
25415         * tests/test-strtod.c (main): Likewise.
25416         * tests/test-trunc1.c (main): Likewise.
25417         * tests/test-truncf1.c (main): Likewise.
25418         * tests/test-truncl.c (main): Likewise.
25419
25420         isnanl: work around icc bug
25421         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
25422
25423 2010-11-03  Eric Blake  <eblake@redhat.com>
25424
25425         tests: fix compiler warnings
25426         * tests/test-getopt.h (test_getopt): Fix condition.
25427         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25428         * tests/test-pipe2.c (main): Likewise.
25429         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25430
25431         utimens: fix broken m4 test
25432         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25433
25434 2010-10-28  Bruno Haible  <bruno@clisp.org>
25435
25436         posix_spawn*, getdtablesize: Relax license.
25437         * modules/posix_spawn (License): Change to LGPLv2+.
25438         * modules/posix_spawnp (License): Likewise.
25439         * modules/posix_spawn-internal (License): Likewise.
25440         * modules/posix_spawnattr_init (License): Likewise.
25441         * modules/posix_spawnattr_getflags (License): Likewise.
25442         * modules/posix_spawnattr_setflags (License): Likewise.
25443         * modules/posix_spawnattr_getpgroup (License): Likewise.
25444         * modules/posix_spawnattr_setpgroup (License): Likewise.
25445         * modules/posix_spawnattr_getschedparam (License): Likewise.
25446         * modules/posix_spawnattr_setschedparam (License): Likewise.
25447         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
25448         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
25449         * modules/posix_spawnattr_getsigdefault (License): Likewise.
25450         * modules/posix_spawnattr_setsigdefault (License): Likewise.
25451         * modules/posix_spawnattr_getsigmask (License): Likewise.
25452         * modules/posix_spawnattr_setsigmask (License): Likewise.
25453         * modules/posix_spawnattr_destroy (License): Likewise.
25454         * modules/posix_spawn_file_actions_init (License): Likewise.
25455         * modules/posix_spawn_file_actions_addclose (License): Likewise.
25456         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
25457         * modules/posix_spawn_file_actions_addopen (License): Likewise.
25458         * modules/posix_spawn_file_actions_destroy (License): Likewise.
25459         * modules/getdtablesize (License): Likewise.
25460         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
25461
25462 2010-10-26  Bruno Haible  <bruno@clisp.org>
25463
25464         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
25465         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
25466         Cygwin and mingw.
25467         Suggested by Eric Blake.
25468
25469 2010-10-26  Bruno Haible  <bruno@clisp.org>
25470
25471         stdio: Work around compilation error due to renameat() on Solaris 10.
25472         * lib/stdio.in.h: Include <unistd.h> on Solaris.
25473         * lib/renameat.c: Don't include <unistd.h> here.
25474         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
25475         Reported by Paul Eggert and Eric Blake.
25476
25477 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25478
25479         renameat: port to Solaris 10, which declares renameat in unistd.h
25480
25481         * lib/renameat.c: Include unistd.h before stdio.h, because
25482         Solaris 10 declares renameat in unistd.h.  Problem encountered
25483         when building GNU tar 1.24 on Solaris 10.
25484
25485 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25486
25487         fdopendir: fix C89 compilation
25488         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25489         compilers.
25490
25491 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25492
25493         inttostr: simplify by removing unnecessary redundancy
25494         * lib/anytostr.c: Don't include verify.h.
25495         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25496         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25497         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25498         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25499         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25500         Likewise.
25501         * modules/inttostr (Depends-on): Remove 'verify'.
25502
25503 2010-10-23  Bruno Haible  <bruno@clisp.org>
25504
25505         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25506         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25507         Reported by Eric Blake.
25508
25509 2010-10-23  Bruno Haible  <bruno@clisp.org>
25510
25511         Tests: Fix LOCALE_JA on MirBSD 10.
25512         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25513         to an UTF-8 locale.
25514         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25515         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25516         Reported by Eric Blake.
25517
25518 2010-10-21  Bruno Haible  <bruno@clisp.org>
25519
25520         nl_langinfo test: Avoid test failure on NetBSD 5.
25521         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25522         Reported by Eric Blake.
25523
25524 2010-10-21  Eric Blake  <eblake@redhat.com>
25525
25526         c-stack: work around libsigsegv 2.8 bug
25527         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25528         overflow on at least PowerPC64.
25529
25530 2010-10-17  Bruno Haible  <bruno@clisp.org>
25531
25532         userspec: Drop redundant file.
25533         * modules/userspec (Files): Remove lib/inttostr.h.
25534
25535 2010-10-17  Bruno Haible  <bruno@clisp.org>
25536
25537         nl_langinfo tests: Silence some warnings.
25538         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25539         Reported by Jim Meyering.
25540
25541 2010-10-17  Bruno Haible  <bruno@clisp.org>
25542
25543         Make use of GCC's attribute __alloc_size__.
25544         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25545         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25546         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25547         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25548         __alloc_size__.
25549         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25550         Suggested by Jim Meyering.
25551
25552 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25553
25554         bootstrap: anchor .gitignore entries.
25555         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25556         with...
25557         (insert_vc_ignore): ... this new function, which prepends `/' to
25558         all .gitignore entries before passing them to
25559         insert_sorted_if_absent.
25560
25561 2010-10-16  Bruno Haible  <bruno@clisp.org>
25562
25563         nextafter: Fix configure check.
25564         * modules/nextafter (configure.ac): Correct expected prototype.
25565
25566 2010-10-16  Bruno Haible  <bruno@clisp.org>
25567
25568         termios: Update documentation.
25569         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25570
25571 2010-10-16  Bruno Haible  <bruno@clisp.org>
25572
25573         tests: Make them compile with TinyCC.
25574         * tests/test-strstr.c (main): Remove parentheses around array
25575         initializer.
25576
25577 2010-10-15  Eric Blake  <eblake@redhat.com>
25578
25579         ignore-value: make header idempotent
25580         * lib/ignore-value.h: Add double-inclusion guards.
25581         Reported by Stefan Berger.
25582
25583 2010-10-15  Jim Meyering  <meyering@redhat.com>
25584
25585         GNUmakefile: handle "stable" target, not "major"
25586         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25587         lists in maint.mk and announce-gen.  Without this, "make stable"
25588         would fail to ensure that $(VERSION) is up to date.
25589
25590 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25591
25592         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25593         & co.
25594
25595 2010-10-14  Bruno Haible  <bruno@clisp.org>
25596
25597         vasnprintf: Don't set errno to 0.
25598         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25599         block that sets it to 0.
25600         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25601
25602 2010-10-14  Bruno Haible  <bruno@clisp.org>
25603
25604         socketlib: Fix.
25605         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25606         gl_PREREQ_SYS_H_WINSOCK2.
25607         Reported by Ian Beckwith <ianb@erislabs.net>.
25608
25609 2010-10-13  Jim Meyering  <meyering@redhat.com>
25610
25611         test-select-stdin.c: avoid warn_unused_result warnings
25612         * tests/test-select-stdin.c: Include "macros.h".
25613         ASSERT that read and fflush succeed.
25614
25615 2010-10-13  Jim Meyering  <meyering@redhat.com>
25616
25617         git-version-gen: do require git-VC'd files in cwd
25618         * build-aux/git-version-gen: Reject a git version string
25619         if there are no commits associated with the current directory.
25620         This avoids an unlikely false-positive (unrelated dir whose parent
25621         repository also contains a tag matching v*), as pointed out
25622         by Giuseppe Scrivano in
25623         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25624
25625 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25626
25627         argv-iter: omit nonconforming declaration
25628         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25629         enum arg_iter_err declaration, which doesn't conform to C99.
25630         Solaris 10 cc warns about this.
25631
25632 2010-10-13  Eric Blake  <eblake@redhat.com>
25633
25634         termios: fix compilation on mingw
25635         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25636         (gl_TERMIOS_H): Adjust it on mingw.
25637         * modules/termios (Makefile.am): Substitute new key.
25638         * lib/termios.in.h (includes): Make include_next conditional.
25639         * doc/posix-headers/termios.texi (termios.h): Update
25640         documentation.
25641         Reported by Daniel P. Berrange.
25642
25643 2010-10-13  Jim Meyering  <meyering@redhat.com>
25644
25645         git-version-gen: don't require that .git/ be in the current dir
25646         * build-aux/git-version-gen: Adjust this script so that it works
25647         when run from any working directory beneath the top-level .git/-
25648         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25649         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25650
25651         test-select: avoid warn_unused_result warnings
25652         * tests/test-select.c: Include "macros.h".
25653         ASSERT that each call to read, write, and pipe succeeds.
25654         While not technically required, also check each "close".
25655         * modules/select-tests (Files): Add tests/macros.h.
25656
25657         test-symlinkat: remove declaration of unused local
25658         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25659
25660         test-inttostr: avoid shadowing warnings
25661         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25662         and use malloc rather than the stack for the same reason as
25663         mentioned in the comment justifying the other allocation.
25664
25665 2010-10-11  Bruno Haible  <bruno@clisp.org>
25666
25667         stdlib: Allow multiple gnulib generated replacements to coexist.
25668         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25669         Reported by Sam Steingold <sds@gnu.org>.
25670
25671 2010-10-11  Jim Meyering  <meyering@redhat.com>
25672
25673         fix a documentation typo
25674         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25675
25676 2010-10-11  Eric Blake  <eblake@redhat.com>
25677
25678         futimens: work around Solaris 11 bug
25679         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25680         * tests/test-futimens.h (test_futimens): Enhance, rather than
25681         weaken test.
25682         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25683
25684 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25685
25686         Indentation.
25687         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25688         higher-level operators more to the left.
25689
25690 2010-10-11  Jim Meyering  <meyering@redhat.com>
25691
25692         test-futimens: avoid unwarranted test failure on Solaris 5.11
25693         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25694         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25695         because it tries to dereference the NULL name argument.
25696
25697 2010-10-11  Bruno Haible  <bruno@clisp.org>
25698
25699         Indentation.
25700         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25701         indentation.
25702
25703 2010-10-11  Jim Meyering  <meyering@redhat.com>
25704
25705         spawn.in.h: make indentation consistent with parentheses
25706         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25707         Make indentation consistent with parentheses.
25708
25709 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25710
25711         Fix mismatched parens in previous commit
25712         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25713         parens.
25714
25715 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25716
25717         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25718
25719         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25720         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25721         * lib/malloca.c: Include "verify.h".
25722         (verify1): Remove, replacing with a verify call.
25723         * lib/relocwrapper.c (verify1): Likewise.
25724         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25725         Likewise.
25726         * modules/malloca (Depends-on): Add 'verify'.
25727         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25728         * modules/vasnprintf (Depends-on): Add 'verify'.
25729         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25730         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25731         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25732         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25733         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25734         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25735         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25736
25737         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25738
25739         Formerly the style was sometimes 2*X - 1, because the C standard
25740         was wrongly thought to disallow ?: in integral constant expressions.
25741         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25742         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25743         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25744         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25745         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25746         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25747         verify that time_t cannot be floating.
25748
25749 2010-10-08  Eric Blake  <eblake@redhat.com>
25750
25751         time: enforce recent POSIX ruling that time_t is integral
25752         * lib/time.in.h (__time_t_must_be_integral): Detect any
25753         problematic systems, allowing the rest of gnulib to assume POSIX.
25754
25755 2010-10-08  Jim Meyering  <meyering@redhat.com>
25756
25757         fdopendir: fix a bug on systems lacking openat and /proc support
25758         OpenBSD 4.7 is one such system.  The most noticeable effect was
25759         failure of any application making nontrivial use of fts: rm, du,
25760         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25761           ./rm: traversal failed: `a': Bad file descriptor
25762         Debugging that, you see that even though FD 6 was closed just
25763         prior to the opendir call in fd_clone_opendir, its resulting
25764         dir->dd_fd was 8, rather than the expected value of 6:
25765
25766         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25767         93                close (fd);
25768         (gdb) n
25769         94                dir = fd_clone_opendir (dupfd);
25770         (gdb) n
25771         95                saved_errno = errno;
25772         (gdb) p dir->dd_fd
25773         $11 = 8
25774
25775         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25776         The problem is that on OpenBSD, fd_clone_opendir has to resort
25777         to using the old-style save/restore CWD mechanism, due to its
25778         lack of openat/proc support, and *that* would steal the FD (6)
25779         that opendir was supposed to use.
25780
25781         The fix is to squirrel away the desired FD so that save_cwd uses a
25782         different one, and then free the dest FD right before calling opendir.
25783         That guarantees opendir will use the required file descriptor.
25784
25785         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25786
25787 2010-10-08  Bruno Haible  <bruno@clisp.org>
25788
25789         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25790         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25791
25792 2010-10-08  Bruno Haible  <bruno@clisp.org>
25793
25794         nanosleep: Make replacement POSIX compliant.
25795         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25796         is out of range.
25797         Reported by Jim Meyering.
25798
25799 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25800
25801         bootstrap: add hook for altering gnulib.mk, for Bison
25802         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25803         the Bison bootstrapping process can rewrite file names and variables
25804         in this file before later parts of 'bootstrap' use the file.
25805         Bison wants to include lib/gnulib.mk from the top-level makefile,
25806         so it needs the file names in this file to be relative to the top
25807         level, not relative to lib; plus it needs variable names to be
25808         rewritten.
25809         (slurp): Use the new function.
25810
25811         bootstrap: reformat for readability
25812         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25813
25814 2010-10-08  Eric Blake  <eblake@redhat.com>
25815
25816         docs: update cygwin progress
25817         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25818         1.7.7.
25819         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25820         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25821         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25822         * doc/posix-functions/carg.texi (carg): Likewise.
25823         * doc/posix-functions/cargf.texi (cargf): Likewise.
25824         * doc/posix-functions/casin.texi (casin): Likewise.
25825         * doc/posix-functions/casinf.texi (casinf): Likewise.
25826         * doc/posix-functions/casinh.texi (casinh): Likewise.
25827         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25828         * doc/posix-functions/catan.texi (catan): Likewise.
25829         * doc/posix-functions/catanf.texi (catanf): Likewise.
25830         * doc/posix-functions/catanh.texi (catanh): Likewise.
25831         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25832         * doc/posix-functions/ccos.texi (ccos): Likewise.
25833         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25834         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25835         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25836         * doc/posix-functions/cexp.texi (cexp): Likewise.
25837         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25838         * doc/posix-functions/cimag.texi (cimag): Likewise.
25839         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25840         * doc/posix-functions/clog.texi (clog): Likewise.
25841         * doc/posix-functions/clogf.texi (clogf): Likewise.
25842         * doc/posix-functions/conj.texi (conj): Likewise.
25843         * doc/posix-functions/conjf.texi (conjf): Likewise.
25844         * doc/posix-functions/cpow.texi (cpow): Likewise.
25845         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25846         * doc/posix-functions/cproj.texi (cproj): Likewise.
25847         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25848         * doc/posix-functions/creal.texi (creal): Likewise.
25849         * doc/posix-functions/crealf.texi (crealf): Likewise.
25850         * doc/posix-functions/csin.texi (csin): Likewise.
25851         * doc/posix-functions/csinf.texi (csinf): Likewise.
25852         * doc/posix-functions/csinh.texi (csinh): Likewise.
25853         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25854         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25855         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25856         * doc/posix-functions/ctan.texi (ctan): Likewise.
25857         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25858         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25859         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25860         * doc/posix-headers/complex.texi (complex.h): Likewise.
25861
25862 2010-10-07  Jim Meyering  <meyering@redhat.com>
25863
25864         parse-datetime: avoid compilation failure on OpenBSD 4.7
25865         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25866         This works around a compilation failure on OpenBSD 4.7:
25867         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25868
25869 2010-10-07  Eric Blake  <eblake@redhat.com>
25870
25871         docs: update cygwin progress
25872         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25873         1.7.6.
25874         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25875         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25876         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25877         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25878         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25879         Likewise.
25880         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25881         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25882         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25883         Likewise.
25884         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25885         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25886         Likewise.
25887         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25888         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25889         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25890         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25891         Likewise.
25892         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25893         Likewise.
25894         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25895
25896         docs: update parse-datetime history
25897         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25898         documentation of this function's history and alternatives.
25899
25900         cygwin: use more robust version check
25901         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25902         exclude an eventual cygwin 1.9.1.
25903         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25904         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25905         (gl_FUNC_STRCASESTR): Likewise.
25906         Reported by Bruno Haible.
25907
25908 2010-10-06  Bruno Haible  <bruno@clisp.org>
25909
25910         string, sys_select: Avoid #including large headers unless necessary.
25911         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25912         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25913         OSF/1, BeOS, Haiku.
25914         Reported by Jim Meyering.
25915
25916 2010-10-05  Eric Blake  <eblake@redhat.com>
25917
25918         memmem, strstr, strcasestr: fix bug with long periodic needle
25919         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25920         periodic needle having false positive.
25921         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25922         and cygwin 1.7.7.
25923         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25924         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25925         (gl_FUNC_STRCASESTR): Likewise.
25926         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25927         * tests/test-memmem.c (main): Expose the bug.
25928         * tests/test-strcasestr.c (main): Likewise.
25929         * tests/test-strstr.c (main): Likewise.
25930         * tests/test-c-strcasestr.c (main): Likewise.
25931         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25932         * doc/posix-functions/strstr.texi (strstr): Likewise.
25933         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25934         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25935
25936 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25937
25938         parse-datetime: do some more renaming
25939         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25940         parse_datetime, not get_date.  Mention the renaming.
25941         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25942         in comments.
25943         * m4/bison.m4: Likewise.
25944
25945 2010-10-05  Eric Blake  <eblake@redhat.com>
25946
25947         parse-datetime: better name than get_date
25948         * NEWS: Reword the deprecation notice.
25949         * modules/get_date: Rename to modules/parse-datetime.
25950         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25951         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25952         * lib/get_date.y: Rename to lib/parse-datetime.y.
25953         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25954         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25955         * doc/getdate.texi: Provide fallback wrapper.
25956         * lib/getdate.h: Move guts, and wrap...
25957         * lib/parse-datetime.h: ...new file.
25958         * lib/parse-datetime.y (get_date): Rename...
25959         (parse_datetime): ...to this.
25960         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25961         (gl_PARSE_DATETIME): ...to this.
25962         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25963         documentation.
25964         * modules/getdate (Files): Provide fallback docs and header.
25965         (Notice, Depends-on): Update references.
25966         * tests/test-parse-datetime.c: Likewise.
25967         * DEPENDENCIES: Likewise.
25968         * MODULES.html.sh (Date and time <time.h>): Likewise.
25969         * doc/parse-datetime.texi (Date input formats)
25970         (Authors of parse_datetime): Likewise.
25971         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25972         (Include): Likewise.
25973         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25974         * gnulib-tool: Likewise.
25975         * m4/bison.m4 (gl_BISON): Likewise.
25976         Suggested by Bruno Haible.
25977
25978 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25979
25980         more ports to Solaris tr, which needs [] around ranges
25981         * gnulib-tool: Solaris tr needs [] around ranges.
25982         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25983         * tests/test-pipe-filter-gi1.c (main): Likewise.
25984         * tests/test-pipe-filter-ii1.c (main): Likewise.
25985
25986 2010-10-05  Eric Blake  <eblake@redhat.com>
25987
25988         bootstrap: fix Solaris regression
25989         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25990         around ranges.
25991         Reported by Pádraig Brady.
25992
25993         bootstrap: work with pkg-config
25994         * build-aux/bootstrap (check_versions): Also transliterate - in
25995         prerequisite name.
25996         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25997         prerequisites that were already found, to avoid confusion.
25998         Reported by Justin Clift.
25999
26000         faccessat: remove unused wrappers
26001         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26002         presence of these wrappers dragged in -lgen on Solaris.
26003         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26004
26005 2010-10-05  Jim Meyering  <meyering@redhat.com>
26006
26007         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26008         * Makefile (sc_pragma_columns): New syntax-check rule.
26009
26010 2010-10-04  Bruno Haible  <bruno@clisp.org>
26011
26012         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26013         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26014         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26015         Reported by Bruce Korb and Eric Blake.
26016
26017 2010-10-04  Bruno Haible  <bruno@clisp.org>
26018
26019         threadlib: Make option --with-libpth-prefix work.
26020         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26021         use $LIBPTH, not just -lpth.
26022
26023 2010-10-04  Bruno Haible  <bruno@clisp.org>
26024
26025         Avoid line length limitation from HP NonStop system header files.
26026         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26027         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26028         * lib/ctype.in.h: Likewise.
26029         * lib/dirent.in.h: Likewise.
26030         * lib/errno.in.h: Likewise.
26031         * lib/fcntl.in.h: Likewise.
26032         * lib/float.in.h: Likewise.
26033         * lib/getopt.in.h: Likewise.
26034         * lib/iconv.in.h: Likewise.
26035         * lib/inttypes.in.h: Likewise.
26036         * lib/langinfo.in.h: Likewise.
26037         * lib/locale.in.h: Likewise.
26038         * lib/math.in.h: Likewise.
26039         * lib/netdb.in.h: Likewise.
26040         * lib/netinet_in.in.h: Likewise.
26041         * lib/poll.in.h: Likewise.
26042         * lib/pthread.in.h: Likewise.
26043         * lib/pty.in.h: Likewise.
26044         * lib/sched.in.h: Likewise.
26045         * lib/se-selinux.in.h: Likewise.
26046         * lib/search.in.h: Likewise.
26047         * lib/signal.in.h: Likewise.
26048         * lib/spawn.in.h: Likewise.
26049         * lib/stdarg.in.h: Likewise.
26050         * lib/stddef.in.h: Likewise.
26051         * lib/stdint.in.h: Likewise.
26052         * lib/stdio.in.h: Likewise.
26053         * lib/stdlib.in.h: Likewise.
26054         * lib/string.in.h: Likewise.
26055         * lib/strings.in.h: Likewise.
26056         * lib/sys_file.in.h: Likewise.
26057         * lib/sys_ioctl.in.h: Likewise.
26058         * lib/sys_select.in.h: Likewise.
26059         * lib/sys_socket.in.h: Likewise.
26060         * lib/sys_stat.in.h: Likewise.
26061         * lib/sys_time.in.h: Likewise.
26062         * lib/sys_times.in.h: Likewise.
26063         * lib/sys_utsname.in.h: Likewise.
26064         * lib/sys_wait.in.h: Likewise.
26065         * lib/sysexits.in.h: Likewise.
26066         * lib/termios.in.h: Likewise.
26067         * lib/time.in.h: Likewise.
26068         * lib/unistd.in.h: Likewise.
26069         * lib/wchar.in.h: Likewise.
26070         * lib/wctype.in.h: Likewise.
26071         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26072         * modules/ctype (Makefile.am): Likewise.
26073         * modules/dirent (Makefile.am): Likewise.
26074         * modules/errno (Makefile.am): Likewise.
26075         * modules/fcntl-h (Makefile.am): Likewise.
26076         * modules/float (Makefile.am): Likewise.
26077         * modules/getopt-posix (Makefile.am): Likewise.
26078         * modules/iconv-h (Makefile.am): Likewise.
26079         * modules/inttypes (Makefile.am): Likewise.
26080         * modules/langinfo (Makefile.am): Likewise.
26081         * modules/locale (Makefile.am): Likewise.
26082         * modules/math (Makefile.am): Likewise.
26083         * modules/netdb (Makefile.am): Likewise.
26084         * modules/netinet_in (Makefile.am): Likewise.
26085         * modules/poll-h (Makefile.am): Likewise.
26086         * modules/pthread (Makefile.am): Likewise.
26087         * modules/pty (Makefile.am): Likewise.
26088         * modules/sched (Makefile.am): Likewise.
26089         * modules/search (Makefile.am): Likewise.
26090         * modules/selinux-h (Makefile.am): Likewise.
26091         * modules/signal (Makefile.am): Likewise.
26092         * modules/spawn (Makefile.am): Likewise.
26093         * modules/stdarg (Makefile.am): Likewise.
26094         * modules/stddef (Makefile.am): Likewise.
26095         * modules/stdint (Makefile.am): Likewise.
26096         * modules/stdio (Makefile.am): Likewise.
26097         * modules/stdlib (Makefile.am): Likewise.
26098         * modules/string (Makefile.am): Likewise.
26099         * modules/strings (Makefile.am): Likewise.
26100         * modules/sys_file (Makefile.am): Likewise.
26101         * modules/sys_ioctl (Makefile.am): Likewise.
26102         * modules/sys_select (Makefile.am): Likewise.
26103         * modules/sys_socket (Makefile.am): Likewise.
26104         * modules/sys_stat (Makefile.am): Likewise.
26105         * modules/sys_time (Makefile.am): Likewise.
26106         * modules/sys_times (Makefile.am): Likewise.
26107         * modules/sys_utsname (Makefile.am): Likewise.
26108         * modules/sys_wait (Makefile.am): Likewise.
26109         * modules/sysexits (Makefile.am): Likewise.
26110         * modules/termios (Makefile.am): Likewise.
26111         * modules/time (Makefile.am): Likewise.
26112         * modules/unistd (Makefile.am): Likewise.
26113         * modules/wchar (Makefile.am): Likewise.
26114         * modules/wctype (Makefile.am): Likewise.
26115
26116 2010-10-04  Bruno Haible  <bruno@clisp.org>
26117
26118         read-file tests: Avoid a test failure on NonStop Kernel.
26119         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26120         a regular file.
26121         Reported by Joachim Schmitz <schmitz@hp.com>.
26122
26123 2010-10-03  Bruno Haible  <bruno@clisp.org>
26124
26125         gnulib-tool: Fixes for --create-testdir with --libtool.
26126         * gnulib-tool (func_get_automake_snippet): Don't augment
26127         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26128         an executable.
26129         (func_create_testdir): Handle module 'alloca' like func_import.
26130         Reported by Bruce Korb <bruce.korb@gmail.com>.
26131
26132 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26133
26134         Avoid some lines longer than 80 characters.
26135         * lib/stdint.in.h: Break long comment lines.
26136         * lib/math.in.h: Likewise.
26137         (_GL_NUM_UINT_WORDS): New macro, for readability.
26138         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26139         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26140         * lib/stdlib.in.h: Likewise.
26141         * lib/spawn.in.h: Likewise.
26142         * lib/sys_socket.in.h: Update an URL.
26143         * lib/sys_stat.in.h: Break long line.
26144
26145 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26146
26147         Improve pmccabe2html.
26148         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26149         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26150         when the sources change. Remove the line in the HTML about "Used
26151         ranges" (which implied that there might be other unused ranges),
26152         rename "Resume" to "Summary" (easier to understand for more users).
26153         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26154         styles, and some unnecessary blank lines.
26155
26156 2010-10-03  Bruno Haible  <bruno@clisp.org>
26157             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26158
26159         acl: Add support for ACLs on NonStop Kernel.
26160         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26161         Check whether the function aclsort() exists.
26162         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26163         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26164         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26165         (acl_nontrivial [HAVE_ACLSORT]: New function.
26166         (file_has_acl): Implement for NonStop Kernel.
26167         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26168         (qset_acl): Implement for NonStop Kernel.
26169         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26170         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26171         (main): Implement for NonStop Kernel.
26172         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26173         Kernel. Handle this flavor.
26174         * tests/test-set-mode-acl.sh: Likewise.
26175         * tests/test-copy-acl.sh: Likewise.
26176         * tests/test-copy-file.sh: Likewise.
26177
26178 2010-10-03  Bruno Haible  <bruno@clisp.org>
26179
26180         Info about ACLs on NonStop Kernel.
26181         * doc/acl-resources.txt: Add info about NonStop Kernel.
26182         References by Joachim Schmitz <schmitz@hp.com>.
26183
26184 2010-10-02  Bruno Haible  <bruno@clisp.org>
26185
26186         Define missing EDQUOT on NonStop Kernel.
26187         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26188         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26189         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26190         missing.
26191         * doc/posix-headers/errno.texi: Mention the NSK bug.
26192         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26193         Reported by Joachim Schmitz <schmitz@hp.com>.
26194
26195 2010-10-02  Bruno Haible  <bruno@clisp.org>
26196
26197         Update doc for POSIX:2008.
26198         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26199         Update URL of POSIX specification.
26200
26201 2010-10-02  Bruno Haible  <bruno@clisp.org>
26202
26203         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26204         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26205         from gnulib, not from Automake.
26206
26207 2010-10-02  Bruno Haible  <bruno@clisp.org>
26208
26209         New module 'system-posix'.
26210         * modules/system-posix: New file.
26211         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26212         module is present.
26213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26214         GNULIB_SYSTEM_POSIX.
26215         * modules/stdlib (Depends-on): Remove sys_wait.
26216         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26217         * doc/posix-functions/system.texi: Mention the new module.
26218         * doc/posix-headers/stdlib.texi: Likewise.
26219         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26220         define test_sys_wait_macros to a no-op.
26221         Reported by Sam Steingold <sds@gnu.org>.
26222
26223 2010-09-30  Bruno Haible  <bruno@clisp.org>
26224
26225         More renaming from 'getdate' to 'get_date'.
26226         * doc/get_date.texi: Renamed from doc/getdate.texi.
26227         * modules/get_date (Files): Update.
26228         * MODULES.html.sh (Date and time <time.h>): Update.
26229         * DEPENDENCIES: Update.
26230         * gnulib-tool: Update comment.
26231         * m4/bison.m4 (gl_BISON): Likewise.
26232         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26233
26234 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26235
26236         bootstrap: support ACLOCAL_FLAGS during aclocal
26237         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26238         can add additional -I dir for third-party .m4 files.
26239
26240 2010-09-30  Eric Blake  <eblake@redhat.com>
26241
26242         bootstrap: use glibtoolize on MacOS
26243         * build-aux/bootstrap (check_versions): Convert libtool into
26244         libtoolize.
26245         (tool search): Move libtool check earlier, and look for
26246         glibtoolize for MacOS.
26247         (gnulib_tool_options): Auto-add --libtool when appropriate.
26248         Reported by Justin Clift.
26249
26250         poll: fix typo that broke test on MacOS
26251         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26252         Reported by Justin Clift.
26253
26254         getdate: rename to get_date
26255         Note: getdate.h is not renamed, to minimize client impact.
26256         * modules/getdate: Mark obsolete.  Move old contents...
26257         * modules/get_date: ...to new module name.
26258         * modules/getdate-tests: Move...
26259         * modules/get_date-tests: ...here.
26260         * m4/getdate.m4: Move...
26261         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
26262         * lib/getdate.y: Move...
26263         * lib/get_date.y: ...here.
26264         * tests/test-getdate.c: Move...
26265         * tests/test-get_date.c: ...here.
26266         * doc/posix-functions/getdate.texi (getdate): Update name.
26267         * NEWS: Mention the change.
26268
26269 2010-09-29  Bruno Haible  <bruno@clisp.org>
26270
26271         Separate the module 'waitpid' from the module 'sys_wait'.
26272         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26273         present.
26274         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26275         gl_MODULE_INDICATOR_FOR_TESTS.
26276         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26277         * modules/sys_wait (Depends-on): Remove waitpid.
26278         (Makefile.am): Substitute GNULIB_WAITPID.
26279         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26280         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26281         signature only if the 'waitpid' module is present.
26282         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26283         * NEWS: Mention the change.
26284         * modules/grantpt (Depends-on): Add waitpid.
26285         * modules/wait-process (Depends-on): Likewise.
26286
26287 2010-09-29  Bruno Haible  <bruno@clisp.org>
26288
26289         More tests for module 'sys_wait'.
26290         * modules/sys_wait-c++-tests: New file.
26291         * tests/test-sys_wait-c++.cc: New file.
26292         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26293         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26294
26295 2010-09-29  Bruno Haible  <bruno@clisp.org>
26296
26297         New module 'waitpid'.
26298         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26299         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26300         Don't include <process.h>.
26301         (waitpid): Declare only, using modern idiom.
26302         * m4/waitpid.m4: New file.
26303         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26304         * modules/waitpid: New file.
26305         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26306         (Makefile.am): Update.
26307         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26308
26309 2010-09-28  Bruno Haible  <bruno@clisp.org>
26310
26311         poll: Assume ANSI C.
26312         * lib/poll.c (poll): Use an ANSI C declaration.
26313
26314 2010-09-28  Bruno Haible  <bruno@clisp.org>
26315
26316         poll-h: Create poll.h on all platforms.
26317         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26318         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26319         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26320         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26321         (gl_REPLACE_POLL_H): Don't set POLL_H.
26322         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26323         * modules/poll-h (Depends-on): Add include_next.
26324         (Makefile.am): Create poll.h unconditionally. Substitute also
26325         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26326
26327 2010-09-28  Bruno Haible  <bruno@clisp.org>
26328
26329         Tests for module 'poll-h'.
26330         * modules/poll-h-c++-tests: New file.
26331         * tests/test-poll-h-c++.cc: New file.
26332
26333         Tests for module 'poll-h'.
26334         * modules/poll-h-tests: New file.
26335         * tests/test-poll-h.c: New file.
26336
26337 2010-09-28  Bruno Haible  <bruno@clisp.org>
26338
26339         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
26340         * modules/poll-h (Depends-on): Add 'extensions'.
26341
26342 2010-09-28  Bruno Haible  <bruno@clisp.org>
26343
26344         New module 'poll-h'.
26345         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
26346         (poll): Use modern idiom.
26347         * modules/poll-h: New file.
26348         * modules/poll (Files): Remove lib/poll.in.h.
26349         (Depends-on): Add poll-h.
26350         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
26351         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26352         * m4/poll_h.m4: New file.
26353         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
26354         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
26355         and invoke gl_REPLACE_POLL_H.
26356         * lib/poll.c: Use common idiom.
26357         * tests/test-poll.c: Likewise.
26358         * doc/posix-headers/poll.texi: Mention the poll-h module.
26359         Suggested by Eric Blake.
26360
26361 2010-09-26  Bruno Haible  <bruno@clisp.org>
26362
26363         sys_wait: Implement WSTOPSIG.
26364         * lib/sys_wait.in.h (WSTOPSIG): New macro.
26365         Reported by Simon Josefsson.
26366
26367 2010-09-26  Simon Josefsson  <simon@josefsson.org>
26368
26369         stdlib, sys_wait: Avoid compilation error on mingw.
26370         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
26371
26372 2010-09-26  Bruno Haible  <bruno@clisp.org>
26373
26374         stdlib tests: Avoid code duplication.
26375         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
26376         * modules/sys_wait-tests (Files): Likewise.
26377         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
26378         * tests/test-stdlib.c: Include test-sys_wait.h.
26379         (main): Invoke test_sys_wait_macros.
26380         * tests/test-sys_wait.c: Include test-sys_wait.h.
26381         (main): Invoke test_sys_wait_macros.
26382
26383 2010-09-25  Simon Josefsson  <simon@josefsson.org>
26384
26385         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26386         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26387         sure Windows sockets are working before calling getaddrinfo.
26388         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26389         * doc/gnulib.texi (Windows sockets): Fix typo.
26390
26391 2010-09-25  Bruno Haible  <bruno@clisp.org>
26392
26393         Tests for module 'regex-quote'.
26394         * modules/regex-quote-tests: New file.
26395         * tests/test-regex-quote.c: New file.
26396
26397         New module 'regex-quote'.
26398         * lib/regex-quote.h: New file.
26399         * lib/regex-quote.c: New file.
26400         * modules/regex-quote: New file.
26401         Suggested by Reuben Thomas <rrt@sc3d.org>.
26402
26403 2010-09-24  Bruno Haible  <bruno@clisp.org>
26404
26405         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
26406         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
26407
26408 2010-09-23  Bruno Haible  <bruno@clisp.org>
26409
26410         setenv: Relax license.
26411         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
26412         Blake.
26413         Requested by Eric Blake.
26414
26415 2010-09-22  Bruno Haible  <bruno@clisp.org>
26416
26417         termios: Relax license.
26418         * modules/termios (License): Change to LGPLv2+.
26419         Requested by Eric Blake.
26420
26421 2010-09-22  Bruno Haible  <bruno@clisp.org>
26422
26423         threadlib: Allow the package to change the default to 'no'.
26424         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
26425         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
26426         Reported by Paul Eggert.
26427
26428 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26429             Bruno Haible  <bruno@clisp.org>
26430
26431         Fix endless loop in mbmemcasecoll.
26432         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26433         byte.
26434         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26435
26436 2010-09-22  Bruno Haible  <bruno@clisp.org>
26437
26438         Tests for module 'memcoll'.
26439         * modules/memcoll-tests: New file.
26440         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
26441
26442         memcoll, xmemcoll: Clarify size vs. length.
26443         * modules/memcoll.c (memcoll0): Clarify specification.
26444         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
26445         passed to collate_error.
26446
26447 2010-09-22  Bruno Haible  <bruno@clisp.org>
26448
26449         Tests for module 'memcasecmp'.
26450         * modules/memcasecmp-tests: New file.
26451         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
26452
26453 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26454
26455         * lib/pthread.in.h: Add split double-inclusion guard, and include
26456         system <pthread.h> if there is one.  Use @@-style as in other
26457         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
26458         pthread.h doesn't.
26459         (pthread_mutexattr_destroy, pthread_mutexattr_init):
26460         (pthread_mutexattr_settype, pthread_mutex_trylock):
26461         New static inline functions, if there's no system <pthread.h>.
26462         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
26463         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
26464         Approximate with mutexes if the system lacks spinlocks, as in
26465         MacOS.
26466         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
26467         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
26468         @@-style.  Check for spinlocks separately.
26469         (gl_PTHREAD_DEFAULTS): New macro.
26470         * modules/pthread: Redo to use a more typical style for in.h files.
26471
26472 2010-09-21  Eric Blake  <eblake@redhat.com>
26473
26474         net_if: enhance tests
26475         * tests/test-net_if.c (main): Move signature checks earlier.
26476         Print failures to stderr.
26477         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
26478         Document the bug that we do not yet fix.
26479
26480 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26481
26482         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26483         about gnulib, not GSS.
26484
26485 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26486
26487         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26488         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26489         for Emacs.
26490         * build-aux/pmccabe2html: Make Makefile.am example code more
26491         cut-and-paste friendly.
26492
26493 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26494
26495         * tests/test-net_if.c: New file.
26496         * modules/net_if-tests: New file.
26497
26498 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26499
26500         pthread: add pthread_spin_destroy
26501         * lib/pthread.in.h (pthread_spin_destroy): New function.
26502
26503 2010-09-19  Bruno Haible  <bruno@clisp.org>
26504
26505         gnulib-tool: Fix --help output.
26506         * gnulib-tool (func_usage): Fix help message.
26507         Reported by Reuben Thomas <rrt@sc3d.org>.
26508
26509 2010-09-18  Jim Meyering  <meyering@redhat.com>
26510
26511         maint.mk: avoid unexpanded \n in two diagnostics
26512         * top/maint.mk (sc_prohibit_always_true_header_tests):
26513         Don't use a literal \n in a halt=... assignment.  It would not be
26514         expanded, and the two \n bytes would appear in the diagnostic output
26515         rather than the desired newline.  Use halt=$$(printf ... instead.
26516         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26517
26518 2010-09-18  Bruno Haible  <bruno@clisp.org>
26519
26520         netinet_in: Doc tweak.
26521         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26522         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26523
26524 2010-09-18  Jim Meyering  <meyering@redhat.com>
26525
26526         init.sh: correct an outdated comment
26527         * tests/init.sh (create_exe_shims_):  s/function/alias/
26528
26529         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26530         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26531         a file named "*.exe" is removed between the glob expansion and the
26532         processing of that oddly named file.
26533
26534 2010-09-17  Eric Blake  <eblake@redhat.com>
26535
26536         mirbsd: add some more support
26537         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26538         in BSD family.
26539         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26540         devices as OpenBSD.
26541         * m4/host-os.m4 (mirbsd): Add MirBSD.
26542
26543         tests: fix unportable assumption on sys/wait.h
26544         * tests/test-sys_wait.c (main): Relax test.
26545         * tests/test-stdlib.c (main): Likewise.
26546
26547         init.sh: accommodate directory with no .exes
26548         * tests/init.sh: Accomodate directory containing only scripts.
26549
26550         tests: avoid compiler warning
26551         * tests/test-stdlib.c (main): Use the variable.
26552
26553         fdutimens, fdutimensat: update signature, again
26554         * lib/utimens.h (gl_futimens): Delete, and move signature...
26555         (fdutimens): ...here.
26556         (fdutimensat): Rearrange signature.
26557         (lutimensat): Rename variable for clarity.
26558         * lib/fdutimensat.c (fdutimensat): Update signature.
26559         * lib/utimens.c (fdutimens): Likewise.
26560         (gl_futimens): Delete.
26561         (utimens, lutimens): Update callers.
26562         * lib/futimens.c (futimens): Likewise.
26563         * tests/test-fdutimensat.c: Likewise.
26564         * tests/test-utimens.c: Likewise.
26565         * tests/test-futimens.h: Update comment.
26566         * NEWS: Mention this.
26567         Suggested by Paul Eggert.
26568
26569 2010-09-17  Bruno Haible  <bruno@clisp.org>
26570
26571         Take over the maintenance of some older macros from Autoconf.
26572         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26573         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26574         GNU Autoconf.
26575         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26576         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26577
26578 2010-09-17  Eric Blake  <eblake@redhat.com>
26579
26580         fdutimensat: drop atflag validation
26581         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26582         with valid fd, to close a race scenario where futimens is
26583         unsupported and FILE was replaced by a symlink.
26584         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26585         accordingly.
26586         Suggested by Paul Eggert.
26587
26588 2010-09-16  Bruno Haible  <bruno@clisp.org>
26589
26590         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26591         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26592
26593 2010-09-16  Bruno Haible  <bruno@clisp.org>
26594
26595         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26596         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26597         login_tty exists.
26598         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26599
26600 2010-09-16  Bruno Haible  <bruno@clisp.org>
26601
26602         login_tty: Make the replacement code work on BSD systems.
26603         * lib/login_tty.c: Include <sys/ioctl.h>.
26604         (login_tty): Use ioctl TIOCSCTTY when available.
26605         * modules/login_tty (Depends-on): Add sys_ioctl.
26606         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26607
26608 2010-09-16  Bruno Haible  <bruno@clisp.org>
26609
26610         login_tty: Stricter unit test.
26611         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26612         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26613         and tcgetsid() after login_tty.
26614         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26615
26616 2010-09-16  Bruno Haible  <bruno@clisp.org>
26617
26618         New module 'tcgetsid'.
26619         * lib/tcgetsid.c: New file.
26620         * m4/tcgetsid.m4: New file.
26621         * modules/tcgetsid: New file.
26622         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26623         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26624         GNULIB_TCGETSID, HAVE_TCGETSID.
26625         * lib/termios.in.h: Include <sys/types.h>.
26626         (tcgetsid): New declaration.
26627         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26628         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26629         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26630         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26631
26632 2010-09-16  Bruno Haible  <bruno@clisp.org>
26633
26634         Tests for module 'termios'.
26635         * modules/termios-c++-tests: New file.
26636         * modules/termios-tests: New file.
26637         * tests/test-termios-c++.cc: New file.
26638         * tests/test-termios.c: New file.
26639
26640         New module 'termios'.
26641         * modules/termios: New file.
26642         * lib/termios.in.h: New file.
26643         * m4/termios_h.m4: New file.
26644         * doc/posix-headers/termios.texi: Mention the new module.
26645
26646 2010-09-16  Eric Blake  <eblake@redhat.com>
26647
26648         fdutimensat: add an atflag parameter
26649         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26650         * lib/utimens.h (fdutimensat): Update prototype.
26651         * tests/test-fdutimensat.c: Adjust test to match.
26652         * NEWS: Document the change.
26653         Suggested by Paul Eggert.
26654
26655 2010-09-16  Bruno Haible  <bruno@clisp.org>
26656
26657         Fix typos in comments.
26658         * lib/striconveh.h: Fix typo in comment.
26659         * lib/login_tty.c (login_tty): Likewise.
26660
26661 2010-09-15  Bruno Haible  <bruno@clisp.org>
26662
26663         stdlib: clarify MirBSD WEXITSTATUS bug
26664         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26665         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26666
26667 2010-09-15  Eric Blake  <eblake@redhat.com>
26668
26669         stdlib: work around MirBSD WEXITSTATUS bug
26670         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26671         * modules/stdlib (Depends-on): Add sys_wait.
26672         * tests/test-sys_wait.c (main): Enhance test.
26673         * tests/test-stdlib.c (main): Likewise.
26674         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26675
26676         docs: mention MacOS issue with WEXITSTATUS(constant)
26677         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26678         issue.
26679         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26680
26681         strnlen: add tests
26682         * modules/strnlen-tests: New file.
26683         * tests/test-strnlen.c: Likewise.
26684
26685 2010-09-14  Bruno Haible  <bruno@clisp.org>
26686
26687         unistr/base: Avoid link errors when module 'libunistring' is also used.
26688         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26689         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26690         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26691         Declare also when HAVE_LIBUNISTRING is set.
26692         Reported by Pádraig Brady <P@draigbrady.com>.
26693
26694 2010-09-14  Eric Blake  <eblake@redhat.com>
26695
26696         test-rawmemchr: make more robust
26697         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26698         (Depends-on, configure.ac): Add needed prerequisites to use it.
26699         * modules/memchr-tests (Files, Depends-on, configure.ac):
26700         Likewise, to avoid implicit reliance on memchr module prereqs.
26701         * tests/test-memchr.c (main): Ensure proper masking.
26702         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26703         reads.
26704
26705         memchr: detect glibc Alpha bug
26706         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26707         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26708         Alpha.
26709         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26710         * tests/test-memchr.c (main): Enhance test.
26711         Reported by Nelson H. F. Beebe.
26712
26713 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26714
26715         fts, getcwd, glob: audit for dirfd returning -1
26716         * lib/fts.c (opendir): Remove #define; no longer used.
26717         (opendirat): New arg PDIR_FD.  All callers changed.
26718         (fts_build, _opendir2): Use new opendirat to avoid the need for
26719         dirfd, or for checking whether dirfd returns a negative value.
26720         Don't use opendir; always use openat followed by fdopendir.
26721         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26722         it.
26723         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26724         returns -1 here.
26725         * modules/fts (Depends-on): Remove dirfd.
26726         * modules/getcwd (Depends-on): Likewise.
26727
26728 2010-09-13  Eric Blake  <eblake@redhat.com>
26729
26730         float: fix broken MirBSD header
26731         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26732         * doc/posix-headers/float.texi (float.h): Document it.
26733
26734 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26735
26736         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26737         * lib/fts.c (opendirat): New arg extra_flags.
26738         (__opendir2): Use it to avoid following symlinks when opening
26739         a directory, if symlinks are not supposed to be followed.  See
26740         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26741
26742         fdopendir: preserve argument fd before returning
26743         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26744         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26745         (fdopendir): Use them, arranging for FD to be open to the same
26746         directory that it was when it started.  (It might be temporarily
26747         closed while fdopendir is running, so this not thread- or
26748         signal-safe.)  Be careful to do the right thing even when file
26749         descriptors are scarce and dup fails with errno == EMFILE.  See
26750         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26751
26752 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26753
26754         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26755         * NEWS: Document change.
26756         * m4/regex.m4: Disable test for regoff_t size.
26757
26758 2010-09-13  Jim Meyering  <meyering@redhat.com>
26759
26760         fts: don't operate on an invalid file descriptor after failed dup
26761         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26762         negative file descriptor.
26763
26764 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26765
26766         savedir: add streamsavedir, deprecate fdsavedir
26767         * NEWS: Mention deprecation of fdsavedir.
26768         * lib/savedir.c (streamsavedir): New extern function, whose name
26769         ends in "savedir" to be consistent with the others.  This differs
26770         from savedirstream in that it doesn't close its argument.  The
26771         next version of GNU tar will use this instead of fdsavedir, to
26772         avoid some race conditions and conserve file descriptors.
26773         (savedirstream): Reimplement as a wrapper around streamsavedir.
26774         (fdsavedir): Add a comment deprecating this function.  As far as
26775         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26776         * lib/savedir.h (streamsavedir): New decl.
26777         (fdsavedir): Add a comment deprecating this.
26778
26779 2010-09-10  Bruno Haible  <bruno@clisp.org>
26780
26781         langinfo: Fix last commit.
26782         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26783         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26784         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26785
26786 2010-09-10  Bruno Haible  <bruno@clisp.org>
26787
26788         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26789         * lib/progreloc.c (O_EXEC): Define fallback.
26790
26791 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26792
26793         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26794         * NEWS: Document recent changes to fcntl-h.
26795         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26796         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26797         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26798         Similarly for O_SEARCH; this last was already true, but not documented.
26799         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26800         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26801         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26802         Likewise.
26803         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26804         is zero, not whether it is defined.
26805         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26806         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26807         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26808
26809 2010-09-10  Bruno Haible  <bruno@clisp.org>
26810
26811         langinfo, nl_langinfo: Fix for IRIX 5.3.
26812         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26813         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26814         HAVE_LANGINFO_YESEXPR.
26815         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26816         HAVE_LANGINFO_YESEXPR.
26817         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26818         HAVE_LANGINFO_T_FMT_AMPM is 0.
26819         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26820         HAVE_LANGINFO_YESEXPR is 0.
26821         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26822         NOEXPR.
26823         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26824         * doc/posix-functions/nl_langinfo.texi: Likewise.
26825         Reported by Eric Blake.
26826
26827 2010-09-10  Bruno Haible  <bruno@clisp.org>
26828
26829         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26830         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26831         on FreeBSD 8.0 and OpenBSD 4.6.
26832         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26833         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26834         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26835         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26836         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26837         ac_includes_default.
26838         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26839
26840 2010-09-09  Eric Blake  <eblake@redhat.com>
26841
26842         strsignal: work around NetBSD bug
26843         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26844         * lib/string.in.h (includes): Likewise.
26845         * doc/posix-functions/strsignal.texi (strsignal): Document the
26846         bug.
26847         Reported by Nelson H. F. Beebe.
26848
26849         gnulib-tool: work with NetBSD /bin/sh
26850         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26851         (func_get_description, func_get_comment, func_get_status)
26852         (func_get_notice, func_get_applicability, func_get_filelist)
26853         (func_get_dependencies, func_get_autoconf_early_snippet)
26854         (func_get_autoconf_snippet, func_get_automake_snippet)
26855         (func_get_include_directive, func_get_link_directive)
26856         (func_get_license, func_get_maintainer, func_import): Avoid
26857         shell syntax errors from parsing syntax extensions.
26858
26859 2010-09-09  Bruno Haible  <bruno@clisp.org>
26860
26861         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26862         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26863         a reliable way to determine whether the 'alias' command works.
26864
26865 2010-09-08  Jim Meyering  <meyering@redhat.com>
26866
26867         init.sh: penalize a set-x-impaired shell; don't disqualify it
26868         * tests/init.sh: Too many shells corrupt application stderr when
26869         you set -x, so we can't afford to disqualify them, since at least
26870         on Irix-6.5, that would disqualify all bourne shells.
26871         Instead, use a two-pass approach.
26872         On the first pass, try to find a shell that meets the stricter
26873         condition that set -x does not corrupt stderr.
26874         If no shell meets the stricter condition, retest each candidate
26875         shell, but without that extra condition.  Finally, when
26876         VERBOSE=yes is requested and set -x might cause trouble, simply
26877         issue a warning and refrain from enabling debug output.
26878
26879 2010-09-08  Eric Blake  <eblake@redhat.com>
26880
26881         unsetenv: fix OpenBSD bug
26882         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26883         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26884         documentation.
26885         Reported by Jim Meyering.
26886
26887         strtod: work around IRIX 6.5 bug
26888         * lib/strtod.c (strtod): Reparse number on shorter string if
26889         exponent parse was invalid.
26890         * tests/test-strtod.c (main): Add check for "0x1p 2".
26891         Reported by Tom G. Christensen.
26892
26893         getopt: optimize previous patch
26894         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26895         empty variable.  Speed up awk script.
26896         Reported by Paolo Bonzini.
26897
26898 2010-09-08  Jim Meyering  <meyering@redhat.com>
26899
26900         test.sh: disqualify shells for which set -x corrupts stderr
26901         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26902         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26903         appear in stderr output.  For example, this command:
26904             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26905         prints "P=1" on those two systems:
26906
26907 2010-09-08  Bruno Haible  <bruno@clisp.org>
26908
26909         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26910         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26911         commands, because some shells ignore redirections when there is an
26912         error in the command lookup.
26913         Reported by Eric Blake.
26914
26915 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26916
26917         * lib/regex.h: Fix a mention of `regex_compile' (should be
26918         `re_compile_pattern').
26919         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26920         (re_set_registers): Correct name of parameter in comment.
26921
26922         * doc/regex.texi: Add documentation for missing syntax flags.
26923         Remove commented-out documentation of defunct syntax option
26924         RE_NO_EMPTY_ALTS.
26925         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26926         Add documentation of re_set_registers.
26927         Document trick to re-use a pattern buffer by setting fastmap manually.
26928         Update documentation of struct re_pattern_buffer per public members.
26929         Uncomment documentation of equivalence class operators and
26930         collating symbol operators, since they are now implemented,
26931         Explain leftmost-longest matching in relation to alternatives.
26932         Tidy documentation of substring matching.
26933         Remove POSIX documentation, which is done better in
26934         glibc, and refer the reader there. Keep BSD API documentation, as
26935         that is not readily available elsewhere.
26936
26937 2010-09-07  Eric Blake  <eblake@redhat.com>
26938
26939         getopt: handle POSIXLY_CORRECT set but not exported
26940         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26941         export state of POSIXLY_CORRECT, due to bash set -o posix.
26942         Reported by Dustin J. Mitchell.
26943
26944 2010-09-05  Bruno Haible  <bruno@clisp.org>
26945
26946         gnulib-tool: Highlight the changed options.
26947         * gnulib-tool (func_usage): Display the --import, --add-import,
26948         --remove-import explanations in bold font.
26949
26950 2010-09-06  Karl Berry  <karl@gnu.org>
26951
26952         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26953
26954 2010-09-05  Bruno Haible  <bruno@clisp.org>
26955
26956         uniwidth/width: Update comment.
26957         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26958         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26959
26960 2010-09-05  Bruno Haible  <bruno@clisp.org>
26961
26962         isinf, isnan: Relax license.
26963         * modules/isinf (License): Change from GPL to LGPL, with consent from
26964         Ben Pfaff.
26965         * modules/isnan (License): Likewise.
26966         Requested by Ludovic Courtès.
26967
26968 2010-09-04  Bruno Haible  <bruno@clisp.org>
26969
26970         gnulib-tool: Help migration from --import to --add-import or --update.
26971         * gnulib-tool: Emit a verbose error message when --import is used
26972         without any module name.
26973
26974 2010-09-04  Bruno Haible  <bruno@clisp.org>
26975
26976         Update doc about gnulib-tool.
26977         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26978         'gnulib-tool --update' in more detail.
26979         Reported by Eric Blake.
26980
26981 2010-09-04  Bruno Haible  <bruno@clisp.org>
26982
26983         gnulib-tool: Change --import. New options --add/remove-import.
26984         * gnulib-tool: New options --add-import, --remove-import.
26985         (func_usage): Document them.
26986         (have_associative): Define always.
26987         (func_import): In import mode, don't merge the specified settings with
26988         the cached settings. Implement remove-import mode.
26989         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26990         Explain when to use them versus --import.
26991         (Simple update): Use --add-import instead of --import.
26992         * NEWS: Mention the change.
26993
26994 2010-09-04  Bruno Haible  <bruno@clisp.org>
26995
26996         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26997         separate gnulib.mk.
26998
26999 2010-09-04  Bruno Haible  <bruno@clisp.org>
27000
27001         gnulib-tool: Don't talk about CVS any more.
27002         * gnulib-tool (func_usage, func_import): Write "version control"
27003         instead of CVS.
27004
27005 2010-09-04  Jim Meyering  <meyering@redhat.com>
27006
27007         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27008         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27009         false positives (whose names may be ill-chosen) when searching
27010         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27011         would cause a false-positive.
27012
27013         avoid coreutils "make distcheck" failure
27014         Coreutils tests with an absolute build directory name that contains
27015         a space.  Not quoting this directory name caused a failure.
27016         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27017         * tests/test-vc-list-files-cvs.sh: Likewise.
27018
27019 2010-09-04  Bruno Haible  <bruno@clisp.org>
27020
27021         gnulib-tool: Avoid error when run in a package without Makefile.am.
27022         * gnulib-tool: When collecting the m4dirs in a package that does not
27023         have a Makefile.am, eliminate those directories that contain no
27024         gnulib-cache.m4. Fix expression that counts these directories.
27025
27026 2010-09-04  Bruno Haible  <bruno@clisp.org>
27027
27028         update-copyright test: Improve output when perl is missing or too old.
27029         * tests/test-update-copyright.sh: Move test of Perl version down after
27030         the test whether Perl exists. Provide an explanation relating Perl's
27031         error message to Automake's SKIP: message.
27032
27033 2010-09-04  Bruno Haible  <bruno@clisp.org>
27034
27035         Don't augment PATH in TESTS_ENVIRONMENT.
27036         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27037         set abs_aux_dir instead of augmenting PATH.
27038         * modules/vc-list-files-tests (Makefile.am): Likewise.
27039         * tests/test-update-copyright.sh: Augment PATH here.
27040         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27041         path_prepend_.
27042         * tests/test-vc-list-files-git.sh: Likewise.
27043
27044 2010-09-04  Jim Meyering  <meyering@redhat.com>
27045
27046         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27047         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27048
27049 2010-09-04  Bruno Haible  <bruno@clisp.org>
27050
27051         strdup: Fix compilation error in C++ mode.
27052         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27053         the macro.
27054
27055 2010-09-04  Bruno Haible  <bruno@clisp.org>
27056
27057         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27058         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27059         macro into a function.
27060         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27061
27062 2010-09-04  Bruno Haible  <bruno@clisp.org>
27063
27064         Set PATH_SEPARATOR the same way autoconf does.
27065         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27066         the value of PATH_SEPARATOR the same way autoconf-generated configure
27067         scripts do.
27068         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27069         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27070
27071 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27072
27073         Set PATH_SEPARATOR the same way autoconf does.
27074         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27075         the same way autoconf-generated configure scripts do.
27076         * posix-modules: Likewise.
27077
27078 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27079
27080         hash: fix safe_hasher const typo
27081         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27082         const; otherwise, there is a type error later.
27083
27084 2010-09-02  Jim Meyering  <meyering@redhat.com>
27085
27086         test-update-copyright.sh: require perl 5.8.0
27087         * tests/test-update-copyright.sh: Require 5.8.0,
27088         which Tom G. Christensen has confirmed is adequate,
27089         while 5.6.1 is not.
27090
27091 2010-09-02  Eric Blake  <eblake@redhat.com>
27092
27093         tests: init.sh improvements for re-exec'ing with zsh
27094         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27095         -vx through shell re-exec.
27096         Reported by Tom G. Christensen.
27097
27098         wctype: fix typo in previous commit
27099         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27100         Reported by Ludovic Courtès.
27101
27102 2010-09-02  Jim Meyering  <meyering@redhat.com>
27103
27104         test-update-copyright.sh: skip test if Perl is too old
27105         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27106         Reported by Tom G. Christensen.
27107
27108 2010-09-02  Bruno Haible  <bruno@clisp.org>
27109
27110         wctype: Avoid compilation error on IRIX 6.5.30.
27111         * lib/wctype.in.h (iswblank): Declare with a replacement if
27112         REPLACE_ISWBLANK is set.
27113         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27114         declared. Set REPLACE_ISWBLANK.
27115         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27116         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27117         * doc/posix-headers/wctype.texi: Likewise.
27118         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27119
27120 2010-09-01  Bruno Haible  <bruno@clisp.org>
27121
27122         New module 'socketlib'.
27123         * modules/socketlib: New file.
27124         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27125         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27126         * modules/sockets (Depends-on): Add socketlib.
27127         Suggested by Sam Steingold <sds@gnu.org>.
27128
27129 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27130
27131         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27132
27133         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27134         when one needs search access to a directory but not read access.
27135         On systems where it is available, it works in some cases where
27136         O_RDONLY does not, namely on directories that are searchable but
27137         not readable, and which need only to be searchable.  If O_SEARCH
27138         is not available, fall back to the traditional method of using
27139         O_RDONLY.
27140
27141         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27142         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27143         when opening a directory that needs only to be searchable.
27144         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27145         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27146         * lib/openat-proc.c (openat_proc_name): Likewise.
27147         * lib/openat.c (openat_needs_fchdir): Likewise.
27148         * lib/save-cwd.c (save_cwd): Likewise.
27149         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27150
27151 2010-08-28  Bruno Haible  <bruno@clisp.org>
27152
27153         New module 'host-cpu-c-abi'.
27154         * modules/host-cpu-c-abi: New file.
27155         * m4/host-cpu-c-abi.m4: New file, based on part of
27156         clisp/src/m4/general.m4.
27157         Requested by Sam Steingold <sds@gnu.org>.
27158
27159 2010-08-31  Eric Blake  <eblake@redhat.com>
27160         and Jim Meyering  <meyering@redhat.com>
27161
27162         hash: factor, and guard against misbehaving hasher function
27163         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27164         of table->hasher's return value.  Also protect against a hash value
27165         so large that adding it to table->bucket results in a NULL pointer.
27166         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27167         Use it in place of open-coded check-and-abort.
27168
27169 2010-08-30  Bruno Haible  <bruno@clisp.org>
27170
27171         hash: silence spurious clang warning
27172         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27173         Reported by Eric Blake.
27174
27175 2010-08-30  Eric Blake  <eblake@redhat.com>
27176
27177         strstr, memmem, strcasestr: avoid leaked shell message
27178         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27179         FreeBSD.
27180         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27181         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27182
27183         tests: silence clang warning
27184         * tests/test-malloca.c (do_allocation): Avoid dead store.
27185
27186 2010-08-29  Bruno Haible  <bruno@clisp.org>
27187
27188         gettext: Fix recent mistake.
27189         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27190
27191 2010-08-29  Bruno Haible  <bruno@clisp.org>
27192
27193         selinux-h: Offer a --without-selinux option.
27194         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27195         --without-selinux was specified, skip all tests and define
27196         HAVE_SELINUX_SELINUX_H to 0.
27197         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27198         set LIB_SELINUX to empty.
27199         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27200         gl_LIBSELINUX. If --without-selinux was specified, replace
27201         selinux/context.h.
27202         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27203
27204 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27205             Bruno Haible  <bruno@clisp.org>
27206
27207         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27208         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27209         of HAVE_REALLOC.
27210         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27211         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27212         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27213         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27214
27215 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27216             Bruno Haible  <bruno@clisp.org>
27217
27218         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27219         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27220         HAVE_CALLOC.
27221         * lib/xmalloc.c: Update accordingly.
27222         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27223         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27224         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
27225
27226 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27227             Bruno Haible  <bruno@clisp.org>
27228
27229         Make the module 'malloc-gnu' work again on AIX and OSF/1.
27230         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27231         HAVE_MALLOC.
27232         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27233         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27234         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27235
27236 2010-08-29  Bruno Haible  <bruno@clisp.org>
27237
27238         Update modules list.
27239         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27240         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27241         (String handling <string.h>): Add astrxfrm.
27242         (File system functions): Add readlinkat.
27243
27244 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27245
27246         Tests for module 'realloc-gnu'.
27247         * modules/realloc-gnu-tests: New file.
27248         * tests/test-realloc-gnu.c: New file.
27249
27250         Tests for module 'calloc-gnu'.
27251         * modules/calloc-gnu-tests: New file.
27252         * tests/test-calloc-gnu.c: New file.
27253
27254         Tests for module 'malloc-gnu'.
27255         * modules/malloc-gnu-tests: New file.
27256         * tests/test-malloc-gnu.c: New file.
27257
27258 2010-08-28  Bruno Haible  <bruno@clisp.org>
27259
27260         Rename module 'realloc' -> 'realloc-gnu'.
27261         * modules/realloc-gnu: New file, copied from modules/realloc.
27262         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
27263         obsolete.
27264         * modules/mgetgroups (Depends-on): Update.
27265         * doc/posix-functions/realloc.texi: Update.
27266         * NEWS: Mention the change.
27267
27268         Rename module 'calloc' -> 'calloc-gnu'.
27269         * modules/calloc-gnu: New file, copied from modules/calloc.
27270         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27271         obsolete.
27272         * doc/posix-functions/calloc.texi: Update.
27273         * NEWS: Mention the change.
27274
27275         Rename module 'malloc' -> 'malloc-gnu'.
27276         * modules/malloc-gnu: New file, copied from modules/malloc.
27277         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27278         obsolete.
27279         * modules/argp (Depends-on): Update.
27280         * modules/regex (Depends-on): Update.
27281         * doc/posix-functions/malloc.texi: Update.
27282         * NEWS: Mention the change.
27283
27284 2010-08-28  Eric Blake  <eblake@redhat.com>
27285
27286         pread, pwrite: add missing dependency
27287         * modules/pread (Depends-on): Add extensions.
27288         * modules/pwrite (Depends-on): Likewise.
27289
27290 2010-08-28  Bruno Haible  <bruno@clisp.org>
27291
27292         unistr/u*-strchr: Fix tests dependencies.
27293         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27294         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27295         Reported by Ian Beckwith <ianb@erislabs.net>.
27296
27297 2010-08-28  Bruno Haible  <bruno@clisp.org>
27298
27299         read-file: Don't occupy too much unused memory.
27300         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27301
27302 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27303             Eric Blake  <eblake@redhat.com>
27304             Bruno Haible  <bruno@clisp.org>
27305
27306         read-file: Avoid memory reallocations with regular files.
27307         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27308         (fread_file): With regular files, use the remaining length as the
27309         initial buffer size.  Check against overflow.
27310         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27311         sys_stat.
27312
27313 2010-08-28  Bruno Haible  <bruno@clisp.org>
27314
27315         ftello: Relax license.
27316         * modules/ftello (License): Relax to LGPLv2+.
27317         Reported by Eric Blake.
27318
27319 2010-08-28  Bruno Haible  <bruno@clisp.org>
27320
27321         Avoid relocwrapper link errors due to gnulib replacement functions.
27322         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27323         function.
27324         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27325
27326 2010-08-28  Bruno Haible  <bruno@clisp.org>
27327
27328         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
27329         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
27330         defined.
27331         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
27332         Suggested by Eric Blake.
27333
27334 2010-08-28  Bruno Haible  <bruno@clisp.org>
27335
27336         sys_socket, netdb: Ensure socklen_t gets defined.
27337         * modules/sys_socket (Depends-on): Add socklen.
27338         * modules/netdb (Depends-on): Likewise.
27339         * modules/getaddrinfo (Depends-on): Remove socklen.
27340         * modules/getsockopt (Depends-on): Likewise.
27341         * modules/setsockopt (Depends-on): Likewise.
27342         * tests/test-sys_socket.c: Check that socklen_t is defined.
27343         * tests/test-netdb.c: Likewise.
27344         * m4/socklen.m4: Update comments.
27345         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27346
27347 2010-08-27  Eric Blake  <eblake@redhat.com>
27348
27349         login_tty: add missing dependency
27350         * modules/login_tty (Depends-on): Add pty.
27351
27352 2010-08-26  Eric Blake  <eblake@redhat.com>
27353
27354         lib-symbol-versions: fix m4 quoting
27355         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
27356         format for AC_LINK_IFELSE.
27357
27358         glob: fix compile test
27359         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
27360
27361         btowc: fix missing file
27362         * modules/btowc (Files): Also ship locale-fr.m4.
27363
27364         lseek: fix link test
27365         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
27366         AC_LINK_IFELSE.
27367
27368         include_next: silence autoconf 2.68 warning
27369         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
27370         AC_COMPILE_IFELSE as special.
27371         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
27372         autoconf < 2.68.
27373
27374         acl: fix compilation test
27375         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
27376         AC_COMPILE_IFELSE.
27377
27378 2010-08-26  Bruno Haible  <bruno@clisp.org>
27379
27380         Modernize AC_TRY_RUN invocations.
27381         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
27382         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27383         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
27384         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
27385         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27386         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27387         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27388         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27389         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27390         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27391         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27392         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27393         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27394         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27395         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27396         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27397         gl_MBRLEN_NUL_RETVAL): Likewise.
27398         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27399         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27400         Likewise.
27401         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27402         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27403         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27404         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27405         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
27406         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
27407         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
27408         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27409         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
27410         Likewise.
27411         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27412         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
27413         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27414         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27415         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27416         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27417         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27418         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
27419         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27420         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27421
27422 2010-08-26  Bruno Haible  <bruno@clisp.org>
27423
27424         Modernize AC_TRY_LINK invocations.
27425         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
27426         AC_TRY_LINK.
27427         * m4/argp.m4 (gl_ARGP): Likewise.
27428         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27429         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27430         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27431         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27432         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27433         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27434         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27435         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27436         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27437         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27438         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27439         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
27440         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
27441         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27442         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27443         * m4/hostent.m4 (gl_HOSTENT): Likewise.
27444         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27445         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
27446         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27447         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
27448         Likewise.
27449         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
27450         Likewise.
27451         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
27452         Likewise.
27453         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27454         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
27455         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
27456         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27457         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27458         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27459         * m4/servent.m4 (gl_SERVENT): Likewise.
27460         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27461         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27462         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27463         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27464         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27465         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27466         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27467         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27468         * modules/tsearch-tests (configure.ac): Likewise.
27469
27470 2010-08-26  Bruno Haible  <bruno@clisp.org>
27471
27472         Modernize AC_TRY_COMPILE invocations.
27473         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
27474         AC_TRY_COMPILE.
27475         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
27476         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
27477         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27478         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
27479         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27480         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27481         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27482         * m4/lock.m4 (gl_LOCK): Likewise.
27483         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27484         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27485         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27486         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27487         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27488         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27489         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27490         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27491         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27492         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27493         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27494         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27495         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27496         extraneous semicolon.
27497
27498 2010-08-26  Jim Meyering  <meyering@redhat.com>
27499
27500         stat-time: relax license LGPL
27501         * modules/stat-time (License): Change from GPL to LGPL,
27502         with consent from all contributors, for use in libguile.
27503         Requested by Ludovic Courtès.
27504
27505 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27506
27507         poll: return immediately on POLLHUP.
27508         * lib/poll.c (poll): Always set timeout before wait_timeout is
27509         computed.
27510
27511 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27512
27513         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27514         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27515         rmdir ("dir/.//"), unlinkat.
27516
27517 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27518
27519         stdbool: avoid spurious failure with modern xlc
27520         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27521
27522 2010-08-24  Bruno Haible  <bruno@clisp.org>
27523
27524         getloadavg: simplify code
27525         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27526         gl_have_func. Update comments.
27527
27528 2010-08-24  Eric Blake  <eblake@redhat.com>
27529
27530         getloadavg: don't define SVR4 on cygwin
27531         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27532         only define SVR4 when -lkvm is required.
27533         Reported by Yaakov Selkowitz.
27534
27535 2010-08-24  Bruno Haible  <bruno@clisp.org>
27536
27537         priv-set: fix comment
27538         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27539
27540 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27541
27542         priv-set: fix comments
27543         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27544         to match code, as suggested by David Bartley in:
27545         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27546
27547 2010-08-23  Eric Blake  <eblake@redhat.com>
27548
27549         stdbool: avoid rejecting clang
27550         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27551         * tests/test-stdbool.c: Enable more tests if using the system
27552         <stdbool.h> instead of the gnulib replacement.
27553         (main): Move xlc bug test to a runtime test for all compilers.
27554         Reported by Anders Kaseorg.
27555
27556         argz: fix shell quoting issue
27557         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27558         Reported by Charles Wilson.
27559
27560 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27561             Erik Faye-Lund <kusmabite@gmail.com>
27562
27563         poll, select: handle ERROR_BROKEN_PIPE.
27564         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27565         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27566         * lib/select.c (win32_compute_revents): Do not mark a pipe
27567         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27568
27569 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27570
27571         fts: allow compilation with C++
27572         * lib/fts_.h: Specify extern "C" linkage with C++.
27573
27574 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27575
27576         Fix gnulib-tool sed script de-commentation for AIX sed.
27577         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27578         sed.
27579
27580 2010-08-17  Eric Blake  <eblake@redhat.com>
27581
27582         test-stddef: test for (some) offsetof bugs
27583         * tests/test-stddef.c: Enhance test to ensure correct type of
27584         offsetof.
27585         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27586         that we are not fixing at this time.
27587
27588 2010-08-15  Bruno Haible  <bruno@clisp.org>
27589
27590         stpncpy: Allow stpncpy to be defined as a macro.
27591         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27592         if it's already correctly declared.
27593         * lib/string.in.h (stpncpy): Undefine before redefining.
27594         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27595
27596 2010-08-14  Bruno Haible  <bruno@clisp.org>
27597
27598         Rename module 'memxfrm' to 'amemxfrm'.
27599         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27600         (amemxfrm): Renamed from memxfrm.
27601         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27602         (amemxfrm): Renamed from memxfrm.
27603         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27604         * NEWS: Mention the change.
27605         * MODULES.html.sh (String handling <string.h>): Update.
27606         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27607         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27608         * lib/unicase/u16-casexfrm.c: Likewise.
27609         * lib/unicase/u32-casexfrm.c: Likewise.
27610         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27611         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27612         * lib/uninorm/u16-normxfrm.c: Likewise.
27613         * lib/uninorm/u32-normxfrm.c: Likewise.
27614         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27615         memxfrm.
27616         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27617         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27618         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27619         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27620         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27621         Suggested by Paul Eggert.
27622
27623 2010-08-14  Bruno Haible  <bruno@clisp.org>
27624
27625         Tests for module 'astrxfrm'.
27626         * modules/astrxfrm-tests: New file.
27627         * tests/test-astrxfrm.c: New file.
27628
27629         New module 'astrxfrm'.
27630         * lib/astrxfrm.h: New file.
27631         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27632         * modules/astrxfrm: New file.
27633
27634 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27635
27636         regex: Tweak doc.
27637         * doc/regex.texi (Overview): Don't mention regex.c.
27638         (GNU Regular Expression Compiling): Likewise.
27639         (Match-end-of-line Operator): Mention 'not_eol'.
27640
27641 2010-08-14  Brian Gough  <bjg@gnu.org>
27642             Bruno Haible  <bruno@clisp.org>
27643
27644         git-merge-changelog: add doc relating to use with bzr and hg.
27645         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27646
27647 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27648
27649         pthread: fix pthread.h creation for srcdir != builddir
27650         * modules/pthread (Makefile.am): Fix the rule to work also in a
27651         non-srcdir build.
27652
27653 2010-08-13  Karl Berry  <karl@gnu.org>
27654
27655         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27656         * doc/posix-*/*: force line break before @url of POSIX
27657         specifications.
27658         Suggested by Werner Lemberg.
27659
27660 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27661
27662         strtod: fix const diagnostic
27663         * lib/strtod.c (strtod): Don't assign const char * to char *,
27664         as this elicits a warning from GCC when warnings are enabled.
27665
27666 2010-08-10  Pádraig Brady <P@draigbrady.com>
27667         and Eric Blake  <eblake@redhat.com>
27668
27669         copy-acl: ignore ENOTSUP on HP-UX
27670         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27671         so that it is available for HP-UX.
27672         * lib/copy-acl.c (qcopy_acl): Use it.
27673         Reported by Patrick M. Callahan.
27674
27675 2010-08-10  Eric Blake  <eblake@redhat.com>
27676
27677         open, chown: relax license
27678         * modules/open (License): Change to LGPLv2+, with consent by all
27679         authors, for use in augeas.
27680         * modules/chown (License): Likewise.
27681         * modules/lchown (Likewise): Likewise.
27682         Requested by Adam Stokes.
27683
27684 2010-08-09  Karl Berry  <karl@gnu.org>
27685
27686         * build-aux/ar-lib: new file, import from Automake.
27687         * config/srclist.txt: autocheck for updates.
27688
27689 2010-08-09  Eric Blake  <eblake@redhat.com>
27690
27691         readlinkat: adjust client modules
27692         * modules/areadlinkat (Depends-on): Use readlinkat, not
27693         symlinkat.
27694         * modules/areadlinkat-with-size (Depends-on): Likewise.
27695
27696         mknod: be more vocal about danger of running tests as root
27697         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27698         root, since that is just asking for problems.
27699         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27700
27701         readlinkat: split into its own module
27702         * modules/symlinkat: Split readlinkat...
27703         * modules/readlinkat: ...into separate module.
27704         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27705         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27706         * lib/symlinkat.c (readlinkat): Move...
27707         * lib/readlinkat.c: ...into new file.
27708         * modules/symlinkat-tests: Split readlinkat test...
27709         * modules/readlinkat-tests: ...into separate module.
27710         * tests/test-symlinkat.c: Split...
27711         * tests/test-readlinkat.c: ...into new file.
27712         * NEWS: Document the split.
27713         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27714         * lib/unistd.in.h (readlinkat): Likewise.
27715         Suggested by Bruno Haible.
27716
27717 2010-08-08  Bruno Haible  <bruno@clisp.org>
27718
27719         memxfrm: Speed up.
27720         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27721         that usually only one call to strxfrm is necessary for each string
27722         part.
27723         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27724
27725 2010-08-07  Karl Berry  <karl@gnu.org>
27726
27727         * doc/posix-headers/limits.texi,
27728         * doc/posix-functions/malloc.texi,
27729         * doc/posix-functions/strsignal.texi: missing @item.
27730         * doc/ld-version-script.texi: spurious leading i.
27731         * doc/regex.texi (Interval Operators): no commas inside @var.
27732
27733 2010-08-01  Bruno Haible  <bruno@clisp.org>
27734
27735         Integrate the regex documentation.
27736         * doc/gnulib.texi: Define 'cn' index.
27737         (Regular expressions): New a chapter that includes regex.texi and
27738         regexprops-generic.texi.
27739         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27740         syntax.
27741
27742         Whitespace cleanup.
27743         * doc/regex.texi: Remove trailing spaces.
27744
27745         Add regex documentation.
27746         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27747         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27748         Written by Kathy A. Hargreaves and Karl Berry.
27749
27750 2010-08-01  Bruno Haible  <bruno@clisp.org>
27751
27752         link: Update documentation.
27753         * doc/posix-functions/link.texi: Update regarding Solaris.
27754
27755 2010-07-31  Bruno Haible  <bruno@clisp.org>
27756
27757         Update modules list.
27758         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27759         (String handling <string.h>): Add memcmp2, memxfrm.
27760         (Container data structures): Add xlist, xsublist, xoset.
27761         (Core language properties): Add alignof, unused-parameter.
27762         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27763         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27764         (Unibyte characters <ctype.h>): New section.
27765         (String handling <string.h>): New section.
27766         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27767         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27768         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27769         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27770         tan, tanh, tanl, y0, y1, yn.
27771         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27772         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27773         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27774         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27775         unlockpt, vdprintf, vdprintf-posix.
27776         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27777         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27778         xconcat-filename.
27779         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27780         getdtablesize, pipe2, pipe2-safer.
27781         (Security): New section.
27782         (Networking functions): Add accept4.
27783         (Signal handling): Add sigpipe.
27784         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27785         mbmemcasecoll.
27786         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27787         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27788         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27789         pipe-filter-ii.
27790         (Misc): Add argp-version-etc, login_tty, parse-duration.
27791
27792 2010-07-31  Bruno Haible  <bruno@clisp.org>
27793
27794         Improve doc in MODULES.html.
27795         * modules/linkat (Description): Add the word "function".
27796         * modules/mkfifo (Description): Likewise.
27797         * modules/mknod (Description): Likewise.
27798         * modules/remove (Description): Likewise.
27799         * modules/renameat (Description): Likewise.
27800         * modules/stat (Description): Likewise.
27801         * modules/symlink (Description): Likewise.
27802         * modules/unlink (Description): Likewise.
27803
27804 2010-07-31  Bruno Haible  <bruno@clisp.org>
27805
27806         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27807         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27808         option --enable/disable-c++ instead of --enable/disable-cxx.
27809         * NEWS: Mention the change.
27810
27811 2010-07-31  Bruno Haible  <bruno@clisp.org>
27812
27813         readlink, areadlink: Relax test a bit.
27814         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27815         alternative to ENOTDIR.
27816         * tests/test-areadlink.h (test_areadlink): Likewise.
27817         Reported by Rainer Tammer.
27818
27819 2010-07-31  Bruno Haible  <bruno@clisp.org>
27820
27821         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27822         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27823         character, perform the search using U_STRCHR.
27824         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27825         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27826         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27827         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27828         Suggested by Paolo Bonzini.
27829
27830 2010-07-31  Bruno Haible  <bruno@clisp.org>
27831
27832         unistr/u*-strstr: Fix dependencies.
27833         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27834         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27835         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27836
27837 2010-07-31  Bruno Haible  <bruno@clisp.org>
27838
27839         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27840         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27841         the beginning of the loop.
27842         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27843         cases in 'switch' statement.
27844
27845         unistr/u8-strchr: Fix several bugs.
27846         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27847         the string. When not found, return NULL, not a pointer near the end.
27848
27849         More tests for unistr/u8-strchr.
27850         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27851         that the function does not read past the first occurrence of the byte
27852         being searched.
27853         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27854         * tests/unistr/test-u16-strchr.c (main): New function.
27855         * tests/unistr/test-u32-strchr.c (main): New function.
27856
27857 2010-07-31  Bruno Haible  <bruno@clisp.org>
27858
27859         posix-modules: Ignore backup files of documentation files.
27860         * posix-modules: grep only through files named *.texi.
27861
27862 2010-07-31  Bruno Haible  <bruno@clisp.org>
27863
27864         symlinkat: Fix documentation.
27865         * doc/posix-functions/readlinkat.texi: Fix module name.
27866
27867 2010-07-31  Bruno Haible  <bruno@clisp.org>
27868
27869         fchownat: Replace also when chown has the trailing slash bug.
27870         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27871         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27872         introduced on 2010-04-10.
27873         Reported by Rainer Tammer.
27874
27875 2010-07-31  Bruno Haible  <bruno@clisp.org>
27876
27877         linkat: Work around AIX 7.1 bug.
27878         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27879         whether linkat handles trailing slash correctly. If not, replace linkat
27880         and define LINKAT_TRAILING_SLASH_BUG.
27881         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27882         check whether (fd1,file1) points to a directory if file1 or file2 ends
27883         in a slash. Code taken from lib/link.c.
27884         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27885         Reported by Rainer Tammer.
27886
27887 2010-07-31  Bruno Haible  <bruno@clisp.org>
27888
27889         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27890         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27891         This disables an xlc optimization that was causing wrong test results.
27892         Reported by Rainer Tammer.
27893
27894 2010-07-31  Bruno Haible  <bruno@clisp.org>
27895
27896         iconv: Work around AIX 6.1..7.1 bug.
27897         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27898         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27899         cross-compiling, guess no on all versions of AIX.
27900         Reported by Rainer Tammer.
27901
27902 2010-07-31  Bruno Haible  <bruno@clisp.org>
27903
27904         readlink: Relax test a bit.
27905         * tests/test-readlink.h (test_readlink): Allow different errno value
27906         when readlink is called with a file name that ends in / and refers to
27907         a file.
27908         Suggested by Eric Blake.
27909         Reported by Rainer Tammer.
27910
27911 2010-07-31  Bruno Haible  <bruno@clisp.org>
27912
27913         copysign: Does not require -lm on glibc systems.
27914         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27915         gl_COMMON_DOUBLE_MATHFUNC.
27916         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27917
27918 2010-07-31  Bruno Haible  <bruno@clisp.org>
27919
27920         duplocale: Work around AIX 7.1 bug.
27921         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27922         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27923         * lib/duplocale.c (rpl_duplocale): Update comment.
27924         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27925         Reported by Rainer Tammer.
27926
27927 2010-07-30  Bruno Haible  <bruno@clisp.org>
27928
27929         dirfd: Avoid link error on AIX 7.1.
27930         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27931         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27932         exist, set REPLACE_DIRFD.
27933         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27934         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27935         * doc/posix-functions/dirfd.texi: Update.
27936         Reported by Rainer Tammer.
27937
27938 2010-07-30  Eric Blake  <eblake@redhat.com>
27939
27940         strtod: next round of AIX fixes
27941         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27942         exponent.
27943         * tests/test-strtod.c (main): Enhance tests.
27944         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27945         Reported by Rainer Tammer.
27946
27947         futimens: fix configure check
27948         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27949         Reported by Bruno Haible.
27950
27951 2010-07-30  Bruno Haible  <bruno@clisp.org>
27952
27953         getline: Update regarding AIX.
27954         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27955         Reported by Rainer Tammer.
27956
27957 2010-07-30  Bruno Haible  <bruno@clisp.org>
27958
27959         wcwidth: Drop replacement on AIX 7.
27960         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27961         AIX 7.
27962         Reported by Rainer Tammer.
27963
27964 2010-07-30  Bruno Haible  <bruno@clisp.org>
27965
27966         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27967         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27968         a 'char *'.
27969         Reported by Rainer Tammer.
27970
27971 2010-07-30  Bruno Haible  <bruno@clisp.org>
27972
27973         unlink: Update regarding AIX.
27974         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27975         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27976         Reported by Rainer Tammer.
27977
27978 2010-07-30  Bruno Haible  <bruno@clisp.org>
27979
27980         symlink: Update regarding AIX.
27981         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27982         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27983         Reported by Rainer Tammer.
27984
27985 2010-07-30  Bruno Haible  <bruno@clisp.org>
27986
27987         strndup: Update regarding AIX.
27988         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27989         AIX 7.
27990         Reported by Rainer Tammer.
27991
27992 2010-07-30  Bruno Haible  <bruno@clisp.org>
27993
27994         stat: Update regarding AIX.
27995         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27996         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27997         Reported by Rainer Tammer.
27998
27999 2010-07-30  Bruno Haible  <bruno@clisp.org>
28000
28001         truncl: Fix autoconf test.
28002         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28003         whether truncl works.
28004         Reported by Rainer Tammer.
28005
28006 2010-07-30  Bruno Haible  <bruno@clisp.org>
28007
28008         round: Update regarding AIX.
28009         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28010         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28011         Reported by Rainer Tammer.
28012
28013 2010-07-30  Bruno Haible  <bruno@clisp.org>
28014
28015         rename: Update regarding AIX.
28016         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28017         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28018         Reported by Rainer Tammer.
28019
28020 2010-07-30  Bruno Haible  <bruno@clisp.org>
28021
28022         printf.m4: Update regarding AIX.
28023         * m4/printf.m4: Update comments regarding AIX.
28024         Reported by Rainer Tammer.
28025
28026 2010-07-30  Bruno Haible  <bruno@clisp.org>
28027
28028         iconv: Update regarding AIX.
28029         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28030         AIX 7.
28031         Reported by Rainer Tammer.
28032
28033 2010-07-30  Bruno Haible  <bruno@clisp.org>
28034
28035         getopt: Update regarding AIX.
28036         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28037         no on AIX.
28038         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28039         Reported by Rainer Tammer.
28040
28041 2010-07-30  Bruno Haible  <bruno@clisp.org>
28042
28043         ldexpl; Update regarding AIX.
28044         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28045         on AIX 7.
28046         Reported by Rainer Tammer.
28047
28048 2010-07-30  Bruno Haible  <bruno@clisp.org>
28049
28050         frexpl: Update regarding AIX.
28051         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28052         on AIX 7.
28053         Reported by Rainer Tammer.
28054
28055 2010-07-30  Bruno Haible  <bruno@clisp.org>
28056
28057         open, fopen: Update regarding AIX.
28058         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28059         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28060         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28061         * doc/posix-functions/fopen.texi: Likewise.
28062         Reported by Rainer Tammer.
28063
28064 2010-07-30  Bruno Haible  <bruno@clisp.org>
28065
28066         chown: Update doc regarding AIX.
28067         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28068         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28069         Reported by Rainer Tammer.
28070
28071 2010-07-30  Eric Blake  <eblake@redhat.com>
28072
28073         strtod: fix bug in replacement function on AIX
28074         * lib/strtod.c (strtod): Special case broken "0x" parse in
28075         underlying strtod.
28076         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28077         * doc/posix-functions/strtod.texi (strtod): Likewise.
28078         Reported by Rainer Tammer.
28079
28080 2010-07-30  Bruno Haible  <bruno@clisp.org>
28081
28082         mbrlen: Fix cross-compilation guess for AIX.
28083         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28084         guess. Leftover from 2008-12-22.
28085
28086 2010-07-30  Bruno Haible  <bruno@clisp.org>
28087
28088         mbrtowc: Fix cross-compilation guess for AIX.
28089         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28090         guess. Leftover from 2008-12-21.
28091
28092 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28093
28094         init.sh: work around trap limitation of some shells
28095         * tests/init.sh (setup_): Move exit trap outside of shell function.
28096
28097 2010-07-29  Eric Blake  <eblake@redhat.com>
28098
28099         strtod: aid debugging
28100         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28101         understanding why strtod is rejected.
28102
28103 2010-07-28  Bruno Haible  <bruno@clisp.org>
28104
28105         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28106         * lib/unistr/u8-chr.c: Include <string.h>.
28107         * tests/unistr/test-u8-chr.c: Likewise.
28108         * tests/unistr/test-u16-chr.c: Likewise.
28109         * tests/unistr/test-u32-chr.c: Likewise.
28110         * tests/unistr/test-u8-strchr.c: Likewise.
28111         * tests/unistr/test-u16-strchr.c: Likewise.
28112         * tests/unistr/test-u32-strchr.c: Likewise.
28113         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28114         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28115         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28116         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28117
28118 2010-07-28  Bruno Haible  <bruno@clisp.org>
28119
28120         Use spaces for indentation, not tabs.
28121         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28122
28123 2010-07-27  Bruno Haible  <bruno@clisp.org>
28124
28125         mbspcasecmp: Fix function specification.
28126         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28127         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28128         Reported by Eric Blake <eblake@redhat.com>.
28129
28130 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28131
28132         timespec: use cast and not conditional, as truncation isn't possible
28133         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28134         instead of a conditional.  Comment about the situation in more detail.
28135         This undoes most of the 2009-10-29 patch.
28136
28137 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28138
28139         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28140         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28141         * lib/unistr/u8-strchr.c: Likewise.
28142         * modules/unistr/u8-chr: Depend on memchr.
28143
28144         unistr/u*-strchr: add tests
28145         * modules/unistr/u8-strchr-tests: New file.
28146         * modules/unistr/u16-strchr-tests: New file.
28147         * modules/unistr/u32-strchr-tests: New file.
28148         * tests/unistr/test-strchr.h: New file.
28149         * tests/unistr/test-u8-strchr.c: New file.
28150         * tests/unistr/test-u16-strchr.c: New file.
28151         * tests/unistr/test-u32-strchr.c: New file.
28152
28153         unistr/u*-chr: test multibyte sequences more
28154         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28155         test vector.
28156         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28157         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28158         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28159
28160         unistr/u*-chr: test multibyte sequences
28161         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28162
28163         unistr/u*-chr: prepare for multibyte tests
28164         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28165         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28166         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28167         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28168         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28169         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28170
28171 2010-07-18  Bruno Haible  <bruno@clisp.org>
28172
28173         unistr/u8-strchr: Optimize non-ASCII argument case.
28174         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28175         because the first byte often matches anyway.
28176         Reported by Pádraig Brady <P@draigbrady.com>.
28177
28178 2010-07-15  Karl Berry  <karl@gnu.org>
28179
28180         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28181
28182 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28183
28184         getcwd: on Solaris, work better if ancestors are inaccessible
28185         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28186         buffer and size, try again with a large buffer.  This works better
28187         on Solaris, since its getcwd succeeds even if the path to the root
28188         is inaccessible, and this is helpful in common cases such as .zfs
28189         hidden directories.  Problem reported by J Chapman Flack in
28190         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28191         Use system getcwd if it's declared, not merely if it's partly
28192         working; use the partly-working test only to avoid needless effort
28193         if the system getcwd fails.
28194         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28195         comment that was already obsolete and is now even more obsolete.
28196         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28197         now might call strdup.
28198
28199 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28200
28201         pthread: Add enough so that coreutils/src/sort.c compiles.
28202         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28203         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28204         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28205         Include <sys/types.h>, in case it defines pthread_t.
28206         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28207         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28208         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28209         (pthread_rwlockattr_t, pthread_spinlock_t):
28210         New typedefs, if HAVE_PTHREAD_T is not defined.
28211         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28212         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28213         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28214         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28215         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28216         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28217         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28218         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28219         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28220         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28221         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28222         New macros.
28223         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28224         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28225         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28226         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28227         (pthread_spin_unlock): New dummy functions.
28228         (pthread_create): Return EAGAIN; don't set errno.
28229         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28230         require AC_C_INLINE.
28231         * modules/pthread (Depends-on): Add sched, time.
28232         (pthread.h): Use AM_V_GEN.
28233
28234 2010-07-13  Bruno Haible  <bruno@clisp.org>
28235
28236         striconveh: Don't malloc memory if the result buffer is sufficient.
28237         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28238         buffer if its size is sufficient.
28239         Reported by Ludovic Courtès <ludo@gnu.org>.
28240
28241 2010-07-13  Bruno Haible  <bruno@clisp.org>
28242
28243         strtod: Add safety check.
28244         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28245
28246 2010-07-12  Bruno Haible  <bruno@clisp.org>
28247
28248         Unify tests that set gl_cv_func_ldexpl_no_libm.
28249         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28250         gl_FUNC_LDEXPL.
28251         (gl_FUNC_LDEXPL): Invoke it.
28252         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28253
28254 2010-07-12  Bruno Haible  <bruno@clisp.org>
28255
28256         Unify tests that set gl_cv_func_ldexp_no_libm.
28257         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
28258         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
28259         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
28260         (configure.ac): Simply invoke gl_FUNC_LDEXP.
28261         * modules/strtod (Files): Add m4/ldexp.m4.
28262
28263 2010-07-12  Bruno Haible  <bruno@clisp.org>
28264
28265         Unify tests that set gl_cv_func_frexpl_no_libm.
28266         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28267         gl_FUNC_FREXPL_NO_LIBM.
28268         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28269         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28270
28271 2010-07-12  Bruno Haible  <bruno@clisp.org>
28272
28273         Unify tests that set gl_cv_func_frexp_no_libm.
28274         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28275         gl_FUNC_FREXP_NO_LIBM.
28276         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28277         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28278
28279 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28280
28281         memcoll: clarify sizes versus lengths, document better, and tweak perf
28282         * lib/memcoll.c (strcoll_loop, memcoll0):
28283         Improve quality of descriptive comments.  Name variables
28284         consistently as to whether they are lengths (which do not include
28285         terminating null) versus sizes (which do).
28286         * lib/xmemcoll.c (xmemcoll0): Likewise.
28287         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28288         returned when s1size == 0; this is easier to compile and saves
28289         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28290
28291 2010-07-12  Bruno Haible  <bruno@clisp.org>
28292
28293         Tests for module '_Exit'.
28294         * modules/_Exit-tests: New file.
28295         * tests/test-_Exit.sh: New file.
28296         * tests/test-_Exit.c: New file.
28297
28298         New module '_Exit'.
28299         * lib/stdlib.in.h (__attribute__): New macro.
28300         (_Exit): New declaration.
28301         * lib/_Exit.c: New file.
28302         * m4/_Exit.m4: New file.
28303         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28304         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28305         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28306         * modules/_Exit: New file.
28307         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28308         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28309
28310 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28311
28312         strtod: make it more-accurate typically, and don't require libm
28313         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28314         Include limits.h.  Don't include string.h.
28315         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28316         (locale_isspace): New function, so that no casts are needed to
28317         check whether *s is a space.
28318         (ldexp): Provide an unused dummy if not available.
28319         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28320         (strtod): Use them.  This implementation prefers to use the
28321         underlying strtod if available, falling back on our own code
28322         only to fix known bugs.  This is more likely to produce an
28323         accurate result.  Also, it avoids the use of libm functions.
28324         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28325         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28326         was absent, but it caused a test failure with coreutils.
28327         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28328         with libm.
28329         * modules/strtod (Makefile.am, Link): libm is no longer needed.
28330         * modules/strtod-tests (Makefile.am): Likewise.
28331
28332 2010-07-11  Pádraig Brady  <P@draigBrady.com>
28333             Bruno Haible  <bruno@clisp.org>
28334
28335         unistr/u8-strchr: Optimize ASCII argument case.
28336         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
28337
28338 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28339
28340         (x)memcoll: minor tweaks
28341         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
28342         is after the type that it qualifies.
28343         (memcoll0): Likewise.
28344         * lib/memcoll.h (memcoll0): Likewise.
28345         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
28346         * lib/xmemcoll.h (xmemcoll0): Likewise.
28347         * lib/memcoll.c (memcoll0): Correct the comment.  This function
28348         differs from memcoll in that the NUL byte is part of the argument.
28349         Omit the abort-checks, as performance is a real issue here.  Plus,
28350         the checks were wrong anyway (an off-by-one error).  Omit local
28351         variable 'diff', as it's a bit clearer that way.
28352         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
28353         no longer needed.
28354
28355 2010-07-08  Chen Guo <chenguo4@yahoo.com>
28356
28357         (x)memcoll: speedup when input is known to be NUL delimited
28358         * lib/memcoll.c: Include stdlib.
28359         (memcoll0): New function.
28360         (strcoll_loop): New function, refactored for use in both memcoll
28361         and memcoll0.
28362         * lib/memcoll.h (memcoll0): Add prototype.
28363         * lib/xmemcoll.c (xmemcoll0): New function.
28364         (collate_error): New function, refactored for use in both xmemcoll
28365         and xmemcoll0.
28366         * lib/xmemcoll.h (xmemcoll0): Add prototype.
28367         * m4/memcoll.m4: add inline invocation.
28368
28369 2010-07-06  Pádraig Brady  <P@draigBrady.com>
28370
28371         * build-aux/bootstrap: Remove any local translations
28372         from the translation project synchronization directory,
28373         so that local only translations are not distributed.
28374
28375 2010-07-04  Bruno Haible  <bruno@clisp.org>
28376
28377         fsusage: Clarify which code applies to which platforms.
28378         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
28379         platform.
28380         * lib/fsusage.c (get_fs_usage): Likewise.
28381
28382 2010-07-04  Bruno Haible  <bruno@clisp.org>
28383
28384         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
28385         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28386         Reported by Martin Lambers <marlam@marlam.de>.
28387
28388 2010-07-04  Jim Meyering  <meyering@redhat.com>
28389
28390         hash: once again explicitly disallow insertion of NULL
28391         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28392         inserting a NULL pointer cannot work with these functions.
28393         Add a comment with details.
28394         This reverts part of the 2010-07-01 commit, 5bef1a35
28395         "hash: extend module to deal with non-pointer keys".
28396
28397 2010-07-01  Bruno Haible  <bruno@clisp.org>
28398
28399         stdbool: Update doc.
28400         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28401         Info from Christian Weisgerber <naddy@mips.inka.de>.
28402
28403 2010-07-01  Jim Meyering  <meyering@redhat.com>
28404
28405         hash: extend module to deal with non-pointer keys
28406         * lib/hash.c (hash_insert0): New interface, much like hash_insert
28407         but that allows insertion of non-pointer entries.
28408         Do not disallow an ENTRY value of NULL.
28409         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
28410         * lib/hash.h (hash_insert0): Declare.
28411
28412 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28413
28414         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
28415         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
28416         not present (i.e. with autoconf 2.59 and when using gettextize, not
28417         gnulib), require AC_GNU_SOURCE instead.
28418
28419 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
28420
28421         idpriv-drop: Fix tests.
28422         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
28423         not to the test-idpriv-droptemp program.
28424
28425 2010-06-29  Bruno Haible  <bruno@clisp.org>
28426
28427         string: Fix syntax error with g++ 2.96.
28428         * lib/string.in.h (__pure__): Remove definition.
28429         (_GL_ATTRIBUTE_PURE): New macro.
28430         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28431         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28432         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28433
28434 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28435
28436         unitypes: Fix bug introduced on 2010-05-18.
28437         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
28438
28439 2010-06-22  Eric Blake  <eblake@redhat.com>
28440
28441         memmem: slight optimization
28442         * lib/str-two-way.h (critical_factorization): Update comments.
28443         Reduce work during factorization phase.
28444         Reported by Carlos Bueno <carlos@bueno.org>.
28445
28446 2010-06-21  Bruno Haible  <bruno@clisp.org>
28447
28448         Fix HAVE_CALLOC_POSIX misnomer.
28449         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
28450         !HAVE_CALLOC_POSIX.
28451         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
28452         HAVE_CALLOC_POSIX.
28453         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
28454         instead of HAVE_CALLOC_POSIX.
28455         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
28456         HAVE_CALLOC_POSIX.
28457
28458         Use modern idiom for calloc() replacement.
28459         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
28460         AC_FUNC_CALLOC.
28461         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
28462         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
28463         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28464         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
28465         (gl_REPLACE_CALLOC): New macro.
28466
28467 2010-06-21  Bruno Haible  <bruno@clisp.org>
28468
28469         Fix HAVE_REALLOC_POSIX misnomer.
28470         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
28471         !HAVE_REALLOC_POSIX.
28472         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
28473         HAVE_REALLOC_POSIX.
28474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
28475         instead of HAVE_REALLOC_POSIX.
28476         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
28477         HAVE_REALLOC_POSIX.
28478
28479         Use modern idiom for realloc() replacement.
28480         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
28481         AC_FUNC_REALLOC.
28482         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28483         Autoconf's AC_FUNC_REALLOC.
28484         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28485         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28486         (gl_REPLACE_REALLOC): New macro.
28487         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28488
28489 2010-06-21  Bruno Haible  <bruno@clisp.org>
28490
28491         Fix HAVE_MALLOC_POSIX misnomer.
28492         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28493         !HAVE_MALLOC_POSIX.
28494         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28495         HAVE_MALLOC_POSIX.
28496         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28497         instead of HAVE_MALLOC_POSIX.
28498         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28499         HAVE_MALLOC_POSIX.
28500
28501         Use modern idiom for malloc() replacement.
28502         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28503         AC_FUNC_MALLOC.
28504         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28505         Autoconf's AC_FUNC_MALLOC.
28506         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28507         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28508         (gl_REPLACE_MALLOC): New macro.
28509         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28510
28511 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28512
28513         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28514         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28515         This macro takes 3 arguments, not 4.
28516
28517 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28518
28519         ipv6: fix detection under mingw
28520         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28521         in6_addr.
28522
28523 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28524
28525         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28526         that strtod() works when cross-compiling to a glibc version known
28527         to work.
28528
28529 2010-06-15  Bruno Haible  <bruno@clisp.org>
28530
28531         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28532
28533 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28534
28535         select: Correct timeout.
28536         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28537
28538 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28539
28540         git-version-gen: init shell var to avoid env var influence
28541         * build-aux/git-version-gen (v): Init shell var to empty.
28542
28543 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28544
28545         priv-set: Don't assume that priv.h exists merely because getppriv does.
28546         See Jan Andersen's bug report about AIX 5L in
28547         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28548         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28549         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28550         * lib/priv-set.h: Likewise.
28551         * tests/test-priv-set.c: Likewise.
28552
28553 2010-06-13  Bruno Haible  <bruno@clisp.org>
28554
28555         relocatable: Make it easier to test whether to install wrappers.
28556         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28557         RELOCATABLE_VIA_WRAPPER.
28558
28559 2010-06-13  Bruno Haible  <bruno@clisp.org>
28560
28561         gnulib-tool: Display specified modules and dependencies differently.
28562         * gnulib-tool (func_show_module_list): New function.
28563         (func_import, func_create_testdir): Invoke it.
28564         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28565
28566 2010-06-13  Bruno Haible  <bruno@clisp.org>
28567
28568         gnulib-tool: Align code of func_import and func_create_testdir.
28569         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28570         specified_modules.
28571
28572 2010-06-12  Jim Meyering  <meyering@redhat.com>
28573
28574         test-inttostr: avoid spurious failure on Solaris 9
28575         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28576         to accept "%ju".  Reported by Bruno Haible.
28577
28578 2010-06-11  Jim Meyering  <meyering@redhat.com>
28579
28580         test-sys_socket: mark variables as used more readably
28581         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28582         as "used" explicitly via (void) statement casts.  This is more
28583         readable than using them in an artificial return expression.
28584         Suggestion from Bruno Haible.
28585
28586 2010-06-11  Bruno Haible  <bruno@clisp.org>
28587
28588         Avoid some more warnings from "gcc -Wwrite-strings".
28589         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28590         to 'const char *'.
28591         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28592         * tests/test-c-strcasestr.c (main): Likewise.
28593         * tests/test-mbscasestr1.c (main): Likewise.
28594         * tests/test-mbscasestr2.c (main): Likewise.
28595         * tests/test-memmem.c (main): Likewise.
28596         * tests/test-strstr.c (main): Likewise.
28597         * tests/test-strcasestr.c (main): Likewise.
28598
28599 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28600
28601         init.sh: change framework_failure_ to fail with status 99, not 1
28602         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28603         automake's parallel-tests rule that this is an unexpected failure,
28604         even if the test is listed in XFAIL_TESTS.
28605
28606 2010-06-11  Jim Meyering  <meyering@redhat.com>
28607
28608         test-inttostr: avoid warnings about 4-6KB literal strings
28609         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28610         Include "macros.h", for its definition of ASSERT.
28611         (CK): s/assert/ASSERT/
28612         * modules/inttostr-tests (Files): Add macros.h.
28613
28614         init.sh: don't use $ME_ or skip_ before they are defined
28615         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28616         their first uses.  Also hoist their companions: warn_, fail_,
28617         framework_failure_, $stderr_fileno.  Prompted by a patch from
28618         Stefano Lattarini.
28619
28620         test-sys_socket: avoid set-but-not-used warnings from gcc
28621         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28622         avoid warning about set-but-not-used variables.
28623
28624         test-xvasprintf: avoid 'const' discard warnings
28625         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28626         "const" when assigning from literal strings.
28627         (test_xasprintf): Add "void" in function argument list to placate
28628         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28629
28630         tests: avoid compilation warnings in argmatch and exclude tests...
28631         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28632         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28633         Since it always exits, declare with the "noreturn" attribute.
28634         * tests/test-argmatch.c: Likewise.
28635
28636         tests: avoid 'const' discard warnings in mbsstr tests
28637         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28638         * tests/test-mbsstr2.c (main): Likewise.
28639
28640         test-verify: avoid warning from gcc's -Wmissing-declarations
28641         * tests/test-verify.c (function): Declare to be static.
28642
28643         test-inttostr.c: include <string.h> for use of strcmp
28644         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28645
28646         test-linkat: avoid failed assertion on "other" architectures
28647         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28648         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28649         sparc: https://bugs.launchpad.net/bugs/591968
28650
28651 2010-06-11  Jim Meyering  <meyering@redhat.com>
28652
28653         printf.m4: avoid autoconf's "Expanded Before Required" warning
28654         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28655         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28656         autoconf warning.
28657
28658 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28659
28660         Replacement header templates are now named with ".in", not "_".
28661         * doc/gnulib-intro.texi: Correct.
28662
28663 2010-06-10  Jim Meyering  <meyering@redhat.com>
28664
28665         inttostr-tests: depend on snprintf, not snprintf-posix
28666         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28667         snprintf-posix, to avoid this aclocal failure:
28668           missing file gnulib-tests/vasnprintf.c
28669           configure.ac:45: error: expected source file, required through \
28670           AC_LIBSOURCES, not found
28671
28672 2010-06-10  Jim Meyering  <meyering@redhat.com>
28673
28674         inttostr: add a new function, inttostr, and tests
28675         The namesake function was not available.  The existence of the
28676         template file, inttostr.c makes its addition nontrivial.
28677         * lib/anytostr.c: Rename from inttostr.c.
28678         (anytostr): Rename from inttostr.
28679         * lib/inttostr.c: New file.
28680         * modules/inttostr (Files): Add anytostr.c.
28681         (Makefile.am): Set lib_SOURCES instead of ...
28682         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28683         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28684         * lib/offtostr.c: Likewise.
28685         * lib/uinttostr.c: Likewise.
28686         * lib/umaxtostr.c: Likewise.
28687         * modules/inttostr-tests: New file.
28688         * tests/test-inttostr.c: New file.  Test these functions.
28689
28690 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28691             Bruno Haible  <bruno@clisp.org>
28692
28693         Add "Extending Gnulib" chapter to manual.
28694         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28695         chapter.
28696         (Extending Gnulib): New chapter.
28697         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28698         chapter.
28699
28700 2010-06-09  Bruno Haible  <bruno@clisp.org>
28701
28702         Avoid relocwrapper link errors due to gnulib replacement functions.
28703         * lib/areadlink.c: Use the system's malloc, realloc functions.
28704         (areadlink): Set errno to ENOMEM explicitly.
28705         * modules/areadlink (Depends-on): Remove malloc-posix.
28706         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28707
28708 2010-06-09  Bruno Haible  <bruno@clisp.org>
28709
28710         Avoid relocwrapper link errors due to gnulib replacement functions.
28711         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28712         * lib/malloca.c: Likewise.
28713         * lib/relocatable.c: Likewise.
28714         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28715         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28716         * lib/setenv.c: Use the system's malloc, realloc functions.
28717         * lib/strerror.c: Use the system's sprintf function.
28718         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28719
28720 2010-06-04  Bruno Haible  <bruno@clisp.org>
28721
28722         Prefer documented low-level autoconf macro names.
28723         * m4/lib-link.m4: Use m4_translit instead of translit.
28724         * m4/environ.m4: Likewise.
28725         * m4/mathfunc.m4: Likewise.
28726         * m4/onceonly.m4: Likewise.
28727         * m4/stdint.m4: Likewise.
28728         Suggested by Eric Blake.
28729
28730 2010-06-04  Martin Lambers  <marlam@marlam.de>
28731             Bruno Haible  <bruno@clisp.org>
28732
28733         havelib: Allow library names with '+' characters.
28734         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28735         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28736
28737 2010-06-09  Bruno Haible  <bruno@clisp.org>
28738
28739         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28740         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28741         realloc failed.
28742
28743 2010-06-08  Peter Simons  <simons@cryp.to>
28744
28745         maint.mk: make the news-check rule more configurable
28746         * top/maint.mk (news-check-lines-spec): New variable.
28747         (news-check): Use "sed -n 1,10p" in place of "head".
28748
28749 2010-06-07  Jim Meyering  <meyering@redhat.com>
28750
28751         do-release-commit-and-tag: fix typo in --help
28752         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28753
28754         regex: avoid new dead-code warning with gcc-4.6.0
28755         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28756         if-block containing a while-loop.  It's been unused for at least
28757         5 years.
28758
28759 2010-06-05  Bruno Haible  <bruno@clisp.org>
28760
28761         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28762         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28763
28764 2010-06-04  Bruno Haible  <bruno@clisp.org>
28765
28766         Update to GNU gettext 0.18.1.
28767         * modules/gettext (configure.ac): Require gettext infrastructure from
28768         version 0.18.1.
28769
28770 2010-06-03  Bruno Haible  <bruno@clisp.org>
28771
28772         Don't use AC_LIBOBJ with file names in subdirectories.
28773         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28774         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28775         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28776         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28777         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28778         gl_LIBUNISTRING_LIBSOURCE.
28779         (Makefile.am): Augment lib_SOURCES here, conditionally.
28780         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28781
28782 2010-06-03  Bruno Haible  <bruno@clisp.org>
28783
28784         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28785         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28786         expansion does not end with a newline.
28787         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28788         unnecessary newline.
28789
28790 2010-06-03  Bruno Haible  <bruno@clisp.org>
28791
28792         Reduce dependencies.
28793         * tests/test-quotearg.h: New file, extracted from
28794         tests/test-quotearg.c.
28795         * tests/test-quotearg-simple.c: New file, extracted from
28796         tests/test-quotearg.c.
28797         * tests/test-quotearg.c: Don't include <ctype.h>.
28798         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28799         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28800         use_quote_double_quotes, use_quotearg_colon): Moved to
28801         tests/test-quotearg.h.
28802         (results_g, flag_results, custom_quotes, custom_results): Moved
28803         to tests/test-quotearg-simple.c.
28804         (main): Moved the part that does not depend on gettext to
28805         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28806         performed.
28807         * modules/quotearg-simple: New file.
28808         * modules/quotearg-simple-tests: New file.
28809         * modules/quotearg (Depends-on): Add quotearg-simple.
28810         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28811         (Files): Add tests/test-quotearg.h.
28812         Reported by Paolo Bonzini.
28813
28814 2010-06-03  Bruno Haible  <bruno@clisp.org>
28815
28816         Reduce dependencies.
28817         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28818
28819 2010-06-03  Bruno Haible  <bruno@clisp.org>
28820
28821         time: Undefine more broken macros.
28822         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28823         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28824         Reported by Eric Blake.
28825
28826 2010-06-03  Bruno Haible  <bruno@clisp.org>
28827
28828         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28829         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28830         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28831         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28832         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28833         Reported by Ludovic Courtès <ludo@gnu.org>.
28834
28835 2010-06-02  Eric Blake  <eblake@redhat.com>
28836
28837         time: work with mingw + pthreads-win32 library
28838         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28839         if timespec is defined only in pthread.h.
28840         * modules/time (Makefile.am): Substitute it.
28841         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28842         <pthread.h>, when needed.
28843         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28844         from the library.
28845
28846 2010-05-31  Bruno Haible  <bruno@clisp.org>
28847
28848         Avoid expanding two macros in the wrong order.
28849         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28850         gl_LIBUNISTRING if it is defined.
28851         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28852         autoconf >= 2.64.
28853         Reported by Ludovic Courtès <ludo@gnu.org>.
28854
28855 2010-05-27  Jim Meyering  <meyering@redhat.com>
28856
28857         maint.mk: also prohibit "#undef" of always-defined symbols
28858         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28859         Allow more than one space before the symbol name.
28860         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28861         the regexp uses alternation.
28862
28863 2010-05-26  Eric Blake  <eblake@redhat.com>
28864
28865         maint.mk: avoid echo -e
28866         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28867         Convert all uses of echo -* to printf.
28868         Reported by Matthias Bolte.
28869
28870 2010-05-25  Bruno Haible  <bruno@clisp.org>
28871
28872         Update to GNU gettext 0.18, part 2.
28873         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28874         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28875
28876 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28877
28878         Add missing include in test-pwrite.c.
28879         * tests/test-pwrite.c: Include string.h, for strcmp.
28880
28881 2010-05-24  Bruno Haible  <bruno@clisp.org>
28882
28883         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28884
28885 2010-05-24  Bruno Haible  <bruno@clisp.org>
28886
28887         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28888         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28889         iconveh_error argument.
28890         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28891         U_STRCONV_TO_LOCALE.
28892         * lib/unistr/u16-strcoll.c: Likewise.
28893         * lib/unistr/u32-strcoll.c: Likewise.
28894         * modules/unistr/u8-strcoll (Depends-on): Add
28895         uniconv/u8-strconv-to-enc, localcharset. Remove
28896         uniconv/u8-strconv-to-locale.
28897         (configure.ac): Bump version number.
28898         * modules/unistr/u16-strcoll (Depends-on): Add
28899         uniconv/u16-strconv-to-enc, localcharset. Remove
28900         uniconv/u16-strconv-to-locale.
28901         (configure.ac): Bump version number.
28902         * modules/unistr/u32-strcoll (Depends-on): Add
28903         uniconv/u32-strconv-to-enc, localcharset. Remove
28904         uniconv/u32-strconv-to-locale.
28905         (configure.ac): Bump version number.
28906
28907 2010-05-24  Bruno Haible  <bruno@clisp.org>
28908
28909         Avoid a test failure on NetBSD 5.0.
28910         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28911         an iconv() bug.
28912
28913 2010-05-24  Bruno Haible  <bruno@clisp.org>
28914
28915         Adjust #include directive style.
28916         * modules/regex (Includes): Recommend to write <regex.h>.
28917
28918 2010-05-24  Bruno Haible  <bruno@clisp.org>
28919
28920         regex: Don't require alloca.
28921         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28922         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28923         only inside if (0).
28924
28925 2010-05-23  Jim Meyering  <meyering@redhat.com>
28926
28927         test-renameat.c: include <sys/stat.h>
28928         * tests/test-renameat.c: Include <sys/stat.h>; required for
28929         definition of S_IS* macros.
28930
28931 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28932
28933         Update maintainer documentation for 'relocatable-prog' module.
28934         * doc/relocatable-maint.texi: Update.
28935         Comments by Bruno Haible.
28936
28937 2010-05-23  Bruno Haible  <bruno@clisp.org>
28938
28939         git-merge-changelog: Enable --split-merged-entry by default.
28940         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28941         (usage): Don't mention this option any more.
28942         Reported by Ralf Wildenhues.
28943
28944 2010-05-23  Jim Meyering  <meyering@redhat.com>
28945
28946         test-pwrite: do not leave behind a test file named "out"
28947         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28948         The trivial-looking use of init.sh is really necessary.
28949         It ensures that the temporary file, "out", is created in
28950         a temporary directory, and removed upon termination.
28951         * tests/test-pwrite.sh: Re-add file.
28952         * modules/pwrite-tests: Reference it.
28953
28954 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28955
28956         Fix output redirection buglet in init.sh.
28957         * tests/init.sh: Fix redirection of stderr.
28958
28959 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28960
28961         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28962
28963 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28964
28965         * modules/valgrind-tests: New file.
28966         * m4/valgrind-tests.m4: New file.
28967         * doc/valgrind-tests.texi: New file.
28968         * doc/gnulib.texi (Running self-tests under valgrind): New
28969         section.
28970
28971 2010-05-19  Bruno Haible  <bruno@clisp.org>
28972
28973         Clean up dead code in recent commit.
28974         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28975         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28976         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28977         Suggested by Paolo Bonzini.
28978
28979 2010-05-19  Bruno Haible  <bruno@clisp.org>
28980
28981         Avoid valgrind error reports from libunistring.
28982         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28983         * modules/libunistring (Files): Add it.
28984         * modules/libunistring-optional (Files): Likewise.
28985
28986 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28987             Bruno Haible  <bruno@clisp.org>
28988
28989         New module 'libunistring-optional'.
28990         * modules/libunistring-optional: New file.
28991         * m4/libunistring-base.m4: New file.
28992         * m4/libunistring-optional.m4: New file.
28993         * lib/unicase.in.h: Renamed from lib/unicase.h.
28994         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28995         * lib/unictype.in.h: Renamed from lib/unictype.h.
28996         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28997         * lib/uniname.in.h: Renamed from lib/uniname.h.
28998         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28999         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29000         * lib/unistr.in.h: Renamed from lib/unistr.h.
29001         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29002         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29003         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29004         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29005         gl_LIBUNISTRING. If the library was found, determine the installed
29006         version and set LIBUNISTRING_VERSION.
29007         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29008         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29009         handle a configuration option --with-included-libunistring.
29010         * modules/libunistring (Files): Add m4/absolute-header.m4.
29011         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29012         Add m4/libunistring-base.m4.
29013         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29014         (Makefile.am): Build unicase.h from unicase.in.h.
29015         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29016         Add m4/libunistring-base.m4.
29017         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29018         (Makefile.am): Build uniconv.h from uniconv.in.h.
29019         * modules/unictype/base (Files): Use unictype.in.h instead of
29020         unictype.h. Add m4/libunistring-base.m4.
29021         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29022         (Makefile.am): Build unictype.h from unictype.in.h.
29023         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29024         Add m4/libunistring-base.m4.
29025         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29026         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29027         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29028         Add m4/libunistring-base.m4.
29029         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29030         (Makefile.am): Build uniname.h from uniname.in.h.
29031         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29032         Add m4/libunistring-base.m4.
29033         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29034         (Makefile.am): Build uninorm.h from uninorm.in.h.
29035         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29036         unistdio.h. Add m4/libunistring-base.m4.
29037         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29038         (Makefile.am): Build unistdio.h from unistdio.in.h.
29039         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29040         Add m4/libunistring-base.m4.
29041         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29042         (Makefile.am): Build unistr.h from unistr.in.h.
29043         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29044         Add m4/libunistring-base.m4.
29045         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29046         (Makefile.am): Build unitypes.h from unitypes.in.h.
29047         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29048         Add m4/libunistring-base.m4.
29049         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29050         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29051         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29052         uniwidth.h. Add m4/libunistring-base.m4.
29053         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29054         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29055         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29056         instead of augmenting lib_SOURCES.
29057         * modules/unicase/empty-suffix-context: Likewise.
29058         * modules/unicase/locale-language: Likewise.
29059         * modules/unicase/tolower: Likewise.
29060         * modules/unicase/totitle: Likewise.
29061         * modules/unicase/toupper: Likewise.
29062         * modules/unicase/u8-casecmp: Likewise.
29063         * modules/unicase/u8-casecoll: Likewise.
29064         * modules/unicase/u8-casefold: Likewise.
29065         * modules/unicase/u8-casexfrm: Likewise.
29066         * modules/unicase/u8-ct-casefold: Likewise.
29067         * modules/unicase/u8-ct-tolower: Likewise.
29068         * modules/unicase/u8-ct-totitle: Likewise.
29069         * modules/unicase/u8-ct-toupper: Likewise.
29070         * modules/unicase/u8-is-cased: Likewise.
29071         * modules/unicase/u8-is-casefolded: Likewise.
29072         * modules/unicase/u8-is-lowercase: Likewise.
29073         * modules/unicase/u8-is-titlecase: Likewise.
29074         * modules/unicase/u8-is-uppercase: Likewise.
29075         * modules/unicase/u8-prefix-context: Likewise.
29076         * modules/unicase/u8-suffix-context: Likewise.
29077         * modules/unicase/u8-tolower: Likewise.
29078         * modules/unicase/u8-totitle: Likewise.
29079         * modules/unicase/u8-toupper: Likewise.
29080         * modules/unicase/u16-casecmp: Likewise.
29081         * modules/unicase/u16-casecoll: Likewise.
29082         * modules/unicase/u16-casefold: Likewise.
29083         * modules/unicase/u16-casexfrm: Likewise.
29084         * modules/unicase/u16-ct-casefold: Likewise.
29085         * modules/unicase/u16-ct-tolower: Likewise.
29086         * modules/unicase/u16-ct-totitle: Likewise.
29087         * modules/unicase/u16-ct-toupper: Likewise.
29088         * modules/unicase/u16-is-cased: Likewise.
29089         * modules/unicase/u16-is-casefolded: Likewise.
29090         * modules/unicase/u16-is-lowercase: Likewise.
29091         * modules/unicase/u16-is-titlecase: Likewise.
29092         * modules/unicase/u16-is-uppercase: Likewise.
29093         * modules/unicase/u16-prefix-context: Likewise.
29094         * modules/unicase/u16-suffix-context: Likewise.
29095         * modules/unicase/u16-tolower: Likewise.
29096         * modules/unicase/u16-totitle: Likewise.
29097         * modules/unicase/u16-toupper: Likewise.
29098         * modules/unicase/u32-casecmp: Likewise.
29099         * modules/unicase/u32-casecoll: Likewise.
29100         * modules/unicase/u32-casefold: Likewise.
29101         * modules/unicase/u32-casexfrm: Likewise.
29102         * modules/unicase/u32-ct-casefold: Likewise.
29103         * modules/unicase/u32-ct-tolower: Likewise.
29104         * modules/unicase/u32-ct-totitle: Likewise.
29105         * modules/unicase/u32-ct-toupper: Likewise.
29106         * modules/unicase/u32-is-cased: Likewise.
29107         * modules/unicase/u32-is-casefolded: Likewise.
29108         * modules/unicase/u32-is-lowercase: Likewise.
29109         * modules/unicase/u32-is-titlecase: Likewise.
29110         * modules/unicase/u32-is-uppercase: Likewise.
29111         * modules/unicase/u32-prefix-context: Likewise.
29112         * modules/unicase/u32-suffix-context: Likewise.
29113         * modules/unicase/u32-tolower: Likewise.
29114         * modules/unicase/u32-totitle: Likewise.
29115         * modules/unicase/u32-toupper: Likewise.
29116         * modules/unicase/ulc-casecmp: Likewise.
29117         * modules/unicase/ulc-casecoll: Likewise.
29118         * modules/unicase/ulc-casexfrm: Likewise.
29119         * modules/uniconv/u8-conv-from-enc: Likewise.
29120         * modules/uniconv/u8-conv-to-enc: Likewise.
29121         * modules/uniconv/u8-strconv-from-enc: Likewise.
29122         * modules/uniconv/u8-strconv-from-locale: Likewise.
29123         * modules/uniconv/u8-strconv-to-enc: Likewise.
29124         * modules/uniconv/u8-strconv-to-locale: Likewise.
29125         * modules/uniconv/u16-conv-from-enc: Likewise.
29126         * modules/uniconv/u16-conv-to-enc: Likewise.
29127         * modules/uniconv/u16-strconv-from-enc: Likewise.
29128         * modules/uniconv/u16-strconv-from-locale: Likewise.
29129         * modules/uniconv/u16-strconv-to-enc: Likewise.
29130         * modules/uniconv/u16-strconv-to-locale: Likewise.
29131         * modules/uniconv/u32-conv-from-enc: Likewise.
29132         * modules/uniconv/u32-conv-to-enc: Likewise.
29133         * modules/uniconv/u32-strconv-from-enc: Likewise.
29134         * modules/uniconv/u32-strconv-from-locale: Likewise.
29135         * modules/uniconv/u32-strconv-to-enc: Likewise.
29136         * modules/uniconv/u32-strconv-to-locale: Likewise.
29137         * modules/unictype/bidicategory-byname: Likewise.
29138         * modules/unictype/bidicategory-name: Likewise.
29139         * modules/unictype/bidicategory-of: Likewise.
29140         * modules/unictype/bidicategory-test: Likewise.
29141         * modules/unictype/block-list: Likewise.
29142         * modules/unictype/block-test: Likewise.
29143         * modules/unictype/category-C: Likewise.
29144         * modules/unictype/category-Cc: Likewise.
29145         * modules/unictype/category-Cf: Likewise.
29146         * modules/unictype/category-Cn: Likewise.
29147         * modules/unictype/category-Co: Likewise.
29148         * modules/unictype/category-Cs: Likewise.
29149         * modules/unictype/category-L: Likewise.
29150         * modules/unictype/category-Ll: Likewise.
29151         * modules/unictype/category-Lm: Likewise.
29152         * modules/unictype/category-Lo: Likewise.
29153         * modules/unictype/category-Lt: Likewise.
29154         * modules/unictype/category-Lu: Likewise.
29155         * modules/unictype/category-M: Likewise.
29156         * modules/unictype/category-Mc: Likewise.
29157         * modules/unictype/category-Me: Likewise.
29158         * modules/unictype/category-Mn: Likewise.
29159         * modules/unictype/category-N: Likewise.
29160         * modules/unictype/category-Nd: Likewise.
29161         * modules/unictype/category-Nl: Likewise.
29162         * modules/unictype/category-No: Likewise.
29163         * modules/unictype/category-P: Likewise.
29164         * modules/unictype/category-Pc: Likewise.
29165         * modules/unictype/category-Pd: Likewise.
29166         * modules/unictype/category-Pe: Likewise.
29167         * modules/unictype/category-Pf: Likewise.
29168         * modules/unictype/category-Pi: Likewise.
29169         * modules/unictype/category-Po: Likewise.
29170         * modules/unictype/category-Ps: Likewise.
29171         * modules/unictype/category-S: Likewise.
29172         * modules/unictype/category-Sc: Likewise.
29173         * modules/unictype/category-Sk: Likewise.
29174         * modules/unictype/category-Sm: Likewise.
29175         * modules/unictype/category-So: Likewise.
29176         * modules/unictype/category-Z: Likewise.
29177         * modules/unictype/category-Zl: Likewise.
29178         * modules/unictype/category-Zp: Likewise.
29179         * modules/unictype/category-Zs: Likewise.
29180         * modules/unictype/category-and: Likewise.
29181         * modules/unictype/category-and-not: Likewise.
29182         * modules/unictype/category-byname: Likewise.
29183         * modules/unictype/category-name: Likewise.
29184         * modules/unictype/category-none: Likewise.
29185         * modules/unictype/category-of: Likewise.
29186         * modules/unictype/category-or: Likewise.
29187         * modules/unictype/category-test: Likewise.
29188         * modules/unictype/combining-class: Likewise.
29189         * modules/unictype/ctype-alnum: Likewise.
29190         * modules/unictype/ctype-alpha: Likewise.
29191         * modules/unictype/ctype-blank: Likewise.
29192         * modules/unictype/ctype-cntrl: Likewise.
29193         * modules/unictype/ctype-digit: Likewise.
29194         * modules/unictype/ctype-graph: Likewise.
29195         * modules/unictype/ctype-lower: Likewise.
29196         * modules/unictype/ctype-print: Likewise.
29197         * modules/unictype/ctype-punct: Likewise.
29198         * modules/unictype/ctype-space: Likewise.
29199         * modules/unictype/ctype-upper: Likewise.
29200         * modules/unictype/ctype-xdigit: Likewise.
29201         * modules/unictype/decimal-digit: Likewise.
29202         * modules/unictype/digit: Likewise.
29203         * modules/unictype/mirror: Likewise.
29204         * modules/unictype/numeric: Likewise.
29205         * modules/unictype/property-alphabetic: Likewise.
29206         * modules/unictype/property-ascii-hex-digit: Likewise.
29207         * modules/unictype/property-bidi-arabic-digit: Likewise.
29208         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29209         * modules/unictype/property-bidi-block-separator: Likewise.
29210         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29211         * modules/unictype/property-bidi-common-separator: Likewise.
29212         * modules/unictype/property-bidi-control: Likewise.
29213         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29214         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29215         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29216         * modules/unictype/property-bidi-european-digit: Likewise.
29217         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29218         * modules/unictype/property-bidi-left-to-right: Likewise.
29219         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29220         * modules/unictype/property-bidi-other-neutral: Likewise.
29221         * modules/unictype/property-bidi-pdf: Likewise.
29222         * modules/unictype/property-bidi-segment-separator: Likewise.
29223         * modules/unictype/property-bidi-whitespace: Likewise.
29224         * modules/unictype/property-byname: Likewise.
29225         * modules/unictype/property-combining: Likewise.
29226         * modules/unictype/property-composite: Likewise.
29227         * modules/unictype/property-currency-symbol: Likewise.
29228         * modules/unictype/property-dash: Likewise.
29229         * modules/unictype/property-decimal-digit: Likewise.
29230         * modules/unictype/property-default-ignorable-code-point: Likewise.
29231         * modules/unictype/property-deprecated: Likewise.
29232         * modules/unictype/property-diacritic: Likewise.
29233         * modules/unictype/property-extender: Likewise.
29234         * modules/unictype/property-format-control: Likewise.
29235         * modules/unictype/property-grapheme-base: Likewise.
29236         * modules/unictype/property-grapheme-extend: Likewise.
29237         * modules/unictype/property-grapheme-link: Likewise.
29238         * modules/unictype/property-hex-digit: Likewise.
29239         * modules/unictype/property-hyphen: Likewise.
29240         * modules/unictype/property-id-continue: Likewise.
29241         * modules/unictype/property-id-start: Likewise.
29242         * modules/unictype/property-ideographic: Likewise.
29243         * modules/unictype/property-ids-binary-operator: Likewise.
29244         * modules/unictype/property-ids-trinary-operator: Likewise.
29245         * modules/unictype/property-ignorable-control: Likewise.
29246         * modules/unictype/property-iso-control: Likewise.
29247         * modules/unictype/property-join-control: Likewise.
29248         * modules/unictype/property-left-of-pair: Likewise.
29249         * modules/unictype/property-line-separator: Likewise.
29250         * modules/unictype/property-logical-order-exception: Likewise.
29251         * modules/unictype/property-lowercase: Likewise.
29252         * modules/unictype/property-math: Likewise.
29253         * modules/unictype/property-non-break: Likewise.
29254         * modules/unictype/property-not-a-character: Likewise.
29255         * modules/unictype/property-numeric: Likewise.
29256         * modules/unictype/property-other-alphabetic: Likewise.
29257         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
29258         * modules/unictype/property-other-grapheme-extend: Likewise.
29259         * modules/unictype/property-other-id-continue: Likewise.
29260         * modules/unictype/property-other-id-start: Likewise.
29261         * modules/unictype/property-other-lowercase: Likewise.
29262         * modules/unictype/property-other-math: Likewise.
29263         * modules/unictype/property-other-uppercase: Likewise.
29264         * modules/unictype/property-paired-punctuation: Likewise.
29265         * modules/unictype/property-paragraph-separator: Likewise.
29266         * modules/unictype/property-pattern-syntax: Likewise.
29267         * modules/unictype/property-pattern-white-space: Likewise.
29268         * modules/unictype/property-private-use: Likewise.
29269         * modules/unictype/property-punctuation: Likewise.
29270         * modules/unictype/property-quotation-mark: Likewise.
29271         * modules/unictype/property-radical: Likewise.
29272         * modules/unictype/property-sentence-terminal: Likewise.
29273         * modules/unictype/property-soft-dotted: Likewise.
29274         * modules/unictype/property-space: Likewise.
29275         * modules/unictype/property-terminal-punctuation: Likewise.
29276         * modules/unictype/property-test: Likewise.
29277         * modules/unictype/property-titlecase: Likewise.
29278         * modules/unictype/property-unassigned-code-value: Likewise.
29279         * modules/unictype/property-unified-ideograph: Likewise.
29280         * modules/unictype/property-uppercase: Likewise.
29281         * modules/unictype/property-variation-selector: Likewise.
29282         * modules/unictype/property-white-space: Likewise.
29283         * modules/unictype/property-xid-continue: Likewise.
29284         * modules/unictype/property-xid-start: Likewise.
29285         * modules/unictype/property-zero-width: Likewise.
29286         * modules/unictype/scripts: Likewise.
29287         * modules/unictype/syntax-c-ident: Likewise.
29288         * modules/unictype/syntax-c-whitespace: Likewise.
29289         * modules/unictype/syntax-java-ident: Likewise.
29290         * modules/unictype/syntax-java-whitespace: Likewise.
29291         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29292         * modules/unilbrk/u8-width-linebreaks: Likewise.
29293         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29294         * modules/unilbrk/u16-width-linebreaks: Likewise.
29295         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29296         * modules/unilbrk/u32-width-linebreaks: Likewise.
29297         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29298         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29299         * modules/uniname/uniname: Likewise.
29300         * modules/uninorm/canonical-decomposition: Likewise.
29301         * modules/uninorm/composition: Likewise.
29302         * modules/uninorm/decomposing-form: Likewise.
29303         * modules/uninorm/decomposition: Likewise.
29304         * modules/uninorm/filter: Likewise.
29305         * modules/uninorm/nfc: Likewise.
29306         * modules/uninorm/nfd: Likewise.
29307         * modules/uninorm/nfkc: Likewise.
29308         * modules/uninorm/nfkd: Likewise.
29309         * modules/uninorm/u8-normalize: Likewise.
29310         * modules/uninorm/u8-normcmp: Likewise.
29311         * modules/uninorm/u8-normcoll: Likewise.
29312         * modules/uninorm/u8-normxfrm: Likewise.
29313         * modules/uninorm/u16-normalize: Likewise.
29314         * modules/uninorm/u16-normcmp: Likewise.
29315         * modules/uninorm/u16-normcoll: Likewise.
29316         * modules/uninorm/u16-normxfrm: Likewise.
29317         * modules/uninorm/u32-normalize: Likewise.
29318         * modules/uninorm/u32-normcmp: Likewise.
29319         * modules/uninorm/u32-normcoll: Likewise.
29320         * modules/uninorm/u32-normxfrm: Likewise.
29321         * modules/unistdio/u8-asnprintf: Likewise.
29322         * modules/unistdio/u8-asprintf: Likewise.
29323         * modules/unistdio/u8-snprintf: Likewise.
29324         * modules/unistdio/u8-sprintf: Likewise.
29325         * modules/unistdio/u8-u8-asnprintf: Likewise.
29326         * modules/unistdio/u8-u8-asprintf: Likewise.
29327         * modules/unistdio/u8-u8-snprintf: Likewise.
29328         * modules/unistdio/u8-u8-sprintf: Likewise.
29329         * modules/unistdio/u8-u8-vasnprintf: Likewise.
29330         * modules/unistdio/u8-u8-vasprintf: Likewise.
29331         * modules/unistdio/u8-u8-vsnprintf: Likewise.
29332         * modules/unistdio/u8-u8-vsprintf: Likewise.
29333         * modules/unistdio/u8-vasnprintf: Likewise.
29334         * modules/unistdio/u8-vasprintf: Likewise.
29335         * modules/unistdio/u8-vsnprintf: Likewise.
29336         * modules/unistdio/u8-vsprintf: Likewise.
29337         * modules/unistdio/u16-asnprintf: Likewise.
29338         * modules/unistdio/u16-asprintf: Likewise.
29339         * modules/unistdio/u16-snprintf: Likewise.
29340         * modules/unistdio/u16-sprintf: Likewise.
29341         * modules/unistdio/u16-u16-asnprintf: Likewise.
29342         * modules/unistdio/u16-u16-asprintf: Likewise.
29343         * modules/unistdio/u16-u16-snprintf: Likewise.
29344         * modules/unistdio/u16-u16-sprintf: Likewise.
29345         * modules/unistdio/u16-u16-vasnprintf: Likewise.
29346         * modules/unistdio/u16-u16-vasprintf: Likewise.
29347         * modules/unistdio/u16-u16-vsnprintf: Likewise.
29348         * modules/unistdio/u16-u16-vsprintf: Likewise.
29349         * modules/unistdio/u16-vasnprintf: Likewise.
29350         * modules/unistdio/u16-vasprintf: Likewise.
29351         * modules/unistdio/u16-vsnprintf: Likewise.
29352         * modules/unistdio/u16-vsprintf: Likewise.
29353         * modules/unistdio/u32-asnprintf: Likewise.
29354         * modules/unistdio/u32-asprintf: Likewise.
29355         * modules/unistdio/u32-snprintf: Likewise.
29356         * modules/unistdio/u32-sprintf: Likewise.
29357         * modules/unistdio/u32-u32-asnprintf: Likewise.
29358         * modules/unistdio/u32-u32-asprintf: Likewise.
29359         * modules/unistdio/u32-u32-snprintf: Likewise.
29360         * modules/unistdio/u32-u32-sprintf: Likewise.
29361         * modules/unistdio/u32-u32-vasnprintf: Likewise.
29362         * modules/unistdio/u32-u32-vasprintf: Likewise.
29363         * modules/unistdio/u32-u32-vsnprintf: Likewise.
29364         * modules/unistdio/u32-u32-vsprintf: Likewise.
29365         * modules/unistdio/u32-vasnprintf: Likewise.
29366         * modules/unistdio/u32-vasprintf: Likewise.
29367         * modules/unistdio/u32-vsnprintf: Likewise.
29368         * modules/unistdio/u32-vsprintf: Likewise.
29369         * modules/unistdio/ulc-asnprintf: Likewise.
29370         * modules/unistdio/ulc-asprintf: Likewise.
29371         * modules/unistdio/ulc-fprintf: Likewise.
29372         * modules/unistdio/ulc-snprintf: Likewise.
29373         * modules/unistdio/ulc-sprintf: Likewise.
29374         * modules/unistdio/ulc-vasnprintf: Likewise.
29375         * modules/unistdio/ulc-vasprintf: Likewise.
29376         * modules/unistdio/ulc-vfprintf: Likewise.
29377         * modules/unistdio/ulc-vsnprintf: Likewise.
29378         * modules/unistdio/ulc-vsprintf: Likewise.
29379         * modules/unistr/u8-check: Likewise.
29380         * modules/unistr/u8-chr: Likewise.
29381         * modules/unistr/u8-cmp: Likewise.
29382         * modules/unistr/u8-cmp2: Likewise.
29383         * modules/unistr/u8-cpy: Likewise.
29384         * modules/unistr/u8-cpy-alloc: Likewise.
29385         * modules/unistr/u8-endswith: Likewise.
29386         * modules/unistr/u8-mblen: Likewise.
29387         * modules/unistr/u8-mbsnlen: Likewise.
29388         * modules/unistr/u8-mbtouc: Likewise.
29389         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29390         * modules/unistr/u8-mbtoucr: Likewise.
29391         * modules/unistr/u8-move: Likewise.
29392         * modules/unistr/u8-next: Likewise.
29393         * modules/unistr/u8-prev: Likewise.
29394         * modules/unistr/u8-set: Likewise.
29395         * modules/unistr/u8-startswith: Likewise.
29396         * modules/unistr/u8-stpcpy: Likewise.
29397         * modules/unistr/u8-stpncpy: Likewise.
29398         * modules/unistr/u8-strcat: Likewise.
29399         * modules/unistr/u8-strchr: Likewise.
29400         * modules/unistr/u8-strcmp: Likewise.
29401         * modules/unistr/u8-strcoll: Likewise.
29402         * modules/unistr/u8-strcpy: Likewise.
29403         * modules/unistr/u8-strcspn: Likewise.
29404         * modules/unistr/u8-strdup: Likewise.
29405         * modules/unistr/u8-strlen: Likewise.
29406         * modules/unistr/u8-strmblen: Likewise.
29407         * modules/unistr/u8-strmbtouc: Likewise.
29408         * modules/unistr/u8-strncat: Likewise.
29409         * modules/unistr/u8-strncmp: Likewise.
29410         * modules/unistr/u8-strncpy: Likewise.
29411         * modules/unistr/u8-strnlen: Likewise.
29412         * modules/unistr/u8-strpbrk: Likewise.
29413         * modules/unistr/u8-strrchr: Likewise.
29414         * modules/unistr/u8-strspn: Likewise.
29415         * modules/unistr/u8-strstr: Likewise.
29416         * modules/unistr/u8-strtok: Likewise.
29417         * modules/unistr/u8-to-u16: Likewise.
29418         * modules/unistr/u8-to-u32: Likewise.
29419         * modules/unistr/u8-uctomb: Likewise.
29420         * modules/unistr/u16-check: Likewise.
29421         * modules/unistr/u16-chr: Likewise.
29422         * modules/unistr/u16-cmp: Likewise.
29423         * modules/unistr/u16-cmp2: Likewise.
29424         * modules/unistr/u16-cpy: Likewise.
29425         * modules/unistr/u16-cpy-alloc: Likewise.
29426         * modules/unistr/u16-endswith: Likewise.
29427         * modules/unistr/u16-mblen: Likewise.
29428         * modules/unistr/u16-mbsnlen: Likewise.
29429         * modules/unistr/u16-mbtouc: Likewise.
29430         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29431         * modules/unistr/u16-mbtoucr: Likewise.
29432         * modules/unistr/u16-move: Likewise.
29433         * modules/unistr/u16-next: Likewise.
29434         * modules/unistr/u16-prev: Likewise.
29435         * modules/unistr/u16-set: Likewise.
29436         * modules/unistr/u16-startswith: Likewise.
29437         * modules/unistr/u16-stpcpy: Likewise.
29438         * modules/unistr/u16-stpncpy: Likewise.
29439         * modules/unistr/u16-strcat: Likewise.
29440         * modules/unistr/u16-strchr: Likewise.
29441         * modules/unistr/u16-strcmp: Likewise.
29442         * modules/unistr/u16-strcoll: Likewise.
29443         * modules/unistr/u16-strcpy: Likewise.
29444         * modules/unistr/u16-strcspn: Likewise.
29445         * modules/unistr/u16-strdup: Likewise.
29446         * modules/unistr/u16-strlen: Likewise.
29447         * modules/unistr/u16-strmblen: Likewise.
29448         * modules/unistr/u16-strmbtouc: Likewise.
29449         * modules/unistr/u16-strncat: Likewise.
29450         * modules/unistr/u16-strncmp: Likewise.
29451         * modules/unistr/u16-strncpy: Likewise.
29452         * modules/unistr/u16-strnlen: Likewise.
29453         * modules/unistr/u16-strpbrk: Likewise.
29454         * modules/unistr/u16-strrchr: Likewise.
29455         * modules/unistr/u16-strspn: Likewise.
29456         * modules/unistr/u16-strstr: Likewise.
29457         * modules/unistr/u16-strtok: Likewise.
29458         * modules/unistr/u16-to-u32: Likewise.
29459         * modules/unistr/u16-to-u8: Likewise.
29460         * modules/unistr/u16-uctomb: Likewise.
29461         * modules/unistr/u32-check: Likewise.
29462         * modules/unistr/u32-chr: Likewise.
29463         * modules/unistr/u32-cmp: Likewise.
29464         * modules/unistr/u32-cmp2: Likewise.
29465         * modules/unistr/u32-cpy: Likewise.
29466         * modules/unistr/u32-cpy-alloc: Likewise.
29467         * modules/unistr/u32-endswith: Likewise.
29468         * modules/unistr/u32-mblen: Likewise.
29469         * modules/unistr/u32-mbsnlen: Likewise.
29470         * modules/unistr/u32-mbtouc: Likewise.
29471         * modules/unistr/u32-mbtouc-unsafe: Likewise.
29472         * modules/unistr/u32-mbtoucr: Likewise.
29473         * modules/unistr/u32-move: Likewise.
29474         * modules/unistr/u32-next: Likewise.
29475         * modules/unistr/u32-prev: Likewise.
29476         * modules/unistr/u32-set: Likewise.
29477         * modules/unistr/u32-startswith: Likewise.
29478         * modules/unistr/u32-stpcpy: Likewise.
29479         * modules/unistr/u32-stpncpy: Likewise.
29480         * modules/unistr/u32-strcat: Likewise.
29481         * modules/unistr/u32-strchr: Likewise.
29482         * modules/unistr/u32-strcmp: Likewise.
29483         * modules/unistr/u32-strcoll: Likewise.
29484         * modules/unistr/u32-strcpy: Likewise.
29485         * modules/unistr/u32-strcspn: Likewise.
29486         * modules/unistr/u32-strdup: Likewise.
29487         * modules/unistr/u32-strlen: Likewise.
29488         * modules/unistr/u32-strmblen: Likewise.
29489         * modules/unistr/u32-strmbtouc: Likewise.
29490         * modules/unistr/u32-strncat: Likewise.
29491         * modules/unistr/u32-strncmp: Likewise.
29492         * modules/unistr/u32-strncpy: Likewise.
29493         * modules/unistr/u32-strnlen: Likewise.
29494         * modules/unistr/u32-strpbrk: Likewise.
29495         * modules/unistr/u32-strrchr: Likewise.
29496         * modules/unistr/u32-strspn: Likewise.
29497         * modules/unistr/u32-strstr: Likewise.
29498         * modules/unistr/u32-strtok: Likewise.
29499         * modules/unistr/u32-to-u16: Likewise.
29500         * modules/unistr/u32-to-u8: Likewise.
29501         * modules/unistr/u32-uctomb: Likewise.
29502         * modules/uniwbrk/u8-wordbreaks: Likewise.
29503         * modules/uniwbrk/u16-wordbreaks: Likewise.
29504         * modules/uniwbrk/u32-wordbreaks: Likewise.
29505         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29506         * modules/uniwbrk/wordbreak-property: Likewise.
29507         * modules/uniwidth/u8-strwidth: Likewise.
29508         * modules/uniwidth/u8-width: Likewise.
29509         * modules/uniwidth/u16-strwidth: Likewise.
29510         * modules/uniwidth/u16-width: Likewise.
29511         * modules/uniwidth/u32-strwidth: Likewise.
29512         * modules/uniwidth/u32-width: Likewise.
29513         * modules/uniwidth/width: Likewise.
29514         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29515         with $(LIBUNISTRING).
29516         * modules/unicase/ignorable-tests: Likewise.
29517         * modules/unicase/locale-language-tests: Likewise.
29518         * modules/unicase/tolower-tests: Likewise.
29519         * modules/unicase/totitle-tests: Likewise.
29520         * modules/unicase/toupper-tests: Likewise.
29521         * modules/unicase/u8-casecmp-tests: Likewise.
29522         * modules/unicase/u8-casecoll-tests: Likewise.
29523         * modules/unicase/u8-casefold-tests: Likewise.
29524         * modules/unicase/u8-is-cased-tests: Likewise.
29525         * modules/unicase/u8-is-casefolded-tests: Likewise.
29526         * modules/unicase/u8-is-lowercase-tests: Likewise.
29527         * modules/unicase/u8-is-titlecase-tests: Likewise.
29528         * modules/unicase/u8-is-uppercase-tests: Likewise.
29529         * modules/unicase/u8-tolower-tests: Likewise.
29530         * modules/unicase/u8-totitle-tests: Likewise.
29531         * modules/unicase/u8-toupper-tests: Likewise.
29532         * modules/unicase/u16-casecmp-tests: Likewise.
29533         * modules/unicase/u16-casecoll-tests: Likewise.
29534         * modules/unicase/u16-casefold-tests: Likewise.
29535         * modules/unicase/u16-is-cased-tests: Likewise.
29536         * modules/unicase/u16-is-casefolded-tests: Likewise.
29537         * modules/unicase/u16-is-lowercase-tests: Likewise.
29538         * modules/unicase/u16-is-titlecase-tests: Likewise.
29539         * modules/unicase/u16-is-uppercase-tests: Likewise.
29540         * modules/unicase/u16-tolower-tests: Likewise.
29541         * modules/unicase/u16-totitle-tests: Likewise.
29542         * modules/unicase/u16-toupper-tests: Likewise.
29543         * modules/unicase/u32-casecmp-tests: Likewise.
29544         * modules/unicase/u32-casecoll-tests: Likewise.
29545         * modules/unicase/u32-casefold-tests: Likewise.
29546         * modules/unicase/u32-is-cased-tests: Likewise.
29547         * modules/unicase/u32-is-casefolded-tests: Likewise.
29548         * modules/unicase/u32-is-lowercase-tests: Likewise.
29549         * modules/unicase/u32-is-titlecase-tests: Likewise.
29550         * modules/unicase/u32-is-uppercase-tests: Likewise.
29551         * modules/unicase/u32-tolower-tests: Likewise.
29552         * modules/unicase/u32-totitle-tests: Likewise.
29553         * modules/unicase/u32-toupper-tests: Likewise.
29554         * modules/unicase/ulc-casecmp-tests: Likewise.
29555         * modules/unicase/ulc-casecoll-tests: Likewise.
29556         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29557         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29558         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29559         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29560         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29561         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29562         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29563         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29564         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29565         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29566         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29567         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29568         * modules/unictype/bidicategory-byname-tests: Likewise.
29569         * modules/unictype/bidicategory-name-tests: Likewise.
29570         * modules/unictype/bidicategory-of-tests: Likewise.
29571         * modules/unictype/bidicategory-test-tests: Likewise.
29572         * modules/unictype/block-list-tests: Likewise.
29573         * modules/unictype/block-of-tests: Likewise.
29574         * modules/unictype/block-test-tests: Likewise.
29575         * modules/unictype/category-C-tests: Likewise.
29576         * modules/unictype/category-Cc-tests: Likewise.
29577         * modules/unictype/category-Cf-tests: Likewise.
29578         * modules/unictype/category-Cn-tests: Likewise.
29579         * modules/unictype/category-Co-tests: Likewise.
29580         * modules/unictype/category-Cs-tests: Likewise.
29581         * modules/unictype/category-L-tests: Likewise.
29582         * modules/unictype/category-Ll-tests: Likewise.
29583         * modules/unictype/category-Lm-tests: Likewise.
29584         * modules/unictype/category-Lo-tests: Likewise.
29585         * modules/unictype/category-Lt-tests: Likewise.
29586         * modules/unictype/category-Lu-tests: Likewise.
29587         * modules/unictype/category-M-tests: Likewise.
29588         * modules/unictype/category-Mc-tests: Likewise.
29589         * modules/unictype/category-Me-tests: Likewise.
29590         * modules/unictype/category-Mn-tests: Likewise.
29591         * modules/unictype/category-N-tests: Likewise.
29592         * modules/unictype/category-Nd-tests: Likewise.
29593         * modules/unictype/category-Nl-tests: Likewise.
29594         * modules/unictype/category-No-tests: Likewise.
29595         * modules/unictype/category-P-tests: Likewise.
29596         * modules/unictype/category-Pc-tests: Likewise.
29597         * modules/unictype/category-Pd-tests: Likewise.
29598         * modules/unictype/category-Pe-tests: Likewise.
29599         * modules/unictype/category-Pf-tests: Likewise.
29600         * modules/unictype/category-Pi-tests: Likewise.
29601         * modules/unictype/category-Po-tests: Likewise.
29602         * modules/unictype/category-Ps-tests: Likewise.
29603         * modules/unictype/category-S-tests: Likewise.
29604         * modules/unictype/category-Sc-tests: Likewise.
29605         * modules/unictype/category-Sk-tests: Likewise.
29606         * modules/unictype/category-Sm-tests: Likewise.
29607         * modules/unictype/category-So-tests: Likewise.
29608         * modules/unictype/category-Z-tests: Likewise.
29609         * modules/unictype/category-Zl-tests: Likewise.
29610         * modules/unictype/category-Zp-tests: Likewise.
29611         * modules/unictype/category-Zs-tests: Likewise.
29612         * modules/unictype/category-and-not-tests: Likewise.
29613         * modules/unictype/category-and-tests: Likewise.
29614         * modules/unictype/category-byname-tests: Likewise.
29615         * modules/unictype/category-name-tests: Likewise.
29616         * modules/unictype/category-none-tests: Likewise.
29617         * modules/unictype/category-of-tests: Likewise.
29618         * modules/unictype/category-or-tests: Likewise.
29619         * modules/unictype/category-test-withtable-tests: Likewise.
29620         * modules/unictype/combining-class-tests: Likewise.
29621         * modules/unictype/ctype-alnum-tests: Likewise.
29622         * modules/unictype/ctype-alpha-tests: Likewise.
29623         * modules/unictype/ctype-blank-tests: Likewise.
29624         * modules/unictype/ctype-cntrl-tests: Likewise.
29625         * modules/unictype/ctype-digit-tests: Likewise.
29626         * modules/unictype/ctype-graph-tests: Likewise.
29627         * modules/unictype/ctype-lower-tests: Likewise.
29628         * modules/unictype/ctype-print-tests: Likewise.
29629         * modules/unictype/ctype-punct-tests: Likewise.
29630         * modules/unictype/ctype-space-tests: Likewise.
29631         * modules/unictype/ctype-upper-tests: Likewise.
29632         * modules/unictype/ctype-xdigit-tests: Likewise.
29633         * modules/unictype/decimal-digit-tests: Likewise.
29634         * modules/unictype/digit-tests: Likewise.
29635         * modules/unictype/mirror-tests: Likewise.
29636         * modules/unictype/numeric-tests: Likewise.
29637         * modules/unictype/property-alphabetic-tests: Likewise.
29638         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29639         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29640         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29641         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29642         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29643         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29644         * modules/unictype/property-bidi-control-tests: Likewise.
29645         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29646         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29647         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29648         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29649         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29650         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29651         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29652         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29653         * modules/unictype/property-bidi-pdf-tests: Likewise.
29654         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29655         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29656         * modules/unictype/property-byname-tests: Likewise.
29657         * modules/unictype/property-combining-tests: Likewise.
29658         * modules/unictype/property-composite-tests: Likewise.
29659         * modules/unictype/property-currency-symbol-tests: Likewise.
29660         * modules/unictype/property-dash-tests: Likewise.
29661         * modules/unictype/property-decimal-digit-tests: Likewise.
29662         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29663         * modules/unictype/property-deprecated-tests: Likewise.
29664         * modules/unictype/property-diacritic-tests: Likewise.
29665         * modules/unictype/property-extender-tests: Likewise.
29666         * modules/unictype/property-format-control-tests: Likewise.
29667         * modules/unictype/property-grapheme-base-tests: Likewise.
29668         * modules/unictype/property-grapheme-extend-tests: Likewise.
29669         * modules/unictype/property-grapheme-link-tests: Likewise.
29670         * modules/unictype/property-hex-digit-tests: Likewise.
29671         * modules/unictype/property-hyphen-tests: Likewise.
29672         * modules/unictype/property-id-continue-tests: Likewise.
29673         * modules/unictype/property-id-start-tests: Likewise.
29674         * modules/unictype/property-ideographic-tests: Likewise.
29675         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29676         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29677         * modules/unictype/property-ignorable-control-tests: Likewise.
29678         * modules/unictype/property-iso-control-tests: Likewise.
29679         * modules/unictype/property-join-control-tests: Likewise.
29680         * modules/unictype/property-left-of-pair-tests: Likewise.
29681         * modules/unictype/property-line-separator-tests: Likewise.
29682         * modules/unictype/property-logical-order-exception-tests: Likewise.
29683         * modules/unictype/property-lowercase-tests: Likewise.
29684         * modules/unictype/property-math-tests: Likewise.
29685         * modules/unictype/property-non-break-tests: Likewise.
29686         * modules/unictype/property-not-a-character-tests: Likewise.
29687         * modules/unictype/property-numeric-tests: Likewise.
29688         * modules/unictype/property-other-alphabetic-tests: Likewise.
29689         * modules/unictype/property-other-default-ignorable-code-point-tests:
29690         Likewise.
29691         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29692         * modules/unictype/property-other-id-continue-tests: Likewise.
29693         * modules/unictype/property-other-id-start-tests: Likewise.
29694         * modules/unictype/property-other-lowercase-tests: Likewise.
29695         * modules/unictype/property-other-math-tests: Likewise.
29696         * modules/unictype/property-other-uppercase-tests: Likewise.
29697         * modules/unictype/property-paired-punctuation-tests: Likewise.
29698         * modules/unictype/property-paragraph-separator-tests: Likewise.
29699         * modules/unictype/property-pattern-syntax-tests: Likewise.
29700         * modules/unictype/property-pattern-white-space-tests: Likewise.
29701         * modules/unictype/property-private-use-tests: Likewise.
29702         * modules/unictype/property-punctuation-tests: Likewise.
29703         * modules/unictype/property-quotation-mark-tests: Likewise.
29704         * modules/unictype/property-radical-tests: Likewise.
29705         * modules/unictype/property-sentence-terminal-tests: Likewise.
29706         * modules/unictype/property-soft-dotted-tests: Likewise.
29707         * modules/unictype/property-space-tests: Likewise.
29708         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29709         * modules/unictype/property-test-tests: Likewise.
29710         * modules/unictype/property-titlecase-tests: Likewise.
29711         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29712         * modules/unictype/property-unified-ideograph-tests: Likewise.
29713         * modules/unictype/property-uppercase-tests: Likewise.
29714         * modules/unictype/property-variation-selector-tests: Likewise.
29715         * modules/unictype/property-white-space-tests: Likewise.
29716         * modules/unictype/property-xid-continue-tests: Likewise.
29717         * modules/unictype/property-xid-start-tests: Likewise.
29718         * modules/unictype/property-zero-width-tests: Likewise.
29719         * modules/unictype/scripts-tests: Likewise.
29720         * modules/unictype/syntax-c-ident-tests: Likewise.
29721         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29722         * modules/unictype/syntax-java-ident-tests: Likewise.
29723         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29724         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29725         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29726         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29727         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29728         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29729         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29730         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29731         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29732         * modules/uniname/uniname-tests: Likewise.
29733         * modules/uninorm/canonical-decomposition-tests: Likewise.
29734         * modules/uninorm/compat-decomposition-tests: Likewise.
29735         * modules/uninorm/composition-tests: Likewise.
29736         * modules/uninorm/decomposing-form-tests: Likewise.
29737         * modules/uninorm/decomposition-tests: Likewise.
29738         * modules/uninorm/filter-tests: Likewise.
29739         * modules/uninorm/nfc-tests: Likewise.
29740         * modules/uninorm/nfd-tests: Likewise.
29741         * modules/uninorm/nfkc-tests: Likewise.
29742         * modules/uninorm/nfkd-tests: Likewise.
29743         * modules/uninorm/u8-normcmp-tests: Likewise.
29744         * modules/uninorm/u8-normcoll-tests: Likewise.
29745         * modules/uninorm/u16-normcmp-tests: Likewise.
29746         * modules/uninorm/u16-normcoll-tests: Likewise.
29747         * modules/uninorm/u32-normcmp-tests: Likewise.
29748         * modules/uninorm/u32-normcoll-tests: Likewise.
29749         * modules/unistdio/u8-asnprintf-tests: Likewise.
29750         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29751         * modules/unistdio/u8-vasprintf-tests: Likewise.
29752         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29753         * modules/unistdio/u8-vsprintf-tests: Likewise.
29754         * modules/unistdio/u16-asnprintf-tests: Likewise.
29755         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29756         * modules/unistdio/u16-vasprintf-tests: Likewise.
29757         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29758         * modules/unistdio/u16-vsprintf-tests: Likewise.
29759         * modules/unistdio/u32-asnprintf-tests: Likewise.
29760         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29761         * modules/unistdio/u32-vasprintf-tests: Likewise.
29762         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29763         * modules/unistdio/u32-vsprintf-tests: Likewise.
29764         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29765         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29766         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29767         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29768         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29769         * modules/unistr/u8-check-tests: Likewise.
29770         * modules/unistr/u8-chr-tests: Likewise.
29771         * modules/unistr/u8-cmp-tests: Likewise.
29772         * modules/unistr/u8-cmp2-tests: Likewise.
29773         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29774         * modules/unistr/u8-cpy-tests: Likewise.
29775         * modules/unistr/u8-mblen-tests: Likewise.
29776         * modules/unistr/u8-mbsnlen-tests: Likewise.
29777         * modules/unistr/u8-mbtouc-tests: Likewise.
29778         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29779         * modules/unistr/u8-mbtoucr-tests: Likewise.
29780         * modules/unistr/u8-move-tests: Likewise.
29781         * modules/unistr/u8-next-tests: Likewise.
29782         * modules/unistr/u8-prev-tests: Likewise.
29783         * modules/unistr/u8-set-tests: Likewise.
29784         * modules/unistr/u8-stpcpy-tests: Likewise.
29785         * modules/unistr/u8-stpncpy-tests: Likewise.
29786         * modules/unistr/u8-strcat-tests: Likewise.
29787         * modules/unistr/u8-strcmp-tests: Likewise.
29788         * modules/unistr/u8-strcoll-tests: Likewise.
29789         * modules/unistr/u8-strcpy-tests: Likewise.
29790         * modules/unistr/u8-strdup-tests: Likewise.
29791         * modules/unistr/u8-strlen-tests: Likewise.
29792         * modules/unistr/u8-strmblen-tests: Likewise.
29793         * modules/unistr/u8-strmbtouc-tests: Likewise.
29794         * modules/unistr/u8-strncat-tests: Likewise.
29795         * modules/unistr/u8-strncmp-tests: Likewise.
29796         * modules/unistr/u8-strncpy-tests: Likewise.
29797         * modules/unistr/u8-strnlen-tests: Likewise.
29798         * modules/unistr/u8-to-u16-tests: Likewise.
29799         * modules/unistr/u8-to-u32-tests: Likewise.
29800         * modules/unistr/u8-uctomb-tests: Likewise.
29801         * modules/unistr/u16-check-tests: Likewise.
29802         * modules/unistr/u16-chr-tests: Likewise.
29803         * modules/unistr/u16-cmp-tests: Likewise.
29804         * modules/unistr/u16-cmp2-tests: Likewise.
29805         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29806         * modules/unistr/u16-cpy-tests: Likewise.
29807         * modules/unistr/u16-mblen-tests: Likewise.
29808         * modules/unistr/u16-mbsnlen-tests: Likewise.
29809         * modules/unistr/u16-mbtouc-tests: Likewise.
29810         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29811         * modules/unistr/u16-mbtoucr-tests: Likewise.
29812         * modules/unistr/u16-move-tests: Likewise.
29813         * modules/unistr/u16-next-tests: Likewise.
29814         * modules/unistr/u16-prev-tests: Likewise.
29815         * modules/unistr/u16-set-tests: Likewise.
29816         * modules/unistr/u16-stpcpy-tests: Likewise.
29817         * modules/unistr/u16-stpncpy-tests: Likewise.
29818         * modules/unistr/u16-strcat-tests: Likewise.
29819         * modules/unistr/u16-strcmp-tests: Likewise.
29820         * modules/unistr/u16-strcoll-tests: Likewise.
29821         * modules/unistr/u16-strcpy-tests: Likewise.
29822         * modules/unistr/u16-strdup-tests: Likewise.
29823         * modules/unistr/u16-strlen-tests: Likewise.
29824         * modules/unistr/u16-strmblen-tests: Likewise.
29825         * modules/unistr/u16-strmbtouc-tests: Likewise.
29826         * modules/unistr/u16-strncat-tests: Likewise.
29827         * modules/unistr/u16-strncmp-tests: Likewise.
29828         * modules/unistr/u16-strncpy-tests: Likewise.
29829         * modules/unistr/u16-strnlen-tests: Likewise.
29830         * modules/unistr/u16-to-u32-tests: Likewise.
29831         * modules/unistr/u16-to-u8-tests: Likewise.
29832         * modules/unistr/u16-uctomb-tests: Likewise.
29833         * modules/unistr/u32-check-tests: Likewise.
29834         * modules/unistr/u32-chr-tests: Likewise.
29835         * modules/unistr/u32-cmp-tests: Likewise.
29836         * modules/unistr/u32-cmp2-tests: Likewise.
29837         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29838         * modules/unistr/u32-cpy-tests: Likewise.
29839         * modules/unistr/u32-mblen-tests: Likewise.
29840         * modules/unistr/u32-mbsnlen-tests: Likewise.
29841         * modules/unistr/u32-mbtouc-tests: Likewise.
29842         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29843         * modules/unistr/u32-mbtoucr-tests: Likewise.
29844         * modules/unistr/u32-move-tests: Likewise.
29845         * modules/unistr/u32-next-tests: Likewise.
29846         * modules/unistr/u32-prev-tests: Likewise.
29847         * modules/unistr/u32-set-tests: Likewise.
29848         * modules/unistr/u32-stpcpy-tests: Likewise.
29849         * modules/unistr/u32-stpncpy-tests: Likewise.
29850         * modules/unistr/u32-strcat-tests: Likewise.
29851         * modules/unistr/u32-strcmp-tests: Likewise.
29852         * modules/unistr/u32-strcoll-tests: Likewise.
29853         * modules/unistr/u32-strcpy-tests: Likewise.
29854         * modules/unistr/u32-strdup-tests: Likewise.
29855         * modules/unistr/u32-strlen-tests: Likewise.
29856         * modules/unistr/u32-strmblen-tests: Likewise.
29857         * modules/unistr/u32-strmbtouc-tests: Likewise.
29858         * modules/unistr/u32-strncat-tests: Likewise.
29859         * modules/unistr/u32-strncmp-tests: Likewise.
29860         * modules/unistr/u32-strncpy-tests: Likewise.
29861         * modules/unistr/u32-strnlen-tests: Likewise.
29862         * modules/unistr/u32-to-u16-tests: Likewise.
29863         * modules/unistr/u32-to-u8-tests: Likewise.
29864         * modules/unistr/u32-uctomb-tests: Likewise.
29865         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29866         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29867         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29868         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29869         * modules/uniwidth/u8-strwidth-tests: Likewise.
29870         * modules/uniwidth/u8-width-tests: Likewise.
29871         * modules/uniwidth/u16-strwidth-tests: Likewise.
29872         * modules/uniwidth/u16-width-tests: Likewise.
29873         * modules/uniwidth/u32-strwidth-tests: Likewise.
29874         * modules/uniwidth/u32-width-tests: Likewise.
29875         * modules/uniwidth/width-tests: Likewise.
29876
29877 2010-05-18  Richard Jones  <rjones@redhat.com>
29878
29879         doc: users.txt: list hivex
29880         * users.txt: Add hivex.
29881
29882 2010-05-18  Richard Jones  <rjones@redhat.com>
29883
29884         doc: users.txt: list febootstrap
29885         * users.txt: Add febootstrap.
29886
29887 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29888
29889         bootstrap: fix an error when gnulib is not used as a git submodule
29890         * build-aux/bootstrap (gnulib_path): If its length is zero then
29891         assign "gnulib" to it.
29892         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29893
29894 2010-05-16  Bruno Haible  <bruno@clisp.org>
29895
29896         Avoid autoconf warnings about AM_ICONV.
29897         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29898         2.64.
29899
29900 2010-05-16  Bruno Haible  <bruno@clisp.org>
29901
29902         absolute-header: Make the macro usable in more situations.
29903         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29904         from gl_ABSOLUTE_HEADER.
29905         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29906
29907 2010-05-16  James Youngman  <jay@gnu.org>
29908
29909         doc: update users.txt
29910         * users.txt: Add CSSC.
29911
29912 2010-05-16  Jim Meyering  <meyering@redhat.com>
29913
29914         init.sh: fix an error in the previous change; add more comments
29915         * tests/init.sh: Compare exit code in loop against 9, not 2.
29916         Patch by Bruno Haible.
29917         Make the two tests more similar by adding an empty "then" clause.
29918         Add comments.
29919
29920         init.sh: avoid unnecessary shell re-exec
29921         * tests/init.sh: Improve the re-exec-required check to first test the
29922         current shell.  If it passes the test, do not search for a shell that
29923         does pass, and do not re-exec.  This test is particularly contorted to
29924         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29925         of $(...) evokes a syntax error and causes immediate shell exit with
29926         status 2.  Bruno Haible reported that the re-exec made it impossible
29927         to single-step through any init.sh-using script.
29928
29929 2010-05-16  Bruno Haible  <bruno@clisp.org>
29930
29931         Fix collision between gnulib's and libintl's printf replacements.
29932         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29933         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29934         (printf): When using GNU C, map the __printf__ function to rpl_printf
29935         via __asm__. When not using GNU C, define rpl_printf instead of
29936         __printf__.
29937         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29938         commit.
29939         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29940         commit.
29941         * m4/asm-underscore.m4: New file.
29942         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29943         * modules/stdio (Files): Add m4/asm-underscore.m4.
29944         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29945         Reported by Ben Pfaff.
29946
29947 2010-05-16  Bruno Haible  <bruno@clisp.org>
29948
29949         verify: Avoid skipping the test on openSUSE 11.0.
29950         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29951
29952 2010-05-13  Bruno Haible  <bruno@clisp.org>
29953
29954         Avoid useless warnings from G++.
29955         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29956         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29957         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29958
29959 2010-05-11  Jim Meyering  <meyering@redhat.com>
29960
29961         maint.mk: tweak preceding change
29962         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29963         regexps tighter by anchoring at EOL, and make the new group "shy"
29964         for slightly decreased overhead.
29965
29966 2010-05-11  Eric Blake  <eblake@redhat.com>
29967
29968         maint.mk: gnulib doesn't guarantee NSIG
29969         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29970
29971 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29972
29973         test-pwrite.c: Remove unused variable declaration.
29974         * tests/test-pwrite.c (main): Remove read_buf declaration.
29975
29976         Remove useless test-pwrite.sh file.
29977         * tests/test-pwrite.sh: Delete file.
29978         * modules/pwrite-tests: Remove references.
29979         Reported by Bruno Haible.
29980
29981 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29982
29983         init.sh: fix a typo
29984         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29985
29986 2010-05-10  Jim Meyering  <meyering@redhat.com>
29987
29988         maint.mk: avoid using a temporary file in the always-defined-macros check
29989         * top/maint.mk (.re-defmac): Remove rule.
29990         (gl_trap_): Remove definition.
29991         (sc_prohibit_always-defined_macros): Rewrite not to create and
29992         depend on a temporary file.  Instead, depend on GNU grep's ability
29993         to read a list of regular expressions from stdin when given "-f -".
29994
29995 2010-05-09  Bruno Haible  <bruno@clisp.org>
29996
29997         Update to GNU gettext 0.18, part 1.
29998         * m4/gettext.m4: Update to GNU gettext 0.18.
29999         * m4/intl.m4: Likewise.
30000         * m4/po.m4: Likewise.
30001         * modules/gettext (Files): Add m4/fcntl-o.m4.
30002         (configure.ac): Require gettext infrastructure from version 0.18.
30003
30004 2010-05-09  Jim Meyering  <meyering@redhat.com>
30005
30006         init.sh: enable MALLOC_PERTURB_
30007         * tests/init.sh: Enable glibc's malloc-perturbing option.
30008
30009         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30010         With my recent change in init.sh from the two-line form:
30011             -#   : ${srcdir=.}
30012             -#   . "$srcdir/init.sh"; path_prepend_ .
30013             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30014         I noticed that using the one-line form would cause this test
30015         to fail with a false-positive, or to stop working altogether,
30016         depending on whether help-version changed or all the tests did.
30017         * top/maint.mk (_hv_regex): Remove this definition.
30018         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30019         (_hv_regex_strong): Use a stronger regex to check for conformance.
30020         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30021         Give a separate diagnostic for lack of conforming use.
30022
30023         maint.mk: prohibit definition of symbols defined by gnulib
30024         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30025         definition of symbols defined by gnulib.
30026
30027 2010-05-09  Bruno Haible  <bruno@clisp.org>
30028
30029         acl: Avoid test failure on Cygwin-hosted mingw.
30030         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30031
30032 2010-05-09  Bruno Haible  <bruno@clisp.org>
30033
30034         error: Use system's fcntl function.
30035         * lib/error.c (fcntl): Undefine.
30036
30037 2010-05-09  Jim Meyering  <meyering@redhat.com>
30038
30039         verify: adjust formatting to be more consistent
30040         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30041         argument-list '('s, and after one comma.
30042
30043 2010-05-09  Bruno Haible  <bruno@clisp.org>
30044
30045         error: More reliable output on mingw.
30046         * lib/error.c: Include <windows.h>.
30047         (is_open): New function.
30048         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30049         defined.
30050
30051 2010-05-09  Bruno Haible  <bruno@clisp.org>
30052
30053         vasnprintf: Fix syntax errors in libintl build on mingw.
30054         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30055         pad_ourselves and prec_ourselves after use.
30056
30057 2010-05-08  Bruno Haible  <bruno@clisp.org>
30058
30059         * lib/config.charset: Update comments for Cygwin 1.7.
30060         * lib/localcharset.c: Likewise.
30061
30062 2010-05-07  Jim Meyering  <meyering@redhat.com>
30063
30064         init.sh: improve comments
30065         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30066         . "${srcdir=.}/init.sh"; path_prepend_ .
30067         Add a note about path_prepend_ and the alternative of using
30068         TESTS_ENVIRONMENT.
30069
30070 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30071
30072         exclude: Unescape hashed patterns in wildcard mode.
30073         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30074         to the hash list.
30075         * tests/test-exclude8.sh: New test case.
30076         * modules/exclude-tests: Add new test.
30077
30078 2010-05-05  Eric Blake  <eblake@redhat.com>
30079
30080         verify: automate tests
30081         * modules/verify-tests: New module.
30082         * tests/test-verify.sh: New file.
30083         * tests/test-verify.c: Guard each negative test with a unique id.
30084         Also avoid warning about unused left hand of comma expressions.
30085
30086 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30087
30088         Further improvements to verify.h, suggested by Eric Blake.
30089         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30090         the GL_* versions, to avoid collision with OpenGL.
30091         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30092         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30093         than testing merely whether it's defined.
30094
30095         Modify verify.h to pacify gcc -Wredundant_decls.
30096         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30097         These use the prefix "GL_" since they're likely to be useful elsewhere.
30098         We may need to break them out into a different .h file.
30099         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30100         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30101         of verify_function__.
30102
30103 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30104
30105         Tests for module pwrite.
30106         * modules/pwrite-tests: New file.
30107         * tests/test-pwrite.sh: New file.
30108         * tests/test-pwrite.c: New file.
30109
30110         New module pwrite.
30111         * lib/unistd.in.h (pwrite): New declaration.
30112         * lib/pwrite.c: New file, from glibc with modifications.
30113         * m4/pwrite.m4: New file.
30114         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30115         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30116         REPLACE_PWRITE.
30117         * modules/pwrite: New file.
30118         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30119         REPLACE_PWRITE.
30120         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30121         * doc/posix-functions/pwrite.texi: Mention the new module.
30122
30123 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30124
30125         pread: Update documentation.
30126         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30127
30128 2010-05-04  Eric Blake  <eblake@redhat.com>
30129
30130         docs: update cygwin progress
30131         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30132         this bug.
30133         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30134         Added in cygwin 1.7.2.
30135         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30136         Likewise.
30137         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30138         Likewise.
30139         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30140         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30141         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30142         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30143         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30144         Mention nproc module.
30145         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30146         bug in cygwin 1.7.5 addition.
30147         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30148         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30149         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30150         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30151         1.7.5.
30152         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30153         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30154         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30155         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30156         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30157         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30158         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30159         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30160         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30161         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30162         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30163         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30164         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30165         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30166         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30167         Likewise.
30168         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30169         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30170         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30171         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30172         Likewise.
30173         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30174         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30175         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30176         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30177         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30178         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30179         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30180         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30181         Likewise.
30182         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30183         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30184         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30185         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30186         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30187         Likewise.
30188         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30189         Likewise.
30190         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30191         Likewise.
30192         * doc/glibc-functions/xdrrec_endofrecord.texi
30193         (xdrrec_endofrecord): Likewise.
30194         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30195         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30196         Likewise.
30197         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30198         Likewise.
30199
30200 2010-05-04  Jim Meyering  <meyering@redhat.com>
30201
30202         gendocs.sh: make its "-s FILE" option more useful
30203         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30204         $PACKAGE to reflect the probably-different basename of "FILE".
30205
30206 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30207
30208         bootstrap: don't ignore download_po_files failure
30209         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30210         failure.
30211
30212 2010-05-03  Jim Meyering  <meyering@redhat.com>
30213
30214         maint.mk: allow to pass options to gendocs.sh
30215         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30216         (gendocs_options_): New overridable variable.
30217
30218         gnu-web-doc-update: don't ignore configure or build failure
30219         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30220
30221         announce-gen: backslash-escape '@'s in --help output
30222         * build-aux/announce-gen: Fix syntax errors.
30223
30224         maint.mk, announce-gen: allow project-specific announcement mail headers
30225         * top/maint.mk (translation_project_): Define default.
30226         (announcement_Cc_, announcement_mail_headers_): Likewise.
30227         (announcement): Invoke announce-gen with new --mail-headers option.
30228         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30229
30230         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30231         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30232         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30233         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30234         line in the "err2" output file when running "make check" in verbose
30235         mode (i.e., with set -x enabled).
30236
30237 2010-05-03  Bruno Haible  <bruno@clisp.org>
30238
30239         wctob: Fix for weird platforms.
30240         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30241         argument value.
30242
30243 2010-05-03  Jim Meyering  <meyering@redhat.com>
30244
30245         maint.mk: prohibit unwarranted use of <strings.h>
30246         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30247         strings.h in a file that does not also use strcasecmp, strncasecmp,
30248         ffs or ffsll.
30249
30250         maint.mk: remove obsolete comments
30251         * top/maint.mk: Remove stale, commented-out rules.
30252
30253 2010-05-02  Bruno Haible  <bruno@clisp.org>
30254
30255         wcwidth: Declare also when it's aliased.
30256         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
30257         macro.
30258
30259 2010-05-02  Bruno Haible  <bruno@clisp.org>
30260
30261         Fix regression from 2010-04-25.
30262         * gnulib-tool (func_modules_transitive_closure): Check the status of
30263         all modules, not only of the tests that are of the form foo-tests where
30264         foo is a module.
30265
30266 2010-05-02  Bruno Haible  <bruno@clisp.org>
30267
30268         wctob: Work around nasty Cygwin 1.7.2 bug.
30269         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30270         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30271
30272 2010-05-01  Bruno Haible  <bruno@clisp.org>
30273
30274         fpurge: Sharper test.
30275         * tests/test-fpurge.c (main): Add one more ftell check.
30276         * modules/fpurge-tests (Depends-on): Add ftell.
30277         Suggested by Eric Blake.
30278
30279 2010-05-01  Bruno Haible  <bruno@clisp.org>
30280
30281         ftello: Another test.
30282         * tests/test-ftello3.c: New file.
30283         * modules/ftello-tests (Files): Add it.
30284         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30285         MOSTLYCLEANFILES.
30286
30287         ftell: Another test.
30288         * tests/test-ftell3.c: New file.
30289         * modules/ftell-tests (Files): Add it.
30290         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30291         MOSTLYCLEANFILES.
30292
30293 2010-05-01  Bruno Haible  <bruno@clisp.org>
30294
30295         ftell, ftello: Work around Solaris bug.
30296         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30297         * lib/ftello.c: Include stdio-impl.h.
30298         (ftello): On Solaris, when _IOWRT is set, compute the result without
30299         looking at _IOREAD.
30300         * modules/ftello (Files): Add lib/stdio-impl.h.
30301         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30302         * doc/posix-functions/ftello.texi: Likewise.
30303         Reported by Eric Blake.
30304
30305 2010-05-01  Bruno Haible  <bruno@clisp.org>
30306
30307         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30308         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30309         the _IOWRT flag is also set.
30310
30311 2010-05-01  Bruno Haible  <bruno@clisp.org>
30312
30313         Fix doc about a HP-UX stdio bug.
30314         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30315         * doc/posix-functions/ftello.texi: Likewise.
30316
30317 2010-05-01  Bruno Haible  <bruno@clisp.org>
30318
30319         lseek test: Fix failure on Solaris.
30320         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30321         output.
30322
30323 2010-04-30  Jim Meyering  <meyering@redhat.com>
30324
30325         bootstrap: don't ignore failure to generate po*/Makevars
30326         * build-aux/bootstrap (with_gettext): Don't ignore failure
30327         to create po/Makevars or runtime-po/Makevars.
30328
30329 2010-04-29  Eric Blake  <eblake@redhat.com>
30330
30331         headers: relax license to LGPLv2+
30332         * modules/fcntl-h (License): Relax license.
30333         * modules/getopt-posix (License): Likewise.
30334         * modules/locale (License): Likewise.
30335         * modules/math (License): Likewise.
30336         * modules/pty (License): Likewise.
30337         * modules/sched (License): Likewise.
30338         * modules/search (License): Likewise.
30339         * modules/spawn (License): Likewise.
30340         * modules/stdarg (License): Likewise.
30341         * modules/sysexits (License): Likewise.
30342
30343 2010-04-29  Jim Meyering  <meyering@redhat.com>
30344
30345         inttypes: relax license to LGPLv2+
30346         * modules/inttypes (License): Relax license.
30347
30348 2010-04-29  Simon Josefsson  <simon@josefsson.org>
30349
30350         * top/maint.mk (indent): Run twice to produce idempotent results.
30351
30352 2010-04-28  Bruno Haible  <bruno@clisp.org>
30353
30354         getdate: Generate getdate.c in the source directory.
30355         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
30356         MOSTLYCLEANFILES.
30357         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
30358
30359 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
30360
30361         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
30362         is not declared as a const *; avoid warnings in that case.
30363
30364 2010-04-28  Eric Blake  <eblake@redhat.com>
30365
30366         canonicalize-lgpl: avoid compiler warning
30367         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
30368         declaration' / 'extraneous semicolon' warning with some compilers.
30369         Reported by Andreas Gruenbacher.
30370
30371 2010-04-28  Jim Meyering  <meyering@redhat.com>
30372
30373         init.sh: ensure a more reliable exit status when exiting via trap
30374         * tests/init.sh (setup_): Don't rely on $? in signal handler.
30375         Inspired by patches from Dmitry V. Levin.
30376         Also trap on signal 3 (SIGQUIT).
30377
30378 2010-04-27  Bruno Haible  <bruno@clisp.org>
30379
30380         Update doc about utimes().
30381         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
30382         'utimens' module.
30383         Reported by Andreas Gruenbacher <agruen@suse.de>.
30384
30385 2010-04-27  Eric Blake  <eblake@redhat.com>
30386
30387         full-read, full-write: relax license
30388         * modules/full-read (License): Drop to LGPLv2+.
30389         * modules/full-write (License): Likewise.
30390         * modules/safe-read (License): Likewise.
30391         * modules/safe-write (License): Likewise.
30392
30393         pthread: mention library for linking
30394         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30395
30396 2010-04-27  Jim Meyering  <meyering@redhat.com>
30397
30398         maint.mk: fix a bug introduced in last change
30399         * top/maint.mk (gl_assured_headers_): Now that all names are on
30400         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30401         is not anchored to end of word, it should be adequate.
30402
30403         maint.mk: avoid side-effect in latest syntax-check
30404         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30405         to run commands via $(shell...), and hence to incur cost only when
30406         the new rule is actually run.
30407
30408         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
30409         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
30410         and use that to create a regexp used to detect all #if HAVE_..._H uses.
30411         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
30412         (gl_assured_headers_, az_, AZ_): Define.
30413         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
30414
30415 2010-04-26  Jim Meyering  <jim@meyering.net>
30416             Bruno Haible  <bruno@clisp.org>
30417
30418         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
30419         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
30420         Prompted by an exchange with Gilles Espinasse.
30421
30422 2010-04-26  Jim Meyering  <meyering@redhat.com>
30423
30424         git-version-gen: aesthetic tweak
30425         * build-aux/git-version-gen: Use "$nl" rather than a literal,
30426         so that the command remains on a single line.
30427
30428 2010-04-26  Eric Blake  <eblake@redhat.com>
30429
30430         git-version-gen: allow use on EBCDIC hosts
30431         * build-aux/git-version-gen (dirty): Use literal rather than tying
30432         ourselves to ascii.
30433         Reported by Steve Goetze.
30434
30435 2010-04-25  Bruno Haible  <bruno@clisp.org>
30436
30437         netdb: Add support for GNULIB_POSIXCHECK.
30438         * lib/netdb.in.h: Include warn-on-use.h.
30439         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
30440         functions are used when GNULIB_POSIXCHECK is defined and the
30441         getaddrinfo module is not in use.
30442         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
30443         freeaddrinfo, gai_strerror, getnameinfo are declared.
30444         * modules/netdb (Depends-on): Add warn-on-use.
30445         (Makefile.am): Include warn-on-use.h in netdb.h.
30446
30447 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
30448
30449         build: avoid "make check" failure without .git/ directory
30450         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
30451         there is no .git/ directory.
30452
30453 2010-04-25  Bruno Haible  <bruno@clisp.org>
30454
30455         ptsname: Fix misuse of ttyname_r.
30456         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30457         of errno.
30458
30459 2010-04-25  Bruno Haible  <bruno@clisp.org>
30460
30461         ttyname_r: Make it work on Solaris 10.
30462         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
30463         if the system function has the POSIX declaration. Test whether the
30464         function fails if the buffer is less than 128 bytes large.
30465         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
30466         system's ttyname_r function. Provide a reasonably large buffer.
30467         * modules/ttyname_r (Depends-on): Add extensions.
30468         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
30469
30470 2010-04-25  Bruno Haible  <bruno@clisp.org>
30471
30472         Use the 'extensions' module for some more functions on Solaris.
30473         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
30474         module.
30475         * doc/posix-functions/ctime_r.texi: Likewise.
30476         * doc/posix-functions/getgrgid_r.texi: Likewise.
30477         * doc/posix-functions/getgrnam_r.texi: Likewise.
30478         * doc/posix-functions/getpwnam_r.texi: Likewise.
30479         * doc/posix-functions/getpwuid_r.texi: Likewise.
30480         * doc/posix-functions/readdir_r.texi: Likewise.
30481         * doc/posix-functions/sigwait.texi: Likewise.
30482         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30483         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30484
30485 2010-04-25  Bruno Haible  <bruno@clisp.org>
30486
30487         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30488         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30489         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30490         * lib/ttyname_r.c: Include <limits.h>.
30491         (ttyname_r): Define using the system's ttyname_r function, if it exists
30492         and not on Solaris.
30493         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30494         set.
30495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30496         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30497         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30498         Reported by Simon Josefsson.
30499
30500 2010-04-25  Bruno Haible  <bruno@clisp.org>
30501
30502         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30503         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30504         * doc/posix-functions/ctime_r.texi: Likewise.
30505         * doc/posix-functions/getgrgid_r.texi: Likewise.
30506         * doc/posix-functions/getgrnam_r.texi: Likewise.
30507         * doc/posix-functions/getlogin_r.texi: Likewise.
30508         * doc/posix-functions/getpwnam_r.texi: Likewise.
30509         * doc/posix-functions/getpwuid_r.texi: Likewise.
30510         * doc/posix-functions/readdir_r.texi: Likewise.
30511         * doc/posix-functions/sigwait.texi: Likewise.
30512         * doc/posix-functions/ttyname_r.texi: Likewise.
30513         Reported by Simon Josefsson.
30514
30515 2010-04-25  Bruno Haible  <bruno@clisp.org>
30516
30517         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30518         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30519         also to --create-testdir.
30520         (func_acceptable): Don't consider the status of *-tests modules here.
30521         (func_modules_transitive_closure): Consider it here, before including a
30522         test module.
30523         (func_import, func_create_testdir): Set inc_all_direct_tests,
30524         inc_all_indirect_tests.
30525         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30526         --create-testdir and --create-megatestdir.
30527
30528 2010-04-25  Bruno Haible  <bruno@clisp.org>
30529
30530         gnulib-tool: Add --without-*-tests options.
30531         * gnulib-tool (func_usage): Document the --without-*-tests options.
30532         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30533         excl_unportable_tests): New variables.
30534         Fail if they are specified with --import or --update.
30535         (func_acceptable): Respect the excl_*_tests variables.
30536         (func_import): Set the excl_*_tests variables to empty.
30537
30538 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30539             Bruno Haible  <bruno@clisp.org>
30540
30541         Work around a MacOS X 10.4 bug with openpty.
30542         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30543         * tests/test-openpty.c (main): Close the master side explicitly.
30544
30545 2010-04-25  Bruno Haible  <bruno@clisp.org>
30546
30547         strnlen: Fix a C++ test error on MacOS X and Solaris.
30548         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30549         the function is not declared.
30550         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30551         Simon Josefsson.
30552
30553 2010-04-24  Bruno Haible  <bruno@clisp.org>
30554
30555         Avoid a gcc warning.
30556         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30557         of correct type for %08lx directive.
30558         Reported by Eric Blake.
30559
30560 2010-04-24  Bruno Haible  <bruno@clisp.org>
30561
30562         vasnprintf: Correct errno value in case of out-of-memory.
30563         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30564         or sprintf. Use the errno value from SNPRINTF or sprintf.
30565         Reported by Ian Beckwith <ianb@erislabs.net>.
30566
30567 2010-04-24  Bruno Haible  <bruno@clisp.org>
30568
30569         ansi-c++-opt: Find correct compiler when cross-compiling.
30570         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30571         AC_CHECK_PROGS.
30572         Reported by Simon Josefsson.
30573
30574 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30575
30576         vc-list-files: Add support for subversion
30577         * build-aux/vc-list-files: Use "svn list" to generate the list of
30578         files controlled by subversion.
30579
30580 2010-04-23  Jim Meyering  <meyering@redhat.com>
30581
30582         vc-list-files tests: convert to use init.sh
30583         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30584         path_prepend_.
30585         Use Exit, not exit.
30586         Use skip_ rather than open coding it.
30587         Remove trap set-up and compare definitions.
30588         * tests/test-vc-list-files-git.sh: Likewise.
30589         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30590
30591 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30592
30593         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30594         backup files.
30595
30596 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30597
30598         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30599
30600 2010-04-20  Eric Blake  <eblake@redhat.com>
30601
30602         tests: be robust to ignored SIGPIPE
30603         * tests/test-select-in.sh: Consume all output.
30604         * tests/test-lseek.sh: Check correct exit status, while avoiding
30605         EPIPE.
30606
30607 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30608             Bruno Haible  <bruno@clisp.org>
30609
30610         visibility: Don't use -fvisibility if it leads to a warning.
30611         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30612         yes, don't pretend that visibility works if it leads to a warning.
30613         Reported by Mike Gran <spk121@yahoo.com>.
30614
30615 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30616
30617         * build-aux/bootstrap: Use "git -h" for testing for supported options
30618         instead of "git --help".  The short-form option only shows a summary,
30619         and doesn't layout the full man page.  Grep for the full option name
30620         in the summary, too.
30621
30622 2010-04-19  Bruno Haible  <bruno@clisp.org>
30623
30624         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30625         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30626         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30627         mention of RELOCATABLE_STRIP.
30628         Reported by Sylvain Beucler <beuc@beuc.net>.
30629
30630 2010-04-19  Bruno Haible  <bruno@clisp.org>
30631
30632         * lib/diffseq.h: Fix typo in comment.
30633         Reported by Eric Blake.
30634
30635 2010-04-19  Bruno Haible  <bruno@clisp.org>
30636
30637         ioctl: Move autoconf macro to a .m4 file.
30638         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30639         * modules/ioctl (Files): Add it.
30640         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30641         Reported by Ian Beckwith <ianb@erislabs.net>.
30642
30643 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30644             Bruno Haible  <bruno@clisp.org>
30645
30646         diffseq: Accommodate use-case with abstract arrays.
30647         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30648         is not defined.
30649         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30650         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30651
30652 2010-04-18  Bruno Haible  <bruno@clisp.org>
30653
30654         * doc/posix-headers/stdbool.texi: More precise wording.
30655
30656 2010-04-17  Jim Meyering  <meyering@redhat.com>
30657
30658         maint.mk: use gnu-style indentation in an embedded perl script
30659         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30660         Rename variable: s/two/last_two_bytes/
30661
30662 2010-04-16  Eric Blake  <eblake@redhat.com>
30663
30664         test-stdbool: skip test that fails with Solaris CC
30665         * tests/test-stdbool.c (f): Skip test that causes compilation
30666         error under buggy C++ compiler.
30667         * lib/stdbool.in.h: Document the limitation.
30668         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30669
30670         setenv: allow compilation with C++
30671         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30672         register keyword.
30673
30674         stdint: allow test to pass with C++
30675         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30676
30677         getopt: allow compilation with C++
30678         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30679         struct.
30680         * lib/getopt.c (_getopt_internal_r): Use correct type.
30681         Reported by Dagobert Michelson, via Joel E. Denny.
30682
30683 2010-04-16  Bruno Haible  <bruno@clisp.org>
30684
30685         Override netdb.h always.
30686         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30687         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30688         Reported by Ludovic Courtès <ludo@gnu.org>.
30689
30690 2010-04-15  Bruno Haible  <bruno@clisp.org>
30691
30692         openpty: Fix mistake from 2010-03-21.
30693         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30694         Reported by Simon Josefsson.
30695
30696 2010-04-15  Eric Blake  <eblake@redhat.com>
30697
30698         test-forkpty: fix expected signature
30699         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30700         Reported by Simon Josefsson.
30701
30702 2010-04-15  Jim Meyering  <meyering@redhat.com>
30703
30704         maint.mk: texinfo_suffix_re_: correct the default regexp
30705         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30706
30707         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30708         make it configurable via texinfo_suffix_re_.
30709
30710 2010-04-14  Eric Blake  <eblake@redhat.com>
30711
30712         strtok_r: relax license to LGPLv2+
30713         * modules/strtok_r (License): Relax license.
30714         Reported by Matthias Bolte.
30715
30716 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30717
30718         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30719         version 1.4.4 by default instead of requiring the libgcrypt
30720         version used during build.  This makes it possible to use the
30721         application with older but still binary compatible libgcrypt
30722         versions.
30723
30724 2010-04-13  Eric Blake  <eblake@redhat.com>
30725
30726         getopt-gnu: match recent glibc fixes and posix ruling
30727         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30728         '+' handling, when requesting extensions.
30729         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30730         'W;' handling.
30731         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30732         * doc/posix-functions/getopt.texi (getopt): Document this.
30733         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30734         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30735         Likewise.
30736
30737         getopt: merge bug fixes from glibc
30738         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30739         diagnostics.  Honor '+:' correctly.  Reject ';'.
30740
30741         getopt-posix: detect MacOS bug
30742         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30743         optind when missing a required argument.
30744         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30745         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30746         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30747         Likewise.
30748
30749         getopt-posix: avoid spurious failure on Solaris
30750         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30751         an indicator that setting optind=1 is sufficient for reset.
30752
30753         getopt-posix: avoid spurious failure on FreeBSD
30754         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30755         in POSIX mode, since the m4 test uses it.
30756
30757         gnulib-tool: silence warning on BSD sh
30758         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30759
30760 2010-04-13  Jim Meyering  <meyering@redhat.com>
30761
30762         doc: users.txt: GNU patch now uses gnulib
30763         * users.txt: Add patch.
30764
30765 2010-04-12  Jim Meyering  <meyering@redhat.com>
30766
30767         maint.mk: generate more concise timing data for syntax-check rules
30768         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30769         " done" from each line that reports a syntax-check test duration.
30770
30771 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30772
30773         git-version-gen: use "git update-index..." rather than "git status"
30774         * build-aux/git-version-gen: Use git update-index --refresh, not
30775         "git status".  With some versions of git, "git status" would fail
30776         to update the index and result in an unwarranted "-dirty" suffix.
30777
30778 2010-04-11  Jim Meyering  <meyering@redhat.com>
30779
30780         openat: correct formatting (no semantic change)
30781         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30782         Suggested by Bruno Haible.
30783
30784 2010-04-11  Bruno Haible  <bruno@clisp.org>
30785
30786         Stricter declaration checking in testdirs.
30787         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30788         If for_tests is true, augment AM_CPPFLAGS to define
30789         GNULIB_STRICT_CHECKING.
30790         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30791         GNULIB_STRICT_CHECKING is defined, verify that the function is
30792         declared.
30793
30794 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30795             Bruno Haible  <bruno@clisp.org>
30796
30797         libunistring: Improve configure output.
30798         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30799         Don't say "consider installing GNU libunistring" when checking again
30800         with libiconv.
30801
30802 2010-04-11  Bruno Haible  <bruno@clisp.org>
30803
30804         libunistring: Correct value of $LTLIBUNISTRING.
30805         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30806         correct the value of $LTLIBUNISTRING.
30807
30808 2010-04-11  Bruno Haible  <bruno@clisp.org>
30809
30810         havelib: Add static libraries to LIBS in the right order.
30811         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30812         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30813
30814 2010-04-11  Bruno Haible  <bruno@clisp.org>
30815
30816         libunistring: Detect libunistring also when it depends on libiconv.
30817         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30818         the second AC_LIB_HAVE_LINKFLAGS invocation.
30819
30820 2010-04-11  James Youngman  <jay@gnu.org>
30821
30822         close-stream: declare local scalars to be "const"
30823         * lib/close-stream.c (close_stream): Make boolean variables const
30824         to document the fact that we set but do not change them.
30825
30826 2010-04-11  Bruno Haible  <bruno@clisp.org>
30827
30828         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30829
30830 2010-04-11  Jim Meyering  <meyering@redhat.com>
30831
30832         maint.mk: don't include dist-check.mk
30833         * top/maint.mk: Remove bogus include directive.
30834
30835         maint.mk: improve empty-line-at-EOF check
30836         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30837         solution, rather than tail+Perl-based one.  The latter would read
30838         a few kilobytes from the end of each file, and did not handle empty
30839         files properly.
30840
30841         maint.mk: print the elapsed time for each syntax-check rule
30842         * top/maint.mk (sc_m_rules_): Save start time in a file.
30843         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30844         (local-check): Interpose the .z rules
30845
30846 2010-04-11  Jim Meyering  <meyering@redhat.com>
30847
30848         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30849         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30850         empty file with one that ends in an empty line.
30851
30852 2010-04-10  Bruno Haible  <bruno@clisp.org>
30853
30854         mkdir: Make it work on mingw64.
30855         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30856         * lib/mkdir.c: Update comment.
30857         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30858
30859 2010-04-10  Bruno Haible  <bruno@clisp.org>
30860
30861         Don't override improved macro from newer autoconf.
30862         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30863         autoconf >= 2.62.
30864         Reported by Joel E. Denny <jdenny@clemson.edu>.
30865
30866 2010-04-10  Jim Meyering  <meyering@redhat.com>
30867
30868         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30869         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30870
30871         maint.mk: correct a diagnostic
30872         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30873         in diagnostic; now use $prohibit.
30874
30875 2010-04-10  Bruno Haible  <address@hidden>
30876
30877         fchownat: Fix a C++ test error on Solaris 8.
30878         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30879         the function does not exist.
30880
30881 2010-04-10  Bruno Haible  <bruno@clisp.org>
30882
30883         vasnprintf: Add more tests.
30884         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30885         (test_function): Test converting an invalid wide string.
30886
30887         vasnprintf: Correct handling of unconvertible wide string arguments.
30888         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30889         VASNPRINTF.
30890         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30891         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30892         smaller than the expected maximum need for the directive. Set errno to
30893         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30894         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30895         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30896         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30897         * modules/vasnprintf (Files): Add m4/printf.m4.
30898         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30899
30900 2010-04-10  Bruno Haible  <bruno@clisp.org>
30901
30902         vasnprintf: Fix crash in %ls directive.
30903         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30904         string is passed as argument to %ls, with no precision and no width.
30905         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30906
30907 2010-04-10  Bruno Haible  <bruno@clisp.org>
30908
30909         vasnprintf: Fix multiple test failures on mingw.
30910         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30911         _snprintf, or snwprintf, not _snwprintf.
30912
30913 2010-04-10  Bruno Haible  <bruno@clisp.org>
30914
30915         write: Fix a C++ test error on mingw.
30916         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30917
30918 2010-04-10  Bruno Haible  <bruno@clisp.org>
30919
30920         vasnprintf test: Reduce code duplication.
30921         * tests/test-vasnprintf.c (test_function): New function, extracted from
30922         test_vasnprintf.
30923         (test_vasnprintf, test_asnprintf): Invoke it.
30924
30925 2010-04-10  Bruno Haible  <bruno@clisp.org>
30926
30927         strnlen: Fix warning in C++ mode on MacOS X.
30928         * lib/string.in.h (strnlen): Use the modern idiom.
30929         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30930         defining strnlen as a macro already in <config.h>.
30931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30932         REPLACE_STRNLEN.
30933         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30934         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30935
30936 2010-04-08  James Youngman  <jay@gnu.org>
30937
30938         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30939         the example.
30940
30941 2010-04-09  Jim Meyering  <meyering@redhat.com>
30942
30943         maint.mk: print better diagnostic when there is no $(_hv_file)
30944         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30945         announce that when $(_hv_file) (aka help-version) does not exist.
30946
30947         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30948         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30949         not try to interpret its random input bytes.  Jarno Rajahalme reported
30950         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30951         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30952         (mktempd_): Likewise, just in case.
30953
30954         ftruncate: add two years to projected module removal date: 2012
30955         * m4/ftruncate.m4: Adjust comments.
30956
30957         ftruncate: mark module as obsolete; even MinGW provides it, now
30958         * modules/ftruncate (Status): Obsolete.
30959         (Notice): Say that.
30960         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30961         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30962
30963 2010-04-08  Bruno Haible  <bruno@clisp.org>
30964
30965         Fix side effects from tests-related modules.
30966         * modules/dprintf-posix (Comment): New section.
30967         * modules/fprintf-posix (Comment): Likewise.
30968         * modules/obstack-printf-posix (Comment): Likewise.
30969         * modules/printf-posix (Comment): Likewise.
30970         * modules/snprintf-posix (Comment): Likewise.
30971         * modules/sprintf-posix (Comment): Likewise.
30972         * modules/vasnprintf-posix (Comment): Likewise.
30973         * modules/vasprintf-posix (Comment): Likewise.
30974         * modules/vdprintf-posix (Comment): Likewise.
30975         * modules/vfprintf-posix (Comment): Likewise.
30976         * modules/vprintf-posix (Comment): Likewise.
30977         * modules/vsnprintf-posix (Comment): Likewise.
30978         * modules/vsprintf-posix (Comment): Likewise.
30979         * modules/xprintf-posix (Comment): Likewise.
30980         * modules/xvasprintf-posix (Comment): Likewise.
30981         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30982         * modules/floorf-tests (Depends-on): Likewise.
30983         * modules/round-tests (Depends-on): Likewise.
30984         * modules/roundf-tests (Depends-on): Likewise.
30985         * modules/trunc-tests (Depends-on): Likewise.
30986         * modules/truncf-tests (Depends-on): Likewise.
30987         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30988         'fprintf-posix' module is not present.
30989         * tests/test-floorf2.c (check): Likewise.
30990         * tests/test-trunc2.c (check): Likewise.
30991         * tests/test-truncf2.c (check): Likewise.
30992         * tests/test-round2.c (equal): Likewise.
30993         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30994
30995 2010-04-07  Karl Berry  <karl@gnu.org>
30996
30997         * config/srclist.txt,
30998         * config/srclistvars.sh,
30999         * config/srclist-update: doc fixes.
31000
31001 2010-04-07  Jim Meyering  <meyering@redhat.com>
31002
31003         maint.mk: add a PATH crosschecking syntax-check rule
31004         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31005         Useful if you use a test like the one in help-version (coreutils,
31006         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31007         printed by prog --version.
31008
31009 2010-04-06  Bruno Haible  <bruno@clisp.org>
31010
31011         Fix link error on mingw.
31012         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31013         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31014
31015 2010-04-06  Bruno Haible  <bruno@clisp.org>
31016
31017         Assume rmdir exists.
31018         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31019
31020 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31021
31022         doc: update users.txt
31023         * users.txt: Add gcal.
31024
31025 2010-04-06  Jim Meyering  <meyering@redhat.com>
31026
31027         init.sh: simply unset TMPDIR rather than risking env -i
31028         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31029         although it probably works fine on all Unix-based systems, some
31030         systems (Cygwin?) cannot tolerate a totally cleared environment.
31031         Suggestion from Eric Blake.
31032
31033 2010-04-06  Jim Meyering  <meyering@redhat.com>
31034
31035         init.sh: portability fix: use env's POSIX-specified -i option not -u
31036         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31037         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31038
31039 2010-04-05  Bruno Haible  <bruno@clisp.org>
31040
31041         btowc: Work around Cygwin 1.7.2 bug.
31042         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31043         does not map NUL to 0.
31044         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31045
31046 2010-04-05  Bruno Haible  <bruno@clisp.org>
31047
31048         Make the multithread modules work on Cygwin 1.7.2.
31049         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31050         imported symbols can be declared weak, so that it returns "no" on
31051         Cygwin 1.7.2.
31052
31053 2010-04-05  Bruno Haible  <bruno@clisp.org>
31054
31055         Use the module 'strncat'.
31056         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31057
31058         Tests for module 'strncat'.
31059         * modules/strncat-tests: New file.
31060         * tests/test-strncat.c: New file.
31061
31062         New module 'strncat'.
31063         * lib/string.in.h (strncat): New declaration.
31064         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31065         * m4/strncat.m4: New file, based on m4/memchr.m4.
31066         * modules/strncat: New file.
31067         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31068         is declared.
31069         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31070         REPLACE_STRNCAT.
31071         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31072         REPLACE_STRNCAT.
31073         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31074         module.
31075         * tests/test-string-c++.cc: Check signature of strncat.
31076
31077 2010-04-05  Jim Meyering  <meyering@redhat.com>
31078
31079         xstrtoumax-tests: convert to use init.sh
31080         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31081         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31082         Use Exit, not exit.
31083         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31084
31085         xstrtoimax-tests: convert to use init.sh
31086         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31087         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31088         Use Exit, not exit.
31089         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31090
31091 2010-04-05  Bruno Haible  <bruno@clisp.org>
31092
31093         sys_socket: Avoid #define replacements in C++ mode.
31094         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31095         warning to the function if possible, rather than #defining the symbol
31096         to a dysfunctional alias.
31097
31098 2010-04-05  Bruno Haible  <bruno@clisp.org>
31099
31100         fseeko: Fix C++ test error on mingw.
31101         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31102         gl_FUNC_FSEEKO.
31103         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31104         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31105         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31106         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31107
31108 2010-04-05  Bruno Haible  <bruno@clisp.org>
31109
31110         duplocale: Improve test output.
31111         * tests/test-duplocale.c (main): Print reason for skipped test.
31112
31113 2010-04-05  Bruno Haible  <bruno@clisp.org>
31114
31115         Assume rmdir exists.
31116         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31117         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31118
31119 2010-04-05  Bruno Haible  <bruno@clisp.org>
31120
31121         Fix link error on Solaris 8 with cc.
31122         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31123
31124 2010-04-05  Bruno Haible  <bruno@clisp.org>
31125
31126         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31127         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31128
31129 2010-04-05  Bruno Haible  <bruno@clisp.org>
31130
31131         vasprintf: Update documentation.
31132         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31133
31134 2010-04-05  Bruno Haible  <bruno@clisp.org>
31135
31136         ptsname: Improve test.
31137         * tests/test-ptsname.c (main): Also try the various master names of BSD
31138         systems.
31139
31140 2010-04-05  Bruno Haible  <bruno@clisp.org>
31141
31142         memchr: Avoid a possible C++ test error.
31143         * lib/string.in.h (memchr): Provide declaration if function is missing.
31144         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31145         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31147         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31148
31149 2010-04-05  Bruno Haible  <bruno@clisp.org>
31150
31151         strtok_r: Improve idiom.
31152         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31153         AC_LIBOBJ is used.
31154
31155 2010-04-05  Bruno Haible  <bruno@clisp.org>
31156
31157         strdup: Improve idiom.
31158         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31159         AC_LIBOBJ is used.
31160         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31161         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31162         when AC_LIBOBJ is used.
31163
31164 2010-04-05  Bruno Haible  <bruno@clisp.org>
31165
31166         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31167         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31168         don't set REPLACE_MBSINIT to 1.
31169         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31170         don't set REPLACE_MBRTOWC to 1.
31171         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31172         exist, don't set REPLACE_MBSRTOWCS to 1.
31173         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31174         exist, don't set REPLACE_MBSNRTOWCS to 1.
31175         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31176         don't set REPLACE_WCRTOMB to 1.
31177         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31178         exist, don't set REPLACE_WCSRTOMBS to 1.
31179         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31180         exist, don't set REPLACE_WCSNRTOMBS to 1.
31181
31182 2010-04-05  Bruno Haible  <bruno@clisp.org>
31183
31184         ldexpl: Improve idiom.
31185         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31186         make sure to set HAVE_DECL_LDEXPL to 0.
31187
31188 2010-04-05  Jim Meyering  <meyering@redhat.com>
31189
31190         xstrtol-tests: convert to use init.sh
31191         * modules/xstrtol-tests (Files): Add tests/init.sh.
31192         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31193         Use Exit, not exit.
31194         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31195
31196         atexit-tests: convert to use init.sh
31197         * modules/atexit-tests (Files): Add tests/init.sh.
31198         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31199         Use Exit, not exit.
31200         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31201
31202         init.sh: fix typo
31203         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31204
31205         init.sh: make it easier for a test script to write to the tty, ...
31206         when using automake's parallel-tests mode.
31207         * tests/init.sh (stderr_fileno_): Define overridable variable.
31208         (warn_): New function, to use it.
31209         (fail_, skip_, framework_failure_): Use warn_.
31210
31211 2010-04-04  Bruno Haible  <bruno@clisp.org>
31212
31213         btowc: Avoid warning.
31214         * lib/btowc.c: Include <stdlib.h>.
31215         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31216
31217 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31218             Bruno Haible  <bruno@clisp.org>
31219
31220         wchar: Port to NetBSD 1.5.
31221         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31222         * lib/wctype.in.h (WEOF): Likewise.
31223
31224 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31225             Bruno Haible  <bruno@clisp.org>
31226
31227         Port extended stdio to NetBSD 1.5.
31228         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31229         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31230         older.
31231
31232 2010-04-04  Bruno Haible  <bruno@clisp.org>
31233
31234         string: Remove unused substitution.
31235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31236         HAVE_DECL_STRERROR.
31237         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31238
31239 2010-04-04  Bruno Haible  <bruno@clisp.org>
31240
31241         strtod: Avoid a possible C++ test error.
31242         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31243         set REPLACE_STRTOD.
31244
31245 2010-04-04  Bruno Haible  <bruno@clisp.org>
31246
31247         strerror: Update documentation.
31248         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31249
31250 2010-04-04  Bruno Haible  <bruno@clisp.org>
31251
31252         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31253         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31254         _GL_CXXALIAS_SYS_CAST.
31255
31256 2010-04-04  Bruno Haible  <bruno@clisp.org>
31257
31258         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31259         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
31260         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
31261         REPLACE_FREXPL to 1.
31262         * doc/posix-functions/frexpl.texi: Update documentation.
31263
31264 2010-04-04  Bruno Haible  <bruno@clisp.org>
31265
31266         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31267         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31268
31269 2010-04-04  Bruno Haible  <bruno@clisp.org>
31270
31271         Implement nanosleep for native Windows.
31272         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31273
31274 2010-04-04  Bruno Haible  <bruno@clisp.org>
31275
31276         math: Fix some C++ test errors on Solaris 8.
31277         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31278
31279 2010-04-04  Bruno Haible  <bruno@clisp.org>
31280
31281         math: Fix some C++ test errors on Cygwin.
31282         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31283         truncl): Provide declaration if the system does not have it.
31284         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31285         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31286         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31287         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31288         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31289         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31290         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31291         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31292         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31293         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31294         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31295         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31296         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31297         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31298         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31299         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31301         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31302         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31303         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31304         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31305         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31306
31307 2010-04-04  Bruno Haible  <bruno@clisp.org>
31308
31309         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31310         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31311         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31312         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31313         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31314         * m4/isinf.m4 (gl_ISINF): Likewise.
31315         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31316
31317 2010-04-04  Bruno Haible  <bruno@clisp.org>
31318
31319         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31320         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31321
31322 2010-04-04  Bruno Haible  <bruno@clisp.org>
31323
31324         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31325         * modules/tmpfile (configure.ac): Update.
31326
31327         tmpfile: Fix C++ test error on mingw.
31328         * lib/stdio.in.h (tmpfile): New declaration.
31329         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
31330         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
31331         * modules/tmpfile (Depends-on): Add stdio.
31332         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31333         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
31334         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
31335         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
31336         REPLACE_TMPFILE.
31337         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
31338
31339 2010-04-04  Bruno Haible  <bruno@clisp.org>
31340
31341         ioctl: Fix C++ test error on mingw.
31342         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
31343         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
31344         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
31345
31346 2010-04-03  Bruno Haible  <bruno@clisp.org>
31347
31348         wcwidth: Fix C++ test error on mingw.
31349         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
31350         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
31351         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
31352
31353 2010-04-03  Bruno Haible  <bruno@clisp.org>
31354
31355         nanosleep: Fix C++ test error on mingw.
31356         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
31357         * lib/time.in.h (nanosleep): Use modern idiom.
31358         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
31359         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
31360         REPLACE_NANOSLEEP to 1.
31361         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
31362         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
31363
31364 2010-04-03  Bruno Haible  <bruno@clisp.org>
31365
31366         strptime: Fix C++ test error on mingw.
31367         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
31368         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
31369         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
31370         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
31371         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
31372         not REPLACE_STRPTIME.
31373         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
31374         REPLACE_STRPTIME.
31375
31376 2010-04-03  Bruno Haible  <bruno@clisp.org>
31377
31378         timegm: Fix C++ test error on mingw.
31379         * lib/time.in.h (timegm): Use modern idiom.
31380         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
31381         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
31382         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
31383         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
31384
31385 2010-04-03  Bruno Haible  <bruno@clisp.org>
31386
31387         timegm: Assume declaration if function exists.
31388         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31389         if it exists. Don't clobber ac_cv_func_timegm.
31390
31391 2010-04-03  Bruno Haible  <bruno@clisp.org>
31392
31393         time_r: Fix C++ test error on mingw.
31394         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31395         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31396         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31397         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31398         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31399
31400 2010-04-03  Bruno Haible  <bruno@clisp.org>
31401
31402         time_r: Minor updates.
31403         * modules/time_r (Description): Mention the provided functions.
31404         * lib/time_r.c: Don't include <string.h>.
31405         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
31406         * doc/posix-functions/localtime_r.texi: Likewise.
31407
31408 2010-04-03  Bruno Haible  <bruno@clisp.org>
31409
31410         time: Fix regression introduced on 2010-03-08.
31411         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
31412         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
31413
31414 2010-04-03  Jim Meyering  <meyering@redhat.com>
31415
31416         maint.mk: don't silently disable project-specific syntax-check rules
31417         * top/maint.mk (_prohibit_regexp): Define, to help people realize
31418         that they need to convert their project-specific syntax-check rules
31419         to use the new _sc_search_regexp.
31420
31421 2010-04-03  Bruno Haible  <bruno@clisp.org>
31422
31423         fchdir: Fix regression introduced on 2010-03-08.
31424         * lib/unistd.in.h (fchdir): Fix declaration.
31425         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
31426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31427         REPLACE_FCHDIR.
31428         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31429         REPLACE_FCHDIR.
31430
31431 2010-04-03  Bruno Haible  <bruno@clisp.org>
31432
31433         getpagesize: Fix C++ test error on mingw.
31434         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31435         system does not declare the function.
31436         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
31437         declared.
31438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31439         HAVE_DECL_GETPAGESIZE.
31440         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
31441
31442 2010-04-03  Bruno Haible  <bruno@clisp.org>
31443
31444         stdio: Make C++ tests work on mingw.
31445         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
31446         does not declare the function.
31447
31448 2010-04-03  Bruno Haible  <bruno@clisp.org>
31449
31450         ftello: Fix C++ test error on mingw.
31451         * lib/stdio.in.h (ftello): Use modern idiom.
31452         * lib/ftello.c (ftello): Renamed from rpl_ftello.
31453         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
31454         is missing and that it needs to be replaced.
31455         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
31456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
31457         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
31458
31459 2010-04-03  Bruno Haible  <bruno@clisp.org>
31460
31461         fseeko: Fix C++ test error on mingw.
31462         * lib/stdio.in.h (fseeko): Use modern idiom.
31463         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
31464         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
31465         is missing and that it needs to be replaced.
31466         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
31467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
31468         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
31469
31470 2010-04-03  Bruno Haible  <bruno@clisp.org>
31471
31472         mkstemp: Fix C++ test error on mingw.
31473         * lib/stdlib.in.h (mkstemp): Use modern idiom.
31474         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
31475         function is missing and that it needs to be replaced.
31476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
31477         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
31478
31479 2010-04-03  Bruno Haible  <bruno@clisp.org>
31480
31481         stpncpy: Fix C++ test error on mingw.
31482         * lib/string.in.h (stpncpy): Use modern idiom.
31483         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31484         function is missing and that it needs to be replaced.
31485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31486         REPLACE_STPNCPY.
31487         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31488
31489 2010-04-03  Bruno Haible  <bruno@clisp.org>
31490
31491         sys_stat: Fix C++ test error on mingw.
31492         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31493         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31494
31495 2010-04-03  Bruno Haible  <bruno@clisp.org>
31496
31497         pty: Update doc.
31498         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31499
31500 2010-04-03  Bruno Haible  <bruno@clisp.org>
31501
31502         unistd: Fix C++ test error on mingw.
31503         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31504
31505 2010-04-03  Bruno Haible  <bruno@clisp.org>
31506
31507         Update doc regarding mingw.
31508         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31509         * doc/glibc-functions/login_tty.texi: Likewise.
31510         * doc/glibc-functions/forkpty.texi: Likewise.
31511
31512 2010-04-03  Bruno Haible  <bruno@clisp.org>
31513
31514         stdlib: Avoid compilation failure of c-strtold on mingw.
31515         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31516
31517 2010-04-03  Bruno Haible  <bruno@clisp.org>
31518
31519         locale: Make C++ tests work on Cygwin and mingw.
31520         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31521         cannot provide the function.
31522         Reported by Simon Josefsson.
31523
31524 2010-04-03  Bruno Haible  <bruno@clisp.org>
31525
31526         localename: Port to MacOS X 10.6.
31527         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31528         memory layout of the locales in MacOS X 10.6 as well.
31529         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31530
31531 2010-04-02  Bruno Haible  <bruno@clisp.org>
31532
31533         gnulib-tool: Ensure that long-running tests are executed last.
31534         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31535         running tests after the one for the other tests.
31536
31537 2010-04-02  Bruno Haible  <bruno@clisp.org>
31538
31539         gnulib-tool: Ensure the tests in the main directory are executed first.
31540         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31541         start with the current directory.
31542
31543 2010-04-02  Bruno Haible  <bruno@clisp.org>
31544
31545         Tests for module 'havelib', moved here from GNU gettext.
31546         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31547         modifications.
31548         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31549         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31550         with modifications.
31551         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31552         modifications.
31553         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31554         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31555         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31556         with modifications.
31557         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31558         with modifications.
31559         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31560         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31561         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31562         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31563         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31564         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31565         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31566         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31567         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31568         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31569         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31570         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31571         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31572         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31573         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31574         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31575         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31576         with modifications.
31577         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31578         with modifications.
31579         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31580         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31581         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31582         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31583         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31584         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31585         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31586         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31587         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31588         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31589         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31590         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31591         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31592         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31593         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31594         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31595         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31596         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31597         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31598         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31599         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31600         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31601         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31602         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31603         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31604         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31605         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31606         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31607         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31608         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31609         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31610         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31611         * tests/havelib/rpathx/rpathx.c: New file, from
31612         gettext/autoconf-lib-link.
31613         * tests/havelib/rpathx/Makefile.am: New file, from
31614         gettext/autoconf-lib-link.
31615         * tests/havelib/rpathx/configure.ac: New file, from
31616         gettext/autoconf-lib-link with modifications.
31617         * tests/havelib/rpathy/rpathy.c: New file, from
31618         gettext/autoconf-lib-link.
31619         * tests/havelib/rpathy/Makefile.am: New file, from
31620         gettext/autoconf-lib-link.
31621         * tests/havelib/rpathy/configure.ac: New file, from
31622         gettext/autoconf-lib-link with modifications.
31623         * tests/havelib/rpathz/rpathz.c: New file, from
31624         gettext/autoconf-lib-link.
31625         * tests/havelib/rpathz/Makefile.am: New file, from
31626         gettext/autoconf-lib-link.
31627         * tests/havelib/rpathz/configure.ac: New file, from
31628         gettext/autoconf-lib-link with modifications.
31629         * tests/havelib/rpathlx/usex.c: New file, from
31630         gettext/autoconf-lib-link.
31631         * tests/havelib/rpathlx/Makefile.am: New file, from
31632         gettext/autoconf-lib-link.
31633         * tests/havelib/rpathlx/configure.ac: New file, from
31634         gettext/autoconf-lib-link with modifications.
31635         * tests/havelib/rpathly/usey.c: New file, from
31636         gettext/autoconf-lib-link.
31637         * tests/havelib/rpathly/Makefile.am: New file, from
31638         gettext/autoconf-lib-link.
31639         * tests/havelib/rpathly/configure.ac: New file, from
31640         gettext/autoconf-lib-link with modifications.
31641         * tests/havelib/rpathlz/usez.c: New file, from
31642         gettext/autoconf-lib-link.
31643         * tests/havelib/rpathlz/Makefile.am: New file, from
31644         gettext/autoconf-lib-link.
31645         * tests/havelib/rpathlz/configure.ac: New file, from
31646         gettext/autoconf-lib-link with modifications.
31647         * tests/havelib/rpathlyx/usey.c: New file, from
31648         gettext/autoconf-lib-link.
31649         * tests/havelib/rpathlyx/Makefile.am: New file, from
31650         gettext/autoconf-lib-link.
31651         * tests/havelib/rpathlyx/configure.ac: New file, from
31652         gettext/autoconf-lib-link with modifications.
31653         * tests/havelib/rpathlzyx/usez.c: New file, from
31654         gettext/autoconf-lib-link.
31655         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31656         gettext/autoconf-lib-link.
31657         * tests/havelib/rpathlzyx/configure.ac: New file, from
31658         gettext/autoconf-lib-link with modifications.
31659         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31660         with modifications.
31661
31662 2010-04-02  Bruno Haible  <bruno@clisp.org>
31663
31664         gnulib-tool: Create distributed built sources also for the tests.
31665         * gnulib-tool (func_create_testdir): Also generate distributed built
31666         sources in the tests directory.
31667
31668 2010-04-02  Bruno Haible  <bruno@clisp.org>
31669
31670         gnulib-tool: Obey user's environment variables.
31671         * gnulib-tool (func_create_testdir): When creating built sources,
31672         respect the environment variables for autoconf, automake, etc. given by
31673         the user.
31674
31675 2010-04-02  Bruno Haible  <bruno@clisp.org>
31676
31677         gnulib-tool: Provide the value of --m4-base to modules.
31678         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31679         of gl_m4_base.
31680
31681 2010-04-02  Eric Blake  <eblake@redhat.com>
31682
31683         maint.mk: fix some fallout
31684         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31685         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31686
31687 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31688
31689         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31690         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31691         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31692         (sc_cast_of_x_alloc_return_value): Likewise.
31693         (sc_cast_of_alloca_return_value): Likewise.
31694         (sc_space_tab): Likewise.
31695         (sc_prohibit_atoi_atof): Likewise.
31696         (sc_prohibit_magic_number_exit): Likewise.
31697         (sc_error_exit_success): Likewise.
31698         (sc_file_system): Likewise.
31699         (sc_prohibit_have_config_h): Likewise.
31700         (sc_require_config_h): Likewise.
31701         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31702         (sc_obsolete_symbols): Likewise.
31703         (sc_changelog): Likewise.
31704         (sc_program_name): Likewise.
31705         (sc_the_the): Likewise.
31706         (sc_trailing_blank): Likewise.
31707         (sc_two_space_separator_in_usage): Likewise.
31708         (sc_useless_cpp_parens): Likewise.
31709         (sc_GPL_version): Likewise.
31710         (sc_GFDL_version): Likewise.
31711         (sc_texinfo_acronym): Likewise.
31712         (sc_prohibit_cvs_keyword): Likewise.
31713         (sc_prohibit_stat_st_blocks): Likewise.
31714         (sc_prohibit_S_IS_definition): Likewise.
31715         (sc_redundant_const): Likewise.
31716         (sc_makefile_TAB_only_indentation): Likewise.
31717         (sc_m4_quote_check): Likewise.
31718         (sc_makefile_path_separator_check): Likewise.
31719         (sc_copyright_check): Likewise.
31720         (sc_Wundef_boolean): Likewise.
31721         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31722
31723         maint.mk: match 0 or more whitespace-before-function-call '('
31724         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31725         that have zero or two-and-more spaces between the function name
31726         and the open parenthesis.
31727         (sc_error_message_warn_fatal): Likewise.
31728         (sc_error_message_uppercase): Likewise.
31729         (sc_error_message_period): Likewise.
31730
31731 2010-03-31  Eric Blake  <eblake@redhat.com>
31732
31733         maint.mk: check for [ as well as test
31734         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31735         Based on a libvirt report by Matthias Bolte.
31736
31737         gnumakefile: don't squelch _version output
31738         * top/GNUmakefile (_version): Create one-shot dependency rather
31739         than using $(shell) when version must be regenerated.
31740         (_autoreconf): Run verbosely, by default.
31741
31742         sys_time: avoid compiler warnings
31743         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31744         unconditional, fixing regression from 2010-03-29.
31745         Reported by Simon Josefsson.
31746
31747 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31748
31749         maint.mk: s/_header_without_use/_sc_header_without_use/
31750         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31751         (sc_prohibit_assert_without_use): Use the new name.
31752         (sc_prohibit_close_stream_without_use): Likewise.
31753         (sc_prohibit_getopt_without_use): Likewise.
31754         (sc_prohibit_quotearg_without_use): Likewise.
31755         (sc_prohibit_quote_without_use): Likewise.
31756         (sc_prohibit_long_options_without_use): Likewise.
31757         (sc_prohibit_inttostr_without_use): Likewise.
31758         (sc_prohibit_ignore_value_without_use): Likewise.
31759         (sc_prohibit_error_without_use): Likewise.
31760         (sc_prohibit_xalloc_without_use): Likewise.
31761         (sc_prohibit_hash_without_use): Likewise.
31762         (sc_prohibit_hash_pjw_without_use): Likewise.
31763         (sc_prohibit_safe_read_without_use): Likewise.
31764         (sc_prohibit_argmatch_without_use): Likewise.
31765         (sc_prohibit_canonicalize_without_use): Likewise.
31766         (sc_prohibit_root_dev_ino_without_use): Likewise.
31767         (sc_prohibit_openat_without_use): Likewise.
31768         (sc_prohibit_c_ctype_without_use): Likewise.
31769         (sc_prohibit_signal_without_use): Likewise.
31770         (sc_prohibit_intprops_without_use): Likewise.
31771
31772 2010-03-30  Eric Blake  <eblake@redhat.com>
31773
31774         maint: improve module indicators
31775         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31776         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31777         columns, and avoid extra macro expansion.
31778
31779         fdopendir: work around FreeBSD bug
31780         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31781         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31782         * modules/dirent (Makefile.am): Substitute it.
31783         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31784         declaration.
31785         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31786         fix.
31787         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31788
31789 2010-03-29  Bruno Haible  <bruno@clisp.org>
31790
31791         Emit #pragma system_header after the inclusion guard, not before.
31792         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31793         guard that spans the entire file, not before. This enables an
31794         optimization in GCC's preprocessor.
31795         * lib/ctype.in.h: Likewise.
31796         * lib/dirent.in.h: Likewise.
31797         * lib/errno.in.h: Likewise.
31798         * lib/float.in.h: Likewise.
31799         * lib/getopt.in.h: Likewise.
31800         * lib/iconv.in.h: Likewise.
31801         * lib/langinfo.in.h: Likewise.
31802         * lib/locale.in.h: Likewise.
31803         * lib/math.in.h: Likewise.
31804         * lib/netdb.in.h: Likewise.
31805         * lib/netinet_in.in.h: Likewise.
31806         * lib/pty.in.h: Likewise.
31807         * lib/sched.in.h: Likewise.
31808         * lib/se-selinux.in.h: Likewise.
31809         * lib/search.in.h: Likewise.
31810         * lib/spawn.in.h: Likewise.
31811         * lib/stdarg.in.h: Likewise.
31812         * lib/stdint.in.h: Likewise.
31813         * lib/string.in.h: Likewise.
31814         * lib/strings.in.h: Likewise.
31815         * lib/sys_file.in.h: Likewise.
31816         * lib/sys_ioctl.in.h: Likewise.
31817         * lib/sys_time.in.h: Likewise.
31818         * lib/sys_times.in.h: Likewise.
31819         * lib/sys_utsname.in.h: Likewise.
31820         * lib/sys_wait.in.h: Likewise.
31821         * lib/sysexits.in.h: Likewise.
31822         * lib/wctype.in.h: Likewise.
31823
31824 2010-03-28  James Youngman  <jay@gnu.org>
31825
31826         save-cwd: don't leak a file descriptor when the caller execs.
31827         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31828         saved file descriptor.
31829         * modules/save-cwd (Depends-on): Depend on cloexec.
31830
31831 2010-03-29  Bruno Haible  <bruno@clisp.org>
31832
31833         Remove vestiges of fts-lgpl module.
31834         * lib/fts_.h: Assume GNULIB_FTS is 1.
31835         * lib/fts.c: Likewise.
31836         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31837
31838 2010-03-28  Bruno Haible  <bruno@clisp.org>
31839
31840         Fix definition of tests witness macro.
31841         * gnulib-tool (func_import): Fix definition of witness macro.
31842
31843 2010-03-28  Bruno Haible  <bruno@clisp.org>
31844
31845         Fix ioctl's protoype on glibc systems.
31846         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31847         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31848         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31849         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31850         signature. If not, arrange to replace the ioctl function.
31851         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31852         REPLACE_IOCTL.
31853         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31854         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31855         Reported by Ludovic Courtès <ludo@gnu.org>.
31856
31857 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31858
31859         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31860         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31861         made it so grep -r --include=GLOB* ... did not work.
31862
31863 2010-03-26  Jim Meyering  <meyering@redhat.com>
31864             Eric Blake  <eblake@redhat.com>
31865
31866         maint.mk: prohibit use of test's -o and -a operators
31867         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31868
31869 2010-03-28  Bruno Haible  <bruno@clisp.org>
31870
31871         Remove unused GNULIB_XYZ macro definitions.
31872         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31873         invocation.
31874
31875 2010-03-28  Bruno Haible  <bruno@clisp.org>
31876
31877         Mark privileged tests modules.
31878         * modules/idpriv-drop-tests (Status): New section.
31879         * modules/idpriv-droptemp-tests (Status): New section.
31880
31881 2010-03-28  Bruno Haible  <bruno@clisp.org>
31882
31883         Split C++ tests into separate tests modules.
31884         * modules/dirent-c++-tests: New file, extracted from
31885         modules/dirent-tests.
31886         * modules/dirent-tests: Depend on it.
31887         * modules/fcntl-h-c++-tests: New file, extracted from
31888         modules/fcntl-h-tests.
31889         * modules/fcntl-h-tests: Depend on it.
31890         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31891         * modules/glob-tests: Depend on it.
31892         * modules/iconv-h-c++-tests: New file, extracted from
31893         modules/iconv-h-tests.
31894         * modules/iconv-h-tests: Depend on it.
31895         * modules/langinfo-c++-tests: New file, extracted from
31896         modules/langinfo-tests.
31897         * modules/langinfo-tests: Depend on it.
31898         * modules/locale-c++-tests: New file, extracted from
31899         modules/locale-tests.
31900         * modules/locale-tests: Depend on it.
31901         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31902         * modules/math-tests: Depend on it.
31903         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31904         * modules/pty-tests: Depend on it.
31905         * modules/search-c++-tests: New file, extracted from
31906         modules/search-tests.
31907         * modules/search-tests: Depend on it.
31908         * modules/signal-c++-tests: New file, extracted from
31909         modules/signal-tests.
31910         * modules/signal-tests: Depend on it.
31911         * modules/spawn-c++-tests: New file, extracted from
31912         modules/spawn-tests.
31913         * modules/spawn-tests: Depend on it.
31914         * modules/stdio-c++-tests: New file, extracted from
31915         modules/stdio-tests.
31916         * modules/stdio-tests: Depend on it.
31917         * modules/stdlib-c++-tests: New file, extracted from
31918         modules/stdlib-tests.
31919         * modules/stdlib-tests: Depend on it.
31920         * modules/string-c++-tests: New file, extracted from
31921         modules/string-tests.
31922         * modules/string-tests: Depend on it.
31923         * modules/sys_ioctl-c++-tests: New file, extracted from
31924         modules/sys_ioctl-tests.
31925         * modules/sys_ioctl-tests: Depend on it.
31926         * modules/sys_select-c++-tests: New file, extracted from
31927         modules/sys_select-tests.
31928         * modules/sys_select-tests: Depend on it.
31929         * modules/sys_socket-c++-tests: New file, extracted from
31930         modules/sys_socket-tests.
31931         * modules/sys_socket-tests: Depend on it.
31932         * modules/sys_stat-c++-tests: New file, extracted from
31933         modules/sys_stat-tests.
31934         * modules/sys_stat-tests: Depend on it.
31935         * modules/sys_time-c++-tests: New file, extracted from
31936         modules/sys_time-tests.
31937         * modules/sys_time-tests: Depend on it.
31938         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31939         * modules/time-tests: Depend on it.
31940         * modules/unistd-c++-tests: New file, extracted from
31941         modules/unistd-tests.
31942         * modules/unistd-tests: Depend on it.
31943         * modules/wchar-c++-tests: New file, extracted from
31944         modules/wchar-tests.
31945         * modules/wchar-tests: Depend on it.
31946         * modules/wctype-c++-tests: New file, extracted from
31947         modules/wctype-tests.
31948         * modules/wctype-tests: Depend on it.
31949         Reported by Simon Josefsson.
31950
31951 2010-03-28  Bruno Haible  <bruno@clisp.org>
31952
31953         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31954         * gnulib-tool (func_exists_module): New function, extracted from
31955         func_verify_module.
31956         (func_verify_module): Use it.
31957         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31958         'foo' only if 'foo' exists.
31959         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31960         module.
31961
31962 2010-03-28  Bruno Haible  <bruno@clisp.org>
31963
31964         gnulib-tool: Add support for special categories of tests.
31965         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31966         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31967         (func_usage): Document them.
31968         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31969         inc_unportable_tests, inc_all_tests): New variables.
31970         (func_acceptable): Consider these variables.
31971         (func_modules_transitive_closure): Make it work when the 'Status' field
31972         consists of multiple words.
31973         (func_import): Store and restore the values of inc_cxx_tests,
31974         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31975         inc_all_tests in gnulib-comp.m4.
31976         (func_create_testdir): Set inc_all_tests to true.
31977         * doc/gnulib.texi (Extra tests modules): New section.
31978         Suggested by Jim Meyering.
31979
31980 2010-03-28  Bruno Haible  <bruno@clisp.org>
31981
31982         ansi-c++-opt: Allow turning off the C++ build by default.
31983         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31984         gl_CXX_CHOICE_DEFAULT_NO is defined.
31985         Requested by Eric Blake.
31986
31987 2010-03-28  Bruno Haible  <bruno@clisp.org>
31988
31989         unistd: Avoid #define replacements in C++ mode.
31990         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31991         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31992         setsockopt, shutdown, select): In C++, attach a warning to the function
31993         if possible, rather than #defining the symbol to a dysfunctional alias.
31994         Reported by John W. Eaton <jwe@gnu.org>.
31995
31996 2010-03-28  Bruno Haible  <bruno@clisp.org>
31997
31998         Fix link errors on mingw.
31999         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32000         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32001         $(LIBSOCKET).
32002         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32003         $(LIBSOCKET).
32004
32005 2010-03-28  Bruno Haible  <bruno@clisp.org>
32006             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32007
32008         lib-ignore: Determine different options for different compilers.
32009         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32010         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32011         Add comments.
32012         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32013         * NEWS: Mention the change.
32014
32015 2010-03-27  Bruno Haible  <bruno@clisp.org>
32016
32017         Remove unused GNULIB_XYZ macro definitions.
32018         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32019         * modules/fseek (configure.ac): Likewise.
32020         * modules/ioctl (configure.ac): Likewise.
32021         * modules/open (configure.ac): Likewise.
32022         * modules/stdlib-safer (configure.ac): Likewise.
32023
32024 2010-03-27  Bruno Haible  <bruno@clisp.org>
32025
32026         Add a remark about certain modules.
32027         * modules/malloc (Comment): New section.
32028         * modules/realloc (Comment): Likewise.
32029         * modules/sigpipe (Comment): Likewise.
32030
32031 2010-03-27  Bruno Haible  <bruno@clisp.org>
32032
32033         Resolve conflict between the two kinds of module indicators.
32034         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32035         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32036         * modules/canonicalize (configure.ac): Invoke
32037         gl_MODULE_INDICATOR_FOR_TESTS.
32038         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32039         GNULIB_XYZ.
32040         * tests/test-dirent-c++.cc: Likewise.
32041         * tests/test-dirent-safer.c: Likewise.
32042         * tests/test-dup2.c: Likewise.
32043         * tests/test-fchdir.c: Likewise.
32044         * tests/test-fcntl-h-c++.cc: Likewise.
32045         * tests/test-getopt.c: Likewise.
32046         * tests/test-getopt.h: Likewise.
32047         * tests/test-langinfo-c++.cc: Likewise.
32048         * tests/test-locale-c++.cc: Likewise.
32049         * tests/test-math-c++.cc: Likewise.
32050         * tests/test-pty-c++.cc: Likewise.
32051         * tests/test-search-c++.cc: Likewise.
32052         * tests/test-signal-c++.cc: Likewise.
32053         * tests/test-spawn-c++.cc: Likewise.
32054         * tests/test-stdio-c++.cc: Likewise.
32055         * tests/test-stdlib-c++.cc: Likewise.
32056         * tests/test-string-c++.cc: Likewise.
32057         * tests/test-sys_ioctl-c++.cc: Likewise.
32058         * tests/test-sys_select-c++.cc: Likewise.
32059         * tests/test-sys_socket-c++.cc: Likewise.
32060         * tests/test-sys_stat-c++.cc: Likewise.
32061         * tests/test-sys_time-c++.cc: Likewise.
32062         * tests/test-time-c++.cc: Likewise.
32063         * tests/test-unistd-c++.cc: Likewise.
32064         * tests/test-wchar-c++.cc: Likewise.
32065         * tests/uninorm/test-u8-nfc.c: Likewise.
32066         * tests/uninorm/test-u8-nfd.c: Likewise.
32067         * tests/uninorm/test-u8-nfkc.c: Likewise.
32068         * tests/uninorm/test-u8-nfkd.c: Likewise.
32069         * tests/uninorm/test-u16-nfc.c: Likewise.
32070         * tests/uninorm/test-u16-nfd.c: Likewise.
32071         * tests/uninorm/test-u16-nfkc.c: Likewise.
32072         * tests/uninorm/test-u16-nfkd.c: Likewise.
32073         * tests/uninorm/test-u32-nfc.c: Likewise.
32074         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32075         * tests/uninorm/test-u32-nfd.c: Likewise.
32076         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32077         * tests/uninorm/test-u32-nfkc.c: Likewise.
32078         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32079         * tests/uninorm/test-u32-nfkd.c: Likewise.
32080         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32081         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32082
32083 2010-03-27  Bruno Haible  <bruno@clisp.org>
32084
32085         Distinguish two kinds of module indicators.
32086         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32087         gl_MODULE_INDICATOR.
32088         (gl_MODULE_INDICATOR): New macro.
32089         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32090         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32091         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32092         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32093         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32094         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32095         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32096         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32097         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32098         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32099         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32100         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32101         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32102         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32103         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32104         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32105         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32106         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32107         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32108         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32109         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32110         * modules/cloexec (configure.ac): Likewise.
32111         * modules/getopt-gnu (configure.ac): Likewise.
32112         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32113         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32114         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32115         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32116
32117 2010-03-27  Bruno Haible  <bruno@clisp.org>
32118
32119         New module description field 'Comment'.
32120         * gnulib-tool: New option --extract-comment.
32121         (func_usage): Document it.
32122         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32123         (func_get_comment): New function.
32124         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32125
32126 2010-03-27  Bruno Haible  <bruno@clisp.org>
32127
32128         Addendum to 2010-02-07 commit.
32129         * gnulib-tool (func_usage): Document --extract-applicability option.
32130
32131 2010-03-27  Bruno Haible  <bruno@clisp.org>
32132
32133         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32134         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32135         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32136         rather than link errors.
32137
32138 2010-03-27  Bruno Haible  <bruno@clisp.org>
32139
32140         Avoid side effects from tests-related modules on the compilation of lib.
32141         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32142         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32143         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32144         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32145         macro.
32146         (func_import): Define a witness macro. Assign it a value that depends
32147         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32148         tests-related modules.
32149         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32150         Reported by Jim Meyering.
32151
32152 2010-03-27  Bruno Haible  <bruno@clisp.org>
32153
32154         Factorize common .m4 code.
32155         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32156         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32157         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32158         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32159         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32160         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32161         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32162         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32163         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32164         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32165         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32166         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32167         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32168         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32169         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32170         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32171         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32172         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32173         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32174         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32175         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32176         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32177         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32178         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32179         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32180         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32181         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32182         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32183         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32184         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32185         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32186         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32187
32188 2010-03-27  Bruno Haible  <bruno@clisp.org>
32189
32190         Fix a compilation error on Cygwin with g++ >= 4.3.
32191         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32192         if it is undefined or if we alias it to chmod.
32193         (lstat): Don't warn about the use of this function if it is undefined
32194         or if we alias it to stat.
32195         Reported by Simon Josefsson.
32196
32197 2010-03-27  Bruno Haible  <bruno@clisp.org>
32198
32199         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32200         * modules/getlogin (configure.ac): Update.
32201
32202         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32203         * modules/getlogin_r (configure.ac): Update.
32204
32205         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32207         * modules/inet_ntop (configure.ac): Update.
32208
32209         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32210         * modules/inet_pton (configure.ac): Update.
32211
32212         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32213         * modules/mbslen (configure.ac): Update.
32214
32215         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32216         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32217         * modules/forkpty (configure.ac): Update.
32218         * modules/openpty (configure.ac): Update.
32219
32220 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32221
32222         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32223         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32224
32225 2010-03-25  Eric Blake  <eblake@redhat.com>
32226
32227         maint: use pragma consistently across replacement headers
32228         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32229         * lib/dirent.in.h (system_header): Likewise.
32230         * lib/errno.in.h (system_header): Likewise.
32231         * lib/float.in.h (system_header): Likewise.
32232         * lib/getopt.in.h (system_header): Likewise.
32233         * lib/iconv.in.h (system_header): Likewise.
32234         * lib/inttypes.in.h (system_header): Likewise.
32235         * lib/langinfo.in.h (system_header): Likewise.
32236         * lib/locale.in.h (system_header): Likewise.
32237         * lib/math.in.h (system_header): Likewise.
32238         * lib/netdb.in.h (system_header): Likewise.
32239         * lib/netinet_in.in.h (system_header): Likewise.
32240         * lib/pty.in.h (system_header): Likewise.
32241         * lib/sched.in.h (system_header): Likewise.
32242         * lib/se-selinux.in.h (system_header): Likewise.
32243         * lib/search.in.h (system_header): Likewise.
32244         * lib/spawn.in.h (system_header): Likewise.
32245         * lib/stdarg.in.h (system_header): Likewise.
32246         * lib/stdint.in.h (system_header): Likewise.
32247         * lib/string.in.h (system_header): Likewise.
32248         * lib/strings.in.h (system_header): Likewise.
32249         * lib/sys_file.in.h (system_header): Likewise.
32250         * lib/sys_ioctl.in.h (system_header): Likewise.
32251         * lib/sys_socket.in.h (system_header): Likewise.
32252         * lib/sys_times.in.h (system_header): Likewise.
32253         * lib/sys_utsname.in.h (system_header): Likewise.
32254         * lib/sys_wait.in.h (system_header): Likewise.
32255         * lib/sysexits.in.h (system_header): Likewise.
32256         * lib/unistd.in.h (system_header): Likewise.
32257         * lib/wctype.in.h (system_header): Likewise.
32258
32259         arpa/inet: fix mingw compilation warning
32260         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
32261         Reported by Matthew Bolte.
32262
32263 2010-03-25  Bruno Haible  <bruno@clisp.org>
32264
32265         Avoid collision between gnulib wrapper and libintl wrapper.
32266         * lib/printf.c (printf): Don't define if a printf wrapper is already
32267         defined in intl/printf.c.
32268         Reported by Michel Boaventura <michel@michelboaventura.com>.
32269
32270 2010-03-25  Bruno Haible  <bruno@clisp.org>
32271
32272         Use ANSI C.
32273         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32274
32275 2010-03-25  Bruno Haible  <bruno@clisp.org>
32276
32277         Minor formatting changes.
32278         * lib/acosl.c: Insert space before function argument list.
32279         * lib/argz.c: Likewise.
32280         * lib/asinl.c: Likewise.
32281         * lib/expl.c: Likewise.
32282         * lib/gen-uni-tables.c: Likewise.
32283         * lib/gettext.h: Likewise.
32284         * lib/glthread/lock.h: Likewise.
32285         * lib/tanl.c: Likewise.
32286         * lib/uniname/uniname.c: Likewise.
32287         * tests/test-idpriv-drop.c: Likewise.
32288         * tests/test-idpriv-droptemp.c: Likewise.
32289         * tests/test-lock.c: Likewise.
32290         * tests/test-tls.c: Likewise.
32291         * lib/argp-help.c: Insert space before function-like macro argument
32292         list.
32293         * lib/memcmp.c: Likewise.
32294         * tests/test-base64.c: Likewise.
32295         * lib/localename.c: Insert space before sizeof's argument list.
32296         * lib/safe-alloc.h: Likewise.
32297         * lib/file-set.h: Insert space before macro argument list.
32298         * tests/test-argp.c: Likewise.
32299         * lib/argp-namefrob.h: Insert space before function parameter list.
32300         * lib/getaddrinfo.c: Likewise.
32301         * lib/netdb.in.h: Likewise.
32302         * lib/parse-duration.h: Likewise.
32303         * lib/parse-duration.c: Likewise.
32304         * lib/poll.c: Likewise.
32305         * lib/select.c: Likewise.
32306         * lib/trim.h: Likewise.
32307         * tests/test-usleep.c: Likewise.
32308         * lib/ldexpl.c: Insert space before function parameter list and before
32309         function argument list.
32310         * lib/logl.c: Likewise.
32311         * lib/sqrtl.c: Likewise.
32312         * lib/trim.c: Likewise.
32313         * lib/cosl.c: Use GNU style indentation. Insert space before function
32314         argument list.
32315         * lib/sinl.c: Likewise.
32316         * lib/tsearch.c: Insert space after 'for'.
32317         Reported by Jim Meyering.
32318
32319 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32320
32321         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32322         config header before grepping, as it's not present before
32323         autoreconf/configure are run.  Reported by Simon Josefsson.
32324
32325 2010-03-23  Bruno Haible  <bruno@clisp.org>
32326
32327         pt_chown: Make it work with automake < 1.11.
32328         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
32329         Reported by Simon Josefsson.
32330
32331 2010-03-23  Bruno Haible  <bruno@clisp.org>
32332
32333         pt_chown: Don't depend on GPLed modules.
32334         * lib/pt_chown.c: Don't include idpriv.h.
32335         (main): Don't drop privileges.
32336         * modules/pt_chown (Depends-on): Remove idpriv-drop.
32337         Reported by Simon Josefsson.
32338
32339 2010-03-24  Simon Josefsson  <simon@josefsson.org>
32340
32341         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
32342         suggestions from karl@freefriends.org (Karl Berry).
32343
32344 2010-03-22  Eric Blake  <eblake@redhat.com>
32345
32346         gethostname: further tweaks
32347         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
32348         are overriding gethostname.
32349         Suggested by Bruno Haible.
32350
32351 2010-03-21  Bruno Haible  <bruno@clisp.org>
32352
32353         Fix comments.
32354         * lib/forkpty.c (rpl_forkpty): Fix comment.
32355         * lib/openpty.c (rpl_openpty): Likewise.
32356         Reported by Eric Blake.
32357
32358 2010-03-22  Eric Blake  <eblake@redhat.com>
32359
32360         gethostname: fix build on mingw
32361         * lib/unistd.in.h (includes): Work around fact that mingw
32362         <winsock2.h> re-includes <unistd.h>, by avoiding any
32363         redeclarations if we are being included by <winsock2.h>.
32364         Reported by Matthias Bolte.
32365
32366 2010-03-21  Bruno Haible  <bruno@clisp.org>
32367
32368         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32369         * lib/forkpty.c (forkpty): New replacement function, from glibc with
32370         modifications.
32371         * lib/pty.in.h (forkpty): Update declaration. Add comments.
32372         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
32373         provide the replacement.
32374         * modules/forkpty (Depends-on): Add openpty, login_tty.
32375         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
32376         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
32377         * doc/glibc-functions/forkpty.texi: More supported platforms.
32378         * config/srclist.txt: Add forkpty.c (commented).
32379
32380 2010-03-21  Bruno Haible  <bruno@clisp.org>
32381
32382         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
32383         (Makefile.am): Verify that PTY_LIB is defined.
32384
32385         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32386
32387 2010-03-21  Bruno Haible  <bruno@clisp.org>
32388
32389         Tests for module 'login_tty'.
32390         * modules/login_tty-tests: New file.
32391         * tests/test-login_tty.c: New file.
32392
32393         New module 'login_tty'.
32394         * lib/login_tty.c: New file.
32395         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32396         * modules/login_tty: New file.
32397         * doc/glibc-functions/login_tty.texi: Mention the new module.
32398
32399 2010-03-21  Bruno Haible  <bruno@clisp.org>
32400
32401         login_tty: Documentation.
32402         * doc/glibc-functions/login_tty.texi: New file.
32403         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32404
32405 2010-03-21  Bruno Haible  <bruno@clisp.org>
32406
32407         pty: Consistent macro naming.
32408         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
32409         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
32410         * modules/pty (configure.ac): Update.
32411
32412 2010-03-21  Bruno Haible  <bruno@clisp.org>
32413
32414         Tests for openpty: Make stricter.
32415         * tests/test-openpty.c (main): Add test of canonical processing and
32416         erase.
32417         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
32418
32419         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32420         * lib/openpty.c (openpty): New replacement function.
32421         * lib/pty.in.h: Include <termios.h>.
32422         (openpty): Update declaration. Add comments.
32423         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
32424         is not declared, arrange to provide the replacement. Check for _getpty
32425         and posix_openpt.
32426         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32427         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32428         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32429         * modules/pty-tests (test_pty_c___LDADD): New variable.
32430         * doc/glibc-functions/openpty.texi: More supported platforms.
32431
32432 2010-03-21  Bruno Haible  <bruno@clisp.org>
32433
32434         setenv: Tweaks.
32435         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32436         the test program.
32437         * doc/posix-functions/setenv.texi: Update platforms list.
32438
32439 2010-03-21  Bruno Haible  <bruno@clisp.org>
32440
32441         New module 'unlockpt'.
32442         * lib/unlockpt.c: New file, from glibc with modifications.
32443         * m4/unlockpt.m4: New file.
32444         * modules/unlockpt: New file.
32445         * lib/stdlib.in.h (unlockpt): New declaration.
32446         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
32447         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32448         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
32449         HAVE_UNLOCKPT.
32450         * doc/posix-functions/unlockpt.texi: Mention the new module.
32451         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
32452         * config/srclist.txt: Add unlockpt.c (commented).
32453
32454 2010-03-21  Jim Meyering  <meyering@redhat.com>
32455
32456         maint.mk: prohibit inclusion of "intprops.h" without use
32457         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
32458
32459 2010-03-21  Bruno Haible  <bruno@clisp.org>
32460
32461         New module 'grantpt'.
32462         * lib/grantpt.c: New file, from glibc with modifications.
32463         * m4/grantpt.m4: New file.
32464         * modules/grantpt: New file.
32465         * lib/stdlib.in.h (grantpt): New declaration.
32466         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
32467         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
32468         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
32469         HAVE_GRANTPT.
32470         * doc/posix-functions/grantpt.texi: Mention the new module.
32471         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
32472         * config/srclist.txt: Add grantpt.c (commented).
32473
32474 2010-03-21  Bruno Haible  <bruno@clisp.org>
32475
32476         New module 'pt_chown'.
32477         * lib/pt_chown.c: New file, from glibc with modifications.
32478         * lib/pty-private.h: New file, from glibc with modifications.
32479         * modules/pt_chown: New file.
32480         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
32481
32482 2010-03-21  Bruno Haible  <bruno@clisp.org>
32483
32484         Tests for module 'ptsname'.
32485         * modules/ptsname-tests: New file.
32486         * tests/test-ptsname.c: New file.
32487
32488         New module 'ptsname'.
32489         * lib/ptsname.c: New file, from glibc with modifications.
32490         * m4/ptsname.m4: New file.
32491         * modules/ptsname: New file.
32492         * lib/stdlib.in.h (ptsname): New declaration.
32493         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32494         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32495         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32496         HAVE_PTSNAME.
32497         * doc/posix-functions/ptsname.texi: Mention the new module.
32498         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32499         * config/srclist.txt: Add ptsname.c (commented).
32500
32501 2010-03-21  Bruno Haible  <bruno@clisp.org>
32502
32503         Tests for module 'ttyname_r'.
32504         * modules/ttyname_r-tests: New file.
32505         * tests/test-ttyname_r.c: New file.
32506
32507         New module 'ttyname_r'.
32508         * lib/ttyname_r.c: New file.
32509         * m4/ttyname_r.m4: New file.
32510         * modules/ttyname_r: New file.
32511         * lib/unistd.in.h (ttyname_r): New declaration.
32512         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32513         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32514         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32515         HAVE_TTYNAME_R.
32516         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32517         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32518
32519 2010-03-20  Bruno Haible  <bruno@clisp.org>
32520
32521         signal: Undefine macro definitions in C++ mode.
32522         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32523         sigfillset): Undefine macro definitions from the system header in C++
32524         mode.
32525         Reported by John W. Eaton <jwe@gnu.org>.
32526
32527 2010-03-20  Bruno Haible  <bruno@clisp.org>
32528
32529         Ensure no #include statements inside extern "C" { ... }.
32530         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32531         contain #include statements.
32532         * lib/time.in.h: Likewise.
32533
32534 2010-03-20  Bruno Haible  <bruno@clisp.org>
32535
32536         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32537         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32538         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32539         Reported by John W. Eaton <jwe@gnu.org>.
32540
32541 2010-03-20  Bruno Haible  <bruno@clisp.org>
32542
32543         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32544         Reported by Jim Meyering.
32545
32546 2010-03-20  Bruno Haible  <bruno@clisp.org>
32547
32548         pipe: Set errno upon failure.
32549         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32550         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32551         errno value in error message.
32552
32553 2010-03-20  Bruno Haible  <bruno@clisp.org>
32554             Jim Meyering  <meyering@redhat.com>
32555
32556         lchown: Avoid "unused variable" warning.
32557         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32558
32559 2010-03-20  Bruno Haible  <bruno@clisp.org>
32560
32561         Work around unlink() bug on MacOS X 10.5.6.
32562         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32563         attempting to unlink a parent directory.
32564         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32565         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32566         activate for the replacement function.
32567         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32568
32569 2010-03-20  Bruno Haible  <bruno@clisp.org>
32570
32571         Fix link errors on Solaris 8.
32572         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32573         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32574
32575 2010-03-19  Jim Meyering  <meyering@redhat.com>
32576
32577         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32578         The _LIBC implementation of build_range_exp correctly honors the
32579         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32580         However, the non-_LIBC implementation would ignore that syntax-bit
32581         flag and return REG_ERANGE unconditionally.
32582         This change makes it honor that flag.
32583         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32584         Make two pointer parameters "const".
32585         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32586         (parse_bracket_exp): Update caller.
32587
32588         regex.m4: correct the reversed range endpoint ([b-a]) test
32589         * m4/regex.m4: When requiring that [b-a] evoke failure,
32590         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32591         test pass once again for x86-based systems.
32592
32593 2010-03-19  Bruno Haible  <bruno@clisp.org>
32594
32595         scandir: Fix link error on Solaris 8.
32596         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32597         macros.
32598
32599 2010-03-19  Bruno Haible  <bruno@clisp.org>
32600
32601         getusershell: Fix documentation.
32602         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32603         module.
32604         * doc/glibc-functions/setusershell.texi: Likewise.
32605
32606         getusershell: Provide declaration, missing on Solaris 9.
32607         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32608         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32609         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32610         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32612         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32613         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32614         HAVE_GETUSERSHELL.
32615         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32616
32617 2010-03-19  Bruno Haible  <bruno@clisp.org>
32618
32619         wctype: Provide iswblank function.
32620         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32621         exists and is fine.
32622         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32623         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32624         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32625         * doc/posix-functions/iswblank.texi: Update.
32626
32627 2010-03-19  Bruno Haible  <bruno@clisp.org>
32628
32629         Tests of module 'pty' in C++ mode.
32630         * modules/pty-tests: New file.
32631         * tests/test-pty-c++.cc: New file.
32632         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32633
32634 2010-03-19  Eric Blake  <eblake@redhat.com>
32635
32636         logb: fix documentation
32637         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32638         1.5 declaration bug.
32639
32640         forkpty, openpty: prefer glibc's const-safe prototype
32641         * lib/forkpty.c (rpl_forkpty): New file.
32642         * lib/openpty.c (rpl_openpty): Likewise.
32643         * modules/forkpty (Files): Distribute it.
32644         * modules/openpty (Files): Likewise.
32645         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32646         check...
32647         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32648         replacement for for non-const BSD signature.
32649         * modules/pty (Makefile.am): Substitute witnesses.
32650         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32651         * tests/test-forkpty.c: Update signature check.
32652         * tests/test-openpty.c: Likewise.
32653         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32654         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32655
32656         forkpty, openpty: split functions into new modules
32657         * modules/pty (Makefile.am): Substitute new witnesses.
32658         (Libraries): Move library detection...
32659         * modules/forkpty: ...into new module.
32660         * modules/openpty: Another new module.
32661         * modules/pty-tests: Rename and split...
32662         * modules/forkpty-tests: ...to this...
32663         * modules/openpty-tests: ...and this.
32664         * tests/test-pty.c: Rename and split...
32665         * tests/test-forkpty.c: ...to this...
32666         * tests/test-openpty.c: ...and this.
32667         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32668         (gl_PTY): Split library searching...
32669         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32670         (gl_FORKPTY, gl_OPENPTY): New macros.
32671         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32672         * NEWS: Mention the split.
32673         * MODULES.html.sh (Misc): Document the modules.
32674         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32675         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32676
32677         pty: improve replacement header
32678         * lib/pty.in.h: New file.
32679         * modules/pty (Files): Ship it.
32680         (Makefile.am): Always build replacement.
32681         * m4/pty.m4: Rename...
32682         * m4/pty_h.m4: ...to this.
32683         (gl_PTY): Modernize setting of witness macros; update check of
32684         forkpty to take proper advantage of cache.
32685         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32686
32687         getopt: avoid compiler warning
32688         * lib/getopt.c (attribute_hidden): Remove unused macro.
32689
32690 2010-03-18  Bruno Haible  <bruno@clisp.org>
32691
32692         Fix link errors on Solaris 8.
32693         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32694         * modules/search-tests (test_search_c___LDADD): Likewise.
32695         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32696         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32697         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32698         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32699         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32700         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32701         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32702
32703 2010-03-18  Bruno Haible  <bruno@clisp.org>
32704
32705         Fix bug introduced on 2010-03-14.
32706         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32707         (gl_SPAWN_H): Require it.
32708         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32709         Reported by Simon Josefsson.
32710
32711 2010-03-18  Bruno Haible  <bruno@clisp.org>
32712
32713         Fix typo introduced on 2009-12-31.
32714         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32715         posix_spawn_file_actions_adddup2.
32716
32717 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32718         and Eric Blake  <eblake@redhat.com>
32719
32720         test-vc-list-files-git: make more robust
32721         * tests/test-vc-list-files-git.sh: Unset problematic environment
32722         variables.  Chain commands together.
32723
32724 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32725
32726         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32727         `AC_CHECK_DECL' invocation.
32728
32729 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32730
32731         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32732         appears before executable statements. Suggested by Petr Sumbera
32733         <Petr.Sumbera@Sun.COM>.
32734
32735 2010-03-14  Bruno Haible  <bruno@clisp.org>
32736
32737         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32738         portability problems. Instead use a simpler test.
32739         (main): Check that invalid arguments are rejected only on Linux.
32740
32741 2010-03-14  Bruno Haible  <bruno@clisp.org>
32742
32743         Fix bug introduced on 2009-12-31.
32744         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32745         gl_PREREQ_SYS_H_WINSOCK2 always.
32746         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32747         SYS_SOCKET_H variable.
32748         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32749         Update comments.
32750         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32751         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32752         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32753         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32754         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32755
32756 2010-03-14  Bruno Haible  <bruno@clisp.org>
32757
32758         Fix values returned by sinl, cosl.
32759         * lib/trigl.h: Add specification comments.
32760         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32761         that combines the values from the precomputed table with the values of
32762         the Chebyshev polynomials.
32763
32764 2010-03-14  Bruno Haible  <bruno@clisp.org>
32765
32766         Fix compilation error when modules 'posix_spawn[p]' are not used.
32767         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32768         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32769
32770 2010-03-14  Bruno Haible  <bruno@clisp.org>
32771
32772         Fix compilation error on mingw when module 'time_r' is not used.
32773         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32774         is 1.
32775         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32776         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32777         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32778         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32779
32780 2010-03-14  Bruno Haible  <bruno@clisp.org>
32781
32782         Fix compilation error with Sun C.
32783         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32784         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32785         instead of GCC specific ULONG_LONG_MAX.
32786         * lib/xstrtoll.c: Likewise.
32787         * lib/xstrtoull.c: Likewise.
32788
32789 2010-03-13  Bruno Haible  <bruno@clisp.org>
32790
32791         Allow the user to disable C++ code and tests.
32792         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32793         (gl_PROG_ANSI_CXX): Require it.
32794
32795 2010-03-13  Bruno Haible  <bruno@clisp.org>
32796
32797         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32798         cases.
32799
32800 2010-03-13  Bruno Haible  <bruno@clisp.org>
32801
32802         Test that gnulib does not break the standard C++ headers.
32803         * tests/test-locale-c++2.cc: New file.
32804         * modules/locale-tests (Files): Add it.
32805         (Makefile.am): Compile it for test-locale-c++.
32806         * tests/test-math-c++2.cc: New file.
32807         * modules/math-tests (Files): Add it.
32808         (Makefile.am): Compile it for test-math-c++.
32809         * tests/test-signal-c++2.cc: New file.
32810         * modules/signal-tests (Files): Add it.
32811         (Makefile.am): Compile it for test-signal-c++.
32812         * tests/test-stdio-c++2.cc: New file.
32813         * modules/stdio-tests (Files): Add it.
32814         (Makefile.am): Compile it for test-stdio-c++.
32815         * tests/test-stdlib-c++2.cc: New file.
32816         * modules/stdlib-tests (Files): Add it.
32817         (Makefile.am): Compile it for test-stdlib-c++.
32818         * tests/test-string-c++2.cc: New file.
32819         * modules/string-tests (Files): Add it.
32820         (Makefile.am): Compile it for test-string-c++.
32821         * tests/test-time-c++2.cc: New file.
32822         * modules/time-tests (Files): Add it.
32823         (Makefile.am): Compile it for test-time-c++.
32824         Reported by John W. Eaton <jwe@gnu.org>.
32825
32826 2010-03-13  Bruno Haible  <bruno@clisp.org>
32827
32828         * gnulib-tool (func_usage): Clarify which options are available for
32829         --create-testdir and --create-megatestdir.
32830
32831 2010-03-13  Bruno Haible  <bruno@clisp.org>
32832
32833         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32834         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32835         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32836         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32837         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32838         when appropriate.
32839         Reported by Jim Meyering.
32840
32841 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32842
32843         * gnulib-tool (func_import): Explain origin of code.
32844
32845 2010-03-12  Bruno Haible  <bruno@clisp.org>
32846
32847         Fix problem with automake's definition of CXXLINK.
32848         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32849         Reported by Simon Josefsson and Ludovic Courtès.
32850
32851 2010-03-12  Bruno Haible  <bruno@clisp.org>
32852
32853         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32854         stable releases.
32855
32856 2010-03-11  Bruno Haible  <bruno@clisp.org>
32857
32858         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32859         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32860         whether the system provides one variant or multiple variants of the
32861         function.
32862         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32863         C++ compilers.
32864         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32865         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32866         Reported by Jim Meyering.
32867
32868 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32869
32870         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32871
32872 2010-03-08  Bruno Haible  <bruno@clisp.org>
32873
32874         gnulib-tool: Add support for --libtool in --create-testdir.
32875         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32876         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32877
32878 2010-03-08  Eric Blake  <eblake@redhat.com>
32879
32880         gnulib-tool.texi: mention possibility of git submodule
32881         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32882         submodules.
32883         * doc/.gitignore: Ignore another generated file.
32884
32885 2010-03-08  Karl Berry  <karl@gnu.org>
32886
32887         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32888         of committing gnulib files while skipping others.
32889
32890 2010-03-07  Bruno Haible  <bruno@clisp.org>
32891
32892         Tests of module 'wctype' in C++ mode.
32893         * tests/test-wctype-c++.cc: New file.
32894         * modules/wctype-tests (Files): Add it and tests/signature.h.
32895         (Depends-on): Add ansi-c++-opt.
32896         (Makefile.am): Arrange to compile and run test-wctype-c++.
32897
32898         Tests of module 'wchar' in C++ mode.
32899         * tests/test-wchar-c++.cc: New file.
32900         * modules/wchar-tests (Files): Add it and tests/signature.h.
32901         (Depends-on): Add ansi-c++-opt.
32902         (Makefile.am): Arrange to compile and run test-wchar-c++.
32903         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32904         gl_MODULE_INDICATOR.
32905
32906         Tests of module 'unistd' in C++ mode.
32907         * tests/test-unistd-c++.cc: New file.
32908         * modules/unistd-tests (Files): Add it and tests/signature.h.
32909         (Depends-on): Add ansi-c++-opt.
32910         (Makefile.am): Arrange to compile and run test-unistd-c++.
32911         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32912         gl_MODULE_INDICATOR.
32913
32914         Tests of module 'time' in C++ mode.
32915         * tests/test-time-c++.cc: New file.
32916         * modules/time-tests (Files): Add it and tests/signature.h.
32917         (Depends-on): Add ansi-c++-opt.
32918         (Makefile.am): Arrange to compile and run test-time-c++.
32919         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32920
32921         Tests of module 'sys_time' in C++ mode.
32922         * tests/test-sys_time-c++.cc: New file.
32923         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32924         (Depends-on): Add ansi-c++-opt.
32925         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32926         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32927         gl_MODULE_INDICATOR.
32928
32929         Tests of module 'sys_stat' in C++ mode.
32930         * tests/test-sys_stat-c++.cc: New file.
32931         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32932         (Depends-on): Add ansi-c++-opt.
32933         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32934         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32935         gl_MODULE_INDICATOR.
32936
32937         Tests of module 'sys_socket' in C++ mode.
32938         * tests/test-sys_socket-c++.cc: New file.
32939         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32940         (Depends-on): Add ansi-c++-opt.
32941         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32942         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32943         gl_MODULE_INDICATOR.
32944
32945         Tests of module 'sys_select' in C++ mode.
32946         * tests/test-sys_select-c++.cc: New file.
32947         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32948         (Depends-on): Add ansi-c++-opt.
32949         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32950         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32951         gl_MODULE_INDICATOR.
32952
32953         Tests of module 'sys_ioctl' in C++ mode.
32954         * tests/test-sys_ioctl-c++.cc: New file.
32955         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32956         (Depends-on): Add ansi-c++-opt.
32957         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32958         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32959         gl_MODULE_INDICATOR.
32960
32961         Tests of module 'string' in C++ mode.
32962         * tests/test-string-c++.cc: New file.
32963         * modules/string-tests (Files): Add it and tests/signature.h.
32964         (Depends-on): Add ansi-c++-opt.
32965         (Makefile.am): Arrange to compile and run test-string-c++.
32966         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32967         gl_MODULE_INDICATOR.
32968
32969         Tests of module 'stdlib' in C++ mode.
32970         * tests/test-stdlib-c++.cc: New file.
32971         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32972         (Depends-on): Add ansi-c++-opt.
32973         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32974         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32975         gl_MODULE_INDICATOR.
32976
32977         Tests of module 'stdio' in C++ mode.
32978         * tests/test-stdio-c++.cc: New file.
32979         * modules/stdio-tests (Files): Add it and tests/signature.h.
32980         (Depends-on): Add ansi-c++-opt.
32981         (Makefile.am): Arrange to compile and run test-stdio-c++.
32982         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32983         gl_MODULE_INDICATOR.
32984
32985         Tests of module 'spawn' in C++ mode.
32986         * tests/test-spawn-c++.cc: New file.
32987         * modules/spawn-tests (Files): Add it and tests/signature.h.
32988         (Depends-on): Add ansi-c++-opt.
32989         (Makefile.am): Arrange to compile and run test-spawn-c++.
32990         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32991         gl_MODULE_INDICATOR.
32992
32993         Tests of module 'signal' in C++ mode.
32994         * tests/test-signal-c++.cc: New file.
32995         * modules/signal-tests (Files): Add it and tests/signature.h.
32996         (Depends-on): Add ansi-c++-opt.
32997         (Makefile.am): Arrange to compile and run test-signal-c++.
32998         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32999         gl_MODULE_INDICATOR.
33000
33001         Tests of module 'search' in C++ mode.
33002         * tests/test-search-c++.cc: New file.
33003         * modules/search-tests (Files): Add it and tests/signature.h.
33004         (Depends-on): Add ansi-c++-opt.
33005         (Makefile.am): Arrange to compile and run test-search-c++.
33006         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33007         gl_MODULE_INDICATOR.
33008
33009         Tests of module 'math' in C++ mode.
33010         * tests/test-math-c++.cc: New file.
33011         * modules/math-tests (Files): Add it and tests/signature.h.
33012         (Depends-on): Add ansi-c++-opt.
33013         (Makefile.am): Arrange to compile and run test-math-c++.
33014         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33015
33016         Tests of module 'locale' in C++ mode.
33017         * tests/test-locale-c++.cc: New file.
33018         * modules/locale-tests (Files): Add it and tests/signature.h.
33019         (Depends-on): Add ansi-c++-opt.
33020         (Makefile.am): Arrange to compile and run test-locale-c++.
33021         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33022         gl_MODULE_INDICATOR.
33023
33024         Tests of module 'langinfo' in C++ mode.
33025         * tests/test-langinfo-c++.cc: New file.
33026         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33027         (Depends-on): Add ansi-c++-opt.
33028         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33029         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33030         gl_MODULE_INDICATOR.
33031
33032         Tests of module 'iconv-h' in C++ mode.
33033         * tests/test-iconv-h-c++.cc: New file.
33034         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33035         (Depends-on): Add ansi-c++-opt.
33036         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33037
33038         Tests of module 'glob' in C++ mode.
33039         * tests/test-glob-c++.cc: New file.
33040         * modules/glob-tests (Files): Add it.
33041         (Depends-on): Add ansi-c++-opt.
33042         (Makefile.am): Arrange to compile and run test-glob-c++.
33043
33044         Tests of module 'fcntl-h' in C++ mode.
33045         * tests/test-fcntl-h-c++.cc: New file.
33046         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33047         (Depends-on): Add ansi-c++-opt.
33048         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33049         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33050         gl_MODULE_INDICATOR.
33051
33052         Tests of module 'dirent' in C++ mode.
33053         * tests/test-dirent-c++.cc: New file.
33054         * modules/dirent-tests (Files): Add it and tests/signature.h.
33055         (Depends-on): Add ansi-c++-opt.
33056         (Makefile.am): Arrange to compile and run test-dirent-c++.
33057         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33058         gl_MODULE_INDICATOR.
33059
33060         New module 'ansi-c++-opt'.
33061         * modules/ansi-c++-opt: New file.
33062         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33063
33064         Document C++ namespace mode.
33065         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33066
33067         wctype: Avoid #define replacements in C++ mode.
33068         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33069         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33070         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33071         In C++, define a namespaced alias symbol.
33072         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33073         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33074         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33075         rule.
33076
33077         wchar: Avoid #define replacements in C++ mode.
33078         * lib/wchar.in.h: Include c++defs.h.
33079         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33080         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33081         symbol.
33082         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33083         * modules/wchar (Depends-on): Add c++defs.
33084         (Makefile.am): Update wchar.h rule.
33085
33086         unistd: Avoid #define replacements in C++ mode.
33087         * lib/unistd.in.h: Include c++defs.h.
33088         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33089         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33090         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33091         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33092         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33093         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33094         symbol.
33095         (environ): Update.
33096         * modules/unistd (Depends-on): Add c++defs.
33097         (Makefile.am): Update unistd.h rule.
33098
33099         time: Avoid #define replacements in C++ mode.
33100         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33101         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33102         define a namespaced alias symbol.
33103         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33104         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33105         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33106         * modules/time (Depends-on): Add c++defs, warn-on-use.
33107         (Makefile.am): Update time.h rule.
33108         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33109         * modules/nanosleep (configure.ac): Likewise.
33110         * modules/strptime (configure.ac): Likewise.
33111         * modules/timegm (configure.ac): Likewise.
33112
33113         sys_time: Avoid #define replacements in C++ mode.
33114         * lib/sys_time.in.h: Include c++defs.h.
33115         (gettimeofday): In C++, define a namespaced alias symbol.
33116         * modules/sys_time (Depends-on): Add c++defs.
33117         (Makefile.am): Update sys/time.h rule.
33118
33119         sys_stat: Avoid #define replacements in C++ mode.
33120         * lib/sys_stat.in.h: Include c++defs.h.
33121         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33122         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33123         namespaced alias symbol.
33124         In C++, define a namespaced alias symbol.
33125         * modules/sys_stat (Depends-on): Add c++defs.
33126         (Makefile.am): Update sys/stat.h rule.
33127
33128         sys_socket: Avoid #define replacements in C++ mode.
33129         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33130         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33131         definitions also when the system has a <sys/socket.h>.
33132         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33133         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33134         In C++, define a namespaced alias symbol.
33135         * modules/sys_socket (Depends-on): Add c++defs.
33136         (Makefile.am): Update sys/socket.h rule.
33137
33138         sys_select: Avoid #define replacements in C++ mode.
33139         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33140         definitions also when the system has a <sys/select.h>.
33141         (select): In C++, define a namespaced alias symbol.
33142         * modules/sys_select (Depends-on): Add c++defs.
33143         (Makefile.am): Update sys/select.h rule.
33144
33145         sys_ioctl: Avoid #define replacements in C++ mode.
33146         * lib/sys_ioctl.in.h: Include c++defs.h.
33147         (ioctl): In C++, define a namespaced alias symbol.
33148         * modules/sys_ioctl (Depends-on): Add c++defs.
33149         (Makefile.am): Update sys/ioctl.h rule.
33150
33151         string: Avoid #define replacements in C++ mode.
33152         * lib/string.in.h: Include c++defs.h.
33153         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33154         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33155         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33156         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33157         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33158         * modules/string (Depends-on): Add c++defs.
33159         (Makefile.am): Update string.h rule.
33160
33161         stdlib: Avoid #define replacements in C++ mode.
33162         * lib/stdlib.in.h: Include c++defs.h.
33163         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33164         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33165         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33166         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33167         symbol.
33168         * modules/stdlib (Depends-on): Add c++defs.
33169         (Makefile.am): Update stdlib.h rule.
33170
33171         stdio: Avoid #define replacements in C++ mode.
33172         * lib/stdio.in.h: Include c++defs.h.
33173         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33174         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33175         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33176         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33177         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33178         namespaced alias symbol.
33179         * modules/stdio (Depends-on): Add c++defs.
33180         (Makefile.am): Update stdio.h rule.
33181
33182         spawn: Avoid #define replacements in C++ mode.
33183         * lib/spawn.in.h: Include c++defs.h.
33184         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33185         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33186         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33187         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33188         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33189         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33190         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33191         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33192         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33193         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33194         In C++, define a namespaced alias symbol.
33195         * modules/spawn (Depends-on): Add c++defs.
33196         (Makefile.am): Update spawn.h rule.
33197
33198         signal: Avoid #define replacements in C++ mode.
33199         * lib/signal.in.h: Include c++defs.h.
33200         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33201         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33202         namespaced alias symbol.
33203         * modules/signal (Depends-on): Add c++defs.
33204         (Makefile.am): Update signal.h rule.
33205
33206         search: Avoid #define replacements in C++ mode.
33207         * lib/search.in.h: Include c++defs.h.
33208         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33209         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33210         symbol.
33211         * modules/search (Depends-on): Add c++defs.
33212         (Makefile.am): Update search.h rule.
33213
33214         math: Avoid #define replacements in C++ mode.
33215         * lib/math.in.h: Include c++defs.h.
33216         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33217         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33218         trunc, truncl): In C++, define a namespaced alias symbol.
33219         * modules/math (Depends-on): Add c++defs.
33220         (Makefile.am): Update math.h rule.
33221
33222         locale: Avoid #define replacements in C++ mode.
33223         * lib/locale.in.h: Include c++defs.h.
33224         (duplocale): In C++, define a namespaced alias symbol.
33225         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33226         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33227         * modules/locale (Depends-on): Add c++defs.
33228         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33229
33230         langinfo: Avoid #define replacements in C++ mode.
33231         * lib/langinfo.in.h: Include c++defs.h.
33232         (nl_langinfo): In C++, define a namespaced alias symbol.
33233         * modules/langinfo (Depends-on): Add c++defs.
33234         (Makefile.am): Update langinfo.h rule.
33235
33236         iconv-h: Avoid #define replacements in C++ mode.
33237         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33238         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33239         symbol.
33240         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33241         whenever iconv is present.
33242         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33243         (Makefile.am): Update iconv.h rule.
33244
33245         glob: Avoid #define replacements in C++ mode.
33246         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33247         (_gl_glob_errfunc_fn): New type.
33248         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33249         symbol.
33250         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33251         (Makefile.am): Update glob.h rule.
33252
33253         fcntl-h: Avoid #define replacements in C++ mode.
33254         * lib/fcntl.in.h: Include c++defs.h.
33255         (fcntl, open, openat): In C++, define a namespaced alias symbol.
33256         * modules/fcntl-h (Depends-on): Add c++defs.
33257         (Makefile.am): Update fcntl.h rule.
33258
33259         dirent: Avoid #define replacements in C++ mode.
33260         * lib/dirent.in.h: Include c++defs.h.
33261         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
33262         namespaced alias symbol.
33263         (dirfd): Update declaration.
33264         * modules/dirent (Depends-on): Add c++defs.
33265         (Makefile.am): Update dirent.h rule.
33266
33267         ctype: Make it usable in C++ code.
33268         * lib/ctype.in.h: Include c++defs.h.
33269         (isblank): Declare as extern "C".
33270         * modules/ctype (Depends-on): Add c++defs.
33271         (Makefile.am): Update ctype.h rule.
33272
33273         New module 'c++defs'.
33274         * modules/c++defs: New file.
33275         * build-aux/c++defs.h: New file.
33276         Reported by John W. Eaton <jwe@gnu.org>.
33277
33278 2010-03-07  Bruno Haible  <bruno@clisp.org>
33279
33280         logb: Provide missing declaration for Cygwin.
33281         * lib/math.in.h (logb): New declaration.
33282         * m4/logb.m4: New file.
33283         * modules/logb (Files): Add m4/logb.m4.
33284         (Depends-on): Add math.
33285         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33286         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33287         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33288         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33289         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33290
33291 2010-03-07  Bruno Haible  <bruno@clisp.org>
33292
33293         Fix test-cond link error.
33294         * tests/test-cond.c: Include <stdio.h>.
33295
33296 2010-03-07  Bruno Haible  <bruno@clisp.org>
33297
33298         Fix test-dirent-safer link error.
33299         * modules/dirent-safer-tests (Makefile.am): Define
33300         test_dirent_safer_LDADD.
33301
33302 2010-03-07  Bruno Haible  <bruno@clisp.org>
33303
33304         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33305         among default module list.
33306
33307 2010-03-07  Bruno Haible  <bruno@clisp.org>
33308
33309         Fix link error on platforms with GNU libiconv.
33310         * modules/unistr/u8-strcoll-tests (Makefile): Define
33311         test_u8_strcoll_LDADD.
33312         * modules/unistr/u16-strcoll-tests (Makefile): Define
33313         test_u16_strcoll_LDADD.
33314         * modules/unistr/u32-strcoll-tests (Makefile): Define
33315         test_u32_strcoll_LDADD.
33316
33317 2010-03-07  Bruno Haible  <bruno@clisp.org>
33318
33319         Use POSIX declarations for socket functions.
33320         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33321         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33322         rpl_sendto): Change declaration to match POSIX.
33323         * lib/connect.c (rpl_connect): Likewise.
33324         * lib/accept.c (rpl_accept): Likewise.
33325         * lib/bind.c (rpl_bind): Likewise.
33326         * lib/getpeername.c (rpl_getpeername): Likewise.
33327         * lib/getsockname.c (rpl_getsockname): Likewise.
33328         * lib/recv.c (rpl_recv): Likewise.
33329         * lib/send.c (rpl_send): Likewise.
33330         * lib/recvfrom.c (rpl_recvfrom): Likewise.
33331         * lib/sendto.c (rpl_sendto): Likewise.
33332
33333 2010-03-06  Bruno Haible  <bruno@clisp.org>
33334
33335         Clarify access, euidaccess, faccessat.
33336         * doc/posix-functions/faccessat.texi: Mention security problem under
33337         "Other problems", not "Portability problems".
33338         * doc/posix-functions/access.texi: Likewise. Mention a related security
33339         problem.
33340         * doc/glibc-functions/euidaccess.texi: Mention security problems.
33341         * lib/euidaccess.c: Add comments about platforms.
33342         * lib/unistd.in.h (access, euidaccess): Add warnings.
33343
33344 2010-03-07  Bruno Haible  <bruno@clisp.org>
33345
33346         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
33347         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
33348         (POSIX_SPAWN_SETSCHEDULER): Likewise.
33349         (POSIX_SPAWN_USEVFORK): Define in a way that works when
33350         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33351         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
33352         declare when POSIX_SPAWN_SETSCHEDULER is zero.
33353         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
33354         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
33355         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
33356         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
33357         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
33358         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
33359         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
33360         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
33361         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
33362         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
33363         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
33364         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
33365         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
33366         Likewise.
33367         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
33368         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
33369         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
33370         Likewise.
33371         * tests/test-spawn.c (main): Make it work when
33372         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33373
33374 2010-03-07  Bruno Haible  <bruno@clisp.org>
33375
33376         Fix incorrect Makefile.am generation in German locale.
33377         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33378         Execute sed command with character range in C locale.
33379
33380 2010-03-06  Bruno Haible  <bruno@clisp.org>
33381
33382         Tests for module 'iconv-h'.
33383         * modules/iconv-h-tests: New file.
33384         * tests/test-iconv-h.c: New file.
33385
33386         New module 'iconv-h'.
33387         * modules/iconv-h: New file.
33388         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33389         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33390         (configure.ac): Remove gl_ICONV_H.
33391         (Makefile.am): Remove rule for iconv.h.
33392
33393 2010-03-06  Bruno Haible  <bruno@clisp.org>
33394
33395         More consistent naming of *.m4 files.
33396         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33397         * modules/wctype (Files): Update.
33398
33399         More consistent naming of *.m4 files.
33400         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33401         * modules/wchar (Files): Update.
33402
33403 2010-03-06  Jim Meyering  <meyering@redhat.com>
33404
33405         euidaccess: relax license to LGPLv2+
33406         * modules/euidaccess (License): Relax to LGPLv2+.
33407
33408 2010-03-06  Bruno Haible  <bruno@clisp.org>
33409
33410         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
33411         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33412         (Makefile.am): Augment lib_SOURCES instead.
33413
33414 2010-03-04  Jim Meyering  <meyering@redhat.com>
33415
33416         utime: remove obsolete module
33417         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
33418         unnecessary for years, and has been marked as obsolete for 10 months.
33419         * modules/utime: Remove file.
33420         * lib/utime.c: Remove file.
33421         * m4/utime.m4: Remove file.
33422         * m4/utimes-null.m4: Remove file.
33423         * doc/posix-functions/utime.texi (utime): Remove reference to
33424         the module.  Move the sole "fixed by gnulib" item into the
33425         "problems not fixed by Gnulib" list.
33426         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33427
33428 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33429
33430         * modules/exit (License): Relax license to LGPLv2+.
33431         (Status): Mark as obsolete.
33432         * NEWS: Mention deprecated 'exit' module.
33433         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33434         of now obsolete 'exit'.
33435
33436 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33437
33438         fts-lgpl: remove unused module
33439         * modules/fts-lgpl: Remove.
33440         * MODULES.html.sh (func_all_modules): Adjust.
33441         * check-module (find_included_lib_files): Adjust.
33442         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
33443
33444 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
33445
33446         copy-acl: enhance Solaris ACL error handling
33447         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
33448         * lib/set-mode-acl.c (qset_acl): Likewise.
33449
33450 2010-03-02  Bruno Haible  <bruno@clisp.org>
33451
33452         spawn: Don't override the system defined values on FreeBSD 8.
33453         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
33454         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
33455         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
33456         if HAVE_POSIX_SPAWN is 1.
33457         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
33458
33459 2010-03-01  Bruno Haible  <bruno@clisp.org>
33460
33461         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
33462         regarding Automake.
33463
33464 2010-02-25  Bruno Haible  <bruno@clisp.org>
33465
33466         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
33467         * gnulib-tool: Define 'echo' as a function only before the ksh alias
33468         setting, not afterwards.
33469         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
33470
33471 2010-02-24  Eric Blake  <eblake@redhat.com>
33472
33473         bootstrap, git-version-gen: use timestamp
33474         * build-aux/git-version-gen (scriptversion): Force UTC.
33475         * build-aux/bootstrap (scriptversion): New variable.
33476
33477         bootstrap: allow older git
33478         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
33479         older than 1.6.4.  Requested by the libvirt project.
33480
33481 2010-02-23  Eric Blake  <eblake@redhat.com>
33482
33483         warn-on-use: work with old autoconf
33484         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33485         AS_VAR semantics of autoconf 2.60.
33486         Reported by Bruno Haible.
33487
33488         bootstrap: improve some comments
33489         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33490         clarification comments.
33491
33492         gettimeofday: provide correct function
33493         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33494         when replacement is declared, otherwise provide gettimeofday.
33495         Reported by Michael Goffioul.
33496
33497 2010-02-23  Jim Meyering  <meyering@redhat.com>
33498
33499         lib-ignore: relax license to "unlimited", not LGPLv2+
33500         * modules/lib-ignore (License): Relax to "unlimited".
33501
33502 2010-02-23  Jim Meyering  <meyering@redhat.com>
33503
33504         lib-ignore: relax license to LGPLv2+
33505         * modules/lib-ignore (License): Relax to LGPLv2+.
33506
33507 2010-02-22  Eric Blake  <eblake@redhat.com>
33508
33509         lseek: avoid bash 3.2 broken pipe bug
33510         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33511         warning from bash 3.2.
33512         Reported by Ben Pfaff, with analysis from Bruno Haible.
33513
33514         bootstrap: support non-FSF copyright holder
33515         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33516         bootstrap.conf override of COPYRIGHT_HOLDER.
33517         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33518
33519         bootstrap: interoperate with gettext 0.14.1
33520         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33521
33522         bootstrap: allow for alternate submodule location
33523         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33524         hardcoding submodule location.
33525         (gnulib_mk): Allow direct use of Makefile.am.
33526
33527         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33528         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33529         rather than reconfiguring where the submodule points.
33530
33531         gettimeofday: restore support for platforms that lack function
33532         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33533         replacement if function is missing.
33534         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33535         * modules/sys_time (Makefile.am): Substitute it.
33536         * lib/sys_time.in.h (gettimeofday): Check it.
33537         Reported by Michael Goffioul.
33538
33539 2010-02-21  Bruno Haible  <bruno@clisp.org>
33540
33541         * lib/stdio.in.h (obstack_printf): Fix typo.
33542
33543 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33544
33545         vc-list-files: use bzr ls's -R option
33546         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33547         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33548
33549 2010-02-21  Jim Meyering  <meyering@redhat.com>
33550
33551         init.sh: fix EXEEXT shims to work also for names like test-prog
33552         * tests/init.sh: Re-exec a better shell, when needed.
33553         If the current shell lacks support for posix $(...), an init.sh-using
33554         test will now try to find a shell that supports that.  If EXEEXT is
33555         nonempty, we also require support for hyphen-in-alias-name and shell
33556         substitutions like ${var#glob}.  Failure to find such a shell results
33557         in a skipped test.
33558
33559 2010-02-21  Bruno Haible  <bruno@clisp.org>
33560
33561         Really work around around "broken pipe" error message from bash 3.2.
33562         * gnulib-tool (func_reset_sigpipe): Remove function.
33563         (echo): In bash 3.2, define to a function that uses printf.
33564         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33565
33566 2010-02-20  Bruno Haible  <bruno@clisp.org>
33567
33568         Restore support for automake 1.9.6 with autoconf 2.61.
33569         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33570         Reported by James Youngman <jay@gnu.org>.
33571
33572 2010-02-20  Bruno Haible  <bruno@clisp.org>
33573
33574         Improve *printf warning condition.
33575         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33576         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33577         and the function is overridden due to SIGPIPE emulation.
33578
33579 2010-02-20  Bruno Haible  <bruno@clisp.org>
33580
33581         * lib/stdio.in.h: Tweak comments.
33582
33583 2010-02-19  Bruno Haible  <bruno@clisp.org>
33584
33585         Make it easier to find modules. New gnulib-tool option '--find'.
33586         * gnulib-tool: New option --find.
33587         (func_usage): Document it.
33588         (func_sanitize_modulelist): New function, extracted from
33589         func_all_modules.
33590         (func_all_modules): Invoke it.
33591         * doc/gnulib-tool.texi (Which modules?): New node.
33592
33593 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33594
33595         * lib/sys_select.in.h: Provide select replacement even if
33596         sys/select.h exists on a system, for Interix.
33597
33598 2010-02-18  Jim Meyering  <meyering@redhat.com>
33599
33600         init.sh: don't use $(...) just yet
33601         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33602         to accommodate e.g., Solaris' /bin/sh.
33603
33604 2010-02-17  Bruno Haible  <bruno@clisp.org>
33605
33606         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33607         Reported by Ludovic Courtès <ludo@gnu.org>.
33608
33609 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33610
33611         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33612         linking with -lintl.
33613
33614 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33615
33616         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33617         if not provided by the system's netdb.h.  Reported by
33618         ludo@gnu.org (Ludovic Courtès).
33619
33620 2010-02-15  Jim Meyering  <meyering@redhat.com>
33621
33622         init.sh: improve portability and efficiency
33623         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33624         "dummy" in a for loop.
33625         Use '!', not '^' to select the complement of a character set used
33626         in a "case" statement.
33627         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33628         Suggestions from Eric Blake.
33629
33630         init.sh: automatically accommodate programs with the .exe suffix
33631         Automatically arrange for an invocation of "prog" to execute the
33632         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33633         may use the simpler "prog", yet still work when built on a system
33634         that requires specifying the added suffix.
33635         Do this by constructing a function named "prog" that invokes
33636         "prog.exe" for each .exe file in selected directories.
33637         * tests/init.sh (find_exe_basenames_): New function.
33638         (create_exe_shim_functions_): New function.
33639         (path_prepend_): Use it.
33640
33641         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33642         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33643         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33644
33645 2010-02-14  Jim Meyering  <meyering@redhat.com>
33646
33647         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33648         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33649         (sc_prohibit_hash_pjw_without_use): New rule.
33650
33651         maint.mk: allow the default upload destination dir to be overridden
33652         * top/maint.mk (upload_dest_dir_): Define with a default that
33653         preserves the status quo.
33654         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33655         Reported by Peter Simons.
33656
33657         maint.mk: prohibit inclusion of "hash.h" without_use
33658         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33659
33660 2010-02-10  Jim Meyering  <meyering@redhat.com>
33661
33662         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33663         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33664
33665 2010-02-09  Eric Blake  <ebb9@byu.net>
33666         and Bruno Haible  <bruno@clisp.org>
33667
33668         obstack-printf-posix: ensure declaration
33669         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33670         extracted from gl_FUNC_OBSTACK_PRINTF.
33671         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33672         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33673         Likewise.
33674         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33675         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33676         0.
33677
33678 2010-02-08  Bruno Haible  <bruno@clisp.org>
33679
33680         gnulib-tool: Fix typo in 2010-02-07 commit.
33681         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33682         Reported by Eric Blake.
33683
33684 2010-02-07  Bruno Haible  <bruno@clisp.org>
33685
33686         gnulib-tool: Fix up caching patches.
33687         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33688         option --no-cache. Use associative arrays when supported by the shell.
33689         (sed_comments): New variable.
33690         (modcache): Renamed from do_cache.
33691         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33692         abbreviate unnecessarily.
33693         (have_associative): New variable.
33694         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33695         way also for ksh and zsh.
33696         (func_init_sed_convert_to_cache_statements): New function, extracted
33697         from func_cache_lookup_module. Add support for associative arrays.
33698         Don't set the c_MODULE_cached variable here. Ignore all lines before
33699         the first field header. Remove only the final newline, not all trailing
33700         newlines. Support empty fields correctly. Limit the use of 'eval' to
33701         assignments.
33702         (func_get_description, func_get_status, func_get_notice,
33703         func_get_applicability, func_get_filelist, func_get_dependencies,
33704         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33705         func_get_automake_snippet, func_get_include_directive,
33706         func_get_link_directive, func_get_license, func_get_maintainer):
33707         Update documentation. List the unoptimized code first. Add support for
33708         associative arrays. Limit the use of 'eval' to assignments.
33709         (func_get_applicability): Undo stylistic pessimisations.
33710         (func_get_automake_snippet, func_get_include_directive): Reduce code
33711         duplication.
33712         (func_modules_transitive_closure, func_modules_add_dummy,
33713         func_modules_notice, func_modules_to_filelist, func_add_file,
33714         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33715         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33716         func_create_testdir, func_create_megatestdir): Update documentation.
33717
33718 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33719
33720         * gnulib-tool (func_cache_lookup_module): Store the module name
33721         belonging to the cache variable; error out if two different
33722         module names map to the same cache variable name.
33723
33724 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33725
33726         gnulib-tool: Make caching optional.
33727         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33728         Update matching short versions of --no-changelog.
33729         (func_usage): Update.
33730         (sed_extract_cache_prog): Renamed from ...
33731         (sed_extract_prog): ... this; revert to old extraction script.
33732         (func_get_description, func_get_status)
33733         (func_get_notice, func_get_applicability, func_get_filelist)
33734         (func_get_dependencies, func_get_autoconf_early_snippet)
33735         (func_get_autoconf_snippet, func_get_automake_snippet)
33736         (func_get_include_directive, func_get_link_directive)
33737         (func_get_license, func_get_maintainer): If $do_cache is false,
33738         use old, non-caching extraction scripts.
33739         Suggestion by Bruno Haible.
33740
33741 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33742
33743         gnulib-tool: cache module metainformation.
33744         * gnulib-tool (sed_extract_prog): Match newline before each
33745         header, and rewrite header to a shell variable suffix.
33746         (func_cache_var, func_cache_lookup_module): New functions,
33747         to turn a module name into a cache variable prefix, and to
33748         look up and cache module metainformation.
33749         (func_get_description, func_get_status)
33750         (func_get_notice, func_get_applicability, func_get_filelist)
33751         (func_get_dependencies, func_get_autoconf_early_snippet)
33752         (func_get_autoconf_snippet, func_get_automake_snippet)
33753         (func_get_include_directive, func_get_link_directive)
33754         (func_get_license, func_get_maintainer): Use
33755         func_cache_lookup_module.
33756
33757 2010-02-07  Bruno Haible  <bruno@clisp.org>
33758
33759         fnctl: Fix missing dependency.
33760         * modules/fcntl (Depends-on): Add getdtablesize.
33761         Reported by John W. Eaton <jwe@gnu.org>.
33762
33763 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33764
33765         Argp: fix recognition of short alias options.
33766
33767         * lib/argp-parse.c (convert_options): Fix improper use of
33768         `|' between character values.
33769         * tests/test-argp.c (group1_option): New alias option
33770         --read (-r).
33771         (group1_parser): Special handling for 'r'.
33772         (test15): New test case.
33773         (test_fun): Add test15.
33774         * tests/test-argp-2.sh: Update expected --help and --usage
33775         outputs.
33776
33777 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33778
33779         * tests/test-argp.c: Fix indentation.
33780
33781 2010-02-04  Eric Blake  <ebb9@byu.net>
33782
33783         gettimeofday: expose type of second argument
33784         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33785         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33786         * tests/test-gettimeofday.c: Use it to silence warning.
33787         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33788         the issue.
33789
33790 2010-02-03  Jim Meyering  <meyering@redhat.com>
33791
33792         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33793         * lib/regcomp.c (TYPE_SIGNED): Define.
33794         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33795
33796         regcomp.c: avoid a new -Wshadow warning
33797         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33798
33799 2010-02-01  Jim Meyering  <meyering@redhat.com>
33800
33801         removing useless parentheses in cpp #define directives
33802         For motivation, see commit c0221df4, "define STREQ(a,b)
33803         consistently, removing useless parentheses"
33804         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33805         * lib/mountlist.c (MNT_IGNORE): Likewise.
33806         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33807
33808 2010-02-01  Eric Blake  <ebb9@byu.net>
33809
33810         sys_time: use link-warning
33811         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33812         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33813         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33814         * modules/sys_time (Depends-on): Add warn-on-use.
33815         (Makefile.am): Always build replacement.
33816         (configure.ac): Update substitutions.
33817         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33818         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33819         bother with SYS_TIME_H.
33820         * modules/gettimeofday (configure.ac): Declare indicator.
33821         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33822         in use.
33823
33824         closein-tests: silence compiler warning
33825         * tests/test-closein.c (main): Ignore fread result.
33826         * modules/closein-tests (Depends-on): Add ignore-value.
33827
33828         tests: silence warning about system return
33829         * tests/test-areadlink-with-size.c (main): Ignore system result.
33830         * tests/test-areadlink.c (main): Likewise.
33831         * tests/test-areadlinkat-with-size.c (main): Likewise.
33832         * tests/test-areadlinkat.c (main): Likewise.
33833         * tests/test-canonicalize-lgpl.c (main): Likewise.
33834         * tests/test-canonicalize.c (main): Likewise.
33835         * tests/test-chown.c (main): Likewise.
33836         * tests/test-fchownat.c (main): Likewise.
33837         * tests/test-fdutimensat.c (main): Likewise.
33838         * tests/test-fstatat.c (main): Likewise.
33839         * tests/test-futimens.c (main): Likewise.
33840         * tests/test-lchown.c (main): Likewise.
33841         * tests/test-link.c (main): Likewise.
33842         * tests/test-linkat.c (main): Likewise.
33843         * tests/test-lstat.c (main): Likewise.
33844         * tests/test-mkdir.c (main): Likewise.
33845         * tests/test-mkdirat.c (main): Likewise.
33846         * tests/test-mkfifo.c (main): Likewise.
33847         * tests/test-mkfifoat.c (main): Likewise.
33848         * tests/test-mknod.c (main): Likewise.
33849         * tests/test-readlink.c (main): Likewise.
33850         * tests/test-remove.c (main): Likewise.
33851         * tests/test-rename.c (main): Likewise.
33852         * tests/test-renameat.c (main): Likewise.
33853         * tests/test-rmdir.c (main): Likewise.
33854         * tests/test-symlink.c (main): Likewise.
33855         * tests/test-symlinkat.c (main): Likewise.
33856         * tests/test-unlink.c (main): Likewise.
33857         * tests/test-unlinkat.c (main): Likewise.
33858         * tests/test-utimens.c (main): Likewise.
33859         * tests/test-utimensat.c (main): Likewise.
33860         * modules/areadlink-tests (Depends-on): Add ignore-value.
33861         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33862         * modules/areadlinkat-tests (Depends-on): Likewise.
33863         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33864         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33865         * modules/canonicalize-tests (Depends-on): Likewise.
33866         * modules/chown-tests (Depends-on): Likewise.
33867         * modules/fdutimensat-tests (Depends-on): Likewise.
33868         * modules/futimens-tests (Depends-on): Likewise.
33869         * modules/lchown-tests (Depends-on): Likewise.
33870         * modules/link-tests (Depends-on): Likewise.
33871         * modules/linkat-tests (Depends-on): Likewise.
33872         * modules/lstat-tests (Depends-on): Likewise.
33873         * modules/mkdir-tests (Depends-on): Likewise.
33874         * modules/mkfifo-tests (Depends-on): Likewise.
33875         * modules/mkfifoat-tests (Depends-on): Likewise.
33876         * modules/mknod-tests (Depends-on): Likewise.
33877         * modules/openat-tests (Depends-on): Likewise.
33878         * modules/readlink-tests (Depends-on): Likewise.
33879         * modules/remove-tests (Depends-on): Likewise.
33880         * modules/rename-tests (Depends-on): Likewise.
33881         * modules/renameat-tests (Depends-on): Likewise.
33882         * modules/rmdir-tests (Depends-on): Likewise.
33883         * modules/symlink-tests (Depends-on): Likewise.
33884         * modules/symlinkat-tests (Depends-on): Likewise.
33885         * modules/unlink-tests (Depends-on): Likewise.
33886         * modules/utimens-tests (Depends-on): Likewise.
33887         * modules/utimensat-tests (Depends-on): Likewise.
33888
33889 2010-01-31  Bruno Haible  <bruno@clisp.org>
33890
33891         Perform the same test for many <math.h> functions.
33892         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33893         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33894         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33895         of gl_MATHFUNC.
33896         * modules/acos (configure.ac): Likewise.
33897         * modules/asin (configure.ac): Likewise.
33898         * modules/atan (configure.ac): Likewise.
33899         * modules/atan2 (configure.ac): Likewise.
33900         * modules/cbrt (configure.ac): Likewise.
33901         * modules/copysign (configure.ac): Likewise.
33902         * modules/cos (configure.ac): Likewise.
33903         * modules/cosh (configure.ac): Likewise.
33904         * modules/erf (configure.ac): Likewise.
33905         * modules/erfc (configure.ac): Likewise.
33906         * modules/exp (configure.ac): Likewise.
33907         * modules/fmod (configure.ac): Likewise.
33908         * modules/hypot (configure.ac): Likewise.
33909         * modules/j0 (configure.ac): Likewise.
33910         * modules/j1 (configure.ac): Likewise.
33911         * modules/jn (configure.ac): Likewise.
33912         * modules/lgamma (configure.ac): Likewise.
33913         * modules/log (configure.ac): Likewise.
33914         * modules/log10 (configure.ac): Likewise.
33915         * modules/log1p (configure.ac): Likewise.
33916         * modules/pow (configure.ac): Likewise.
33917         * modules/remainder (configure.ac): Likewise.
33918         * modules/sin (configure.ac): Likewise.
33919         * modules/sinh (configure.ac): Likewise.
33920         * modules/tan (configure.ac): Likewise.
33921         * modules/tanh (configure.ac): Likewise.
33922         * modules/y0 (configure.ac): Likewise.
33923         * modules/y1 (configure.ac): Likewise.
33924         * modules/yn (configure.ac): Likewise.
33925         Suggested by Paolo Bonzini.
33926
33927 2010-01-31  Bruno Haible  <bruno@clisp.org>
33928
33929         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33930
33931 2010-01-31  Bruno Haible  <bruno@clisp.org>
33932
33933         Work around getdelim() bug on FreeBSD 8.0.
33934         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33935         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33936         not work.
33937         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33938         is 1.
33939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33940         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33941         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33942         a non-zero size.
33943         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33944
33945 2010-01-31  Bruno Haible  <bruno@clisp.org>
33946
33947         Work around getline() bug on FreeBSD 8.0.
33948         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33949         and a non-zero size.
33950         * tests/test-getline.c (main): Likewise.
33951         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33952         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33953
33954 2010-01-28  Eric Blake  <ebb9@byu.net>
33955
33956         regex: fix build failure
33957         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33958         platforms.
33959
33960 2010-01-28  Jim Meyering  <meyering@redhat.com>
33961
33962         regex: do not ignore memory allocation failure
33963         * lib/regex_internal.c (create_cd_newstate): Detect
33964         re_node_set_init_copy failure.   Extracted from glibc commit
33965         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33966
33967         regex: sync more white-space changes from libc
33968         * lib/regex_internal.c: White-space only changes.
33969         * lib/regexec.c: Likewise.
33970
33971         regex: add many uses of __attribute_warn_unused_result__
33972         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33973         * lib/regexec.c: Likewise.
33974         Extracted from a messy glibc commit.
33975
33976         regcomp.c: spelling and merge-artifact from glibc
33977         * lib/regcomp.c: Merge remainder of glibc's
33978         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33979
33980         regcomp.c: sync white-space changes from glibc
33981         * lib/regcomp.c: Merge to accommodate white space
33982         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33983
33984         regcomp.c: do not ignore internal return values
33985         * lib/regcomp.c: Do not ignore internal return values.
33986         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33987         but without its white-space changes and spelling fixes.
33988
33989         regex_internal.h: define __attribute_warn_unused_result__
33990         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33991
33992         maint: add a syntax-check rule to check for vulnerable Makefile.in
33993         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33994
33995 2010-01-27  Jim Meyering  <meyering@redhat.com>
33996
33997         ncftpput-ftp: clean up spaces
33998         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33999         Remove trailing blanks.
34000
34001 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34002
34003         * build-aux/git-version-gen: Fix copyright statement.
34004         * build-aux/gnupload: Likewise.
34005         * tests/test-arcfour.c: Likewise.
34006         * tests/test-arctwo.c: Likewise.
34007         * tests/test-count-one-bits.c: Likewise.
34008         * tests/test-crc.c: Likewise.
34009         * tests/test-des.c: Likewise.
34010         * tests/test-gc-arcfour.c: Likewise.
34011         * tests/test-gc-arctwo.c: Likewise.
34012         * tests/test-gc-des.c: Likewise.
34013         * tests/test-gc-hmac-md5.c: Likewise.
34014         * tests/test-gc-hmac-sha1.c: Likewise.
34015         * tests/test-gc-md2.c: Likewise.
34016         * tests/test-gc-md4.c: Likewise.
34017         * tests/test-gc-md5.c: Likewise.
34018         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34019         * tests/test-gc-rijndael.c: Likewise.
34020         * tests/test-gc-sha1.c: Likewise.
34021         * tests/test-gc.c: Likewise.
34022         * tests/test-gethostname.c: Likewise.
34023         * tests/test-gettimeofday.c: Likewise.
34024         * tests/test-hash.c: Likewise.
34025         * tests/test-hmac-md5.c: Likewise.
34026         * tests/test-hmac-sha1.c: Likewise.
34027         * tests/test-md2.c: Likewise.
34028         * tests/test-md4.c: Likewise.
34029         * tests/test-md5.c: Likewise.
34030         * tests/test-memchr.c: Likewise.
34031         * tests/test-memchr2.c: Likewise.
34032         * tests/test-memcmp.c: Likewise.
34033         * tests/test-memmem.c: Likewise.
34034         * tests/test-memrchr.c: Likewise.
34035         * tests/test-rawmemchr.c: Likewise.
34036         * tests/test-read-file.c: Likewise.
34037         * tests/test-rijndael.c: Likewise.
34038         * tests/test-sockets.c: Likewise.
34039         * tests/test-strchrnul.c: Likewise.
34040         * tests/test-strstr.c: Likewise.
34041         * tests/test-strtod.c: Likewise.
34042         * build-aux/ncftpput-ftp: Likewise.
34043
34044 2010-01-26  Eric Blake  <ebb9@byu.net>
34045
34046         ignore-value: update recommended header name
34047         * modules/ignore-value (Include): Only use <> for headers that
34048         exist in glibc.
34049
34050 2010-01-26  Jim Meyering  <meyering@redhat.com>
34051
34052         test-userspec.c: avoid compiler warnings
34053         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34054         and "initialization discards qualifiers..." warnings.
34055         Put the first "uid" in its own scope, and make char* members "const".
34056
34057 2010-01-25  Bruno Haible  <bruno@clisp.org>
34058
34059         gnulib-tool: Make warning diagnostics consistent.
34060         * gnulib-tool (func_warning): New function.
34061         Use it everywhere where gnulib-tool produces output to stderr and it is
34062         not a fatal error.
34063
34064 2010-01-25  Bruno Haible  <bruno@clisp.org>
34065
34066         Fix test dependencies.
34067         * modules/xstrtol-tests (Depends-on): Add inttypes.
34068         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34069
34070 2010-01-25 Pádraig Brady <P@draigBrady.com>
34071
34072         syntax-check: detect incorrect boolean macro values in config.h
34073         * modules/maintainer-makefile (configure.ac): Parameterize the location
34074         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34075         The logic is from Eric Blake and the location indicated by Jim Meyering.
34076         Note the more natural CONFIG_HEADER name is prohibited by automake
34077         for backwards compatibility reasons.
34078         * top/maint.mk (sc_Wundef_boolean): New rule.
34079
34080 2010-01-25  Jim Meyering  <meyering@redhat.com>
34081
34082         bootstrap: detect MacOS 10.6's shasum, too
34083         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34084         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34085
34086 2010-01-23  Jim Meyering  <meyering@redhat.com>
34087
34088         xstrtoll: new module
34089         * modules/xstrtoll: New file.
34090         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34091         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34092         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34093         ./configure fails if you use this module and lack "long long".
34094         * modules/xstrtoll-tests: New module.
34095         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34096         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34097         new init.sh-based test framework.
34098
34099 2010-01-24  Bruno Haible  <bruno@clisp.org>
34100
34101         Tests for module 'yn'.
34102         * modules/yn-tests: New file.
34103         * tests/test-yn.c: New file.
34104
34105         Tests for module 'y1'.
34106         * modules/y1-tests: New file.
34107         * tests/test-y1.c: New file.
34108
34109         Tests for module 'y0'.
34110         * modules/y0-tests: New file.
34111         * tests/test-y0.c: New file.
34112
34113         Tests for module 'tanh'.
34114         * modules/tanh-tests: New file.
34115         * tests/test-tanh.c: New file.
34116
34117         Tests for module 'tan'.
34118         * modules/tan-tests: New file.
34119         * tests/test-tan.c: New file.
34120
34121         Tests for module 'sqrt'.
34122         * modules/sqrt-tests: New file.
34123         * tests/test-sqrt.c: New file.
34124
34125         Tests for module 'sinh'.
34126         * modules/sinh-tests: New file.
34127         * tests/test-sinh.c: New file.
34128
34129         Tests for module 'sin'.
34130         * modules/sin-tests: New file.
34131         * tests/test-sin.c: New file.
34132
34133         Tests for module 'rint'.
34134         * modules/rint-tests: New file.
34135         * tests/test-rint.c: New file.
34136
34137         Tests for module 'remainder'.
34138         * modules/remainder-tests: New file.
34139         * tests/test-remainder.c: New file.
34140
34141         Tests for module 'pow'.
34142         * modules/pow-tests: New file.
34143         * tests/test-pow.c: New file.
34144
34145         Tests for module 'nextafter'.
34146         * modules/nextafter-tests: New file.
34147         * tests/test-nextafter.c: New file.
34148
34149         Tests for module 'modf'.
34150         * modules/modf-tests: New file.
34151         * tests/test-modf.c: New file.
34152
34153         Tests for module 'logb'.
34154         * modules/logb-tests: New file.
34155         * tests/test-logb.c: New file.
34156
34157         Tests for module 'log1p'.
34158         * modules/log1p-tests: New file.
34159         * tests/test-log1p.c: New file.
34160
34161         Tests for module 'log10'.
34162         * modules/log10-tests: New file.
34163         * tests/test-log10.c: New file.
34164
34165         Tests for module 'log'.
34166         * modules/log-tests: New file.
34167         * tests/test-log.c: New file.
34168
34169         Tests for module 'lgamma'.
34170         * modules/lgamma-tests: New file.
34171         * tests/test-lgamma.c: New file.
34172
34173         Tests for module 'ldexp'.
34174         * modules/ldexp-tests: New file.
34175         * tests/test-ldexp.c: New file.
34176
34177         Tests for module 'jn'.
34178         * modules/jn-tests: New file.
34179         * tests/test-jn.c: New file.
34180
34181         Tests for module 'j1'.
34182         * modules/j1-tests: New file.
34183         * tests/test-j1.c: New file.
34184
34185         Tests for module 'j0'.
34186         * modules/j0-tests: New file.
34187         * tests/test-j0.c: New file.
34188
34189         Tests for module 'hypot'.
34190         * modules/hypot-tests: New file.
34191         * tests/test-hypot.c: New file.
34192
34193         Tests for module 'fmod'.
34194         * modules/fmod-tests: New file.
34195         * tests/test-fmod.c: New file.
34196
34197         Tests for module 'fabs'.
34198         * modules/fabs-tests: New file.
34199         * tests/test-fabs.c: New file.
34200
34201         Tests for module 'exp'.
34202         * modules/exp-tests: New file.
34203         * tests/test-exp.c: New file.
34204
34205         Tests for module 'erfc'.
34206         * modules/erfc-tests: New file.
34207         * tests/test-erfc.c: New file.
34208
34209         Tests for module 'erf'.
34210         * modules/erf-tests: New file.
34211         * tests/test-erf.c: New file.
34212
34213         Tests for module 'cosh'.
34214         * modules/cosh-tests: New file.
34215         * tests/test-cosh.c: New file.
34216
34217         Tests for module 'cos'.
34218         * modules/cos-tests: New file.
34219         * tests/test-cos.c: New file.
34220
34221         Tests for module 'copysign'.
34222         * modules/copysign-tests: New file.
34223         * tests/test-copysign.c: New file.
34224
34225         Tests for module 'cbrt'.
34226         * modules/cbrt-tests: New file.
34227         * tests/test-cbrt.c: New file.
34228
34229         Tests for module 'atan2'.
34230         * modules/atan2-tests: New file.
34231         * tests/test-atan2.c: New file.
34232
34233         Tests for module 'atan'.
34234         * modules/atan-tests: New file.
34235         * tests/test-atan.c: New file.
34236
34237         Tests for module 'asin'.
34238         * modules/asin-tests: New file.
34239         * tests/test-asin.c: New file.
34240
34241         Tests for module 'acos'.
34242         * modules/acos-tests: New file.
34243         * tests/test-acos.c: New file.
34244
34245 2010-01-24  Bruno Haible  <bruno@clisp.org>
34246
34247         Fix tests for common <math.h> functions.
34248         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34249         code snippet that references the function pointer, rather than merely
34250         calling the function. Substitute the FUNC_LIBM variable.
34251         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34252         * modules/acos (configure.ac): Likewise.
34253         * modules/asin (configure.ac): Likewise.
34254         * modules/atan (configure.ac): Likewise.
34255         * modules/atan2 (configure.ac): Likewise.
34256         * modules/cbrt (configure.ac): Likewise.
34257         * modules/copysign (configure.ac): Likewise.
34258         * modules/cos (configure.ac): Likewise.
34259         * modules/cosh (configure.ac): Likewise.
34260         * modules/erf (configure.ac): Likewise.
34261         * modules/erfc (configure.ac): Likewise.
34262         * modules/exp (configure.ac): Likewise.
34263         * modules/fabs (configure.ac): Likewise.
34264         * modules/fmod (configure.ac): Likewise.
34265         * modules/hypot (configure.ac): Likewise.
34266         * modules/j0 (configure.ac): Likewise.
34267         * modules/j1 (configure.ac): Likewise.
34268         * modules/jn (configure.ac): Likewise.
34269         * modules/ldexp (configure.ac): Likewise.
34270         * modules/lgamma (configure.ac): Likewise.
34271         * modules/log (configure.ac): Likewise.
34272         * modules/log10 (configure.ac): Likewise.
34273         * modules/log1p (configure.ac): Likewise.
34274         * modules/logb (configure.ac): Likewise.
34275         * modules/modf (configure.ac): Likewise.
34276         * modules/nextafter (configure.ac): Likewise.
34277         * modules/pow (configure.ac): Likewise.
34278         * modules/remainder (configure.ac): Likewise.
34279         * modules/rint (configure.ac): Likewise.
34280         * modules/sin (configure.ac): Likewise.
34281         * modules/sinh (configure.ac): Likewise.
34282         * modules/tan (configure.ac): Likewise.
34283         * modules/tanh (configure.ac): Likewise.
34284         * modules/y0 (configure.ac): Likewise.
34285         * modules/y1 (configure.ac): Likewise.
34286         * modules/yn (configure.ac): Likewise.
34287
34288 2010-01-24  Bruno Haible  <bruno@clisp.org>
34289
34290         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34291         * tests/test-acosl.c (x): New variable.
34292         (main): Store argument in x and fetch it from x.
34293         * tests/test-asinl.c (x): New variable.
34294         (main): Store argument in x and fetch it from x.
34295         * tests/test-atanl.c (x): New variable.
34296         (main): Store argument in x and fetch it from x.
34297         * tests/test-cosl.c (x): New variable.
34298         (main): Store argument in x and fetch it from x.
34299         * tests/test-expl.c (x): New variable.
34300         (main): Store argument in x and fetch it from x.
34301         * tests/test-logl.c (x): New variable.
34302         (main): Store argument in x and fetch it from x.
34303         * tests/test-sinl.c (x): New variable.
34304         (main): Store argument in x and fetch it from x.
34305         * tests/test-sqrtl.c (x): New variable.
34306         (main): Store argument in x and fetch it from x.
34307         * tests/test-tanl.c (x): New variable.
34308         (main): Store argument in x and fetch it from x.
34309
34310 2010-01-24  Bruno Haible  <bruno@clisp.org>
34311
34312         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34313         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34314         assignments to the initial TESTS_ENVIRONMENT.
34315         * doc/gnulib.texi (Unit test modules): Document it.
34316         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34317         TESTS_ENVIRONMENT.
34318         * modules/btowc-tests (Makefile.am): Likewise.
34319         * modules/c-stack-tests (Makefile.am): Likewise.
34320         * modules/c-strcase-tests (Makefile.am): Likewise.
34321         * modules/copy-file-tests (Makefile.am): Likewise.
34322         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34323         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34324         * modules/mbrtowc-tests (Makefile.am): Likewise.
34325         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34326         * modules/mbscasestr-tests (Makefile.am): Likewise.
34327         * modules/mbschr-tests (Makefile.am): Likewise.
34328         * modules/mbscspn-tests (Makefile.am): Likewise.
34329         * modules/mbsinit-tests (Makefile.am): Likewise.
34330         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34331         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
34332         * modules/mbspbrk-tests (Makefile.am): Likewise.
34333         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34334         * modules/mbsrchr-tests (Makefile.am): Likewise.
34335         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
34336         * modules/mbsspn-tests (Makefile.am): Likewise.
34337         * modules/mbsstr-tests (Makefile.am): Likewise.
34338         * modules/nl_langinfo-tests (Makefile.am): Likewise.
34339         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
34340         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34341         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34342         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34343         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34344         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
34345         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34346         * modules/wcrtomb-tests (Makefile.am): Likewise.
34347         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
34348         * modules/wcsrtombs-tests (Makefile.am): Likewise.
34349         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
34350         assignments from TESTS_ENVIRONMENT.
34351         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
34352         augmentation.
34353         * modules/argp-version-etc-tests (Makefile.am): Likewise.
34354         * modules/atexit-tests (Makefile.am): Likewise.
34355         * modules/binary-io-tests (Makefile.am): Likewise.
34356         * modules/closein-tests (Makefile.am): Likewise.
34357         * modules/dprintf-posix-tests (Makefile.am): Likewise.
34358         * modules/exclude-tests (Makefile.am): Likewise.
34359         * modules/fflush-tests (Makefile.am): Likewise.
34360         * modules/fpending-tests (Makefile.am): Likewise.
34361         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34362         * modules/freadahead-tests (Makefile.am): Likewise.
34363         * modules/freadptr-tests (Makefile.am): Likewise.
34364         * modules/freadseek-tests (Makefile.am): Likewise.
34365         * modules/fseek-tests (Makefile.am): Likewise.
34366         * modules/fseeko-tests (Makefile.am): Likewise.
34367         * modules/ftell-tests (Makefile.am): Likewise.
34368         * modules/ftello-tests (Makefile.am): Likewise.
34369         * modules/idpriv-drop-tests (Makefile.am): Likewise.
34370         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
34371         * modules/lseek-tests (Makefile.am): Likewise.
34372         * modules/parse-duration-tests (Makefile.am): Likewise.
34373         * modules/perror-tests (Makefile.am): Likewise.
34374         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
34375         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
34376         * modules/pipe-tests (Makefile.am): Likewise.
34377         * modules/pread-tests (Makefile.am): Likewise.
34378         * modules/printf-posix-tests (Makefile.am): Likewise.
34379         * modules/select-tests (Makefile.am): Likewise.
34380         * modules/sigpipe-tests (Makefile.am): Likewise.
34381         * modules/tsearch-tests (Makefile.am): Likewise.
34382         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
34383         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
34384         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34385         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34386         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34387         * modules/version-etc-tests (Makefile.am): Likewise.
34388         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34389         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34390         * modules/xalloc-die-tests (Makefile.am): Likewise.
34391         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34392         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34393         * modules/xstrtol-tests (Makefile.am): Likewise.
34394         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34395         * modules/yesno-tests (Makefile.am): Likewise.
34396         Suggested by Jim Meyering.
34397
34398 2010-01-24  Bruno Haible  <bruno@clisp.org>
34399
34400         More documentation.
34401         * doc/gnulib.texi (Writing modules): New chapter.
34402         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34403         the new chapter.
34404
34405 2010-01-24  Jim Meyering  <meyering@redhat.com>
34406
34407         maint.mk: do not prepend "./" after filtering
34408         * top/maint.mk (_prepend_srcdir_prefix): New variable
34409         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
34410         "./" when $(srcdir) is ".".
34411
34412         define STREQ(a,b) consistently, removing useless parentheses
34413         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
34414         since the only risk is that "a" or "b" contains an unparenthesized
34415         comma, but if either did that, STREQ would have 3 or more arguments.
34416         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
34417         * lib/fts.c (STREQ): Remove unnecessary parentheses.
34418         * lib/hash-triple.c (STREQ): Likewise.
34419         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
34420         * lib/getugroups.c (STREQ): Likewise.
34421
34422 2010-01-23  Jim Meyering  <meyering@redhat.com>
34423
34424         maint.mk: fix syntax-check in a non-srcdir build directory
34425         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
34426         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34427
34428 2010-01-22  Jim Meyering  <meyering@redhat.com>
34429
34430         userspec: add unit tests
34431         * tests/test-userspec.c: New file.
34432         * modules/userspec-tests: Likewise.
34433
34434 2010-01-21  Jim Meyering  <meyering@redhat.com>
34435
34436         maint.mk: handle source file names containing "." robustly
34437         * top/maint.mk (_dot_escaped_srcdir): Define.
34438         (VC_LIST): Use it in LHS of sed substitution.
34439
34440 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
34441
34442         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
34443         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
34444         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
34445         from a non-srcdir build.
34446
34447 2010-01-20  Eric Blake  <ebb9@byu.net>
34448
34449         warn-on-use: use instead of link-warning
34450         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
34451         * modules/unistd (Depends-on, Makefile.am): Likewise.
34452         * modules/arpa_inet (Depends-on): Replace link-warning with
34453         warn-on-use.
34454         (Makefile.am): Update rules accordingly.
34455         * modules/ctype (Depends-on, Makefile.am): Likewise.
34456         * modules/dirent (Depends-on, Makefile.am): Likewise.
34457         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
34458         * modules/inttypes (Depends-on, Makefile.am): Likewise.
34459         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34460         * modules/locale (Depends-on, Makefile.am): Likewise.
34461         * modules/math (Depends-on, Makefile.am): Likewise.
34462         * modules/search (Depends-on, Makefile.am): Likewise.
34463         * modules/signal (Depends-on, Makefile.am): Likewise.
34464         * modules/spawn (Depends-on, Makefile.am): Likewise.
34465         * modules/stdlib (Depends-on, Makefile.am): Likewise.
34466         * modules/string (Depends-on, Makefile.am): Likewise.
34467         * modules/strings (Depends-on, Makefile.am): Likewise.
34468         * modules/sys_file (Depends-on, Makefile.am): Likewise.
34469         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
34470         * modules/sys_select (Depends-on, Makefile.am): Likewise.
34471         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
34472         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
34473         * modules/sys_times (Depends-on, Makefile.am): Likewise.
34474         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34475         * modules/wchar (Depends-on, Makefile.am): Likewise.
34476         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
34477         should be poisoned.
34478         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
34479         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
34480         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
34481         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34482         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34483         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34484         * m4/math_h.m4 (gl_MATH_H): Likewise.
34485         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34486         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34487         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34488         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34489         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34490         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34491         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34492         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34493         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34494         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34495         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34496         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34497         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34498         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34499         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34500         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34501         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34502         GL_LINK_WARNING.
34503         * lib/ctype.in.h: Likewise.
34504         * lib/dirent.in.h: Likewise.
34505         * lib/fcntl.in.h: Likewise.
34506         * lib/inttypes.in.h: Likewise.
34507         * lib/langinfo.in.h: Likewise.
34508         * lib/locale.in.h: Likewise.
34509         * lib/math.in.h: Likewise.
34510         * lib/search.in.h: Likewise.
34511         * lib/signal.in.h: Likewise.
34512         * lib/spawn.in.h: Likewise.
34513         * lib/stdio.in.h: Likewise.
34514         * lib/stdlib.in.h: Likewise.
34515         * lib/string.in.h: Likewise.
34516         * lib/strings.in.h: Likewise.
34517         * lib/sys_file.in.h: Likewise.
34518         * lib/sys_ioctl.in.h: Likewise.
34519         * lib/sys_select.in.h: Likewise.
34520         * lib/sys_socket.in.h: Likewise.
34521         * lib/sys_stat.in.h: Likewise.
34522         * lib/sys_times.in.h: Likewise.
34523         * lib/sys_utsname.in.h: Likewise.
34524         * lib/unistd.in.h: Likewise.
34525         * lib/wchar.in.h: Likewise.
34526
34527 2010-01-20  Bruno Haible  <bruno@clisp.org>
34528
34529         Avoid duplicate -lm.
34530         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34531         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34532         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34533         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34534         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34535         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34536         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34537         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34538         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34539         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34540         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34541         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34542         Reported by Paolo Bonzini.
34543
34544 2010-01-19  Bruno Haible  <bruno@clisp.org>
34545
34546         langinfo, nl_langinfo: Relicense under LGPLv2+.
34547         * modules/langinfo (License): Change to LGPLv2+.
34548         * modules/nl_langinfo (License): Likewise.
34549         Patch by David Lutterkort <lutter@redhat.com>.
34550
34551 2010-01-19  Bruno Haible  <bruno@clisp.org>
34552
34553         Avoid compilation error with cc on OSF/1 5.1.
34554         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34555         statement, not before.
34556         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34557
34558 2010-01-18  Bruno Haible  <bruno@clisp.org>
34559
34560         Avoid a link error due to the __printf__ symbol.
34561         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34562         and 2.6.x.
34563         (__format__, __printf__): Remove definitions.
34564         * lib/argp-fmtstream.h: Likewise.
34565         * lib/argp.h: Likewise.
34566         * lib/error.h: Likewise.
34567         * lib/vasnprintf.h: Likewise.
34568         * lib/xprintf.h: Likewise.
34569         * lib/xvasprintf.h: Likewise.
34570         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34571
34572 2010-01-18  Bruno Haible  <bruno@clisp.org>
34573
34574         Tests for module 'tanl'.
34575         * modules/tanl-tests: New file.
34576         * tests/test-tanl.c: New file.
34577
34578         Tests for module 'sqrtl'.
34579         * modules/sqrtl-tests: New file.
34580         * tests/test-sqrtl.c: New file.
34581
34582         Tests for module 'sinl'.
34583         * modules/sinl-tests: New file.
34584         * tests/test-sinl.c: New file.
34585
34586         Tests for module 'logl'.
34587         * modules/logl-tests: New file.
34588         * tests/test-logl.c: New file.
34589
34590         Tests for module 'expl'.
34591         * modules/expl-tests: New file.
34592         * tests/test-expl.c: New file.
34593
34594         Tests for module 'cosl'.
34595         * modules/cosl-tests: New file.
34596         * tests/test-cosl.c: New file.
34597
34598         Tests for module 'atanl'.
34599         * modules/atanl-tests: New file.
34600         * tests/test-atanl.c: New file.
34601
34602         Tests for module 'asinl'.
34603         * modules/asinl-tests: New file.
34604         * tests/test-asinl.c: New file.
34605
34606         Tests for module 'acosl'.
34607         * modules/acosl-tests: New file.
34608         * tests/test-acosl.c: New file.
34609
34610         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34611         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34612         tanl): Use the standard gnulib idiom.
34613         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34614         * lib/sinl.c: Likewise.
34615         * lib/tanl.c: Don't include trigl.c.
34616         (kernel_tanl): Make static.
34617         * lib/sincosl.c: Include trigl.h first.
34618         * lib/trigl.c: Likewise.
34619         * m4/acosl.m4: New file.
34620         * m4/asinl.m4: New file.
34621         * m4/atanl.m4: New file.
34622         * m4/cosl.m4: New file.
34623         * m4/expl.m4: New file.
34624         * m4/logl.m4: New file.
34625         * m4/sinl.m4: New file.
34626         * m4/sqrtl.m4: New file.
34627         * m4/tanl.m4: New file.
34628         * m4/mathl.m4: Remove file.
34629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34630         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34631         Don't initialize GNULIB_MATHL.
34632         * modules/acosl: New file.
34633         * modules/asinl: New file.
34634         * modules/atanl: New file.
34635         * modules/cosl: New file.
34636         * modules/expl: New file.
34637         * modules/logl: New file.
34638         * modules/sinl: New file.
34639         * modules/sqrtl: New file.
34640         * modules/tanl: New file.
34641         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34642         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34643         substitute GNULIB_MATHL.
34644         * modules/mathl: Rewritten.
34645         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34646         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34647         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34648         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34649         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34650         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34651         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34652         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34653         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34654
34655 2010-01-18  Bruno Haible  <bruno@clisp.org>
34656
34657         sqrt: Make gl_FUNC_SQRT requirable.
34658         * m4/sqrt.m4: New file.
34659         * modules/sqrt (Files): Add it.
34660         (configure.ac): Invoke gl_FUNC_SQRT.
34661
34662 2010-01-18  Bruno Haible  <bruno@clisp.org>
34663
34664         New modules for common <math.h> functions.
34665         * m4/mathfunc.m4: New file.
34666         * modules/acos: New file.
34667         * modules/asin: New file.
34668         * modules/atan: New file.
34669         * modules/atan2: New file.
34670         * modules/cbrt: New file.
34671         * modules/copysign: New file.
34672         * modules/cos: New file.
34673         * modules/cosh: New file.
34674         * modules/erf: New file.
34675         * modules/erfc: New file.
34676         * modules/exp: New file.
34677         * modules/fabs: New file.
34678         * modules/fmod: New file.
34679         * modules/hypot: New file.
34680         * modules/j0: New file.
34681         * modules/j1: New file.
34682         * modules/jn: New file.
34683         * modules/ldexp: New file.
34684         * modules/lgamma: New file.
34685         * modules/log: New file.
34686         * modules/log10: New file.
34687         * modules/log1p: New file.
34688         * modules/logb: New file.
34689         * modules/modf: New file.
34690         * modules/nextafter: New file.
34691         * modules/pow: New file.
34692         * modules/remainder: New file.
34693         * modules/rint: New file.
34694         * modules/sin: New file.
34695         * modules/sinh: New file.
34696         * modules/sqrt: New file.
34697         * modules/tan: New file.
34698         * modules/tanh: New file.
34699         * modules/y0: New file.
34700         * modules/y1: New file.
34701         * modules/yn: New file.
34702         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34703         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34704         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34705         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34706         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34707         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34708         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34709         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34710         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34711         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34712         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34713         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34714         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34715         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34716         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34717         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34718         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34719         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34720         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34721         * doc/posix-functions/log.texi: Mention the 'log' module.
34722         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34723         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34724         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34725         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34726         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34727         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34728         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34729         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34730         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34731         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34732         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34733         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34734         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34735         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34736         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34737         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34738
34739 2010-01-18  Jim Meyering  <meyering@redhat.com>
34740
34741         ignore-value: relax license to LGPLv2+
34742         * modules/ignore-value (License): Relax to LGPLv2+.
34743
34744         getdate: don't leak when TZ contains two or more '"'s
34745         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34746         double quote in TZ after the first one.
34747
34748         readtokens: do not leak internal token_lengths buffer
34749         * lib/readtokens.c (readtokens): Free the local, lengths,
34750         when the supplied "token_lengths" parameter is NULL.
34751
34752 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34753
34754         Fix a couple of missing LIBTHREAD link failures on AIX.
34755         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34756         $(LIBTHREAD).
34757         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34758
34759         Link test-poll against INET_PTON_LIB.
34760         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34761         for inet_pton on Solaris 10.
34762
34763 2010-01-17  Bruno Haible  <bruno@clisp.org>
34764
34765         unistdio/*-sprintf: Fix typo in module description.
34766         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34767         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34768         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34769         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34770         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34771         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34772         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34773         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34774
34775 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34776
34777         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34778         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34779         variables in shell case patterns, for AIX and HP-UX ksh.
34780
34781         Split large sed scripts, for HP-UX sed.
34782         * modules/stdio: Split sed scripts around 50 sed commands,
34783         to avoid HP-UX limit of 99 commands, in the near future.
34784         * modules/string: Likewise.
34785         * modules/unistd: Likewise.
34786
34787         gnulib-tool: avoid writing in the current directory.
34788         * gnulib-tool (func_emit_lib_Makefile_am)
34789         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34790         not in the current directory, so concurrent gnulib-tool
34791         instances do not interfere.
34792
34793 2010-01-16  Jim Meyering  <meyering@redhat.com>
34794
34795         doc: update users.txt
34796         * users.txt: Add grep.
34797         (diffutils, gzip): Update URLs.
34798
34799 2010-01-12  Bruno Haible  <bruno@clisp.org>
34800
34801         posix_spawn: Avoid test failure on Cygwin.
34802         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34803         characters.
34804         Reported by Simon Josefsson.
34805
34806 2010-01-12  Bruno Haible  <bruno@clisp.org>
34807
34808         * tests/test-cond.c (main): When skipping the test, show the reason.
34809
34810 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34811
34812         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34813
34814 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34815
34816         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34817         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34818
34819 2010-01-12  Eric Blake  <ebb9@byu.net>
34820
34821         build: guarantee AS_VAR_IF
34822         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34823         (gl_AS_VAR_IF): Move...
34824         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34825         Reported by Simon Josefsson.
34826
34827 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34828
34829         * lib/stdio.in.h: Fix typo.
34830
34831 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34832
34833         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34834         libgpg-error.
34835
34836 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34837
34838         * tests/test-xalloc-die.sh: Use $EXEEXT.
34839
34840 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34841             Bruno Haible  <bruno@clisp.org>
34842
34843         getlogin, getlogin_r: Avoid test failure.
34844         * tests/test-getlogin.c: Include <stdio.h>.
34845         (main): Skip the test when the function fails because stdin is not a
34846         tty.
34847         * tests/test-getlogin_r.c: Include <stdio.h>.
34848         (main): Skip the test when the function fails because stdin is not a
34849         tty.
34850
34851 2010-01-11  Eric Blake  <ebb9@byu.net>
34852
34853         tests: avoid more large file warnings
34854         * tests/test-fflush.c: Avoid warning about ftell use.
34855         * tests/test-fseek.c: Avoid warning about fseek use.
34856
34857 2010-01-10  Bruno Haible  <bruno@clisp.org>
34858
34859         nproc: Work better on Linux when /proc and /sys are not mounted.
34860         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34861         as lower bound when, on glibc/Linux systems,
34862         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34863         Suggested by Pádraig Brady <P@draigbrady.com>.
34864         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34865
34866         nproc: Refactor.
34867         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34868         extracted from num_processors.
34869         (num_processors): Call it.
34870
34871 2010-01-11  Jim Meyering  <meyering@redhat.com>
34872
34873         utimecmp: avoid new warning from upcoming gcc-4.5.0
34874         * lib/utimecmp.c (BILLION): Define using #define rather than an
34875         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34876
34877 2010-01-11  Eric Blake  <ebb9@byu.net>
34878
34879         math: add portability warnings for classification macros
34880         * modules/math (Depends-on): Add warn-on-use.
34881         (Makefile.am): Provide new substitutions.
34882         * m4/math_h.m4 (gl_MATH_H): Require inline.
34883         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34884         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34885         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34886         implement warnings.
34887
34888         unistd: warn on use of environ without module
34889         * modules/unistd (Depends-on): Add warn-on-use.
34890         (Makefile.am): Provide new substitutions.
34891         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34892         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34893
34894         stdio: warn on suspicious uses
34895         * modules/stdio (Depends-on): Add warn-on-use.
34896         (Makefile.am): Provide new substitutions.
34897         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34898         fseeko.
34899         * lib/stdio.in.h (gets): Always warn on use.
34900         (fseek, ftell): Adjust when warnings are issued, and honor
34901         _GL_NO_LARGE_FILES as a way to silence the warning.
34902         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34903         any warning about large file offsets.
34904         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34905         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34906         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34907         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34908         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34909         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34910         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34911         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34912
34913         warn-on-use: new module
34914         * modules/warn-on-use: New file.
34915         * build-aux/warn-on-use.h: Likewise.
34916         * m4/warn-on-use.m4: Likewise.
34917         * MODULES.html.sh (Support for building): Mention it.
34918
34919 2010-01-10  Bruno Haible  <bruno@clisp.org>
34920
34921         Tests for module 'unistr/u32-strdup'.
34922         * modules/unistr/u32-strdup-tests: New file.
34923         * tests/unistr/test-u32-strdup.c: New file.
34924
34925         Tests for module 'unistr/u16-strdup'.
34926         * modules/unistr/u16-strdup-tests: New file.
34927         * tests/unistr/test-u16-strdup.c: New file.
34928
34929         Tests for module 'unistr/u8-strdup'.
34930         * modules/unistr/u8-strdup-tests: New file.
34931         * tests/unistr/test-u8-strdup.c: New file.
34932         * tests/unistr/test-strdup.h: New file.
34933
34934         Tests for module 'unistr/u32-strncmp'.
34935         * modules/unistr/u32-strncmp-tests: New file.
34936         * tests/unistr/test-u32-strncmp.c: New file.
34937
34938         Tests for module 'unistr/u16-strncmp'.
34939         * modules/unistr/u16-strncmp-tests: New file.
34940         * tests/unistr/test-u16-strncmp.c: New file.
34941
34942         Tests for module 'unistr/u8-strncmp'.
34943         * modules/unistr/u8-strncmp-tests: New file.
34944         * tests/unistr/test-u8-strncmp.c: New file.
34945         * tests/unistr/test-strncmp.h: New file.
34946
34947         Tests for module 'unistr/u32-strcoll'.
34948         * modules/unistr/u32-strcoll-tests: New file.
34949         * tests/unistr/test-u32-strcoll.c: New file.
34950
34951         Tests for module 'unistr/u16-strcoll'.
34952         * modules/unistr/u16-strcoll-tests: New file.
34953         * tests/unistr/test-u16-strcoll.c: New file.
34954
34955         Tests for module 'unistr/u8-strcoll'.
34956         * modules/unistr/u8-strcoll-tests: New file.
34957         * tests/unistr/test-u8-strcoll.c: New file.
34958
34959         Tests for module 'unistr/u32-strcmp'.
34960         * modules/unistr/u32-strcmp-tests: New file.
34961         * tests/unistr/test-u32-strcmp.c: New file.
34962         * tests/unistr/test-u32-strcmp.h: New file.
34963
34964         Tests for module 'unistr/u16-strcmp'.
34965         * modules/unistr/u16-strcmp-tests: New file.
34966         * tests/unistr/test-u16-strcmp.c: New file.
34967         * tests/unistr/test-u16-strcmp.h: New file.
34968
34969         Tests for module 'unistr/u8-strcmp'.
34970         * modules/unistr/u8-strcmp-tests: New file.
34971         * tests/unistr/test-u8-strcmp.c: New file.
34972         * tests/unistr/test-u8-strcmp.h: New file.
34973         * tests/unistr/test-strcmp.h: New file.
34974
34975         Tests for module 'unistr/u32-strncat'.
34976         * modules/unistr/u32-strncat-tests: New file.
34977         * tests/unistr/test-u32-strncat.c: New file.
34978
34979         Tests for module 'unistr/u16-strncat'.
34980         * modules/unistr/u16-strncat-tests: New file.
34981         * tests/unistr/test-u16-strncat.c: New file.
34982
34983         Tests for module 'unistr/u8-strncat'.
34984         * modules/unistr/u8-strncat-tests: New file.
34985         * tests/unistr/test-u8-strncat.c: New file.
34986         * tests/unistr/test-strncat.h: New file.
34987
34988         Tests for module 'unistr/u32-strcat'.
34989         * modules/unistr/u32-strcat-tests: New file.
34990         * tests/unistr/test-u32-strcat.c: New file.
34991
34992         Tests for module 'unistr/u16-strcat'.
34993         * modules/unistr/u16-strcat-tests: New file.
34994         * tests/unistr/test-u16-strcat.c: New file.
34995
34996         Tests for module 'unistr/u8-strcat'.
34997         * modules/unistr/u8-strcat-tests: New file.
34998         * tests/unistr/test-u8-strcat.c: New file.
34999         * tests/unistr/test-strcat.h: New file.
35000
35001         Tests for module 'unistr/u32-stpncpy'.
35002         * modules/unistr/u32-stpncpy-tests: New file.
35003         * tests/unistr/test-u32-stpncpy.c: New file.
35004
35005         Tests for module 'unistr/u16-stpncpy'.
35006         * modules/unistr/u16-stpncpy-tests: New file.
35007         * tests/unistr/test-u16-stpncpy.c: New file.
35008
35009         Tests for module 'unistr/u8-stpncpy'.
35010         * modules/unistr/u8-stpncpy-tests: New file.
35011         * tests/unistr/test-u8-stpncpy.c: New file.
35012         * tests/unistr/test-stpncpy.h: New file.
35013
35014         Tests for module 'unistr/u32-strncpy'.
35015         * modules/unistr/u32-strncpy-tests: New file.
35016         * tests/unistr/test-u32-strncpy.c: New file.
35017
35018         Tests for module 'unistr/u16-strncpy'.
35019         * modules/unistr/u16-strncpy-tests: New file.
35020         * tests/unistr/test-u16-strncpy.c: New file.
35021
35022         Tests for module 'unistr/u8-strncpy'.
35023         * modules/unistr/u8-strncpy-tests: New file.
35024         * tests/unistr/test-u8-strncpy.c: New file.
35025         * tests/unistr/test-strncpy.h: New file.
35026
35027         Tests for module 'unistr/u32-stpcpy'.
35028         * modules/unistr/u32-stpcpy-tests: New file.
35029         * tests/unistr/test-u32-stpcpy.c: New file.
35030
35031         Tests for module 'unistr/u16-stpcpy'.
35032         * modules/unistr/u16-stpcpy-tests: New file.
35033         * tests/unistr/test-u16-stpcpy.c: New file.
35034
35035         Tests for module 'unistr/u8-stpcpy'.
35036         * modules/unistr/u8-stpcpy-tests: New file.
35037         * tests/unistr/test-u8-stpcpy.c: New file.
35038         * tests/unistr/test-stpcpy.h: New file.
35039
35040         Tests for module 'unistr/u32-strcpy'.
35041         * modules/unistr/u32-strcpy-tests: New file.
35042         * tests/unistr/test-u32-strcpy.c: New file.
35043
35044         Tests for module 'unistr/u16-strcpy'.
35045         * modules/unistr/u16-strcpy-tests: New file.
35046         * tests/unistr/test-u16-strcpy.c: New file.
35047
35048         Tests for module 'unistr/u8-strcpy'.
35049         * modules/unistr/u8-strcpy-tests: New file.
35050         * tests/unistr/test-u8-strcpy.c: New file.
35051         * tests/unistr/test-strcpy.h: New file.
35052
35053         Tests for module 'unistr/u32-strnlen'.
35054         * modules/unistr/u32-strnlen-tests: New file.
35055         * tests/unistr/test-u32-strnlen.c: New file.
35056
35057         Tests for module 'unistr/u16-strnlen'.
35058         * modules/unistr/u16-strnlen-tests: New file.
35059         * tests/unistr/test-u16-strnlen.c: New file.
35060
35061         Tests for module 'unistr/u8-strnlen'.
35062         * modules/unistr/u8-strnlen-tests: New file.
35063         * tests/unistr/test-u8-strnlen.c: New file.
35064         * tests/unistr/test-strnlen.h: New file.
35065
35066         Tests for module 'unistr/u32-strlen'.
35067         * modules/unistr/u32-strlen-tests: New file.
35068         * tests/unistr/test-u32-strlen.c: New file.
35069
35070         Tests for module 'unistr/u16-strlen'.
35071         * modules/unistr/u16-strlen-tests: New file.
35072         * tests/unistr/test-u16-strlen.c: New file.
35073
35074         Tests for module 'unistr/u8-strlen'.
35075         * modules/unistr/u8-strlen-tests: New file.
35076         * tests/unistr/test-u8-strlen.c: New file.
35077
35078         Tests for module 'unistr/u32-prev'.
35079         * modules/unistr/u32-prev-tests: New file.
35080         * tests/unistr/test-u32-prev.c: New file.
35081
35082         Tests for module 'unistr/u16-prev'.
35083         * modules/unistr/u16-prev-tests: New file.
35084         * tests/unistr/test-u16-prev.c: New file.
35085
35086         Tests for module 'unistr/u8-prev'.
35087         * modules/unistr/u8-prev-tests: New file.
35088         * tests/unistr/test-u8-prev.c: New file.
35089
35090         Tests for module 'unistr/u32-next'.
35091         * modules/unistr/u32-next-tests: New file.
35092         * tests/unistr/test-u32-next.c: New file.
35093
35094         Tests for module 'unistr/u16-next'.
35095         * modules/unistr/u16-next-tests: New file.
35096         * tests/unistr/test-u16-next.c: New file.
35097
35098         Tests for module 'unistr/u8-next'.
35099         * modules/unistr/u8-next-tests: New file.
35100         * tests/unistr/test-u8-next.c: New file.
35101
35102         Tests for module 'unistr/u32-strmbtouc'.
35103         * modules/unistr/u32-strmbtouc-tests: New file.
35104         * tests/unistr/test-u32-strmbtouc.c: New file.
35105
35106         Tests for module 'unistr/u16-strmbtouc'.
35107         * modules/unistr/u16-strmbtouc-tests: New file.
35108         * tests/unistr/test-u16-strmbtouc.c: New file.
35109
35110         Tests for module 'unistr/u8-strmbtouc'.
35111         * modules/unistr/u8-strmbtouc-tests: New file.
35112         * tests/unistr/test-u8-strmbtouc.c: New file.
35113
35114         Tests for module 'unistr/u32-strmblen'.
35115         * modules/unistr/u32-strmblen-tests: New file.
35116         * tests/unistr/test-u32-strmblen.c: New file.
35117
35118         Tests for module 'unistr/u16-strmblen'.
35119         * modules/unistr/u16-strmblen-tests: New file.
35120         * tests/unistr/test-u16-strmblen.c: New file.
35121
35122         Tests for module 'unistr/u8-strmblen'.
35123         * modules/unistr/u8-strmblen-tests: New file.
35124         * tests/unistr/test-u8-strmblen.c: New file.
35125
35126         Tests for module 'unistr/u32-cpy-alloc'.
35127         * modules/unistr/u32-cpy-alloc-tests: New file.
35128         * tests/unistr/test-u32-cpy-alloc.c: New file.
35129
35130         Tests for module 'unistr/u16-cpy-alloc'.
35131         * modules/unistr/u16-cpy-alloc-tests: New file.
35132         * tests/unistr/test-u16-cpy-alloc.c: New file.
35133
35134         Tests for module 'unistr/u8-cpy-alloc'.
35135         * modules/unistr/u8-cpy-alloc-tests: New file.
35136         * tests/unistr/test-u8-cpy-alloc.c: New file.
35137         * tests/unistr/test-cpy-alloc.h: New file.
35138
35139         Tests for module 'unistr/u32-mbsnlen'.
35140         * modules/unistr/u32-mbsnlen-tests: New file.
35141         * tests/unistr/test-u32-mbsnlen.c: New file.
35142
35143         Tests for module 'unistr/u16-mbsnlen'.
35144         * modules/unistr/u16-mbsnlen-tests: New file.
35145         * tests/unistr/test-u16-mbsnlen.c: New file.
35146
35147         Tests for module 'unistr/u8-mbsnlen'.
35148         * modules/unistr/u8-mbsnlen-tests: New file.
35149         * tests/unistr/test-u8-mbsnlen.c: New file.
35150
35151         Tests for module 'unistr/u32-chr'.
35152         * modules/unistr/u32-chr-tests: New file.
35153         * tests/unistr/test-u32-chr.c: New file.
35154
35155         Tests for module 'unistr/u16-chr'.
35156         * modules/unistr/u16-chr-tests: New file.
35157         * tests/unistr/test-u16-chr.c: New file.
35158
35159         Tests for module 'unistr/u8-chr'.
35160         * modules/unistr/u8-chr-tests: New file.
35161         * tests/unistr/test-u8-chr.c: New file.
35162         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35163
35164         Tests for module 'unistr/u32-cmp2'.
35165         * modules/unistr/u32-cmp2-tests: New file.
35166         * tests/unistr/test-u32-cmp2.c: New file.
35167
35168         Tests for module 'unistr/u16-cmp2'.
35169         * modules/unistr/u16-cmp2-tests: New file.
35170         * tests/unistr/test-u16-cmp2.c: New file.
35171
35172         Tests for module 'unistr/u8-cmp2'.
35173         * modules/unistr/u8-cmp2-tests: New file.
35174         * tests/unistr/test-u8-cmp2.c: New file.
35175         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35176
35177         Tests for module 'unistr/u32-cmp'.
35178         * modules/unistr/u32-cmp-tests: New file.
35179         * tests/unistr/test-u32-cmp.c: New file.
35180
35181         Tests for module 'unistr/u16-cmp'.
35182         * modules/unistr/u16-cmp-tests: New file.
35183         * tests/unistr/test-u16-cmp.c: New file.
35184
35185         Tests for module 'unistr/u8-cmp'.
35186         * modules/unistr/u8-cmp-tests: New file.
35187         * tests/unistr/test-u8-cmp.c: New file.
35188         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35189
35190         Tests for module 'unistr/u32-set'.
35191         * modules/unistr/u32-set-tests: New file.
35192         * tests/unistr/test-u32-set.c: New file.
35193
35194         Tests for module 'unistr/u16-set'.
35195         * modules/unistr/u16-set-tests: New file.
35196         * tests/unistr/test-u16-set.c: New file.
35197
35198         Tests for module 'unistr/u8-set'.
35199         * modules/unistr/u8-set-tests: New file.
35200         * tests/unistr/test-u8-set.c: New file.
35201         * tests/unistr/test-set.h: New file.
35202
35203         Tests for module 'unistr/u32-move'.
35204         * modules/unistr/u32-move-tests: New file.
35205         * tests/unistr/test-u32-move.c: New file.
35206
35207         Tests for module 'unistr/u16-move'.
35208         * modules/unistr/u16-move-tests: New file.
35209         * tests/unistr/test-u16-move.c: New file.
35210
35211         Tests for module 'unistr/u8-move'.
35212         * modules/unistr/u8-move-tests: New file.
35213         * tests/unistr/test-u8-move.c: New file.
35214         * tests/unistr/test-move.h: New file.
35215
35216         Tests for module 'unistr/u32-cpy'.
35217         * modules/unistr/u32-cpy-tests: New file.
35218         * tests/unistr/test-u32-cpy.c: New file.
35219
35220         Tests for module 'unistr/u16-cpy'.
35221         * modules/unistr/u16-cpy-tests: New file.
35222         * tests/unistr/test-u16-cpy.c: New file.
35223
35224         Tests for module 'unistr/u8-cpy'.
35225         * modules/unistr/u8-cpy-tests: New file.
35226         * tests/unistr/test-u8-cpy.c: New file.
35227         * tests/unistr/test-cpy.h: New file.
35228
35229 2010-01-09  Bruno Haible  <bruno@clisp.org>
35230
35231         Tests for module 'unistr/u32-uctomb'.
35232         * modules/unistr/u32-uctomb-tests: New file.
35233         * tests/unistr/test-u32-uctomb.c: New file.
35234
35235         Tests for module 'unistr/u16-uctomb'.
35236         * modules/unistr/u16-uctomb-tests: New file.
35237         * tests/unistr/test-u16-uctomb.c: New file.
35238
35239         Tests for module 'unistr/u8-uctomb'.
35240         * modules/unistr/u8-uctomb-tests: New file.
35241         * tests/unistr/test-u8-uctomb.c: New file.
35242
35243         Tests for module 'unistr/u32-mbtoucr'.
35244         * modules/unistr/u32-mbtoucr-tests: New file.
35245         * tests/unistr/test-u32-mbtoucr.c: New file.
35246
35247         Tests for module 'unistr/u16-mbtoucr'.
35248         * modules/unistr/u16-mbtoucr-tests: New file.
35249         * tests/unistr/test-u16-mbtoucr.c: New file.
35250
35251         Tests for module 'unistr/u8-mbtoucr'.
35252         * modules/unistr/u8-mbtoucr-tests: New file.
35253         * tests/unistr/test-u8-mbtoucr.c: New file.
35254
35255         Tests for module 'unistr/u32-mbtouc'.
35256         * modules/unistr/u32-mbtouc-tests: New file.
35257         * tests/unistr/test-u32-mbtouc.c: New file.
35258
35259         Tests for module 'unistr/u16-mbtouc'.
35260         * modules/unistr/u16-mbtouc-tests: New file.
35261         * tests/unistr/test-u16-mbtouc.c: New file.
35262
35263         Tests for module 'unistr/u8-mbtouc'.
35264         * modules/unistr/u8-mbtouc-tests: New file.
35265         * tests/unistr/test-u8-mbtouc.c: New file.
35266
35267         Tests for module 'unistr/u32-mbtouc-unsafe'.
35268         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35269         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35270         * tests/unistr/test-u32-mbtouc.h: New file.
35271
35272         Tests for module 'unistr/u16-mbtouc-unsafe'.
35273         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35274         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35275         * tests/unistr/test-u16-mbtouc.h: New file.
35276
35277         Tests for module 'unistr/u8-mbtouc-unsafe'.
35278         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35279         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35280         * tests/unistr/test-u8-mbtouc.h: New file.
35281
35282         Tests for module 'unistr/u32-mblen'.
35283         * modules/unistr/u32-mblen-tests: New file.
35284         * tests/unistr/test-u32-mblen.c: New file.
35285
35286         Tests for module 'unistr/u16-mblen'.
35287         * modules/unistr/u16-mblen-tests: New file.
35288         * tests/unistr/test-u16-mblen.c: New file.
35289
35290         Tests for module 'unistr/u8-mblen'.
35291         * modules/unistr/u8-mblen-tests: New file.
35292         * tests/unistr/test-u8-mblen.c: New file.
35293
35294         Tests for module 'unistr/u32-to-u16'.
35295         * modules/unistr/u32-to-u16-tests: New file.
35296         * tests/unistr/test-u32-to-u16.c: New file.
35297
35298         Tests for module 'unistr/u32-to-u8'.
35299         * modules/unistr/u32-to-u8-tests: New file.
35300         * tests/unistr/test-u32-to-u8.c: New file.
35301
35302         Tests for module 'unistr/u16-to-u32'.
35303         * modules/unistr/u16-to-u32-tests: New file.
35304         * tests/unistr/test-u16-to-u32.c: New file.
35305
35306         Tests for module 'unistr/u16-to-u8'.
35307         * modules/unistr/u16-to-u8-tests: New file.
35308         * tests/unistr/test-u16-to-u8.c: New file.
35309
35310         Tests for module 'unistr/u8-to-u32'.
35311         * modules/unistr/u8-to-u32-tests: New file.
35312         * tests/unistr/test-u8-to-u32.c: New file.
35313
35314         Tests for module 'unistr/u8-to-u16'.
35315         * modules/unistr/u8-to-u16-tests: New file.
35316         * tests/unistr/test-u8-to-u16.c: New file.
35317
35318         Tests for module 'unistr/u32-check'.
35319         * modules/unistr/u32-check-tests: New file.
35320         * tests/unistr/test-u32-check.c: New file.
35321
35322         Tests for module 'unistr/u16-check'.
35323         * modules/unistr/u16-check-tests: New file.
35324         * tests/unistr/test-u16-check.c: New file.
35325
35326         Tests for module 'unistr/u8-check'.
35327         * modules/unistr/u8-check-tests: New file.
35328         * tests/unistr/test-u8-check.c: New file.
35329
35330         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
35331         (category_equals): New function.
35332         (main): Add more tests.
35333         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
35334
35335         * tests/unictype/test-bidi_byname.c (main): Add more tests.
35336
35337 2010-01-10  Bruno Haible  <bruno@clisp.org>
35338
35339         unistr/u*-strcoll: Try harder to distinguish different strings.
35340         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
35341         compare s1 and s2 to see if they are different.
35342
35343 2010-01-10  Bruno Haible  <bruno@clisp.org>
35344
35345         unistr/u*-stpncpy: Fix the return value.
35346         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
35347         description of the return value consistent with stpncpy in glibc.
35348         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
35349         written non-NUL unit.
35350
35351 2010-01-10  Bruno Haible  <bruno@clisp.org>
35352
35353         unistr/u*-next: Add missing dependencies.
35354         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
35355         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
35356         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
35357
35358 2010-01-10  Bruno Haible  <bruno@clisp.org>
35359
35360         unistr/u8-mbsnlen: Fix return value for incomplete character.
35361         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
35362         u8_mblen.
35363         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
35364         Remove unistr/u8-mblen.
35365         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
35366         u16_mblen.
35367         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
35368         Remove unistr/u16-mblen.
35369
35370 2010-01-10  Bruno Haible  <bruno@clisp.org>
35371
35372         wchar: Fix compilation error when <wchar.h> is used from coreutils.
35373         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
35374         Reported by Brian Gough <bjg@gnu.org> and
35375         Chris Clayton <chris2553@googlemail.com> via
35376         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35377
35378 2010-01-09  Bruno Haible  <bruno@clisp.org>
35379
35380         unistr/u16-to-u32: Reject invalid input.
35381         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
35382         u16_mbtouc.
35383         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
35384         Remove unistr/u16-mbtouc.
35385
35386         unistr/u16-to-u8: Reject invalid input.
35387         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35388         u16_mbtouc.
35389         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35390         Remove unistr/u16-mbtouc.
35391
35392         unistr/u8-to-u32: Reject invalid input.
35393         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35394         u8_mbtouc.
35395         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35396         Remove unistr/u8-mbtouc.
35397
35398         unistr/u8-to-u16: Reject invalid input.
35399         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35400         u8_mbtouc.
35401         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35402         Remove unistr/u8-mbtouc.
35403
35404 2010-01-09  Bruno Haible  <bruno@clisp.org>
35405
35406         Tests for module 'getlogin'.
35407         * modules/getlogin-tests: New file.
35408         * tests/test-getlogin.c: New file.
35409
35410         New module 'getlogin'.
35411         * lib/unistd.in.h (getlogin): New declaration.
35412         * lib/getlogin.c: New file.
35413         * m4/getlogin.m4: New file.
35414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
35415         HAVE_GETLOGIN.
35416         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
35417         HAVE_GETLOGIN.
35418         * modules/getlogin: New file.
35419         * doc/posix-functions/getlogin.texi: Mention the new module.
35420         Reported by John W. Eaton <jwe@gnu.org>.
35421
35422 2010-01-09  Bruno Haible  <bruno@clisp.org>
35423
35424         getlogin_r: Support for native Windows.
35425         * lib/getlogin_r.c: Include <windows.h>
35426         (getlogin_r): Implement for native Windows.
35427         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35428         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35429         via John W. Eaton <jwe@gnu.org>.
35430
35431 2010-01-09  Bruno Haible  <bruno@clisp.org>
35432
35433         getlogin_r: Small fixes.
35434         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35435         succeeds.
35436         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
35437         before testing whether getlogin_r is declared. No need to set
35438         HAVE_DECL_GETLOGIN_R to 1.
35439         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
35440
35441 2010-01-09  Bruno Haible  <bruno@clisp.org>
35442
35443         * lib/unistd.in.h (getlogin_r): Add comment.
35444
35445 2010-01-09  Bruno Haible  <bruno@clisp.org>
35446
35447         Tests for module 'getlogin_r'.
35448         * modules/getlogin_r-tests: New file.
35449         * tests/test-getlogin_r.c: New file.
35450
35451 2010-01-09  Jim Meyering  <meyering@redhat.com>
35452
35453         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
35454         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
35455         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
35456
35457 2010-01-08  Simon Josefsson  <simon@josefsson.org>
35458
35459         * lib/dup2.c (rpl_dup2): Improve comment.
35460
35461 2010-01-08  Eric Blake  <ebb9@byu.net>
35462
35463         maint.mk: allow packages to add makefile @@ exceptions
35464         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
35465         (sc_makefile_check): Rename...
35466         (sc_makefile_at_at_check): ...to this, and use hook.
35467
35468         dup2: work around mingw bug
35469         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
35470         Reported by Simon Josefsson.
35471
35472 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
35473
35474         glob: Fix C++ compilation.
35475         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
35476         C++.
35477
35478 2010-01-07  Bruno Haible  <bruno@clisp.org>
35479
35480         Fix indentation of wctype.in.h, broken since 2007-01-06.
35481         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35482
35483 2010-01-07  Bruno Haible  <bruno@clisp.org>
35484
35485         mbslen: Avoid collision with system function.
35486         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35487         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35488         * m4/mbslen.m4: New file.
35489         * modules/mbslen (Files): Add it.
35490         (configure.ac): Invoke gl_MBSLEN.
35491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35492         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35493         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35494         via Ian Beckwith <ianb@erislabs.net>.
35495
35496 2010-01-07  Bruno Haible  <bruno@clisp.org>
35497
35498         dirent: Document the last fix.
35499         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35500
35501 2010-01-07  Bruno Haible  <bruno@clisp.org>
35502
35503         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35504         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35505         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35506         va_list are defined.
35507         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35508         Reported by Eric Blake.
35509
35510 2010-01-07  Bruno Haible  <bruno@clisp.org>
35511
35512         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35513         * modules/xlist (Depends-on): Add 'list',
35514         * modules/xoset (Depends-on): Add 'oset'.
35515         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35516
35517 2010-01-07  Bruno Haible  <bruno@clisp.org>
35518
35519         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35520         * doc/posix-functions/strncasecmp.texi: Likewise.
35521
35522 2010-01-07  Bruno Haible  <bruno@clisp.org>
35523
35524         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35525
35526 2010-01-07  John W. Eaton  <jwe@octave.org>
35527
35528         wctype: allow C++ use
35529         * lib/wctype.in.h: Add extern "C" block for C++.
35530
35531 2010-01-06  Eric Blake  <ebb9@byu.net>
35532
35533         maint.mk: detect incorrect GFDL usage
35534         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35535
35536 2010-01-06  Jim Meyering  <meyering@redhat.com>
35537         and Eric Blake  <ebb9@byu.net>
35538
35539         maint.mk: ignore multi-line copyright in NEWS
35540         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35541
35542 2010-01-06  Eric Blake  <ebb9@byu.net>
35543
35544         select: add missing dependency
35545         * modules/select-tests (Depends-on): Move sockets dependency...
35546         * modules/select (Depends-on): ...here.
35547         Reported by Ian Beckwith.
35548
35549         doc: regenerate INSTALL
35550         * doc/INSTALL: Reflect recent autoconf update.
35551         * doc/INSTALL.ISO: Likewise.
35552         * doc/INSTALL.UTF-8: Likewise.
35553
35554         pread: fix compilation on glibc
35555         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35556         Reported by Ralf Wildenhues.
35557
35558         dirent: fix test failure
35559         * lib/dirent.in.h (includes): Guarantee ino_t.
35560         Reported by Ralf Wildenhues.
35561
35562 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35563
35564         linkat, renameat: avoid bad free
35565         * lib/at-func2.c (at_func2): Fix typo.
35566         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35567
35568 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35569
35570         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35571         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35572         to avoid failure of symlink test later.
35573
35574 2010-01-06  Eric Blake  <ebb9@byu.net>
35575
35576         stdio, unistd: guarantee ssize_t
35577         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35578         2008 are exposed when needed.
35579         * lib/stdio.in.h (includes): Likewise.
35580         Reported by Ralf Wildenhues.
35581
35582 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35583
35584         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35585         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35586         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35587
35588 2010-01-06  Jim Meyering  <meyering@redhat.com>
35589
35590         readtokens: this module *does* require xalloc.h
35591         It uses only functions that were omitted by the old syntax-check rule.
35592         * lib/readtokens.c: Include "xalloc.h" once again.
35593         * modules/readtokens (Depends-on): Add xalloc.
35594         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35595
35596 2010-01-05  Eric Blake  <ebb9@byu.net>
35597
35598         maint: support 'make announcement' from a VPATH build
35599         * top/maint.mk (announcement): Look for correct NEWS file.
35600
35601 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35602
35603         utimens (fdutimens): ignore a negative FD, per contract
35604         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35605         when we have a valid file descriptor.  Otherwise, using a brand
35606         new glibc (with just-patched futimens that now fails with EBADF)
35607         would cause this function to fail with ENOSYS.
35608         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35609         See also http://bugzilla.redhat.com/552320.
35610
35611 2010-01-05  Eric Blake  <ebb9@byu.net>
35612
35613         strcase: document what it provides
35614         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35615         gnulib module.
35616         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35617         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35618
35619 2010-01-05  Jim Meyering  <meyering@redhat.com>
35620
35621         maint: remove useless inclusions of "xalloc.h"
35622         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35623         * lib/readtokens.c: Likewise.
35624         * lib/same.c: Likewise.
35625         * modules/getloadavg (Depends-on): Remove xalloc.
35626         * modules/readtokens: Likewise.
35627         * modules/same: Likewise.
35628
35629         maint.mk: include 4 more function names in alloca.h-checking regexp
35630         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35631         regexp.  Before, we would give a false-positive (saying alloca.h
35632         is included unnecessarily) when the only uses involved omitted symbols.
35633
35634         xalloc.h: use consistent formatting
35635         * lib/xalloc.h: Move declarations to start in the first column.
35636
35637 2010-01-05  Eric Blake  <ebb9@byu.net>
35638
35639         mkdir: avoid xalloc
35640         * lib/mkdir.c (includes): Drop unused header.
35641         Reported by John W. Eaton.
35642
35643 2010-01-04  Jim Meyering  <meyering@redhat.com>
35644
35645         nl_langinfo: avoid configure-time syntax error
35646         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35647         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35648         the empty string.  Don't let that provoke a shell syntax error.
35649
35650         regcomp, regexec, fnmatch: avoid array bounds read error
35651         * lib/regcomp.c (build_equiv_class): From glibc:
35652         Use only the low 24 bits of a findidx return value as an index
35653         into the weights array.  Patch by Ulrich Drepper:
35654         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35655         * lib/regexec.c (check_node_accept_bytes): Likewise.
35656         * lib/fnmatch_loop.c (FCT): Likewise.
35657
35658         regcomp: skip collseq lookup when there are no rules
35659         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35660         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35661
35662         regcomp: recognize ill-formed { } expressions
35663         * lib/regcomp.c (parse_dup_op): From glibc:
35664         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35665
35666         regcomp: fix typo in comment
35667         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35668         s/satisfy/satisfies/.
35669
35670         regcomp: sync from glibc: remove dead store
35671         * lib/regcomp.c (duplicate_node_closure): Remove useless
35672         search_duplicated_node call and dead store.
35673
35674         regcomp: sync from glibc; always use nl_langinfo
35675         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35676         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35677         * modules/regex (Depends-on): Add nl_langinfo.
35678
35679 2010-01-04  Eric Blake  <ebb9@byu.net>
35680
35681         fdopendir: fix configure test
35682         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35683
35684 2010-01-01  Bruno Haible  <bruno@clisp.org>
35685
35686         wchar: Remove unused configure check.
35687         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35688
35689 2010-01-01  Eric Blake  <ebb9@byu.net>
35690
35691         headers: make check of system header explicit
35692         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35693         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35694         ourselves.
35695         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35696         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35697         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35698         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35699         internals.
35700         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35701         missing.
35702         Suggested by Bruno Haible.
35703
35704 2010-01-01  Jim Meyering  <meyering@redhat.com>
35705
35706         ChangeLog: tweak to eliminate unnecessary copyright line
35707         * ChangeLog: Remove a copyright line that was mistakenly updated
35708         by today's update-copyright run.  Reported by Eric Blake.
35709
35710         test-update-copyright: don't let envvar setting cause test failure
35711         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35712
35713 2010-01-01  Bruno Haible  <bruno@clisp.org>
35714
35715         localename: Avoid gcc warning.
35716         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35717         function if it is not used.
35718
35719 2010-01-01  Jim Meyering  <meyering@redhat.com>
35720
35721         update nearly all FSF copyright year lists to include 2010
35722         Use the same procedure as for 2009, outlined in
35723         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35724
35725         version-etc: set COPYRIGHT_YEAR to 2010
35726         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35727
35728 2009-12-31  Eric Blake  <ebb9@byu.net>
35729
35730         doc: correct availability of cygwin 1.5.x getopt
35731         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35732         variables.
35733         * doc/posix-functions/opterr.texi (opterr): Likewise.
35734         * doc/posix-functions/optind.texi (optind): Likewise.
35735         * doc/posix-functions/optopt.texi (optopt): Likewise.
35736         * doc/posix-functions/tzname.texi (tzname): Likewise.
35737
35738         openat: update maintainer
35739         * modules/openat (Maintainer): Add myself.
35740
35741         utimens: avoid shadowing warning
35742         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35743         buffers into one, to avoid shadowing, as well as avoiding a
35744         redundant stat.
35745         Reported by Jim Meyering.
35746
35747         test-dup2: avoid compiler warning
35748         * tests/test-dup2.c (is_inheritable): Only define if used.
35749
35750 2010-01-01  Bruno Haible  <bruno@clisp.org>
35751
35752         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35753         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35754         defined, use wctomb instead of wcrtomb.
35755
35756 2010-01-01  Bruno Haible  <bruno@clisp.org>
35757
35758         iconv: Reject native Solaris iconv.
35759         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35760         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35761
35762 2009-12-31  Bruno Haible  <bruno@clisp.org>
35763
35764         * tests/test-signal.c (main): Remove test of 'SIG'.
35765
35766 2009-12-31  Bruno Haible  <bruno@clisp.org>
35767
35768         spawn: Fix incomplete fix.
35769         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35770         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35771         warnings for GNULIB_POSIXCHECK again.
35772         Reported by Eric Blake.
35773
35774 2009-12-31  Bruno Haible  <bruno@clisp.org>
35775
35776         Avoid namespace pollution on glibc systems.
35777         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35778         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35779         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35780         glibc systems.
35781
35782 2009-12-31  Bruno Haible  <bruno@clisp.org>
35783
35784         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35785         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35786         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35787         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35788         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35789         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35790         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35791
35792 2009-12-31  Bruno Haible  <bruno@clisp.org>
35793
35794         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35795         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35796         afterwards.
35797
35798 2009-12-31  Bruno Haible  <bruno@clisp.org>
35799
35800         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35801         SYS_UTSNAME_H.
35802
35803 2009-12-31  Bruno Haible  <bruno@clisp.org>
35804
35805         spawn: Fix misapplied patch.
35806         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35807         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35808         warnings for GNULIB_POSIXCHECK.
35809
35810 2009-12-31  Bruno Haible  <bruno@clisp.org>
35811
35812         times: Update after sys_times changed.
35813         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35814         * modules/times (Files): Add it.
35815         (configure.ac): Invoke gl_FUNC_TIMES.
35816
35817 2009-12-31  Bruno Haible  <bruno@clisp.org>
35818
35819         Use AC_C_INLINE where necessary.
35820         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35821         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35822         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35823         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35824         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35825         * m4/mbiter.m4 (gl_MBITER): Likewise.
35826         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35827         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35828         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35829         * modules/u64 (configure.ac): Likewise.
35830
35831 2009-12-31  Bruno Haible  <bruno@clisp.org>
35832
35833         Use AC_C_INLINE instead of module 'inline' where possible.
35834         * modules/inline (Description): Clarify purpose.
35835         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35836         * modules/count-one-bits (Depends-on): Remove inline.
35837         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35838         * modules/openat (Depends-on): Remove inline.
35839         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35840         instead of depending on module 'inline'.
35841         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35842         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35843         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35844         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35845         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35846         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35847         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35848         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35849         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35850         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35851         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35852         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35853         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35854         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35855         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35856         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35857         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35858         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35859         Likewise.
35860         * modules/unictype/property-ascii-hex-digit (Depends-on,
35861         configure.ac): Likewise.
35862         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35863         configure.ac): Likewise.
35864         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35865         configure.ac): Likewise.
35866         * modules/unictype/property-bidi-block-separator (Depends-on,
35867         configure.ac): Likewise.
35868         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35869         configure.ac): Likewise.
35870         * modules/unictype/property-bidi-common-separator (Depends-on,
35871         configure.ac): Likewise.
35872         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35873         Likewise.
35874         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35875         configure.ac): Likewise.
35876         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35877         configure.ac): Likewise.
35878         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35879         configure.ac): Likewise.
35880         * modules/unictype/property-bidi-european-digit (Depends-on,
35881         configure.ac): Likewise.
35882         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35883         configure.ac): Likewise.
35884         * modules/unictype/property-bidi-left-to-right (Depends-on,
35885         configure.ac): Likewise.
35886         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35887         configure.ac): Likewise.
35888         * modules/unictype/property-bidi-other-neutral (Depends-on,
35889         configure.ac): Likewise.
35890         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35891         Likewise.
35892         * modules/unictype/property-bidi-segment-separator (Depends-on,
35893         configure.ac): Likewise.
35894         * modules/unictype/property-bidi-whitespace (Depends-on,
35895         configure.ac): Likewise.
35896         * modules/unictype/property-combining (Depends-on, configure.ac):
35897         Likewise.
35898         * modules/unictype/property-composite (Depends-on, configure.ac):
35899         Likewise.
35900         * modules/unictype/property-currency-symbol (Depends-on,
35901         configure.ac): Likewise.
35902         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35903         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35904         Likewise.
35905         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35906         configure.ac): Likewise.
35907         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35908         Likewise.
35909         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35910         Likewise.
35911         * modules/unictype/property-extender (Depends-on, configure.ac):
35912         Likewise.
35913         * modules/unictype/property-format-control (Depends-on, configure.ac):
35914         Likewise.
35915         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35916         Likewise.
35917         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35918         Likewise.
35919         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35920         Likewise.
35921         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35922         Likewise.
35923         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35924         Likewise.
35925         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35926         Likewise.
35927         * modules/unictype/property-id-start (Depends-on, configure.ac):
35928         Likewise.
35929         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35930         Likewise.
35931         * modules/unictype/property-ids-binary-operator (Depends-on,
35932         configure.ac): Likewise.
35933         * modules/unictype/property-ids-trinary-operator (Depends-on,
35934         configure.ac): Likewise.
35935         * modules/unictype/property-ignorable-control (Depends-on,
35936         configure.ac): Likewise.
35937         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35938         Likewise.
35939         * modules/unictype/property-join-control (Depends-on, configure.ac):
35940         Likewise.
35941         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35942         Likewise.
35943         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35944         Likewise.
35945         * modules/unictype/property-logical-order-exception (Depends-on,
35946         configure.ac): Likewise.
35947         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35948         Likewise.
35949         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35950         * modules/unictype/property-non-break (Depends-on, configure.ac):
35951         Likewise.
35952         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35953         Likewise.
35954         * modules/unictype/property-numeric (Depends-on, configure.ac):
35955         Likewise.
35956         * modules/unictype/property-other-alphabetic (Depends-on,
35957         configure.ac): Likewise.
35958         * modules/unictype/property-other-default-ignorable-code-point
35959         (Depends-on, configure.ac): Likewise.
35960         * modules/unictype/property-other-grapheme-extend (Depends-on,
35961         configure.ac): Likewise.
35962         * modules/unictype/property-other-id-continue (Depends-on,
35963         configure.ac): Likewise.
35964         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35965         Likewise.
35966         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35967         Likewise.
35968         * modules/unictype/property-other-math (Depends-on, configure.ac):
35969         Likewise.
35970         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35971         Likewise.
35972         * modules/unictype/property-paired-punctuation (Depends-on,
35973         configure.ac): Likewise.
35974         * modules/unictype/property-paragraph-separator (Depends-on,
35975         configure.ac): Likewise.
35976         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35977         Likewise.
35978         * modules/unictype/property-pattern-white-space (Depends-on,
35979         configure.ac): Likewise.
35980         * modules/unictype/property-private-use (Depends-on, configure.ac):
35981         Likewise.
35982         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35983         Likewise.
35984         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35985         Likewise.
35986         * modules/unictype/property-radical (Depends-on, configure.ac):
35987         Likewise.
35988         * modules/unictype/property-sentence-terminal (Depends-on,
35989         configure.ac): Likewise.
35990         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35991         Likewise.
35992         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35993         * modules/unictype/property-terminal-punctuation (Depends-on,
35994         configure.ac): Likewise.
35995         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35996         Likewise.
35997         * modules/unictype/property-unassigned-code-value (Depends-on,
35998         configure.ac): Likewise.
35999         * modules/unictype/property-unified-ideograph (Depends-on,
36000         configure.ac): Likewise.
36001         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36002         Likewise.
36003         * modules/unictype/property-variation-selector (Depends-on,
36004         configure.ac): Likewise.
36005         * modules/unictype/property-white-space (Depends-on, configure.ac):
36006         Likewise.
36007         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36008         Likewise.
36009         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36010         Likewise.
36011         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36012         Likewise.
36013         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36014         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36015         Likewise.
36016
36017 2009-12-31  Bruno Haible  <bruno@clisp.org>
36018
36019         Remove unnecessary AC_C_INLINE invocation.
36020         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36021         since 2009-08-21.
36022
36023 2009-12-31  Jim Meyering  <meyering@redhat.com>
36024
36025         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36026         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36027         With this change, we can all remove the gpg_key_ID = ... definition
36028         from our respective cfg.mk files.
36029
36030         maint.mk: create announcement template in ~/, not in /tmp
36031         * top/maint.mk (emit_upload_commands): Adjust.
36032         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36033         Remove temporary file, .ci-msg.
36034
36035 2009-12-31  Eric Blake  <ebb9@byu.net>
36036
36037         link-warning: always build headers with link warnings
36038         * modules/arpa_inet (Makefile.am): Always build replacement
36039         header.
36040         * modules/ctype (Makefile.am): Likewise.
36041         * modules/dirent (Makefile.am): Likewise.
36042         * modules/inttypes (Makefile.am): Likewise.
36043         * modules/langinfo (Makefile.am): Likewise.
36044         * modules/locale (Makefile.am): Likewise.
36045         * modules/spawn (Makefile.am): Likewise.
36046         * modules/sys_file (Makefile.am): Likewise.
36047         * modules/sys_ioctl (Makefile.am): Likewise.
36048         * modules/sys_select (Makefile.am): Likewise.
36049         * modules/sys_socket (Makefile.am): Likewise.
36050         * modules/sys_times (Makefile.am): Likewise.
36051         * modules/sys_utsname (Makefile.am): Likewise.
36052         * modules/sys_wait (Makefile.am): Likewise.
36053         * modules/wchar (Makefile.am): Likewise.
36054         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36055         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36056         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36057         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36058         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36059         Likewise.
36060         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36061         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36062         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36063         Likewise.
36064         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36065         Likewise.
36066         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36067         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36068         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36069         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36070         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36071         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36072         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36073         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36074         (gl_WCHAR_H_DEFAULTS): Likewise.
36075
36076 2009-12-31  Eric Blake  <ebb9@byu.net>
36077
36078         signal, spawn: use link warnings
36079         * lib/signal.in.h (sigset_t): Make unconditional.
36080         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36081         (sigpending, sigprocmask, sigaction): Add link warnings.
36082         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36083         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36084         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36085         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36086         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36087         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36088         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36089         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36090         (posix_spawn_file_actions_destroy)
36091         (posix_spawn_file_actions_addopen)
36092         (posix_spawn_file_actions_addclose)
36093         (posix_spawn_file_actions_adddup2): Likewise.
36094         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36095         * tests/test-signal.c (main): Enhance test.
36096
36097         spawn: improve wrapper support
36098         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36099         (gl_SPAWN_H_DEFAULTS): New defaults.
36100         * modules/spawn (Makefile.am): Substitute them.
36101         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36102         Only declare if missing or broken.
36103
36104         sys_times, sys_utsname: use include_next
36105         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36106         header.
36107         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36108         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36109         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36110         * modules/sys_times (Depends-on): Add include_next.
36111         (Makefile.am): Substitute additional values.
36112         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36113         * lib/sys_times.in.h (includes): Include native header, if
36114         available.
36115         * lib/sys_utsname.in.h (includes): Likewise.
36116         * tests/test-sys_times.c (main): Enhance test.
36117
36118         fdutimensat: revert prior patch
36119         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36120         utimens.h.
36121         Reported by Bruno Haible.
36122
36123 2009-12-30  Eric Blake  <ebb9@byu.net>
36124
36125         sys_wait: drop link-warning dependency
36126         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36127         link-warning efforts.
36128         * lib/sys_wait.in.h: Likewise.
36129
36130         fdutimensat: remove bogus dependency
36131         * modules/fdutimensat (Depends-on): Drop inline.
36132
36133         unistd: fix typo
36134         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36135
36136 2009-12-30  Bruno Haible  <bruno@clisp.org>
36137
36138         Fix compilation error with Solaris cc.
36139         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36140         * lib/unicase/u16-is-invariant.c: Likewise.
36141         * lib/unicase/u32-is-invariant.c: Likewise.
36142         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36143
36144 2009-12-30  Bruno Haible  <bruno@clisp.org>
36145
36146         Fix test crash.
36147         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36148         locales.
36149         Reported by Simon Josefsson <simon@josefsson.org>.
36150
36151 2009-12-30  Bruno Haible  <bruno@clisp.org>
36152
36153         Fix compilation error on most platforms.
36154         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36155         Reported by Simon Josefsson <simon@josefsson.org>
36156         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36157
36158 2009-12-30  Eric Blake  <ebb9@byu.net>
36159
36160         futimens, utimensat: work around ntfs-3g bug
36161         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36162         a ctime bug is present, and expand workaround to cover ntfs-3g.
36163         * lib/utimens.c (fdutimens, lutimens): Likewise.
36164         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36165         (validate_timespec): Adjust return value.
36166         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36167         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36168         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36169
36170 2009-12-29  Eric Blake  <ebb9@byu.net>
36171
36172         link-warning: make usage consistent
36173         * modules/ctype (Depends-on): Add link-warning.
36174         (Makefile.am): Update rules accordingly.
36175         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36176         * modules/locale (Depends-on, Makefile.am): Likewise.
36177         * modules/sys_file (Makefile.am): Likewise.
36178         * modules/getopt-posix (Makefile.am): Delete unused link warning
36179         efforts.
36180         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36181         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36182         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36183         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36184
36185         stdio: remove unused variables
36186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36187         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36188         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36189
36190         tests: test more substitute headers
36191         * modules/ctype-tests: New file.
36192         * modules/dirent-tests: Likewise.
36193         * modules/spawn-tests: Likewise.
36194         * modules/sys_file-tests: Likewise.
36195         * modules/sys_ioctl-tests: Likewise.
36196         * modules/sys_wait-tests: Likewise.
36197         * tests/test-ctype.c: Likewise.
36198         * tests/test-dirent.c: Likewise.
36199         * tests/test-spawn.c: Likewise.
36200         * tests/test-sys_file.c: Likewise.
36201         * tests/test-sys_ioctl.c: Likewise.
36202         * tests/test-sys_wait.c: Likewise.
36203         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36204         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36205         whether or not flock is in use.
36206
36207         tests: remove License section from module
36208         * modules/arpa_inet-tests: Remove unneeded section.
36209         * modules/byteswap-tests: Likewise.
36210         * modules/ceilf-tests: Likewise.
36211         * modules/ceill-tests: Likewise.
36212         * modules/crypto/des-tests: Likewise.
36213         * modules/crypto/gc-arcfour-tests: Likewise.
36214         * modules/crypto/gc-arctwo-tests: Likewise.
36215         * modules/crypto/gc-des-tests: Likewise.
36216         * modules/crypto/gc-hmac-md5-tests: Likewise.
36217         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36218         * modules/crypto/gc-md2-tests: Likewise.
36219         * modules/crypto/gc-md4-tests: Likewise.
36220         * modules/crypto/gc-md5-tests: Likewise.
36221         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36222         * modules/crypto/gc-rijndael-tests: Likewise.
36223         * modules/crypto/gc-sha1-tests: Likewise.
36224         * modules/crypto/gc-tests: Likewise.
36225         * modules/crypto/md2-tests: Likewise.
36226         * modules/crypto/md4-tests: Likewise.
36227         * modules/fcntl-h-tests: Likewise.
36228         * modules/floorf-tests: Likewise.
36229         * modules/floorl-tests: Likewise.
36230         * modules/frexp-nolibm-tests: Likewise.
36231         * modules/frexp-tests: Likewise.
36232         * modules/frexpl-nolibm-tests: Likewise.
36233         * modules/frexpl-tests: Likewise.
36234         * modules/getaddrinfo-tests: Likewise.
36235         * modules/inttypes-tests: Likewise.
36236         * modules/isfinite-tests: Likewise.
36237         * modules/isinf-tests: Likewise.
36238         * modules/ldexpl-tests: Likewise.
36239         * modules/locale-tests: Likewise.
36240         * modules/math-tests: Likewise.
36241         * modules/netdb-tests: Likewise.
36242         * modules/netinet_in-tests: Likewise.
36243         * modules/printf-frexp-tests: Likewise.
36244         * modules/printf-frexpl-tests: Likewise.
36245         * modules/priv-set-tests: Likewise.
36246         * modules/random_r-tests: Likewise.
36247         * modules/round-tests: Likewise.
36248         * modules/roundf-tests: Likewise.
36249         * modules/roundl-tests: Likewise.
36250         * modules/search-tests: Likewise.
36251         * modules/select-tests: Likewise.
36252         * modules/signal-tests: Likewise.
36253         * modules/stdbool-tests: Likewise.
36254         * modules/stddef-tests: Likewise.
36255         * modules/stdint-tests: Likewise.
36256         * modules/stdio-tests: Likewise.
36257         * modules/stdlib-tests: Likewise.
36258         * modules/string-tests: Likewise.
36259         * modules/strings-tests: Likewise.
36260         * modules/sys_select-tests: Likewise.
36261         * modules/sys_socket-tests: Likewise.
36262         * modules/sys_stat-tests: Likewise.
36263         * modules/sys_time-tests: Likewise.
36264         * modules/sys_utsname-tests: Likewise.
36265         * modules/sysexits-tests: Likewise.
36266         * modules/time-tests: Likewise.
36267         * modules/trunc-tests: Likewise.
36268         * modules/truncf-tests: Likewise.
36269         * modules/truncl-tests: Likewise.
36270         * modules/tsearch-tests: Likewise.
36271         * modules/unistd-tests: Likewise.
36272         * modules/wchar-tests: Likewise.
36273         * modules/wctype-tests: Likewise.
36274
36275         tests: fix license on several tests
36276         * tests/test-des.c: Update to GPLv3+.
36277         * tests/test-flock.c: Likewise.
36278         * tests/test-fsync.c: Likewise.
36279         * tests/test-futimens.h: Likewise.
36280         * tests/test-gc-arcfour.c: Likewise.
36281         * tests/test-gc-arctwo.c: Likewise.
36282         * tests/test-gc-des.c: Likewise.
36283         * tests/test-gc-hmac-md5.c: Likewise.
36284         * tests/test-gc-hmac-sha1.c: Likewise.
36285         * tests/test-gc-md2.c: Likewise.
36286         * tests/test-gc-md4.c: Likewise.
36287         * tests/test-gc-md5.c: Likewise.
36288         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36289         * tests/test-gc-rijndael.c: Likewise.
36290         * tests/test-gc-sha1.c: Likewise.
36291         * tests/test-gc.c: Likewise.
36292         * tests/test-getcwd.c: Likewise.
36293         * tests/test-link.c: Likewise.
36294         * tests/test-link.h: Likewise.
36295         * tests/test-lutimens.h: Likewise.
36296         * tests/test-md2.c: Likewise.
36297         * tests/test-md4.c: Likewise.
36298         * tests/test-mkdir.h: Likewise.
36299         * tests/test-rename.c: Likewise.
36300         * tests/test-rename.h: Likewise.
36301         * tests/test-safe-alloc.c: Likewise.
36302         * tests/test-utimens-common.h: Likewise.
36303         * tests/test-utimens.h: Likewise.
36304
36305         maint: sync license texts
36306         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36307         * doc/gpl-3.0.texi: Revert copyright year update.
36308         * doc/lgpl-3.0.texi: Likewise.
36309
36310 2009-12-29  Jim Meyering  <meyering@redhat.com>
36311
36312         update nearly all FSF copyright year lists to include 2009
36313         The files named by the following are exempted:
36314             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36315               test -f "$dst" && { echo "$dst"; continue; }
36316               test -d "$dst" || continue
36317               echo "$dst"/$(basename "$src")
36318             done > exempt
36319             git ls-files tests/unictype >> exempt
36320         In the remaining files, convert to all-interval notation if
36321         - there is already at least one year interval like 2000-2003
36322         - the file is maintained by me
36323         - the file is in lib/uni*/, where that style already prevails
36324         Otherwise, use update-copyright's default.
36325
36326 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36327         and Eric Blake  <ebb9@byu.net>
36328
36329         tests: don't require debug system() to pass
36330         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
36331         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36332         * tests/test-unlink.h (test_unlink_func): Likewise.
36333         * tests/test-fstatat.c (main): ...into callers.
36334         * tests/test-lstat.c (main): Likewise.
36335         * tests/test-rmdir.c (main): Likewise.
36336         * tests/test-unlink.c (main): Likewise.
36337         * tests/test-unlinkat.c (main): Likewise.
36338         * tests/test-areadlink-with-size.c (main): Don't require a
36339         debug-only system call to pass, aiding cross-testing to mingw.
36340         * tests/test-areadlink.c (main): Likewise.
36341         * tests/test-areadlinkat-with-size.c (main): Likewise.
36342         * tests/test-areadlinkat.c (main): Likewise.
36343         * tests/test-canonicalize-lgpl.c (main): Likewise.
36344         * tests/test-canonicalize.c (main): Likewise.
36345         * tests/test-chown.c (main): Likewise.
36346         * tests/test-fchownat.c (main): Likewise.
36347         * tests/test-lchown.c (main): Likewise.
36348         * tests/test-fdutimensat.c (main): Likewise.
36349         * tests/test-futimens.c (main): Likewise.
36350         * tests/test-link.c (main): Likewise.
36351         * tests/test-linkat.c (main): Likewise.
36352         * tests/test-mkdir.c (main): Likewise.
36353         * tests/test-mkdirat.c (main): Likewise.
36354         * tests/test-mkfifo.c (main): Likewise.
36355         * tests/test-mkfifoat.c (main): Likewise.
36356         * tests/test-mknod.c (main): Likewise.
36357         * tests/test-readlink.c (main): Likewise.
36358         * tests/test-remove.c (main): Likewise.
36359         * tests/test-rename.c (main): Likewise.
36360         * tests/test-renameat.c (main): Likewise.
36361         * tests/test-symlink.c (main): Likewise.
36362         * tests/test-symlinkat.c (main): Likewise.
36363         * tests/test-utimens.c (main): Likewise.
36364         * tests/test-utimensat.c (main): Likewise.
36365
36366 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36367
36368         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
36369         on $(UNUSED_PARAMETER_H) to avoid build failure.
36370
36371 2009-12-28  Jim Meyering  <meyering@redhat.com>
36372
36373         update-copyright: you may specify a max. line length other than 72
36374         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36375
36376         maint: use consistent FSF copyright line syntax
36377         * lib/posixtm.c: Add missing comma in FSF copyright line.
36378         * lib/posixtm.h: Likewise.
36379         * lib/getugroups.c: Add missing ", Inc.".
36380
36381         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
36382         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
36383         FSF copyright line.  Remove trailing blanks.
36384
36385 2009-12-28  Eric Blake  <ebb9@byu.net>
36386
36387         test-dup2: reduce dependencies
36388         * modules/cloexec (Configure.ac): Set witness.
36389         * modules/dup2-tests (Depends-on): Drop cloexec.
36390         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36391         not present.
36392         Suggested by Bruno Haible.
36393
36394 2009-12-26  Bruno Haible  <bruno@clisp.org>
36395
36396         Remove an unneeded dependency.
36397         * modules/fseterr (Depends-on): Remove dup2.
36398
36399 2009-12-26  Eric Blake  <ebb9@byu.net>
36400
36401         tests: use macros.h in more places
36402         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36403         (ASSERT_STREAM): Provide default of stderr.
36404         * tests/test-dirent-safer.c: Include macros.h, using alternate
36405         stream for assertions.
36406         * tests/test-dup-safer.c: Likewise.
36407         * tests/test-freopen-safer.c: Likewise.
36408         * tests/test-getopt.c: Likewise.
36409         * tests/test-openat-safer.c: Likewise.
36410         * tests/test-pipe.c: Likewise.
36411         * tests/test-popen-safer.c: Likewise.
36412         * modules/dirent-safer-tests (Files): Include macros.h.
36413         * modules/unistd-safer-tests (Files): Likewise.
36414         * modules/freopen-safer-tests (Files): Likewise.
36415         * modules/getopt-posix-tests (Files): Likewise.
36416         * modules/openat-safer-tests (Files): Likewise.
36417         * modules/pipe-tests (Files): Likewise.
36418
36419 2009-12-26  Bruno Haible  <bruno@clisp.org>
36420
36421         javacomp: Portability fix.
36422         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
36423         that it also works on Solaris.
36424
36425 2009-12-26  Bruno Haible  <bruno@clisp.org>
36426
36427         localename: Fix storage allocation of gl_locale_name_thread's result.
36428         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36429         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36430         all platforms that have 'uselocale'.
36431         (gl_locale_name_thread_unsafe): New function, extracted from
36432         gl_locale_name_thread.
36433         (gl_locale_name_thread): Call struniq on all platforms that have
36434         'uselocale'.
36435         * tests/test-localename.c (test_locale_name_thread): Check that the
36436         resulting strings are permanently allocated.
36437         * modules/localename-tests (Depends-on): Add strdup.
36438
36439 2009-12-26  Bruno Haible  <bruno@clisp.org>
36440
36441         * tests/test-localename.c (categories): Fill in the strings.
36442
36443 2009-12-26  Jim Meyering  <meyering@redhat.com>
36444
36445         isdir: complete the removal of m4/isdir.m4
36446         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
36447
36448         isdir: clean up, since at least grep still uses it
36449         * lib/isdir.c: Include "isdir.h".
36450         (S_ISDIR): Remove now-unneeded definition.
36451         * modules/isdir (Files): Add lib/isdir.h.
36452         * lib/isdir.h: New file, with declaration.
36453         * m4/isdir.m4: Remove file -- unneeded.
36454
36455 2009-12-25  Bruno Haible  <bruno@clisp.org>
36456
36457         selinux-h: Make generated .h files standalone.
36458         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
36459         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
36460         * lib/se-selinux.in.h: Likewise.
36461         * modules/selinux-h (Depends-on): Add unused-parameter.
36462         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
36463         selinux/selinux.h and selinux/context.h.
36464         Suggested by Eric Blake.
36465
36466 2009-12-25  Bruno Haible  <bruno@clisp.org>
36467
36468         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
36469         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
36470         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
36471         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
36472         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
36473
36474 2009-12-24  Bruno Haible  <bruno@clisp.org>
36475
36476         openat: Fix warning.
36477         * lib/openat-proc.c: Include <unistd.h>.
36478
36479 2009-12-24  Bruno Haible  <bruno@clisp.org>
36480
36481         New module 'unused-parameter'.
36482         * build-aux/unused-parameter.h: New file, extracted from earlier
36483         gnulib-common.m4.
36484         * modules/unused-parameter: New file.
36485         * lib/unistr.h: Include unused-parameter.h.
36486         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36487         _GL_UNUSED.
36488         * modules/unistr/base (Depends-on): Add unused-parameter.
36489
36490 2009-12-24  Bruno Haible  <bruno@clisp.org>
36491
36492         Add missing dependencies to 'extensions' module.
36493         * m4/extensions.m4: Add comment.
36494         * modules/accept4 (Depends-on): Add extensions.
36495         * modules/dup3 (Depends-on): Likewise.
36496         * modules/fcntl (Depends-on): Likewise.
36497         * modules/futimens (Depends-on): Likewise.
36498         * modules/mknod (Depends-on): Likewise.
36499         * modules/pipe2 (Depends-on): Likewise.
36500         * modules/stat-time (Depends-on): Likewise.
36501         * modules/strcasestr-simple (Depends-on): Likewise.
36502         * modules/strsignal (Depends-on): Likewise.
36503         * modules/utimensat (Depends-on): Likewise.
36504         * modules/localcharset (Depends-on): Likewise. Needed because of
36505         gl_FCNTL_O_FLAGS.
36506         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36507         AC_TYPE_MBSTATE_T.
36508         * modules/wcsnrtombs (Depends-on): Likewise.
36509         * modules/wcsrtombs (Depends-on): Likewise.
36510
36511 2009-12-24  Bruno Haible  <bruno@clisp.org>
36512
36513         binary-io: Avoid gcc warning due to SET_BINARY.
36514         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36515         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36516
36517 2009-12-24  Bruno Haible  <bruno@clisp.org>
36518
36519         Avoid future namespace pollution on glibc systems.
36520         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36521         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36522         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36523         glibc systems.
36524
36525 2009-12-24  Bruno Haible  <bruno@clisp.org>
36526
36527         Refactor common macros used in tests.
36528         * tests/macros.h: New file.
36529         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36530         and/or <stdlib.h>, if appropriate.
36531         (ASSERT, SIZEOF): Remove macros.
36532         * tests/test-areadlink-with-size.c: Likewise.
36533         * tests/test-areadlinkat.c: Likewise.
36534         * tests/test-areadlinkat-with-size.c: Likewise.
36535         * tests/test-argmatch.c: Likewise.
36536         * tests/test-argv-iter.c: Likewise.
36537         * tests/test-array-mergesort.c: Likewise.
36538         * tests/test-array_list.c: Likewise.
36539         * tests/test-array_oset.c: Likewise.
36540         * tests/test-avltree_list.c: Likewise.
36541         * tests/test-avltree_oset.c: Likewise.
36542         * tests/test-avltreehash_list.c: Likewise.
36543         * tests/test-base64.c: Likewise.
36544         * tests/test-binary-io.c: Likewise.
36545         * tests/test-bitrotate.c: Likewise.
36546         * tests/test-btowc.c: Likewise.
36547         * tests/test-byteswap.c: Likewise.
36548         * tests/test-c-ctype.c: Likewise.
36549         * tests/test-c-stack.c: Likewise.
36550         * tests/test-c-strcasecmp.c: Likewise.
36551         * tests/test-c-strcasestr.c: Likewise.
36552         * tests/test-c-strncasecmp.c: Likewise.
36553         * tests/test-c-strstr.c: Likewise.
36554         * tests/test-canonicalize-lgpl.c: Likewise.
36555         * tests/test-canonicalize.c: Likewise.
36556         * tests/test-carray_list.c: Likewise.
36557         * tests/test-ceilf1.c: Likewise.
36558         * tests/test-ceilf2.c: Likewise.
36559         * tests/test-ceill.c: Likewise.
36560         * tests/test-chown.c: Likewise.
36561         * tests/test-cloexec.c: Likewise.
36562         * tests/test-copy-acl.c: Likewise.
36563         * tests/test-copy-file.c: Likewise.
36564         * tests/test-count-one-bits.c: Likewise.
36565         * tests/test-dprintf-posix.c: Likewise.
36566         * tests/test-dup2.c: Likewise.
36567         * tests/test-dup3.c: Likewise.
36568         * tests/test-duplocale.c: Likewise.
36569         * tests/test-fbufmode.c: Likewise.
36570         * tests/test-fchdir.c: Likewise.
36571         * tests/test-fchownat.c: Likewise.
36572         * tests/test-fcntl-safer.c: Likewise.
36573         * tests/test-fcntl.c: Likewise.
36574         * tests/test-fdopendir.c: Likewise.
36575         * tests/test-fdutimensat.c: Likewise.
36576         * tests/test-fflush2.c: Likewise.
36577         * tests/test-file-has-acl.c: Likewise.
36578         * tests/test-filevercmp.c: Likewise.
36579         * tests/test-flock.c: Likewise.
36580         * tests/test-floorf1.c: Likewise.
36581         * tests/test-floorf2.c: Likewise.
36582         * tests/test-floorl.c: Likewise.
36583         * tests/test-fnmatch.c: Likewise.
36584         * tests/test-fopen.h: Likewise.
36585         * tests/test-fpending.c: Likewise.
36586         * tests/test-fprintf-posix.c: Likewise.
36587         * tests/test-fpurge.c: Likewise.
36588         * tests/test-freadable.c: Likewise.
36589         * tests/test-freadahead.c: Likewise.
36590         * tests/test-freading.c: Likewise.
36591         * tests/test-freadptr.c: Likewise.
36592         * tests/test-freadptr2.c: Likewise.
36593         * tests/test-freadseek.c: Likewise.
36594         * tests/test-freopen.c: Likewise.
36595         * tests/test-frexp.c: Likewise.
36596         * tests/test-frexpl.c: Likewise.
36597         * tests/test-fseek.c: Likewise.
36598         * tests/test-fseeko.c: Likewise.
36599         * tests/test-fstatat.c: Likewise.
36600         * tests/test-fstrcmp.c: Likewise.
36601         * tests/test-fsync.c: Likewise.
36602         * tests/test-ftell.c: Likewise.
36603         * tests/test-ftello.c: Likewise.
36604         * tests/test-func.c: Likewise.
36605         * tests/test-futimens.c: Likewise.
36606         * tests/test-fwritable.c: Likewise.
36607         * tests/test-fwriting.c: Likewise.
36608         * tests/test-getcwd.c: Likewise.
36609         * tests/test-getdate.c: Likewise.
36610         * tests/test-getdelim.c: Likewise.
36611         * tests/test-getdtablesize.c: Likewise.
36612         * tests/test-getgroups.c: Likewise.
36613         * tests/test-getline.c: Likewise.
36614         * tests/test-getndelim2.c: Likewise.
36615         * tests/test-glob.c: Likewise.
36616         * tests/test-hash.c: Likewise.
36617         * tests/test-i-ring.c: Likewise.
36618         * tests/test-iconv-utf.c: Likewise.
36619         * tests/test-iconv.c: Likewise.
36620         * tests/test-idpriv-drop.c: Likewise.
36621         * tests/test-idpriv-droptemp.c: Likewise.
36622         * tests/test-inet_ntop.c: Likewise.
36623         * tests/test-inet_pton.c: Likewise.
36624         * tests/test-isblank.c: Likewise.
36625         * tests/test-isfinite.c: Likewise.
36626         * tests/test-isinf.c: Likewise.
36627         * tests/test-isnan.c: Likewise.
36628         * tests/test-isnand.h: Likewise.
36629         * tests/test-isnanf.h: Likewise.
36630         * tests/test-isnanl.h: Likewise.
36631         * tests/test-lchown.c: Likewise.
36632         * tests/test-ldexpl.c: Likewise.
36633         * tests/test-link.c: Likewise.
36634         * tests/test-linkat.c: Likewise.
36635         * tests/test-linked_list.c: Likewise.
36636         * tests/test-linkedhash_list.c: Likewise.
36637         * tests/test-localename.c: Likewise.
36638         * tests/test-lseek.c: Likewise.
36639         * tests/test-lstat.c: Likewise.
36640         * tests/test-mbmemcasecmp.c: Likewise.
36641         * tests/test-mbmemcasecoll.c: Likewise.
36642         * tests/test-mbrtowc.c: Likewise.
36643         * tests/test-mbscasecmp.c: Likewise.
36644         * tests/test-mbscasestr1.c: Likewise.
36645         * tests/test-mbscasestr2.c: Likewise.
36646         * tests/test-mbscasestr3.c: Likewise.
36647         * tests/test-mbscasestr4.c: Likewise.
36648         * tests/test-mbschr.c: Likewise.
36649         * tests/test-mbscspn.c: Likewise.
36650         * tests/test-mbsinit.c: Likewise.
36651         * tests/test-mbsncasecmp.c: Likewise.
36652         * tests/test-mbsnrtowcs.c: Likewise.
36653         * tests/test-mbspbrk.c: Likewise.
36654         * tests/test-mbspcasecmp.c: Likewise.
36655         * tests/test-mbsrchr.c: Likewise.
36656         * tests/test-mbsrtowcs.c: Likewise.
36657         * tests/test-mbsspn.c: Likewise.
36658         * tests/test-mbsstr1.c: Likewise.
36659         * tests/test-mbsstr2.c: Likewise.
36660         * tests/test-mbsstr3.c: Likewise.
36661         * tests/test-memchr.c: Likewise.
36662         * tests/test-memchr2.c: Likewise.
36663         * tests/test-memcmp.c: Likewise.
36664         * tests/test-memmem.c: Likewise.
36665         * tests/test-memrchr.c: Likewise.
36666         * tests/test-mkdir.c: Likewise.
36667         * tests/test-mkdirat.c: Likewise.
36668         * tests/test-mkfifo.c: Likewise.
36669         * tests/test-mkfifoat.c: Likewise.
36670         * tests/test-mknod.c: Likewise.
36671         * tests/test-nanosleep.c: Likewise.
36672         * tests/test-nl_langinfo.c: Likewise.
36673         * tests/test-obstack-printf.c: Likewise.
36674         * tests/test-open.c: Likewise.
36675         * tests/test-openat.c: Likewise.
36676         * tests/test-pipe-filter-gi1.c: Likewise.
36677         * tests/test-pipe-filter-gi2-main.c: Likewise.
36678         * tests/test-pipe-filter-ii1.c: Likewise.
36679         * tests/test-pipe-filter-ii2-main.c: Likewise.
36680         * tests/test-pipe2.c: Likewise.
36681         * tests/test-popen.h: Likewise.
36682         * tests/test-posixtm.c: Likewise.
36683         * tests/test-pread.c: Likewise.
36684         * tests/test-printf-frexp.c: Likewise.
36685         * tests/test-printf-frexpl.c: Likewise.
36686         * tests/test-printf-posix.c: Likewise.
36687         * tests/test-priv-set.c: Likewise.
36688         * tests/test-quotearg.c: Likewise.
36689         * tests/test-random_r.c: Likewise.
36690         * tests/test-rawmemchr.c: Likewise.
36691         * tests/test-rbtree_list.c: Likewise.
36692         * tests/test-rbtree_oset.c: Likewise.
36693         * tests/test-rbtreehash_list.c: Likewise.
36694         * tests/test-readlink.c: Likewise.
36695         * tests/test-remove.c: Likewise.
36696         * tests/test-rename.c: Likewise.
36697         * tests/test-renameat.c: Likewise.
36698         * tests/test-rmdir.c: Likewise.
36699         * tests/test-round1.c: Likewise.
36700         * tests/test-roundf1.c: Likewise.
36701         * tests/test-roundl.c: Likewise.
36702         * tests/test-safe-alloc.c: Likewise.
36703         * tests/test-sameacls.c: Likewise.
36704         * tests/test-set-mode-acl.c: Likewise.
36705         * tests/test-setenv.c: Likewise.
36706         * tests/test-sigaction.c: Likewise.
36707         * tests/test-signbit.c: Likewise.
36708         * tests/test-sleep.c: Likewise.
36709         * tests/test-snprintf-posix.c: Likewise.
36710         * tests/test-snprintf.c: Likewise.
36711         * tests/test-sprintf-posix.c: Likewise.
36712         * tests/test-stat-time.c: Likewise.
36713         * tests/test-stat.c: Likewise.
36714         * tests/test-strcasestr.c: Likewise.
36715         * tests/test-strchrnul.c: Likewise.
36716         * tests/test-strerror.c: Likewise.
36717         * tests/test-striconv.c: Likewise.
36718         * tests/test-striconveh.c: Likewise.
36719         * tests/test-striconveha.c: Likewise.
36720         * tests/test-strsignal.c: Likewise.
36721         * tests/test-strstr.c: Likewise.
36722         * tests/test-strtod.c: Likewise.
36723         * tests/test-strverscmp.c: Likewise.
36724         * tests/test-symlink.c: Likewise.
36725         * tests/test-symlinkat.c: Likewise.
36726         * tests/test-trunc1.c: Likewise.
36727         * tests/test-trunc2.c: Likewise.
36728         * tests/test-truncf1.c: Likewise.
36729         * tests/test-truncf2.c: Likewise.
36730         * tests/test-truncl.c: Likewise.
36731         * tests/test-uname.c: Likewise.
36732         * tests/test-unlink.c: Likewise.
36733         * tests/test-unlinkat.c: Likewise.
36734         * tests/test-unsetenv.c: Likewise.
36735         * tests/test-usleep.c: Likewise.
36736         * tests/test-utimens.c: Likewise.
36737         * tests/test-utimensat.c: Likewise.
36738         * tests/test-vasnprintf-posix.c: Likewise.
36739         * tests/test-vasnprintf-posix2.c: Likewise.
36740         * tests/test-vasnprintf.c: Likewise.
36741         * tests/test-vasprintf-posix.c: Likewise.
36742         * tests/test-vasprintf.c: Likewise.
36743         * tests/test-vdprintf-posix.c: Likewise.
36744         * tests/test-vfprintf-posix.c: Likewise.
36745         * tests/test-vprintf-posix.c: Likewise.
36746         * tests/test-vsnprintf-posix.c: Likewise.
36747         * tests/test-vsnprintf.c: Likewise.
36748         * tests/test-vsprintf-posix.c: Likewise.
36749         * tests/test-wcrtomb.c: Likewise.
36750         * tests/test-wcsnrtombs.c: Likewise.
36751         * tests/test-wcsrtombs.c: Likewise.
36752         * tests/test-wctype.c: Likewise.
36753         * tests/test-wcwidth.c: Likewise.
36754         * tests/test-xfprintf-posix.c: Likewise.
36755         * tests/test-xmemdup0.c: Likewise.
36756         * tests/test-xprintf-posix.c: Likewise.
36757         * tests/test-xvasprintf.c: Likewise.
36758         * tests/unicase/test-locale-language.c: Likewise.
36759         * tests/unicase/test-mapping-part1.h: Likewise.
36760         * tests/unicase/test-predicate-part1.h: Likewise.
36761         * tests/unicase/test-u8-casecmp.c: Likewise.
36762         * tests/unicase/test-u8-casecoll.c: Likewise.
36763         * tests/unicase/test-u8-casefold.c: Likewise.
36764         * tests/unicase/test-u8-is-cased.c: Likewise.
36765         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36766         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36767         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36768         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36769         * tests/unicase/test-u8-tolower.c: Likewise.
36770         * tests/unicase/test-u8-totitle.c: Likewise.
36771         * tests/unicase/test-u8-toupper.c: Likewise.
36772         * tests/unicase/test-u16-casecmp.c: Likewise.
36773         * tests/unicase/test-u16-casecoll.c: Likewise.
36774         * tests/unicase/test-u16-casefold.c: Likewise.
36775         * tests/unicase/test-u16-is-cased.c: Likewise.
36776         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36777         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36778         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36779         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36780         * tests/unicase/test-u16-tolower.c: Likewise.
36781         * tests/unicase/test-u16-totitle.c: Likewise.
36782         * tests/unicase/test-u16-toupper.c: Likewise.
36783         * tests/unicase/test-u32-casecmp.c: Likewise.
36784         * tests/unicase/test-u32-casecoll.c: Likewise.
36785         * tests/unicase/test-u32-casefold.c: Likewise.
36786         * tests/unicase/test-u32-is-cased.c: Likewise.
36787         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36788         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36789         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36790         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36791         * tests/unicase/test-u32-tolower.c: Likewise.
36792         * tests/unicase/test-u32-totitle.c: Likewise.
36793         * tests/unicase/test-u32-toupper.c: Likewise.
36794         * tests/unicase/test-ulc-casecmp.c: Likewise.
36795         * tests/unicase/test-ulc-casecoll.c: Likewise.
36796         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36797         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36798         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36799         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36800         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36801         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36802         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36803         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36804         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36805         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36806         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36807         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36808         * tests/unictype/test-bidi_byname.c: Likewise.
36809         * tests/unictype/test-bidi_name.c: Likewise.
36810         * tests/unictype/test-bidi_of.c: Likewise.
36811         * tests/unictype/test-bidi_test.c: Likewise.
36812         * tests/unictype/test-block_list.c: Likewise.
36813         * tests/unictype/test-block_of.c: Likewise.
36814         * tests/unictype/test-block_test.c: Likewise.
36815         * tests/unictype/test-categ_and.c: Likewise.
36816         * tests/unictype/test-categ_and_not.c: Likewise.
36817         * tests/unictype/test-categ_byname.c: Likewise.
36818         * tests/unictype/test-categ_name.c: Likewise.
36819         * tests/unictype/test-categ_none.c: Likewise.
36820         * tests/unictype/test-categ_of.c: Likewise.
36821         * tests/unictype/test-categ_or.c: Likewise.
36822         * tests/unictype/test-categ_test_withtable.c: Likewise.
36823         * tests/unictype/test-combining.c: Likewise.
36824         * tests/unictype/test-decdigit.c: Likewise.
36825         * tests/unictype/test-digit.c: Likewise.
36826         * tests/unictype/test-mirror.c: Likewise.
36827         * tests/unictype/test-numeric.c: Likewise.
36828         * tests/unictype/test-pr_byname.c: Likewise.
36829         * tests/unictype/test-pr_test.c: Likewise.
36830         * tests/unictype/test-predicate-part1.h: Likewise.
36831         * tests/unictype/test-scripts.c: Likewise.
36832         * tests/unictype/test-sy_c_ident.c: Likewise.
36833         * tests/unictype/test-sy_java_ident.c: Likewise.
36834         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36835         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36836         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36837         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36838         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36839         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36840         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36841         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36842         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36843         * tests/uninorm/test-compat-decomposition.c: Likewise.
36844         * tests/uninorm/test-composition.c: Likewise.
36845         * tests/uninorm/test-decomposing-form.c: Likewise.
36846         * tests/uninorm/test-decomposition.c: Likewise.
36847         * tests/uninorm/test-u8-nfc.c: Likewise.
36848         * tests/uninorm/test-u8-nfd.c: Likewise.
36849         * tests/uninorm/test-u8-nfkc.c: Likewise.
36850         * tests/uninorm/test-u8-nfkd.c: Likewise.
36851         * tests/uninorm/test-u8-normcmp.c: Likewise.
36852         * tests/uninorm/test-u8-normcoll.c: Likewise.
36853         * tests/uninorm/test-u16-nfc.c: Likewise.
36854         * tests/uninorm/test-u16-nfd.c: Likewise.
36855         * tests/uninorm/test-u16-nfkc.c: Likewise.
36856         * tests/uninorm/test-u16-nfkd.c: Likewise.
36857         * tests/uninorm/test-u16-normcmp.c: Likewise.
36858         * tests/uninorm/test-u16-normcoll.c: Likewise.
36859         * tests/uninorm/test-u32-nfc.c: Likewise.
36860         * tests/uninorm/test-u32-nfd.c: Likewise.
36861         * tests/uninorm/test-u32-nfkc.c: Likewise.
36862         * tests/uninorm/test-u32-nfkd.c: Likewise.
36863         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36864         * tests/uninorm/test-u32-normcmp.c: Likewise.
36865         * tests/uninorm/test-u32-normcoll.c: Likewise.
36866         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36867         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36868         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36869         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36870         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36871         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36872         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36873         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36874         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36875         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36876         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36877         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36878         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36879         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36880         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36881         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36882         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36883         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36884         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36885         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36886         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36887         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36888         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36889         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36890         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36891         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36892         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36893         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36894         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36895         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36896         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36897         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36898         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36899         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36900         * tests/uniwidth/test-u8-width.c: Likewise.
36901         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36902         * tests/uniwidth/test-u16-width.c: Likewise.
36903         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36904         * tests/uniwidth/test-u32-width.c: Likewise.
36905         * tests/uniwidth/test-uc_width.c: Likewise.
36906         * tests/uniwidth/test-uc_width2.c: Likewise.
36907         * modules/acl-tests (Files): Add tests/macros.h.
36908         * modules/areadlink-tests (Files): Likewise.
36909         * modules/areadlink-with-size-tests (Files): Likewise.
36910         * modules/areadlinkat-tests (Files): Likewise.
36911         * modules/areadlinkat-with-size-tests (Files): Likewise.
36912         * modules/argmatch-tests (Files): Likewise.
36913         * modules/argv-iter-tests (Files): Likewise.
36914         * modules/array-list-tests (Files): Likewise.
36915         * modules/array-mergesort-tests (Files): Likewise.
36916         * modules/array-oset-tests (Files): Likewise.
36917         * modules/avltree-list-tests (Files): Likewise.
36918         * modules/avltree-oset-tests (Files): Likewise.
36919         * modules/avltreehash-list-tests (Files): Likewise.
36920         * modules/base64-tests (Files): Likewise.
36921         * modules/binary-io-tests (Files): Likewise.
36922         * modules/bitrotate-tests (Files): Likewise.
36923         * modules/btowc-tests (Files): Likewise.
36924         * modules/byteswap-tests (Files): Likewise.
36925         * modules/c-ctype-tests (Files): Likewise.
36926         * modules/c-stack-tests (Files): Likewise.
36927         * modules/c-strcase-tests (Files): Likewise.
36928         * modules/c-strcasestr-tests (Files): Likewise.
36929         * modules/c-strstr-tests (Files): Likewise.
36930         * modules/canonicalize-lgpl-tests (Files): Likewise.
36931         * modules/canonicalize-tests (Files): Likewise.
36932         * modules/carray-list-tests (Files): Likewise.
36933         * modules/ceilf-tests (Files): Likewise.
36934         * modules/ceill-tests (Files): Likewise.
36935         * modules/chown-tests (Files): Likewise.
36936         * modules/cloexec-tests (Files): Likewise.
36937         * modules/copy-file-tests (Files): Likewise.
36938         * modules/count-one-bits-tests (Files): Likewise.
36939         * modules/dprintf-posix-tests (Files): Likewise.
36940         * modules/dup2-tests (Files): Likewise.
36941         * modules/dup3-tests (Files): Likewise.
36942         * modules/duplocale-tests (Files): Likewise.
36943         * modules/fbufmode-tests (Files): Likewise.
36944         * modules/fchdir-tests (Files): Likewise.
36945         * modules/fcntl-safer-tests (Files): Likewise.
36946         * modules/fcntl-tests (Files): Likewise.
36947         * modules/fdopendir-tests (Files): Likewise.
36948         * modules/fdutimensat-tests (Files): Likewise.
36949         * modules/fflush-tests (Files): Likewise.
36950         * modules/filevercmp-tests (Files): Likewise.
36951         * modules/flock-tests (Files): Likewise.
36952         * modules/floorf-tests (Files): Likewise.
36953         * modules/floorl-tests (Files): Likewise.
36954         * modules/fnmatch-tests (Files): Likewise.
36955         * modules/fopen-safer-tests (Files): Likewise.
36956         * modules/fopen-tests (Files): Likewise.
36957         * modules/fpending-tests (Files): Likewise.
36958         * modules/fprintf-posix-tests (Files): Likewise.
36959         * modules/fpurge-tests (Files): Likewise.
36960         * modules/freadable-tests (Files): Likewise.
36961         * modules/freadahead-tests (Files): Likewise.
36962         * modules/freading-tests (Files): Likewise.
36963         * modules/freadptr-tests (Files): Likewise.
36964         * modules/freadseek-tests (Files): Likewise.
36965         * modules/freopen-tests (Files): Likewise.
36966         * modules/frexp-nolibm-tests (Files): Likewise.
36967         * modules/frexp-tests (Files): Likewise.
36968         * modules/frexpl-nolibm-tests (Files): Likewise.
36969         * modules/frexpl-tests (Files): Likewise.
36970         * modules/fseek-tests (Files): Likewise.
36971         * modules/fseeko-tests (Files): Likewise.
36972         * modules/fstrcmp-tests (Files): Likewise.
36973         * modules/fsync-tests (Files): Likewise.
36974         * modules/ftell-tests (Files): Likewise.
36975         * modules/ftello-tests (Files): Likewise.
36976         * modules/func-tests (Files): Likewise.
36977         * modules/futimens-tests (Files): Likewise.
36978         * modules/fwritable-tests (Files): Likewise.
36979         * modules/fwriting-tests (Files): Likewise.
36980         * modules/getcwd-tests (Files): Likewise.
36981         * modules/getdate-tests (Files): Likewise.
36982         * modules/getdelim-tests (Files): Likewise.
36983         * modules/getdtablesize-tests (Files): Likewise.
36984         * modules/getgroups-tests (Files): Likewise.
36985         * modules/getline-tests (Files): Likewise.
36986         * modules/getndelim2-tests (Files): Likewise.
36987         * modules/glob-tests (Files): Likewise.
36988         * modules/hash-tests (Files): Likewise.
36989         * modules/i-ring-tests (Files): Likewise.
36990         * modules/iconv-tests (Files): Likewise.
36991         * modules/iconv_open-utf-tests (Files): Likewise.
36992         * modules/idpriv-drop-tests (Files): Likewise.
36993         * modules/idpriv-droptemp-tests (Files): Likewise.
36994         * modules/inet_ntop-tests (Files): Likewise.
36995         * modules/inet_pton-tests (Files): Likewise.
36996         * modules/isblank-tests (Files): Likewise.
36997         * modules/isfinite-tests (Files): Likewise.
36998         * modules/isinf-tests (Files): Likewise.
36999         * modules/isnan-tests (Files): Likewise.
37000         * modules/isnand-nolibm-tests (Files): Likewise.
37001         * modules/isnand-tests (Files): Likewise.
37002         * modules/isnanf-nolibm-tests (Files): Likewise.
37003         * modules/isnanf-tests (Files): Likewise.
37004         * modules/isnanl-nolibm-tests (Files): Likewise.
37005         * modules/isnanl-tests (Files): Likewise.
37006         * modules/lchown-tests (Files): Likewise.
37007         * modules/ldexpl-tests (Files): Likewise.
37008         * modules/link-tests (Files): Likewise.
37009         * modules/linkat-tests (Files): Likewise.
37010         * modules/linked-list-tests (Files): Likewise.
37011         * modules/linkedhash-list-tests (Files): Likewise.
37012         * modules/localename-tests (Files): Likewise.
37013         * modules/lseek-tests (Files): Likewise.
37014         * modules/lstat-tests (Files): Likewise.
37015         * modules/mbmemcasecmp-tests (Files): Likewise.
37016         * modules/mbmemcasecoll-tests (Files): Likewise.
37017         * modules/mbrtowc-tests (Files): Likewise.
37018         * modules/mbscasecmp-tests (Files): Likewise.
37019         * modules/mbscasestr-tests (Files): Likewise.
37020         * modules/mbschr-tests (Files): Likewise.
37021         * modules/mbscspn-tests (Files): Likewise.
37022         * modules/mbsinit-tests (Files): Likewise.
37023         * modules/mbsncasecmp-tests (Files): Likewise.
37024         * modules/mbsnrtowcs-tests (Files): Likewise.
37025         * modules/mbspbrk-tests (Files): Likewise.
37026         * modules/mbspcasecmp-tests (Files): Likewise.
37027         * modules/mbsrchr-tests (Files): Likewise.
37028         * modules/mbsrtowcs-tests (Files): Likewise.
37029         * modules/mbsspn-tests (Files): Likewise.
37030         * modules/mbsstr-tests (Files): Likewise.
37031         * modules/memchr-tests (Files): Likewise.
37032         * modules/memchr2-tests (Files): Likewise.
37033         * modules/memcmp-tests (Files): Likewise.
37034         * modules/memmem-tests (Files): Likewise.
37035         * modules/memrchr-tests (Files): Likewise.
37036         * modules/mkdir-tests (Files): Likewise.
37037         * modules/mkfifo-tests (Files): Likewise.
37038         * modules/mkfifoat-tests (Files): Likewise.
37039         * modules/mknod-tests (Files): Likewise.
37040         * modules/nanosleep-tests (Files): Likewise.
37041         * modules/nl_langinfo-tests (Files): Likewise.
37042         * modules/obstack-printf-tests (Files): Likewise.
37043         * modules/open-tests (Files): Likewise.
37044         * modules/openat-tests (Files): Likewise.
37045         * modules/pipe-filter-gi-tests (Files): Likewise.
37046         * modules/pipe-filter-ii-tests (Files): Likewise.
37047         * modules/pipe2-tests (Files): Likewise.
37048         * modules/popen-safer-tests (Files): Likewise.
37049         * modules/popen-tests (Files): Likewise.
37050         * modules/posixtm-tests (Files): Likewise.
37051         * modules/pread-tests (Files): Likewise.
37052         * modules/printf-frexp-tests (Files): Likewise.
37053         * modules/printf-frexpl-tests (Files): Likewise.
37054         * modules/printf-posix-tests (Files): Likewise.
37055         * modules/priv-set-tests (Files): Likewise.
37056         * modules/quotearg-tests (Files): Likewise.
37057         * modules/random_r-tests (Files): Likewise.
37058         * modules/rawmemchr-tests (Files): Likewise.
37059         * modules/rbtree-list-tests (Files): Likewise.
37060         * modules/rbtree-oset-tests (Files): Likewise.
37061         * modules/rbtreehash-list-tests (Files): Likewise.
37062         * modules/readlink-tests (Files): Likewise.
37063         * modules/remove-tests (Files): Likewise.
37064         * modules/rename-tests (Files): Likewise.
37065         * modules/renameat-tests (Files): Likewise.
37066         * modules/rmdir-tests (Files): Likewise.
37067         * modules/round-tests (Files): Likewise.
37068         * modules/roundf-tests (Files): Likewise.
37069         * modules/roundl-tests (Files): Likewise.
37070         * modules/safe-alloc-tests (Files): Likewise.
37071         * modules/setenv-tests (Files): Likewise.
37072         * modules/sigaction-tests (Files): Likewise.
37073         * modules/signbit-tests (Files): Likewise.
37074         * modules/sleep-tests (Files): Likewise.
37075         * modules/snprintf-posix-tests (Files): Likewise.
37076         * modules/snprintf-tests (Files): Likewise.
37077         * modules/sprintf-posix-tests (Files): Likewise.
37078         * modules/stat-tests (Files): Likewise.
37079         * modules/stat-time-tests (Files): Likewise.
37080         * modules/strcasestr-tests (Files): Likewise.
37081         * modules/strchrnul-tests (Files): Likewise.
37082         * modules/strerror-tests (Files): Likewise.
37083         * modules/striconv-tests (Files): Likewise.
37084         * modules/striconveh-tests (Files): Likewise.
37085         * modules/striconveha-tests (Files): Likewise.
37086         * modules/strsignal-tests (Files): Likewise.
37087         * modules/strstr-tests (Files): Likewise.
37088         * modules/strtod-tests (Files): Likewise.
37089         * modules/strverscmp-tests (Files): Likewise.
37090         * modules/symlink-tests (Files): Likewise.
37091         * modules/symlinkat-tests (Files): Likewise.
37092         * modules/trunc-tests (Files): Likewise.
37093         * modules/truncf-tests (Files): Likewise.
37094         * modules/truncl-tests (Files): Likewise.
37095         * modules/uname-tests (Files): Likewise.
37096         * modules/unicase/cased-tests (Files): Likewise.
37097         * modules/unicase/ignorable-tests (Files): Likewise.
37098         * modules/unicase/locale-language-tests (Files): Likewise.
37099         * modules/unicase/tolower-tests (Files): Likewise.
37100         * modules/unicase/totitle-tests (Files): Likewise.
37101         * modules/unicase/toupper-tests (Files): Likewise.
37102         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37103         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37104         * modules/unicase/u8-casefold-tests (Files): Likewise.
37105         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37106         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37107         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37108         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37109         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37110         * modules/unicase/u8-tolower-tests (Files): Likewise.
37111         * modules/unicase/u8-totitle-tests (Files): Likewise.
37112         * modules/unicase/u8-toupper-tests (Files): Likewise.
37113         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37114         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37115         * modules/unicase/u16-casefold-tests (Files): Likewise.
37116         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37117         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37118         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37119         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37120         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37121         * modules/unicase/u16-tolower-tests (Files): Likewise.
37122         * modules/unicase/u16-totitle-tests (Files): Likewise.
37123         * modules/unicase/u16-toupper-tests (Files): Likewise.
37124         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37125         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37126         * modules/unicase/u32-casefold-tests (Files): Likewise.
37127         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37128         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37129         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37130         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37131         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37132         * modules/unicase/u32-tolower-tests (Files): Likewise.
37133         * modules/unicase/u32-totitle-tests (Files): Likewise.
37134         * modules/unicase/u32-toupper-tests (Files): Likewise.
37135         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37136         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37137         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37138         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37139         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37140         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37141         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37142         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37143         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37144         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37145         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37146         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37147         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37148         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37149         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37150         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37151         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37152         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37153         * modules/unictype/block-list-tests (Files): Likewise.
37154         * modules/unictype/block-of-tests (Files): Likewise.
37155         * modules/unictype/block-test-tests (Files): Likewise.
37156         * modules/unictype/category-C-tests (Files): Likewise.
37157         * modules/unictype/category-Cc-tests (Files): Likewise.
37158         * modules/unictype/category-Cf-tests (Files): Likewise.
37159         * modules/unictype/category-Cn-tests (Files): Likewise.
37160         * modules/unictype/category-Co-tests (Files): Likewise.
37161         * modules/unictype/category-Cs-tests (Files): Likewise.
37162         * modules/unictype/category-L-tests (Files): Likewise.
37163         * modules/unictype/category-Ll-tests (Files): Likewise.
37164         * modules/unictype/category-Lm-tests (Files): Likewise.
37165         * modules/unictype/category-Lo-tests (Files): Likewise.
37166         * modules/unictype/category-Lt-tests (Files): Likewise.
37167         * modules/unictype/category-Lu-tests (Files): Likewise.
37168         * modules/unictype/category-M-tests (Files): Likewise.
37169         * modules/unictype/category-Mc-tests (Files): Likewise.
37170         * modules/unictype/category-Me-tests (Files): Likewise.
37171         * modules/unictype/category-Mn-tests (Files): Likewise.
37172         * modules/unictype/category-N-tests (Files): Likewise.
37173         * modules/unictype/category-Nd-tests (Files): Likewise.
37174         * modules/unictype/category-Nl-tests (Files): Likewise.
37175         * modules/unictype/category-No-tests (Files): Likewise.
37176         * modules/unictype/category-P-tests (Files): Likewise.
37177         * modules/unictype/category-Pc-tests (Files): Likewise.
37178         * modules/unictype/category-Pd-tests (Files): Likewise.
37179         * modules/unictype/category-Pe-tests (Files): Likewise.
37180         * modules/unictype/category-Pf-tests (Files): Likewise.
37181         * modules/unictype/category-Pi-tests (Files): Likewise.
37182         * modules/unictype/category-Po-tests (Files): Likewise.
37183         * modules/unictype/category-Ps-tests (Files): Likewise.
37184         * modules/unictype/category-S-tests (Files): Likewise.
37185         * modules/unictype/category-Sc-tests (Files): Likewise.
37186         * modules/unictype/category-Sk-tests (Files): Likewise.
37187         * modules/unictype/category-Sm-tests (Files): Likewise.
37188         * modules/unictype/category-So-tests (Files): Likewise.
37189         * modules/unictype/category-Z-tests (Files): Likewise.
37190         * modules/unictype/category-Zl-tests (Files): Likewise.
37191         * modules/unictype/category-Zp-tests (Files): Likewise.
37192         * modules/unictype/category-Zs-tests (Files): Likewise.
37193         * modules/unictype/category-and-not-tests (Files): Likewise.
37194         * modules/unictype/category-and-tests (Files): Likewise.
37195         * modules/unictype/category-byname-tests (Files): Likewise.
37196         * modules/unictype/category-name-tests (Files): Likewise.
37197         * modules/unictype/category-none-tests (Files): Likewise.
37198         * modules/unictype/category-of-tests (Files): Likewise.
37199         * modules/unictype/category-or-tests (Files): Likewise.
37200         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37201         * modules/unictype/combining-class-tests (Files): Likewise.
37202         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37203         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37204         * modules/unictype/ctype-blank-tests (Files): Likewise.
37205         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37206         * modules/unictype/ctype-digit-tests (Files): Likewise.
37207         * modules/unictype/ctype-graph-tests (Files): Likewise.
37208         * modules/unictype/ctype-lower-tests (Files): Likewise.
37209         * modules/unictype/ctype-print-tests (Files): Likewise.
37210         * modules/unictype/ctype-punct-tests (Files): Likewise.
37211         * modules/unictype/ctype-space-tests (Files): Likewise.
37212         * modules/unictype/ctype-upper-tests (Files): Likewise.
37213         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37214         * modules/unictype/decimal-digit-tests (Files): Likewise.
37215         * modules/unictype/digit-tests (Files): Likewise.
37216         * modules/unictype/mirror-tests (Files): Likewise.
37217         * modules/unictype/numeric-tests (Files): Likewise.
37218         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37219         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37220         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37221         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37222         Likewise.
37223         * modules/unictype/property-bidi-block-separator-tests (Files):
37224         Likewise.
37225         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37226         Likewise.
37227         * modules/unictype/property-bidi-common-separator-tests (Files):
37228         Likewise.
37229         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37230         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37231         Likewise.
37232         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37233         Likewise.
37234         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37235         Likewise.
37236         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37237         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37238         Likewise.
37239         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37240         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37241         Likewise.
37242         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37243         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37244         * modules/unictype/property-bidi-segment-separator-tests (Files):
37245         Likewise.
37246         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37247         * modules/unictype/property-byname-tests (Files): Likewise.
37248         * modules/unictype/property-combining-tests (Files): Likewise.
37249         * modules/unictype/property-composite-tests (Files): Likewise.
37250         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37251         * modules/unictype/property-dash-tests (Files): Likewise.
37252         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37253         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37254         Likewise.
37255         * modules/unictype/property-deprecated-tests (Files): Likewise.
37256         * modules/unictype/property-diacritic-tests (Files): Likewise.
37257         * modules/unictype/property-extender-tests (Files): Likewise.
37258         * modules/unictype/property-format-control-tests (Files): Likewise.
37259         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
37260         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
37261         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
37262         * modules/unictype/property-hex-digit-tests (Files): Likewise.
37263         * modules/unictype/property-hyphen-tests (Files): Likewise.
37264         * modules/unictype/property-id-continue-tests (Files): Likewise.
37265         * modules/unictype/property-id-start-tests (Files): Likewise.
37266         * modules/unictype/property-ideographic-tests (Files): Likewise.
37267         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37268         * modules/unictype/property-ids-trinary-operator-tests (Files):
37269         Likewise.
37270         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37271         * modules/unictype/property-iso-control-tests (Files): Likewise.
37272         * modules/unictype/property-join-control-tests (Files): Likewise.
37273         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37274         * modules/unictype/property-line-separator-tests (Files): Likewise.
37275         * modules/unictype/property-logical-order-exception-tests (Files):
37276         Likewise.
37277         * modules/unictype/property-lowercase-tests (Files): Likewise.
37278         * modules/unictype/property-math-tests (Files): Likewise.
37279         * modules/unictype/property-non-break-tests (Files): Likewise.
37280         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37281         * modules/unictype/property-numeric-tests (Files): Likewise.
37282         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37283         * modules/unictype/property-other-default-ignorable-code-point-tests
37284         (Files): Likewise.
37285         * modules/unictype/property-other-grapheme-extend-tests (Files):
37286         Likewise.
37287         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37288         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37289         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37290         * modules/unictype/property-other-math-tests (Files): Likewise.
37291         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37292         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37293         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37294         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37295         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37296         * modules/unictype/property-private-use-tests (Files): Likewise.
37297         * modules/unictype/property-punctuation-tests (Files): Likewise.
37298         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37299         * modules/unictype/property-radical-tests (Files): Likewise.
37300         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37301         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37302         * modules/unictype/property-space-tests (Files): Likewise.
37303         * modules/unictype/property-terminal-punctuation-tests (Files):
37304         Likewise.
37305         * modules/unictype/property-test-tests (Files): Likewise.
37306         * modules/unictype/property-titlecase-tests (Files): Likewise.
37307         * modules/unictype/property-unassigned-code-value-tests (Files):
37308         Likewise.
37309         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37310         * modules/unictype/property-uppercase-tests (Files): Likewise.
37311         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37312         * modules/unictype/property-white-space-tests (Files): Likewise.
37313         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37314         * modules/unictype/property-xid-start-tests (Files): Likewise.
37315         * modules/unictype/property-zero-width-tests (Files): Likewise.
37316         * modules/unictype/scripts-tests (Files): Likewise.
37317         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37318         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37319         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37320         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37321         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37322         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37323         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37324         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37325         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37326         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37327         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37328         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
37329         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
37330         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
37331         * modules/uninorm/composition-tests (Files): Likewise.
37332         * modules/uninorm/decomposing-form-tests (Files): Likewise.
37333         * modules/uninorm/decomposition-tests (Files): Likewise.
37334         * modules/uninorm/filter-tests (Files): Likewise.
37335         * modules/uninorm/nfc-tests (Files): Likewise.
37336         * modules/uninorm/nfd-tests (Files): Likewise.
37337         * modules/uninorm/nfkc-tests (Files): Likewise.
37338         * modules/uninorm/nfkd-tests (Files): Likewise.
37339         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
37340         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
37341         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
37342         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
37343         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
37344         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
37345         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
37346         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37347         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
37348         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
37349         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
37350         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
37351         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37352         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
37353         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
37354         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
37355         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
37356         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37357         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
37358         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
37359         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
37360         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
37361         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37362         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
37363         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
37364         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
37365         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
37366         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
37367         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
37368         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
37369         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
37370         * modules/uniwidth/u8-width-tests (Files): Likewise.
37371         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
37372         * modules/uniwidth/u16-width-tests (Files): Likewise.
37373         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
37374         * modules/uniwidth/u32-width-tests (Files): Likewise.
37375         * modules/uniwidth/width-tests (Files): Likewise.
37376         * modules/unlink-tests (Files): Likewise.
37377         * modules/unsetenv-tests (Files): Likewise.
37378         * modules/usleep-tests (Files): Likewise.
37379         * modules/utimens-tests (Files): Likewise.
37380         * modules/utimensat-tests (Files): Likewise.
37381         * modules/vasnprintf-posix-tests (Files): Likewise.
37382         * modules/vasnprintf-tests (Files): Likewise.
37383         * modules/vasprintf-posix-tests (Files): Likewise.
37384         * modules/vasprintf-tests (Files): Likewise.
37385         * modules/vdprintf-posix-tests (Files): Likewise.
37386         * modules/vfprintf-posix-tests (Files): Likewise.
37387         * modules/vprintf-posix-tests (Files): Likewise.
37388         * modules/vsnprintf-posix-tests (Files): Likewise.
37389         * modules/vsnprintf-tests (Files): Likewise.
37390         * modules/vsprintf-posix-tests (Files): Likewise.
37391         * modules/wcrtomb-tests (Files): Likewise.
37392         * modules/wcsnrtombs-tests (Files): Likewise.
37393         * modules/wcsrtombs-tests (Files): Likewise.
37394         * modules/wctype-tests (Files): Likewise.
37395         * modules/wcwidth-tests (Files): Likewise.
37396         * modules/xmemdup0-tests (Files): Likewise.
37397         * modules/xprintf-posix-tests (Files): Likewise.
37398         * modules/xvasprintf-tests (Files): Likewise.
37399
37400 2009-12-24  Eric Blake  <ebb9@byu.net>
37401
37402         test-nanosleep: fix typo
37403         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37404         patch.
37405         Reported by Bruno Haible.
37406
37407 2009-12-24  Bruno Haible  <bruno@clisp.org>
37408
37409         Reduce namespace pollution on glibc systems.
37410         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
37411         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
37412         systems.
37413         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
37414         <getopt.h> on glibc systems.
37415         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
37416         systems.
37417         * lib/fcntl.c: Include <unistd.h> here instead.
37418
37419 2009-12-24  Bruno Haible  <bruno@clisp.org>
37420
37421         * lib/stdlib.in.h (includes): Fix typo in today's commit.
37422
37423 2009-12-24  Eric Blake  <ebb9@byu.net>
37424
37425         tests: add signature checks
37426         * tests/signature.h (SIGNATURE_CHECK): New file.
37427         * modules/atexit-tests (Files): Use it.
37428         * modules/btowc-tests (Files): Likewise.
37429         * modules/canonicalize-lgpl-tests (Files): Likewise.
37430         * modules/ceilf-tests (Files): Likewise.
37431         * modules/ceill-tests (Files): Likewise.
37432         * modules/chown-tests (Files): Likewise.
37433         * modules/dprintf-posix-tests (Files): Likewise.
37434         * modules/dup2-tests (Files): Likewise.
37435         * modules/dup3-tests (Files): Likewise.
37436         * modules/duplocale-tests (Files): Likewise.
37437         * modules/fchdir-tests (Files): Likewise.
37438         * modules/fcntl-tests (Files): Likewise.
37439         * modules/fdopendir-tests (Files): Likewise.
37440         * modules/fflush-tests (Files): Likewise.
37441         * modules/flock-tests (Files): Likewise.
37442         * modules/floorf-tests (Files): Likewise.
37443         * modules/floorl-tests (Files): Likewise.
37444         * modules/fnmatch-tests (Files): Likewise.
37445         * modules/fopen-tests (Files): Likewise.
37446         * modules/fprintf-posix-tests (Files): Likewise.
37447         * modules/freopen-tests (Files): Likewise.
37448         * modules/frexp-nolibm-tests (Files): Likewise.
37449         * modules/frexp-tests (Files): Likewise.
37450         * modules/frexpl-nolibm-tests (Files): Likewise.
37451         * modules/frexpl-tests (Files): Likewise.
37452         * modules/fseek-tests (Files): Likewise.
37453         * modules/fseeko-tests (Files): Likewise.
37454         * modules/fsync-tests (Files): Likewise.
37455         * modules/ftell-tests (Files): Likewise.
37456         * modules/ftello-tests (Files): Likewise.
37457         * modules/futimens-tests (Files): Likewise.
37458         * modules/getaddrinfo-tests (Files): Likewise.
37459         * modules/getcwd-tests (Files): Likewise.
37460         * modules/getdelim-tests (Files): Likewise.
37461         * modules/getdtablesize-tests (Files): Likewise.
37462         * modules/getgroups-tests (Files): Likewise.
37463         * modules/gethostname-tests (Files): Likewise.
37464         * modules/getline-tests (Files): Likewise.
37465         * modules/getopt-posix-tests (Files): Likewise.
37466         * modules/gettimeofday-tests (Files): Likewise.
37467         * modules/glob-tests (Files): Likewise.
37468         * modules/iconv-tests (Files): Likewise.
37469         * modules/inet_ntop-tests (Files): Likewise.
37470         * modules/inet_pton-tests (Files): Likewise.
37471         * modules/isblank-tests (Files): Likewise.
37472         * modules/lchown-tests (Files): Likewise.
37473         * modules/ldexpl-tests (Files): Likewise.
37474         * modules/link-tests (Files): Likewise.
37475         * modules/linkat-tests (Files): Likewise.
37476         * modules/lseek-tests (Files): Likewise.
37477         * modules/lstat-tests (Files): Likewise.
37478         * modules/mbrtowc-tests (Files): Likewise.
37479         * modules/mbsinit-tests (Files): Likewise.
37480         * modules/mbsnrtowcs-tests (Files): Likewise.
37481         * modules/mbsrtowcs-tests (Files): Likewise.
37482         * modules/memchr-tests (Files): Likewise.
37483         * modules/memcmp-tests (Files): Likewise.
37484         * modules/memmem-tests (Files): Likewise.
37485         * modules/memrchr-tests (Files): Likewise.
37486         * modules/mkdir-tests (Files): Likewise.
37487         * modules/mkfifo-tests (Files): Likewise.
37488         * modules/mkfifoat-tests (Files): Likewise.
37489         * modules/mknod-tests (Files): Likewise.
37490         * modules/nanosleep-tests (Files): Likewise.
37491         * modules/nl_langinfo-tests (Files): Likewise.
37492         * modules/obstack-printf-tests (Files): Likewise.
37493         * modules/open-tests (Files): Likewise.
37494         * modules/openat-tests (Files): Likewise.
37495         * modules/perror-tests (Files): Likewise.
37496         * modules/pipe2-tests (Files): Likewise.
37497         * modules/poll-tests (Files): Likewise.
37498         * modules/popen-tests (Files): Likewise.
37499         * modules/posix_spawn-tests (Files): Likewise.
37500         * modules/posix_spawnp-tests (Files): Likewise.
37501         * modules/pread-tests (Files): Likewise.
37502         * modules/printf-posix-tests (Files): Likewise.
37503         * modules/pty-tests (Files): Likewise.
37504         * modules/random_r-tests (Files): Likewise.
37505         * modules/rawmemchr-tests (Files): Likewise.
37506         * modules/readlink-tests (Files): Likewise.
37507         * modules/remove-tests (Files): Likewise.
37508         * modules/rename-tests (Files): Likewise.
37509         * modules/renameat-tests (Files): Likewise.
37510         * modules/rmdir-tests (Files): Likewise.
37511         * modules/round-tests (Files): Likewise.
37512         * modules/roundf-tests (Files): Likewise.
37513         * modules/roundl-tests (Files): Likewise.
37514         * modules/select-tests (Files): Likewise.
37515         * modules/setenv-tests (Files): Likewise.
37516         * modules/sigaction-tests (Files): Likewise.
37517         * modules/sleep-tests (Files): Likewise.
37518         * modules/snprintf-posix-tests (Files): Likewise.
37519         * modules/snprintf-tests (Files): Likewise.
37520         * modules/sprintf-posix-tests (Files): Likewise.
37521         * modules/stat-tests (Files): Likewise.
37522         * modules/strcasestr-tests (Files): Likewise.
37523         * modules/strchrnul-tests (Files): Likewise.
37524         * modules/strerror-tests (Files): Likewise.
37525         * modules/strsignal-tests (Files): Likewise.
37526         * modules/strstr-tests (Files): Likewise.
37527         * modules/strtod-tests (Files): Likewise.
37528         * modules/strverscmp-tests (Files): Likewise.
37529         * modules/symlink-tests (Files): Likewise.
37530         * modules/symlinkat-tests (Files): Likewise.
37531         * modules/times-tests (Files): Likewise.
37532         * modules/trunc-tests (Files): Likewise.
37533         * modules/truncf-tests (Files): Likewise.
37534         * modules/truncl-tests (Files): Likewise.
37535         * modules/tsearch-tests (Files): Likewise.
37536         * modules/uname-tests (Files): Likewise.
37537         * modules/unlink-tests (Files): Likewise.
37538         * modules/unsetenv-tests (Files): Likewise.
37539         * modules/usleep-tests (Files): Likewise.
37540         * modules/utimensat-tests (Files): Likewise.
37541         * modules/vasprintf-tests (Files): Likewise.
37542         * modules/vdprintf-posix-tests (Files): Likewise.
37543         * modules/vfprintf-posix-tests (Files): Likewise.
37544         * modules/vprintf-posix-tests (Files): Likewise.
37545         * modules/vsnprintf-posix-tests (Files): Likewise.
37546         * modules/vsnprintf-tests (Files): Likewise.
37547         * modules/vsprintf-posix-tests (Files): Likewise.
37548         * modules/wcrtomb-tests (Files): Likewise.
37549         * modules/wcsnrtombs-tests (Files): Likewise.
37550         * modules/wcsrtombs-tests (Files): Likewise.
37551         * modules/wcwidth-tests (Files): Likewise.
37552         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37553         * tests/test-isinf.c (isinf): Likewise.
37554         * tests/test-isnan.c (isnan): Likewise.
37555         * tests/test-signbit.c (signbit): Likewise.
37556         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37557         declaration, either as macro or with correct signature.
37558         (select): Ensure function under test is declared with correct
37559         signature in correct header.
37560         * tests/test-atexit.c (atexit): Likewise.
37561         * tests/test-btowc.c (btowc): Likewise.
37562         * tests/test-canonicalize-lgpl.c (realpath)
37563         (canonicalize_file_name): Likewise.
37564         * tests/test-ceilf1.c (ceilf): Likewise.
37565         * tests/test-ceill.c (ceill): Likewise.
37566         * tests/test-chown.c (chown): Likewise.
37567         * tests/test-dprintf-posix.c (dprintf): Likewise.
37568         * tests/test-dup2.c (dup2): Likewise.
37569         * tests/test-dup3.c (dup3): Likewise.
37570         * tests/test-duplocale.c (duplocale): Likewise.
37571         * tests/test-fchdir.c (fchdir): Likewise.
37572         * tests/test-fchownat.c (fchownat): Likewise.
37573         * tests/test-fcntl.c (fcntl): Likewise.
37574         * tests/test-fdopendir.c (fdopendir): Likewise.
37575         * tests/test-fflush.c (fflush): Likewise.
37576         * tests/test-flock.c (flock): Likewise.
37577         * tests/test-floorf1.c (floorf): Likewise.
37578         * tests/test-floorl.c (floorl): Likewise.
37579         * tests/test-fnmatch.c (fnmatch): Likewise.
37580         * tests/test-fopen.c (fopen): Likewise.
37581         * tests/test-fprintf-posix.c (fprintf): Likewise.
37582         * tests/test-freopen.c (freopen): Likewise.
37583         * tests/test-frexp.c (frexp): Likewise.
37584         * tests/test-frexpl.c (frexpl): Likewise.
37585         * tests/test-fseek.c (fseek): Likewise.
37586         * tests/test-fseeko.c (fseeko): Likewise.
37587         * tests/test-fstatat.c (fstatat): Likewise.
37588         * tests/test-fsync.c (fsync): Likewise.
37589         * tests/test-ftell.c (ftell): Likewise.
37590         * tests/test-ftello.c (ftello): Likewise.
37591         * tests/test-futimens.c (futimens): Likewise.
37592         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37593         (gai_strerror): Likewise.
37594         * tests/test-getcwd.c (getcwd): Likewise.
37595         * tests/test-getdelim.c (getdelim): Likewise.
37596         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37597         * tests/test-getgroups.c (getgroups): Likewise.
37598         * tests/test-gethostname.c (gethostname): Likewise.
37599         * tests/test-getline.c (getline): Likewise.
37600         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37601         Likewise.
37602         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37603         * tests/test-glob.c (glob, globfree): Likewise.
37604         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37605         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37606         * tests/test-inet_pton.c (inet_pton): Likewise.
37607         * tests/test-isblank.c (isblank): Likewise.
37608         * tests/test-lchown.c (lchown): Likewise.
37609         * tests/test-ldexpl.c (ldexpl): Likewise.
37610         * tests/test-link.c (link): Likewise.
37611         * tests/test-linkat.c (linkat): Likewise.
37612         * tests/test-lseek.c (lseek): Likewise.
37613         * tests/test-lstat.c (lstat): Likewise.
37614         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37615         * tests/test-mbsinit.c (mbsinit): Likewise.
37616         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37617         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37618         * tests/test-memchr.c (memchr): Likewise.
37619         * tests/test-memcmp.c (memcmp): Likewise.
37620         * tests/test-memmem.c (memmem): Likewise.
37621         * tests/test-memrchr.c (memrchr): Likewise.
37622         * tests/test-mkdir.c (mkdir): Likewise.
37623         * tests/test-mkdirat.c (mkdirat): Likewise.
37624         * tests/test-mkfifo.c (mkfifo): Likewise.
37625         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37626         * tests/test-mknod.c (mknod): Likewise.
37627         * tests/test-nanosleep.c (nanosleep): Likewise.
37628         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37629         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37630         Likewise.
37631         * tests/test-open.c (open): Likewise.
37632         * tests/test-openat.c (openat): Likewise.
37633         * tests/test-perror.c (perror): Likewise.
37634         * tests/test-pipe2.c (pipe2): Likewise.
37635         * tests/test-poll.c (poll): Likewise.
37636         * tests/test-popen.c (popen, pclose): Likewise.
37637         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37638         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37639         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37640         (posix_spawn_file_actions_destroy)
37641         (posix_spawn_file_actions_addclose)
37642         (posix_spawn_file_actions_addopen)
37643         (posix_spawn_file_actions_adddup2): Likewise.
37644         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37645         * tests/test-pread.c (pread): Likewise.
37646         * tests/test-printf-posix.c (printf): Likewise.
37647         * tests/test-pty.c (openpty, forkpty): Likewise.
37648         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37649         (random_r): Likewise.
37650         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37651         * tests/test-readlink.c (readlink): Likewise.
37652         * tests/test-remove.c (remove): Likewise.
37653         * tests/test-rename.c (rename): Likewise.
37654         * tests/test-renameat.c (renameat): Likewise.
37655         * tests/test-rmdir.c (rmdir): Likewise.
37656         * tests/test-round1.c (round): Likewise.
37657         * tests/test-roundf1.c (roundf): Likewise.
37658         * tests/test-roundl.c (roundl): Likewise.
37659         * tests/test-setenv.c (setenv): Likewise.
37660         * tests/test-sigaction.c (sigaction): Likewise.
37661         * tests/test-sleep.c (sleep): Likewise.
37662         * tests/test-snprintf.c (snprintf): Likewise.
37663         * tests/test-sprintf-posix.c (sprintf): Likewise.
37664         * tests/test-stat.c (stat): Likewise.
37665         * tests/test-stpncpy.c (stpncpy): Likewise.
37666         * tests/test-strcasestr.c (strcasestr): Likewise.
37667         * tests/test-strchrnul.c (strchrnul): Likewise.
37668         * tests/test-strerror.c (strerror): Likewise.
37669         * tests/test-strsignal.c (strsignal): Likewise.
37670         * tests/test-strstr.c (strstr): Likewise.
37671         * tests/test-strtod.c (strtod): Likewise.
37672         * tests/test-strverscmp.c (strverscmp): Likewise.
37673         * tests/test-symlink.c (symlink): Likewise.
37674         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37675         * tests/test-times.c (times): Likewise.
37676         * tests/test-trunc1.c (trunc): Likewise.
37677         * tests/test-truncf1.c (truncf): Likewise.
37678         * tests/test-truncl.c (truncl): Likewise.
37679         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37680         Likewise.
37681         * tests/test-uname.c (uname): Likewise.
37682         * tests/test-unlink.c (unlink): Likewise.
37683         * tests/test-unlinkat.c (unlinkat): Likewise.
37684         * tests/test-unsetenv.c (unsetenv): Likewise.
37685         * tests/test-usleep.c (usleep): Likewise.
37686         * tests/test-utimensat.c (utimensat): Likewise.
37687         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37688         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37689         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37690         * tests/test-vprintf-posix.c (vprintf): Likewise.
37691         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37692         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37693         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37694         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37695         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37696         * tests/test-wcwidth.c (wcwidth): Likewise.
37697
37698         build: pull in conditional headers during GNULIB_POSIXCHECK
37699         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37700         definitions from any conditionally-included headers.
37701         * lib/stdlib.in.h (includes): Likewise.
37702         * lib/unistd.in.h (includes): Likewise.
37703
37704 2009-12-24  Bruno Haible  <bruno@clisp.org>
37705
37706         * tests/test-argv-iter.c: Include header file being tested immediately
37707         after config.h.
37708         * tests/test-base64.c: Likewise.
37709         * tests/test-flock.c: Likewise.
37710         * tests/test-fsync.c: Likewise.
37711         * tests/test-getdate.c: Likewise.
37712         * tests/test-getndelim2.c: Likewise.
37713         * tests/test-isfinite.c: Likewise.
37714         * tests/test-isinf.c: Likewise.
37715         * tests/test-strerror.c: Likewise.
37716         * tests/test-strsignal.c: Likewise.
37717
37718 2009-12-23  Eric Blake  <ebb9@byu.net>
37719
37720         unistd: work around cygwin bug
37721         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37722         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37723         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37724
37725 2009-12-23  Bruno Haible  <bruno@clisp.org>
37726
37727         localename: More tests.
37728         * tests/test-localename.c (SIZEOF): New macro.
37729         (categories): New variable.
37730         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37731         test_locale_name_default): Add test w.r.t. thread locale.
37732         (test_locale_name_thread): New function.
37733         (main): Invoke it.
37734
37735         localename: Make aware of thread locale.
37736         * lib/localename.h (gl_locale_name_thread): New declaration.
37737         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37738         behaviour with respect to thread locale.
37739         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37740         <langinfo.h>, glthread/lock.h.
37741         (SIZE_BITS): New macro.
37742         (string_hash): New function.
37743         (struct hash_node): New type.
37744         (HASH_TABLE_SIZE): New macro.
37745         (struniq_hash_table, struniq_lock): New variables.
37746         (struniq): New function.
37747         (gl_locale_name_thread): New function.
37748         (gl_locale_name): Invoke it.
37749         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37750         * modules/localename (Depends-on): Add lock.
37751         Reported by Mike Gran <spk121@yahoo.com>.
37752
37753 2009-12-23  Eric Blake  <ebb9@byu.net>
37754
37755         va-args: new module
37756         * modules/va-args: New file.
37757         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37758         * MODULES.html.sh (Core language properties): Mention it.
37759
37760         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37761         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37762         named alias for __attribute__((__unused__)).
37763         * lib/chown.c: Update client.
37764         * lib/fchmodat.c: Likewise.
37765         * lib/fts.c: Likewise.
37766         * lib/getdate.y: Likewise.
37767         * lib/getgroups.c: Likewise.
37768         * lib/getopt.c: Likewise.
37769         * lib/getugroups.c: Likewise.
37770         * lib/mkdir.c: Likewise.
37771         * lib/mkfifo.c: Likewise.
37772         * lib/mkfifoat.c: Likewise.
37773         * lib/mknod.c: Likewise.
37774         * lib/mknodat.c: Likewise.
37775         * lib/readlink.c: Likewise.
37776         * lib/se-context.in.h: Likewise.
37777         * lib/se-selinux.in.h: Likewise.
37778         * lib/sockets.c: Likewise.
37779         * lib/symlink.c: Likewise.
37780         * lib/symlinkat.c: Likewise.
37781         * lib/unicodeio.c: Likewise.
37782         * lib/unistr.h: Likewise.
37783         * tests/test-areadlink.c: Likewise.
37784         * tests/test-areadlinkat.c: Likewise.
37785         * tests/test-filenamecat.c: Likewise.
37786         * tests/test-fseeko.c: Likewise.
37787         * tests/test-ftello.c: Likewise.
37788         * tests/test-getdate.c: Likewise.
37789         * tests/test-getgroups.c: Likewise.
37790         * tests/test-gethostname.c: Likewise.
37791         * tests/test-quotearg.c: Likewise.
37792         * tests/test-version-etc.c: Likewise.
37793         * tests/test-xalloc-die.c: Likewise.
37794         * tests/test-xfprintf-posix.c: Likewise.
37795         * tests/test-xprintf-posix.c: Likewise.
37796         * tests/test-xvasprintf.c: Likewise.
37797
37798         tests: avoid compiler warnings
37799         * tests/test-fcntl.c (main): Delete unused parameters.
37800         * tests/test-freopen-safer.c (main): Likewise.
37801         * tests/test-xalloc-die.c (main): Mark unused parameters.
37802         * tests/test-fseeko.c (main): Likewise.
37803         * tests/test-ftello.c (main): Likewise.
37804         * tests/test-nanosleep.c (main): Avoid declaration warning.
37805         * tests/test-sleep.c (main): Likewise.
37806         * tests/test-unsetenv.c (main): Silence warning about string
37807         literal.
37808         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37809
37810 2009-12-23  Bruno Haible  <bruno@clisp.org>
37811
37812         * tests/test-localename.c (test_locale_name): New function, extracted
37813         from main. Also test mixed situations.
37814         (test_locale_name_posix, test_locale_name_environ,
37815         test_locale_name_default): New functions.
37816         (main): Invoke them all.
37817         * modules/localename-tests (configure.ac): Test for newlocale.
37818
37819 2009-12-23  Bruno Haible  <bruno@clisp.org>
37820
37821         unistd: Ensure getcwd gets declared before being overridden.
37822         * lib/unistd.in.h: Conditionally include <io.h>.
37823
37824 2009-12-22  Bruno Haible  <bruno@clisp.org>
37825
37826         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37827         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37828         (gl_WCHAR_H): Invoke it.
37829         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37830         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37831         Reported by Karl Berry <karl@freefriends.org>.
37832
37833 2009-12-22  Eric Blake  <ebb9@byu.net>
37834
37835         math, unistd: avoid redundant includes
37836         * lib/math.in.h (isnan): No need to re-include <math.h>.
37837         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37838
37839         getsubopt: work around cygwin bug
37840         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37841         avoid conflicting with system getsubopt.
37842         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37843         bug.
37844
37845         getopt: synchronize from glibc
37846         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37847         parameter order.  Adjust all callers.
37848         (_getopt_internal_r, main): Adjust quoting in error messages.
37849         Drop considerations for outdated POSIX 1003.2 error message.
37850         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37851         callers.
37852         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37853
37854         test-getopt: test stderr behavior
37855         * modules/getopt-posix-tests (Depends-on): Add dup2.
37856         * tests/test-getopt.c (ASSERT): Avoid stderr.
37857         (main): Move stderr to a temporary file.
37858         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37859         Instead, add parameter to inform caller if output occurred.
37860         (test_getopt): Adjust all existing tests to expect silence, and
37861         add new tests of leading ":".
37862         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37863         glibc shortcomings with leading "-:" or "+:" in optstring.
37864         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37865         Likewise.
37866         * doc/posix-functions/getopt.texi (getopt): Likewise.
37867
37868         test-getopt: enhance test
37869         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37870         supports optind=0.
37871         * tests/test-getopt.c (OPTIND_MIN): Move...
37872         * tests/test-getopt.h (OPTIND_MIN): ...here.
37873         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37874         Require that optind=0 works, since modern BSD supports it in
37875         addition to optreset, and since coreutils expects it.
37876         (test_getopt_long_only): New test.
37877         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37878         glibc shortcomings with 'W;', and enforcement of optind=0.
37879         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37880         Likewise.
37881
37882 2009-12-21  Bruno Haible  <bruno@clisp.org>
37883
37884         localename: Improvements for MacOS X and Cygwin.
37885         * lib/localename.h (gl_locale_name_environ): New declaration.
37886         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37887         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37888         (gl_locale_name_posix): Invoke it.
37889         (gl_locale_name_default): Add comments. Use Windows native API also on
37890         Cygwin.
37891
37892 2009-12-21  Bruno Haible  <bruno@clisp.org>
37893
37894         Update list of Win32 locale ids.
37895         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37896         (LANG_SAMI): Renamed from LANG_SAAMI.
37897         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37898         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37899         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37900         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37901         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37902         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37903         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37904         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37905         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37906         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37907         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37908         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37909         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37910         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37911         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37912         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37913         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37914         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37915         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37916         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37917         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37918         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37919         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37920         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37921         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37922         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37923         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37924         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37925         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37926         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37927         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37928         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37929         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37930         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37931         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37932         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37933         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37934         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37935         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37936         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37937         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37938         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37939         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37940         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37941         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37942         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37943         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37944         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37945         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37946         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37947         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37948         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37949         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37950         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37951         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37952         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37953         Add more languages and countries for Sami, Sorbian. Add more countries
37954         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37955         for Pashto. Change country for Syriac, Tswana.
37956
37957 2009-12-21  Eric Blake  <ebb9@byu.net>
37958
37959         test-utimens: avoid spurious failure
37960         * tests/test-chown.h (nap): Factor...
37961         * tests/nap.h: ...into new file.
37962         * tests/test-lchown.h (nap): Avoid duplication.
37963         * tests/test-utimens-common.h (nap): Use shared implementation,
37964         necessary on file systems with 1-second resolution.
37965         * modules/chown-tests (Files): Include new file.
37966         * modules/fdutimensat-tests (Files): Likewise.
37967         * modules/futimens-tests (Files): Likewise.
37968         * modules/lchown-tests (Files): Likewise.
37969         * modules/openat-tests (Files): Likewise.
37970         * modules/utimens-tests (Files): Likewise.
37971         * modules/utimensat-tests (Files): Likewise.
37972
37973 2009-12-19  Eric Blake  <ebb9@byu.net>
37974
37975         futimens, utimensat: work around Linux bug
37976         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37977         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37978         * lib/utimensat.c (rpl_utimensat): Work around it.
37979         * lib/futimens.c (rpl_futimens): Adjust comment.
37980
37981         utimens: work around Linux ctime bug
37982         * lib/utimens.c (detect_ctime_bug): New helper function.
37983         (update_timespec): Differentiate between workaround needed for
37984         this bug vs. what is needed for systems that lack utimensat.
37985         (fdutimens, lutimens): Work around bug.
37986
37987         utimens: check for ctime update
37988         * tests/test-utimens-common.h (check_ctime): Define.
37989         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37990         * tests/test-futimens.h (test_futimens): Likewise.
37991         * tests/test-lutimens.h (test_lutimens): Likewise.
37992         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37993         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37994
37995 2009-12-19  Bruno Haible  <bruno@clisp.org>
37996
37997         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37998         * tests/test-dprintf-posix2.sh: New file.
37999         * tests/test-dprintf-posix2.c: New file.
38000         * modules/dprintf-posix-tests (Files): Add them.
38001         (configure.ac): Check for getrlimit and setrlimit.
38002         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38003
38004 2009-12-19  Bruno Haible  <bruno@clisp.org>
38005
38006         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38007         * tests/test-fprintf-posix3.sh: New file.
38008         * tests/test-fprintf-posix3.c: New file.
38009         * modules/fprintf-posix-tests (Files): Add them.
38010         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38011
38012 2009-12-19  Eric Blake  <ebb9@byu.net>
38013
38014         dirfd: fix prototype
38015         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38016         * lib/dirfd.c (dirfd): Likewise.
38017
38018         canonicalize: reduce memory usage
38019         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38020         allocation to size.
38021         Reported by Solar Designer <solar@openwall.com>.
38022
38023 2009-12-19  Bruno Haible  <bruno@clisp.org>
38024
38025         New module attribute 'Applicability'.
38026         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38027         * gnulib-tool: New option --extract-applicability.
38028         (func_usage): Document it.
38029         (sed_extract_prog): Recognize it.
38030         (func_get_applicability): New function.
38031         (func_import): Generalize handling of 'link-warning' module.
38032         * modules/link-warning (Applicability): New section.
38033         * modules/arg-nonnull (Applicability): New section.
38034         Repoted by Simon Josefsson <simon@josefsson.org>.
38035
38036 2009-12-19  Bruno Haible  <bruno@clisp.org>
38037
38038         fflush: tweak
38039         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38040         * lib/fseeko.c (rpl_fseeko): Likewise.
38041
38042 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38043
38044         * lib/gl_list.h: Fix typo in comment.
38045
38046 2009-12-16  Eric Blake  <ebb9@byu.net>
38047
38048         fcntl: use to simplify other modules
38049         * modules/cloexec (Depends-on): Add fcntl.
38050         * modules/fchdir (Depends-on): Likewise.
38051         * modules/fd-safer-flag (Depends-on): Likewise.
38052         * modules/unistd-safer (Depends-on): Likewise.
38053         * modules/dup3 (configure.ac): Set module indicator.
38054         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38055         missing.
38056         * lib/fchdir.c (_gl_register_dup): Fix comment.
38057         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38058         * lib/dup-safer.c (dup_safer): Likewise.
38059         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38060         * lib/dup3.c (dup3): Likewise.
38061         * tests/test-fchdir.c (main): Enhance test.
38062         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
38063
38064         fcntl: port portions of fcntl to mingw
38065         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38066         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38067         replacement for mingw.
38068         * modules/fcntl (Description): Update.
38069         (Depends-on): Add dup2.
38070         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38071         * modules/fcntl-h (Makefile.am): Substitute it.
38072         * lib/fcntl.in.h (fcntl): Update declaration.
38073         (F_DUPFD, F_GETFD): New macros, when needed.
38074         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38075         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38076         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38077         we now guarantee.
38078
38079         fcntl: work around cygwin bug in F_DUPFD
38080         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38081         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38082         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38083         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38084         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38085
38086         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38087         * modules/fcntl (Files): List new files.
38088         (configure.ac): Run a test.
38089         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38090         * lib/fcntl.c (rpl_fcntl): Likewise.
38091         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38092         (gl_FCNTL_H): Always replace fcntl.h.
38093         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38094         * lib/fcntl.in.h (fcntl): Declare replacement.
38095         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38096         needed, plus a witness.
38097         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38098         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38099         * tests/test-fcntl.c: New file.
38100         * modules/fcntl-tests: Likewise.
38101
38102         binary-io: avoid potential compilation warning
38103         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38104         directives.
38105
38106         fflush: avoid compilation error on NetBSD
38107         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38108         between off_t and fpos_t, since the latter is sometimes a struct.
38109         * lib/fseeko.c (rpl_fseeko): Likewise.
38110         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38111
38112 2009-12-15  Eric Blake  <ebb9@byu.net>
38113
38114         fcntl-h, stdio, sys_ioctl: fix declarations
38115         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38116         function must not take arguments.
38117         * lib/sys_ioctl.in.h (ioctl): Likewise.
38118         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38119         (open): Add a link warning.
38120
38121 2009-12-15  Jim Meyering  <meyering@redhat.com>
38122
38123         areadlink, areadlink-with-size: relax license to LGPLv2+
38124         * modules/areadlink (License): Relax to LGPLv2+.
38125         * modules/areadlink-with-size (License): Likewise.
38126
38127 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38128             Bruno Haible  <bruno@clisp.org>
38129
38130         *printf: Fix memory leak.
38131         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38132         * lib/vfprintf.c (vfprintf): Likewise.
38133         * lib/dprintf.c (dprintf): Likewise.
38134         * lib/vdprintf.c (vdprintf): Likewise.
38135
38136 2009-12-14  Eric Blake  <ebb9@byu.net>
38137
38138         accept4: adjust module dependencies
38139         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38140
38141         utimens: one more try at avoiding compiler warning
38142         * lib/utimens.c (lutimens): Lower scope of result.
38143
38144 2009-12-13  Bruno Haible  <bruno@clisp.org>
38145
38146         Move the malloc checking from module 'list' to new module 'xlist'.
38147         * modules/xlist: New file.
38148         * lib/gl_xlist.h: New file.
38149         * lib/gl_xlist.c: New file.
38150         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38151         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38152         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38153         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38154         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38155         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38156         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38157         gl_sortedlist_nx_add): New declarations.
38158         (struct gl_list_implementation): Rename and change methods accordingly.
38159         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38160         (gl_list_nx_create): Renamed from gl_list_create.
38161         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38162         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38163         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38164         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38165         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38166         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38167         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38168         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38169         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38170         gl_list_create_empty.
38171         (gl_list_nx_create): Renamed from gl_list_create.
38172         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38173         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38174         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38175         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38176         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38177         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38178         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38179         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38180         * lib/gl_array_list.c: Don't include xalloc.h.
38181         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38182         NULL upon out-of-memory.
38183         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38184         out-of-memory.
38185         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38186         Change return type to 'int'.
38187         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38188         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38189         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38190         upon out-of-memory.
38191         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38192         upon out-of-memory.
38193         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38194         upon out-of-memory.
38195         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38196         upon out-of-memory.
38197         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38198         out-of-memory.
38199         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38200         Update.
38201         (gl_array_list_implementation): Update.
38202         * lib/gl_carray_list.c: Don't include xalloc.h.
38203         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38204         Return NULL upon out-of-memory.
38205         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38206         out-of-memory.
38207         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38208         Change return type to 'int'.
38209         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38210         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38211         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38212         upon out-of-memory.
38213         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38214         upon out-of-memory.
38215         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38216         out-of-memory.
38217         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38218         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38219         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38220         Update.
38221         (gl_carray_list_implementation): Update.
38222         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38223         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38224         gl_linked_create_empty. Return NULL upon out-of-memory.
38225         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38226         out-of-memory.
38227         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38228         Change return type to 'int'. Return -1 upon out-of-memory.
38229         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38230         out-of-memory.
38231         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38232         upon out-of-memory.
38233         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38234         upon out-of-memory.
38235         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38236         NULL upon out-of-memory.
38237         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38238         upon out-of-memory.
38239         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38240         out-of-memory.
38241         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38242         Update.
38243         * lib/gl_linked_list.c: Don't include xalloc.h.
38244         (gl_linked_list_implementation): Update.
38245         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38246         (add_to_bucket): Change return type to 'int'.
38247         (gl_linkedhash_list_implementation): Update.
38248         * lib/gl_anytree_list1.h (free_subtree): New function.
38249         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38250         gl_tree_create_empty. Return NULL upon out-of-memory.
38251         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38252         Change return type to 'int'. Return -1 upon out-of-memory.
38253         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38254         out-of-memory.
38255         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
38256         (gl_tree_remove_node): New function, moved here from
38257         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
38258         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
38259         Update.
38260         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
38261         malloc, not xmalloc. Return NULL upon out-of-memory.
38262         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38263         out-of-memory.
38264         (gl_tree_remove_node_from_tree): New function, extracted from
38265         gl_tree_remove_node.
38266         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38267         upon out-of-memory.
38268         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38269         out-of-memory.
38270         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38271         upon out-of-memory.
38272         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38273         upon out-of-memory.
38274         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38275         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38276         not xmalloc. Return NULL upon out-of-memory.
38277         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38278         out-of-memory.
38279         (gl_tree_remove_node_from_tree): New function, extracted from
38280         gl_tree_remove_node.
38281         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38282         upon out-of-memory.
38283         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38284         out-of-memory.
38285         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38286         upon out-of-memory.
38287         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38288         upon out-of-memory.
38289         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38290         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38291         gl_anytree_list1.h before gl_anyavltree_list2.h.
38292         (gl_avltree_list_implementation): Update.
38293         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38294         gl_anytree_list1.h before gl_anyavltree_list2.h.
38295         (gl_rbtree_list_implementation): Update.
38296         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38297         Change return type to 'int'. Return -1 upon out-of-memory. Use
38298         __builtin_expect.
38299         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38300         (gl_avltreehash_list_implementation): Update.
38301         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38302         (gl_rbtreehash_list_implementation): Update.
38303         * modules/array-list (Depends-on): Remove xalloc.
38304         * modules/carray-list (Depends-on): Likewise.
38305         * modules/linked-list (Depends-on): Likewise.
38306         * modules/linkedhash-list (Depends-on): Likewise.
38307         * modules/avltree-list (Depends-on): Likewise.
38308         * modules/rbtree-list (Depends-on): Likewise.
38309         * modules/avltreehash-list (Depends-on): Likewise.
38310         * modules/rbtreehash-list (Depends-on): Likewise.
38311
38312         * modules/xsublist: New file.
38313         * lib/gl_xsublist.h: New file.
38314         * lib/gl_xsublist.c: New file.
38315         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38316         (gl_sublist_nx_create): New declaration.
38317         * lib/gl_sublist.c: Don't include xalloc.h.
38318         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38319         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38320         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38321         Change return type to 'int'. Return -1 upon out-of-memory.
38322         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38323         upon out-of-memory.
38324         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38325         NULL upon out-of-memory.
38326         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38327         upon out-of-memory.
38328         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
38329         NULL upon out-of-memory.
38330         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
38331         NULL upon out-of-memory.
38332         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
38333         upon out-of-memory.
38334         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
38335         (gl_sublist_list_implementation): Update.
38336         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
38337         upon out-of-memory.
38338         * modules/sublist (Depends-on): Remove xalloc.
38339
38340         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
38341         * tests/test-carray_list.c: Likewise.
38342         * tests/test-linked_list.c: Likewise.
38343         * tests/test-linkedhash_list.c: Likewise.
38344         * tests/test-avltree_list.c: Likewise.
38345         * tests/test-rbtree_list.c: Likewise.
38346         * tests/test-avltreehash_list.c: Likewise.
38347         * tests/test-rbtreehash_list.c: Likewise.
38348         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
38349         * modules/carray-list-tests (Makefile.am): Likewise.
38350         * modules/linked-list-tests (Makefile.am): Likewise.
38351         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38352         * modules/avltree-list-tests (Makefile.am): Likewise.
38353         * modules/rbtree-list-tests (Makefile.am): Likewise.
38354         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38355         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38356
38357         * NEWS: Mention the changes.
38358
38359         * lib/clean-temp.c: Include gl_xlist.h.
38360         * modules/clean-temp (Depends-on): Add xlist.
38361
38362         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
38363         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
38364
38365         * tests/test-array_oset.c: Include gl_xlist.h.
38366         * modules/array-oset-tests (Depends-on): Add xlist.
38367
38368         Reported by José E. Marchesi <jemarch@gnu.org>.
38369
38370 2009-12-13  Bruno Haible  <bruno@clisp.org>
38371
38372         Move the malloc checking from module 'oset' to new module 'xoset'.
38373         * modules/xoset: New file.
38374         * lib/gl_xoset.h: New file.
38375         * lib/gl_xoset.c: New file.
38376         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
38377         declarations.
38378         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
38379         (struct gl_oset_implementation): Rename and change methods accordingly.
38380         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
38381         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38382         'int'. Mark as __warn_unused_result__.
38383         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
38384         gl_oset_create_empty.
38385         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38386         'int'.
38387         * lib/gl_array_oset.c: Don't include xalloc.h.
38388         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38389         malloc, not xmalloc.
38390         (grow): Change return type to 'int'. Don't call xalloc_die.
38391         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38392         to 'int'.
38393         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38394         'int'.
38395         (gl_array_oset_implementation): Update.
38396         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38397         gl_tree_create_empty.
38398         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38399         'int'.
38400         * lib/gl_avltree_oset.c: Don't include xalloc.h.
38401         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38402         xmalloc.
38403         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38404         not xmalloc.
38405         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38406         xmalloc.
38407         (gl_avltree_oset_implementation): Update.
38408         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
38409         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38410         xmalloc.
38411         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38412         not xmalloc.
38413         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38414         xmalloc.
38415         (gl_rbtree_oset_implementation): Update.
38416         * modules/array-oset (Depends-on): Remove xalloc.
38417         * modules/avltree-oset (Depends-on): Likewise.
38418         * modules/rbtree-oset (Depends-on): Likewise.
38419         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
38420         * tests/test-avltree_oset.c: Likewise.
38421         * tests/test-rbtree_oset.c: Likewise.
38422         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38423         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
38424         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38425         * NEWS: Mention the change.
38426
38427 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38428
38429         maint.mk: allow a project to override release-prep commands
38430         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38431         commands into a new rule.
38432         (release-prep): New rule.
38433         (release-prep-hook): New overridable variable.
38434
38435 2009-12-13  Bruno Haible  <bruno@clisp.org>
38436
38437         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
38438
38439 2009-12-13  Jim Meyering  <meyering@redhat.com>
38440
38441         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
38442         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
38443
38444 2009-12-12  Bruno Haible  <bruno@clisp.org>
38445
38446         duplocale: Tweak.
38447         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
38448
38449 2009-12-12  Karl Berry  <karl@gnu.org>
38450
38451         * config/srclist.txt (strtoll.c): tab changes, no more sync.
38452
38453 2009-12-12  Bruno Haible  <bruno@clisp.org>
38454
38455         * m4/po.m4: Undo incorrect untabification.
38456
38457 2009-12-12  Bruno Haible  <bruno@clisp.org>
38458
38459         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
38460         * modules/c-strtod (Depends-on): Add locale.
38461         * modules/c-strtold (Depends-on): Likewise.
38462
38463 2009-12-12  Bruno Haible  <bruno@clisp.org>
38464
38465         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
38466
38467 2009-12-11  Eric Blake  <ebb9@byu.net>
38468
38469         setenv: relax requirement in light of POSIX ruling
38470         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
38471         not NULL.
38472         * tests/test-setenv.c (main): Relax test.
38473         * tests/test-unsetenv.c (main): Likewise.
38474         * doc/posix-functions/setenv.texi (setenv): Document this.
38475         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38476
38477 2009-12-11  Bruno Haible  <bruno@clisp.org>
38478
38479         New module 'fd-safer-flag'.
38480         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
38481         * lib/dup-safer.c (dup_safer_flag): Remove function.
38482         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38483         * lib/fd-safer.c (fd_safer_flag): Remove function.
38484         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38485         * modules/cloexec (configure.ac): Drop indicator macro.
38486         * modules/fd-safer-flag: New file.
38487         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38488         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38489         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38490
38491 2009-12-11  Bruno Haible  <bruno@clisp.org>
38492
38493         Tests for module 'nl_langinfo'.
38494         * modules/nl_langinfo-tests: New file.
38495         * tests/test-nl_langinfo.sh: New file.
38496         * tests/test-nl_langinfo.c: New file.
38497
38498         New module 'nl_langinfo'.
38499         * lib/nl_langinfo.c: New file.
38500         * m4/nl_langinfo.m4: New file.
38501         * modules/nl_langinfo: New file.
38502         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38503
38504 2009-12-11  Bruno Haible  <bruno@clisp.org>
38505
38506         Tests for module 'langinfo'.
38507         * modules/langinfo-tests: New file.
38508         * tests/test-langinfo.c: New file.
38509
38510         New module 'langinfo'.
38511         * lib/langinfo.in.h: New file.
38512         * m4/langinfo_h.m4: New file.
38513         * modules/langinfo: New file.
38514         * doc/posix-headers/langinfo.texi: Mention the new module.
38515
38516 2009-12-11  Bruno Haible  <bruno@clisp.org>
38517
38518         * lib/config.charset: Untabify.
38519
38520 2009-12-11  Bruno Haible  <bruno@clisp.org>
38521
38522         * modules/unistd-safer (configure.ac): Drop indicator macro.
38523
38524 2009-12-11  Bruno Haible  <bruno@clisp.org>
38525
38526         Move pipe2-safer code to its own file.
38527         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38528         * lib/pipe-safer.c (pipe2_safer): Remove function.
38529         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38530         (Makefile.am): Add it to lib_SOURCES.
38531
38532 2009-12-10  Bruno Haible  <bruno@clisp.org>
38533
38534         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38535
38536 2009-12-10  Bruno Haible  <bruno@clisp.org>
38537
38538         Declare which arguments expect non-NULL values, for GCC and clang.
38539         * build-aux/arg-nonnull.h: New file.
38540         * modules/arg-nonnull: New file.
38541         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38542         (inet_ntop, inet_pton): Use it.
38543         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38544         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38545         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38546         (open, openat): Use it.
38547         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38548         (fnmatch): Use it.
38549         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38550         (getopt, getopt_long, getopt_long_only): Use it.
38551         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38552         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38553         Use it.
38554         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38555         (iconv_open): Use it.
38556         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38557         (strtoimax, strtoumax): Use it.
38558         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38559         (duplocale): Use it.
38560         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38561         (frexp, frexpl): Use it.
38562         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38563         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38564         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38565         (tsearch, tfind, tdelete, twalk): Use it.
38566         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38567         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38568         sigpending): Use it.
38569         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38570         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38571         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38572         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38573         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38574         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38575         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38576         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38577         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38578         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38579         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38580         Use it.
38581         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38582         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38583         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38584         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38585         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38586         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38587         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38588         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38589         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38590         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38591         strtoull, unsetenv): Use it.
38592         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38593         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38594         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38595         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38596         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38597         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38598         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38599         (strcasecmp, strncasecmp): Use it.
38600         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38601         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38602         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38603         rpl_setsockopt): Use it.
38604         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38605         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38606         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38607         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38608         (gettimeofday): Use it.
38609         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38610         (times): Use it.
38611         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38612         (uname): Use it.
38613         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38614         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38615         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38616         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38617         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38618         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38619         unlinkat, write): Use it.
38620         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38621         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38622         * lib/argv-iter.h: Include arg-nonnull.h.
38623         (_ATTRIBUTE_NONNULL_): Remove macro.
38624         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38625         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38626         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38627         optimization.
38628         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38629         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38630         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38631         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38632         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38633         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38634         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38635         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38636         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38637         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38638         * modules/dirent (Depends-on): Add arg-nonnull.
38639         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38640         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38641         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38642         * modules/fnmatch (Depends-on): Add arg-nonnull.
38643         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38644         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38645         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38646         * modules/glob (Depends-on): Add arg-nonnull.
38647         (Makefile.am): Insert arg-nonnull.h into glob.h.
38648         * modules/iconv_open (Depends-on): Add arg-nonnull.
38649         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38650         * modules/inttypes (Depends-on): Add arg-nonnull.
38651         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38652         * modules/locale (Depends-on): Add arg-nonnull.
38653         (Makefile.am): Insert arg-nonnull.h into locale.h.
38654         * modules/math (Depends-on): Add arg-nonnull.
38655         (Makefile.am): Insert arg-nonnull.h into math.h.
38656         * modules/netdb (Depends-on): Add arg-nonnull.
38657         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38658         * modules/search (Depends-on): Add arg-nonnull.
38659         (Makefile.am): Insert arg-nonnull.h into search.h.
38660         * modules/signal (Depends-on): Add arg-nonnull.
38661         (Makefile.am): Insert arg-nonnull.h into signal.h.
38662         * modules/spawn (Depends-on): Add arg-nonnull.
38663         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38664         * modules/stdio (Depends-on): Add arg-nonnull.
38665         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38666         * modules/stdlib (Depends-on): Add arg-nonnull.
38667         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38668         * modules/string (Depends-on): Add arg-nonnull.
38669         (Makefile.am): Insert arg-nonnull.h into string.h.
38670         * modules/strings (Depends-on): Add arg-nonnull.
38671         (Makefile.am): Insert arg-nonnull.h into strings.h.
38672         * modules/sys_socket (Depends-on): Add arg-nonnull.
38673         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38674         * modules/sys_stat (Depends-on): Add arg-nonnull.
38675         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38676         * modules/sys_time (Depends-on): Add arg-nonnull.
38677         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38678         * modules/sys_times (Depends-on): Add arg-nonnull.
38679         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38680         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38681         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38682         * modules/time (Depends-on): Add arg-nonnull.
38683         (Makefile.am): Insert arg-nonnull.h into time.h.
38684         * modules/unistd (Depends-on): Add arg-nonnull.
38685         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38686         * modules/wchar (Depends-on): Add arg-nonnull.
38687         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38688         * modules/argv-iter (Depends-on): Add arg-nonnull.
38689         * tests/test-canonicalize.c (null_ptr): New function.
38690         (main): Use it.
38691         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38692         (main): Use it.
38693         * tests/test-memmem.c (null_ptr): New function.
38694         (main): Use it.
38695         Reported by Jim Meyering.
38696
38697 2009-12-10  Bruno Haible  <bruno@clisp.org>
38698
38699         Use spaces for indentation, not tabs.
38700         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38701         * m4/*.m4: Untabify.
38702         * build-aux/*.h: Untabify.
38703         * tests/**/*.[hc]: Untabify.
38704         * README: New section "Indent with spaces, not TABs", based on
38705         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38706         * NEWS: Mention the change.
38707
38708 2009-12-10  Bruno Haible  <bruno@clisp.org>
38709
38710         pty test: Fix link error.
38711         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38712         test_pty_LDADD.
38713
38714 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38715
38716         * modules/pty: New file.
38717         * modules/pty-tests: New file.
38718         * m4/pty.m4: New file.
38719         * tests/test-pty.c: New file.
38720         * doc/glibc-headers/pty.texi: Modified.
38721         * doc/glibc-functions/forkpty.texi: Modified.
38722         * doc/glibc-functions/openpty.texi: Modified.
38723
38724 2009-12-10  Bruno Haible  <bruno@clisp.org>
38725
38726         Avoid syntax error in C++ mode.
38727         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38728
38729 2009-12-10  Bruno Haible  <bruno@clisp.org>
38730
38731         Use sed with option -e.
38732         * gnulib-tool (func_version, func_emit_copyright_notice,
38733         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38734         option -e to sed.
38735         * modules/link-warning (Makefile.am): Likewise.
38736
38737 2009-12-10  Jim Meyering  <meyering@redhat.com>
38738
38739         mgetgroups: do not write bytes beyond end of malloc'd buffer
38740         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38741         username, we call getgroups with a one-element-shorter buffer,
38742         but still told it the length was original, max_n_groups.
38743
38744 2009-12-09  Eric Blake  <ebb9@byu.net>
38745
38746         cloexec: relax license
38747         * modules/cloexec (Maintainer): Add myself.
38748         (License): Use LGPL, not GPL.
38749
38750         link-warning: optimize generation
38751         * modules/link-warning (Makefile.am): Reduce process usage.
38752
38753 2009-12-09  Bruno Haible  <bruno@clisp.org>
38754
38755         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38756         workaround was added on 2009-11-17.
38757
38758 2009-12-09  Jim Meyering  <meyering@redhat.com>
38759             Bruno Haible  <bruno@clisp.org>
38760
38761         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38762         * modules/link-warning (Makefile.am): Make the comment-removing sed
38763         command more robust in the face of bootstrap-prepended comment lines.
38764
38765 2009-12-09  Bruno Haible  <bruno@clisp.org>
38766
38767         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38768         most one group.
38769
38770 2009-12-09  Simon Josefsson <simon@josefsson.org>
38771             Bruno Haible  <bruno@clisp.org>
38772
38773         * build-aux/link-warning.h: Add copyright notice.
38774         * modules/link-warning (Makefile.am): Generate link-warning.h from
38775         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38776         * NEWS: Mention change in link-warning module.
38777         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38778         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38779         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38780         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38781         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38782         * modules/math (Makefile.am): Add dependency to math.h.
38783         * modules/search (Makefile.am): Add dependency to search.h.
38784         * modules/signal (Makefile.am): Add dependency to signal.h.
38785         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38786         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38787         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38788         * modules/string (Makefile.am): Add dependency to string.h.
38789         * modules/strings (Makefile.am): Add dependency to strings.h.
38790         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38791         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38792         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38793         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38794         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38795         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38796         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38797         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38798         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38799
38800 2009-12-09  Bruno Haible  <bruno@clisp.org>
38801
38802         fchdir: Optimize away rpl_fstat when possible.
38803         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38804         REPLACE_OPEN_DIRECTORY.
38805         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38806
38807 2009-12-09  Bruno Haible  <bruno@clisp.org>
38808
38809         * lib/fchdir.c: Update comment.
38810
38811 2009-12-09  Bruno Haible  <bruno@clisp.org>
38812
38813         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38814
38815 2009-12-08  Eric Blake  <ebb9@byu.net>
38816
38817         fchdir: avoid memory leak on re-registration.
38818         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38819
38820 2009-12-08  Jim Meyering  <meyering@redhat.com>
38821
38822         init.sh: avoid Solaris 10 /bin/sh portability problem
38823         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38824         sourced script:
38825           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38826           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38827           bar
38828         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38829         and two tests used that idiom.
38830         * tests/init.sh: Update suggested usage comments.
38831         (path_prepend_): New function, to be used in place
38832         of the --src-path=DIR option.
38833         (setup_): Move PATH-prepending code into path_prepend_.
38834         * tests/test-pread.sh: Adapt to new usage.
38835         * tests/test-xalloc-die.sh: Likewise.
38836
38837 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38838
38839         * doc/gnulib.texi (Glibc pty.h): Add.
38840         * doc/glibc-functions/forkpty.texi: Add.
38841         * doc/glibc-functions/openpty.texi: Add.
38842         Suggested by Bruno Haible.
38843
38844 2009-12-08  Eric Blake  <ebb9@byu.net>
38845
38846         fchdir: fix logic bugs
38847         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38848         * tests/test-fchdir.c (main): Enhance test.
38849         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38850         is in use.
38851
38852         dup2: fix logic bugs
38853         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38854         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38855         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38856         exists.
38857         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38858
38859 2009-12-07  Eric Blake  <ebb9@byu.net>
38860
38861         unlink: fix m4 detection
38862         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38863
38864         unistd-safer: add unit test
38865         * modules/unistd-safer-tests: New file.
38866         * tests/test-dup-safer.c: Likewise.
38867         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38868         * tests/test-dup2.c (setmode): Likewise.
38869         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38870
38871         cloexec: preserve text vs. binary across dup_cloexec
38872         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38873         mode.
38874         * modules/dup2-tests (Depends-on): Add binary-io.
38875         * modules/cloexec-tests (Depends-on): Likewise.
38876         * tests/test-dup2.c (setmode, is_mode): New helpers.
38877         (main): Add tests that translation mode is preserved.
38878         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38879         Reported by Bruno Haible.
38880
38881         mgetgroups: reduce duplicate listings
38882         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38883         resulting array.
38884         * tests/test-chown.h (test_chown): Simplify client.
38885         * tests/test-lchown.h (test_lchown): Likewise.
38886
38887 2009-12-06  Bruno Haible  <bruno@clisp.org>
38888
38889         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38890         value.
38891
38892 2009-12-06  Bruno Haible  <bruno@clisp.org>
38893
38894         * lib/progname.c: Include stdio.h, stdlib.h.
38895         (set_program_name): Reject a NULL argument.
38896
38897 2009-12-05  Eric Blake  <ebb9@byu.net>
38898
38899         pipe2-safer: new module
38900         * modules/pipe2-safer: New file.
38901         * lib/unistd-safer.h (pipe2_safer): New prototype.
38902         * lib/unistd--.h (pipe2): New wrapper.
38903         * lib/pipe-safer.c (pipe2_safer): New function.
38904         * modules/pipe (Depends-on): Add pipe2-safer.
38905         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38906
38907         stdlib-safer: preserve cloexec flag for mkostemp[s]
38908         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38909         fd_safer_flag.
38910
38911         unistd-safer: allow preservation of cloexec status via flag
38912         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38913         prototypes.
38914         * lib/dup-safer.c (dup_safer_flag): New function.
38915         * lib/fd-safer.c (fd_safer_flag): Likewise.
38916         * modules/cloexec (configure.ac): Set witness.
38917
38918         test-dup2: enhance test
38919         * modules/dup2-tests (Depends-on): Add cloexec.
38920         * tests/test-dup2.c (main): Enhance test.
38921
38922         cloexec: add dup_cloexec
38923         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38924         header and comments.
38925         * lib/cloexec.c (set_cloexec_flag): Add comments.
38926         (dup_cloexec): New function, with mingw implementation borrowed
38927         from...
38928         * lib/w32spawn.h (dup_noinherit): ...here.
38929         * modules/execute (Depends-on): Add cloexec.
38930         * modules/pipe (Depends-on): Likewise.
38931         * modules/cloexec (Depends-on): Add dup2.
38932         * modules/cloexec-tests (Files): New file.
38933         * tests/test-cloexec.c: Likewise.
38934
38935         test-xalloc-die: fix test for mingw
38936         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38937         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38938         directory and .exe suffix off argv[0] output.
38939
38940         test-fseeko: fix test for mingw
38941         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38942         than undefining fseek, so test will pass on mingw.
38943
38944 2009-12-05  Bruno Haible  <bruno@clisp.org>
38945
38946         * lib/progname.h (set_program_name): Clarify specification.
38947         * lib/progname.c (set_program_name): Likewise.
38948         Reported by Jim Meyering.
38949
38950 2009-12-05  Jim Meyering  <meyering@redhat.com>
38951
38952         maint.mk: backslash-escape parens in default regexp
38953         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38954         backslash-escape the literal parentheses.
38955
38956         maint.mk: news-date-check: use grep -E
38957         * top/maint.mk (today): Define a Make variable, not a...
38958         (news-date-check): ...shell variable.
38959         (news-date-regexp): Use the Make variable.
38960         Use grep's -E option.  Change the failing diagnostic to mention
38961         the variable, $(news-date-regexp).
38962
38963 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38964
38965         maintainer-makefile: allow customization of NEWS entry format
38966         * top/maint.mk (news-date-regexp): New overridable variable.
38967         (news-date-check): Use it.
38968
38969 2009-12-04  Eric Blake  <ebb9@byu.net>
38970
38971         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38972         * lib/mgetgroups.h (xgetgroups): New prototype.
38973         * lib/mgetgroups.c (xgetgroups): New wrapper.
38974         (mgetgroups): Handle ENOSYS.
38975         * modules/mgetgroups (Depends-on): Add realloc.
38976         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38977
38978         mgetgroups: avoid argument promotion issues with -1
38979         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38980         for invalid gid_t.
38981         * tests/test-chown.h (getegid, test_chown): Likewise.
38982         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38983
38984 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38985
38986         exclude: Fix header file problems.
38987         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38988
38989 2009-12-01  Jim Meyering  <meyering@redhat.com>
38990
38991         fts: fts_open: do not let an empty string cause immediate failure
38992         This is required in support of GNU rm, for which the command
38993         "rm A '' B" must process and remove both A and B, in spite of
38994         the empty string argument.
38995         * lib/fts.c (fts_open): Do not let the presence of an empty string
38996         cause fts_open to fail immediately.  Most fts-using tools must be
38997         able to process all arguments, in order, and can be expected to
38998         diagnose such arguments themselves.
38999
39000 2009-11-30  Eric Blake  <ebb9@byu.net>
39001
39002         utimens: fix compilation error
39003         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39004         Declare variable at right scope.
39005
39006 2009-11-29  Jim Meyering  <meyering@redhat.com>
39007
39008         bootstrap: handle perl-5.11's changed --version output
39009         * build-aux/bootstrap (get_version): Handle perl separately,
39010         since perl-5.11's --version output is different.
39011
39012 2009-11-28  Jim Meyering  <meyering@redhat.com>
39013
39014         userspec: depend on the inttostr module, too
39015         * modules/userspec (Depends-on): Add inttostr.
39016
39017         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39018         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39019         number of MAXUID when it evaluates to (uid_t) -1.
39020         Likewise for group ID.  Reported by Matt McCutchen in
39021         <http://savannah.gnu.org/bugs/?28113>
39022
39023         userspec: reformat to use spaces, not TABs
39024         * lib/userspec.c: Expand TABs to spaces.
39025         Add Emacs' "indent-tabs-mode: nil" hint.
39026
39027 2009-11-27  Eric Blake  <ebb9@byu.net>
39028
39029         getopt-gnu: flush out another BSD bug
39030         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39031         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39032         flush out BSD bug.
39033         * tests/test-getopt.h (test_getopt): End lists with NULL.
39034         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39035         (test_getopt_long_posix): Enhance test.
39036         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39037         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39038         getopt-gnu.
39039         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39040         Likewise.
39041
39042 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39043
39044         * modules/idpriv-droptemp-tests (Notice): Fix text.
39045
39046 2009-11-27  Jim Meyering  <meyering@redhat.com>
39047
39048         test-xalloc-die: avoid spurious failure due to libtool argv difference
39049         In a libtool-enabled project, this test would fail due to a difference
39050         in the emitted program name, e.g.,
39051         -test-xalloc-die: memory exhausted
39052         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39053         Use program to avoid that.
39054         * modules/xalloc-die-tests (Depends-on): Add progname.
39055         * tests/test-xalloc-die.c: Include progname.h".
39056         (program_name): Remove decl.
39057         (main): Call set_program_name.
39058         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39059
39060 2009-11-26  Richard Jones  <rjones@redhat.com>
39061
39062         w32sock: leave win32 error in place.
39063         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39064
39065 2009-11-26  Eric Blake  <ebb9@byu.net>
39066
39067         init.sh: suggest to use skip_ and fail_ functions in comments
39068         * tests/init.sh: Add a sentence.
39069
39070 2009-11-25  Bruno Haible  <bruno@clisp.org>
39071
39072         init.sh: add documentation in comments
39073         * tests/init.sh: Add some developer and user documentation.
39074
39075 2009-11-26  Jim Meyering  <meyering@redhat.com>
39076
39077         init.sh: accommodate even those who specify bogus srcdir manually
39078         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39079         configure-time tests to be sanitized, so that there is no need to
39080         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39081         (with no double quotes) suffices.  However, since tests may be
39082         invoked manually, and since you may explicitly set srcdir to the
39083         name of a directory containing spaces, do quote its uses here.
39084         * tests/test-pread.sh: Likewise.
39085         Suggested by Bruno Haible.
39086
39087         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39088         * tests/test-pread.sh: Write no data into the pipe, because
39089         test-pread actually reads none.  This avoids a diagnostic,
39090         "bash: echo: write error: Broken pipe", that arises in the unusual
39091         event something is ignoring SIGPIPE, and might be interpreted
39092         as some sort of failure.  Reported by Bruno Haible.
39093
39094 2009-11-25  Jim Meyering  <meyering@redhat.com>
39095
39096         test-pread: cover failure with ESPIPE and EINVAL
39097         * tests/test-pread.c (main): Test for failure, too.
39098         * tests/test-pread.sh: Invoke with stdin on a pipe.
39099         Suggested by Eric Blake.
39100
39101         pread: improvement and fix
39102         * modules/pread (Depends-on): Depend on lseek, for portability to
39103         e.g., mingw.  Suggested by Eric Blake.
39104         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39105
39106         unistd.in.h: correct declaration of pread
39107         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39108         Reported by Richard W.M. Jones.
39109
39110         test-pread.sh: distribute the test script
39111         * modules/pread-tests (Files): Include test-pread.sh.
39112
39113         test-pread.sh: clean up
39114         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39115         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39116         That is unnecessary, since it's always ".".
39117         Suggestion from Eric Blake.
39118
39119         test-pread.sh: make executable
39120         * tests/test-pread.sh: Set executable bit.
39121         Reported by Eric Blake.
39122
39123         correct typo in test-pread.sh
39124         * tests/test-pread.sh: Add #! line.
39125
39126         test pread
39127         * tests/test-pread.c: New file.
39128         * tests/test-pread.sh: Likewise.
39129         * modules/pread-tests: Likewise.
39130
39131         pread: new module
39132         * modules/pread: New file.
39133         * lib/unistd.in.h (pread): Define/declare.
39134         * lib/pread.c (pread): New file.
39135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39136         * modules/unistd (Makefile.am): Substitute witnesses.
39137         * doc/posix-functions/pread.texi (pread): Update.
39138         * MODULES.html.sh: Add pread.
39139
39140 2009-11-25  Jim Meyering  <meyering@redhat.com>
39141
39142         tests/init.sh: new file to be used via most *.sh tests
39143         * tests/init.sh: New file.
39144
39145 2009-11-25  Eric Blake  <ebb9@byu.net>
39146
39147         utimens: work around older Linux failure with symlinks
39148         * lib/utimens.c (lutimensat_works_really): New variable.
39149         (fdutimens, lutimens): Use it to manage kernels that support
39150         nanosecond times on files, but not on symlinks.
39151         Reported by OndÅ™ej Vašík.
39152
39153         utimes: fix configure grammar
39154         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39155
39156 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39157
39158         regex: Fix fastmap for multibyte character ranges.
39159         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39160         characters when a multibyte character range is included.
39161
39162 2009-11-22  Andy Wingo  <wingo@pobox.com>
39163
39164         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39165         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39166
39167 2009-11-24  Bruno Haible  <bruno@clisp.org>
39168
39169         doc: Most *_l functions exist in MacOS X 10.5.
39170         * doc/posix-functions/duplocale.texi: Update platforms list.
39171         * doc/posix-functions/freelocale.texi: Likewise.
39172         * doc/posix-functions/newlocale.texi: Likewise.
39173         * doc/posix-functions/uselocale.texi: Likewise.
39174         * doc/posix-functions/isalnum_l.texi: Likewise.
39175         * doc/posix-functions/isalpha_l.texi: Likewise.
39176         * doc/posix-functions/isblank_l.texi: Likewise.
39177         * doc/posix-functions/iscntrl_l.texi: Likewise.
39178         * doc/posix-functions/isdigit_l.texi: Likewise.
39179         * doc/posix-functions/isgraph_l.texi: Likewise.
39180         * doc/posix-functions/islower_l.texi: Likewise.
39181         * doc/posix-functions/isprint_l.texi: Likewise.
39182         * doc/posix-functions/ispunct_l.texi: Likewise.
39183         * doc/posix-functions/isspace_l.texi: Likewise.
39184         * doc/posix-functions/isupper_l.texi: Likewise.
39185         * doc/posix-functions/iswalnum_l.texi: Likewise.
39186         * doc/posix-functions/iswalpha_l.texi: Likewise.
39187         * doc/posix-functions/iswblank_l.texi: Likewise.
39188         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39189         * doc/posix-functions/iswctype_l.texi: Likewise.
39190         * doc/posix-functions/iswdigit_l.texi: Likewise.
39191         * doc/posix-functions/iswgraph_l.texi: Likewise.
39192         * doc/posix-functions/iswlower_l.texi: Likewise.
39193         * doc/posix-functions/iswprint_l.texi: Likewise.
39194         * doc/posix-functions/iswpunct_l.texi: Likewise.
39195         * doc/posix-functions/iswspace_l.texi: Likewise.
39196         * doc/posix-functions/iswupper_l.texi: Likewise.
39197         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39198         * doc/posix-functions/isxdigit_l.texi: Likewise.
39199         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39200         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39201         * doc/posix-functions/strcoll_l.texi: Likewise.
39202         * doc/posix-functions/strfmon_l.texi: Likewise.
39203         * doc/posix-functions/strftime_l.texi: Likewise.
39204         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39205         * doc/posix-functions/strxfrm_l.texi: Likewise.
39206         * doc/posix-functions/tolower_l.texi: Likewise.
39207         * doc/posix-functions/toupper_l.texi: Likewise.
39208         * doc/posix-functions/towctrans_l.texi: Likewise.
39209         * doc/posix-functions/towlower_l.texi: Likewise.
39210         * doc/posix-functions/towupper_l.texi: Likewise.
39211         * doc/posix-functions/wcscoll_l.texi: Likewise.
39212         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39213         * doc/posix-functions/wctrans_l.texi: Likewise.
39214         * doc/posix-functions/wctype_l.texi: Likewise.
39215         * doc/glibc-functions/strptime_l.texi: Likewise.
39216         * doc/glibc-functions/strtod_l.texi: Likewise.
39217         * doc/glibc-functions/strtof_l.texi: Likewise.
39218         * doc/glibc-functions/strtol_l.texi: Likewise.
39219         * doc/glibc-functions/strtold_l.texi: Likewise.
39220         * doc/glibc-functions/strtoll_l.texi: Likewise.
39221         * doc/glibc-functions/strtoul_l.texi: Likewise.
39222         * doc/glibc-functions/strtoull_l.texi: Likewise.
39223         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39224         * doc/glibc-functions/wcstod_l.texi: Likewise.
39225         * doc/glibc-functions/wcstof_l.texi: Likewise.
39226         * doc/glibc-functions/wcstol_l.texi: Likewise.
39227         * doc/glibc-functions/wcstold_l.texi: Likewise.
39228         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39229         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39230         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39231
39232 2009-11-24  Bruno Haible  <bruno@clisp.org>
39233
39234         duplocale: Fix logic bug.
39235         * lib/duplocale.c: Don't include <langinfo.h>.
39236         (_NL_LOCALE_NAME): Remove macro.
39237         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39238         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39239
39240 2009-11-23  Jim Meyering  <meyering@redhat.com>
39241
39242         test-update-copyright: don't hard-code /usr/bin/perl
39243         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39244         perl to print the current year.  Gilles Espinasse reported that
39245         the replaced use of perl was hard-coded as /usr/bin/perl.
39246
39247 2009-11-23  Bruno Haible  <bruno@clisp.org>
39248
39249         duplocale: Add support for glibc 2.3.x.
39250         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39251
39252 2009-11-22  Bruno Haible  <bruno@clisp.org>
39253
39254         vasnprintf: Tiny optimization.
39255         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
39256         MacOS X.
39257
39258 2009-11-22  Bruno Haible  <bruno@clisp.org>
39259
39260         Tests for module 'duplocale'.
39261         * modules/duplocale-tests: New file.
39262         * tests/test-duplocale.c: New file.
39263
39264         New module 'duplocale'.
39265         * m4/duplocale.m4: New file.
39266         * lib/locale.in.h (duplocale): New declaration.
39267         * lib/duplocale.c: New file.
39268         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39269         gl_LOCALE_H_DEFAULTS): New macros.
39270         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39271         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39272         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39273         REPLACE_DUPLOCALE.
39274         * modules/duplocale: New file.
39275         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39276
39277 2009-11-22  Bruno Haible  <bruno@clisp.org>
39278
39279         * modules/locale-tests (configure.ac): Test for newlocale function.
39280         * tests/test-locale.c: When the system has extended locale functions,
39281         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39282
39283         locale: Make locale_t available when possible.
39284         * lib/locale.in.h: Include <xlocale.h> when it exists.
39285         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39286         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39287         * modules/locale (Depends-on): Add extensions.
39288         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39289         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39290
39291 2009-11-22  Bruno Haible  <bruno@clisp.org>
39292
39293         Add comments.
39294         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39295         invocation.
39296         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39297         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39298         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39299
39300 2009-11-22  Bruno Haible  <bruno@clisp.org>
39301
39302         error: account for the possibility of freopen (stdout).
39303         * lib/error.c: Include <unistd.h>.
39304         (flush_stdout): New function, extracted from error and error_at_line.
39305         Determine stdout's fd dynamically.
39306         (error, error_at_line): Invoke flush_stdout.
39307         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39308         * modules/error (Depends-on): Add unistd.
39309
39310 2009-11-22  Bruno Haible  <bruno@clisp.org>
39311
39312         diffseq: Add comment.
39313         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39314
39315 2009-11-22  Jim Meyering  <meyering@redhat.com>
39316
39317         c-stack: avoid defining an unused static function
39318         * lib/c-stack.c (find_stack_direction): Do not define this function
39319         when it will not be used.
39320
39321         diffseq: avoid spurious gcc warnings
39322         * lib/diffseq.h (IF_LINT2): Define.
39323         (compareseq): Use it to initialize two members of "part".
39324         This avoids two used-uninitialized warnings.
39325
39326 2009-11-21  Jim Meyering  <meyering@redhat.com>
39327
39328         c-stack: avoid "ignoring return value of `write'" warning
39329         * lib/c-stack.c: Include "ignore-value.h".
39330         (die): Explicitly ignore each write return value.
39331         * modules/c-stack (Depends-on): Add ignore-value.
39332
39333 2009-11-21  Bruno Haible  <bruno@clisp.org>
39334
39335         diffseq: reduce scope of variable 'best'.
39336         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
39337         variable, earlier used for two different purposes.
39338
39339 2009-11-21  Jim Meyering  <meyering@redhat.com>
39340
39341         diffseq: remove useless assignment to "best"
39342         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
39343         assignment.  At that point "best" is already guaranteed to be zero.
39344
39345 2009-11-20  Eric Blake  <ebb9@byu.net>
39346
39347         build: mention ftp redirector in release announcements
39348         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
39349         values that used to come from cfg.mk; mention FTP redirect URL.
39350         * build-aux/announce-gen: Mention the mirror list.
39351         Suggested by Karl Berry.
39352
39353         nanosleep: improve port to mingw
39354         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
39355         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
39356         LIB_NANOSLEEP, but only when needed.
39357         * modules/select (Link): Document LIBSOCKET.
39358         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
39359         enough.
39360
39361         nanosleep: work around cygwin bug
39362         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
39363         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
39364         bug.
39365         (getnow): Delete, not needed.
39366         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
39367         LIB_CLOCK_GETTIME.
39368         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
39369         clock-time, gettime.
39370         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
39371         bug.
39372         * modules/nanosleep-tests: New test.
39373         * tests/test-nanosleep.c: New file.
39374
39375         sleep: work around cygwin bug
39376         * lib/sleep.c (rpl_sleep): Work around the bug.
39377         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
39378         (gl_PREREQ_SLEEP): Delete unused macro.
39379         * modules/sleep (Depends-on): Add verify.
39380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39381         * modules/unistd (Makefile.am): Substitute witness.
39382         * lib/unistd.in.h (sleep): Update prototype.
39383         * doc/posix-functions/sleep.texi (sleep): Document the bug.
39384         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
39385         * modules/sleep-tests (Depends-on): Check for alarm.
39386
39387 2009-11-20  Jim Meyering  <meyering@redhat.com>
39388
39389         maint.mk: improve sc_prohibit_magic_number_exit
39390         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39391         so it does not match uses like System.exit(1).
39392         Add comments showing how to correct all offenders.
39393
39394 2009-11-19  Eric Blake  <ebb9@byu.net>
39395
39396         xalloc-die-tests: add missing library
39397         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39398
39399         test-xvasprintf: silence compiler warnings
39400         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39401         empty string from gcc.
39402
39403 2009-11-19  Jim Meyering  <meyering@redhat.com>
39404
39405         xfreopen: new module, from coreutils
39406         * modules/xfreopen: New module.
39407         * lib/xfreopen.c: New file.
39408         * lib/xfreopen.h: New file.
39409         * MODULES.html.sh (File stream based Input/Output"): Add it.
39410
39411 2009-11-19  Eric Blake  <ebb9@byu.net>
39412
39413         manywarnings: depend on warnings
39414         * modules/manywarnings (Depends-on): Add warnings.
39415
39416         build: avoid compiler warnings
39417         * lib/select.c (rpl_select): Delete unused variable.
39418         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
39419
39420 2009-11-18  Eric Blake  <ebb9@byu.net>
39421
39422         tests: avoid false negative with --with-packager
39423         * tests/test-version-etc.sh: Discard packager information.
39424         * tests/test-argp-version-etc-1.sh: Likewise.
39425         Reported by Mike Frysinger.
39426
39427         utimens: fix regression on Solaris
39428         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39429         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39430         can only change fd timestamps via futimesat.  Instead, use an
39431         additional witness macro to avoid BSD bug.
39432         Reported by Jim Meyering.
39433
39434 2009-11-17  Eric Blake  <ebb9@byu.net>
39435
39436         usleep: use it to simplify tests
39437         * modules/stat-time-tests (Depends-on): Add usleep.
39438         (configure.ac): Drop usleep check.
39439         * modules/chown-tests (Depends-on, configure.ac): Likewise.
39440         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
39441         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
39442         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
39443         * modules/openat-tests (Depends-on, configure.ac): Likewise.
39444         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
39445         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
39446         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
39447         Likewise.
39448         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
39449         * tests/test-lchown.h (nap): Likewise.
39450         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
39451         * tests/test-stat-time.c (nap): Likewise.
39452         * tests/test-utimens-common.h (nap): Update comments.
39453
39454         usleep: new module
39455         * modules/usleep: New file.
39456         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
39457         * lib/usleep.c (usleep): Likewise.
39458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39459         * modules/unistd (Makefile.am): Substitute witnesses.
39460         * lib/unistd.in.h (usleep): Add declaration.
39461         * doc/pastposix-functions/usleep.texi (usleep): Document this.
39462         * MODULES.html.sh (Date and time): Likewise.
39463         * modules/usleep-tests (Depends-on): New test.
39464         * tests/test-usleep.c: New file.
39465
39466         chown: work around OpenBSD bug
39467         * lib/chown.c (rpl_chown): Work around the bug.
39468         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
39469         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
39470         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
39471         * modules/chown (Depends-on): Add stdbool.
39472         * modules/lchown (Depends-on): Likewise.
39473         * doc/posix-functions/chown.texi (chown): Document the bug.
39474         * doc/posix-functions/lchown.texi (lchown): Likewise.
39475         * tests/test-lchown.h (test_chown): Relax test.
39476
39477         mkstemp: avoid conflict with C++ keyword template
39478         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
39479         * lib/mkostemp.c (mkostemp): Likewise.
39480         * lib/mkostemps.c (mkostemps): Likewise.
39481         * lib/mkstemp.c (mkstemp): Likewise.
39482         * lib/mkstemps.c (mkstemps): Likewise.
39483
39484         xalloc-die-tests: optimize
39485         * tests/test-xalloc-die.sh: Reduce number of processes.
39486
39487 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39488
39489         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39490         patch from ludo@gnu.org (Ludovic Courtès).
39491
39492 2009-11-17  Jim Meyering  <meyering@redhat.com>
39493
39494         version-etc: use proper license string
39495         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39496         * modules/version-etc-fsf: Likewise.
39497
39498 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39499
39500         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39501         printed to stdout.  Deal with EOL differences.
39502
39503 2009-11-17  Eric Blake  <ebb9@byu.net>
39504
39505         unsetenv: work around Solaris bug
39506         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39507         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39508         Reported by Jim Meyering.
39509
39510         vasnprintf: avoid compiler warnings
39511         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39512         variables.
39513         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39514
39515 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39516
39517         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39518         settings since xalloc-die is no longer the self test,
39519         xalloc-die.sh is.
39520
39521 2009-11-17  Jim Meyering  <meyering@redhat.com>
39522
39523         test-xalloc-die.sh: make the code agree with the commit log
39524         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39525         at the end, just in case you happen to have a test-xalloc-die
39526         program in some other PATH directory.
39527
39528         test-xalloc-die.sh: fix a portability bug
39529         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39530         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39531         Otherwise, argv[0] (as often seen in diagnostics) would be too
39532         system-dependent, sometimes with, and sometimes without the leading "./".
39533
39534         version-etc-fsf: relax license to LGPLv3+
39535         * modules/version-etc-fsf (License): Relax license.
39536
39537 2009-11-16  Eric Blake  <ebb9@byu.net>
39538
39539         xalloc-die-tests: avoid printing null pointer
39540         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39541         shell script.
39542         * tests/test-xalloc-die.c (program_name): Declare.
39543         * tests/test-xalloc-die.sh (tmpfiles): New file.
39544
39545         setenv, unsetenv: work around various bugs
39546         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39547         (setenv) [HAVE_SETENV]: Work around bugs.
39548         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39549         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39550         for bugs.
39551         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39552         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39554         * modules/stdlib (Makefile.am): Update substitutions.
39555         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39556         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39557         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39558         * modules/setenv-tests: New test.
39559         * modules/unsetenv-tests: Likewise.
39560         * tests/test-setenv.c: New file.
39561         * tests/test-unsetenv.c: Likewise.
39562
39563 2009-11-16  Jim Meyering  <meyering@redhat.com>
39564
39565         version-etc: relax license to LGPLv3+
39566         * modules/version-etc (License): Relax license.
39567
39568         better AC_REQUIRE expanded-before-required-warning avoidance
39569         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39570         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39571         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39572         which is no longer needed.
39573
39574 2009-11-16  Eric Blake  <ebb9@byu.net>
39575
39576         test-freading: clean up temporary file
39577         * tests/test-freading.c (main): Remove file on success, and use
39578         ASSERT more liberally.
39579         Reported by Jim Meyering.
39580
39581 2009-11-16  Jim Meyering  <meyering@redhat.com>
39582
39583         avoid new AC_REQUIRE expanded-before-required warnings
39584         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39585         merely using it.
39586         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39587         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39588
39589 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39590
39591         * tests/test-xalloc-die.c: New file.
39592         * modules/xalloc-die-tests: New file.
39593         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39594         XFAIL_TESTS so it can be appended by modules.
39595
39596 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39597
39598         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39599         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39600
39601 2009-11-14  Eric Blake  <ebb9@byu.net>
39602
39603         fnmatch: avoid compiler warning
39604         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39605         to silence compiler warning about mismatch signedness in ?:.
39606         Reported by Robert Millan.
39607
39608         intprops: add double-inclusion guard
39609         * lib/intprops.h: Allow idempotent includes.
39610         Suggested by Bruce Korb.
39611
39612         openat: detect Solaris fchownat bug
39613         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39614         penalizing glibc chownat when only lchownat is broken.
39615         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39616         trailing slash bugs.
39617         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39618         * modules/openat-tests (Files): Include more files.
39619         (Depends-on): Add mgetgroups, sleep, stat-time.
39620         (configure.ac): Add additional checks.
39621         (Makefile.am): Build new test.
39622         * tests/test-fchownat.c: New file.
39623
39624         lchown: detect Solaris and FreeBSD bug
39625         * lib/lchown.c (rpl_lchown): Work around bug.
39626         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39628         * modules/unistd (Makefile.am): Populate it.
39629         * lib/unistd.in.h (lchown): Update declaration.
39630         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39631         * modules/lchown-tests: New file.
39632         * tests/test-lchown.h (test_lchown): Likewise.
39633         * tests/test-lchown.c (main): Likewise.
39634
39635         chown: detect Solaris and FreeBSD bug
39636         * lib/chown.c (rpl_chown): Work around bug.
39637         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39638         (gl_PREREQ_CHOWN): Delete.
39639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39640         * modules/unistd (Makefile.am): Populate it.
39641         * lib/unistd.in.h (chown): Update declaration.
39642         * lib/lchown.c (chown): Update client.
39643         * modules/lchown (Depends-on): Add lstat.
39644         * doc/posix-functions/chown.texi (chown): Document the bug.
39645         * doc/posix-functions/getgroups.texi (getgroups): Document
39646         getgroups pitfall.
39647         * modules/chown-tests: New file.
39648         * tests/test-chown.h (test_chown): Likewise.
39649         * tests/test-chown.c (main): Likewise.
39650
39651 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39652
39653         gnulib-tool: correctly detect absence of m4 directories
39654         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39655
39656 2009-11-14  Jim Meyering  <meyering@redhat.com>
39657
39658         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39659         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39660
39661 2009-11-14  John W. Eaton  <jwe@gnu.org>
39662
39663         strftime.h: wrap function declaration in extern "C" block
39664         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39665
39666 2009-11-13  Eric Blake  <ebb9@byu.net>
39667
39668         getgroups: avoid compiler warning
39669         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39670
39671         getgroups: work around FreeBSD bug
39672         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39673         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39674         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39675         * tests/test-getgroups.c (main): Fix buffer overrun.
39676
39677         getgroups: avoid compilation failure
39678         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39679         * modules/getgroups (Depends-on): Add stdint.
39680
39681 2009-11-13  Jim Meyering  <meyering@redhat.com>
39682
39683         test-getgroups: avoid compilation failure
39684         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39685
39686 2009-11-13  Eric Blake  <ebb9@byu.net>
39687
39688         mgetgroups: new module, taken from coreutils
39689         * modules/mgetgroups: New file.
39690         * lib/mgetgroups.h: Likewise.
39691         * lib/mgetgroups.c (mgetgroups): Likewise.
39692         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39693         * MODULES.html.sh (Users and groups): Mention it.
39694
39695         getgroups: don't expose GETGROUPS_T to user
39696         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39697         an element at a time if GETGROUPS_T is wrong size.
39698         * lib/getugroups.h (getugroups): Change signature.
39699         * lib/unistd.in.h (getgroups): Likewise.
39700         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39701         signature needs fixing.
39702         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39703         AC_TYPE_GETGROUPS.
39704         * modules/group-member (Depends-on): Add getgroups.
39705         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39706         (group_member): Rely on getgroups replacement.
39707         * lib/getugroups.c (getugroups): Use gid_t.
39708         * tests/test-getgroups.c (main): Likewise.
39709         * NEWS: Mention the signature change.
39710         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39711         problem with signature.
39712         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39713         GETGROUPS_T is still useful for setgroups.
39714
39715         getgroups, getugroups: provide stubs for mingw
39716         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39717         * lib/getugroups.c (getugroups): Likewise.
39718         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39719         function.  Modernize replacement scheme.
39720         (gl_PREREQ_GETGROUPS): Delete.
39721         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39722         * modules/getgroups (configure.ac): Declare witness.
39723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39724         * modules/unistd (Depends-on): Substitute witness.
39725         * lib/unistd.in.h (getgroups): Declare replacement.
39726
39727         getgroups: avoid calling exit
39728         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39729         drop xalloc.
39730         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39731         dependencies.
39732         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39733         exiting, in the rare case of malloc failure.
39734
39735         getgroups: fix logic error
39736         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39737         has more than 20 groups.
39738         * modules/getgroups-tests: New test.
39739         * tests/test-getgroups.c: New file.
39740
39741 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39742
39743         * tests/test-base64.c: Improve.
39744
39745 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39746
39747         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39748         Blake <ebb9@byu.net>.
39749
39750 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39751
39752         * tests/test-xvasprintf.c: Add %s%s related checks.
39753
39754 2009-11-12  Eric Blake  <ebb9@byu.net>
39755
39756         version-etc: match standards.texi style
39757         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39758         and use <> only for URLs.
39759
39760 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39761
39762         fts: do not fail on a submount during traversal
39763         * lib/fts.c (fts_build): Read the stat info again after opening
39764         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39765         Original report at http://bugzilla.redhat.com/501848.
39766
39767 2009-11-12  Jim Meyering  <meyering@redhat.com>
39768
39769         bootstrap: sync from coreutils
39770         * build-aux/bootstrap (bootstrap_epilogue): New function.
39771         Use git_modules_config in one more place.  This make bootstrap's
39772         --gnulib-srcdir option more useful for testing.
39773
39774         bootstrap: generalize autoheader check
39775         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39776         AC_CONFIG_HEADERS.
39777
39778 2009-11-11  Eric Blake  <ebb9@byu.net>
39779
39780         mkfifoat: use new modules for Solaris and BSD bugs
39781         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39782         * lib/mkfifoat.c (mknodat): Split...
39783         * lib/mknodat.c (mknodat): ...into new file.
39784         * modules/mkfifoat (Files): Ship new file.
39785         (Depends-on): Add mkfifo, mknod.
39786         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39787         (Depends-on): Add symlink.
39788         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39789         redundant with test_mkfifo.h.
39790         (do_mkfifoat, do_mknodat): New helpers.
39791
39792         mknod: new module
39793         * modules/mknod: New file.
39794         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39795         * lib/mknod.c (mknod): Likewise.
39796         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39797         defaults.
39798         * modules/sys_stat (Makefile.am): Substitute them.
39799         * lib/sys_stat.in.h (mknod): Declare replacement.
39800         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39801         Document it.
39802         * doc/posix-functions/mknod.texi (mknod): Likewise.
39803         * modules/mknod-tests: New test.
39804         * tests/test-mknod.c: Likewise.
39805
39806         mkfifo: new module
39807         * modules/mkfifo: New file.
39808         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39809         * lib/mkfifo.c (mkfifo): Likewise.
39810         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39811         defaults.
39812         * modules/sys_stat (Makefile.am): Substitute them.
39813         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39814         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39815         Document it.
39816         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39817         * modules/mkfifo-tests: New test.
39818         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39819         from test-mkfifoat.c.
39820         * tests/test-mkfifo.c: New file.
39821
39822         readlink: detect FreeBSD bug
39823         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39824         slash on symlink.
39825         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39826         * tests/test-readlink.h (test_readlink): Enhance test.
39827
39828         symlink: detect FreeBSD bug
39829         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39830         slash on symlink.
39831         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39832         * tests/test-symlink.h (test_symlink): Enhance test.
39833
39834 2009-11-10  Eric Blake  <ebb9@byu.net>
39835
39836         link: detect FreeBSD bug
39837         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39838         symlink.
39839         * doc/posix-functions/link.texi (link): Document the bug.
39840         * tests/test-link.h (test_link): Enhance test.
39841         * tests/test-linkat.c (main): Update caller.
39842
39843         unlink, remove: detect FreeBSD bug
39844         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39845         slash on symlink.
39846         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39847         * doc/posix-functions/remove.texi (remove): Likewise.
39848         * tests/test-unlink.h (test_unlink): Enhance test.
39849         * tests/test-remove.c (main): Likewise.
39850
39851 2009-11-09  Eric Blake  <ebb9@byu.net>
39852
39853         rename: detect FreeBSD bug
39854         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39855         slash on symlink.
39856         * modules/renameat-tests (Depends-on): Add filenamecat.
39857         * tests/test-rename.h (test_rename): Allow one more errno.
39858         * tests/test-renameat.c (main): Likewise.
39859         * doc/posix-functions/rename.texi (rename): Document the bug.
39860
39861         open: detect FreeBSD bug
39862         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39863         symlink.
39864         * doc/posix-functions/open.texi (open): Document the bug.
39865         * doc/posix-functions/utimes.texi (utimes): Likewise.
39866         * tests/test-open.h (test_open): Add parameters, and test symlink
39867         handling.
39868         * tests/test-open.c (main): Adjust caller.
39869         * tests/test-fcntl-safer.c (main): Likewise.
39870         * modules/open-tests (Depends-on): Add stdbool, symlink.
39871         * modules/fcntl-safer-tests (Depends-on): Likewise.
39872         * tests/test-openat.c (main): Add test-open tests.
39873
39874         stat: detect FreeBSD bug
39875         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39876         symlink.
39877         * doc/posix-functions/stat.texi (stat): Document the bug.
39878         * tests/test-stat.h (test_stat_func): Add argument.
39879         * tests/test-stat.c (main): Adjust caller.
39880         * tests/test-fstatat.c (main): Likewise.
39881         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39882         Reported by Jim Meyering.
39883
39884 2009-11-09  James Youngman  <jay@gnu.org>
39885
39886         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39887         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39888
39889 2009-11-08  Jim Meyering  <meyering@redhat.com>
39890
39891         utimens: remove invalid futimesat call
39892         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39893         It used the file descriptor of the target file as the DIR_FD
39894         parameter and NULL as the file name.  That caused failure with
39895         errno == EFAULT on FreeBSD-8.0-rc2
39896
39897 2009-11-07  Eric Blake  <ebb9@byu.net>
39898
39899         fflush, freadseek: use fseeko, not fseek
39900         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39901         (clear_ungetc_buffer): Avoid potential problems on large files.
39902         * lib/freadseek.c (freadseek): Likewise.
39903         * modules/freadseek (Depends-on): Add fseeko.
39904         * modules/fseek (configure.ac): Set a witness.
39905         * tests/test-fflush.c (main): Use fseeko.
39906         * tests/test-fpurge.c (fseek): Disable link warning.
39907         * tests/test-freadable.c (fseek): Likewise.
39908         * tests/test-freading.c (fseek): Likewise.
39909         * tests/test-fseeko.c (fseek): Likewise.
39910         * tests/test-ftell.c (fseek): Likewise.
39911         * tests/test-ftello.c (fseek): Likewise.
39912         * tests/test-fwritable.c (fseek): Likewise.
39913         * tests/test-fwriting.c (fseek): Likewise.
39914
39915 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39916
39917         * modules/memchr (Depends-on): Drop getpagesize dependency.
39918
39919 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39920
39921         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39922         Reported by Ludovic Courtès.
39923         * build-aux/pmccabe2html: Improve example usage.
39924         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39925
39926 2009-11-06  Jim Meyering  <meyering@redhat.com>
39927
39928         do-release-commit-and-tag: New module.
39929         Automate the release-commit and tag process.
39930         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39931         * modules/do-release-commit-and-tag: New file.
39932         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39933
39934 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39935
39936         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39937         because test-select.c uses inet_pton.
39938
39939 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39940
39941         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39942         GETADDRINFO_LIB.  Bump serial number.
39943         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39944         Suggested by Eric Blake <ebb9@byu.net>.
39945
39946 2009-11-05  Eric Blake  <ebb9@byu.net>
39947
39948         strtod: detect darwin bug
39949         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39950         Reported by Leo Davis.
39951
39952         freopen-safer: new module
39953         * modules/freopen-safer: New module.
39954         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39955         * lib/freopen-safer.c (freopen_safer): New file.
39956         * lib/stdio-safer.h (freopen_safer): New declaration.
39957         * lib/stdio--.h (freopen): New override.
39958         * MODULES.html.sh (File stream based Input/Output): Mention it.
39959         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39960         freopen-safer module.
39961         * doc/posix-functions/stderr.texi (stderr): Likewise.
39962         * doc/posix-functions/stdin.texi (stdin): Likewise.
39963         * doc/posix-functions/stdout.texi (stdout): Likewise.
39964         * modules/freopen-safer-tests: New test.
39965         * tests/test-reopen-safer.c: New file.
39966
39967 2009-11-05  Jim Meyering  <meyering@redhat.com>
39968
39969         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39970         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39971
39972 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39973
39974         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39975
39976 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39977
39978         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39979
39980 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39981
39982         Fix link error.
39983         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39984         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39985
39986 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39987
39988         * tests/test-func.c: Also test value of __func__.
39989
39990 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39991
39992         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39993         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39994
39995 2009-11-05  Bruno Haible  <bruno@clisp.org>
39996
39997         Fix link error.
39998         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39999         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40000         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40001
40002 2009-11-05  Bruno Haible  <bruno@clisp.org>
40003
40004         Tests for module 'inet_pton'.
40005         * modules/inet_pton-tests: New file.
40006         * tests/test-inet_pton.c: New file.
40007
40008 2009-11-05  Bruno Haible  <bruno@clisp.org>
40009
40010         Tests for module 'inet_ntop'.
40011         * modules/inet_ntop-tests: New file.
40012         * tests/test-inet_ntop.c: New file.
40013
40014 2009-11-04  Eric Blake  <ebb9@byu.net>
40015
40016         stdlib-safer: wrap all mkstemp variants
40017         * modules/mkostemp (configure.ac): Set witness.
40018         * modules/mkostemps (configure.ac): Likewise.
40019         * modules/mkstemps (configure.ac): Likewise.
40020         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40021         (mkstemps_safer): Wrap more functions.
40022         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40023         wrapping.
40024         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40025         (mkstemps_safer): Implement the wrappers.
40026
40027         mkstemps, mkostemps: new modules
40028         * modules/mkostemps: New module.
40029         * modules/mkstemps: Likewise.
40030         * lib/mkostemps.c (mkostemps): New file.
40031         * lib/mkstemps.c (mkstemps): Likewise.
40032         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40033         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40035         * modules/stdlib (Makefile.am): Substitute them.
40036         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40037         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40038         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40039         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40040         * MODULES.html.sh (File system functions): Mention them.
40041
40042         tempname: resync from glibc
40043         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40044         same values for __GT_FILE as glibc.  Abort even when assertions
40045         are disabled.
40046         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40047         match its value otherwise.  Allow idempotent inclusion.
40048         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40049         * lib/mkostemp.c (mkostemp): Likewise.
40050         * lib/mkstemp.c (mkstemp): Likewise.
40051         * lib/tmpfile.c (tmpfile): Likewise.
40052         * NEWS: Document this.
40053
40054         utimens: fix use of futimens on older Linux
40055         * lib/utimens.c (fdutimens): Use updated, rather than original,
40056         timespec to avoid bug in older Linux kernel.
40057         Reported by Simon Josefsson.
40058
40059 2009-11-04  Bruno Haible  <bruno@clisp.org>
40060
40061         Make num_processors more flexible and consistent.
40062         * lib/nproc.h (enum nproc_query): New type.
40063         (num_processors): Add a 'query' argument.
40064         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40065         (num_processors): Add a 'query' argument. Test the value of the
40066         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40067         mingw, count the number of CPUs available for the current process.
40068         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40069         Check for sched_getaffinity and sched_getaffinity_np.
40070         * modules/nproc (Depends-on): Add c-ctype, extensions.
40071         * NEWS: Mention the change.
40072
40073 2009-11-03  Bruno Haible  <bruno@clisp.org>
40074
40075         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40076
40077 2009-11-03  Jim Meyering  <meyering@redhat.com>
40078
40079         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40080         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40081         if it is defined.
40082
40083 2009-11-02  Eric Blake  <ebb9@byu.net>
40084
40085         mktime, timegm: share common declaration
40086         * lib/mktime-internal.h: New file.
40087         * lib/mktime.c: Use it rather than open-coding a declaration.
40088         * lib/timegm.c: Likewise.
40089         * modules/mktime (Files): Ship it.
40090         * modules/timegm (Files): Likewise.
40091         Suggested by Bruno Haible.
40092
40093         test-update-copyright: update test to match script changes
40094         * tests/test-update-copyright.sh: Avoid hard-coding perl
40095         location.  Don't update *.bak created by earlier runs.
40096
40097 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40098             Simon Josefsson  <simon@josefsson.org>
40099             Bruno Haible  <bruno@clisp.org>
40100
40101         Fix link error on Solaris 8.
40102         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40103         also in libnsl. Define also INET_PTON_LIB.
40104         * modules/inet_pton (Link): New section.
40105
40106 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40107             Bruno Haible  <bruno@clisp.org>
40108
40109         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40110         * modules/inet_ntop (Link): New section.
40111         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40112
40113 2009-11-02  Eric Blake  <ebb9@byu.net>
40114
40115         maint: avoid compiler warnings in m4 macros
40116         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40117         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40118
40119 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40120
40121         * m4/pmccabe2html.m4: Remove file.
40122         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40123         function.  Change maintainer.
40124         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40125         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40126         Courtès).
40127
40128 2009-10-31  Eric Blake  <ebb9@byu.net>
40129
40130         fseeko: fix m4 regression
40131         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40132         regression from 2009-10-27.
40133         Reported by Ralf Wildenhues.
40134
40135 2009-10-31  Jim Meyering  <meyering@redhat.com>
40136
40137         inttostr: aesthetics and improved (compile-time) safety
40138         Define inttype_is_signed rather than inttype_is_unsigned,
40139         since the sole use is via "#if inttype_is_signed".
40140         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40141         inttype_is_unsigned.
40142         * lib/offtostr.c (inttype_is_signed): Likewise.
40143         * lib/uinttostr.c (inttype_is_signed): Likewise.
40144         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40145         * lib/inttostr.c (inttostr): Use verify to cross-check the
40146         inttype_is_signed value and the signedness of the actual type.
40147         * modules/inttostr (Depends-on): Add verify.
40148
40149 2009-10-30  Eric Blake  <ebb9@byu.net>
40150
40151         build: avoid compiler warnings
40152         * lib/fchmodat.c (lchmod): Mark unused variables.
40153         * lib/getopt.c (_getopt_initialize): Likewise.
40154         * lib/mktime.c (__mktime_internal): Provide prototype.
40155         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40156         older gcc that do not understand #pragma GCC diagnostic.
40157         * lib/uinttostr.c (inttype_is_unsigned): Define.
40158         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40159
40160 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40161
40162         stat: fix compilation on AIX
40163         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40164         only see struct stat64.
40165
40166 2009-10-30  Eric Blake  <ebb9@byu.net>
40167
40168         exclude: make more robust
40169         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40170         rather than masking a coding bug.
40171         Suggested by Bruno Haible.
40172
40173 2009-10-30  Jim Meyering  <meyering@redhat.com>
40174
40175         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40176         Rather than putting #!/usr/bin/perl on the first line,
40177         start with a variant of what's recommended by "man perlrun" that
40178         invokes the first "perl" program from your shell's search path.
40179         * build-aux/gitlog-to-changelog: Replace #!... as above.
40180         Add a "Local Variables" perl mode setting.
40181         Prompted by a patch from Ludovic Courtès.
40182         Improved by Eric Blake.
40183         * build-aux/useless-if-before-free: Likewise.
40184         * build-aux/announce-gen: Likewise.
40185         * build-aux/update-copyright: Likewise.
40186
40187 2009-10-29  Eric Blake  <ebb9@byu.net>
40188
40189         filenamecat-lgpl: adjust clients
40190         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40191         filenamecat.
40192         * modules/renameat (Depends-on): Likewise.
40193
40194         filenamecat: split into filenamecat-lgpl
40195         * modules/filenamecat-lgpl: New module.
40196         * modules/filenamecat (Files): Move library-safe files into
40197         filenamecat-lgpl.
40198         (Depends-on): Add filenamecat-lgpl.
40199         (configure.ac): Declare witness.
40200         * lib/filenamecat.h (file_name_concat): Only declare when using
40201         GPL module.
40202         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40203         Move...
40204         * lib/filenamecat-lgpl.c: ...into new file.
40205         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40206         (gl_FILE_NAME_CONCAT): Use it.
40207         * MODULES.html.sh (File system functions): Mention new module.
40208
40209         argp: avoid memory leak
40210         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40211         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40212         base_name, since the latter malloc()s and can call exit().
40213         Leak introduced 2006-07-03.
40214
40215         dirname-lgpl: adjust clients that don't need full dirname
40216         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40217         * modules/filenamecat (Depends-on): Likewise.
40218         * modules/linkat (Depends-on): Likewise.
40219         * modules/mkancesdirs (Depends-on): Likewise.
40220         * modules/mkdir (Depends-on): Likewise.
40221         * modules/openat (Depends-on): Likewise.
40222         * modules/savewd (Depends-on): Likewise.
40223         * modules/rename (Depends-on): Likewise.
40224         (License): Relax license.
40225         * modules/mkdir-tests (Depends-on): Drop progname.
40226         (Makefile.am): Delete unneeded LDADD.
40227         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40228
40229         dirname: split into dirname-lgpl
40230         * modules/dirname-lgpl: New module.
40231         * modules/dirname (Files): Move library-safe files into
40232         dirname-lgpl.
40233         (Depends-on): Add dirname-lgpl.
40234         (configure.ac): Declare witness.
40235         * modules/double-slash-root (License): Relax license.
40236         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40237         module.
40238         * lib/dirname.c (dir_len, mdir_name): Move...
40239         * lib/dirname-lgpl.c: ...into new file.
40240         * lib/basename.c (last_component, base_len): Move...
40241         * lib/basename-lgpl.c: ...into new file.
40242         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40243         (gl_DIRNAME): Use it.
40244         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40245         Mention new module.
40246         * modules/dirname-tests (Depends-on): Add progname.
40247         * tests/test-dirname.c (program_name): Delete.
40248
40249         mkdir: make safe for libraries
40250         * modules/mkdir (Depends-on): Drop xalloc.
40251         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40252         exit.
40253
40254         tests: avoid some compiler warnings
40255         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
40256         literals.
40257         * tests/test-memchr.c (main): Avoid type mismatch.
40258         * tests/test-arpa_inet.c (main): Avoid unused parameters.
40259         * tests/test-base64.c (main): Likewise.
40260         * tests/test-getdelim.c (main): Likewise.
40261         * tests/test-gethostname.c (main): Likewise.
40262         * tests/test-getline.c (main): Likewise.
40263         * tests/test-netinet_in.c (main): Likewise.
40264         * tests/test-select.c (open_server_socket, main): Likewise.
40265         * tests/test-select-stdin.c (main): Likewise.
40266         * tests/test-sockets.c (main): Likewise.
40267         * tests/test-strsignal.c (main): Likewise.
40268         * tests/test-sys_select.c (main): Likewise.
40269         * tests/test-sys_socket.c (main): Likewise.
40270         * tests/test-u64.c (main): Likewise.
40271         * tests/test-xfprintf-posix.c (main): Likewise.
40272         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40273
40274         sockets: avoid compiler warning
40275         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40276
40277         maint: detect usage(1) and other suspicious exits
40278         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40279
40280 2009-10-29  Jim Meyering  <meyering@redhat.com>
40281
40282         timespec: long-to-int truncation could make timespec_cmp malfunction
40283         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40284         a multiple of 2^32 nanoseconds as no difference.
40285
40286 2009-10-28  Jim Meyering  <meyering@redhat.com>
40287
40288         fprintftime: wrap macro code argument in "do {...} while(0)"
40289         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40290         cpy macro must be a statement that can be followed by a semicolon.
40291         Now that the else clause contains a comment and is hence longer
40292         than one line, I require curly braces.  That in turn requires
40293         that we wrap this code block in the standard do...while(0).
40294
40295         fprintftime: remove stray semicolon from previous change
40296         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40297
40298         fprintftime: avoid a warning about ignored fwrite return value
40299         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40300         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40301         that is unsafe.
40302         * modules/fprintftime (Depends-on): Add ignore-value.
40303
40304         exclude: avoid an unwarranted warning
40305         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40306
40307 2009-10-27  Eric Blake  <ebb9@byu.net>
40308
40309         fseek: avoid compilation failure when fflush is replaced
40310         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40311         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40312         module is in use.
40313         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40314         module is not in use; since REPLACE_FSEEK worked otherwise.
40315         (GNULIB_FTELLO): Likewise for ftell.
40316         Reported by Ian Beckwith and others.
40317
40318 2009-10-27  Bruno Haible  <bruno@clisp.org>
40319
40320         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40321         Reported by Jim Meyering.
40322
40323 2009-10-27  Jim Meyering  <jim@meyering.net>
40324             Bruno Haible  <bruno@clisp.org>
40325
40326         Avoid warning despite dropping the return value of fwrite.
40327         * lib/unicodeio.c: Include ignore-value.h.
40328         (fwrite_success_callback): Explicitly ignore fwrite's return value.
40329         * modules/unicodeio (Depends-on): Add ignore-value.
40330
40331 2009-10-26  Eric Blake  <ebb9@byu.net>
40332
40333         areadlinkat: fix fallback path
40334         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
40335         pointer and zero.
40336
40337 2009-10-22  Pádraig Brady  <P@draigBrady.com>
40338
40339         Use a better IO block size for modern systems
40340         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
40341         * lib/md2.c: Likewise.
40342         * lib/md4.c: Likewise.
40343         * lib/md5.c: Likewise.
40344         * lib/sha1.c: Likewise.
40345         * lib/sha256.c: Likewise.
40346         * lib/sha512.c: Likewise.
40347
40348 2009-10-22  Eric Blake  <ebb9@byu.net>
40349
40350         tests: avoid several compiler warnings
40351         * tests/test-getcwd.c (main): Avoid buffer underflow.
40352         * tests/test-getdate.c (main): String literals are not safe with
40353         putenv, so use setenv.  Declare unused argument.
40354         * modules/getdate-tests (Depends-on): Add setenv.
40355         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
40356         problems with string literals in char *.
40357         * tests/test-hash.c (main): Avoid shadowing declaration.
40358         (insert_new): Treat string literals as char const *.
40359         * tests/test-getopt.h (test_getopt): Likewise.
40360         (getopt_loop): Alter types to minimize casting elsewhere.
40361         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
40362         (test_getopt_long_posix): Likewise.
40363         (do_getopt_long): Add wrapper to minimize casting.
40364         * tests/test-atexit.c (clear_temp_file): Use void.
40365         * tests/test-areadlink-with-size.c (main): Declare unused
40366         arguments.
40367         * tests/test-areadlink.c (main): Likewise.
40368         * tests/test-areadlinkat-with-size.c (main): Likewise.
40369         * tests/test-areadlinkat.c (main): Likewise.
40370         * tests/test-canonicalize-lgpl.c (main): Likewise.
40371         * tests/test-canonicalize.c (main): Likewise.
40372         * tests/test-dirent-safer.c (main): Likewise.
40373         * tests/test-dirname.c (main): Likewise.
40374         * tests/test-dup2.c (main): Likewise.
40375         * tests/test-fchdir.c (main): Likewise.
40376         * tests/test-fcntl-h.c (main): Likewise.
40377         * tests/test-fcntl-safer.c (main): Likewise.
40378         * tests/test-fdopendir.c (main): Likewise.
40379         * tests/test-fdutimensat.c (main): Likewise.
40380         * tests/test-fflush.c (main): Likewise.
40381         * tests/test-filenamecat.c (main): Likewise.
40382         * tests/test-filevercmp.c (main): Likewise.
40383         * tests/test-fopen-safer.c (main): Likewise.
40384         * tests/test-fopen.c (main): Likewise.
40385         * tests/test-fpending.c (main): Likewise.
40386         * tests/test-fpurge.c (main): Likewise.
40387         * tests/test-freading.c (main): Likewise.
40388         * tests/test-fstatat.c (main): Likewise.
40389         * tests/test-fsync.c (main): Likewise.
40390         * tests/test-futimens.c (main): Likewise.
40391         * tests/test-getndelim2.c (main): Likewise.
40392         * tests/test-gettimeofday.c (main): Likewise.
40393         * tests/test-getopt.c (main): Likewise.
40394         * tests/test-i-ring.c (main): Likewise.
40395         * tests/test-inttypes.c (main): Likewise.
40396         * tests/test-link.c (main): Likewise.
40397         * tests/test-lstat.c (main): Likewise.
40398         * tests/test-math.c (main): Likewise.
40399         * tests/test-md5.c (main): Likewise.
40400         * tests/test-memchr2.c (main): Likewise.
40401         * tests/test-memrchr.c (main): Likewise.
40402         * tests/test-mkdir.c (main): Likewise.
40403         * tests/test-mkdirat.c (main): Likewise.
40404         * tests/test-mkfifoat.c (main): Likewise.
40405         * tests/test-open.c (main): Likewise.
40406         * tests/test-openat-safer.c (main): Likewise.
40407         * tests/test-openat.c (main): Likewise.
40408         * tests/test-quotearg.c (main): Likewise.
40409         * tests/test-rawmemchr.c (main): Likewise.
40410         * tests/test-readlink.c (main): Likewise.
40411         * tests/test-remove.c (main): Likewise.
40412         * tests/test-rename.c (main): Likewise.
40413         * tests/test-renameat.c (main): Likewise.
40414         * tests/test-rmdir.c (main): Likewise.
40415         * tests/test-sha1.c (main): Likewise.
40416         * tests/test-signal.c (main): Likewise.
40417         * tests/test-sigaction.c (main): Likewise.
40418         * tests/test-stat.c (main): Likewise.
40419         * tests/test-stat-time.c (main): Likewise.
40420         * tests/test-stddef.c (main): Likewise.
40421         * tests/test-stdint.c (main): Likewise.
40422         * tests/test-stdio.c (main): Likewise.
40423         * tests/test-stdlib.c (main): Likewise.
40424         * tests/test-strchrnul.c (main): Likewise.
40425         * tests/test-strerror.c (main): Likewise.
40426         * tests/test-string.c (main): Likewise.
40427         * tests/test-strtod.c (main): Likewise.
40428         * tests/test-strverscmp.c (main): Likewise.
40429         * tests/test-symlink.c (main): Likewise.
40430         * tests/test-symlinkat.c (main): Likewise.
40431         * tests/test-sys_stat.c (main): Likewise.
40432         * tests/test-sys_time.c (main): Likewise.
40433         * tests/test-time.c (main): Likewise.
40434         * tests/test-unistd.c (main): Likewise.
40435         * tests/test-unlink.c (main): Likewise.
40436         * tests/test-unlinkat.c (main): Likewise.
40437         * tests/test-utimens.c (main): Likewise.
40438         * tests/test-utimensat.c (main): Likewise.
40439         * tests/test-version-etc.c (main): Likewise.
40440         * tests/test-wchar.c (main): Likewise.
40441         * tests/test-wctype.c (main): Likewise.
40442         * tests/test-xprintf-posix.c (main): Likewise.
40443         * tests/test-posixtm.c (main): Likewise.
40444         (STREQ): Delete unused macro.
40445         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
40446         shadowed variables.
40447         * tests/test-memchr.c (main): Likewise.
40448
40449 2009-10-21  Eric Blake  <ebb9@byu.net>
40450
40451         areadlinkat: avoid failure on older glibc
40452         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
40453         rather than mis-comparing 0 against FUNC_RESULT of char*.
40454
40455 2009-10-21  Bruno Haible  <bruno@clisp.org>
40456
40457         * modules/stpncpy (License): Relicense under LGPLv2+.
40458         Reported by David Lutterkort <lutter@redhat.com>.
40459
40460 2009-10-20  Eric Blake  <ebb9@byu.net>
40461
40462         utimensat: work around Solaris 9 bug
40463         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
40464         has trailing slash bugs.
40465         * tests/test-lutimens.h (test_lutimens): Enhance test.
40466         * tests/test-utimens.h (test_utimens): Likewise.
40467         * doc/posix-functions/utime.texi (utime): Enhance documentation.
40468         * doc/posix-functions/utimes.texi (utimes): Likewise.
40469         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40470         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
40471         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
40472         * doc/posix-functions/futimens.texi (futimens): Likewise.
40473
40474         fdutimensat: new module
40475         * modules/fdutimensat: New file.
40476         * lib/fdutimensat.c (fdutimensat): Likewise.
40477         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
40478         * MODULES.html.sh (File system functions): Mention module.
40479         * modules/fdutimensat-tests: New test.
40480         * tests/test-fdutimensat.c: Likewise.
40481
40482         doc: regenerate INSTALL
40483         * doc/INSTALL: Reflect recent autoconf update.
40484         * doc/INSTALL.ISO: Likewise.
40485         * doc/INSTALL.UTF-8: Likewise.
40486
40487 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40488
40489         acl: warn if ACL support is not detected
40490         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40491
40492 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40493
40494         * lib/nproc.h: Add extern "C" block for C++.
40495
40496 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40497             Bruno Haible  <bruno@clisp.org>
40498
40499         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40500         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40501         * doc/posix-functions/isalpha.texi: Likewise.
40502         * doc/posix-functions/isblank.texi: Likewise.
40503         * doc/posix-functions/iscntrl.texi: Likewise.
40504         * doc/posix-functions/isdigit.texi: Likewise.
40505         * doc/posix-functions/isgraph.texi: Likewise.
40506         * doc/posix-functions/islower.texi: Likewise.
40507         * doc/posix-functions/isprint.texi: Likewise.
40508         * doc/posix-functions/ispunct.texi: Likewise.
40509         * doc/posix-functions/isspace.texi: Likewise.
40510         * doc/posix-functions/isupper.texi: Likewise.
40511         * doc/posix-functions/isxdigit.texi: Likewise.
40512
40513 2009-10-18  Bruno Haible  <bruno@clisp.org>
40514
40515         Tests for module 'isblank'.
40516         * modules/isblank-tests: New file.
40517         * tests/test-isblank.c: New file.
40518
40519         New module 'isblank'.
40520         * lib/isblank.c: New file.
40521         * m4/isblank.m4: New file.
40522         * modules/isblank: New file.
40523         * doc/posix-functions/isblank.texi: Mention the new module.
40524
40525 2009-10-18  Bruno Haible  <bruno@clisp.org>
40526
40527         New module 'ctype'.
40528         * lib/ctype.in.h: New file.
40529         * m4/ctype.m4: New file.
40530         * modules/ctype: New file.
40531         * doc/posix-headers/ctype.texi: Mention the new module.
40532
40533 2009-10-18  Jim Meyering  <meyering@redhat.com>
40534
40535         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40536         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40537         right after its initialization, rather than farther down.
40538         Keeping these in close proximity makes it easier to ensure
40539         that each such variable is initialized.  E.g.,
40540
40541             LIB_CLOCK_GETTIME=
40542             AC_SUBST([LIB_CLOCK_GETTIME])
40543
40544         This change also increments these serial numbers.
40545         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40546         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40547         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40548
40549 2009-10-18  Bruno Haible  <bruno@clisp.org>
40550
40551         Don't let environment variables perturb build.
40552         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40553         (gl_PREREQ_GETHRXTIME): ... not here.
40554
40555 2009-10-18  Bruno Haible  <bruno@clisp.org>
40556
40557         Avoid symlink attack in localcharset module.
40558         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40559         (O_NOFOLLOW): Define fallback.
40560         (get_charset_aliases): Don't open the file if it is a symbolic link.
40561         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40562         gl_FCNTL_H.
40563         (gl_FCNTL_H): Require it.
40564         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40565         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40566         Reported by Fergal Glynn <fglynn@veracode.com>.
40567
40568 2009-10-18  Bruno Haible  <bruno@clisp.org>
40569
40570         Implement nproc for mingw.
40571         * lib/nproc.c: Include <windows.h>
40572         (num_processors): On native Windows platforms, try GetSystemInfo.
40573
40574 2009-10-18  Bruno Haible  <bruno@clisp.org>
40575
40576         Implement nproc for IRIX.
40577         * lib/nproc.c: Include <sys/sysmp.h>.
40578         (num_processors): On IRIX systems, try sysmp.
40579         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40580
40581 2009-10-18  Bruno Haible  <bruno@clisp.org>
40582
40583         Implement nproc for HP-UX.
40584         * lib/nproc.c: Include <sys/pstat.h>
40585         (num_processors): On HP-UX systems, try pstat_getdynamic.
40586         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40587         pstat_getdynamic.
40588
40589 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40590             Bruno Haible  <bruno@clisp.org>
40591
40592         Implement nproc for NetBSD, OpenBSD.
40593         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40594         (ARRAY_SIZE): New macro.
40595         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40596         * m4/nproc.m4: New file.
40597         * modules/nproc (Files): Add m4/nproc.m4.
40598         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40599         (Makefile.am): Instead, augment lib_SOURCES.
40600
40601 2009-10-18  Bruno Haible  <bruno@clisp.org>
40602
40603         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40604         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40605         sys/param.h.
40606
40607 2009-10-16  Eric Blake  <ebb9@byu.net>
40608
40609         utimensat: new module
40610         * modules/utimensat: New file.
40611         * lib/utimensat.c (utimensat): Likewise.
40612         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40613         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40614         so we can work around Linux bugs.
40615         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40616         * modules/sys_stat (Makefile.am): Substitute them.
40617         * lib/sys_stat.in.h (utimensat): Declare it.
40618         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40619         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40620         * modules/utimensat-tests: New test.
40621         * tests/test-utimensat.c: Likewise.
40622
40623         utimens: let lutimens work on non-symlinks
40624         * lib/utimens.c (lutimens): Fall back to utimens rather than
40625         failing with ENOSYS, when file is not a symlink.
40626         (utimens): Reduce redirection.
40627         * tests/test-lutimens.h (test_lutimens): Update test to cover
40628         non-symlinks.
40629         * tests/test-utimens.h (test_utimens): Update test to cover
40630         symlinks.
40631         * tests/test-utimens.c (main): Update caller.
40632
40633         utimens: cache whether utimensat syscall works
40634         * lib/utimens.c (utimensat_works_really): New cache variable.
40635         (fdutimens, lutimens): Use it to avoid failing syscall.
40636
40637         test-stat-time, test-utimens: improve portability
40638         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40639         ext4 on alpha, and for cygwin.
40640         * tests/test-utimens-common.h: New file.
40641         (nap): Factor delays into single function.
40642         * tests/test-lutimens.h (test_lutimens): Use new header.
40643         * tests/test-futimens.h (test_futimens): Likewise.
40644         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40645         timestamps to occur from same machine, as was done previously for
40646         test_utimens.
40647         * modules/utimens-tests (Files): Ship new file.
40648         * modules/futimens-tests (Files): Likewise.
40649         Reported in part by Jim Meyering.
40650
40651         sys_stat: sort replacement declarations
40652         * lib/sys_stat.in.h: Sort declarations.
40653         * lib/futimens.c (futimens): Fix typo.
40654
40655 2009-10-15  Jim Meyering  <meyering@redhat.com>
40656
40657         don't let environment settings perturb build
40658         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40659         could cause a configure-time and/or build-time malfunction.
40660         Typically, a configure-time function-in-library test is performed
40661         via code like this:
40662
40663           LIB_VAR=
40664           AC_SUBST([LIB_VAR])
40665           prefix_saved_LIBS=$LIBS
40666             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40667                        [test "$ac_cv_search_FUNC" = "none required" ||
40668                         LIB_VAR=$ac_cv_search_FUNC])
40669           LIBS=$prefix_saved_LIBS
40670
40671         However, in each of the files affected by this change, the LIB_VAR=
40672         initialization was omitted.  Thus, when set in the environment, its
40673         value would propagate into generated Makefiles when FUNC is not found
40674         in LIB_NAME.
40675         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40676         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40677         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40678
40679 2009-10-14  Eric Blake  <ebb9@byu.net>
40680
40681         fchdir: avoid infinite recursion in mingw
40682         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40683         recursing.
40684
40685         test-stat-time: port to mingw
40686         * tests/test-stat-time.c (force_unlink): Return a value.
40687         (test_ctime) [W32]: Fix compilation error.
40688         (nap): Don't call usleep with too large an argument.  Use
40689         force_unlink.
40690         * doc/pastposix-functions/usleep.texi (usleep): Document the
40691         portability issue.
40692
40693 2009-10-13  Jim Meyering  <meyering@redhat.com>
40694
40695         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40696         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40697         * modules/pipe-filter-ii: Likewise.
40698         * modules/sys_socket-tests: Likewise.
40699         * modules/tsearch-tests: Likewise.
40700         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40701         (check): Depend on it.
40702
40703 2009-10-12  Eric Blake  <ebb9@byu.net>
40704
40705         utimens-tests: port to NFS file systems
40706         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40707         comparisons to avoid spurious failures from timestamp drift
40708         between NFS machines.
40709
40710 2009-10-12  Eric Blake  <ebb9@byu.net>
40711
40712         stat-time-tests: minor cleanups
40713         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40714         * tests/test-stat-time.c (nap): Separate assignment from call.
40715         Suggested by Paolo Bonzini and Bruno Haible.
40716
40717         sys_stat: guarantee struct timespec
40718         * lib/sys_stat.in.h (includes): Always include <time.h>
40719         * modules/sys_stat (Depends-on): Add time.
40720         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40721         mode_t permission values.
40722         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40723         get at subsecond timestamps.
40724
40725 2009-10-10  Eric Blake  <ebb9@byu.net>
40726
40727         futimens: new module
40728         * modules/futimens: New file.
40729         * lib/futimens.c (futimens): Likewise.
40730         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40731         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40732         we can work around Linux bugs.
40733         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40734         * modules/sys_stat (Makefile.am): Substitute them.
40735         * lib/sys_stat.in.h (futimens): Declare it.
40736         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40737         * doc/posix-functions/futimens.texi (futimens): Likewise.
40738         * modules/futimens-tests: New test.
40739         * tests/test-futimens.c: Likewise.
40740
40741         utimens: introduce fdutimens
40742         * lib/utimens.h (fdutimens): New prototype.
40743         * lib/utimens.c (gl_futimens): Move guts...
40744         (fdutimens): ...to new interface.
40745         * tests/test-utimens.c (do_fdutimens): Use it.
40746
40747         utimens: add UTIME_NOW and UTIME_OMIT support
40748         * lib/utimens.c (validate_timespec, update_timespec): New helper
40749         functions.
40750         (gl_futimens, lutimens): Use them.
40751         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40752         stdbool, sys_stat.
40753         (Link): Mention resulting library dependency.
40754         * modules/utimecmp (Link): Likewise.
40755         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40756         (Makefile.am): Pick up library dependency.
40757         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40758         definition.
40759         * tests/test-sys_stat.c: Test the definitions.
40760         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40761         * NEWS: Document library dependency.
40762
40763         utimecmp: support symlink timestamps
40764         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40765         hashing when possible.  Use pathconf when available.
40766         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40767         * modules/utimecmp (Depends-on): Add lstat.
40768
40769         utimens: add lutimens interface
40770         * lib/utimens.c (lutimens): New function.
40771         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40772         * lib/utimens.h (lutimens): Declare new interface.
40773         * tests/test-utimens.c (main): Enhance test.
40774         * tests/test-lutimens.h (test_lutimens): New file.
40775         * modules/utimens-tests (Files): Distribute it.
40776         (Depends-on): Add symlink.
40777         (configure.ac): Check for usleep.
40778
40779         utimens: validate futimens usage
40780         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40781         fewer syscalls on failure later on.  Avoid compiler warning on
40782         mingw.
40783         * modules/utimens (Depends-on): Add dup2.
40784
40785         utimens: add test
40786         * modules/utimens-tests: New test.
40787         * tests/test-utimens.h: New file.
40788         * tests/test-futimens.h: Likewise.
40789         * tests/test-utimens.c: Likewise.
40790
40791         doc: mention timestamp portability issues
40792         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40793         instead.
40794         * doc/posix-functions/utime.texi (utime): Likewise.
40795         * doc/posix-functions/utimes.texi (utimes): Likewise.
40796         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40797         instead.
40798         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40799         module.
40800         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40801         Mention weakness with symlink timestamps.
40802         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40803         to utimensat/futimens instead.
40804         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40805
40806         test-dup2: enhance test
40807         * tests/test-dup2.c (main): Also check AT_FDCWD.
40808
40809         test-stat-time: avoid more spurious failures
40810         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40811         xfs; and avoid race if the two timestamps cross quantization edge.
40812
40813         relocatable: prefer 'file system' over 'filesystem'
40814         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40815         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40816         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40817         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40818         * lib/relocatable.c (compute_curr_prefix): Likewise.
40819
40820 2009-10-10  Jim Meyering  <meyering@redhat.com>
40821
40822         stat-time-tests: check for the usleep function
40823         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40824
40825 2009-10-10  Bruno Haible  <bruno@clisp.org>
40826
40827         * modules/xnanosleep: Put the Link section after the Include section.
40828
40829 2009-10-09  Eric Blake  <ebb9@byu.net>
40830
40831         dup2: work around FreeBSD 6.1 bug
40832         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40833         * doc/posix-functions/dup2.texi (dup2): Document it.
40834         Reported by Nelson H. F. Beebe and Jim Meyering.
40835
40836         test-stat-time: port to buggy NFS clients
40837         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40838         (test_ctime): Also skip test if mtime and ctime are skewed.
40839
40840         maint: prefer 'file system' over 'filesystem'
40841         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40842         * doc/posix-functions/lstat.texi (lstat): Likewise.
40843         * lib/file-has-acl.c (file_has_acl): Likewise.
40844         * lib/fwriteerror.c [TEST]: Likewise.
40845         * tests/test-areadlink.h (test_areadlink): Likewise.
40846         * tests/test-areadlinkat-with-size.c (main): Likewise.
40847         * tests/test-areadlinkat.c (main): Likewise.
40848         * tests/test-canonicalize-lgpl.c (main): Likewise.
40849         * tests/test-canonicalize.c (main): Likewise.
40850         * tests/test-fstatat.c (main): Likewise.
40851         * tests/test-linkat.c (main): Likewise.
40852         * tests/test-lstat.h (test_lstat_func): Likewise.
40853         * tests/test-mkdir.h (test_mkdir): Likewise.
40854         * tests/test-readlink.h (test_readlink): Likewise.
40855         * tests/test-remove.c (main): Likewise.
40856         * tests/test-rename.h (test_rename): Likewise.
40857         * tests/test-renameat.c (main): Likewise.
40858         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40859         * tests/test-symlink.h (test_symlink): Likewise.
40860         * tests/test-symlinkat.c (main): Likewise.
40861         * tests/test-unlink.h (test_unlink_func): Likewise.
40862         * tests/test-unlinkat.c (main): Likewise.
40863
40864         maint: make realtime library usage explicit
40865         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40866         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40867         * modules/settime (Link): Likewise.
40868         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40869
40870         test-stat-time: speed up execution
40871         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40872         warning on mingw.
40873         (nap): New helper function.
40874         (prepare_test): Use it to reduce sleep time.
40875         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40876         execution.
40877         * modules/stat-time-tests (configure.ac): Check for usleep.
40878
40879 2009-10-09  Jim Meyering  <meyering@redhat.com>
40880
40881         selinux-h: always use getfilecon wrappers
40882         * lib/getfilecon.c: New file.
40883         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40884         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40885         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40886         (fgetfilecon): Provide a stub.
40887         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40888         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40889         file unconditionally.
40890         When <selinux/selinux.h> is found, arrange to use wrappers.
40891         * modules/selinux-h (Files): Add getfilecon.c.
40892         (Makefile.am): Substitute include-next-related bits
40893         into the now-always-generated selinux/selinux.h file.
40894         * doc/glibc-functions/lgetfilecon.texi: New file.
40895         * doc/glibc-functions/fgetfilecon.texi: New file.
40896         * doc/glibc-functions/getfilecon.texi: New file.
40897         * doc/glibc-functions/getfilecon-desc.texi: New file.
40898         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40899         which to pull in the new files.
40900         * MODULES.html.sh (Misc): Add selinux-h.
40901
40902 2009-10-08  Jim Meyering  <meyering@redhat.com>
40903
40904         unistd: fix comment typo
40905         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40906
40907 2009-10-08  Eric Blake  <ebb9@byu.net>
40908
40909         areadlink: use SIZE_MAX consistently
40910         * modules/areadlink (Depends-on): Add stdint.
40911         * modules/areadlink-with-size (Depends-on): Likewise.
40912         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40913         gives NULL; drop sys/types, since unistd gives size_t; and add
40914         stdint for SIZE_MAX.
40915         (SIZE_MAX): Rely on headers.
40916         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40917         and add stdint.
40918         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40919         (SIZE_MAX): Likewise.
40920         (INITIAL_BUF_SIZE): Turn into enum.
40921         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40922
40923 2009-10-08  Jim Meyering  <meyering@redhat.com>
40924
40925         areadlinkat: avoid compilation failure
40926         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40927         Fix typo in comment.
40928
40929 2009-10-07  Eric Blake  <ebb9@byu.net>
40930
40931         areadlinkat-with-size: new module
40932         * modules/areadlinkat-with-size: New module.
40933         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40934         * lib/areadlink.h (areadlinkat): Declare it.
40935         * MODULES.html.sh (File system functions): Mention it.
40936         * modules/areadlinkat-with-size-tests: New test.
40937         * tests/test-areadlinkat-with-size.c: New file.
40938
40939         xreadlinkat: new module
40940         * modules/xreadlinkat: New module.
40941         * lib/xreadlinkat.c (xreadlinkat): New file.
40942         * lib/xreadlink.h (xreadlinkat): Declare it.
40943         * MODULES.html.sh (File system functions): Mention it.
40944
40945         areadlinkat: new module
40946         * lib/at-func.c (FUNC_FAIL): New define.
40947         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40948         * modules/areadlinkat: New module.
40949         * lib/linkat.c (areadlinkat): Move...
40950         * lib/areadlinkat.c (areadlinkat): ...to new file.
40951         * lib/areadlink.h (areadlinkat): Declare it.
40952         * modules/linkat (Depends-on): Add areadlinkat.
40953         * MODULES.html.sh (File system functions): Mention it.
40954         * modules/areadlinkat-tests: New test.
40955         * tests/test-areadlinkat.c: New file.
40956
40957         areadlink, areadlink-with-size: add tests
40958         * modules/areadlink-tests: New test.
40959         * modules/areadlink-with-size-tests: Likewise.
40960         * tests/test-areadlink.h: New file.
40961         * tests/test-areadlink.c: Likewise.
40962         * tests/test-areadlink-with-size.c: Likewise.
40963
40964         maint: minor cleanups
40965         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40966         _UNUSED_PARAMETER_ instead.
40967         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40968         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40969         * modules/linkat-tests (Files): Distribute test-link.h.
40970
40971         openat, utimens: whitespace cleanup
40972         * lib/openat.c: Prefer space throughout, rather than mix of 8
40973         spaces vs. tabs.
40974         * lib/at-func.c: Likewise.
40975         * lib/utimens.c: Likewise.
40976
40977         openat: avoid using wrong fd
40978         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40979         working directory chooses same fd.
40980         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40981
40982         mkdir, mkdirat: fix cygwin 1.5.x bug
40983         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40984         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40985         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40986         bug.
40987         (gl_PREREQ_MKDIR): Delete unused macro.
40988         * modules/mkdir (Files): Track file rename.
40989         (configure.ac): Update macro name.
40990         * modules/openat (Depends-on): Add mkdir.
40991         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40992
40993         mkdir, mkdirat: add tests
40994         * modules/mkdir-tests: New test.
40995         * tests/test-mkdir.h: New file.
40996         * tests/test-mkdir.c: Likewise.
40997         * tests/test-mkdirat.c: Likewise.
40998         * modules/openat-tests (Files): Add new files.
40999         (Makefile.am): Run new test.
41000
41001 2009-10-06  Eric Blake  <ebb9@byu.net>
41002
41003         doc: tweak *at function documentation
41004         * doc/posix-functions/faccessat.texi (faccessat): Mention
41005         known issue with replacement.
41006         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41007         * doc/posix-functions/linkat.texi (linkat): Likewise.
41008         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41009         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41010         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41011         * doc/posix-functions/renameat.texi (renameat): Likewise.
41012         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41013
41014         openat: fix GNU/Hurd bug in unlinkat
41015         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41016         broken.
41017         * doc/posix-functions/unlink.texi (unlink): Document this.
41018         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41019
41020         fdopendir: fix GNU/Hurd bug
41021         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41022         allowing non-directory fds.
41023         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41024         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41025         * modules/dirent (Makefile.am): Substitute it.
41026         * lib/dirent.in.h (fdopendir): Declare replacement.
41027         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41028         * tests/test-fdopendir.c (main): Test something other than
41029         /dev/null, since on Hurd that behaves like a directory.
41030
41031         test-symlink: port to GNU/Hurd
41032         * tests/test-symlink.h (test_symlink): Relax expected errno.
41033
41034         doc: tweak more cygwin information
41035         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41036         now compatible with glibc.
41037         * doc/posix-functions/getopt.texi (getopt): Likewise.
41038
41039         getopt-gnu: add another test
41040         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41041         guarantee behavior relied on by m4.
41042         * tests/test-getopt.c (main): Use it.
41043         * modules/getopt-posix-tests (Depends-on): Add setenv.
41044         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41045
41046         getopt: fix compilation on darwin
41047         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41048         include.
41049         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41050         Reported by Ludovic Courtès.
41051
41052 2009-10-06  Bruno Haible  <bruno@clisp.org>
41053
41054         * modules/size_max (Description): Discourage its use.
41055         Reported by Simon Josefsson.
41056
41057 2009-10-06  Jim Meyering  <meyering@redhat.com>
41058
41059         linkat: avoid compilation failure
41060         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41061
41062 2009-10-05  Eric Blake  <ebb9@byu.net>
41063
41064         linkat: support Linux 2.6.17
41065         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41066         linkat on Linux, but allow cache variable override.
41067         * lib/linkat.c (rpl_linkat): Define override.
41068         * modules/linkat (Depends-on): Add symlinkat.
41069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41070         * modules/unistd (Makefile.am): Substitute it.
41071         * lib/unistd.in.h (linkat): Declare replacement.
41072         Reported by Pádraig Brady.
41073
41074         quotearg: port test to systems with C.UTF-8 locale
41075         * tests/test-quotearg.c (struct result_strings): Add another
41076         member, differentiating between C.ASCII and C.UTF-8 handling.
41077         (compare_strings): Add parameter.
41078         (main): Adjust all callers.
41079
41080         getopt: avoid clash with FreeBSD _getopt_internal
41081         * lib/getopt.in.h (_getopt_internal): Override the name.
41082         * lib/getopt_int.h (includes): Pick up any overrides.
41083         Reported by Reuben Thomas.
41084
41085         hash: allow C89 compilation
41086         * lib/hash.c (check_tuning): Move declaration before statement.
41087         Reported by Reuben Thomas.
41088
41089 2009-10-05  Karl Berry  <karl@gnu.org>
41090
41091         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41092
41093 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41094             Bruno Haible  <bruno@clisp.org>
41095
41096         * lib/uname.c (uname): Use a table-driven algorithm to compute
41097         Windows NT versions.
41098
41099 2009-10-04  Bruno Haible  <bruno@clisp.org>
41100
41101         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41102         program_invocation_short_name.
41103         * modules/progname (configure.ac): Test for presence of
41104         program_invocation_short_name.
41105         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41106
41107 2009-10-04  Bruno Haible  <bruno@clisp.org>
41108
41109         * lib/progname.c (set_program_name): Fix comment.
41110         Reported by Jim Meyering.
41111
41112 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41113             Bruno Haible  <bruno@clisp.org>
41114
41115         * lib/uname.c: Include <string.h>.
41116         (uname): Do only one call to GetVersionEx in the common case.
41117
41118 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41119             Bruno Haible  <bruno@clisp.org>
41120
41121         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41122         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41123         (uname): Add support for Windows CE and various non-x86 CPU types.
41124
41125 2009-10-03  Bruno Haible  <bruno@clisp.org>
41126
41127         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41128         invocation to tests/configure.ac.
41129         Reported by Ian Beckwith <ianb@erislabs.net>.
41130
41131 2009-10-02  Eric Blake  <ebb9@byu.net>
41132
41133         fchdir: avoid compiler warning
41134         * lib/fchdir.c (canonicalize_file_name)
41135         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41136
41137         test-open: support mingw errno values
41138         * tests/test-open.h (test_open): Relax test.
41139         * tests/test-fopen.h (test_fopen): Likewise.
41140         * tests/test-openat-safer.c (main): Likewise.
41141
41142         open: fix opening directory on mingw
41143         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41144
41145         test-open: on GNU/Hurd, /dev/null is a directory
41146         * tests/test-fopen.h (main): Rename...
41147         (test_fopen): ...to this.  Use a guaranteed non-directory when
41148         confirming open behavior on trailing slash.
41149         * tests/test-openat-safer.c (main): Likewise.
41150         * tests/test-open.h (main): Likewise....
41151         (test_open): ...to this.
41152         * tests/test-fopen.c (main): Adjust caller.
41153         * tests/test-fopen-safer.c (main): Likewise.
41154         * tests/test-open.c (main): Likewise.
41155         * tests/test-fcntl-safer.c (main): Likewise.
41156         Reported by Samuel Thibault.
41157
41158         rename, fchdir: don't ignore chdir failure
41159         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41160         * lib/rename.c (rpl_rename) [W32]: Likewise.
41161         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41162         an empty destination directory if source cannot be renamed,
41163         although there is still possibility for failure.
41164         * doc/posix-functions/rename.texi (rename): Document the race.
41165         Reported by Jim Meyering.
41166
41167         maint: cleanup whitespace in recent commits
41168         * lib/rename.c (rpl_rename): Remove tabs.
41169         * tests/test-link.h (test_link): Likewise.
41170         * lib/fchdir.c (get_name): Likewise.
41171         Reported by Jim Meyering.
41172
41173 2009-10-02  Ben Pfaff  <blp@gnu.org>
41174
41175         relocatable-prog-wrapper: Add missing dependency on
41176         double-slash-root.
41177         * modules/relocatable-prog-wrapper: Add dependency.
41178         Reported by Ian Beckwith <ianb@erislabs.net>.
41179
41180 2009-10-02  Eric Blake  <ebb9@byu.net>
41181
41182         renameat: fix Solaris bugs
41183         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41184         needed fixing.
41185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41186         * modules/stdio (Makefile.am): Substitute it.
41187         * lib/stdio.in.h (renameat): Declare replacement.
41188         * lib/renameat.c (rpl_renameat): Implement fix.
41189
41190         renameat: new module
41191         * modules/renameat: New file.
41192         * lib/renameat.c (renameat): Likewise.
41193         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41195         * modules/stdio (Makefile.am): Substitute them.
41196         * lib/stdio.in.h (renameat): Declare it.
41197         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41198         * doc/posix-functions/renameat.texi (renameat): Likewise.
41199         * modules/renameat-tests: New test.
41200         * tests/test-renameat.c: Likewise.
41201
41202         rename: fix mingw bugs
41203         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41204         directory overwrite bugs.
41205
41206         rename: fix another cygwin 1.5 bug
41207         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41208         checks.
41209         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41210         unnecessary cygwin workarounds.  Also work around bug with moving
41211         full directory onto an empty one.
41212         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41213
41214         rename-dest-slash: merge into rename module
41215         * modules/rename-dest-slash (Status): Mark obsolete.
41216         (Depends-on): Add rename.
41217         (Files): Let rename do it all.
41218         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41219         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41220         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41221         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41222         * lib/rename.c (rpl_rename): Update comments.
41223
41224         rename: fix cygwin 1.5.x bugs
41225         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41226         * lib/rename.c (rpl_rename): Work around them.
41227         * modules/rename (Depends-on): Add same-inode.
41228
41229         rename: fix Solaris 10 bug
41230         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41231         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41232         was the only bug.
41233
41234         rename: fix Solaris 9 bug
41235         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41236         on non-directory.  Avoid calling exit.
41237         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41238         strdup.
41239         * modules/rename-tests (Depends-on): Drop lstat.
41240         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41241         (gl_PREREQ_RENAME): Delete unused macro.
41242
41243         rename-dest-slash: fix NetBSD bug
41244         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41245         links.
41246         * modules/rename-dest-slash (Depends-on): Add same-inode.
41247
41248         rename-tests: new test, exposes several platform bugs
41249         * modules/rename-tests: New file.
41250         * tests/test-rename.h: Likewise.
41251         * tests/test-rename.c: Likewise.
41252         * doc/posix-functions/rename.texi (rename): Improve documentation,
41253         including bugs that will eventually be fixed in gnulib.
41254
41255 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
41256
41257         * lib/uname.c: Include <stdlib.h>
41258         (uname): Assume version info is available.
41259
41260 2009-10-02  Jim Meyering  <meyering@redhat.com>
41261
41262         gnu-web-doc-update: correct --help output
41263         * build-aux/gnu-web-doc-update: Make --help output relevant.
41264
41265         gnu-web-doc-update: add standard options
41266         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41267
41268         gnu-web-doc-update: New module.
41269         Use this script to automatically update the on-line web documentation
41270         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41271         * modules/gnu-web-doc-update: New file, from coreutils.
41272         * build-aux/gnu-web-doc-update: New script.
41273
41274 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41275
41276         link: LoadLibrary is not needed.
41277         * lib/link.c: Use GetModuleHandle.
41278
41279 2009-10-01  Eric Blake  <ebb9@byu.net>
41280
41281         getopt: bump serial number
41282         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41283         change.
41284
41285         tests: tighten link, rmdir, and remove tests
41286         * tests/test-link.h (includes): No need to use <config.h> here.
41287         Clean up if directory hard link was created, otherwise test for
41288         trailing '.'.
41289         * tests/test-linkat.c (main): Simplify.
41290         * tests/test-remove.c (main): Enhance test for trailing '.'.
41291         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41292
41293 2009-10-01  Jim Meyering  <meyering@redhat.com>
41294
41295         maint.mk: requiring "make major" was annoying, for a "minor" release.
41296         What is intended is "stable", to contrast with alpha and beta,
41297         so require "make stable", not "make major".
41298         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41299         (get_tool_versions): Likewise.
41300         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41301
41302 2009-09-30  Ben Pfaff  <blp@gnu.org>
41303
41304         Fix broken build of replacement for Windows tmpfile().
41305         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41306         flags argument added along with the 'mkostemp' module.
41307
41308 2009-09-28  Bruno Haible  <bruno@clisp.org>
41309
41310         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41311         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41312         to 'remove_elt'.
41313         (gl_list_remove): Update.
41314         * lib/gl_list.c (gl_list_remove): Update.
41315         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41316         to 'remove_elt'.
41317         (gl_oset_remove): Update.
41318         * lib/gl_list.c (gl_oset_remove): Update.
41319         Reported by Eric Blake.
41320
41321 2009-09-28  Eric Blake  <ebb9@byu.net>
41322
41323         doc: mention yet more cygwin 1.7 status
41324         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41325         cygwin.
41326         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41327         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41328
41329         argp: fix test failure
41330         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
41331         that are not upper-case.  Pass correct range to tolower.
41332
41333 2009-09-27  Jim Meyering  <meyering@redhat.com>
41334
41335         test-yesno: work around sparc-dash here-document infelicity
41336         Without this change, the literal \177 byte in a here document
41337         would make dash 0.5.5.1-3 access uninitialized memory.
41338         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
41339         Instead, use a marker, "@", and filter through tr to create the desired
41340         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
41341
41342 2009-09-27  Bruno Haible  <bruno@clisp.org>
41343
41344         Disable untested support for new flavours of ACLs on AIX.
41345         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
41346         progress.
41347         * lib/set-mode-acl.c (qset_acl): Likewise.
41348
41349 2008-12-07  Bruno Haible  <bruno@clisp.org>
41350
41351         Add support for new flavours of ACLs on AIX. (Untested.)
41352         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
41353         (file_has_acl): Add support for newer AIX.
41354         * lib/set-mode-acl.c (qset_acl): Likewise.
41355         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
41356         Rainer Tammer <tammer@tammer.net>.
41357
41358 2009-09-26  Eric Blake  <ebb9@byu.net>
41359
41360         argp: fix compilation of getopt
41361         * lib/getopt.in.h (includes): Use different guard than glibc.
41362         Reported by Sergey Poznyakoff.
41363
41364         doc: mention more cygwin 1.7 status
41365         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
41366         bug.
41367         * doc/posix-functions/execl.texi (execl): Likewise.
41368         * doc/posix-functions/execle.texi (execle): Likewise.
41369         * doc/posix-functions/execlp.texi (execlp): Likewise.
41370         * doc/posix-functions/execv.texi (execv): Likewise.
41371         * doc/posix-functions/execve.texi (execve): Likewise.
41372         * doc/posix-functions/execvp.texi (execvp): Likewise.
41373         * doc/glibc-functions/canonicalize_file_name.texi
41374         (canonicalize_file_name): Cygwin 1.7 now provides this.
41375         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
41376         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
41377         on AT_SYMLINK_NOFOLLOW.
41378
41379 2009-09-24  Eric Blake  <ebb9@byu.net>
41380
41381         test-linkat: make test more robust
41382         * tests/test-linkat.c (main): Avoid collision with EEXIST.
41383
41384         getopt: fix inclusion guards for cygwin
41385         * modules/getopt-posix (Depends-on): Add include-next.
41386         (Makefile.am): Substitute more items in replacement header.
41387         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41388         <getopt.h>.
41389         * lib/getopt.in.h (includes): Use split inclusion guard, and
41390         prefer <getopt.h> over include <unistd.h> when one is present.
41391         (option): Also override name of 'struct option'.
41392
41393         same-inode: revert prior change; it is not yet ready
41394         * NEWS: Undo mention of this change.
41395         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41396         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41397         * lib/cycle-check.c (cycle_check): Likewise.
41398         * lib/same.c (same_name): Likewise.
41399         * lib/at-func2.c (at_func2): Likewise.
41400
41401 2009-09-23  Eric Blake  <ebb9@byu.net>
41402
41403         linkat: new module
41404         * modules/linkat: New file.
41405         * lib/at-func2.c (at_func2): Likewise.
41406         * lib/linkat.c (linkat): Likewise.
41407         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41408         * lib/openat-priv.h (at_func2): Add declaration.
41409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41410         * modules/unistd (Makefile.am): Substitute them.
41411         * lib/unistd.in.h (linkat): Declare it.
41412         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41413         * doc/posix-functions/linkat.texi (linkat): Likewise.
41414         * doc/posix-functions/link.texi (link): Tweak wording.
41415         * tests/test-link.c (main): Move guts...
41416         * tests/test-link.h (test_link): ...into new file.
41417         * modules/linkat-tests: New test.
41418         * tests/test-linkat.c: Likewise.
41419         * modules/link-tests (Files): Ship new file.
41420         (Depends-on): Add stdbool.
41421
41422         dirname: add library-safe mdir_name
41423         * lib/dirname.h (mdir_name): New prototype.
41424         * lib/dirname.c (dir_name): Move guts...
41425         (mdir_name): ...to new function that avoids xalloc_die.
41426
41427         fchdir: another mingw fix
41428         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41429         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41430         on mingw (where it has not yet been ported), and make it optional
41431         elsewhere.
41432         (_gl_register_fd): Use it.
41433
41434         same-inode: make SAME_INODE tri-state, to port to mingw
41435         * NEWS: Mention this change.
41436         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
41437         st_ino always being 0.
41438         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41439         * lib/cycle-check.c (cycle_check): Likewise.
41440         * lib/same.c (same_name): Likewise.
41441
41442         lstat: avoid mingw compilation error
41443         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
41444         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
41445         lstat ourselves.
41446         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
41447         was adequate.
41448         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
41449         the checks for lstat.
41450         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
41451
41452         link: fix test failure on Solaris 9
41453         * lib/link.c (rpl_link): Don't assume link will catch bogus
41454         trailing slash on source.
41455
41456         test-symlinkat: enhance test
41457         * tests/test-readlink.c (main): Move guts...
41458         * tests/test-readlink.h (test_readlink): ...into new file.
41459         * tests/test-symlink.c (main): Move guts...
41460         * tests/test-symlink.h (test_symlink): ...into new file.
41461         * tests/test-symlinkat.c (main): Use new files for further
41462         coverage.
41463         (do_symlink, do_readlink): New helper functions.
41464         * modules/symlink-tests (Files): Ship new file.
41465         (Depends-on): Add stdbool.
41466         * modules/readlink-tests (Files): Ship new file.
41467         (Depends-on): Add stdbool.
41468         * modules/symlinkat-tests (Files): Use new files.
41469
41470 2009-09-23  Eric Blake  <ebb9@byu.net>
41471
41472         readlink: document portability issue with symlink length
41473         * doc/posix-functions/lstat.texi (lstat): Mention that some file
41474         systems have bogus st_size on symlinks, and mention the
41475         areadlink-with-size module.
41476         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41477         * doc/posix-functions/readlink.texi (readlink): Mention the
41478         areadlink module, and ERANGE failure.
41479         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41480         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
41481
41482         readlink: fix Solaris 9 bug with trailing slash
41483         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41484         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41485         * doc/posix-functions/readlink.texi (readlink): Document this.
41486         * modules/readlink-tests: New test.
41487         * tests/test-readlink.c: Likewise.
41488
41489         readlink: fix cygwin 1.5.x bug with return type
41490         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41491         * lib/unistd.in.h (readlink): Use ssize_t.
41492         * lib/readlink.c (readlink): Likewise.
41493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41494         * modules/unistd (Makefile.am): Substitute it.
41495         * lib/unistd.in.h (readlink): Declare replacement.
41496         * doc/posix-functions/readlink.texi (readlink): Document this.
41497
41498         symlink: use throughout gnulib
41499         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41500         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41501         symlink is not used.
41502         * modules/symlinkat (Depends-on): Add symlink.
41503         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41504         * modules/canonicalize-tests (Depends-on): Likewise.
41505         * modules/lstat-tests (Depends-on): Likewise.
41506         * modules/openat-tests (Depends-on): Likewise.
41507         * modules/remove-tests (Depends-on): Likewise.
41508         * modules/rmdir-tests (Depends-on): Likewise.
41509         * modules/unlink-tests (Depends-on): Likewise.
41510         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41511         * tests/test-canonicalize.c (symlink): Likewise.
41512         * tests/test-fstatat.c (symlink): Likewise.
41513         * tests/test-lstat.c (symlink): Likewise.
41514         * tests/test-remove.c (symlink): Likewise.
41515         * tests/test-rmdir.c (symlink): Likewise.
41516         * tests/test-unlink.c (symlink): Likewise.
41517         * tests/test-unlinkat.c (symlink): Likewise.
41518
41519         symlink: new module, for Solaris 9 bug
41520         * modules/symlink: New file.
41521         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41522         * lib/symlink.c: Likewise.
41523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41524         * modules/unistd (Makefile.am): Substitute them.
41525         * lib/unistd.in.h (symlink): Declare replacement.
41526         * MODULES.html.sh (File system functions): Mention it.
41527         * doc/posix-functions/symlink.texi (symlink): Likewise.
41528         * modules/symlink-tests: New test.
41529         * tests/test-symlink.c: Likewise.
41530
41531 2009-09-23  Bruno Haible  <bruno@clisp.org>
41532
41533         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41534         when needed.
41535         Test case: gnulib-tool --import --with-tests atexit inttypes.
41536         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41537
41538 2009-09-23  Bruno Haible  <bruno@clisp.org>
41539
41540         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41541         subcommand, not in a subshell.
41542
41543 2009-09-22  Eric Blake  <ebb9@byu.net>
41544
41545         unistd: sort replacement declarations
41546         * lib/unistd.in.h: Sort declarations.
41547
41548         open, openat: minor optimization
41549         * lib/open.c (open): If open succeeded, len is non-zero.
41550         * lib/openat.c (rpl_openat): Likewise.
41551
41552         link-follow: ensure correct result
41553         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41554         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41555         distinguish between possible failures.
41556
41557 2009-09-21  Eric Blake  <ebb9@byu.net>
41558
41559         fts: avoid compiler warning
41560         * lib/fts.c (dirent_inode_sort_may_be_useful)
41561         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41562
41563 2009-09-19  Bruno Haible  <bruno@clisp.org>
41564
41565         * lib/progreloc.c (canonicalize_file_name): New declaration.
41566
41567 2009-09-19  Eric Blake  <ebb9@byu.net>
41568
41569         link: fix quoting
41570         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41571
41572         openat: fix openat bugs on Solaris 9
41573         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41574         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41575         * modules/openat (Depends-on): Add open.
41576         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41577         * modules/fcntl-h (Makefile.am): Substitute it.
41578         * lib/fcntl.in.h (openat): Declare replacement.
41579         * doc/posix-functions/openat.texi (openat): Document this.
41580
41581         openat: move fstatat and unlinkat into correct files
41582         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41583         compiled.
41584         * lib/openat.c (fstatat, unlinkat): Move...
41585         * lib/fstatat.c (fstatat): ...into correct files.
41586         * lib/unlinkat.c (unlinkat): Likewise.
41587
41588         openat: fix unlinkat bugs on Solaris 9
41589         * lib/unlinkat.c (unlinkat): New file.
41590         * modules/openat (Depends-on): Add unlink.
41591         (Files): Distribute it.
41592         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41593         trailing slash behavior is broken.
41594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41595         * modules/unistd (Makefile.am): Substitute it.
41596         * lib/unistd.in.h (unlinkat): Declare replacement.
41597         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41598
41599         openat: fix fstatat bugs on Solaris 9
41600         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41601         stat.
41602         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41603
41604         test-unlinkat: enhance test, to expose Solaris 9 bug
41605         * tests/test-unlink.c (main): Factor guts...
41606         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41607         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41608         * tests/test-rmdir.c (main): Adjust caller.
41609         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41610         (unlinker): New helper function.
41611         (rmdirat): Enhance check.
41612         * modules/rmdir-tests (Depends-on): Add stdbool.
41613         * modules/unlink-tests (Depends-on): Likewise.
41614         (Files): Add test-unlink.h.
41615         * modules/openat-tests (Files): Likewise.
41616         (Depends-on): Add unlinkdir.
41617
41618         test-fstatat: new test, to expose Solaris 9 bugs
41619         * tests/test-stat.c (main): Factor guts...
41620         * tests/test-stat.h (test_stat_func): ...into new file.
41621         * tests/test-lstat.c (main): Factor guts...
41622         * tests/test-lstat.h (test_lstat_func): ...into new file.
41623         * tests/test-fstatat.c: New file.
41624         * modules/stat-tests (Files): Add test-stat.h.
41625         * modules/lstat-tests (Files): Add test-lstat.h.
41626         (Depends-on): Add stdbool.
41627         * modules/openat-tests (Depends-on): Add pathmax.
41628         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41629         (Makefile.am): Run new test.
41630
41631         remove: new module, for mingw and Solaris 9 bugs
41632         * modules/remove: New file.
41633         * lib/remove.c: Likewise.
41634         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41636         * modules/stdio (Makefile.am): Use them.
41637         * lib/stdio.in.h (remove): Declare replacement.
41638         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41639         * doc/posix-functions/remove.texi (remove): Likewise.
41640         * modules/remove-tests: New test.
41641         * tests/test-remove.c: Likewise.
41642
41643         unlink: new module, for Solaris 9 bug
41644         * modules/unlink: New file.
41645         * lib/unlink.c: Likewise.
41646         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41648         * modules/unistd (Makefile.am): Use them.
41649         * lib/unistd.in.h (stat): Declare replacement.
41650         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41651         * doc/posix-functions/unlink.texi (unlink): Likewise.
41652         * modules/unlink-tests: New test.
41653         * tests/test-unlink.c: Likewise.
41654
41655         lstat: fix Solaris 9 bug
41656         * lib/lstat.c (lstat): Also check for trailing slash on
41657         non-symlink, non-directories.  Use stat module to simplify logic.
41658         * doc/posix-functions/lstat.texi (lstat): Document it.
41659         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41660         (configure.ac): Check for symlink.
41661         * tests/test-lstat.c (main): Add more tests.
41662
41663         stat: add as dependency to other modules
41664         * modules/chown (Depends-on): Add stat.
41665         * modules/euidaccess (Depends-on): Likewise.
41666         * modules/fchdir (Depends-on): Likewise.
41667         * modules/isdir (Depends-on): Likewise.
41668         * modules/link (Depends-on): Likewise.
41669         * modules/lstat (Depends-on): Likewise.
41670         * modules/mkdir-p (Depends-on): Likewise.
41671         * modules/modechange (Depends-on): Likewise.
41672         * modules/open (Depends-on): Likewise.
41673         * modules/readlink (Depends-on): Likewise.
41674         * modules/same (Depends-on): Likewise.
41675
41676         stat: fix Solaris 9 bug
41677         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41678         slash.
41679         * lib/stat.c (rpl_stat): Work around it.
41680         * doc/posix-functions/stat.texi (stat): Update documentation.
41681
41682         stat: new module, for mingw bug
41683         * modules/stat: New file.
41684         * lib/stat.c: Likewise.
41685         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41686         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41687         * modules/sys_stat (Makefile.am): Use them.
41688         * lib/sys_stat.in.h (stat): Declare replacement.
41689         * lib/openat.c (fstatat): Deal with lstat and stat being function
41690         macros.
41691         * modules/openat (Depends-on): Add inline.
41692         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41693         * doc/posix-functions/stat.texi (stat): Likewise.
41694         * modules/stat-tests: New test.
41695         * tests/test-stat.c: Likewise.
41696
41697 2009-09-19  Jim Meyering  <meyering@redhat.com>
41698
41699         syntax-check: detect unnecessary inclusion of canonicalize.h
41700         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41701
41702 2009-09-19  Eric Blake  <ebb9@byu.net>
41703
41704         canonicalize-lgpl: adjust clients to use correct header
41705         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41706         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41707         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41708         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41709         * lib/progreloc.c (includes): Likewise.
41710
41711 2009-09-19  Jim Meyering  <meyering@redhat.com>
41712
41713         test-posixtm.c: correct a comment
41714         * tests/test-posixtm.c: Correct first-line comment.
41715         Spotted by Eric Blake.
41716
41717 2009-09-16  Jim Meyering  <meyering@redhat.com>
41718
41719         posixtm-tests: make T const-correct; add a test case
41720         * tests/test-posixtm.c (T): Declare const.
41721         Add a test for -(2^31+1).
41722         Remove useless can-succeed-only-in-2002 test.
41723
41724         posixtm-tests: adjust the sole failing test
41725         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41726         expected output matches what mktime now produces.  Cross-checked via
41727         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41728
41729         posixtm: move #ifdef'd tests into a new module
41730         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41731         * tests/test-posixtm.c: ... this new file.
41732         * modules/posixtm-tests: New module.
41733
41734 2009-09-19  Eric Blake  <ebb9@byu.net>
41735
41736         openat: simplify use of at-func.c
41737         * lib/at-func.c (includes): Include prerequisites here, to
41738         simplify requirements on client files.
41739         * lib/openat-priv.h: Add double-inclusion guard.
41740         * lib/faccessat.c (includes): Simplify.
41741         * lib/fchmodat.c (includes): Likewise.
41742         * lib/fchownat.c (includes): Likewise.
41743         * lib/mkdirat.c (includes): Likewise.
41744         * lib/mkfifoat.c (includes): Likewise.
41745         * lib/symlinkat.c (includes): Likewise.
41746
41747         openat: allow return of fd 0
41748         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41749         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41750         unistd-safer.
41751         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41752         <fcntl.h>; this module does not leak fds.
41753         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41754         must be allowed to return 0, leaving openat_safer to add the
41755         safety.
41756         (openat_permissive): Avoid writing to just-opened fd 2 if
41757         restoring the current directory fails.
41758         * lib/openat-die.c (openat_restore_fail): Add comment.
41759         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41760         (save_cwd): Guarantee safe fd, but without use of open_safer.
41761         * tests/test-openat.c: New test.
41762         * modules/openat-tests (Files, Makefile.am): Distribute and build
41763         new file.
41764
41765         relocatable-prog-wrapper: fix build
41766         * modules/relocatable-prog-wrapper (Files): Update name of
41767         canonicalize m4 file, broken on 2009-09-17.
41768         Reported by emad hajjar <aleppos@hotmail.com>.
41769
41770 2009-09-19  Bruno Haible  <bruno@clisp.org>
41771
41772         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41773         * lib/safe-alloc.c: Likewise.
41774         Reported by Ian Beckwith <ianb@erislabs.net>.
41775
41776 2009-09-18  Bruno Haible  <bruno@clisp.org>
41777
41778         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41779         Reported by <erobles@sensacd.com.mx>.
41780
41781 2009-09-17  Eric Blake  <ebb9@byu.net>
41782
41783         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41784         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41785         slashes when checking if last component is missing.
41786         * tests/test-canonicalize.c (main): Test this.
41787
41788         canonicalize, canonicalize-lgpl: honor // if distinct from /
41789         * modules/canonicalize (Files): Add double-slash-root.m4.
41790         * modules/canonicalize-lgpl (Files): Likewise.
41791         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41792         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41793         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41794         fallback definition.
41795         (canonicalize_filename_mode): Use it to protect //.
41796         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41797         (__realpath): Likewise.
41798         * tests/test-canonicalize.c (main): Test this.
41799         * tests/test-canonicalize-lgpl.c (main): Likewise.
41800         * modules/canonicalize-tests (Depends-on): Add same-inode.
41801         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41802
41803         canonicalize-lgpl: fix glibc bug with trailing slash
41804         * m4/canonicalize-lgpl.m4: Move contents...
41805         * m4/canonicalize.m4: ...here.
41806         (gl_CANONICALIZE_LGPL): Factor realpath check...
41807         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41808         glibc 2.3.5 bug, fixed 2005-04-27.
41809         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41810         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41811         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41812         * modules/canonicalize-lgpl (Files): Manage file rename.
41813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41814         * modules/stdlib (Makefile.am): Substitute witness.
41815         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41816         is needed.
41817         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41818         replacement is required.
41819         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41820         * doc/glibc-functions/canonicalize_file_name.texi
41821         (canonicalize_file_name): Document this.
41822         * doc/posix-functions/realpath.texi (realpath): Likewise.
41823
41824         canonicalize-lgpl: reject non-directory with trailing slash
41825         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41826         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41827         catches failures in glibc 2.3.5.
41828         * tests/test-canonicalize.c (main): Likewise.
41829
41830         canonicalize-lgpl: use native realpath if it works
41831         * lib/canonicalize-lgpl.c (realpath): Guard with
41832         FUNC_REALPATH_WORKS.
41833         * lib/stdlib.in.h (realpath): Make declaration optional based on
41834         HAVE_REALPATH.
41835         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41836         native realpath works.
41837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41838         * modules/stdlib (Makefile.am): Substitute witness.
41839
41840         canonicalize, canonicalize-lgpl: use <stdlib.h>
41841         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41842         (Include): Mention <stdlib.h>.
41843         (configure.ac): Mention functions we provide.
41844         * modules/canonicalize (configure.ac): Likewise.
41845         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41846         realpath if canonicalize_file_name is missing.
41847         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41848         * modules/stdlib (Makefile.am): Substitute witnesses.
41849         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41850         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41851         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41852         * NEWS: Document this.
41853         * doc/glibc-functions/canonicalize_file_name.texi
41854         (canonicalize_file_name): Likewise.
41855         * doc/posix-functions/realpath.texi (realpath): Likewise.
41856         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41857
41858         test-canonicalize: consolidate into single C program
41859         * tests/test-canonicalize.sh: Delete; move setup into...
41860         * tests/test-canonicalize.c (main): ...the program, making it
41861         easier to run in debugger.  Add some tests.
41862         * modules/canonicalize-tests (Files): Remove unused file.
41863         (Depends-on): Add progname.
41864         (configure.ac, Makefile.am): Simplify.
41865
41866         test-canonicalize-lgpl: consolidate into single C program
41867         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41868         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41869         easier to run in debugger.  Add some tests.
41870         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41871         (configure.ac, Makefile.am): Simplify.
41872
41873         canonicalize: avoid resolvepath
41874         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41875         unnecessary checks.
41876         * lib/canonicalize.c (includes): Simplify.
41877         (canonicalize_file_name): Drop resolvepath implementation.
41878         * modules/canonicalize (Depends-on): Drop filenamecat.
41879
41880         canonicalize: don't lose errno
41881         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41882         over calls to free.
41883
41884         canonicalize: simplify errno handling
41885         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41886         assignment.
41887
41888         canonicalize, canonicalize-lgpl: update module dependencies
41889         * modules/canonicalize (Depends-on): Add extensions, lstat,
41890         pathmax, stdlib.
41891         (Files): Drop pathmax.h.
41892         (configure.ac): Adjust macro name.
41893         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41894         lstat, stdlib, sys_stat.
41895         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41896         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41897         extensions.
41898         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41899         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41900         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41901         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41902         declaration, if available.
41903         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41904         we can rely on the readlink module.
41905         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41906         (includes): Use <unistd.h> unconditionally.
41907
41908 2009-09-17  Eric Blake  <ebb9@byu.net>
41909
41910         maint: make Include sections of modules consistent
41911         * modules/alloca: Use only header name; no need to list #include.
41912         * modules/alloca-opt: Likewise.
41913         * modules/arpa_inet: Likewise.
41914         * modules/canon-host: Likewise.
41915         * modules/configmake: Likewise.
41916         * modules/dirent: Likewise.
41917         * modules/eealloc: Likewise.
41918         * modules/environ: Likewise.
41919         * modules/fchdir: Likewise.
41920         * modules/fcntl: Likewise.
41921         * modules/fcntl-h: Likewise.
41922         * modules/gethrxtime: Likewise.
41923         * modules/gettime: Likewise.
41924         * modules/ignore-value: Likewise.
41925         * modules/inet_ntop: Likewise.
41926         * modules/inet_pton: Likewise.
41927         * modules/inttypes: Likewise.
41928         * modules/isnand-nolibm: Likewise.
41929         * modules/isnanf-nolibm: Likewise.
41930         * modules/mbchar: Likewise.
41931         * modules/mbfile: Likewise.
41932         * modules/mbiter: Likewise.
41933         * modules/mbuiter: Likewise.
41934         * modules/netdb: Likewise.
41935         * modules/netinet_in: Likewise.
41936         * modules/nproc: Likewise.
41937         * modules/pagealign_alloc: Likewise.
41938         * modules/poll: Likewise.
41939         * modules/printf-frexp: Likewise.
41940         * modules/pthread: Likewise.
41941         * modules/putenv: Likewise.
41942         * modules/random_r: Likewise.
41943         * modules/relocatable-prog: Likewise.
41944         * modules/search: Likewise.
41945         * modules/select: Likewise.
41946         * modules/selinux-h: Likewise.
41947         * modules/settime: Likewise.
41948         * modules/signal: Likewise.
41949         * modules/size_max: Likewise.
41950         * modules/socklen: Likewise.
41951         * modules/ssize_t: Likewise.
41952         * modules/stdarg: Likewise.
41953         * modules/stdbool: Likewise.
41954         * modules/stddef: Likewise.
41955         * modules/stdint: Likewise.
41956         * modules/stdio: Likewise.
41957         * modules/stdlib: Likewise.
41958         * modules/string: Likewise.
41959         * modules/strings: Likewise.
41960         * modules/sys_file: Likewise.
41961         * modules/sys_ioctl: Likewise.
41962         * modules/sys_select: Likewise.
41963         * modules/sys_socket: Likewise.
41964         * modules/sys_stat: Likewise.
41965         * modules/sys_time: Likewise.
41966         * modules/sys_times: Likewise.
41967         * modules/sys_utsname: Likewise.
41968         * modules/sys_wait: Likewise.
41969         * modules/sysexits: Likewise.
41970         * modules/time: Likewise.
41971         * modules/times: Likewise.
41972         * modules/tmpfile: Likewise.
41973         * modules/trim: Likewise.
41974         * modules/unistd: Likewise.
41975         * modules/wchar: Likewise.
41976         * modules/wctype: Likewise.
41977
41978 2009-09-17  Bruno Haible  <bruno@clisp.org>
41979
41980         Make getdate.y compile on QNX and NetBSD 5 / i386.
41981         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41982         TIME_T_FITS_IN_LONG_INT.
41983         * lib/getdate.y (long_time_t): New type.
41984         (relative_time): Change type of 'seconds' field to long_time_t.
41985         (get_date): Update types of local variables. Check against overflow
41986         during conversion from long_time_t to time_t.
41987         Reported by Matt Kraai <kraai@ftbfs.org>
41988         and Hasso Tepper <hasso@netbsd.org>.
41989
41990 2009-09-17  Bruno Haible  <bruno@clisp.org>
41991
41992         * modules/COPYING: Update copyright years.
41993         * modules/README: Likeiwse.
41994         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41995         Reported by Ian Beckwith <ianb@erislabs.net>.
41996
41997 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41998
41999         * users.txt: Update references for gnuit package.
42000
42001 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42002
42003         * m4/getdelim.m4: Fix typo in copyright line.
42004
42005 2009-09-17  Bruno Haible  <bruno@clisp.org>
42006
42007         * lib/atoll.c: Use the standard header with GPL copyright.
42008         * lib/argz.in.h: Likewise.
42009         * lib/glob.c: Likewise.
42010         * lib/glob-libc.h: Likewise.
42011         * lib/random_r.c: Likewise.
42012         * lib/siglist.h: Likewise.
42013         * lib/strsignal.c: Likewise.
42014         Reported by Ian Beckwith <ianb@erislabs.net>.
42015
42016 2009-09-17  Eric Blake  <ebb9@byu.net>
42017
42018         rmdir: ensure correct dependency order
42019         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42020
42021 2009-09-17  Bruno Haible  <bruno@clisp.org>
42022
42023         Disable assertion that fails on NetBSD 5 / i386.
42024         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42025         Reported by Sam Steingold <sds@gnu.org>
42026         and Hasso Tepper <hasso@netbsd.org>.
42027
42028 2009-09-16  Eric Blake  <ebb9@byu.net>
42029
42030         unlinkdir: port to mingw
42031         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42032         on which no one can unlink a directory.
42033
42034         stdlib: sort witness names
42035         * modules/stdlib (Makefile.am): Sort replacements.
42036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42037         * lib/stdlib.in.h: Likewise.
42038
42039         parse-duration-tests: avoid link failure
42040         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42041         LIBINTL.
42042         Reported by Tom G. Christensen.
42043
42044         openat-tests: ensure unlinkat behaves like rmdir
42045         * tests/test-rmdir.c (main): Factor guts...
42046         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42047         * modules/rmdir-tests (Files): Ship new file.
42048         * modules/openat-tests: New test.
42049         * tests/test-unlinkat.c: Likewise.
42050
42051         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42052         * modules/rmdir-errno (Status, Notice): Now obsolete.
42053
42054         rmdir: work around cygwin 1.5.x and mingw bugs
42055         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42056         * lib/rmdir.c (rmdir): Work around it.
42057         * modules/rmdir (Status, Notice): No longer obsolete.
42058         (Files): Add dos.m4.
42059         (Depends-on): Add unistd.
42060         (configure.ac): Set witnesses.
42061         (License): Relax to LGPLv2+.
42062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42063         * modules/unistd (Makefile.am): Substitute witnesses.
42064         * lib/unistd.in.h (rmdir): Declare replacement.
42065         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42066         * modules/rmdir-tests: New tests.
42067         * tests/test-rmdir.c: Likewise.
42068
42069 2009-09-15  Eric Blake  <ebb9@byu.net>
42070
42071         fchdir: improve use of replacement functions
42072         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42073         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42074         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42075         REPLACE_CLOSEDIR.
42076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42077         * modules/sys_stat (Makefile.am): Substitute correct witness.
42078         * modules/dirent (Makefile.am): Likewise.
42079         * modules/unistd (Makefile.am): Likewise.
42080         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42081         * lib/unistd.in.h (dup): Likewise.
42082         * lib/sys_stat.in.h (fstat): Likewise.
42083
42084         maint: ignore gnulib-tool temp files
42085         * .gitignore: Ignore files created during gnulib-tool --test.
42086
42087 2009-09-13  Jim Meyering  <meyering@redhat.com>
42088
42089         posixtm: don't reject a time that specify "60" as the number of seconds
42090         * lib/posixtm.c (posixtime): The code to reject invalid dates
42091         would also reject a time specified with the .60 suffix.
42092         But POSIX allows that, in order to accommodate leap seconds.
42093         So don't reject it.
42094         (main): Adjust tests accordingly.
42095         * modules/posixtm (Depends-on): Add stpcpy.
42096
42097 2009-09-11  Jim Meyering  <meyering@redhat.com>
42098
42099         announce-gen: include [$release_type] in emitted Subject:
42100         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42101         e.g., [stable] in the emitted Subject: line.
42102
42103 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42104
42105         Remove obsolete macros from several modules.
42106         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42107         obsolete Autoconf macros with their modern counterparts.
42108         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42109         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42110         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42111         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42112         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42113         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42115         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42116         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42117         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42118         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42119         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42120         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42121         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42122         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42123         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42124         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42125         * m4/time_r.m4 (gl_TIME_R): Likewise.
42126         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42127         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42128         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42129
42130         Fix copyright header in build-aux scripts.
42131         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42132         recommendation.
42133         * build-aux/ncftpput-ftp: Likewise.
42134         * build-aux/update-copyright: Likewise.
42135
42136 2009-09-09  Eric Blake  <ebb9@byu.net>
42137
42138         test-link: allow Linux choice of errno
42139         * tests/test-link.c (main): Relax test for alternate error.
42140
42141         strndup: fix improper m4 caching
42142         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42143         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42144         (gl_PREREQ_STRNDUP): Delete.
42145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42146         * modules/string (Makefile.am): Substitute it.
42147         * lib/string.in.h (strndup): Modernize prototype.
42148
42149         getcwd: port to mingw
42150         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42151         different from the POSIX assumptions made throughout the getcwd
42152         module; fortunately, the mingw getcwd does not need replacement.
42153         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42154         * modules/getcwd-tests: New test.
42155         * tests/test-getcwd.c: Likewise.
42156
42157         link: fix platform bugs
42158         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42159         * lib/link.c (link): Work around them.  Fix related mingw bug.
42160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42161         * modules/unistd (Makefile.am): Substitute it.
42162         * lib/unistd.in.h (link): Declare replacement.
42163         * doc/posix-functions/link.texi (link): Document this.
42164         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42165
42166         test-link: consolidate into single C program, test more cases
42167         * tests/test-link.sh: Delete.
42168         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42169         at least Cygwin and Solaris.
42170         * modules/link-tests (Files): Remove unused file.
42171         (Depends-on): Add errno, sys_stat.
42172         (Makefile.am): Simplify.
42173
42174 2009-09-08  Bruno Haible  <bruno@clisp.org>
42175
42176         Work around towlower, towupper bug on mingw.
42177         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42178         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42179         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42180         * doc/posix-functions/towupper.texi: Likewise.
42181         Reported by Eric Blake.
42182
42183 2009-09-08  Jim Meyering  <meyering@redhat.com>
42184
42185         build: don't try to run autoheader if we don't use it
42186         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42187         is not used in configure.ac.
42188
42189 2009-09-08  Eric Blake  <ebb9@byu.net>
42190
42191         euidaccess: fix compilation error
42192         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42193
42194         rawmemchr: relax license
42195         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42196         okay.
42197         Reported by Jim Meyering.
42198
42199         mkfifoat: new module
42200         * modules/mkfifoat: New file.
42201         * lib/mkfifoat.c: Likewise.
42202         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42203         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42204         * modules/sys_stat (Makefile.am): Use them.
42205         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42206         * MODULES.html.sh (File system functions): Mention module.
42207         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42208         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42209         * modules/mkfifoat-tests: New test.
42210         * tests/test-mkfifoat.c: Likewise.
42211
42212         strchrnul: relax license
42213         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42214         okay.
42215         Reported by Jim Meyering.
42216
42217 2009-09-08  Eric Blake  <ebb9@byu.net>
42218
42219         fstatat: fix compilation on Solaris
42220         * lib/fstatat.c (includes): Add fcntl.h.
42221         Reported by Pádraig Brady.
42222
42223 2009-09-07  Eric Blake  <ebb9@byu.net>
42224
42225         rename: modernize replacement
42226         * modules/rename (Depends-on): Add stdio.
42227         (configure.ac): Declare witness.
42228         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42229         stdio take care of replacement.
42230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42231         * modules/stdio (Makefile.am): Substitute them.
42232         * lib/stdio.in.h (rename): Declare replacement.
42233         * lib/rename.c (includes): Allow cross-compilation to non-windows
42234         machines.
42235         * doc/posix-functions/rename.texi (rename): Improve
42236         documentation.
42237
42238         stdio: sort witness names
42239         * modules/stdio (Makefile.am): Sort replacements.
42240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42241         * lib/stdio.in.h: Likewise.
42242
42243         getcwd: minor cleanups
42244         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42245         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42246
42247         openat: provide more convenience names
42248         * modules/faccessat (configure.ac): Add C witness.
42249         * lib/unistd.in.h (readlinkat): Fix typo.
42250         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42251         convenience wrappers.
42252         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42253         wrappers in syntax checks.
42254
42255 2009-09-06  Eric Blake  <ebb9@byu.net>
42256
42257         doc: fix comments in recent patches
42258         * lib/faccessat.c: Mention correct function.
42259         * lib/fchmodat.c: Likewise.
42260         * lib/fchownat.c: Likewise.
42261         * lib/symlinkat.c: Likewise.
42262         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
42263         constants.
42264
42265         faccessat, symlinkat: continue cleanup of previous patch
42266         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42267         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42268         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42270         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42271         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42272         set.
42273
42274 2009-09-06  Bruno Haible  <bruno@clisp.org>
42275
42276         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42277         (fstatat): Declare if GNULIB_FSTATAT is set.
42278         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42279         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42280         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42281         * modules/fcntl-h (Files): Remove m4/openat.m4.
42282         * modules/sys_stat (Files): Remove m4/openat.m4.
42283         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42284         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42285         * modules/unistd (Files): Remove m4/openat.m4.
42286         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42287         GNULIB_OPENAT.
42288         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42289         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42290         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42291         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42292         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42293         gl_OPENAT_DEFAULTS.
42294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42295         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42296         Don't require gl_OPENAT_DEFAULTS.
42297         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42298         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42299         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42300         (gl_OPENAT_DEFAULTS): Remove macro.
42301
42302 2009-09-06  Bruno Haible  <bruno@clisp.org>
42303
42304         * modules/openat (configure.ac): Remove unneeded witness.
42305
42306 2009-09-06  Bruno Haible  <bruno@clisp.org>
42307
42308         Set errno to ENOSYS when a function is entirely unsupported.
42309         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42310         EOPNOTSUPP.
42311         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42312         * modules/chown (Depends-on): Remove errno.
42313
42314 2009-09-06  Bruno Haible  <bruno@clisp.org>
42315
42316         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42317
42318 2009-09-06  Bruno Haible  <bruno@clisp.org>
42319
42320         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42321
42322 2009-09-06  Ben Pfaff  <blp@gnu.org>
42323             Bruno Haible  <bruno@clisp.org>
42324
42325         Work around a glibc bug in strtok_r.
42326         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42327         Undefine if UNDEFINE_STRTOK_R is set.
42328         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
42329         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42330         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
42331         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
42332         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
42333         UNDEFINE_STRTOK_R.
42334         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
42335
42336 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
42337
42338         exclude: minor fix
42339         * lib/exclude.c: Include wctype.h
42340
42341 2009-09-06  Akim Demaille  <demaille@gostai.com>
42342
42343         bootstrap: improve error message
42344         * build-aux/bootstrap (find_tool): Upon failure, report the list
42345         of candidates.
42346         Honor the initial value of the envvar.
42347
42348 2009-09-05  Eric Blake  <ebb9@byu.net>
42349
42350         symlinkat: new module
42351         * modules/symlinkat: New file.
42352         * lib/symlinkat.c: Likewise.
42353         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
42354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42355         * modules/unistd (Makefile.am): Use them.
42356         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
42357         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
42358         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
42359         * MODULES.html.sh (File system functions): Mention module.
42360         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42361         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42362         * modules/symlinkat-tests: New test.
42363         * tests/test-symlinkat.c: Likewise.
42364
42365         test-openat-safer: add more checks
42366         * tests/test-openat-safer.c (main): Check more code paths.
42367
42368 2009-09-05  Jim Meyering  <meyering@redhat.com>
42369
42370         syntax-check: detect unnecessary inclusion of openat.h
42371         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
42372
42373 2009-09-05  Bruno Haible  <bruno@clisp.org>
42374
42375         Support towlower, towupper.
42376         * doc/posix-functions/towlower.texi: Mention module wctype.
42377         * doc/posix-functions/towupper.texi: Likewise.
42378         * lib/wctype.in.h (towlower, towupper): New functions.
42379         * tests/test-wctype.c: Include stdio.h, stdlib.h.
42380         (ASSERT): New macro.
42381         (e): New variable.
42382         (main): Test also towlower, towupper. Test WEOF argument.
42383         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42384
42385 2009-09-05  Bruno Haible  <bruno@clisp.org>
42386
42387         Fix conversion behaviour when the input is invalid.
42388         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42389         mark occurring in first pass of indirect conversion.
42390         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42391         input.
42392         Found by clang's static analyzer.
42393
42394 2009-09-05  Bruno Haible  <bruno@clisp.org>
42395
42396         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42397         where direct conversion is possible.
42398
42399 2009-09-04  Eric Blake  <ebb9@byu.net>
42400
42401         openat: fail with ENOENT on empty name
42402         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42403         buffer.
42404
42405         link-follow: fix logic bug in prior patch
42406         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
42407         reversed sense of yes and no in prior patch.  Avoid confusing
42408         compilation failure with desired semantics.
42409
42410         link-follow: accommodate mingw and cross-compilation
42411         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
42412         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
42413         cross-compilation results to -1, to make linkat easier to
42414         implement when cross-compiling.  Trivially support mingw.
42415         * modules/link-follow (configure.ac): Call new name.
42416         * NEWS: Mention this.
42417
42418 2009-09-03  Eric Blake  <ebb9@byu.net>
42419
42420         faccessat: compile replacement
42421         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
42422         needed.
42423
42424         fts: fix compilation error
42425         * lib/fts.c (includes): Re-add "openat.h", for
42426         openat_needs_fchdir.
42427
42428         faccessat: new module
42429         * modules/faccessat: New file.
42430         * lib/faccessat.c: Likewise.
42431         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42433         * modules/unistd (Makefile.am): Use it.
42434         * lib/unistd.in.h (faccessat): Declare it.
42435         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42436         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
42437         * MODULES.html.sh (File system functions): Mention it.
42438         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
42439         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42440
42441         euidaccess: prefer POSIX over non-standard implementation
42442         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
42443         * lib/euidaccess.c (euidaccess): Use it if available.
42444
42445         openat: make template easier to use
42446         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
42447         AT_FUNC_F2 to be undefined.
42448         (VALIDATE_FLAG): New macro; use it to reject bad flags.
42449         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
42450         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
42451         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
42452         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
42453         Likewise.
42454         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
42455         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
42456         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
42457         Likewise.
42458
42459         openat: declare in POSIX headers
42460         * NEWS: Mention this.
42461         * modules/openat (configure.ac): Declare witnesses.
42462         (Depends-on): Add fcntl-h, sys_stat, unistd.
42463         (Include): Mention correct headers.
42464         * modules/fcntl-h (Depends-on): Add link-warning.
42465         (Files): Add openat.m4.
42466         (Makefile.am): Substitute witnesses.
42467         * modules/sys_stat (Files, Makefile.am): Likewise.
42468         * modules/unistd (Files, Makefile.am): Likewise.
42469         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
42470         (gl_OPENAT_DEFAULTS): New macro.
42471         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
42472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
42473         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
42474         (SYS_STAT_H): Remove unused variable.
42475         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
42476         * lib/fcntl--.h (includes): Remove unneeded header.
42477         * lib/openat-safer.c (includes): Likewise.
42478         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
42479         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
42480         appropriate headers.
42481         (__OPENAT_PREFIX): Delete.
42482         * lib/fcntl.in.h (openat): Provide declaration.
42483         (AT_FDCWD): Fix Solaris bug.
42484         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42485         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42486         * lib/fchmodat.c (includes):  Adjust to find declaration.
42487         * lib/fchownat.c (includes): Likewise.
42488         * lib/mkdirat.c (includes): Likewise.
42489         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42490         still visible.
42491
42492 2009-09-02  Eric Blake  <ebb9@byu.net>
42493
42494         errno: use consistently
42495         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42496         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42497         * lib/canonicalize.c (ELOOP): Likewise.
42498         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42499         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42500         * lib/lchown.c (EOPNOTSUPP): Likewise.
42501         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42502         * lib/savewd.c (ESTALE): Likewise.
42503         * lib/settime.c (ENOSYS): Likewise.
42504         * lib/utimens.c (ENOSYS): Likewise.
42505         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42506         * lib/chdir-safer.c (ELOOP): Likewise.
42507         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42508         * modules/c-stack (Depends-on): Add errno.
42509         * modules/canonicalize (Depends-on): Likewise.
42510         * modules/chdir-safer (Depends-on): Likewise.
42511         * modules/fdopendir (Depends-on): Likewise.
42512         * modules/inet_ntop (Depends-on): Likewise.
42513         * modules/inet_pton (Depends-on): Likewise.
42514         * modules/lchown (Depends-on): Likewise.
42515         * modules/openat (Depends-on): Likewise.
42516         * modules/savewd (Depends-on): Likewise.
42517         * modules/settime (Depends-on): Likewise.
42518         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42519
42520         fts: avoid leaking fds
42521         * modules/fts (Depends-on): Add cloexec.
42522         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42523         flag.
42524
42525         fts: make directory fds more robust
42526         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42527         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42528
42529         backupfile, chdir-long, fts, savedir: make safer
42530         * lib/backupfile.c (includes): Use "dirent--.h", since
42531         numbered_backup can write to stderr during readdir.
42532         * lib/savedir.c (includes): Likewise.
42533         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42534         emulation can write to stderr on failure.
42535         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42536         * lib/getcwd.c: Document why opendir_safer is unused.
42537         * lib/glob.c: Likewise.
42538         * lib/scandir.c: Likewise.
42539         * lib/openat-proc.c: Likewise, for open_safer.
42540         * modules/backupfile (Depends-on): Add dirent-safer.
42541         * modules/savedir (Depends-on): Likewise.
42542         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42543         * modules/chdir-long (Depends-on): Add openat-safer.
42544
42545         openat-safer: new module
42546         * modules/openat-safer: New file.
42547         * lib/openat-safer.c: Likewise.
42548         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42549         * lib/fcntl-safer.h (openat_safer): Declare.
42550         * lib/fcntl--.h (openat): Override.
42551         * MODULES.html.sh (File descriptor based I/O): Mention it.
42552         * lib/openat.h: Add double-inclusion guards.
42553         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42554         "fcntl--.h", so we can implement openat.
42555         * modules/openat-safer-tests: New test.
42556         * tests/test-openat-safer.c: New file.
42557
42558         dirent-safer: new module
42559         * modules/dirent-safer: New file.
42560         * lib/dirent--.h: Likewise.
42561         * lib/dirent-safer.h: Likewise.
42562         * lib/opendir-safer.c: Likewise.
42563         * m4/dirent-safer.m4: Likewise.
42564         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42565         * modules/dirent-safer-tests: New test.
42566         * tests/test-dirent-safer.c: New file.
42567         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42568
42569         fdopendir: optimize on mingw
42570         * lib/unistd.in.h (_gl_directory_name): New prototype.
42571         * lib/fchdir.c (_gl_directory_name): Implement it.
42572         (fchdir): Use it to simplify implementation.
42573         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42574         fchdir, when available, to avoid calling [f]chdir().
42575
42576         fdopendir: split into its own module
42577         * lib/openat.c (fdopendir): Move...
42578         * lib/fdopendir.c: ...into new file.
42579         * modules/fdopendir: New module.
42580         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42581         * modules/openat (Depends-on): Add fdopendir.
42582         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42583         fdopendir here.
42584         * modules/savedir (Depends-on): Only need fdopendir, not full
42585         openat.
42586         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42587         * lib/openat.h (fdopendir): Drop prototype.
42588         * lib/dirent.in.h (fdopendir): Provide prototype.
42589         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42590         * modules/dirent (Makefile.am): Substitute them.
42591         * MODULES.html.sh (File system functions): Mention it.
42592         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42593         * modules/fdopendir-tests: New file.
42594         * tests/test-fdopendir.c: Likewise.
42595
42596         fchdir: use more consistent macro convention
42597         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42598         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42599         REPLACE_FCHDIR, rather than relying on config.h macros.
42600         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42601         inside a single make-time REPLACE_FCHDIR block, rather than using
42602         the config.h FCHDIR_REPLACEMENT.
42603         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42604         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42605         Manage fstat replacement.
42606         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42607         REPLACE_FCHDIR.
42608         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42609         (Makefile.am): Substitute REPLACE_FCHDIR.
42610         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42611         FCHDIR_REPLACEMENT.
42612         * lib/dup-safer.c (dup_safer): Likewise.
42613         * lib/dup2.c (rpl_dup2): Likewise.
42614         * lib/dup3.c (rpl_dup3): Likewise.
42615         * lib/open.c (rpl_open): Likewise.
42616
42617         fchdir: simplify error handling, and support dup3
42618         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42619         stdbool, malloc-posix, realloc-posix.
42620         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42621         (ensure_dirs_slot): Return false on allocation failure.
42622         (rpl_dup2): Delete.
42623         (_gl_register_dup): New function.
42624         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42625         (_gl_register_fd): Close fd on allocation failure.
42626         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42627         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42628         prototype.
42629         (rpl_dup2_fchdir): Delete prototype.
42630         * lib/open.c (open): Update caller.
42631         * lib/dup2.c (dup2): Track fchdir metadata.
42632         * lib/dup3.c (dup3): Likewise.
42633         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42634         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42635
42636 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42637
42638         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42639         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42640         don't pass arguments to AC_OUTPUT.
42641
42642 2009-09-02  Bruno Haible  <bruno@clisp.org>
42643
42644         * modules/mkdtemp (License): Relicense under LGPLv2+.
42645         Reported by Paolo Bonzini.
42646
42647 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42648
42649         Replace uses of obsolete autoconf macros in Jim's modules.
42650         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42651         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42652         can evoke a warning from autoconf when run with -Wobsolete
42653         enabled.  They were declared obsolete for good reasons (see
42654         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42655         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42656         should not continue using the deprecated macros.
42657         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42658         obsolete Autoconf macros with modern counterparts.
42659         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42660         * m4/dos.m4 (gl_AC_DOS): Likewise.
42661         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42662         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42663         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42664         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42665         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42666         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42667         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42668         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42669         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42670         Likewise.
42671         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42672         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42673         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42674         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42675         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42676         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42677
42678 2009-09-01  Eric Blake  <ebb9@byu.net>
42679
42680         fchdir: fix off-by-one bug in previous patch
42681         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42682         (_gl_unregister_fd): Delete useless if.
42683
42684 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42685
42686         maint.mk: sort the list of syntax-check rules
42687         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42688         easier to get a sense of progress when the rules are run sequentially
42689         and take a long time.
42690
42691 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42692
42693         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42694         * modules/netinet_in: Likewise.
42695         * modules/sys_file: Likewise.
42696         * modules/sys_ioctl: Likewise.
42697         * modules/sys_select: Likewise.
42698         * modules/sys_socket: Likewise.
42699         * modules/sys_stat: Likewise.
42700         * modules/sys_time: Likewise.
42701         * modules/sys_times: Likewise.
42702         * modules/sys_utsname: Likewise.
42703         * modules/sys_wait: Likewise.
42704
42705 2009-09-01  Jim Meyering  <meyering@redhat.com>
42706
42707         fts: help ensure that return values are not ignored
42708         * lib/fts_.h (__GNUC_PREREQ): Define.
42709         (__attribute_warn_unused_result__): Define.
42710         (fts_children, fts_close, fts_open, fts_read): Declare with
42711         __attribute_warn_unused_result__.
42712
42713         fts: fts_close now fails also when closing a dir file descriptor fails
42714         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42715         and propagate to caller, along with errno.
42716
42717         announce-gen: correct formatting in --help output
42718         * build-aux/announce-gen (usage): Move the one-line description in
42719         --help output "up", to where it belongs, just after Usage:.
42720
42721 2009-08-31  Eric Blake  <ebb9@byu.net>
42722
42723         fchdir: port to mingw
42724         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42725         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42726         opened, then use a substitute.
42727         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42728         replacement.
42729         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42730         (_gl_register_fd): No need to check stat if open already filters
42731         all directories.
42732         (fchdir): Fix error condition to match POSIX.
42733         * modules/fchdir (Depends-on): Add sys_stat.
42734         * doc/posix-functions/open.texi (open): Document the limitation.
42735         * modules/fchdir-tests: New file.
42736         * tests/test-fchdir.c: Likewise.
42737
42738         canonicalize: allow cross-testing from cygwin to mingw
42739         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42740         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42741         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42742         Likewise.
42743         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42744         target does not support symlinks.
42745         * tests/test-canonicalize-lgpl.sh: Likewise.
42746
42747         chown: avoid compilation warning on mingw
42748         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42749         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42750         mingw.
42751         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42752         * modules/chown (Depends-on): Add errno.
42753
42754 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42755
42756         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42757         command.
42758
42759 2009-08-31  Jim Meyering  <meyering@redhat.com>
42760
42761         canonicalize: remove useless initialization
42762         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42763         initialization of local, "end".
42764
42765 2009-08-30  Bruno Haible  <bruno@clisp.org>
42766
42767         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42768         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42769         ENOSYS.
42770
42771 2009-08-30  Bruno Haible  <bruno@clisp.org>
42772
42773         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42774         /usr/xpg4/bin/tr when it exists.
42775         * tests/test-pipe-filter-gi1.sh: Likewise.
42776
42777 2009-08-30  Bruno Haible  <bruno@clisp.org>
42778
42779         Work around deficient /usr/bin/id program on Solaris.
42780         * tests/test-file-has-acl.sh (ID): New variable.
42781         * tests/test-set-mode-acl.sh (ID): Likewise.
42782         * tests/test-copy-acl.sh (ID): Likewise.
42783         * tests/test-copy-file.sh (ID): Likewise.
42784
42785 2009-08-30  Bruno Haible  <bruno@clisp.org>
42786
42787         New module 'xstriconveh'.
42788         * lib/xstriconveh.h: New file.
42789         * lib/xstriconveh.c: New file.
42790         * modules/xstriconveh: New file.
42791
42792 2009-08-30  Bruno Haible  <bruno@clisp.org>
42793
42794         Make it easier to use mem_cd_iconveh.
42795         * lib/striconveh.h (iconveh_t): New type.
42796         (iconveh_open, iconveh_close): New declarations.
42797         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42798         with a single 'const iconveh_t *' argument.
42799         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42800         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42801         with a single 'const iconveh_t *' argument.
42802         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42803         * tests/test-striconveh.c (main): Update.
42804         * NEWS: Mention the change.
42805
42806 2009-08-30  Bruno Haible  <bruno@clisp.org>
42807
42808         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42809         problem.
42810
42811 2009-08-30  Bruno Haible  <bruno@clisp.org>
42812
42813         Work around iconv_open problem on Solaris.
42814         * lib/iconv_open-solaris.gperf: New file.
42815         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42816         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42817         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42818         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42819         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42820         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42821
42822 2009-08-29  Jim Meyering  <meyering@redhat.com>
42823
42824         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42825         * top/maint.mk (cvs-check): Remove target; it was just an alias
42826         to the better-named vc-diff-check.
42827         (maintainer-distcheck): Remove rule.  It was used only from
42828         the (alpha/beta/major) target, and all of its commands but one
42829         were coreutils-specific.
42830         (vc-dist): Remove rule.
42831         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42832         Run vc-diff-check, not vc-dist.
42833         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42834
42835 2009-08-27  Bruno Haible  <bruno@clisp.org>
42836
42837         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42838         of 0.
42839
42840 2009-08-27  Bruno Haible  <bruno@clisp.org>
42841
42842         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42843         compilers.
42844         * doc/func.texi: Document the SunPRO C bug.
42845
42846 2009-08-27  Bruno Haible  <bruno@clisp.org>
42847
42848         Fix link error on Solaris.
42849         * tests/test-parse-duration.c (xstrdup): Remove function.
42850
42851 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42852
42853         ignore-value: handle pointer types, too
42854         * lib/ignore-value.h (__attribute__): Remove definition.
42855         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42856         of a more concise and more-often effective "(void) i" statement.
42857         (ignore_ptr): New function to suppress warnings from functions that
42858         return pointers, and to make it explicit that one function doesn't
42859         handle all cases.
42860
42861 2009-08-25  Bruno Haible  <bruno@clisp.org>
42862
42863         dup2: work around a Linux bug.
42864         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42865         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42866         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42867         Reported by Simon Josefsson.
42868
42869 2009-08-25  Jim Meyering  <meyering@redhat.com>
42870
42871         libguestfs uses gnulib
42872         * users.txt: Add libguestfs.
42873
42874 2009-08-24  Eric Blake  <ebb9@byu.net>
42875
42876         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42877         * lib/pipe2.c (includes): Add binary-io.h.
42878         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42879
42880 2009-08-24  Bruno Haible  <bruno@clisp.org>
42881
42882         Tolerate declared but missing accept4 syscall.
42883         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42884         available.
42885         * lib/sys_socket.in.h (accept4): If the function is already present,
42886         override it.
42887         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42888         * modules/accept4 (Makefile.am): Compile accept4.c always.
42889         Reported by Paolo Bonzini and Eric Blake.
42890
42891 2009-08-23  Bruno Haible  <bruno@clisp.org>
42892
42893         New module 'accept4'.
42894         * lib/sys_socket.in.h (accept4): New declaration.
42895         * lib/accept4.c: New file.
42896         * m4/accept4.m4: New file.
42897         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42898         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42899         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42900         HAVE_ACCEPT4.
42901         * modules/accept4: New file.
42902         * doc/glibc-functions/accept4.texi: Mention the new module.
42903
42904 2009-08-24  Jim Meyering  <meyering@redhat.com>
42905
42906         progname: also set global program_invocation_name, when possible
42907         Before this change, a libtool-enabled program that calls glibc's
42908         error function would report the program name as
42909         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42910         * modules/progname (configure.ac): Check for a declaration of
42911         program_invocation_name.
42912         * lib/progname.c:  Include <errno.h>.
42913         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42914         Set program_invocation_name.
42915
42916 2009-08-23  Bruno Haible  <bruno@clisp.org>
42917
42918         * lib/dup3.c: Include <string.h>.
42919
42920 2009-08-23  Bruno Haible  <bruno@clisp.org>
42921
42922         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42923         * lib/pipe2.c (pipe2): Likewise.
42924         Suggested by Eric Blake.
42925
42926 2009-08-23  Bruno Haible  <bruno@clisp.org>
42927
42928         Tolerate declared but missing dup3 syscall.
42929         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42930         * lib/unistd.in.h (dup3): If the function is already present,
42931         override it.
42932         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42933         * modules/dup3 (Makefile.am): Compile dup3.c always.
42934         Reported by Paolo Bonzini.
42935
42936 2009-08-23  Bruno Haible  <bruno@clisp.org>
42937
42938         Tolerate declared but missing pipe2 syscall.
42939         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42940         available.
42941         * lib/unistd.in.h (pipe2): If the function is already present,
42942         override it.
42943         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42944         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42945         Reported by Paolo Bonzini.
42946
42947 2009-08-23  Bruno Haible  <bruno@clisp.org>
42948
42949         * lib/pipe2.c (pipe2): Move #ifs inside function.
42950
42951 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42952
42953         quotearg: document limitations of quote_these_too
42954         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42955         those limitations are created.
42956         * lib/quotearg.h (set_char_quoting): Document that digits and
42957         letters that are special after backslash are not permitted.
42958         (quotearg_char): Cross-reference set_char_quoting documentation.
42959
42960 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42961
42962         quotearg: implement custom_quoting_style
42963         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42964         right_quote fields.
42965         (set_custom_quoting): New public function.
42966         (quotearg_buffer_restyled): Add left_quote and right_quote
42967         arguments, handle them very much like locale quoting, and update
42968         all uses.
42969         (quotearg_n_custom): New public function.
42970         (quotearg_n_custom_mem): New public function.
42971         (quotearg_custom): New public function.
42972         (quotearg_custom_mem): New public function.
42973         * lib/quotearg.h: Prototype and document new public functions.
42974         (enum quoting_style): For escape_quoting_style and
42975         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42976         ignored even though they're otherwise like c_quoting_style.
42977         Add custom_quoting_style member and document with comparison to
42978         clocale_quoting_style.
42979         * tests/test-quotearg.c (custom_quotes): New array.
42980         (custom_results): New array.
42981         (main): Extend to test custom quoting.
42982
42983 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42984
42985         quotearg: fix right quote escaping when it's in quote_these_too
42986         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42987         quote, be sure to prepend only one backslash.
42988         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42989         (main): Test it.
42990
42991 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42992
42993         quotearg-tests: test escaping of embedded locale quotes
42994         * tests/test-quotearg.c (struct result_strings): Add member for
42995         new input.
42996         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42997         (inputs): Add new input.
42998         (results_g): Add expected results.
42999         (flag_results): Likewise.
43000         (locale_results): Likewise.
43001         (compare_strings): Check those.
43002
43003 2009-08-23  Bruno Haible  <bruno@clisp.org>
43004
43005         Tests for module 'dup3'.
43006         * modules/dup3-tests: New file.
43007         * tests/test-dup3.c: New file.
43008
43009         New module 'dup3'.
43010         * lib/unistd.in.h (dup3): New declaration.
43011         * lib/dup3.c: New file.
43012         * m4/dup3.m4: New file.
43013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43014         HAVE_DUP3.
43015         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43016         * modules/dup3: New file.
43017         * doc/glibc-functions/dup3.texi: Mention the new module.
43018
43019 2009-08-23  Bruno Haible  <bruno@clisp.org>
43020
43021         Tweak the dup2 test.
43022         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43023         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43024         the test file is still empty. Fix argument order of lseek.
43025
43026 2009-08-23  Bruno Haible  <bruno@clisp.org>
43027
43028         Avoid test link errors when the modules getopt-gnu, gettext are used.
43029         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43030         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43031
43032 2009-08-23  Bruno Haible  <bruno@clisp.org>
43033
43034         Fix getdtablesize() on mingw.
43035         * lib/getdtablesize.c (getdtablesize): Implement differently.
43036         * lib/unistd.in.h (getdtablesize): Improve comment.
43037
43038 2009-08-23  Bruno Haible  <bruno@clisp.org>
43039
43040         New module 'mkostemp'.
43041         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43042         * lib/stdlib.in.h (mksotemp): New declaration.
43043         * lib/mkostemp.c: New file, from glibc with modifications.
43044         * lib/tempname.h (GT_FILE): Remove outdated comment.
43045         (gen_tempname): Add flags argument.
43046         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43047         (__GT_FILE): Map to 1.
43048         (small_open, large_open): Remove macros.
43049         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43050         * lib/mkstemp.c (mkstemp): Update.
43051         * lib/mkdtemp.c (mkdtemp): Likewise.
43052         * m4/mkostemp.m4: New file.
43053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43054         HAVE_MKOSTEMP.
43055         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43056         HAVE_MKOSTEMP.
43057         * modules/mkostemp: New file, based on modules/mkstemp.
43058         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43059         * NEWS: Mention the change.
43060
43061 2009-08-23  Bruno Haible  <bruno@clisp.org>
43062
43063         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43064         Reported by Eric Blake.
43065
43066 2009-08-23  Bruno Haible  <bruno@clisp.org>
43067
43068         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43069         Reported by Eric Blake.
43070
43071 2009-08-23  Bruno Haible  <bruno@clisp.org>
43072
43073         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43074         * modules/pipe2 (Depends-on): Likewise.
43075
43076 2009-08-23  Eric Blake  <ebb9@byu.net>
43077
43078         fcntl-h: add O_TTY_INIT support
43079         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43080         * tests/test-fcntl-h.c (o): Test it.
43081         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43082
43083         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43084         * modules/fcntl: Move <fcntl.h> header replacement...
43085         * modules/fcntl-h: ...to new name, so as not to collide with
43086         like-named function.
43087         * tests/test-fcntl.c: Rename...
43088         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43089         * modules/fcntl-tests: Rename...
43090         * modules/fcntl-h-tests: ...to this.  Update test file name.
43091         * modules/chdir-long (Depends-on): Update clients.
43092         * modules/chdir-safer (Depends-on): Likewise.
43093         * modules/fcntl-safer (Depends-on): Likewise.
43094         * modules/fts (Depends-on): Likewise.
43095         * modules/mkancesdirs (Depends-on): Likewise.
43096         * modules/mkdir-p (Depends-on): Likewise.
43097         * modules/open (Depends-on): Likewise.
43098         * modules/savewd (Depends-on): Likewise.
43099         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43100         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43101
43102 2009-08-22  Bruno Haible  <bruno@clisp.org>
43103
43104         * modules/binary-io (License): Relicense under LGPL.
43105         * modules/pipe2 (License): Likewise.
43106
43107 2009-08-22  Bruno Haible  <bruno@clisp.org>
43108
43109         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43110         return value.
43111         * lib/pipe-filter-gi.c (filter_init): Likewise.
43112         Reported by Eric Blake.
43113
43114 2009-08-22  Bruno Haible  <bruno@clisp.org>
43115
43116         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43117         * modules/pipe (Depends-on): Add pipe2.
43118
43119 2009-08-22  Bruno Haible  <bruno@clisp.org>
43120
43121         Tests for module 'pipe2'.
43122         * modules/pipe2-tests: New file.
43123         * tests/test-pipe2.c: New file.
43124
43125         New module 'pipe2'.
43126         * lib/unistd.in.h (pipe2): New declaration.
43127         * lib/pipe2.c: New file.
43128         * m4/pipe2.m4: New file.
43129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43130         HAVE_PIPE2.
43131         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43132         * modules/pipe2: New file.
43133         * doc/glibc-functions/pipe2.texi: Mention the new module.
43134
43135 2009-08-22  Bruno Haible  <bruno@clisp.org>
43136
43137         Reference some new glibc functions.
43138         * doc/glibc-functions/accept4.texi: New file.
43139         * doc/glibc-functions/dup3.texi: New file.
43140         * doc/glibc-functions/mkostemp.texi: New file.
43141         * doc/glibc-functions/pipe2.texi: New file.
43142         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43143         (Glibc sys/socket.h): Refer to accept4.
43144         (Glibc unistd.h): Refer to dup3, pipe2.
43145         Reported by Eric Blake.
43146
43147 2009-08-22  Jim Meyering  <meyering@redhat.com>
43148             Bruno Haible  <bruno@clisp.org>
43149
43150         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43151         This makes it so packages using automake-1.11's silent-rules option
43152         can print e.g., a single "GEN    configmake.h" line, rather than
43153         the 30+ statements that perform the job.  If you want to see the
43154         actual commands, you can still run "make V=1".
43155         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43156         so that make output is abbreviated when those variables are defined
43157         appropriately.
43158         * modules/argz: Likewise.
43159         * modules/arpa_inet: Likewise.
43160         * modules/byteswap: Likewise.
43161         * modules/configmake: Likewise.
43162         * modules/dirent: Likewise.
43163         * modules/errno: Likewise.
43164         * modules/fcntl: Likewise.
43165         * modules/float: Likewise.
43166         * modules/fnmatch: Likewise.
43167         * modules/getopt-posix: Likewise.
43168         * modules/glob: Likewise.
43169         * modules/iconv_open: Likewise.
43170         * modules/inttypes: Likewise.
43171         * modules/localcharset: Likewise.
43172         * modules/locale: Likewise.
43173         * modules/math: Likewise.
43174         * modules/netdb: Likewise.
43175         * modules/netinet_in: Likewise.
43176         * modules/poll: Likewise.
43177         * modules/posix_spawnp-tests: Likewise.
43178         * modules/sched: Likewise.
43179         * modules/search: Likewise.
43180         * modules/selinux-h: Likewise.
43181         * modules/signal: Likewise.
43182         * modules/spawn: Likewise.
43183         * modules/stdarg: Likewise.
43184         * modules/stdbool: Likewise.
43185         * modules/stddef: Likewise.
43186         * modules/stdint: Likewise.
43187         * modules/stdio: Likewise.
43188         * modules/stdlib: Likewise.
43189         * modules/string: Likewise.
43190         * modules/strings: Likewise.
43191         * modules/sys_file: Likewise.
43192         * modules/sys_ioctl: Likewise.
43193         * modules/sys_select: Likewise.
43194         * modules/sys_socket: Likewise.
43195         * modules/sys_stat: Likewise.
43196         * modules/sys_time: Likewise.
43197         * modules/sys_times: Likewise.
43198         * modules/sys_utsname: Likewise.
43199         * modules/sys_wait: Likewise.
43200         * modules/sysexits: Likewise.
43201         * modules/time: Likewise.
43202         * modules/unistd: Likewise.
43203         * modules/wchar: Likewise.
43204         * modules/wctype: Likewise.
43205
43206 2009-08-22  Jim Meyering  <meyering@redhat.com>
43207
43208         announce-gen: detect write failure
43209         * build-aux/announce-gen: Add Coda at end.
43210         Remove equivalent-but-more-verbose block at top.
43211
43212 2009-08-19  Akim Demaille  <demaille@gostai.com>
43213
43214         bootstrap: --help to stdout.
43215         * bootstrap (usage): Don't send --help to stderr.
43216         Use a here doc instead of a long string.
43217
43218 2009-08-21  Eric Blake  <ebb9@byu.net>
43219
43220         test-popen-safer: split from test-popen
43221         * tests/test-popen.c (main): Move...
43222         * tests/test-popen.h: ...into new file.
43223         * tests/test-popen-safer2.c: New file.
43224         * modules/popen-tests (Files): Add test-popen.h.
43225         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43226         Suggested by Bruno Haible.
43227
43228         test-fcntl-safer: split from test-open
43229         * tests/test-open.c (main): Move...
43230         * tests/test-open.h: ...into new file.
43231         * tests/test-fcntl-safer.c: New file.
43232         * modules/open-tests (Files): Add test-open.h.
43233         * modules/fcntl-safer-tests: New file.
43234         Suggested by Bruno Haible.
43235
43236         test-fopen-safer: split from test-fopen
43237         * tests/test-fopen.c (main): Move...
43238         * tests/test-fopen.h: ...into new file.
43239         * tests/test-fopen-safer.c: New file.
43240         * modules/fopen-tests (Files): Add test-fopen.h.
43241         * modules/fopen-safer-tests: New file.
43242         Suggested by Bruno Haible.
43243
43244 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43245
43246         popen-safer: test O_CLOEXEC at run-time.
43247         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43248
43249 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43250
43251         fcntl: move more flags to the header
43252         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43253         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43254         * lib/fcntl.in.h: Do both things here.
43255
43256 2009-08-21  Jim Meyering  <meyering@redhat.com>
43257
43258         consistently remove $@-t before redirecting to it
43259         * modules/argz: Remove $@-t and $@ before redirecting to the former.
43260         * modules/alloca-opt: Likewise.
43261         * modules/byteswap: Likewise.
43262         * modules/fnmatch: Likewise.
43263         * modules/getopt-posix: Likewise.
43264         * modules/glob: Likewise.
43265         * modules/poll: Likewise.
43266         * modules/posix_spawnp-tests: Likewise.
43267         * modules/sys_socket: Likewise.
43268         * modules/sysexits: Likewise.
43269
43270 2009-08-21  Eric Blake  <ebb9@byu.net>
43271
43272         popen: simplify access to original popen
43273         * lib/popen.c (rpl_popen): No need to worry about popen being a
43274         macro.
43275         Reported by Bruno Haible.
43276
43277 2009-08-20  Eric Blake  <ebb9@byu.net>
43278
43279         build: avoid some compiler warnings
43280         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43281         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43282         type.
43283         (new_exclude_segment, excluded_file_pattern_p)
43284         (excluded_file_name_p): Reduce scope.
43285         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43286         old-style declaration.
43287
43288 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43289
43290         * tests/test-exclude1.sh: Handle Windows EOL.
43291         * tests/test-exclude2.sh: Likewise.
43292         * tests/test-exclude3.sh: Likewise.
43293         * tests/test-exclude4.sh: Likewise.
43294         * tests/test-exclude5.sh: Likewise.
43295         * tests/test-exclude6.sh: Likewise.
43296         * tests/test-exclude7.sh: Likewise.
43297
43298 2009-08-19  Akim Demaille  <demaille@gostai.com>
43299
43300         bootstrap: find sha1sum when named gsha1sum.
43301         * bootstrap (find_tool): New.
43302         ($SHA1SUM): New.
43303         Use it.
43304
43305 2009-08-20  Jim Meyering  <meyering@redhat.com>
43306
43307         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43308         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43309         expression that converts "." in a file name to "\." in the resulting
43310         regexp.  Start with a dummy statement, so that prior shell variable
43311         definitions are expanded portably.  Reported by Simon Josefsson.
43312
43313 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43314
43315         Fix polling for writeability of a screen buffer.
43316         * lib/poll.c: Distinguish input and screen buffers for the
43317         Win32 implementation.
43318         * lib/select.c: Likewise.
43319
43320 2009-08-19  Eric Blake  <ebb9@byu.net>
43321
43322         popen-safer: prevent popen from clobbering std descriptors
43323         * modules/popen-safer: New file.
43324         * lib/popen-safer.c: Likewise.
43325         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43326         * lib/stdio--.h (popen): Provide override.
43327         * lib/stdio-safer.h (popen_safer): Provide declaration.
43328         * tests/test-popen.c (includes): Partially test this.
43329         * modules/popen-safer-tests: New file, for more tests.
43330         * tests/test-popen-safer.c: Likewise.
43331         * MODULES.html.sh (file stream based Input/Output): Mention it.
43332
43333         tests: test some of the *-safer modules
43334         * modules/fopen-safer (Depends-on): Add fopen.
43335         * modules/fcntl-safer (Depends-on): Add fcntl.
43336         * modules/stdlib-safer (Depends-on): Add stdlib.
43337         (configure.ac): Set indicator.
43338         * modules/unistd-safer (configure.ac): Likewise.
43339         * modules/tmpfile-safer (configure.ac): Likewise.
43340         (Depends-on): Add tmpfile.
43341         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
43342         active.
43343         * tests/test-fopen.c (includes): Test safer versions when they are
43344         in use.
43345         * tests/test-open.c (includes): Likewise.
43346
43347         popen: fix cygwin 1.5 bug when stdin closed
43348         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
43349         * modules/popen: New file.
43350         * modules/popen-tests: Likewise.
43351         * tests/test-popen.c: Likewise.
43352         * m4/popen.m4: Likewise.
43353         * lib/popen.c: Likewise.
43354         * lib/stdio.in.h (popen): New declaration.
43355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
43356         * modules/stdio (Makefile.am): Likewise.
43357         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
43358
43359 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
43360
43361         maint.mk: give full control over update-copyright exclusions
43362         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
43363         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
43364         (update-copyright): Don't force inclusion of top-level
43365         ChangeLog.  Don't force exclusion of all COPYING files, but make
43366         them the default exclusion instead.
43367
43368 2009-08-16  Bruno Haible  <bruno@clisp.org>
43369
43370         Fix test failures on Solaris 10.
43371         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
43372         tests when Solaris iconv() is used.
43373         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43374         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43375         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43376         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43377         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43378
43379 2009-08-16  Bruno Haible  <bruno@clisp.org>
43380
43381         Fix test failures on Solaris 10.
43382         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
43383         'tr' program and pass it as first argument.
43384         * tests/test-pipe-filter-gi1.sh: Likewise.
43385         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43386         program as first argument.
43387         * tests/test-pipe-filter-gi1.c (main): Likewise.
43388
43389 2009-08-16  Eric Blake  <ebb9@byu.net>
43390
43391         fpurge: fix previous commits
43392         * modules/fpurge (Makefile.am): Make replacement conditional,
43393         partially reverting 2007-04-29 change; missed in previous
43394         attempt.
43395         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43396         is missing.
43397
43398 2009-08-16  Bruno Haible  <bruno@clisp.org>
43399
43400         Clarify fpurge's effect on the file position.
43401         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43402         * tests/test-fpurge.c (main): Make a second pass for checking the file
43403         position.
43404
43405 2009-08-16  Bruno Haible  <bruno@clisp.org>
43406
43407         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
43408         declaration of fpurge is missing.
43409         * tests/test-fpurge.c (main): Check that the file has not more contents
43410         than expected. Close the file before removing it.
43411
43412 2009-08-15  Eric Blake  <ebb9@byu.net>
43413
43414         fpurge: don't wrap working cygwin implementation
43415         * lib/fpurge.c (fpurge): Fix comment typo.
43416         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
43417         1.7 to avoid replacement.
43418         * tests/test-fpurge.c (main): Enhance test.
43419
43420 2009-08-15  Eric Blake  <ebb9@byu.net>
43421         and Jim Meyering  <meyering@redhat.com>
43422
43423         test-update-copyright: skip if perl is insufficient
43424         * tests/test-update-copyright.sh: Failure to run maintainer tool
43425         should not cause testsuite failure on cygwin 1.5.
43426
43427 2009-08-14  Eric Blake  <ebb9@byu.net>
43428
43429         doc: mention more functions added in cygwin 1.7.0
43430         * doc/posix-headers/limits.texi (limits.h): Update for recent
43431         cygwin additions.
43432         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43433         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43434         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43435         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43436         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
43437
43438 2009-08-14  Eric Blake  <ebb9@byu.net>
43439
43440         maint.mk: simplify update-copyright rule
43441         * top/maint.mk (update-copyright-local): Delete, and document how
43442         to do it in cfg.mk instead.
43443         (update-copyright-exclude-regexp): Delete, and document how to do
43444         it in .x-update-copyright instead.
43445         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
43446         exclude ChangeLog.
43447
43448 2009-08-14  Bruno Haible  <bruno@clisp.org>
43449
43450         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
43451
43452 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43453
43454         maint.mk: support update-copyright-env
43455         * top/maint.mk (update-copyright-env): Define place-holder.
43456         (update-copyright): Expand $(update-copyright-env) before
43457         invoking update-copyright.
43458
43459 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43460
43461         update-copyright: implement forced reformatting
43462         * build-aux/update-copyright: Implement and document
43463         UPDATE_COPYRIGHT_FORCE.
43464         * tests/test-update-copyright.sh: Test it.
43465
43466 2009-08-14  Eric Blake  <ebb9@byu.net>
43467         and Bruno Haible  <bruno@clisp.org>
43468
43469         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
43470         * tests/test-locale.c: Revert previous patch related to NULL.
43471         * tests/test-stdio.c: Likewise.
43472         * tests/test-stdlib.c: Likewise.
43473         * tests/test-string.c: Likewise.
43474         * tests/test-unistd.c: Likewise.
43475         * modules/time-tests (Depends-on): Add verify.
43476         * modules/wchar-tests (Depends-on): Likewise.
43477         * tests/test-time.c: Test for NULL compliance.
43478         * tests/test-wchar.c: Likewise.
43479         * modules/locale (Depends-on): Add stddef.
43480         * modules/stdio (Depends-on): Likewise.
43481         * modules/stdlib (Depends-on): Likewise.
43482         * modules/string (Depends-on): Likewise.
43483         * modules/time (Depends-on): Likewise.
43484         * modules/unistd (Depends-on): Likewise.
43485         * modules/wchar (Depends-on): Likewise.
43486         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43487         * lib/stdlib.in.h (includes): Likewise.
43488         * lib/string.in.h (includes): Likewise.
43489         * lib/time.in.h (includes): Likewise.
43490         * lib/unistd.in.h (includes): Likewise.
43491         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43492         replaced.
43493         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43494         * m4/stddef_h.m4: New file.
43495         * modules/stddef: Likewise.
43496         * lib/stddef.in.h: Likewise.
43497         * modules/stddef-tests: Likewise.
43498         * tests/test-stddef.c: Likewise.
43499         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43500         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43501         * doc/posix-headers/locale.texi (locale.h): Likewise.
43502         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43503         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43504         * doc/posix-headers/string.texi (string.h): Likewise.
43505         * doc/posix-headers/time.texi (time.h): Likewise.
43506         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43507         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43508
43509 2009-08-14  Eric Blake  <ebb9@byu.net>
43510
43511         doc: improve git diff of texinfo files
43512         * .gitattributes: Add rule for *.texi files, with hint on how to
43513         use it.
43514         Copied from m4, and based on a report by Bruno Haible.
43515
43516 2009-08-14  Bruno Haible  <bruno@clisp.org>
43517
43518         Disable multithread support by default on Cygwin 1.5.x for real.
43519         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43520
43521 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43522
43523         update-copyright: much ado about intervals
43524         * build-aux/update-copyright: Implement and document
43525         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43526         of copyright year intervals.
43527         Also, document UPDATE_COPYRIGHT_YEAR.
43528         * tests/test-update-copyright.sh: Test it.
43529
43530         update-copyright: convert 2-digit to 4-digit years
43531         * build-aux/update-copyright: Implement and document.
43532         * tests/test-update-copyright.sh: Update.
43533
43534 2009-08-14  Jim Meyering  <meyering@redhat.com>
43535
43536         test-exclude: avoid coreutils "make check" failure
43537         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43538         just as in test-argmatch.c.
43539
43540 2009-08-13  Eric Blake  <ebb9@byu.net>
43541
43542         test-dup2: fix bad assumption
43543         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43544         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43545
43546         test-version-etc: fix CRLF portability issue
43547         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43548         recognize \r.
43549         * tests/test-argp-version-etc-1.sh: Likewise.
43550
43551         getopt: update client modules
43552         * modules/argp (Depends-on): Use getopt-gnu.
43553         * modules/git-merge-changelog (Depends-on): Likewise.
43554         * modules/long-options (Depends-on): Likewise.
43555         * modules/xstrtol (Depends-on): Likewise.
43556
43557 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43558
43559         * tests/test-version-etc.sh: Don't fail on different
43560         project/version.  Don't fail on CRLF differences.  Rewrite to use
43561         multiple -e instead of multiple sed forks, suggested by Eric Blake
43562         <ebb9@byu.net>.
43563         * tests/test-argp-version-etc-1.sh: Likewise.
43564
43565 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43566
43567         * tests/test-version-etc.sh: Don't fail on different
43568         project/version.
43569
43570 2009-08-12  Bruno Haible  <bruno@clisp.org>
43571
43572         Tests for modules 'getopt-posix', 'getopt-gnu'.
43573         * modules/getopt-posix-tests: New file.
43574         * tests/test-getopt.c: New file.
43575         * tests/test-getopt.h: New file.
43576         * tests/test-getopt_long.h: New file.
43577
43578         New modules 'getopt-posix', 'getopt-gnu'.
43579         * modules/getopt-gnu: New file, renamed from modules/getopt.
43580         * modules/getopt-posix: New file.
43581         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43582         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43583         (gl_GETOPT): Remove macro.
43584         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43585         Disable the test against BSD systems that declare optreset. Test
43586         against mingw bug. Test against lack of support of optional arguments
43587         on many platforms.
43588         * doc/glibc-headers/getopt.texi: Update module name and list of
43589         relevant platforms.
43590         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43591         'getopt-gnu' and more portability problems.
43592         * NEWS: Mention the changes.
43593
43594 2009-08-12  Bruno Haible  <bruno@clisp.org>
43595
43596         Ensure that optarg etc. get declared by <unistd.h>.
43597         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43598         AC_USE_SYSTEM_EXTENSIONS.
43599         * modules/getopt (Depends-on): Add 'extensions'.
43600
43601 2009-08-12  Bruno Haible  <bruno@clisp.org>
43602
43603         Avoid test link errors.
43604         * modules/pipe-filter-ii-tests (Makefile.am): Define
43605         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43606         * modules/pipe-filter-gi-tests (Makefile.am): Define
43607         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43608         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43609
43610 2009-08-12  Bruno Haible  <bruno@clisp.org>
43611
43612         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43613         gl_GETOPT_SUBSTITUTE before.
43614         (gl_GETOPT): Use it.
43615         * m4/argp.m4 (gl_ARGP): Update.
43616         Reported by Sergey Poznyakoff.
43617
43618         * m4/getopt.m4: Reorder macros.
43619         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43620         (gl_GETOPT_SUBSTITUTE): Remove macro.
43621
43622 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43623
43624         Minor improvement in gitlog-to-changelog
43625
43626         * build-aux/gitlog-to-changelog: New option `--format' makes
43627         output format string configurable.
43628
43629 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43630
43631         Optimize exclude: use hash tables for non-wildcard patterns.
43632
43633         * lib/exclude.c: Include hash.h and mbuiter.h
43634         (struct exclude_pattern, exclude_segment): New data types.
43635         (struct exclude): Rewrite.
43636         (fnmatch_pattern_has_wildcards): New function.
43637         (new_exclude_segment, free_exclude_segment): New functions.
43638         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43639         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43640         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43641         * modules/exclude: Depend on hash and mbuiter.
43642
43643         * modules/exclude-tests: New file.
43644         * tests/test-exclude.c: New file.
43645         * tests/test-exclude1.sh: New file.
43646         * tests/test-exclude2.sh: New file.
43647         * tests/test-exclude3.sh: New file.
43648         * tests/test-exclude4.sh: New file.
43649         * tests/test-exclude5.sh: New file.
43650         * tests/test-exclude6.sh: New file.
43651         * tests/test-exclude7.sh: New file.
43652
43653 2009-08-12  Bruno Haible  <bruno@clisp.org>
43654
43655         Ensure that getopt() gets declared by <unistd.h>.
43656         * lib/unistd.in.h: Conditionally include getopt.h.
43657         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43658         Set GNULIB_UNISTD_H_GETOPT.
43659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43660         GNULIB_UNISTD_H_GETOPT.
43661         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43662
43663 2009-08-12  Bruno Haible  <bruno@clisp.org>
43664
43665         Clarify logic.
43666         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43667         gl_replace_getopt instead of GETOPT_H.
43668
43669 2009-08-12  Bruno Haible  <bruno@clisp.org>
43670
43671         * m4/getopt.m4: Add comments.
43672
43673 2009-08-12  Bruno Haible  <bruno@clisp.org>
43674
43675         Disable multithread support by default on Cygwin 1.5.x.
43676         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43677         set gl_use_threads=no if not specified otherwise.
43678
43679 2009-08-11  Bruno Haible  <bruno@clisp.org>
43680
43681         Avoid compilation error on NetBSD 5.0.
43682         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43683         * tests/test-stdio.c: Likewise.
43684         * tests/test-stdlib.c: Likewise.
43685         * tests/test-string.c: Likewise.
43686         * tests/test-unistd.c: Likewise.
43687         Reported by Greg Troxel <gdt@ir.bbn.com>
43688         at <https://savannah.gnu.org/support/?106973>.
43689
43690 2009-08-11  Bruno Haible  <bruno@clisp.org>
43691
43692         * modules/dup2-tests (Depends-on): Remove close.
43693
43694         Undo 2009-07-19 commit.
43695         * modules/acl-tests (Depends-on): Remove close.
43696         * modules/binary-io-tests (Depends-on): Likewise.
43697         * modules/closein-tests (Depends-on): Likewise.
43698         * modules/flock-tests (Depends-on): Likewise.
43699         * modules/fsync-tests (Depends-on): Likewise.
43700         * modules/lseek-tests (Depends-on): Likewise.
43701         * modules/pipe-tests (Depends-on): Likewise.
43702         * modules/posix_spawn-tests (Depends-on): Likewise.
43703         * modules/posix_spawnp-tests (Depends-on): Likewise.
43704         * modules/stat-time-tests (Depends-on): Likewise.
43705         * modules/yesno-tests (Depends-on): Likewise.
43706
43707 2009-08-10  Bruno Haible  <bruno@clisp.org>
43708
43709         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43710
43711 2009-08-10  Bruno Haible  <bruno@clisp.org>
43712
43713         Fix a gcc warning.
43714         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43715
43716 2009-08-10  Bruno Haible  <bruno@clisp.org>
43717
43718         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43719         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43720         not only the first time.
43721         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43722         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43723         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43724         is 1, not only the the first time.
43725
43726 2009-08-10  Bruno Haible  <bruno@clisp.org>
43727
43728         Make it possible to use module 'gethostname' without module 'close'.
43729         * lib/unistd.in.h (close): Evoke a link error only if
43730         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43732         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43733         * modules/unistd (Makefile.am): Substitute
43734         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43735         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43736         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43737         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43738         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43739         * modules/sys_ioctl (Makefile.am): Substitute
43740         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43741         * modules/socket (configure.ac): On native Windows, set
43742         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43743         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43744         Reported by Sam Steingold <sds@gnu.org>.
43745
43746 2009-08-10  Bruno Haible  <bruno@clisp.org>
43747
43748         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43749         * modules/ioctl (configure.ac): Likewise.
43750
43751 2009-08-10  Bruno Haible  <bruno@clisp.org>
43752
43753         Avoid collision between gnulib wrapper and libintl wrapper.
43754         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43755         already defined in intl/printf.c.
43756         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43757         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43758
43759 2009-08-09  Bruno Haible  <bruno@clisp.org>
43760
43761         Make <sys/select.h> really self-contained, also on Solaris 10.
43762         * lib/sys_select.in.h: Include <string.h>.
43763         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43764         Solaris 10 problem.
43765         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43766         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43767         Reported by Jim Meyering.
43768
43769 2009-08-09  Bruno Haible  <bruno@clisp.org>
43770
43771         Avoid warnings from 'aclocal' that are due to a use of macro name
43772         AM_XGETTEXT_OPTION that is not defined in automake.
43773         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43774         automake.
43775         * modules/error (configure.ac): Likewise.
43776         * modules/propername (configure.ac): Likewise.
43777         * modules/vasprintf (configure.ac): Likewise.
43778         * modules/verror (configure.ac): Likewise.
43779         * modules/xprintf (configure.ac): Likewise.
43780         * modules/xvasprintf (configure.ac): Likewise.
43781
43782 2009-08-08  Bruno Haible  <bruno@clisp.org>
43783
43784         Avoid compilation error in C++ mode.
43785         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43786         Reported by Sam Steingold <sds@gnu.org>.
43787
43788 2009-08-08  Bruno Haible  <bruno@clisp.org>
43789
43790         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43791         for the various Unix platforms.
43792         * doc/posix-headers/limits.texi: Update platforms list regarding
43793         HOST_NAME_MAX.
43794         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43795
43796 2009-08-07  Jim Meyering  <meyering@redhat.com>
43797
43798         selinux-at: fix typo in a comment
43799         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43800         Spotted by Paolo Bonzini.
43801
43802         selinux-at: remove redundant m4 code, add documentation
43803         * modules/selinux-at (configure.ac): Remove redundant code.
43804         LIB_SELINUX is already set via the dependent module, selinux-h.
43805         (Include): Add quotes around selinux-at.h.
43806         * lib/selinux-at.h: Add documentation.
43807         Reported by Bruno Haible in
43808         http://marc.info/?l=gnulib-bug&m=124958988300749
43809
43810 2009-08-07  Bruno Haible  <bruno@clisp.org>
43811
43812         Avoid link error on MacOS X 10.3 and 10.4.
43813         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43814         on non-ELF systems.
43815         * lib/argp-pv.c (argp_program_version): Likewise.
43816         Reported by Simon Josefsson.
43817
43818 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43819
43820         * tests/test-version-etc.sh: Use $EXEEXT.
43821
43822 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43823
43824         update-copyright: update documentation to point to maint.mk
43825         * build-aux/update-copyright: Here.
43826
43827 2009-08-06  Jim Meyering  <meyering@redhat.com>
43828
43829         maint.mk: support update-copyright-local
43830         * top/maint.mk (update-copyright-local): Define place-holder.
43831         (update-copyright): Depend on $(update-copyright-local).
43832
43833 2009-08-06  Jim Meyering  <meyering@redhat.com>
43834
43835         selinux-at: new module
43836         Initially written for coreutils, this module will soon be
43837         used by findutils, too.
43838         * MODULES.html.sh [Misc]: Add selinux-at.
43839         * lib/selinux-at.h: New file, from coreutils.
43840         * lib/selinux-at.c: Likewise.
43841         * modules/selinux-at: Likewise.
43842         (License): Change from LGPL to GPL, since it depends
43843         on the GPL'd openat module.
43844
43845         doc: update README
43846         * README: Remove references to cogito.
43847         Remove cvs-repo-updating instructions from 2007.
43848         Don't imply that CVS is better if you have limited disk space.
43849
43850 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43851
43852         update-copyright: support C-style comments
43853         * build-aux/update-copyright: Implement and document.
43854         * tests/test-update-copyright.sh: Test.
43855
43856 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43857
43858         update-copyright: support omitted "(C)"
43859         * build-aux/update-copyright: Implement and document.  Also,
43860         allow variable whitespace before "(C)".
43861         * tests/test-update-copyright.sh: Test.
43862
43863 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43864
43865         update-copyright: don't trip on non-FSF copyright statements
43866         * build-aux/update-copyright: Fix so that the first correctly
43867         formatted FSF copyright statement is recognized no matter what
43868         appears before it.  Update documentation.
43869         * tests/test-update-copyright.sh: Test that.
43870
43871 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43872
43873         update-copyright: clean up code a little
43874         * build-aux/update-copyright: Append "_re" to the name of any
43875         variable holding a regular expression.
43876         Replace "old" and "new" with "stmt" in variable names.
43877         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43878         handled correctly.
43879         Format code more consistently.
43880
43881 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43882
43883         update-copyright-tests: improve portability
43884         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43885         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43886
43887 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43888
43889         update-copyright: support @copyright{} and &copy;
43890         * build-aux/update-copyright: Implement and document.
43891         * tests/test-update-copyright.sh: Test.
43892
43893 2009-08-04  Jim Meyering  <meyering@redhat.com>
43894
43895         update-copyright-tests: correctly test EOL=\r\n handling
43896         * tests/test-update-copyright.sh: Put \r at the end of some lines
43897         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43898
43899         maint.mk: make update-copyright exclusion list more configurable
43900         * top/maint.mk (update-copyright): Default to excluding COPYING,
43901         but allow an override, in case someone does want to update that file.
43902
43903         maint.mk: don't update copyright date in COPYING
43904         * top/maint.mk (update-copyright): Exclude COPYING.
43905
43906         maint.mk: add a copyright-updating rule
43907         * top/maint.mk (update-copyright): New rule.
43908         Derived from coreutils/Makefile.am.
43909
43910         update-copyright: rename some variables
43911         * build-aux/update-copyright: Rename a few variables for clarity.
43912         Tweak syntax.  List Joel E. Denny as coauthor.
43913
43914 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43915
43916         update-copyright: fix bug for 2-digit last year and add tests
43917         * build-aux/update-copyright: Fix bug.
43918         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43919         specified.
43920         * modules/update-copyright-tests: New
43921         * tests/test-update-copyright.sh: New.
43922
43923 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43924
43925         update-copyright: handle leading tabs in line prefix
43926         * build-aux/update-copyright: Count leading tabs as 8 spaces
43927         when computing margin.  This helps with the formatting of
43928         ChangeLogs, for example.
43929         Fix documentation a little.
43930
43931 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43932
43933         update-copyright: support EOL=\r\n
43934         * build-aux/update-copyright: Implement that.
43935
43936 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43937
43938         update-copyright: automatically format copyright statements
43939         * build-aux/update-copyright: Implement that.
43940         Also, be a little more predictable and safer by always failing
43941         when the full copyright format is not perfectly recognized as an
43942         unbroken whole.  Discussed at
43943         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43944         Rewrite documentation.
43945
43946 2009-08-03  Bruno Haible  <bruno@clisp.org>
43947
43948         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43949
43950 2009-08-02  Bruno Haible  <bruno@clisp.org>
43951
43952         Tests for module 'uname'.
43953         * modules/uname-tests: New file.
43954         * tests/test-uname.c: New file.
43955
43956         New module 'uname'.
43957         * lib/uname.c: New file.
43958         * m4/uname.m4: New file.
43959         * modules/uname: New file.
43960         * doc/posix-functions/uname.texi: Mention the new module.
43961
43962 2009-08-02  Bruno Haible  <bruno@clisp.org>
43963
43964         Tests for module 'sys_utsname'.
43965         * modules/sys_utsname-tests: New file.
43966         * tests/test-sys_utsname.c: New file.
43967
43968         New module 'sys_utsname'.
43969         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43970         * m4/sys_utsname_h.m4: New file.
43971         * modules/sys_utsname: New file.
43972         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43973
43974 2009-08-02  Bruno Haible  <bruno@clisp.org>
43975
43976         Implicitly initialize the sockets library.
43977         * lib/gethostname.c: Include sockets.h.
43978         (rpl_gethostname): Invoke gl_sockets_startup.
43979         * lib/socket.c: Include sockets.h.
43980         (rpl_socket): Invoke gl_sockets_startup.
43981         * modules/gethostname (Depends-on): Add sockets.
43982         * modules/socket (Depends-on): Likewise.
43983         * tests/test-poll.c: Don't include sockets.h.
43984         (main): Don't invoke gl_sockets_startup.
43985         * tests/test-select.c: Don't include sockets.h.
43986         (main): Don't invoke gl_sockets_startup.
43987
43988 2009-08-02  Bruno Haible  <bruno@clisp.org>
43989
43990         Allow multiple calls to gl_sockets_startup.
43991         * lib/sockets.c (initialized_sockets_version): New variable.
43992         (gl_sockets_startup): Do nothing if already called for this or a higher
43993         version.
43994         (gl_sockets_cleanup): Reset initialized_sockets_version.
43995
43996 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43997
43998         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43999         different project/version.
44000
44001 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44002             Bruno Haible  <bruno@clisp.org>
44003
44004         Tests for module 'pipe-filter-gi'.
44005         * modules/pipe-filter-gi-tests: New file.
44006         * tests/test-pipe-filter-gi1.sh: New file.
44007         * tests/test-pipe-filter-gi1.c: New file.
44008         * tests/test-pipe-filter-gi2.sh: New file.
44009         * tests/test-pipe-filter-gi2-main.c: New file.
44010         * tests/test-pipe-filter-gi2-child.c: New file.
44011
44012         New module 'pipe-filter-gi'.
44013         * lib/pipe-filter-gi.c: New file.
44014         * modules/pipe-filter-gi: New file.
44015
44016 2009-08-02  Bruno Haible  <bruno@clisp.org>
44017             Paolo Bonzini  <bonzini@gnu.org>
44018
44019         Tests for module 'pipe-filter-ii'.
44020         * modules/pipe-filter-ii-tests: New file.
44021         * tests/test-pipe-filter-ii1.sh: New file.
44022         * tests/test-pipe-filter-ii1.c: New file.
44023         * tests/test-pipe-filter-ii2.sh: New file.
44024         * tests/test-pipe-filter-ii2-main.c: New file.
44025         * tests/test-pipe-filter-ii2-child.c: New file.
44026
44027         New module 'pipe-filter-ii'.
44028         * lib/pipe-filter.h: New file.
44029         * lib/pipe-filter-ii.c: New file.
44030         * lib/pipe-filter-aux.h: New file.
44031         * modules/pipe-filter-ii: New file.
44032
44033 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44034
44035         * lib/gc-libgcrypt.c: Change copyright to FSF.
44036         * lib/gc-gnulib.c: Likewise.
44037
44038 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44039
44040         * lib/gethostname.c: Include limits.h.
44041
44042 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44043             Bruno Haible  <bruno@clisp.org>
44044
44045         Ensure HOST_NAME_MAX as part of the gethostname module.
44046         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44047         define also HOST_NAME_MAX.
44048         * tests/test-gethostname.c: Include <limits.h>.
44049         (main): Check also HOST_NAME_MAX.
44050         * doc/posix-headers/limits.texi: Document the mingw problem.
44051
44052 2009-08-02  Bruno Haible  <bruno@clisp.org>
44053
44054         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44055         Add comments.
44056
44057 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44058
44059         * lib/gethostname.c: Add Windows wrapper.
44060         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44061         * modules/gethostname: Depend on sys_socket & errno, for also
44062         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44063         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44064
44065 2009-07-31  Jim Meyering  <meyering@redhat.com>
44066
44067         getloadavg: fix symbol name in comment
44068         * lib/getloadavg.c: Correct a typo I introduced when adding
44069         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44070         Matt Kraai spotted the problem.
44071
44072 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44073
44074         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44075         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44076         code also if ! defined N_NAME_POINTER.
44077         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44078         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44079         but the n_name member is a 12-byte array.
44080
44081 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44082
44083         update-copyright: generalize comment handling
44084         * build-aux/update-copyright: Handle copyright statements
44085         within more comment styles.
44086         Document usage.
44087         Report any file with an external copyright holder or parse failure.
44088
44089 2009-07-29  Jim Meyering  <meyering@redhat.com>
44090
44091         mktime: correct setting of REPLACE_MKTIME
44092         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44093
44094         update-copyright: new module
44095         * modules/update-copyright: New file.
44096         * build-aux/update-copyright: New file.
44097         * MODULES.html.sh (maint+release support): Add update-copyright.
44098
44099 2009-07-27  Bruno Haible  <bruno@clisp.org>
44100
44101         Fix compilation error when <ctime> is used and mktime is replaced.
44102         * lib/time.in.h (mktime): New declaration.
44103         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44104         REPLACE_MKTIME instead of defining mktime in config.h.
44105         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44106         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44107         Reported by Ross McFarland <rwmcfa1@neces.com>.
44108
44109 2009-07-27  Bruno Haible  <bruno@clisp.org>
44110
44111         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44112         Reported by Matt Kraai <mkraai@beckman.com>.
44113
44114 2009-07-25  Jim Meyering  <meyering@redhat.com>
44115
44116         maint.mk: avoid warnings about missing files
44117         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44118         diagnostic when .prev-version does not exist.
44119         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44120         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44121         nonexistent cfg.mk.
44122         Suggestions from Simon Josefsson.
44123
44124 2009-07-25  Bruno Haible  <bruno@clisp.org>
44125
44126         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44127         defined as macros. Needed on QNX 6.4.1.
44128         Reported by Matt Kraai <mkraai@beckman.com>.
44129
44130 2009-07-23  Jim Meyering  <meyering@redhat.com>
44131
44132         maint.mk: invoke "make dist" with a working value of XZ_OPT
44133         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44134
44135 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44136
44137         Make fseeko.c compile on QNX.
44138         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44139
44140 2009-07-22  Peter Simons  <simons@cryp.to>
44141
44142         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44143         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44144         * lib/md4.h: Likewise.
44145         * lib/md5.h: Likewise.
44146         * lib/sha1.h: Likewise.
44147         * lib/sha256.h: Likewise.
44148         * lib/sha512.h: Likewise.
44149
44150         tests-sha1: don't assign literal string to 'char *' variable
44151         * tests/test-sha1.c (main): Declare locals with "const" to match
44152         attributes of the right hand side.
44153
44154 2009-07-21  Eric Blake  <ebb9@byu.net>
44155
44156         dup2: fix more mingw problems
44157         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44158         fd to itself.
44159         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44160         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44161         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44162         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44163         care of mingw bugs.
44164
44165 2009-07-21  Jim Meyering  <meyering@redhat.com>
44166
44167         vc-list-files: avoid failure when /bin/sh is dash
44168         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44169         On some Debian based systems, /bin/sh is a symlink to dash, and running
44170         this command would omit the "/" following each 'tests' prefix:
44171           dash -x build-aux/vc-list-files -C . tests
44172         That is because bash and dash work differently:
44173           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44174           bash ok
44175           dash odd
44176
44177 2009-07-21  Eric Blake  <ebb9@byu.net>
44178
44179         dup2-tests: test previous patch
44180         * modules/dup2-tests: New file.
44181         * tests/test-dup2.c: Likewise.
44182         * tests/test-open.c (main): Avoid unspecified behavior.
44183         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44184         test.
44185
44186         dup2: work around mingw and cygwin 1.5 bug
44187         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44189         * modules/unistd (Makefile.am): Substitute it.
44190         * lib/unistd.in.h (dup2): Declare the replacement.
44191         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44192         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44193         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44194         * modules/execute (Depends-on): Add dup2.
44195         * modules/fseterr (Depends-on): Likewise.
44196         * modules/pipe (Depends-on): Likewise.
44197         * modules/posix_spawn-internal (Depends-on): Likewise.
44198
44199 2009-07-21  Bruno Haible  <bruno@clisp.org>
44200
44201         * modules/.gitattributes: New file.
44202
44203 2009-07-20  Bruno Haible  <bruno@clisp.org>
44204
44205         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44206         (main): Use it.
44207
44208 2009-07-20  Eric Blake  <ebb9@byu.net>
44209
44210         test-pipe: make a bit more robust.
44211         * tests/test-pipe.c (myerr): Allow error messages regardless of
44212         what we do to stderr.
44213         (test_pipe): Rearrange to avoid deadlock.
44214         (child_main): Try a larger read, to ensure we avoided deadlock.
44215         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44216         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44217         if misused.
44218
44219 2009-07-19  Jim Meyering  <meyering@redhat.com>
44220
44221         fts: avoid false-positive cycle-detection
44222         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44223         for each new command line argument.
44224
44225 2009-07-19  Bruno Haible  <bruno@clisp.org>
44226
44227         Fix build error on mingw with the modules sys_select and unistd.
44228         * modules/acl-tests (Depends-on): Add close.
44229         * modules/binary-io-tests (Depends-on): Likewise.
44230         * modules/closein-tests (Depends-on): Likewise.
44231         * modules/flock-tests (Depends-on): Likewise.
44232         * modules/fsync-tests (Depends-on): Likewise.
44233         * modules/lseek-tests (Depends-on): Likewise.
44234         * modules/pipe-tests (Depends-on): Likewise.
44235         * modules/posix_spawn-tests (Depends-on): Likewise.
44236         * modules/posix_spawnp-tests (Depends-on): Likewise.
44237         * modules/stat-time-tests (Depends-on): Likewise.
44238         * modules/yesno-tests (Depends-on): Likewise.
44239
44240 2009-07-19  Bruno Haible  <bruno@clisp.org>
44241
44242         Unify conditionals.
44243         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44244         macros, not at the compiler macros.
44245         * lib/pipe.c: Likewise.
44246         * lib/execute.c: Likewise.
44247         * lib/spawni.c: Likewise.
44248
44249 2009-07-19  Bruno Haible  <bruno@clisp.org>
44250
44251         Fix handling of closed stdin/stdout/stderr on mingw.
44252         * lib/w32spawn.h: Include unistd.h.
44253         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44254         file descriptor with O_NOINHERIT flag.
44255         (fd_safer_noinherit): New function, based on fd-safer.c.
44256         (dup_safer_noinherit): New function, based on dup-safer.c.
44257         (undup_safer_noinherit): New function.
44258         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
44259         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
44260         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
44261         instead of fd_safer.
44262         * tests/test-pipe.c: Include <windows.h>.
44263         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
44264         result.
44265
44266         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44267         from main.
44268         (test_pipe): Pass an extra argument for disambiguation.
44269         (main): Invoke parent_main or child_main.
44270
44271         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44272         consistently.
44273
44274 2009-07-18  Eric Blake  <ebb9@byu.net>
44275
44276         test-pipe: fix mingw build
44277         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44278
44279 2009-07-18  Bruno Haible  <bruno@clisp.org>
44280
44281         * modules/pipe-tests (Makefile.am): Fix typo.
44282
44283 2009-07-18  Eric Blake  <ebb9@byu.net>
44284
44285         error: fix mingw build
44286         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44287         Reported by Bruno Haible.
44288
44289         error: avoid undefined use of stdout
44290         * lib/error.c (error, error_at_line): Check that fd 1 is open
44291         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44292         is handling faults and the close_stdout module wants to report the
44293         detection of closed stdout as an error.
44294
44295 2009-07-17  Eric Blake  <ebb9@byu.net>
44296
44297         pipe: be robust in face of closed fds
44298         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44299         should cause child to misbehave.
44300         * modules/pipe-tests: New module.
44301         * tests/test-pipe.c: New file.
44302         * tests/test-pipe.sh: New file.
44303         Reported by Akim Demaille.
44304
44305 2009-07-14  Bruno Haible  <bruno@clisp.org>
44306
44307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44308         Reported by anonymous kc.
44309
44310 2009-07-07  Jim Meyering  <meyering@redhat.com>
44311
44312         maint.mk: don't look for translatable strings in *.m4 or *.mk
44313         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44314         when searching for translatable strings.
44315
44316 2009-07-05  Jim Meyering  <meyering@redhat.com>
44317
44318         remove superfluous parentheses in STREQ definition
44319         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44320         * lib/getugroups.c (STREQ): Likewise.
44321         * lib/fnmatch.c (STREQ): Likewise.
44322         Spotted by Bruno Haible.
44323
44324 2009-07-04  Jim Meyering  <meyering@redhat.com>
44325
44326         argv-iter: new module
44327         * MODULES.html.sh: Add argv-iter.
44328         * lib/argv-iter.c, lib/argv-iter.h: New files.
44329         * modules/argv-iter: New file.
44330         * modules/argv-iter-tests: New file.
44331         * tests/test-argv-iter.c: Test it.
44332
44333 2009-07-04  Bruno Haible  <bruno@clisp.org>
44334
44335         Fix assertion.
44336         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
44337         contains more exact copies of a given entry than file2, leave the extra
44338         copies unpaired rather than aborting.
44339         Reported by Eric Blake.
44340
44341 2009-07-02  Bruno Haible  <bruno@clisp.org>
44342
44343         Speedup git-merge-changelog for git cherry-pick.
44344         * lib/git-merge-changelog.c (struct entries_mapping): New type.
44345         (entries_mapping_get): New function, extracted from compute_mapping.
44346         (entries_mapping_reverse_get): New function.
44347         (compute_mapping): Add a 'full' argument. Return the result in a
44348         'struct entries_mapping'.
44349         (main): Update. Access the mappings through entries_mapping_get.
44350         Reported by Eric Blake.
44351
44352 2009-07-02  Bruno Haible  <bruno@clisp.org>
44353
44354         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
44355         best_i.
44356
44357 2009-07-02  Bruno Haible  <bruno@clisp.org>
44358
44359         Speed up approximate search for matching ChangeLog entries.
44360         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
44361         argument. Call fstrcmp_bounded instead of fstrcmp.
44362         (compute_mapping, try_split_merged_entry, main): Update callers.
44363
44364 2009-07-02  Bruno Haible  <bruno@clisp.org>
44365
44366         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
44367
44368 2009-06-30  Bruno Haible  <bruno@clisp.org>
44369
44370         Reduce the number of uc_is_cased calls.
44371         * lib/unicase.h (casing_suffix_context_t): Add
44372         'first_char_except_ignorable' field.
44373         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
44374         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
44375         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
44376         Update initializer.
44377         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
44378         case-ignorable characters.
44379         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
44380         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
44381         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
44382         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
44383         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
44384
44385 2009-06-30  Bruno Haible  <bruno@clisp.org>
44386
44387         Tests for module 'unicase/ignorable'.
44388         * modules/unicase/ignorable-tests: New file.
44389         * tests/unicase/test-ignorable.c: New file, generated by
44390         gen-uni-tables.
44391
44392         Tests for module 'unicase/cased'.
44393         * modules/unicase/cased-tests: New file.
44394         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44395         * tests/unicase/test-predicate-part1.h: New file, derived from
44396         tests/unictype/test-predicate-part1.h.
44397         * tests/unicase/test-predicate-part2.h: New file, same as
44398         tests/unictype/test-predicate-part2.h.
44399
44400         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44401         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44402         (output_casing_properties): New function.
44403         (main): Call it.
44404         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44405         * lib/unicase/cased.c: Include unictype/bitmap.h.
44406         (uc_is_cased): Define through a bitmap lookup.
44407         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
44408         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
44409         (uc_is_case_ignorable): Define through a bitmap lookup.
44410         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
44411         lib/unictype/bitmap.h.
44412         (Depends-on): Add inline. Clean up.
44413         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
44414         lib/unictype/bitmap.h.
44415         (Depends-on): Add inline. Clean up.
44416         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
44417         recognition.
44418         * tests/unicase/test-u16-tolower.c (main): Likewise.
44419         * tests/unicase/test-u32-tolower.c (main): Likewise.
44420
44421 2009-06-30  Bruno Haible  <bruno@clisp.org>
44422
44423         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
44424         * lib/unicase/u16-casemap.c: Likewise.
44425         * lib/unicase/u32-casemap.c: Likewise.
44426
44427 2009-06-29  Bruno Haible  <bruno@clisp.org>
44428
44429         Define u32_casefold as a wrapper around u32_ct_casefold.
44430         * lib/unicase/u32-casefold.c: Update.
44431         * modules/unicase/u32-casefold (Depends-on): Add
44432         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44433         unicase/empty-suffix-context. Clean up.
44434
44435         Define u16_casefold as a wrapper around u16_ct_casefold.
44436         * lib/unicase/u16-casefold.c: Update.
44437         * modules/unicase/u16-casefold (Depends-on): Add
44438         unicase/u16-ct-casefold, unicase/empty-prefix-context,
44439         unicase/empty-suffix-context. Clean up.
44440
44441         Define u8_casefold as a wrapper around u8_ct_casefold.
44442         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
44443         * lib/unicase/u8-casefold.c: Update.
44444         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
44445         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44446
44447         Define u32_totitle as a wrapper around u32_ct_totitle.
44448         * lib/unicase/u32-totitle.c: Update.
44449         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
44450         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44451
44452         Define u16_totitle as a wrapper around u16_ct_totitle.
44453         * lib/unicase/u16-totitle.c: Update.
44454         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
44455         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44456
44457         Define u8_totitle as a wrapper around u8_ct_totitle.
44458         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
44459         functions.
44460         (FUNC): Delegate to U_CT_TOTITLE.
44461         * lib/unicase/u8-totitle.c: Update.
44462         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
44463         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44464
44465         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
44466         invocation.
44467         * modules/unicase/u32-tolower (Depends-on): Add
44468         unicase/empty-prefix-context, unicase/empty-suffix-context.
44469
44470         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
44471         invocation.
44472         * modules/unicase/u16-tolower (Depends-on): Add
44473         unicase/empty-prefix-context, unicase/empty-suffix-context.
44474
44475         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
44476         * modules/unicase/u8-tolower (Depends-on): Add
44477         unicase/empty-prefix-context, unicase/empty-suffix-context.
44478
44479         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
44480         invocation.
44481         * modules/unicase/u32-toupper (Depends-on): Add
44482         unicase/empty-prefix-context, unicase/empty-suffix-context.
44483
44484         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44485         invocation.
44486         * modules/unicase/u16-toupper (Depends-on): Add
44487         unicase/empty-prefix-context, unicase/empty-suffix-context.
44488
44489         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44490         * modules/unicase/u8-toupper (Depends-on): Add
44491         unicase/empty-prefix-context, unicase/empty-suffix-context.
44492
44493         New module 'unicase/u32-ct-casefold'.
44494         * lib/unicase/u32-ct-casefold.c: New file.
44495         * modules/unicase/u32-ct-casefold: New file.
44496
44497         New module 'unicase/u16-ct-casefold'.
44498         * lib/unicase/u16-ct-casefold.c: New file.
44499         * modules/unicase/u16-ct-casefold: New file.
44500
44501         New module 'unicase/u8-ct-casefold'.
44502         * lib/unicase/u8-ct-casefold.c: New file.
44503         * lib/unicase/u-ct-casefold.h: New file, derived from
44504         lib/unicase/u-casefold.h.
44505         * modules/unicase/u8-ct-casefold: New file.
44506
44507         New module 'unicase/u32-ct-totitle'.
44508         * lib/unicase/u32-ct-totitle.c: New file.
44509         * modules/unicase/u32-ct-totitle: New file.
44510
44511         New module 'unicase/u16-ct-totitle'.
44512         * lib/unicase/u16-ct-totitle.c: New file.
44513         * modules/unicase/u16-ct-totitle: New file.
44514
44515         New module 'unicase/u8-ct-totitle'.
44516         * lib/unicase/u8-ct-totitle.c: New file.
44517         * lib/unicase/u-ct-totitle.h: New file, derived from
44518         lib/unicase/u-totitle.h.
44519         * modules/unicase/u8-ct-totitle: New file.
44520
44521         New module 'unicase/u32-ct-tolower'.
44522         * lib/unicase/u32-ct-tolower.c: New file.
44523         * modules/unicase/u32-ct-tolower: New file.
44524
44525         New module 'unicase/u16-ct-tolower'.
44526         * lib/unicase/u16-ct-tolower.c: New file.
44527         * modules/unicase/u16-ct-tolower: New file.
44528
44529         New module 'unicase/u8-ct-tolower'.
44530         * lib/unicase/u8-ct-tolower.c: New file.
44531         * modules/unicase/u8-ct-tolower: New file.
44532
44533         New module 'unicase/u32-ct-toupper'.
44534         * lib/unicase/u32-ct-toupper.c: New file.
44535         * modules/unicase/u32-ct-toupper: New file.
44536
44537         New module 'unicase/u16-ct-toupper'.
44538         * lib/unicase/u16-ct-toupper.c: New file.
44539         * modules/unicase/u16-ct-toupper: New file.
44540
44541         New module 'unicase/u8-ct-toupper'.
44542         * lib/unicase/u8-ct-toupper.c: New file.
44543         * modules/unicase/u8-ct-toupper: New file.
44544
44545         Add context arguments to u*_casemap functions.
44546         * lib/unicase/unicasemap.h: Include unicase.h.
44547         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44548         suffix_context arguments.
44549         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44550         functions.
44551         (FUNC): Add prefix_context and suffix_context arguments. Use
44552         uc_is_cased and uc_is_case_ignorable.
44553         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44554         * lib/unicase/u16-casemap.c: Likewise.
44555         * lib/unicase/u32-casemap.c: Likewise.
44556         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44557         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44558         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44559         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44560         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44561         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44562
44563         New module 'unicase/u32-suffix-context'.
44564         * lib/unicase/u32-suffix-context.c: New file.
44565         * modules/unicase/u32-suffix-context: New file.
44566
44567         New module 'unicase/u16-suffix-context'.
44568         * lib/unicase/u16-suffix-context.c: New file.
44569         * modules/unicase/u16-suffix-context: New file.
44570
44571         New module 'unicase/u8-suffix-context'.
44572         * lib/unicase/u8-suffix-context.c: New file.
44573         * lib/unicase/u-suffix-context.h: New file.
44574         * modules/unicase/u8-suffix-context: New file.
44575
44576         New module 'unicase/empty-suffix-context'.
44577         * lib/unicase/empty-suffix-context.c: New file.
44578         * modules/unicase/empty-suffix-context: New file.
44579
44580         New module 'unicase/u32-prefix-context'.
44581         * lib/unicase/u32-prefix-context.c: New file.
44582         * modules/unicase/u32-prefix-context: New file.
44583
44584         New module 'unicase/u16-prefix-context'.
44585         * lib/unicase/u16-prefix-context.c: New file.
44586         * modules/unicase/u16-prefix-context: New file.
44587
44588         New module 'unicase/u8-prefix-context'.
44589         * lib/unicase/u8-prefix-context.c: New file.
44590         * lib/unicase/u-prefix-context.h: New file.
44591         * lib/unicase/context.h: New file.
44592         * modules/unicase/u8-prefix-context: New file.
44593
44594         New module 'unicase/empty-prefix-context'.
44595         * lib/unicase/empty-prefix-context.c: New file.
44596         * modules/unicase/empty-prefix-context: New file.
44597
44598         New module 'unicase/ignorable'.
44599         * lib/unicase/ignorable.c: New file.
44600         * modules/unicase/ignorable: New file.
44601
44602         New module 'unicase/cased'.
44603         * lib/unicase/caseprop.h: New file.
44604         * lib/unicase/cased.c: New file.
44605         * modules/unicase/cased: New file.
44606
44607         New functions for case mapping of substrings.
44608         * lib/unicase.h (casing_prefix_context_t): New type.
44609         (unicase_empty_prefix_context): New variable.
44610         (u8_casing_prefix_context, u16_casing_prefix_context,
44611         u32_casing_prefix_context, u8_casing_prefixes_context,
44612         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44613         declarations.
44614         (casing_suffix_context_t): New type.
44615         (unicase_empty_suffix_context): New variable.
44616         (u8_casing_suffix_context, u16_casing_suffix_context,
44617         u32_casing_suffix_context, u8_casing_suffixes_context,
44618         u16_casing_suffixes_context, u32_casing_suffixes_context,
44619         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44620         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44621         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44622         declarations.
44623
44624 2009-06-28  Jim Meyering  <meyering@redhat.com>
44625
44626         boostrap: indent only with spaces
44627         * build-aux/bootstrap: Indent only with spaces, never TABs.
44628
44629         bootstrap: split long lines
44630         * build-aux/bootstrap: Keep line length < 80.
44631
44632         bootstrap: sync from coreutils
44633         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44634         just as autoreconf does.  Verify a list of prerequisite
44635         package-name,version-number pairs if defined in bootstrap.conf.
44636         Refer to README-prereq, if prerequisites are not satisfied.
44637
44638 2009-06-27  Eric Blake  <ebb9@byu.net>
44639
44640         tests: add test for bogus NULL definition
44641         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44642         * tests/test-stdlib.c: Likewise.
44643         * tests/test-string.c: Likewise.
44644         * tests/test-locale.c: Likewise.
44645         * tests/test-unistd.c: Likewise.
44646         * modules/stdio-tests (Depends-on): Add verify.
44647         * modules/stdlib-tests (Depends-on): Likewise.
44648         * modules/string-tests (Depends-on): Likewise.
44649         * modules/locale-tests (Depends-on): Likewise.
44650         * modules/unistd-tests (Depends-on): Likewise.
44651
44652 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44653
44654         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44655         self-explaining comment.
44656         * m4/selinux-selinux-h: Update serial.
44657         (gl_LIBSELINUX): New macro, adding a warning for missing development
44658         packages to code extracted from...
44659         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44660         Add warning for missing development packages here, too.
44661
44662 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44663
44664         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44665
44666 2009-06-25  Eric Blake  <ebb9@byu.net>
44667
44668         version-etc: fix regression
44669         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44670         gcc.
44671         (version_etc): Use it, to catch bugs with trailing NULL.
44672         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44673         (version_etc_va): Fix logic bug.
44674         * modules/version-etc-tests: Add test.
44675         * tests/test-version-etc.c: New file.
44676         * tests/test-version-etc.sh: Likewise.
44677
44678 2009-06-25  Sam Steingold  <sds@gnu.org>
44679
44680         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44681         mbtowc declaration.
44682
44683 2009-06-25  Eric Blake  <ebb9@byu.net>
44684
44685         fpurge: migrate into <stdio.h>
44686         * lib/fpurge.h: Delete...
44687         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44688         * lib/fpurge.c (fpurge): Change declaring header.
44689         * modules/fpurge (Files): Drop deleted file.
44690         (Depends-on): Add stdio.
44691         (configure.ac): Set witness.
44692         * modules/stdio (Makefile.am): Support fpurge macros.
44693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44694         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44695         * lib/fflush.c: Update client.
44696         * tests/test-fpurge.c: Likewise.
44697         * NEWS: Mention the change.
44698
44699 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44700
44701         * lib/argp-version-etc.c (program_authors): Add const
44702         qualifier.
44703         * lib/version-etc.c: Fix typos in the comments.
44704         * modules/argp-version-etc: Depends on version-etc.
44705
44706 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44707
44708         argp-version-etc: new module.
44709
44710         * lib/argp-version-etc.c: New file.
44711         * lib/argp-version-etc.h: New file.
44712         * modules/argp-version-etc: New file.
44713         * modules/argp-version-etc-tests: New file.
44714         * tests/test-argp-version-etc.c: New test.
44715         * tests/test-argp-version-etc-1.sh: New test.
44716
44717 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44718
44719         Provide additional interfaces and documentation for version-etc
44720         module.
44721
44722         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44723         interfaces.
44724         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44725         prototypes.
44726
44727 2009-06-24  Bruno Haible  <bruno@clisp.org>
44728
44729         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44730         HAVE_LIB${NAME} macro.
44731         Reported by Sam Steingold <sds@gnu.org>.
44732
44733 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44734
44735         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44736         needed.
44737
44738 2009-06-21  Bruno Haible  <bruno@clisp.org>
44739
44740         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44741         work.
44742         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44743         together with LIB${NAME}, LTLIB${NAME}.
44744         Reported by Sam Steingold <sds@gnu.org>.
44745
44746 2009-06-20  Jim Meyering  <meyering@redhat.com>
44747
44748         tests: make sc_require_test_exit_idiom more generic
44749         * top/maint.mk (Exit_witness_file): New overridable variable.
44750         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44751         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44752
44753 2009-06-19  Jim Meyering  <meyering@redhat.com>
44754
44755         hash: reverse order of src/dst parameters in an internal interface
44756         * lib/hash.c (transfer_entries): Reverse order of parameters to
44757         put DST before SRC.  Adjust callers.
44758
44759         tests: test-hash: avoid wholesale duplication
44760         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44761         Instead, use a loop and add a single conditional.
44762
44763         tests: test-hash: allow seed selection via a command line argument
44764         * tests/test-hash.c (get_seed): New function.
44765         (main): Use it.
44766
44767 2009-06-19  Eric Blake  <ebb9@byu.net>
44768
44769         hash: avoid memory leak on allocation failure
44770         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44771         failure.  Factor repeated algorithm...
44772         (transfer_entries): ...into new helper routine.
44773         (hash_delete): React to hash_rehash return value.
44774
44775         hash: reduce memory pressure in hash_rehash no-op case
44776         * lib/hash.c (next_prime): Avoid overflow.
44777         (hash_initialize): Factor bucket size computation...
44778         (compute_bucket_size): ...into new helper function.
44779         (hash_rehash): Use new function and open coding to reduce memory
44780         pressure, and avoid a memory leak in USE_OBSTACK code.
44781         Reported by Jim Meyering.
44782
44783 2009-06-18  Eric Blake  <ebb9@byu.net>
44784
44785         hash: make rotation more obvious
44786         * modules/hash (Depends-on): Add bitrotate and stdint.
44787         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44788         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44789         (SIZE_MAX): Rely on headers for definition.
44790         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44791         (raw_hasher): Use rotr_sz.
44792         Suggested by Jim Meyering.
44793
44794         hash: fix memory leak in last patch
44795         * lib/hash.c (hash_rehash): Avoid memory leak.
44796
44797         hash: avoid no-op rehashing
44798         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44799
44800         hash: provide default callback functions
44801         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44802         (hash_initialize): Use them as defaults.
44803         * tests/test-hash.c (main): Test this.
44804
44805         hash: minor optimization
44806         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44807         when possible.
44808         (hash_initialize): Document this promise.
44809         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44810         * tests/test-hash.c (hash_compare_strings): Test this.
44811
44812 2009-06-18  Bruno Haible  <bruno@clisp.org>
44813
44814         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44815         going to be replaced anyway.
44816
44817 2009-06-18  Bruno Haible  <bruno@clisp.org>
44818
44819         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44820         in one place.
44821         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44822         be replaced anyway.
44823
44824 2009-06-18  Eric Blake  <ebb9@byu.net>
44825
44826         hash: check for resize before insertion
44827         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44828         threshold before insertion, so that a pathological hash_rehash
44829         that fills every bucket can still trigger another rehash.
44830
44831 2009-06-18  Jim Meyering  <meyering@redhat.com>
44832
44833         hash-tests: add a loop around the small tests
44834         * tests/test-hash.c (main): Repeat small tests with selected
44835         small initial table sizes.
44836
44837 2009-06-17  Eric Blake  <ebb9@byu.net>
44838
44839         hash: minor cleanups
44840         * lib/hash.h (hash_entry): Make opaque, by moving...
44841         * lib/hash.c (hash_entry): ...here.
44842         (hash_insert): Clarify restrictions on what can be inserted.
44843         (hash_get_next): Clarify when it is safe to remove an element
44844         during traversal.
44845         (check_tuning): Skip verification when tuning is known safe.
44846         (hash_initialize): Clarify restrictions on tuning.
44847
44848 2009-06-17  Jim Meyering  <jim@meyering.net>
44849         and Eric Blake  <ebb9@byu.net>
44850
44851         hash-tests: new module
44852         * modules/hash-tests: New file.
44853         * tests/test-hash.c: New file.
44854
44855 2009-06-17  Eric Blake  <ebb9@byu.net>
44856
44857         strstr-simple: document new module
44858         * MODULES.html.sh: Document new module.
44859
44860         strstr, strcasestr: replace on platforms with broken memchr
44861         * modules/strstr: Split into...
44862         * modules/strstr-simple: ...new module that does not care about
44863         performance, but does care about glibc bug.
44864         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44865         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44866         if platform memchr is broken, per Debian bug 521737.
44867         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44868         memchr.
44869         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44870         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44871         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44872         * modules/mountlist (Depends-on): Add strstr-simple.
44873         * modules/gen-uni-tables (Depends-on): Likewise.
44874         * modules/argz (Depends-on): Add strstr.
44875
44876 2009-06-17  Bruno Haible  <bruno@clisp.org>
44877
44878         * modules/posix_spawn-internal (Depends-on): Add errno.
44879
44880 2009-06-17  Bruno Haible  <bruno@clisp.org>
44881
44882         Define missing ESTALE on Interix 3.5.
44883         * lib/errno.in.h (ESTALE): Assign a value if missing.
44884         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44885         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44886         missing.
44887         * doc/posix-headers/errno.texi: Mention the Interix bug.
44888         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44889
44890 2009-06-15  Eric Blake  <ebb9@byu.net>
44891
44892         memchr, memchr2: add valgrind exception
44893         * lib/memchr.valgrind: New file.
44894         * lib/memchr2.valgrind: New file.
44895         * modules/memchr (Files): Distribute valgrind file.
44896         * modules/memchr2 (Files): Likewise.
44897
44898         docs: memchr is no longer obsolete
44899         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44900         * lib/string.in.h (memchr): Simplify logic.
44901
44902 2009-06-14  Jim Meyering  <meyering@redhat.com>
44903
44904         link-follow: fix the "checking..." message to not mention trailing slash
44905         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44906         never considered trailing slashes.
44907
44908 2009-06-14  Bruno Haible  <bruno@clisp.org>
44909
44910         * m4/memchr.m4: Mention also the bug on IA-64.
44911         * doc/posix-functions/memchr.texi: Likewise.
44912
44913 2009-06-12  Eric Blake  <ebb9@byu.net>
44914
44915         memchr: detect broken x86_64 and alpha implementations
44916         * modules/memchr-tests (Depends-on): Move mmap detection...
44917         * modules/memchr (Depends-on): ...here.
44918         (configure.ac): Set indicator.
44919         * lib/string.in.h (memchr): Declare replacement.
44920         * modules/string (Makefile.am): Trigger replacement.
44921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44922         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44923         bugs.
44924         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44925         * modules/getpagesize (License): Relax license.
44926
44927 2009-06-11  Bruno Haible  <bruno@clisp.org>
44928
44929         * lib/idpriv.h: Add more references.
44930
44931 2009-06-08  Bruno Haible  <bruno@clisp.org>
44932
44933         Tests for module 'idpriv-droptemp'.
44934         * modules/idpriv-droptemp-tests: New file.
44935         * tests/test-idpriv-droptemp.sh: New file.
44936         * tests/test-idpriv-droptemp.su.sh: New file.
44937         * tests/test-idpriv-droptemp.c: New file.
44938
44939         New module 'idpriv-droptemp'.
44940         * lib/idpriv-droptemp.c: New file.
44941         * modules/idpriv-droptemp: New file.
44942
44943 2009-06-08  Bruno Haible  <bruno@clisp.org>
44944
44945         Tests for module 'idpriv-drop'.
44946         * modules/idpriv-drop-tests: New file.
44947         * tests/test-idpriv-drop.sh: New file.
44948         * tests/test-idpriv-drop.su.sh: New file.
44949         * tests/test-idpriv-drop.c: New file.
44950
44951         New module 'idpriv-drop'.
44952         * lib/idpriv.h: New file.
44953         * lib-idpriv-drop.c: New file.
44954         * m4/idpriv.m4: New file.
44955         * modules/idpriv-drop: New file.
44956
44957 2009-06-08  Bruno Haible  <bruno@clisp.org>
44958
44959         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44960         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44961         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44962         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44963         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44964         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44965         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44966
44967 2009-06-08  Eric Blake  <ebb9@byu.net>
44968
44969         test-strstr: use memory fence, when possible
44970         * tests/test-strstr.c (main): Use memory fence, in order to be
44971         more likely to trigger Debian bug 521737.
44972         * modules/strstr-tests (Files): Pull in additional files.
44973
44974         memchr: no longer obsolete, for wider field testing
44975         * modules/memchr (Status, Notice): Delete, this module is no
44976         longer obsolete.
44977         * modules/vasnprintf (Depends-on): Add memchr.
44978
44979 2009-06-07  Jim Meyering  <meyering@redhat.com>
44980
44981         hash: declare some functions with the warn_unused_result attribute
44982         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44983
44984 2009-06-07  Bruno Haible  <bruno@clisp.org>
44985
44986         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44987         Reported by Eric Blake.
44988
44989 2009-06-06  Eric Blake  <ebb9@byu.net>
44990
44991         test-alignof: fix typo with long double
44992         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44993         compiler error.
44994
44995 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44996
44997         Escape non-texinfo { and }s.
44998         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44999         markup error.
45000
45001 2009-06-04  Jim Meyering  <meyering@redhat.com>
45002
45003         gitlog-to-changelog: don't infloop on an empty commit log
45004         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45005         Reported by Boris Petersen <transacid@centerim.org>.
45006
45007 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45008
45009         version-etc: extend for packagers
45010         Add three new configure options, intended for packagers:
45011           --with-packager="packager name"
45012           --with-packager-version="packager-specific version"
45013           --with-packager-bug-reports="packager bug reporting"
45014         An example with coreutils:
45015           $ ./configure \
45016             --with-packager=Gentoo \
45017             --with-packager-bug-report=http://bugs.gentoo.org/ \
45018             --with-packager-version="patchset 1.6"
45019           $ ./src/ls --version | head -n2
45020           ls (GNU coreutils) 7.1-dirty
45021           Packaged by Gentoo (patchset 1.6)
45022         Note that the bug reporting info via --help doesn't show up because
45023         coreutils uses its own custom emit_bug_reporting_address() implementation
45024         in src/system.h.  If it didn't, it'd look like:
45025           $ ./src/ls --help | tail -n4
45026           Report bugs to <bug-coreutils@gnu.org>.
45027           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45028           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45029           General help using GNU software: <http://www.gnu.org/gethelp/>.
45030         * lib/version-etc.c: Print new information, if provided.
45031         * m4/version-etc.m4: New file.
45032         * modules/version-etc (Files): Add m4/version-etc.m4.
45033         (configure.ac): Add gl_VERSION_ETC.
45034
45035 2009-05-31  Bruno Haible  <bruno@clisp.org>
45036
45037         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45038         and 'int64_t'.
45039         * modules/alignof-tests (Dependencies): Add stdint.
45040         Reported by Eric Blake.
45041
45042 2009-05-31  Bruno Haible  <bruno@clisp.org>
45043
45044         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45045         restriction due to compiler bugs.
45046         Reported by Eric Blake.
45047
45048 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45049             Bruno Haible  <bruno@clisp.org>
45050
45051         Fix test-alignof failure.
45052         * lib/alignof.h (alignof_slot): New macro.
45053         (alignof_type): New macro, with the same semantics as the previous
45054         'alignof'.
45055         (alignof): Alias to alignof_slot.
45056         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45057         check that the results are usable as constant expressions.
45058
45059 2009-05-31  Bruno Haible  <bruno@clisp.org>
45060
45061         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45062         * tests/test-memchr.c (main): Check that memchr does not read past the
45063         first occurrence of the byte.
45064         * tests/test-strstr.c (main): Update comment.
45065         Suggested by Eric Blake.
45066
45067 2009-05-30  Bruno Haible  <bruno@clisp.org>
45068
45069         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45070         detail how to use dumpbin.
45071         Reported by David Byron <dbyron@dbyron.com>.
45072
45073 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45074
45075         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45076
45077 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45078
45079         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45080
45081 2009-05-28  Bruno Haible  <bruno@clisp.org>
45082
45083         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45084         build-aux/ files.
45085
45086 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45087
45088         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45089
45090 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45091
45092         * gnulib-tool (sed_transform_main_lib_file)
45093         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45094         regexps.
45095
45096 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45097
45098         * tests/test-strstr.c: Add another self-test.
45099         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45100         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45101
45102 2009-05-23  Bruno Haible  <bruno@clisp.org>
45103
45104         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45105         change.
45106
45107 2009-05-21  Bruno Haible  <bruno@clisp.org>
45108
45109         Simplify use of mode_t varargs.
45110         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45111         uses 'mode_t' or 'int'.
45112         * lib/openat.c (openat): Likewise.
45113         * lib/open-safer.c (open_safer): Likewise.
45114         * m4/mode_t.m4: New file.
45115         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45116         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45117         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45118         * modules/open (Files): Add m4/mode_t.m4.
45119         * modules/openat (Files): Likewise.
45120         * modules/fcntl-safer (Files): Likewise.
45121         Suggested by Eric Blake.
45122
45123 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45124
45125         * doc/glibc-functions/fallocate.texi: New file.
45126         * doc/gnulib.texi: Include it.
45127
45128 2009-05-21  Eric Blake  <ebb9@byu.net>
45129             Bruno Haible  <bruno@clisp.org>
45130
45131         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45132         invocations.
45133         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45134
45135 2009-05-21  Eric Blake  <ebb9@byu.net>
45136             Bruno Haible  <bruno@clisp.org>
45137
45138         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45139         include_next. Fix of 2008-11-20 commit.
45140         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45141         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45142         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45143         NEXT_MATH_H.
45144         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45145         instead of NEXT_MATH_H.
45146
45147 2009-05-21  Bruno Haible  <bruno@clisp.org>
45148
45149         Avoid redefinition warnings for SIZE_MAX.
45150         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45151         Reported by Simon Josefsson.
45152
45153 2009-05-21  Bruno Haible  <bruno@clisp.org>
45154
45155         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45156         AC_CACHE_VAL.
45157
45158 2009-05-20  Bruno Haible  <bruno@clisp.org>
45159
45160         Make zeroptr.h work on mingw.
45161         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45162         mprotect.
45163         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45164         * modules/memchr2-tests (configure.ac): Likewise.
45165         * modules/memcmp-tests (configure.ac): Likewise.
45166         * modules/memmem-tests (configure.ac): Likewise.
45167         * modules/memrchr-tests (configure.ac): Likewise.
45168         Reported by Simon Josefsson.
45169
45170 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45171
45172         * tests/test-glob.c: Include string.h for strcmp prototype.
45173
45174 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45175
45176         * modules/getdelim (Depends-on): Add explicit stdint, although it
45177         was implicitly already pulled in via realloc-posix.
45178         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45179
45180 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45181
45182         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45183         G. Christensen" <tgc@jupiterrise.com>.
45184         * m4/sys_socket_h.m4: Check for sa_family_t.
45185         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45186         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45187         * tests/test-sys_socket.c: Check that sa_family_t works.
45188
45189 2009-05-18  Eric Blake  <ebb9@byu.net>
45190
45191         maint.mk: allow gnulib_dir in VPATH build
45192         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45193
45194 2009-05-15  Jim Meyering  <meyering@redhat.com>
45195
45196         maint.mk: Give gnulib_dir a default definition.
45197         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45198         Thus, most packages no longer need to specify this variable in cfg.mk
45199
45200 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45201
45202         rename.m4: fix typos that would make non-mingw cross-configure fail
45203         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45204
45205 2009-05-13  Eric Blake  <ebb9@byu.net>
45206
45207         mmap-anon: avoid out-of-order autoconf expansion
45208         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45209         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45210         * modules/memchr-tests (Depends-on): Add extensions.
45211         * modules/memchr2-tests (Depends-on): Add extensions.
45212         * modules/memcmp-tests (Depends-on): Add extensions.
45213         * modules/memmem-tests (Depends-on): Add extensions.
45214         * modules/memrchr-tests (Depends-on): Add extensions.
45215
45216 2009-05-13  Bruno Haible  <bruno@clisp.org>
45217
45218         Make some tests ISO C 99 compliant.
45219         * tests/zerosize-ptr.h: New file.
45220         * tests/test-memchr.c: Include zerosize-ptr.h.
45221         (main): Use a zero-size object pointer instead of NULL.
45222         * tests/test-memchr2.c: Include zerosize-ptr.h.
45223         (main): Use a zero-size object pointer instead of NULL.
45224         * tests/test-memcmp.c: Include zerosize-ptr.h.
45225         (main): Use a zero-size object pointer instead of NULL.
45226         * tests/test-memmem.c: Include zerosize-ptr.h.
45227         (main): Use a zero-size object pointer instead of NULL.
45228         * tests/test-memrchr.c: Include zerosize-ptr.h.
45229         (main): Use a zero-size object pointer instead of NULL.
45230         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
45231         m4/mmap-anon.m4.
45232         (Depends-on): Add getpagesize.
45233         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45234         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
45235         m4/mmap-anon.m4.
45236         (Depends-on): Add getpagesize.
45237         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45238         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
45239         m4/mmap-anon.m4.
45240         (Depends-on): Add getpagesize.
45241         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45242         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45243         m4/mmap-anon.m4.
45244         (Depends-on): Add getpagesize.
45245         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45246         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45247         m4/mmap-anon.m4.
45248         (Depends-on): Add getpagesize.
45249         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45250
45251 2009-05-12  Bruno Haible  <bruno@clisp.org>
45252
45253         Tests for module 'alignof'.
45254         * modules/alignof-tests: New file.
45255         * tests/test-alignof.c: New file.
45256
45257 2009-05-12  Bruno Haible  <bruno@clisp.org>
45258
45259         Fix alignof macro.
45260         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
45261         vendor compilers that are always correct.
45262
45263 2009-05-12  Bruno Haible  <bruno@clisp.org>
45264
45265         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45266         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45267         not whether its fully works.
45268
45269 2009-05-12  Bruno Haible  <bruno@clisp.org>
45270
45271         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45272
45273 2009-05-12  Jim Meyering  <meyering@redhat.com>
45274
45275         * top/maint.mk: Adjust backslash alignment.
45276
45277 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45278
45279         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45280
45281 2009-05-11  Eric Blake  <ebb9@byu.net>
45282
45283         argp: avoid undefined behavior
45284         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45285         macros.
45286
45287 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45288
45289         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45290         user.name to prevent git commit from complaining.
45291
45292 2009-05-10  Bruno Haible  <bruno@clisp.org>
45293
45294         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45295         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45296         it rewrites every file name only once.
45297         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45298
45299 2009-05-08  Bruno Haible  <bruno@clisp.org>
45300
45301         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45302         instead of 'max'.
45303
45304 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45305
45306         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45307         sockaddr_storage test.
45308
45309 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45310
45311         * modules/sys_socket (Makefile.am): Substitute
45312         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45313         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45314         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45315         * tests/test-sys_socket.c: Check sockaddr_storage.
45316
45317 2009-05-08  Bruno Haible  <bruno@clisp.org>
45318
45319         New module 'alignof'.
45320         * lib/alignof.h: New file.
45321         * modules/alignof: New file.
45322
45323 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45324             Bruno Haible  <bruno@clisp.org>
45325
45326         Fix test-file-has-acl on FreeBSD.
45327         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45328         mask is implicitly added.
45329         * tests/test-file-has-acl.c: Include <signal.h>.
45330         (main): Terminate the test after 5 seconds.
45331         * modules/acl-tests (configure.ac): Check for alarm function.
45332
45333 2009-05-04  Bruno Haible  <bruno@clisp.org>
45334
45335         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
45336         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
45337         * modules/errno (configure.ac): Drop AC_REQUIRE.
45338         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
45339         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
45340
45341 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45342
45343         * modules/glob-tests: New module.
45344         * tests/test-glob.c: Add.
45345
45346 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45347
45348         * modules/fnmatch-tests: New module.
45349         * tests/test-fnmatch.c: Add.
45350
45351 2009-05-04  Eric Blake  <ebb9@byu.net>
45352
45353         maint: make the new no-submodule-changes rule VPATH-safe
45354         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
45355
45356 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45357             Bruno Haible  <bruno@clisp.org>
45358
45359         acl: Fix infinite loop on FreeBSD.
45360         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
45361         of return value from acl_get_entry.
45362         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
45363         Likewise.
45364
45365 2009-05-03  Bruno Haible  <bruno@clisp.org>
45366
45367         * lib/acl-internal.h (acl_entries): Clarify return value.
45368         * lib/acl_entries.c (acl_entries): Likewise.
45369
45370 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45371
45372         Bug fix in acl module.
45373         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
45374
45375 2009-05-03  Bruno Haible  <bruno@clisp.org>
45376
45377         Create gperf-generated file in the source dir, not in the build dir.
45378         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
45379         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
45380         * modules/unicase/locale-language (unicase/locale-languages.h):
45381         Likewise.
45382         * modules/unicase/special-casing (unicase/special-casing-table.h):
45383         Likewise.
45384         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45385         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45386         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45387         Reported by Ralf Wildenhues.
45388
45389 2009-05-03  Bruno Haible  <bruno@clisp.org>
45390
45391         * modules/fnmatch (Description, configure.ac): Taken from
45392         fnmatch-posix.
45393         * modules/fnmatch-posix: Turn into a symbolic reference to the
45394         'fnmatch' module, and deprecate.
45395         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45396
45397 2009-05-03  Bruno Haible  <bruno@clisp.org>
45398
45399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45400         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45401         Reported by Ralf Wildenhues.
45402
45403 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45404
45405         * m4/fnmatch.m4: Fix fnmatch re-define.
45406
45407 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45408
45409         priv-set: new module and tests; adapt write-any-file
45410         * lib/priv-set.c: New file.
45411         * lib/priv-set.h: New file.
45412         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
45413         * lib/write-any-file.c: Simplify by using priv-set module.
45414         * m4/priv-set.m4: New file.
45415         * modules/priv-set: New file.
45416         * modules/unlinkdir: Add dependency on priv-set module.
45417         * modules/write-any-file: Likewise.
45418
45419         Tests for module 'priv-set'.
45420         * modules/priv-set-tests: New file.
45421         * tests/test-priv-set.c: New file.
45422
45423 2009-05-03  Jim Meyering  <meyering@redhat.com>
45424             Bruno Haible  <bruno@clisp.org>
45425
45426         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45427         use the converted UTF-8 variant of the name instead.
45428
45429 2009-05-03  Jim Meyering  <meyering@redhat.com>
45430
45431         tests: tighten some getdate tests
45432         * tests/test-getdate.c (main): Tighten tests: require equality,
45433         not just greater than.  Set TZ envvar to UTC0.
45434
45435 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45436
45437         getdate: correctly interpret "next monday" when run on a Monday
45438         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
45439         that e.g., "next tues" (when run on a tuesday) results in a date
45440         that is one week in the future, and not today's date.
45441         I.e., add a week when the wday is the same as the current one.
45442         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
45443         and earlier by Martin Bernreuther and Jan Minář.
45444         * tests/test-getdate.c (main): Check that "next DAY" is always in
45445         the future and that "last DAY" is always in the past.
45446
45447 2009-05-02  Jim Meyering  <meyering@redhat.com>
45448
45449         build: ensure that a release build fails when a submodule is unclean
45450         * top/maint.mk (no-submodule-changes): New rule.
45451         (alpha beta major): Depend on it.
45452
45453 2009-05-02  Bruno Haible  <bruno@clisp.org>
45454
45455         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
45456         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
45457         shell variable gl_fnmatch_required to detect which variant is
45458         requested.
45459         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
45460         gl_FUNC_FNMATCH_POSIX.
45461         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
45462         exclude fnmatch-posix.
45463
45464 2009-05-02  Bruno Haible  <bruno@clisp.org>
45465
45466         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
45467         * modules/mbsrtowcs (License): Change to LGPLv2+.
45468         * modules/strnlen1 (License): Likewise.
45469         Reported by Simon Josefsson.
45470
45471 2009-05-02  Bruno Haible  <bruno@clisp.org>
45472
45473         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
45474         "cross".
45475         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
45476         gnulib-tool was called with option --source-base=lib.
45477
45478 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45479
45480         Use automake *-local hooks without commands, for extensibility.
45481         * modules/localcharset (Makefile.am): Rename install-exec-local
45482         rule to install-exec-localcharset, and make it a prerequisite of
45483         install-exec-local.  Likewise, rename the uninstall-local rule to
45484         uninstall-localcharset, and make it a prerequisite of the former.
45485
45486 2009-05-01  Bruno Haible  <bruno@clisp.org>
45487
45488         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45489         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45490         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45492         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45493         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45494         m4/locale-zh.m4, m4/codeset.m4.
45495
45496         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45497         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45498         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45499         m4/locale-zh.m4.
45500
45501         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45502         REPLACE_WCRTOMB if mbstate_t must be replaced.
45503         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45504         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45505
45506 2009-05-01  Bruno Haible  <bruno@clisp.org>
45507
45508         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45509         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45510         dngettext, dcngettext, textdomain, bindtextdomain,
45511         bind_textdomain_codeset): Undefine before redefining.
45512
45513 2009-04-30  Bruno Haible  <bruno@clisp.org>
45514
45515         Fix bug introduced on 2009-04-25.
45516         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45517         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45518         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45519         is defined.
45520         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45521         is defined.
45522         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45523         is defined.
45524         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45525
45526 2009-04-28  Bruno Haible  <bruno@clisp.org>
45527
45528         Comment tweaks.
45529         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45530         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45531         * lib/unicase.h (u*_casexfrm): Likewise.
45532         Reported by Paolo Bonzini.
45533
45534 2009-04-28  Bruno Haible  <bruno@clisp.org>
45535
45536         Fix a compilation error.
45537         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45538         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45539         Reported by Jim Meyering.
45540
45541 2009-04-27  Bruno Haible  <bruno@clisp.org>
45542
45543         New module 'libunistring'.
45544         * modules/libunistring: New file.
45545         * m4/libunistring.m4: New file.
45546         * MODULES.html.sh (Unicode string functions): Add it.
45547
45548 2009-04-27  Eric Blake  <ebb9@byu.net>
45549
45550         maint.mk: allow package-specific header to provide <config.h>
45551         * top/maint.mk (sc_require_config_h): New variable.
45552         (sc_require_config_h, sc_require_config_h_first): Use it.
45553
45554 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45555
45556         * top/maint.mk (sc_avoid_if_before_free): Except
45557         useless-if-before-free script.
45558
45559 2009-04-27  Eric Blake  <ebb9@byu.net>
45560
45561         maintainer-makefile: depend on all required helper scripts
45562         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45563         useless-if-before-free.
45564         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45565         version, rather than assuming gnulib checkout is available.
45566         Reported by Simen Josefsson.
45567
45568 2009-04-26  Bruno Haible  <bruno@clisp.org>
45569
45570         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45571         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45572         "../" or "..".
45573
45574 2009-04-26  Bruno Haible  <bruno@clisp.org>
45575
45576         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45577         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45578         AC_LIB_HAVE_LINKFLAGS.
45579
45580 2009-04-26  Bruno Haible  <bruno@clisp.org>
45581
45582         Simplify calling convention of u*_conv_from_encoding.
45583         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45584         u32_conv_from_encoding): Expect a resultbuf argument and return the
45585         result directly as a pointer.
45586         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45587         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45588         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45589         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45590         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45591         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45592         Update.
45593         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45594         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45595         * lib/vasnprintf.c (VASNPRINTF): Update.
45596         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45597         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45598         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45599         * NEWS: Mention the change.
45600
45601 2009-04-26  Bruno Haible  <bruno@clisp.org>
45602
45603         Simplify calling convention of u*_conv_to_encoding.
45604         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45605         u32_conv_to_encoding): Expect a resultbuf argument and return the
45606         result directly as a pointer.
45607         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45608         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45609         freeing scaled_offsets if mem_iconveha failed.
45610         * lib/unicase/u-casexfrm.h (FUNC): Update.
45611         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45612         * lib/vasnprintf.c (VASNPRINTF): Update.
45613         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45614         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45615         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45616         * NEWS: Mention the change.
45617
45618 2009-04-26  Bruno Haible  <bruno@clisp.org>
45619
45620         Avoid test failures on AIX and OSF/1.
45621         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45622         malloc(0).
45623         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45624         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45625         Likewise.
45626         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45627         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45628         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45629         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45630         * doc/posix-functions/malloc.texi: Document the portability problem
45631         related to malloc(0).
45632
45633 2009-04-26  Bruno Haible  <bruno@clisp.org>
45634
45635         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45636         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45637         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45638
45639 2009-04-25  Bruno Haible  <bruno@clisp.org>
45640
45641         Avoid link error when creating a namespace clean library.
45642         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45643         as macro with arguments if already defined as an alias.
45644         * lib/signbitf.c (gl_signbitf): Don't undefine.
45645         * lib/signbitd.c (gl_signbitd): Don't undefine.
45646         * lib/signbitl.c (gl_signbitl): Don't undefine.
45647
45648 2009-04-25  Jim Meyering  <meyering@redhat.com>
45649
45650         vc-list-files: fix another quoting bug
45651         * build-aux/vc-list-files: Avoid sed backslash expansion
45652         of pathological directory names.
45653
45654 2009-04-25  Eric Blake  <ebb9@byu.net>
45655
45656         vc-list-files: fix shell quoting error
45657         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45658         timestamp.
45659
45660 2009-04-25  Jim Meyering  <meyering@redhat.com>
45661
45662         vc-list-files: restore lost functionality with subdir argument
45663         * build-aux/vc-list-files: When given a non-"." sub-directory
45664         argument, substitute the $dir/ prefix back onto each resulting name.
45665         Otherwise, coreutils' root_tests check would fail.
45666
45667 2009-04-24  Eric Blake  <ebb9@byu.net>
45668
45669         vc-list-files: ignore git symlinks
45670         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45671         than ls-files, to ignore git symlinks.
45672
45673         maint.mk: import improvements from m4
45674         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45675         (move_if_change): Delete unused macro.
45676         (news-date-check, vc-diff-check): Support VPATH builds.
45677         (announcement): Likewise.  Split --bootstrap-tools list...
45678         (boostrap-tools): ...into separate list, which can be overridden
45679         in cfg.mk.
45680         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45681         requiring dependency on useless-if-before-free module.
45682         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45683         Support VPATH builds.
45684
45685 2009-04-24  Jim Meyering  <meyering@redhat.com>
45686
45687         maint.mk: remove coreutils-specific rules and variables
45688         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45689         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45690         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45691
45692         maint.mk: remove obsolete rule
45693         * top/maint.mk (rel-check): Remove rule.
45694         (WGET, WGETFLAGS): Remove now-unused variables.
45695
45696 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45697
45698         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45699         consistency.
45700
45701         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45702         '$(PATH_SEPARATOR)' instead of ':'.
45703
45704 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45705
45706         * lib/getopt1.c (main): Use 'const' for static array.
45707
45708 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45709
45710         * top/maint.mk: Sync with coreutils.
45711         * NEWS: Explain incompatibilities.
45712
45713 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45714             Bruno Haible  <bruno@clisp.org>
45715
45716         Fix cross-compilation results.
45717         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45718         statement, as third argument of AC_TRY_RUN.
45719         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45720         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45721         Likewise.
45722         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45723         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45724         Likewise.
45725         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45726         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45727         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45728
45729 2009-04-20  Bruno Haible  <bruno@clisp.org>
45730
45731         Avoid test failure on mingw.
45732         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45733
45734 2009-04-20  Bruno Haible  <bruno@clisp.org>
45735
45736         Avoid compilation error on mingw.
45737         * modules/localename-tests (Depends-on): Add locale.
45738
45739 2009-04-19  Bruno Haible  <bruno@clisp.org>
45740
45741         Support for building a shared library on Windows platforms.
45742         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45743         (main): Test the presence of UNINORM_NFC here.
45744         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45745         (main): Test the presence of UNINORM_NFD here.
45746         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45747         (main): Test the presence of UNINORM_NFKC here.
45748         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45749         (main): Test the presence of UNINORM_NFKD here.
45750
45751 2009-04-19  Bruno Haible  <bruno@clisp.org>
45752
45753         Avoid a compiler warning.
45754         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45755         Change type of variable 'sequence'.
45756
45757 2009-04-19  Bruno Haible  <bruno@clisp.org>
45758
45759         * modules/configmake (Makefile.am): When the contents of configmake.h
45760         does not change, arrange to preserve its modification time.
45761
45762 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45763
45764         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45765         gettext domain.
45766
45767 2009-04-16  Jim Meyering  <meyering@redhat.com>
45768
45769         useless-if-before-free: improve conversion code
45770         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45771         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45772
45773 2009-04-14  Bruno Haible  <bruno@clisp.org>
45774
45775         * modules/fcntl (Depends-on): Add extensions.
45776         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45777
45778 2009-04-12  Ben Pfaff  <blp@gnu.org>
45779
45780         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45781         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45782
45783 2009-03-20  Ben Pfaff  <blp@gnu.org>
45784
45785         Make rename replace existing destinations on Windows.
45786         * m4/rename.m4: Add test for Mingw.
45787         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45788         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45789         * doc/posix-functions/rename.texi: Document.
45790
45791 2009-04-10  Bruno Haible  <bruno@clisp.org>
45792
45793         New include file "iconveh.h".
45794         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45795         * lib/striconveh.h: Include it.
45796         (enum iconv_ilseq_handler): Remove definition.
45797         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45798         striconveh.h.
45799         * lib/striconveha.c: Include striconveh.h.
45800         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45801         * modules/striconveh (Files): Add lib/iconveh.h.
45802         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45803         lib/striconveh.h.
45804
45805 2009-04-10  Bruno Haible  <bruno@clisp.org>
45806
45807         * lib/uniconv.h: Update comment.
45808
45809 2009-04-10  Bruno Haible  <bruno@clisp.org>
45810
45811         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45812         always.
45813         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45814         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45815         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45816         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45817         "unistring-notinline.h", so that the function gets defined always.
45818         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45819         * lib/unistr/u8-uctomb.c: Likewise.
45820         * lib/unistr/u16-mbtouc.c: Likewise.
45821         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45822         * lib/unistr/u16-uctomb.c: Likewise.
45823         * lib/unistr/u32-mbtouc.c: Likewise.
45824         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45825         * lib/unistr/u32-uctomb.c: Likewise.
45826
45827 2009-04-10  Bruno Haible  <bruno@clisp.org>
45828
45829         Mark 'utime' obsolete.
45830         * modules/utime (Status, Notice): New sections.
45831         Suggested by Jim Meyering.
45832
45833         Fix cross-compile guess for utime test.
45834         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45835         autoconf.
45836         * doc/posix-functions/utime.texi: Give more precisions.
45837         Reported by Jan <ipif@ymail.com>.
45838
45839 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45840
45841         filevercmp: correct today's change
45842         * lib/filevercmp.c: Also handle coreutils' test inputs.
45843         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45844
45845         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45846         for reporting it.
45847         * lib/filevercmp.c: Special handle for "", "." and "..".
45848         * tests/test-filevercmp.c: Enlarge the set suite.
45849
45850 2009-04-07  Jim Meyering  <meyering@redhat.com>
45851
45852         useless-if-before-free: show how to remove braced useless free, too
45853         * build-aux/useless-if-before-free: still only in a comment, though.
45854
45855 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45856
45857         maint.mk: import changes to syntax-check macros from coreutils
45858         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45859         Use them in the relevant macros.
45860
45861 2009-04-06  Bruno Haible  <bruno@clisp.org>
45862
45863         Fix unportable use of bit-fields.
45864         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45865         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45866         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45867
45868 2009-04-06  Bruno Haible  <bruno@clisp.org>
45869
45870         Avoid test failures on AIX and OSF/1.
45871         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45872         that malloc(0) = NULL.
45873         * tests/unicase/test-u8-tolower.c (check): Likewise.
45874         * tests/unicase/test-u8-totitle.c (check): Likewise.
45875         * tests/unicase/test-u8-toupper.c (check): Likewise.
45876         * tests/unicase/test-u16-casefold.c (check): Likewise.
45877         * tests/unicase/test-u16-tolower.c (check): Likewise.
45878         * tests/unicase/test-u16-totitle.c (check): Likewise.
45879         * tests/unicase/test-u16-toupper.c (check): Likewise.
45880         * tests/unicase/test-u32-casefold.c (check): Likewise.
45881         * tests/unicase/test-u32-tolower.c (check): Likewise.
45882         * tests/unicase/test-u32-totitle.c (check): Likewise.
45883         * tests/unicase/test-u32-toupper.c (check): Likewise.
45884         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45885         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45886         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45887         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45888         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45889         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45890         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45891         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45892         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45893         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45894         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45895         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45896
45897 2009-04-05  Bruno Haible  <bruno@clisp.org>
45898
45899         Work around an autoconf limitation.
45900         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45901         comment line if it would be longer than 3 KB.
45902
45903 2009-04-05  Bruno Haible  <bruno@clisp.org>
45904
45905         Avoid test failure with libiconv-1.13.
45906         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45907         of the expected test results.
45908
45909 2009-04-05  Bruno Haible  <bruno@clisp.org>
45910
45911         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45912         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45913         that it should be installed.
45914
45915 2009-04-05  Bruno Haible  <bruno@clisp.org>
45916
45917         * gnulib-tool: New option --copy-file.
45918         (func_usage): Document it.
45919         (func_dest_tmpfilename): Moved out of func_import.
45920         (func_add_file, func_update_file): New functions, extracted from
45921         func_import.
45922         (func_import): Update.
45923
45924 2009-04-05  Karl Berry  <karl@gnu.org>
45925
45926         * README: prominently mention gnulib-tool.
45927         Rearrange sections so getting the code is near the top.
45928
45929 2009-04-05  Bruno Haible  <bruno@clisp.org>
45930
45931         * lib/unicase.h: Mention u*_cmp2.
45932         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45933         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45934         * lib/unicase/ulc-casecmp.c: Likewise.
45935         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45936         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45937         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45938         unistr/u8-cmp.
45939         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45940         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45941         unistr/u16-cmp.
45942         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45943         unistr/u32-cmp.
45944
45945         * lib/uninorm.h: Mention u*_cmp2.
45946         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45947         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45948         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45949         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45950         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45951         unistr/u8-cmp.
45952         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45953         unistr/u16-cmp.
45954         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45955         unistr/u32-cmp.
45956
45957         New module 'unistr/u32-cmp2'.
45958         * lib/unistr/u32-cmp2.c: New file.
45959         * modules/unistr/u32-cmp2: New file.
45960
45961         New module 'unistr/u16-cmp2'.
45962         * lib/unistr/u16-cmp2.c: New file.
45963         * modules/unistr/u16-cmp2: New file.
45964
45965         New module 'unistr/u8-cmp2'.
45966         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45967         * lib/unistr/u8-cmp2.c: New file.
45968         * lib/unistr/u-cmp2.h: New file.
45969         * modules/unistr/u8-cmp2: New file.
45970
45971 2009-04-05  Bruno Haible  <bruno@clisp.org>
45972
45973         * lib/unictype.h (uc_property_is_valid): New macro.
45974         * tests/unictype/test-pr_byname.c (main): Use it.
45975
45976         * lib/unistr.h: Doc fixes.
45977         * lib/uniconv.h: Doc fixes.
45978         * lib/unictype.h: Doc fixes.
45979
45980 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45981
45982         Port coreutils 7.2 to Solaris 8.
45983
45984         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45985         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45986         for Solaris 8.  This is a bit of a hack, as it means it's the
45987         caller's responsibility to add -lnsl if needed, but most likely it
45988         won't be needed since only getaddrinfo uses this and getaddrinfo
45989         isn't needed on Solaris 8.
45990
45991         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45992         problem to Solaris 8 encountered with coreutils 7.2, which
45993         resulted in a message "fnmatch.c:292: warning: passing argument 4
45994         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45995         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45996
45997 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45998
45999         * m4/ld-version-script.m4: Add FIXME comment.
46000
46001 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46002
46003         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46004         SOVERSION variable.
46005
46006 2009-04-02  Bruno Haible  <bruno@clisp.org>
46007
46008         * Makefile (info, html, dvi, pdf): Combine the rules.
46009         Suggested by Jim Meyering.
46010
46011 2009-04-01  Bruno Haible  <bruno@clisp.org>
46012
46013         * Makefile (info, html, dvi, pdf): New targets.
46014         Reported by Reuben Thomas <rrt@sc3d.org>.
46015
46016 2009-04-01  Bruno Haible  <bruno@clisp.org>
46017
46018         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46019         can be put into PATH.
46020         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46021
46022 2009-04-01  Bruno Haible  <bruno@clisp.org>
46023
46024         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46025
46026 2009-04-01  Bruno Haible  <bruno@clisp.org>
46027
46028         Rename module 'visibility'.
46029         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46030         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46031         * doc/gnulib.texi: Update.
46032         * MODULES.html.sh (Misc): Update.
46033         * NEWS: Mention the change.
46034
46035 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46036
46037         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46038         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46039         Eric Blake <ebb9@byu.net> for review.
46040         * MODULES.html.sh: Add lib-msvc-compat.
46041         * doc/gnulib.texi: Link to new section.
46042         * m4/ld-output-def.m4: New file.
46043         * doc/ld-output-def.texi: New file.
46044
46045 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46046
46047         Rename ld-version-script to lib-symbol-versions.  Suggested by
46048         Bruno Haible <bruno@clisp.org>.
46049         * modules/ld-version-script: Renamed to lib-symbol-versions.
46050         * doc/ld-version-script.texi: Fix module name.
46051         * MODULES.html.sh: Add lib-symbol-versions.
46052
46053 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46054
46055         * modules/u64-tests: New file.
46056         * tests/test-u64.c: New file.
46057
46058 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46059
46060         * MODULES.html.sh: Mention u64.
46061         * modules/u64: New module.
46062         * modules/crypto/sha512: Depend on u64 module instead of providing
46063         u64.h.
46064
46065 2009-03-27  Eric Blake  <ebb9@byu.net>
46066
46067         test-strerror: make debugging EAI_SYSTEM easier
46068         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46069         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46070         failure was EAI_SYSTEM.
46071
46072 2009-03-25  Bruno Haible  <bruno@clisp.org>
46073
46074         Fix a problem with --enable-relocatable on Solaris 7.
46075         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46076         since 2008-02-24.
46077
46078 2009-03-25  Eric Blake  <ebb9@byu.net>
46079
46080         test-sockets: avoid gcc warning
46081         * tests/test-sockets.c (main): Silence compiler warning.
46082
46083 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46084
46085         New modules nproc, pthread, contributed by Glen Lenker.
46086
46087         * MODULES.html.sh: Add pthread, nproc.
46088         * lib/nproc.c: New file.
46089         * lib/nproc.h: New file.
46090         * lib/pthread.in.h: New file.
46091         * m4/pthread.m4: New file.
46092         * modules/nproc: New file.
46093         * modules/pthread: New file.
46094
46095 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46096
46097         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46098         New variable.
46099
46100 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46101
46102         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46103         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46104         * tests/test-filevercmp.c: Add tests for backup suffixes.
46105
46106 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46107
46108         * modules/stdlib (Depends-on): Add stdint, needed when defining
46109         struct random_data on, for example, HP-UX 10.20.  Reported by
46110         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46111
46112 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46113
46114         * lib/readline.c (readline): Call fflush on stdout after printing
46115         prompt.
46116
46117 2009-03-20  Bruno Haible  <bruno@clisp.org>
46118
46119         Remove dependency from 'close' module to -lws2_32 on native Windows.
46120         * lib/close-hook.h: New file.
46121         * lib/close-hook.c: New file.
46122         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46123         w32sock.h.
46124         (_gl_close_fd_maybe_socket): Remove function.
46125         (rpl_close): Invoke execute_all_close_hooks instead of
46126         _gl_close_fd_maybe_socket.
46127         * lib/sockets.c: Include close-hook.h, w32sock.h.
46128         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46129         (close_sockets_hook): New variable.
46130         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46131         (gl_sockets_cleanup): Unregister it.
46132         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46133         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46134         * modules/close-hook: New file.
46135         * modules/close (Files): Remove lib/w32sock.h.
46136         (Depends-on): Add close-hook.
46137         (Link): Remove section.
46138         * modules/sockets (Files): Add lib/w32sock.h.
46139         (Depends-on): Add close-hook.
46140         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46141         invocation.
46142         * NEWS: Mention that LIB_CLOSE is gone.
46143
46144 2009-03-23  Eric Blake  <ebb9@byu.net>
46145
46146         signal-tests: test previous patch
46147         * tests/test-signal.c: New file.
46148         * modules/signal-tests: Likewise.
46149
46150         signal.h: always support 'volatile sig_atomic_t'
46151         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46152         (gl_SIGNAL_H_DEFAULTS): Add a default.
46153         * modules/signal (Makefile.am): Substitute if needed.
46154         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46155         users can blindly add volatile.
46156         * doc/posix-headers/signal.texi (signal.h): Document it.
46157         Reported by Matthew Woehlke.
46158
46159 2009-03-23  Jim Meyering  <meyering@redhat.com>
46160
46161         pathmax: PATH_MAX: use pathconf only when available
46162         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46163         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46164         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46165         This avoids a link failure in a PSP cross-compilation environment
46166         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46167
46168         * lib/vasnprintf.c (divide): Fix typo in comment.
46169
46170 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46171
46172         * gnulib-tool (func_filter_filelist): Fix comment.
46173
46174 2009-03-20  Bruno Haible  <bruno@clisp.org>
46175
46176         Make sockets.h self-contained.
46177         * lib/sockets.c: Include sockets.h first.
46178         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46179
46180 2009-03-19  Eric Blake  <ebb9@byu.net>
46181
46182         doc: mention more functions added in cygwin 1.7.0
46183         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46184         addition.
46185         * doc/posix-functions/log2f.texi: Likewise.
46186
46187 2009-03-19  Jim Meyering  <meyering@redhat.com>
46188
46189         fsusage: avoid syntax error due to statement-before-declaration
46190         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46191         after all declarations.  Reported by Matthew Woehlke in
46192         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46193
46194 2009-03-18  Eric Blake  <ebb9@byu.net>
46195
46196         build-aux/compile: sync from automake
46197         * build-aux/compile: New file, from automake.
46198         * config/srclist.txt: Mention build-aux/compile.
46199
46200 2009-03-17  Bruno Haible  <bruno@clisp.org>
46201
46202         * lib/git-merge-changelog.c: Fix typo in comment.
46203         Reported by Reuben Thomas <rrt@sc3d.org>.
46204
46205 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46206
46207         * m4/regex.m4: update and improve help for
46208         --without-included-regex.
46209
46210 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46211
46212         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46213         failure on missing include files.
46214
46215 2009-03-17  Eric Blake  <ebb9@byu.net>
46216
46217         doc: mention more functions added in cygwin 1.7.0
46218         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46219         addition.
46220         * doc/posix-functions/fwscanf.texi: Likewise.
46221         * doc/posix-functions/swprintf.texi: Likewise.
46222         * doc/posix-functions/swscanf.texi: Likewise.
46223         * doc/posix-functions/vfwprintf.texi: Likewise.
46224         * doc/posix-functions/vfwscanf.texi: Likewise.
46225         * doc/posix-functions/vswprintf.texi: Likewise.
46226         * doc/posix-functions/vswscanf.texi: Likewise.
46227         * doc/posix-functions/vwprintf.texi: Likewise.
46228         * doc/posix-functions/vwscanf.texi: Likewise.
46229         * doc/posix-functions/wcscasecmp.texi: Likewise.
46230         * doc/posix-functions/wcsdup.texi: Likewise.
46231         * doc/posix-functions/wcsftime.texi: Likewise.
46232         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46233         * doc/posix-functions/wprintf.texi: Likewise.
46234         * doc/posix-functions/wscanf.texi: Likewise.
46235         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46236
46237 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46238
46239         maint.mk: really add $(AM_MAKEFLAGS)
46240         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46241         was inadvertently omitted in the last commit.
46242         Spotted by Bruno Haible.
46243
46244         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46245         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46246         $(AM_MAKEFLAGS)' rather than plain `make'.
46247
46248         gnulib-tool: execute $MAKE not make
46249         * gnulib-tool: Default $MAKE to 'make'.
46250         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46251         than make.  Initialize $MAKE in the do-autobuild script.
46252
46253         gnulib-tool: use $MAKE not make in generated files
46254         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
46255         make, in generated files.  Initialize $MAKE in the do-autobuild
46256         script.
46257
46258         * top/GNUmakefile (_have-git-version-gen): Fix typo.
46259
46260         GNUmakefile: disable parallelism only for multiple, recursive targets
46261         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
46262         additions in the Makefile.
46263         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
46264         by Automake.
46265         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46266         are listed on the command line and at least one of them is
46267         listed in $(ALL_RECURSIVE_TARGETS).
46268
46269 2009-03-14  Bruno Haible  <bruno@clisp.org>
46270
46271         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46272         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46273         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46274         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46275         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46276         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46277         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46278         unistr/u8-uctomb.
46279         * modules/unistr/u8-strchr (Depends-on): Likewise.
46280         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46281         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46282         unistr/u16-uctomb.
46283         * modules/unistr/u16-strchr (Depends-on): Likewise.
46284         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46285
46286 2009-03-12  Bruno Haible  <bruno@clisp.org>
46287
46288         Work around select() bug on Interix 3.5.
46289         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46290         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46291         * m4/select.m4: New file.
46292         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46293         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46294         * modules/select (Files): Add m4/select.m4.
46295         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46296         * modules/nanosleep (Depends-on): Add select.
46297         * modules/poll (Depends-on): Likewise.
46298         * doc/posix-functions/select.texi: Mention the Interix bug.
46299         Reported by Markus Duft <mduft@gentoo.org>.
46300
46301         * lib/select.c: Renamed from lib/winsock-select.c.
46302         * modules/select (Files): Add lib/select.c, remove
46303         lib/winsock-select.c.
46304         (configure.ac): Update.
46305
46306 2009-03-12  Jim Meyering  <meyering@redhat.com>
46307
46308         avoid gcc warnings about unused macro definitions
46309         * lib/readtokens.c (STREQ): Remove unused definition.
46310         * lib/xmalloc.c (SIZE_MAX): Likewise.
46311         * lib/openat-die.c (N_): Likewise.
46312         * lib/mountlist.c (SIZE_MAX): Remove definition.
46313         Instead, include <stdint.h>.
46314         * lib/readutmp.c: Likewise.
46315         * modules/readutmp (Depends-on): Add stdint.
46316         * modules/mountlist (Depends-on): Add stdint.
46317         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46318
46319 2009-03-10  Bruno Haible  <bruno@clisp.org>
46320
46321         Tests for module 'mbmemcasecoll'.
46322         * modules/mbmemcasecoll-tests: New file.
46323         * tests/test-mbmemcasecoll1.sh: New file.
46324         * tests/test-mbmemcasecoll2.sh: New file.
46325         * tests/test-mbmemcasecoll3.sh: New file.
46326         * tests/test-mbmemcasecoll.c: New file.
46327
46328         New module 'mbmemcasecoll'.
46329         * lib/mbmemcasecoll.h: New file.
46330         * lib/mbmemcasecoll.c: New file.
46331         * modules/mbmemcasecoll: New file.
46332
46333         * tests/test-mbmemcasecmp.h: New file, extracted from
46334         tests/test-mbmemcasecmp.c.
46335         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
46336         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
46337         (main): Update.
46338         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
46339
46340 2009-03-09  Bruno Haible  <bruno@clisp.org>
46341
46342         Tests for module 'mbmemcasecmp'.
46343         * modules/mbmemcasecmp-tests: New file.
46344         * tests/test-mbmemcasecmp1.sh: New file.
46345         * tests/test-mbmemcasecmp2.sh: New file.
46346         * tests/test-mbmemcasecmp3.sh: New file.
46347         * tests/test-mbmemcasecmp.c: New file.
46348
46349         New module 'mbmemcasecmp'.
46350         * lib/mbmemcasecmp.h: New file.
46351         * lib/mbmemcasecmp.c: New file.
46352         * modules/mbmemcasecmp: New file.
46353
46354 2009-03-09  Bruno Haible  <bruno@clisp.org>
46355
46356         Tests for module 'unicase/ulc-casecoll'.
46357         * modules/unicase/ulc-casecoll-tests: New file.
46358         * tests/unicase/test-ulc-casecoll1.sh: New file.
46359         * tests/unicase/test-ulc-casecoll2.sh: New file.
46360         * tests/unicase/test-ulc-casecoll.c: New file.
46361
46362         New module 'unicase/ulc-casecoll'.
46363         * lib/unicase.h (ulc_casecoll): New declaration.
46364         * lib/unicase/ulc-casecoll.c: New file.
46365         * modules/unicase/ulc-casecoll: New file.
46366
46367         New module 'unicase/ulc-casexfrm'.
46368         * lib/unicase.h (ulc_casexfrm): New declaration.
46369         * lib/unicase/ulc-casexfrm.c: New file.
46370         * modules/unicase/ulc-casexfrm: New file.
46371
46372 2009-03-09  Bruno Haible  <bruno@clisp.org>
46373
46374         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
46375         invocations.
46376
46377         * m4/mbscasecmp.m4: Remove file.
46378         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
46379         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
46380
46381         * m4/mbscasestr.m4: Remove file.
46382         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
46383         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
46384
46385         * m4/mbschr.m4: Remove file.
46386         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46387         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46388
46389         * m4/mbscspn.m4: Remove file.
46390         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46391         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46392
46393         * m4/mbslen.m4: Remove file.
46394         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46395         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46396
46397         * m4/mbsncasecmp.m4: Remove file.
46398         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46399         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46400
46401         * m4/mbsnlen.m4: Remove file.
46402         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46403         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46404
46405         * m4/mbspbrk.m4: Remove file.
46406         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
46407         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
46408
46409         * m4/mbspcasecmp.m4: Remove file.
46410         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
46411         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
46412
46413         * m4/mbsrchr.m4: Remove file.
46414         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
46415         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
46416
46417         * m4/mbssep.m4: Remove file.
46418         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
46419         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
46420
46421         * m4/mbsspn.m4: Remove file.
46422         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
46423         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
46424
46425         * m4/mbsstr.m4: Remove file.
46426         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46427         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46428
46429         * m4/mbstok_r.m4: Remove file.
46430         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46431         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46432
46433         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46434
46435         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46436         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
46437
46438         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
46439
46440 2009-03-08  Bruno Haible  <bruno@clisp.org>
46441
46442         Tests for module 'unicase/ulc-casecmp'.
46443         * modules/unicase/ulc-casecmp-tests: New file.
46444         * tests/unicase/test-ulc-casecmp1.sh: New file.
46445         * tests/unicase/test-ulc-casecmp2.sh: New file.
46446         * tests/unicase/test-ulc-casecmp.c: New file.
46447
46448         New module 'unicase/ulc-casecmp'.
46449         * lib/unicase.h (ulc_casecmp): New declaration.
46450         * lib/unicase/ulc-casecmp.c: New file.
46451         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
46452         'const SRC_UNIT *'.
46453         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
46454         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
46455         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
46456         * modules/unicase/ulc-casecmp: New file.
46457
46458         Tests for module 'unicase/u32-is-cased'.
46459         * modules/unicase/u32-is-cased-tests: New file.
46460         * tests/unicase/test-u32-is-cased.c: New file.
46461
46462         Tests for module 'unicase/u16-is-cased'.
46463         * modules/unicase/u16-is-cased-tests: New file.
46464         * tests/unicase/test-u16-is-cased.c: New file.
46465
46466         Tests for module 'unicase/u8-is-cased'.
46467         * modules/unicase/u8-is-cased-tests: New file.
46468         * tests/unicase/test-u8-is-cased.c: New file.
46469         * tests/unicase/test-is-cased.h: New file.
46470
46471         New module 'unicase/u32-is-cased'.
46472         * lib/unicase/u32-is-cased.c: New file.
46473         * modules/unicase/u32-is-cased: New file.
46474
46475         New module 'unicase/u16-is-cased'.
46476         * lib/unicase/u16-is-cased.c: New file.
46477         * modules/unicase/u16-is-cased: New file.
46478
46479         New module 'unicase/u8-is-cased'.
46480         * lib/unicase/u8-is-cased.c: New file.
46481         * lib/unicase/u-is-cased.h: New file.
46482         * modules/unicase/u8-is-cased: New file.
46483
46484         Tests for module 'unicase/u32-is-casefolded'.
46485         * modules/unicase/u32-is-casefolded-tests: New file.
46486         * tests/unicase/test-u32-is-casefolded.c: New file.
46487
46488         Tests for module 'unicase/u16-is-casefolded'.
46489         * modules/unicase/u16-is-casefolded-tests: New file.
46490         * tests/unicase/test-u16-is-casefolded.c: New file.
46491
46492         Tests for module 'unicase/u8-is-casefolded'.
46493         * modules/unicase/u8-is-casefolded-tests: New file.
46494         * tests/unicase/test-u8-is-casefolded.c: New file.
46495         * tests/unicase/test-is-casefolded.h: New file.
46496
46497         New module 'unicase/u32-is-casefolded'.
46498         * lib/unicase/u32-is-casefolded.c: New file.
46499         * modules/unicase/u32-is-casefolded: New file.
46500
46501         New module 'unicase/u16-is-casefolded'.
46502         * lib/unicase/u16-is-casefolded.c: New file.
46503         * modules/unicase/u16-is-casefolded: New file.
46504
46505         New module 'unicase/u8-is-casefolded'.
46506         * lib/unicase/u8-is-casefolded.c: New file.
46507         * modules/unicase/u8-is-casefolded: New file.
46508
46509         Tests for module 'unicase/u32-is-titlecase'.
46510         * modules/unicase/u32-is-titlecase-tests: New file.
46511         * tests/unicase/test-u32-is-titlecase.c: New file.
46512
46513         Tests for module 'unicase/u16-is-titlecase'.
46514         * modules/unicase/u16-is-titlecase-tests: New file.
46515         * tests/unicase/test-u16-is-titlecase.c: New file.
46516
46517         Tests for module 'unicase/u8-is-titlecase'.
46518         * modules/unicase/u8-is-titlecase-tests: New file.
46519         * tests/unicase/test-u8-is-titlecase.c: New file.
46520         * tests/unicase/test-is-titlecase.h: New file.
46521
46522         New module 'unicase/u32-is-titlecase'.
46523         * lib/unicase/u32-is-titlecase.c: New file.
46524         * modules/unicase/u32-is-titlecase: New file.
46525
46526         New module 'unicase/u16-is-titlecase'.
46527         * lib/unicase/u16-is-titlecase.c: New file.
46528         * modules/unicase/u16-is-titlecase: New file.
46529
46530         New module 'unicase/u8-is-titlecase'.
46531         * lib/unicase/u8-is-titlecase.c: New file.
46532         * modules/unicase/u8-is-titlecase: New file.
46533
46534         Tests for module 'unicase/u32-is-lowercase'.
46535         * modules/unicase/u32-is-lowercase-tests: New file.
46536         * tests/unicase/test-u32-is-lowercase.c: New file.
46537
46538         Tests for module 'unicase/u16-is-lowercase'.
46539         * modules/unicase/u16-is-lowercase-tests: New file.
46540         * tests/unicase/test-u16-is-lowercase.c: New file.
46541
46542         Tests for module 'unicase/u8-is-lowercase'.
46543         * modules/unicase/u8-is-lowercase-tests: New file.
46544         * tests/unicase/test-u8-is-lowercase.c: New file.
46545         * tests/unicase/test-is-lowercase.h: New file.
46546
46547         New module 'unicase/u32-is-lowercase'.
46548         * lib/unicase/u32-is-lowercase.c: New file.
46549         * modules/unicase/u32-is-lowercase: New file.
46550
46551         New module 'unicase/u16-is-lowercase'.
46552         * lib/unicase/u16-is-lowercase.c: New file.
46553         * modules/unicase/u16-is-lowercase: New file.
46554
46555         New module 'unicase/u8-is-lowercase'.
46556         * lib/unicase/u8-is-lowercase.c: New file.
46557         * modules/unicase/u8-is-lowercase: New file.
46558
46559         Tests for module 'unicase/u32-is-uppercase'.
46560         * modules/unicase/u32-is-uppercase-tests: New file.
46561         * tests/unicase/test-u32-is-uppercase.c: New file.
46562
46563         Tests for module 'unicase/u16-is-uppercase'.
46564         * modules/unicase/u16-is-uppercase-tests: New file.
46565         * tests/unicase/test-u16-is-uppercase.c: New file.
46566
46567         Tests for module 'unicase/u8-is-uppercase'.
46568         * modules/unicase/u8-is-uppercase-tests: New file.
46569         * tests/unicase/test-u8-is-uppercase.c: New file.
46570         * tests/unicase/test-is-uppercase.h: New file.
46571
46572         New module 'unicase/u32-is-uppercase'.
46573         * lib/unicase/u32-is-uppercase.c: New file.
46574         * modules/unicase/u32-is-uppercase: New file.
46575
46576         New module 'unicase/u16-is-uppercase'.
46577         * lib/unicase/u16-is-uppercase.c: New file.
46578         * modules/unicase/u16-is-uppercase: New file.
46579
46580         New module 'unicase/u8-is-uppercase'.
46581         * lib/unicase/u8-is-uppercase.c: New file.
46582         * modules/unicase/u8-is-uppercase: New file.
46583
46584         New module 'unicase/u32-is-invariant'.
46585         * lib/unicase/u32-is-invariant.c: New file.
46586         * modules/unicase/u32-is-invariant: New file.
46587
46588         New module 'unicase/u16-is-invariant'.
46589         * lib/unicase/u16-is-invariant.c: New file.
46590         * modules/unicase/u16-is-invariant: New file.
46591
46592         New module 'unicase/u8-is-invariant'.
46593         * lib/unicase/u8-is-invariant.c: New file.
46594         * lib/unicase/invariant.h: New file.
46595         * lib/unicase/u-is-invariant.h: New file.
46596         * modules/unicase/u8-is-invariant: New file.
46597
46598         Tests for module 'unicase/u32-casecoll'.
46599         * modules/unicase/u32-casecoll-tests: New file.
46600         * tests/unicase/test-u32-casecoll.c: New file.
46601
46602         Tests for module 'unicase/u16-casecoll'.
46603         * modules/unicase/u16-casecoll-tests: New file.
46604         * tests/unicase/test-u16-casecoll.c: New file.
46605
46606         Tests for module 'unicase/u8-casecoll'.
46607         * modules/unicase/u8-casecoll-tests: New file.
46608         * tests/unicase/test-u8-casecoll.c: New file.
46609
46610         New module 'unicase/u32-casecoll'.
46611         * lib/unicase/u32-casecoll.c: New file.
46612         * modules/unicase/u32-casecoll: New file.
46613
46614         New module 'unicase/u16-casecoll'.
46615         * lib/unicase/u16-casecoll.c: New file.
46616         * modules/unicase/u16-casecoll: New file.
46617
46618         New module 'unicase/u8-casecoll'.
46619         * lib/unicase/u8-casecoll.c: New file.
46620         * lib/unicase/u-casecoll.h: New file.
46621         * modules/unicase/u8-casecoll: New file.
46622
46623         New module 'unicase/u32-casexfrm'.
46624         * lib/unicase/u32-casexfrm.c: New file.
46625         * modules/unicase/u32-casexfrm: New file.
46626
46627         New module 'unicase/u16-casexfrm'.
46628         * lib/unicase/u16-casexfrm.c: New file.
46629         * modules/unicase/u16-casexfrm: New file.
46630
46631         New module 'unicase/u8-casexfrm'.
46632         * lib/unicase/u8-casexfrm.c: New file.
46633         * lib/unicase/u-casexfrm.h: New file.
46634         * modules/unicase/u8-casexfrm: New file.
46635
46636         Tests for module 'unicase/u32-casecmp'.
46637         * modules/unicase/u32-casecmp-tests: New file.
46638         * tests/unicase/test-u32-casecmp.c: New file.
46639
46640         Tests for module 'unicase/u16-casecmp'.
46641         * modules/unicase/u16-casecmp-tests: New file.
46642         * tests/unicase/test-u16-casecmp.c: New file.
46643
46644         Tests for module 'unicase/u8-casecmp'.
46645         * modules/unicase/u8-casecmp-tests: New file.
46646         * tests/unicase/test-u8-casecmp.c: New file.
46647         * tests/unicase/test-casecmp.h: New file.
46648
46649         New module 'unicase/u32-casecmp'.
46650         * lib/unicase/u32-casecmp.c: New file.
46651         * modules/unicase/u32-casecmp: New file.
46652
46653         New module 'unicase/u16-casecmp'.
46654         * lib/unicase/u16-casecmp.c: New file.
46655         * modules/unicase/u16-casecmp: New file.
46656
46657         New module 'unicase/u8-casecmp'.
46658         * lib/unicase/u8-casecmp.c: New file.
46659         * lib/unicase/u-casecmp.h: New file.
46660         * modules/unicase/u8-casecmp: New file.
46661
46662         Tests for module 'unicase/u32-casefold'.
46663         * modules/unicase/u32-casefold-tests: New file.
46664         * tests/unicase/test-u32-casefold.c: New file.
46665
46666         Tests for module 'unicase/u16-casefold'.
46667         * modules/unicase/u16-casefold-tests: New file.
46668         * tests/unicase/test-u16-casefold.c: New file.
46669
46670         Tests for module 'unicase/u8-casefold'.
46671         * modules/unicase/u8-casefold-tests: New file.
46672         * tests/unicase/test-u8-casefold.c: New file.
46673
46674         New module 'unicase/u32-casefold'.
46675         * lib/unicase/u32-casefold.c: New file.
46676         * modules/unicase/u32-casefold: New file.
46677
46678         New module 'unicase/u16-casefold'.
46679         * lib/unicase/u16-casefold.c: New file.
46680         * modules/unicase/u16-casefold: New file.
46681
46682         New module 'unicase/u8-casefold'.
46683         * lib/unicase/u8-casefold.c: New file.
46684         * lib/unicase/u-casefold.h: New file.
46685         * modules/unicase/u8-casefold: New file.
46686
46687         New module 'unicase/tocasefold'.
46688         * lib/unicase/casefold.h: New file.
46689         * lib/unicase/tocasefold.c: New file.
46690         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46691         * modules/unicase/tocasefold: New file.
46692
46693         Tests for module 'unicase/u32-totitle'.
46694         * modules/unicase/u32-totitle-tests: New file.
46695         * tests/unicase/test-u32-totitle.c: New file.
46696
46697         Tests for module 'unicase/u16-totitle'.
46698         * modules/unicase/u16-totitle-tests: New file.
46699         * tests/unicase/test-u16-totitle.c: New file.
46700
46701         Tests for module 'unicase/u8-totitle'.
46702         * modules/unicase/u8-totitle-tests: New file.
46703         * tests/unicase/test-u8-totitle.c: New file.
46704
46705         New module 'unicase/u32-totitle'.
46706         * lib/unicase/u32-totitle.c: New file.
46707         * modules/unicase/u32-totitle: New file.
46708
46709         New module 'unicase/u16-totitle'.
46710         * lib/unicase/u16-totitle.c: New file.
46711         * modules/unicase/u16-totitle: New file.
46712
46713         New module 'unicase/u8-totitle'.
46714         * lib/unicase/u8-totitle.c: New file.
46715         * lib/unicase/u-totitle.h: New file.
46716         * modules/unicase/u8-totitle: New file.
46717
46718         Tests for module 'unicase/u32-tolower'.
46719         * modules/unicase/u32-tolower-tests: New file.
46720         * tests/unicase/test-u32-tolower.c: New file.
46721
46722         Tests for module 'unicase/u16-tolower'.
46723         * modules/unicase/u16-tolower-tests: New file.
46724         * tests/unicase/test-u16-tolower.c: New file.
46725
46726         Tests for module 'unicase/u8-tolower'.
46727         * modules/unicase/u8-tolower-tests: New file.
46728         * tests/unicase/test-u8-tolower.c: New file.
46729
46730         New module 'unicase/u32-tolower'.
46731         * lib/unicase/u32-tolower.c: New file.
46732         * modules/unicase/u32-tolower: New file.
46733
46734         New module 'unicase/u16-tolower'.
46735         * lib/unicase/u16-tolower.c: New file.
46736         * modules/unicase/u16-tolower: New file.
46737
46738         New module 'unicase/u8-tolower'.
46739         * lib/unicase/u8-tolower.c: New file.
46740         * modules/unicase/u8-tolower: New file.
46741
46742         Tests for module 'unicase/u32-toupper'.
46743         * modules/unicase/u32-toupper-tests: New file.
46744         * tests/unicase/test-u32-toupper.c: New file.
46745
46746         Tests for module 'unicase/u16-toupper'.
46747         * modules/unicase/u16-toupper-tests: New file.
46748         * tests/unicase/test-u16-toupper.c: New file.
46749
46750         Tests for module 'unicase/u8-toupper'.
46751         * modules/unicase/u8-toupper-tests: New file.
46752         * tests/unicase/test-u8-toupper.c: New file.
46753
46754         New module 'unicase/u32-toupper'.
46755         * lib/unicase/u32-toupper.c: New file.
46756         * modules/unicase/u32-toupper: New file.
46757
46758         New module 'unicase/u16-toupper'.
46759         * lib/unicase/u16-toupper.c: New file.
46760         * modules/unicase/u16-toupper: New file.
46761
46762         New module 'unicase/u8-toupper'.
46763         * lib/unicase/u8-toupper.c: New file.
46764         * modules/unicase/u8-toupper: New file.
46765
46766         New module 'unicase/u32-casemap'.
46767         * lib/unicase/u32-casemap.c: New file.
46768         * modules/unicase/u32-casemap: New file.
46769
46770         New module 'unicase/u16-casemap'.
46771         * lib/unicase/u16-casemap.c: New file.
46772         * modules/unicase/u16-casemap: New file.
46773
46774         New module 'unicase/u8-casemap'.
46775         * lib/unicase/unicasemap.h: New file.
46776         * lib/unicase/u8-casemap.c: New file.
46777         * lib/unicase/u-casemap.h: New file.
46778         * modules/unicase/u8-casemap: New file.
46779
46780         New module 'unicase/special-casing'.
46781         * lib/unicase/special-casing.h: New file.
46782         * lib/unicase/special-casing.c: New file.
46783         * lib/unicase/special-casing-table.gperf: New file, generated by
46784         gen-uni-tables.c.
46785         * modules/unicase/special-casing: New file.
46786
46787         Tests for module 'unicase/locale-language'.
46788         * modules/unicase/locale-language-tests: New file.
46789         * tests/unicase/test-locale-language.sh: New file.
46790         * tests/unicase/test-locale-language.c: New file.
46791
46792         New module 'unicase/locale-language'.
46793         * lib/unicase/locale-language.c: New file.
46794         * lib/unicase/locale-languages.gperf: New file.
46795         * modules/unicase/locale-language: New file.
46796
46797         Generate more tables for case conversion and case folding.
46798         * lib/gen-uni-tables.c (SCC_*): New enum items.
46799         (struct special_casing_rule): New type.
46800         (casing_rules, num_casing_rules, allocated_casing_rules): New
46801         variables.
46802         (add_casing_rule, fill_casing_rules): New functions.
46803         (struct casefold_rule): New type.
46804         (casefolding_rules, num_casefolding_rules,
46805         allocated_casefolding_rules): New variables.
46806         (fill_casefolding_rules): New function.
46807         (unicode_casefold): New variable.
46808         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46809         sort_casing_rules, output_casing_rules): New functions.
46810         (main): Accept to more arguments: SpecialCasing.txt and
46811         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46812         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46813         Output mapping for casefolding.
46814
46815         * lib/unicase.h: Include stdbool.h, uninorm.h.
46816         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46817         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46818         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46819         arguments.
46820         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46821         resultp arguments.
46822         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46823         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46824         resultp arguments.
46825         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46826         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46827         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46828         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46829         declarations.
46830         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46831
46832 2009-03-08  Bruno Haible  <bruno@clisp.org>
46833
46834         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46835         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46836         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46837         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46838
46839 2009-03-07  Bruno Haible  <bruno@clisp.org>
46840
46841         Adjust u*_normcmp, u*_normcoll API.
46842         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46843         u16_normcoll, u32_normcoll): Change failure conventions.
46844         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46845         errno and return -1.
46846         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46847
46848 2009-03-07  Bruno Haible  <bruno@clisp.org>
46849
46850         Tests for module 'uninorm/u32-normcoll'.
46851         * modules/uninorm/u32-normcoll-tests: New file.
46852         * tests/uninorm/test-u32-normcoll.c: New file.
46853
46854         Tests for module 'uninorm/u16-normcoll'.
46855         * modules/uninorm/u16-normcoll-tests: New file.
46856         * tests/uninorm/test-u16-normcoll.c: New file.
46857
46858         Tests for module 'uninorm/u8-normcoll'.
46859         * modules/uninorm/u8-normcoll-tests: New file.
46860         * tests/uninorm/test-u8-normcoll.c: New file.
46861
46862 2009-03-07  Bruno Haible  <bruno@clisp.org>
46863
46864         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46865         tests/uninorm/test-u32-normcmp.c.
46866         * tests/uninorm/test-u32-normcmp.c: Include it.
46867         (test_nonascii): New function, extracted from main. Add some more
46868         tests.
46869         (main): Invoke test_ascii and test_nonascii.
46870         * modules/uninorm/u32-normcmp-tests (Files): Add
46871         tests/uninorm/test-u32-normcmp.h.
46872         (Depends-on): Remove uninorm/u32-normcmp.
46873
46874         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46875         tests/uninorm/test-u16-normcmp.c.
46876         * tests/uninorm/test-u16-normcmp.c: Include it.
46877         (test_nonascii): New function, extracted from main. Add some more
46878         tests.
46879         (main): Invoke test_ascii and test_nonascii.
46880         * modules/uninorm/u16-normcmp-tests (Files): Add
46881         tests/uninorm/test-u16-normcmp.h.
46882         (Depends-on): Remove uninorm/u16-normcmp.
46883
46884         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46885         tests/uninorm/test-u8-normcmp.c.
46886         * tests/uninorm/test-u8-normcmp.c: Include it.
46887         (test_nonascii): New function, extracted from main. Add some more
46888         tests.
46889         (main): Invoke test_ascii and test_nonascii.
46890         * modules/uninorm/u8-normcmp-tests (Files): Add
46891         tests/uninorm/test-u8-normcmp.h.
46892         (Depends-on): Remove uninorm/u8-normcmp.
46893
46894 2009-03-07  Bruno Haible  <bruno@clisp.org>
46895
46896         New module 'uninorm/u32-normcoll'.
46897         * lib/uninorm/u32-normcoll.c: New file.
46898         * modules/uninorm/u32-normcoll: New file.
46899
46900         New module 'uninorm/u16-normcoll'.
46901         * lib/uninorm/u16-normcoll.c: New file.
46902         * modules/uninorm/u16-normcoll: New file.
46903
46904         New module 'uninorm/u8-normcoll'.
46905         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46906         declarations.
46907         * lib/uninorm/u8-normcoll.c: New file.
46908         * lib/uninorm/u-normcoll.h: New file.
46909         * modules/uninorm/u8-normcoll: New file.
46910
46911         New module 'uninorm/u32-normxfrm'.
46912         * lib/uninorm/u32-normxfrm.c: New file.
46913         * modules/uninorm/u32-normxfrm: New file.
46914
46915         New module 'uninorm/u16-normxfrm'.
46916         * lib/uninorm/u16-normxfrm.c: New file.
46917         * modules/uninorm/u16-normxfrm: New file.
46918
46919         New module 'uninorm/u8-normxfrm'.
46920         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46921         declarations.
46922         * lib/uninorm/u8-normxfrm.c: New file.
46923         * lib/uninorm/u-normxfrm.h: New file.
46924         * modules/uninorm/u8-normxfrm: New file.
46925
46926 2009-03-07  Bruno Haible  <bruno@clisp.org>
46927
46928         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46929         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46930         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46931
46932 2009-03-07  Bruno Haible  <bruno@clisp.org>
46933
46934         New module 'memxfrm'.
46935         * lib/memxfrm.h: New file.
46936         * lib/memxfrm.c: New file.
46937         * modules/memxfrm: New file.
46938
46939 2009-03-07  Bruno Haible  <bruno@clisp.org>
46940
46941         New module 'memcmp2'.
46942         * lib/memcmp2.h: New file.
46943         * lib/memcmp2.c: New file.
46944         * modules/memcmp2: New file.
46945
46946 2009-03-07  Bruno Haible  <bruno@clisp.org>
46947
46948         Tests for module 'uninorm/decomposing-form'.
46949         * modules/uninorm/decomposing-form-tests: New file.
46950         * tests/uninorm/test-decomposing-form.c: New file.
46951
46952         New module 'uninorm/decomposing-form'.
46953         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46954         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46955         Add 'decomposing_variant' field.
46956         * lib/uninorm/decomposing-form.c: New file.
46957         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46958         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46959         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46960         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46961         * modules/uninorm/decomposing-form: New file.
46962         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46963         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46964
46965 2009-03-07  Bruno Haible  <bruno@clisp.org>
46966
46967         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46968         strings.
46969
46970 2009-03-06  Bruno Haible  <bruno@clisp.org>
46971
46972         Tests for module 'uninorm/u32-normcmp'.
46973         * tests/uninorm/test-u32-normcmp.c: New file.
46974         * modules/uninorm/u32-normcmp-tests: New file.
46975
46976         Tests for module 'uninorm/u16-normcmp'.
46977         * tests/uninorm/test-u16-normcmp.c: New file.
46978         * modules/uninorm/u16-normcmp-tests: New file.
46979
46980         Tests for module 'uninorm/u8-normcmp'.
46981         * tests/uninorm/test-u8-normcmp.c: New file.
46982         * modules/uninorm/u8-normcmp-tests: New file.
46983
46984         New module 'uninorm/u32-normcmp'.
46985         * lib/uninorm/u32-normcmp.c: New file.
46986         * modules/uninorm/u32-normcmp: New file.
46987
46988         New module 'uninorm/u16-normcmp'.
46989         * lib/uninorm/u16-normcmp.c: New file.
46990         * modules/uninorm/u16-normcmp: New file.
46991
46992         New module 'uninorm/u8-normcmp'.
46993         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46994         declarations.
46995         * lib/uninorm/u8-normcmp.c: New file.
46996         * lib/uninorm/u-normcmp.h: New file.
46997         * modules/uninorm/u8-normcmp: New file.
46998
46999 2009-03-06  Bruno Haible  <bruno@clisp.org>
47000
47001         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47002         Reported by Eric Blake.
47003
47004 2009-03-06  Eric Blake  <ebb9@byu.net>
47005             Bruno Haible  <bruno@clisp.org>
47006
47007         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47008         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47009         condition.
47010         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47011         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47012         condition.
47013         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47014
47015 2009-03-06  Eric Blake  <ebb9@byu.net>
47016
47017         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47018         to avoid compiler warnings.
47019         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47020
47021 2009-03-05  Bruno Haible  <bruno@clisp.org>
47022
47023         * tests/test-ftell.c (main): Disable test beyond end of file on
47024         FreeMiNT.
47025         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47026
47027 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47028
47029         * lib/filevercmp.c: Move hidden files up in ordering.
47030         * tests/test-filevercmp.c: Add tests for hidden files.
47031
47032 2009-03-04  Bruno Haible  <bruno@clisp.org>
47033
47034         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47035         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47036         AM_CFLAGS.
47037         Reported by Simon Josefsson.
47038
47039 2009-03-03  Bruno Haible  <bruno@clisp.org>
47040
47041         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47042         Reported by Simon Josefsson.
47043
47044         * doc/ld-version-script.texi: Update node reference.
47045
47046 2009-03-03  Bruno Haible  <bruno@clisp.org>
47047
47048         * modules/visibility (License): Change to 'unlimited'.
47049         Suggested by Simon Josefsson.
47050
47051 2009-03-03  Jim Meyering  <meyering@redhat.com>
47052
47053         unlinkdir: cannot_unlink_dir may modify process state
47054         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47055         it's neither thread-safe nor appropriate for use in a library.
47056
47057 2009-03-03  Eric Blake  <ebb9@byu.net>
47058
47059         test-closein: silence test under Darwin
47060         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47061         care if it dies from EPIPE or EBADF.
47062
47063 2009-03-03  Bruno Haible  <bruno@clisp.org>
47064
47065         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47066         earlier.
47067         * doc/visibility.texi: Fix @node and @section.
47068
47069 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47070
47071         * doc/gnulib.texi: Link to sections for ld version script and
47072         visibility.
47073         * doc/visibility.texi: Add @node and @section.
47074         * modules/ld-version-script: New module.
47075         * m4/ld-version-script.m4: New file.
47076         * doc/ld-version-script.texi: New file.
47077
47078 2009-03-02  David Lutterkort  <lutter@redhat.com>
47079
47080         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47081         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47082
47083 2009-03-02  Bruno Haible  <bruno@clisp.org>
47084
47085         * doc/visibility.texi: Mention libtool's -export-symbols option.
47086
47087 2009-03-02  Jim Meyering  <meyering@redhat.com>
47088
47089         announce-gen: new option: --no-print-checksums
47090         * build-aux/announce-gen (usage): Describe it.
47091         (print_checksums): Print a newline here, not in the [*] footnote.
47092         (main): Honor it.
47093
47094 2009-03-01  Bruno Haible  <bruno@clisp.org>
47095
47096         Use socklen_t in the native Windows replacements prototypes.
47097         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47098         instead of 'int'.
47099         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47100         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47101         * modules/getsockopt (Depends-on): Add socklen.
47102         * modules/setsockopt (Depends-on): Add socklen.
47103
47104 2009-03-01  Bruno Haible  <bruno@clisp.org>
47105
47106         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47107         least 4.2.
47108
47109 2009-03-01  Eric Blake  <ebb9@byu.net>
47110             Bruno Haible  <bruno@clisp.org>
47111
47112         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47113         error messages.
47114         * lib/wait-process.c (wait_subprocess): Omit error message about
47115         deadly signal sent to the child of termsigp != NULL.
47116
47117 2009-03-01  Eric Blake  <ebb9@byu.net>
47118
47119         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47120
47121 2009-03-01  Bruno Haible  <bruno@clisp.org>
47122
47123         Avoid a gcc warning.
47124         * tests/test-sched.c (b): Make global.
47125         Reported by Eric Blake.
47126
47127 2009-01-19  Martin Lambers  <marlam@marlam.de>
47128
47129         Provide POSIX semantics for socket timeout options on W32.
47130         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47131         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47132         * modules/setsockopt: Depend on sys_time module for struct timeval.
47133         * modules/getsockopt: Depend on sys_time module for struct timeval.
47134
47135 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47136
47137         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47138         __USE_GNU, for consistency with netdb.in.h.
47139         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47140
47141 2009-03-01  Bruno Haible  <bruno@clisp.org>
47142
47143         More support for FreeMiNT.
47144         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47145         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47146
47147 2009-03-01  Bruno Haible  <bruno@clisp.org>
47148
47149         More support for FreeMiNT.
47150         * lib/fpurge.c (fpurge): Correct last commit.
47151         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47152
47153 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47154
47155         Fix unportable awk script in vc-list-files.
47156         * build-aux/vc-list-files: In the replacement awk script, use
47157         substr with a second argument of 1, not zero.
47158         Report by Simon Josefsson.
47159
47160 2009-02-28  Bruno Haible  <bruno@clisp.org>
47161
47162         More support for FreeMiNT.
47163         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47164         to FreeMiNT today.
47165         * lib/fwriting.c (fwriting): Likewise.
47166         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47167
47168 2009-02-28  Bruno Haible  <bruno@clisp.org>
47169
47170         * tests/test-freadseek.c (main): Disable test beyond end of file on
47171         FreeMiNT.
47172         * tests/test-ftello.c (main): Likewise.
47173         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47174
47175 2009-02-28  Bruno Haible  <bruno@clisp.org>
47176
47177         Add tentative support for FreeMiNT.
47178         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47179         * lib/fpurge.c (fpurge): Likewise.
47180         * lib/freadable.c (freadable): Likewise.
47181         * lib/freading.c (freading): Likewise.
47182         * lib/freadptr.c (freadptr): Likewise.
47183         * lib/freadseek.c (freadptrinc): Likewise.
47184         * lib/fseeko.c (rpl_fseeko): Likewise.
47185         * lib/fseterr.c (fseterr): Likewise.
47186         * lib/fwritable.c (fwritable): Likewise.
47187         * lib/fwriting.c (fwriting): Likewise.
47188         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47189         Hourihane.
47190         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47191
47192 2009-02-28  Bruno Haible  <bruno@clisp.org>
47193
47194         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47195         SIGCHLD.
47196         Reported by Jim Meyering.
47197
47198 2009-02-28  Bruno Haible  <bruno@clisp.org>
47199
47200         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47201         Mention the results of these tests on various platforms.
47202         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47203         order.
47204         * doc/posix-functions/printf.texi: Likewise.
47205         * doc/posix-functions/snprintf.texi: Likewise.
47206         * doc/posix-functions/sprintf.texi: Likewise.
47207         * doc/posix-functions/vfprintf.texi: Likewise.
47208         * doc/posix-functions/vprintf.texi: Likewise.
47209         * doc/posix-functions/vsnprintf.texi: Likewise.
47210         * doc/posix-functions/vsprintf.texi: Likewise.
47211         * doc/glibc-functions/obstack_printf.texi: Likewise.
47212         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47213
47214 2009-02-28  Bruno Haible  <bruno@clisp.org>
47215
47216         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47217         Reported by Loïc Minier <lool@dooz.org>.
47218
47219 2009-02-27  Bruno Haible  <bruno@clisp.org>
47220
47221         * gnulib-tool (func_import): Make the sed expression used to create the
47222         sed script for updating the .gitignore file POSIX compliant.
47223         Reported by Eric Blake.
47224
47225 2009-02-27  Bruno Haible  <bruno@clisp.org>
47226
47227         * gnulib-tool (sed): Don't alias as "sed --posix".
47228         Reported by Eric Blake.
47229
47230 2009-02-27  Bruno Haible  <bruno@clisp.org>
47231
47232         Avoid test link errors.
47233         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47234         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47235         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47236         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47237         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47238
47239 2009-02-27  Bruno Haible  <bruno@clisp.org>
47240
47241         Avoid spurious "(cached)" in configure output.
47242         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47243         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47244         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47245         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47246         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47247         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47248         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47249         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47250         Reported by Eric Blake.
47251
47252 2009-02-27  Eric Blake  <ebb9@byu.net>
47253
47254         printf: fix regression in previous patch
47255         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
47256
47257 2009-02-27  Bruno Haible  <bruno@clisp.org>
47258
47259         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
47260         value.
47261         * lib/stdint.in.h: Likewise.
47262         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
47263
47264 2009-02-27  Eric Blake  <ebb9@byu.net>
47265
47266         doc: mention more functions added in cygwin 1.7.0
47267         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47268         addition.
47269         * doc/posix-functions/open_wmemstream.texi: Likewise.
47270         * doc/posix-functions/wcsnlen.texi: Likewise.
47271         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47272         * doc/posix-functions/wcstod.texi: Likewise.
47273         * doc/posix-functions/wcstof.texi: Likewise.
47274         * doc/posix-functions/wcstoimax.texi: Likewise.
47275         * doc/posix-functions/wcstok.texi: Likewise.
47276         * doc/posix-functions/wcstoumax.texi: Likewise.
47277
47278         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47279         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47280         * doc/posix-functions/fprintf.texi: Update.
47281         * doc/posix-functions/printf.texi: Update.
47282         * doc/posix-functions/snprintf.texi: Update.
47283         * doc/posix-functions/sprintf.texi: Update.
47284         * doc/posix-functions/vfprintf.texi: Update.
47285         * doc/posix-functions/vprintf.texi: Update.
47286         * doc/posix-functions/vsnprintf.texi: Update.
47287         * doc/posix-functions/vsprintf.texi: Update.
47288         * doc/glibc-functions/obstack_printf.texi: Update.
47289         * doc/glibc-functions/obstack_vprintf.texi: Update.
47290
47291 2009-02-26  Eric Blake  <ebb9@byu.net>
47292
47293         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47294         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47295         compilation bug by using runtime conversion.
47296         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47297         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47298         * modules/ceill-tests (Files): Use nan.h.
47299         * modules/floorl-tests (Files): Likewise.
47300         * modules/frexpl-tests (Files): Likewise.
47301         * modules/isnanl-tests (Files): Likewise.
47302         * modules/ldexpl-tests (Files): Likewise.
47303         * modules/roundl-tests (Files): Likewise.
47304         * modules/truncl-tests (Files): Likewise.
47305         * tests/test-ceill.c (main): Use a working NaN.
47306         * tests/test-floorl.c (main): Likewise.
47307         * tests/test-frexpl.c (main): Likewise.
47308         * tests/test-isnan.c (test_long_double): Likewise.
47309         * tests/test-isnanl.h (main): Likewise.
47310         * tests/test-ldexpl.h (main): Likewise.
47311         * tests/test-roundl.h (main): Likewise.
47312         * tests/test-truncl.h (main): Likewise.
47313         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47314
47315 2009-02-26  Eric Blake  <ebb9@byu.net>
47316             Bruno Haible  <bruno@clisp.org>
47317
47318         Work around a *printf bug with %ls on Solaris.
47319         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47320         precision is specified, sprintf stops converting the wide string
47321         argument when the number of bytes that have been produced by this
47322         conversion equals or exceeds the precision.
47323         * doc/posix-functions/fprintf.texi: Update.
47324         * doc/posix-functions/printf.texi: Update.
47325         * doc/posix-functions/snprintf.texi: Update.
47326         * doc/posix-functions/sprintf.texi: Update.
47327         * doc/posix-functions/vfprintf.texi: Update.
47328         * doc/posix-functions/vprintf.texi: Update.
47329         * doc/posix-functions/vsnprintf.texi: Update.
47330         * doc/posix-functions/vsprintf.texi: Update.
47331         * doc/glibc-functions/obstack_printf.texi: Update.
47332         * doc/glibc-functions/obstack_vprintf.texi: Update.
47333
47334 2009-02-26  Eric Blake  <ebb9@byu.net>
47335
47336         stdlib: favor compiler check of random.h
47337         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
47338         to avoid an ObjC random.h installed by Swarm.
47339
47340 2009-02-26  Bruno Haible  <bruno@clisp.org>
47341
47342         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
47343         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
47344         Reported by Gary V. Vaughan <gary@gnu.org>.
47345
47346 2009-02-26  Bruno Haible  <bruno@clisp.org>
47347
47348         Fix *printf behaviour regarding the %ls directive.
47349         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
47350         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
47351         NEED_PRINTF_DIRECTIVE_LS.
47352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
47353         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47354         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47355         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
47356         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
47357         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
47358         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47359         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47360         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47361         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47362         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47363         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
47364         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47365         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47366         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47367         * doc/posix-functions/fprintf.texi: Update.
47368         * doc/posix-functions/printf.texi: Update.
47369         * doc/posix-functions/snprintf.texi: Update.
47370         * doc/posix-functions/sprintf.texi: Update.
47371         * doc/posix-functions/vfprintf.texi: Update.
47372         * doc/posix-functions/vprintf.texi: Update.
47373         * doc/posix-functions/vsnprintf.texi: Update.
47374         * doc/posix-functions/vsprintf.texi: Update.
47375         * doc/glibc-functions/obstack_printf.texi: Update.
47376         * doc/glibc-functions/obstack_vprintf.texi: Update.
47377         Reported by Eric Blake.
47378
47379 2009-02-25  Bruno Haible  <bruno@clisp.org>
47380
47381         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
47382         with known value.
47383         Reported by Gary V. Vaughan <gary@gnu.org>.
47384
47385 2009-02-25  Bruno Haible  <bruno@clisp.org>
47386
47387         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47388         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47389         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47390         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47391         Reported by Gary V. Vaughan <gary@gnu.org>.
47392
47393 2009-02-25  Bruno Haible  <bruno@clisp.org>
47394
47395         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47396         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47397         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47398         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47399         Reported by Gary V. Vaughan <gary@gnu.org>.
47400
47401 2009-02-25  Eric Blake  <ebb9@byu.net>
47402
47403         tests: skip fseek/ftell tests if ungetc is broken
47404         * m4/ungetc.m4: New file.
47405         * modules/fseek-tests: Split test, so ungetc dependency is
47406         separate from rest of test.
47407         * modules/fseeko-tests: Likewise.
47408         * modules/ftell-tests: Likewise.
47409         * modules/ftello-tests: Likewise.
47410         * tests/test-fseek.c (main): Isolate ungetc dependency.
47411         * tests/test-fseeko.c (main): Likewise.
47412         * tests/test-ftell.c (main): Likewise.
47413         * tests/test-ftello.c (main): Likewise.
47414         * tests/test-fseek2.sh: New file.
47415         * tests/test-fseeko2.sh: Likewise.
47416         * tests/test-ftell2.sh: Likewise.
47417         * tests/test-ftello2.sh: Likewise.
47418
47419 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
47420
47421         test-getaddrinfo: fix usage of skip return code 77
47422         * tests/test-gettaddrinfo.c: Return skip code 77 only
47423         for first occurrence of skip (4x77 is not 77)
47424
47425 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
47426
47427         strtod: avoid C99 decl-after-statement
47428         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47429
47430 2009-02-24  Eric Blake  <ebb9@byu.net>
47431
47432         strtod: detect HP-UX 11.31 bug
47433         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47434         Reported by Gary V. Vaughan.
47435
47436 2009-02-23  Bruno Haible  <bruno@clisp.org>
47437
47438         Fix invalid read past end of memory block.
47439         * lib/vasnprintf.c (DCHAR_SET): Define.
47440         (local_wcslen): Define only when needed.
47441         (local_strnlen, local_wcsnlen): New functions.
47442         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
47443         directives that involve a conversion ourselves.
47444         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
47445         wcsnlen, mbrtowc, wcrtomb.
47446         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
47447         * tests/test-vasprintf-posix.c (test_function): Likewise.
47448         * tests/test-snprintf-posix.h (test_function): Likewise.
47449         * tests/test-sprintf-posix.h (test_function): Likewise.
47450         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47451
47452 2009-02-22  Bruno Haible  <bruno@clisp.org>
47453
47454         Implement new clarified decomposition of Hangul syllables.
47455         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
47456         of type LTV, return only a pairwise decomposition.
47457         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
47458         Likewise.
47459         * tests/uninorm/test-decomposition.c (main): Updated expected result.
47460         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
47461         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
47462
47463 2009-02-22  Bruno Haible  <bruno@clisp.org>
47464
47465         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
47466         zero-length results and shrink excess allocated memory.
47467         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
47468         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
47469         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
47470         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
47471         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
47472         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
47473         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
47474         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
47475         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
47476         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
47477         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
47478         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
47479
47480 2009-02-21  Bruno Haible  <bruno@clisp.org>
47481
47482         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47483         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47484         spaces after a period. Put a space between a macro name and its
47485         argument list. Trivial rewordings.
47486         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47487         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47488         (main): Return 0 explicitly.
47489
47490 2009-02-21  Bruno Haible  <bruno@clisp.org>
47491
47492         Tests for module 'uninorm/filter'.
47493         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47494         * modules/uninorm/filter-tests: New file.
47495
47496         New module 'uninorm/filter'.
47497         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47498         uninorm_filter_flush, uninorm_filter_free): New declarations.
47499         * lib/uninorm/uninorm-filter.c: New file.
47500         * modules/uninorm/filter: New file.
47501
47502 2009-02-21  Bruno Haible  <bruno@clisp.org>
47503
47504         Tests for module 'uninorm/nfkc'.
47505         * tests/uninorm/test-nfkc.c: New file.
47506         * tests/uninorm/test-u8-nfkc.c: New file.
47507         * tests/uninorm/test-u16-nfkc.c: New file.
47508         * tests/uninorm/test-u32-nfkc.c: New file.
47509         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47510         * tests/uninorm/test-u32-nfkc-big.c: New file.
47511         * modules/uninorm/nfkc-tests: New file.
47512
47513         New module 'uninorm/nfkc'.
47514         * lib/uninorm/nfkc.c: New file.
47515         * modules/uninorm/nfkc: New file.
47516
47517         Tests for module 'uninorm/nfkd'.
47518         * tests/uninorm/test-nfkd.c: New file.
47519         * tests/uninorm/test-u8-nfkd.c: New file.
47520         * tests/uninorm/test-u16-nfkd.c: New file.
47521         * tests/uninorm/test-u32-nfkd.c: New file.
47522         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47523         * tests/uninorm/test-u32-nfkd-big.c: New file.
47524         * modules/uninorm/nfkd-tests: New file.
47525
47526         New module 'uninorm/nfkd'.
47527         * lib/uninorm/nfkd.c: New file.
47528         * modules/uninorm/nfkd: New file.
47529
47530         Tests for module 'uninorm/nfc'.
47531         * tests/uninorm/test-nfc.c: New file.
47532         * tests/uninorm/test-u8-nfc.c: New file.
47533         * tests/uninorm/test-u16-nfc.c: New file.
47534         * tests/uninorm/test-u32-nfc.c: New file.
47535         * tests/uninorm/test-u32-nfc-big.sh: New file.
47536         * tests/uninorm/test-u32-nfc-big.c: New file.
47537         * modules/uninorm/nfc-tests: New file.
47538
47539         New module 'uninorm/nfc'.
47540         * lib/uninorm/nfc.c: New file.
47541         * modules/uninorm/nfc: New file.
47542
47543         Tests for module 'uninorm/nfd'.
47544         * tests/uninorm/test-nfd.c: New file.
47545         * tests/uninorm/test-u8-nfd.c: New file.
47546         * tests/uninorm/test-u16-nfd.c: New file.
47547         * tests/uninorm/test-u32-nfd.c: New file.
47548         * tests/uninorm/test-u32-nfd-big.sh: New file.
47549         * tests/uninorm/test-u32-nfd-big.c: New file.
47550         * tests/uninorm/test-u32-normalize-big.h: New file.
47551         * tests/uninorm/test-u32-normalize-big.c: New file.
47552         * tests/uninorm/NormalizationTest.txt: New file, created from
47553         Unicode 5.1.0 NormalizationTest.txt.
47554         * modules/uninorm/nfd-tests: New file.
47555
47556         New module 'uninorm/nfd'.
47557         * lib/uninorm/nfd.c: New file.
47558         * modules/uninorm/nfd: New file.
47559
47560         New module 'uninorm/u32-normalize'.
47561         * lib/uninorm/u32-normalize.c: New file.
47562         * modules/uninorm/u32-normalize: New file.
47563
47564         New module 'uninorm/u16-normalize'.
47565         * lib/uninorm/u16-normalize.c: New file.
47566         * modules/uninorm/u16-normalize: New file.
47567
47568         New module 'uninorm/u8-normalize'.
47569         * lib/uninorm/u8-normalize.c: New file.
47570         * lib/uninorm/normalize-internal.h: New file.
47571         * lib/uninorm/u-normalize-internal.h: New file.
47572         * modules/uninorm/u8-normalize: New file.
47573
47574         New module 'uninorm/decompose-internal'.
47575         * lib/uninorm/decompose-internal.c: New file.
47576         * modules/uninorm/decompose-internal: New file.
47577
47578         Tests for module 'uninorm/composition'.
47579         * tests/uninorm/test-composition.c: New file.
47580         * modules/uninorm/composition-tests: New file.
47581
47582         New module 'uninorm/composition'.
47583         * lib/uninorm/composition.c: New file.
47584         * lib/uninorm/composition-table.gperf: New file, generated by
47585         gen-uni-tables.
47586         * modules/uninorm/composition: New file.
47587
47588         Tests for module 'uninorm/compat-decomposition'.
47589         * tests/uninorm/test-compat-decomposition.c: New file.
47590         * modules/uninorm/compat-decomposition-tests: New file.
47591
47592         New module 'uninorm/compat-decomposition'.
47593         * lib/uninorm/decompose-internal.h: New file.
47594         * lib/uninorm/compat-decomposition.c: New file.
47595         * modules/uninorm/compat-decomposition: New file.
47596
47597         Tests for module 'uninorm/canonical-decomposition'.
47598         * tests/uninorm/test-canonical-decomposition.c: New file.
47599         * modules/uninorm/canonical-decomposition-tests: New file.
47600
47601         New module 'uninorm/canonical-decomposition'.
47602         * lib/uninorm/canonical-decomposition.c: New file.
47603         * modules/uninorm/canonical-decomposition: New file.
47604
47605         Tests for module 'uninorm/decomposition'.
47606         * tests/uninorm/test-decomposition.c: New file.
47607         * modules/uninorm/decomposition-tests: New file.
47608
47609         New module 'uninorm/decomposition'.
47610         * lib/uninorm/decomposition.c: New file.
47611         * modules/uninorm/decomposition: New file.
47612
47613         New module 'uninorm/decomposition-table'.
47614         * lib/uninorm/decomposition-table.h: New file.
47615         * lib/uninorm/decomposition-table.c: New file.
47616         * lib/uninorm/decomposition-table1.h: New file, generated by
47617         gen-uni-tables.
47618         * lib/uninorm/decomposition-table2.h: New file, generated by
47619         gen-uni-tables.
47620         * modules/uninorm/decomposition-table: New file.
47621
47622         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47623         (UC_DECOMP_*): New enumeration items.
47624         (get_decomposition): New function.
47625         (struct decomp_table): New type.
47626         (output_decomposition, output_decomposition_tables): New functions.
47627         (unicode_composition_exclusions): New variable.
47628         (fill_composition_exclusions, debug_output_composition_tables): New
47629         functions.
47630         (main): Accept one more argument. Invoke fill_composition_exclusions.
47631         Output decomposition and composition tables.
47632
47633         New module 'uninorm/base'.
47634         * lib/uninorm.h: New file.
47635         * lib/unictype.h: Update comment.
47636         * modules/uninorm/base: New file.
47637
47638 2009-02-21  David Lutterkort  <lutter@redhat.com>
47639
47640         Tests for module 'safe-alloc'.
47641         * tests/test-safe-alloc.c: New file.
47642         * modules/safe-alloc-tests: New file.
47643
47644         New module 'safe-alloc'.
47645         * lib/safe-alloc.h: New file.
47646         * lib/safe-alloc.c: New file.
47647         * m4/safe-alloc.m4: New file.
47648         * modules/safe-alloc: New file.
47649         * doc/safe-alloc.texi: New file.
47650         * doc/gnulib.texi: Include it.
47651         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47652         safe-alloc.
47653
47654 2009-02-18  Bruno Haible  <bruno@clisp.org>
47655
47656         Fix link error on non-glibc systems.
47657         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47658         variable.
47659         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47660
47661 2009-02-18  Jim Meyering  <meyering@redhat.com>
47662
47663         fts: avoid used-uninitialized error due to recent change
47664         * lib/fts.c (fts_read): Guard uses of the new member,
47665         parent->fts_n_dirs_remaining, since it's not relevant for
47666         the parent of a directory specified on the command-line.
47667
47668 2009-02-17  James Youngman  <jay@gnu.org>
47669             Bruno Haible  <bruno@clisp.org>
47670
47671         * m4/include_next.m4: Reformulate comment.
47672
47673 2009-02-16  Jim Meyering  <meyering@redhat.com>
47674
47675         fts: add #if guards so that the fts_lgpl module still builds
47676         * lib/fts.c: Guard just-added hash-table-using parts with
47677         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47678         Reported by Simon Josefsson.
47679
47680 2009-02-15  Bruno Haible  <bruno@clisp.org>
47681
47682         * modules/array-mergesort-tests: New file.
47683         * tests/test-array-mergesort.c: New file.
47684
47685         New module 'array-mergesort'.
47686         * modules/array-mergesort: New file.
47687         * lib/array-mergesort.h: New file.
47688
47689 2009-02-15  Bruno Haible  <bruno@clisp.org>
47690
47691         Fix 2009-02-07 commit.
47692         * lib/gen-uni-tables.c (output_predicate, output_category,
47693         output_combclass, output_bidi_category, output_decimal_digit,
47694         output_digit, output_numeric, output_mirror, output_scripts,
47695         output_ident_category, output_simple_mapping): Fix format directives.
47696         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47697
47698 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47699
47700         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47701         fixes are available from IBM.
47702
47703 2009-02-13  Jim Meyering  <meyering@redhat.com>
47704
47705         fts: arrange not to stat non-directories in more cases
47706         This makes GNU find (when it doesn't need to stat each file)
47707         *much* more efficient at traversing reiserfs file systems.
47708         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47709         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47710         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47711         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47712         (leaf_optimization_applies): New function.
47713         (LCO_hash, LCO_compare): New helper functions.
47714         (link_count_optimize_ok): New function.
47715         (fts_stat): Initialize new member (if dir).
47716         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47717         we've just stat'ed a directory.  Skip the stat call when possible.
47718         ---
47719         Note this AFS-related exchange:
47720         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47721         and note find's pioctl call in find/fstype.c.
47722         But that is necessary only if you want to enable the
47723         optimization for AFS, and for now, I don't.
47724
47725         fts: move a function definition "up" (no semantic change)
47726         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47727         "up" to precede upcoming use of a related function.
47728
47729 2009-02-11  Jim Meyering  <meyering@redhat.com>
47730
47731         fts: correct internal computation of nlinks (optimization-related)
47732         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47733         whether the current entry is a directory, so don't test it.
47734
47735 2009-02-10  Bruno Haible  <bruno@clisp.org>
47736
47737         Tests for module 'uniwbrk/ulc-wordbreaks'.
47738         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47739         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47740         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47741
47742         Tests for module 'uniwbrk/u32-wordbreaks'.
47743         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47744         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47745
47746         Tests for module 'uniwbrk/u16-wordbreaks'.
47747         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47748         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47749
47750         Tests for module 'uniwbrk/u8-wordbreaks'.
47751         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47752         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47753
47754 2009-02-10  Bruno Haible  <bruno@clisp.org>
47755
47756         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47757         property.
47758         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47759         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47760         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47761
47762 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47763
47764         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47765         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47766
47767 2009-02-10  Bruno Haible  <bruno@clisp.org>
47768
47769         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47770         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47771         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47772         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47773         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47774         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47775
47776 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47777
47778         * lib/sockets.h (gl_fd_to_handle): New function.
47779
47780         * tests/test-sockets.c: Call gl_fd_to_handle.
47781
47782 2009-02-09  Bruno Haible  <bruno@clisp.org>
47783
47784         * doc/havelib.texi: Document the conventions on bi-arch systems.
47785
47786 2009-02-08  Bruno Haible  <bruno@clisp.org>
47787
47788         Document the AC_LIB_LINKFLAGS macro.
47789         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47790         * doc/gnulib.texi: Include it.
47791
47792 2009-02-08  Bruno Haible  <bruno@clisp.org>
47793
47794         Fix wrong order of sections, compared to TOC.
47795         * doc/gnulib.texi: Include relocatable-maint.texi after the
47796         "Regular expressions" node, not before.
47797
47798 2009-02-08  Bruno Haible  <bruno@clisp.org>
47799
47800         Tests for module 'unicase/totitle'.
47801         * modules/unicase/totitle-tests: New file.
47802
47803         Tests for module 'unicase/tolower'.
47804         * modules/unicase/tolower-tests: New file.
47805
47806         Tests for module 'unicase/toupper'.
47807         * modules/unicase/toupper-tests: New file.
47808         * tests/unicase/test-mapping-part1.h: New file.
47809         * tests/unicase/test-mapping-part2.h: New file.
47810
47811         New module 'unicase/totitle'.
47812         * modules/unicase/totitle: New file.
47813         * lib/unicase/totitle.c: New file.
47814
47815         New module 'unicase/tolower'.
47816         * modules/unicase/tolower: New file.
47817         * lib/unicase/tolower.c: New file.
47818
47819         New module 'unicase/toupper'.
47820         * modules/unicase/toupper: New file.
47821         * lib/unicase/toupper.c: New file.
47822         * lib/unicase/simple-mapping.h: New file.
47823
47824         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47825         (mapping_table): New structure.
47826         (output_simple_mapping): New function.
47827         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47828         * modules/gen-uni-tables (Description): Update.
47829         * lib/unicase/toupper.h: New file, automatically generated by
47830         gen-uni-tables.
47831         * lib/unicase/tolower.h: New file, automatically generated by
47832         gen-uni-tables.
47833         * lib/unicase/totitle.h: New file, automatically generated by
47834         gen-uni-tables.
47835         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47836         gen-uni-tables.
47837         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47838         gen-uni-tables.
47839         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47840         gen-uni-tables.
47841
47842         New module 'unicase/base'.
47843         * modules/unicase/base: New file.
47844         * lib/unicase.h: New file.
47845
47846 2009-02-08  Bruno Haible  <bruno@clisp.org>
47847
47848         New module 'uniwbrk/ulc-wordbreaks'.
47849         * modules/uniwbrk/ulc-wordbreaks: New file.
47850         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47851
47852         New module 'uniwbrk/u32-wordbreaks'.
47853         * modules/uniwbrk/u32-wordbreaks: New file.
47854         * lib/uniwbrk/u32-wordbreaks.c: New file.
47855
47856         New module 'uniwbrk/u16-wordbreaks'.
47857         * modules/uniwbrk/u16-wordbreaks: New file.
47858         * lib/uniwbrk/u16-wordbreaks.c: New file.
47859
47860         New module 'uniwbrk/u8-wordbreaks'.
47861         * modules/uniwbrk/u8-wordbreaks: New file.
47862         * lib/uniwbrk/u8-wordbreaks.c: New file.
47863         * lib/uniwbrk/u-wordbreaks.h: New file.
47864
47865         New module 'uniwbrk/table'.
47866         * modules/uniwbrk/table: New file.
47867         * lib/uniwbrk/wbrktable.h: New file.
47868         * lib/uniwbrk/wbrktable.c: New file.
47869
47870         New module 'uniwbrk/wordbreak-property'.
47871         * modules/uniwbrk/wordbreak-property: New file.
47872         * lib/uniwbrk/wordbreak-property.c: New file.
47873
47874         * lib/gen-uni-tables.c (WBP_*): New enum items.
47875         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47876         (unicode_org_wbp): New variable.
47877         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47878         New functions.
47879         (wbp_table): New structure.
47880         (output_wbp, output_wbrk_tables): New functions.
47881         (main): Accept additional argument. Invoke fill_org_wbp,
47882         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47883         output_wbrk_tables.
47884         * modules/gen-uni-tables (Description): Update.
47885         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47886         gen-uni-tables.
47887
47888         New module 'uniwbrk/base'.
47889         * modules/uniwbrk/base: New file.
47890         * lib/uniwbrk.h: New file.
47891
47892 2009-02-08  Bruno Haible  <bruno@clisp.org>
47893
47894         Update to Unicode 5.1.0.
47895         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47896         U+2185..U+2188.
47897         (is_property_default_ignorable_code_point): Don't include characters
47898         of category Cc or Cs and not-a-characters.
47899         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47900         U+0D79, U+109E, U+109F, U+A60C.
47901         * lib/unictype/bidi_of.h: Regenerated.
47902         * lib/unictype/blocks.h: Regenerated.
47903         * lib/unictype/categ_C.h: Regenerated.
47904         * lib/unictype/categ_Cf.h: Regenerated.
47905         * lib/unictype/categ_Cn.h: Regenerated.
47906         * lib/unictype/categ_L.h: Regenerated.
47907         * lib/unictype/categ_Ll.h: Regenerated.
47908         * lib/unictype/categ_Lm.h: Regenerated.
47909         * lib/unictype/categ_Lo.h: Regenerated.
47910         * lib/unictype/categ_Lu.h: Regenerated.
47911         * lib/unictype/categ_M.h: Regenerated.
47912         * lib/unictype/categ_Mc.h: Regenerated.
47913         * lib/unictype/categ_Me.h: Regenerated.
47914         * lib/unictype/categ_Mn.h: Regenerated.
47915         * lib/unictype/categ_N.h: Regenerated.
47916         * lib/unictype/categ_Nd.h: Regenerated.
47917         * lib/unictype/categ_Nl.h: Regenerated.
47918         * lib/unictype/categ_No.h: Regenerated.
47919         * lib/unictype/categ_P.h: Regenerated.
47920         * lib/unictype/categ_Pd.h: Regenerated.
47921         * lib/unictype/categ_Pe.h: Regenerated.
47922         * lib/unictype/categ_Pf.h: Regenerated.
47923         * lib/unictype/categ_Pi.h: Regenerated.
47924         * lib/unictype/categ_Po.h: Regenerated.
47925         * lib/unictype/categ_Ps.h: Regenerated.
47926         * lib/unictype/categ_S.h: Regenerated.
47927         * lib/unictype/categ_Sk.h: Regenerated.
47928         * lib/unictype/categ_Sm.h: Regenerated.
47929         * lib/unictype/categ_So.h: Regenerated.
47930         * lib/unictype/categ_of.h: Regenerated.
47931         * lib/unictype/combining.h: Regenerated.
47932         * lib/unictype/ctype_alnum.h: Regenerated.
47933         * lib/unictype/ctype_alpha.h: Regenerated.
47934         * lib/unictype/ctype_graph.h: Regenerated.
47935         * lib/unictype/ctype_lower.h: Regenerated.
47936         * lib/unictype/ctype_print.h: Regenerated.
47937         * lib/unictype/ctype_punct.h: Regenerated.
47938         * lib/unictype/ctype_upper.h: Regenerated.
47939         * lib/unictype/decdigit.h: Regenerated.
47940         * lib/unictype/digit.h: Regenerated.
47941         * lib/unictype/mirror.h: Regenerated.
47942         * lib/unictype/numeric.h: Regenerated.
47943         * lib/unictype/pr_alphabetic.h: Regenerated.
47944         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47945         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47946         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47947         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47948         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47949         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47950         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47951         * lib/unictype/pr_combining.h: Regenerated.
47952         * lib/unictype/pr_dash.h: Regenerated.
47953         * lib/unictype/pr_decimal_digit.h: Regenerated.
47954         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47955         * lib/unictype/pr_deprecated.h: Regenerated.
47956         * lib/unictype/pr_diacritic.h: Regenerated.
47957         * lib/unictype/pr_extender.h: Regenerated.
47958         * lib/unictype/pr_format_control.h: Regenerated.
47959         * lib/unictype/pr_grapheme_base.h: Regenerated.
47960         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47961         * lib/unictype/pr_grapheme_link.h: Regenerated.
47962         * lib/unictype/pr_id_continue.h: Regenerated.
47963         * lib/unictype/pr_id_start.h: Regenerated.
47964         * lib/unictype/pr_ideographic.h: Regenerated.
47965         * lib/unictype/pr_ignorable_control.h: Regenerated.
47966         * lib/unictype/pr_lowercase.h: Regenerated.
47967         * lib/unictype/pr_math.h: Regenerated.
47968         * lib/unictype/pr_numeric.h: Regenerated.
47969         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47970         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47971         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47972         * lib/unictype/pr_other_id_continue.h: Regenerated.
47973         * lib/unictype/pr_other_lowercase.h: Regenerated.
47974         * lib/unictype/pr_other_math.h: Regenerated.
47975         * lib/unictype/pr_punctuation.h: Regenerated.
47976         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47977         * lib/unictype/pr_soft_dotted.h: Regenerated.
47978         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47979         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47980         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47981         * lib/unictype/pr_uppercase.h: Regenerated.
47982         * lib/unictype/pr_xid_continue.h: Regenerated.
47983         * lib/unictype/pr_xid_start.h: Regenerated.
47984         * lib/unictype/pr_zero_width.h: Regenerated.
47985         * lib/unictype/scripts.h: Regenerated.
47986         * lib/unictype/scripts_byname.gperf: Regenerated.
47987         * lib/unictype/sy_java_ident.h: Regenerated.
47988         * lib/unilbrk/lbrkprop1.h: Regenerated.
47989         * lib/unilbrk/lbrkprop2.h: Regenerated.
47990         * tests/unictype/test-categ_C.c: Regenerated.
47991         * tests/unictype/test-categ_Cf.c: Regenerated.
47992         * tests/unictype/test-categ_Cn.c: Regenerated.
47993         * tests/unictype/test-categ_L.c: Regenerated.
47994         * tests/unictype/test-categ_Ll.c: Regenerated.
47995         * tests/unictype/test-categ_Lm.c: Regenerated.
47996         * tests/unictype/test-categ_Lo.c: Regenerated.
47997         * tests/unictype/test-categ_Lu.c: Regenerated.
47998         * tests/unictype/test-categ_M.c: Regenerated.
47999         * tests/unictype/test-categ_Mc.c: Regenerated.
48000         * tests/unictype/test-categ_Me.c: Regenerated.
48001         * tests/unictype/test-categ_Mn.c: Regenerated.
48002         * tests/unictype/test-categ_N.c: Regenerated.
48003         * tests/unictype/test-categ_Nd.c: Regenerated.
48004         * tests/unictype/test-categ_Nl.c: Regenerated.
48005         * tests/unictype/test-categ_No.c: Regenerated.
48006         * tests/unictype/test-categ_P.c: Regenerated.
48007         * tests/unictype/test-categ_Pd.c: Regenerated.
48008         * tests/unictype/test-categ_Pe.c: Regenerated.
48009         * tests/unictype/test-categ_Pf.c: Regenerated.
48010         * tests/unictype/test-categ_Pi.c: Regenerated.
48011         * tests/unictype/test-categ_Po.c: Regenerated.
48012         * tests/unictype/test-categ_Ps.c: Regenerated.
48013         * tests/unictype/test-categ_S.c: Regenerated.
48014         * tests/unictype/test-categ_Sk.c: Regenerated.
48015         * tests/unictype/test-categ_Sm.c: Regenerated.
48016         * tests/unictype/test-categ_So.c: Regenerated.
48017         * tests/unictype/test-ctype_alnum.c: Regenerated.
48018         * tests/unictype/test-ctype_alpha.c: Regenerated.
48019         * tests/unictype/test-ctype_graph.c: Regenerated.
48020         * tests/unictype/test-ctype_lower.c: Regenerated.
48021         * tests/unictype/test-ctype_print.c: Regenerated.
48022         * tests/unictype/test-ctype_punct.c: Regenerated.
48023         * tests/unictype/test-ctype_upper.c: Regenerated.
48024         * tests/unictype/test-decdigit.h: Regenerated.
48025         * tests/unictype/test-digit.h: Regenerated.
48026         * tests/unictype/test-numeric.h: Regenerated.
48027         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48028         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48029         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48030         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48031         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48032         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48033         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48034         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48035         * tests/unictype/test-pr_combining.c: Regenerated.
48036         * tests/unictype/test-pr_dash.c: Regenerated.
48037         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48038         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48039         * tests/unictype/test-pr_deprecated.c: Regenerated.
48040         * tests/unictype/test-pr_diacritic.c: Regenerated.
48041         * tests/unictype/test-pr_extender.c: Regenerated.
48042         * tests/unictype/test-pr_format_control.c: Regenerated.
48043         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48044         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48045         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48046         * tests/unictype/test-pr_id_continue.c: Regenerated.
48047         * tests/unictype/test-pr_id_start.c: Regenerated.
48048         * tests/unictype/test-pr_ideographic.c: Regenerated.
48049         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48050         * tests/unictype/test-pr_lowercase.c: Regenerated.
48051         * tests/unictype/test-pr_math.c: Regenerated.
48052         * tests/unictype/test-pr_numeric.c: Regenerated.
48053         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48054         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48055         Regenerated.
48056         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48057         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48058         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48059         * tests/unictype/test-pr_other_math.c: Regenerated.
48060         * tests/unictype/test-pr_punctuation.c: Regenerated.
48061         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48062         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48063         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48064         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48065         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48066         * tests/unictype/test-pr_uppercase.c: Regenerated.
48067         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48068         * tests/unictype/test-pr_xid_start.c: Regenerated.
48069         * tests/unictype/test-pr_zero_width.c: Regenerated.
48070
48071         Update to Unicode 5.1.0.
48072         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48073         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48074         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48075         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48076         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48077         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48078         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48079         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48080         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48081         (nonspacing_table_ind): Update.
48082         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48083
48084         Update to Unicode 5.1.0.
48085         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48086         code transform.
48087         * lib/uniname/uniname.c (unicode_character_name,
48088         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48089         * lib/uniname/uninames.h: Regenerated.
48090         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48091
48092 2009-02-07  Bruno Haible  <bruno@clisp.org>
48093
48094         Merge gen-ctype and gen-lbrk into a single program.
48095         * lib/gen-uni-tables.c: New file, incorporating
48096         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48097         Add directory prefixes to the names of the generated files.
48098         * lib/unictype/gen-ctype.c: Remove file.
48099         * lib/unilbrk/gen-lbrk.c: Remove file.
48100         * modules/gen-uni-tables: New file.
48101         * modules/unictype/gen-ctype: Remove file.
48102         * modules/unilbrk/gen-lbrk: Remove file.
48103
48104 2009-02-07  Bruno Haible  <bruno@clisp.org>
48105
48106         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48107
48108         New module 'unistr/u32-strcoll'.
48109         * modules/unistr/u32-strcoll: New file.
48110         * lib/unistr/u32-strcoll.c: New file.
48111
48112         New module 'unistr/u16-strcoll'.
48113         * modules/unistr/u16-strcoll: New file.
48114         * lib/unistr/u16-strcoll.c: New file.
48115
48116         New module 'unistr/u8-strcoll'.
48117         * modules/unistr/u8-strcoll: New file.
48118         * lib/unistr/u8-strcoll.c: New file.
48119         * lib/unistr/u-strcoll.h: New file.
48120
48121 2009-02-07  Bruno Haible  <bruno@clisp.org>
48122
48123         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48124         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48125         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48126         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48127         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48128         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48129
48130 2009-02-07  Bruno Haible  <bruno@clisp.org>
48131
48132         Make 64-bit clean.
48133         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48134         output_combclass, output_bidi_category, output_decimal_digit,
48135         output_digit, output_numeric, output_mirror, output_scripts,
48136         output_ident_category): Use proper width specifier in format strings.
48137
48138 2009-02-07  Bruno Haible  <bruno@clisp.org>
48139
48140         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48141         failure behaviour.
48142
48143 2009-02-07  Jim Meyering  <meyering@redhat.com>
48144
48145         regex: avoid compilation failure with upcoming gcc-4.4
48146         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48147         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48148         "... error: integer overflow in preprocessor expression".
48149
48150 2009-02-05  Ben Pfaff  <blp@gnu.org>
48151
48152         Fix link errors on Windows when close module is used.
48153         * modules/close: Add $(LIB_CLOSE) to Link section.
48154         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48155         $(LIB_CLOSE) on Windows.
48156
48157 2009-02-05  Jim Meyering  <meyering@redhat.com>
48158
48159         still avoid unused-parameter warnings, but do it cleanly
48160         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48161         (get_fs_usage): Cast to void instead.
48162         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48163         (dev_from_mount_options, read_file_system_list): Cast to void.
48164         Prompted by Bruno Haible.
48165
48166 2009-02-04  Jim Meyering  <meyering@redhat.com>
48167
48168         fsusage.c: correct copyright year
48169         * lib/fsusage.c: Reflect year in which the change is pushed into
48170
48171         avoid misc. warnings
48172         * lib/fsusage.c (UNUSED_PARAM): Define.
48173         (get_fs_usage): Mark parameter "disk" as unused.
48174         * lib/getugroups.c (getgrent): Use "void" in prototype.
48175         * lib/mountlist.c: Mark unused parameters.
48176         (read_file_system_list): Declare a local with "const".
48177         * lib/nanosleep.c (getnow): Declare static.
48178         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48179
48180         dirfd: set errno upon failure
48181         * lib/dirfd.c: Include <errno.h>.
48182         Set errno to ENOTSUP when returning -1.
48183         * modules/dirfd (Depends-on): Add errno.
48184         Suggested by John Kodis <kodis@comcast.net>.
48185
48186 2009-02-01  Bruno Haible  <bruno@clisp.org>
48187
48188         Don't assume sizeof (long) >= sizeof (void *).
48189         * lib/memcmp.c: Include stdint.h.
48190         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48191         srcp2 to 'const byte *'.
48192         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48193         types to uintptr_t.
48194         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48195         * modules/memcmp (Depends-on): Add stdint.
48196         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48197
48198 2009-01-30  Eric Blake  <ebb9@byu.net>
48199
48200         fix more require-before-expand issues
48201         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48202         expand, AC_PROG_AWK.
48203         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48204
48205 2009-01-28  Eric Blake  <ebb9@byu.net>
48206
48207         version-etc: use consistent URL formatting
48208         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48209         Improve formatting.  Use fputs for string without %.
48210
48211 2009-01-28  Jim Meyering  <meyering@redhat.com>
48212
48213         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48214         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48215         "underquoted definition of NAME" from autoconf-2.59.
48216
48217 2009-01-28  Bruno Haible  <bruno@clisp.org>
48218
48219         * doc/gnulib.texi: Add "Obsolete modules" to index.
48220
48221 2009-01-28  Jim Meyering  <meyering@redhat.com>
48222
48223         useless-if-before-free: recognize more variants
48224         * build-aux/useless-if-before-free: Also recognize e.g.,
48225         if (NULL != p) free (p);
48226
48227 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48228
48229         test-getaddrinfo: skip (don't fail) this test when there's no network
48230         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48231         on the presumption that it means you lack network access.
48232
48233 2009-01-26  Jim Meyering  <meyering@redhat.com>
48234
48235         fflush: avoid warnings on modern systems
48236         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48237         pos and result, into scopes where they're used.
48238
48239 2009-01-26  Eric Blake  <ebb9@byu.net>
48240
48241         Silence warning reintroduced by recent extensions patch.
48242         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48243         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48244         autoconf.
48245
48246         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48247         * m4/00gnulib.m4: New file.
48248         * gnulib-tool (func_get_filelist): Always use it.
48249         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48250         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48251
48252 2009-01-25  Bruno Haible  <bruno@clisp.org>
48253
48254         Make test-quotearg work on MacOS X and AIX.
48255         * tests/test-quotearg.sh: New file.
48256         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
48257         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
48258         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
48259         include <libintl.h>.
48260         (fake_locale): Remove variable.
48261         (gettext, dgettext, dcgettext): Remove functions.
48262         (main): Instead of setting a fake locale, set a real locale. Call
48263         textdomain and bindtextdomain.
48264         * modules/quotearg-tests (Files): Add the new files.
48265         (Depends-on): Add gettext, setenv, unsetenv.
48266         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48267         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48268         Augment TESTS_ENVIRONMENT.
48269
48270 2009-01-25  Bruno Haible  <bruno@clisp.org>
48271
48272         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48273         fr_FR.ISO8859-1 locale on MacOS X.
48274         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48275         ja_JP.eucJP locale on MacOS X.
48276         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48277         zh_CN.GB18030 locale on MacOS X.
48278
48279 2009-01-25  Bruno Haible  <bruno@clisp.org>
48280
48281         Avoid link errors on MacOS X 10.3.
48282         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48283         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48284
48285 2009-01-25  Bruno Haible  <bruno@clisp.org>
48286
48287         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48288         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48289         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48290         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48291         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
48292         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48293         posix_spawnattr_init, posix_spawnattr_setsigmask,
48294         posix_spawnattr_setflags, posix_spawnattr_destroy.
48295
48296         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48297         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48298         * modules/execute (Files): Remove m4/posix_spawn.m4.
48299         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48300         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48301         posix_spawnattr_init, posix_spawnattr_setsigmask,
48302         posix_spawnattr_setflags, posix_spawnattr_destroy.
48303
48304 2009-01-25  Bruno Haible  <bruno@clisp.org>
48305
48306         * lib/glthread/threadlib.c: Include <stdlib.h>.
48307
48308 2009-01-25  Bruno Haible  <bruno@clisp.org>
48309
48310         * lib/glthread/threadlib.c (dummy): New declaration.
48311
48312 2009-01-25  Bruno Haible  <bruno@clisp.org>
48313
48314         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48315         multibyte characters also for the GB18030 encoding. Don't crash when
48316         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48317
48318 2009-01-25  Bruno Haible  <bruno@clisp.org>
48319
48320         Avoid redefining 'struct random_data' on OSF/1 5.1.
48321         * lib/stdlib.in.h: Include <random.h> if it exists.
48322         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48323         HAVE_RANDOM_H. Include <random.h> when testing whether
48324         'struct random_data' exists.
48325         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48326
48327 2009-01-25  Bruno Haible  <bruno@clisp.org>
48328
48329         Don't install charset.alias on MacOS X >= 10.3.
48330         * lib/localcharset.c (DARWIN7): New macro.
48331         (get_charset_aliases): Hardcode the result for Darwin7.
48332         * modules/localcharset (install-exec-local): Don't install
48333         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
48334
48335 2009-01-25  Bruno Haible  <bruno@clisp.org>
48336
48337         Don't install charset.alias on mingw and Cygwin.
48338         * modules/localcharset (install-exec-local): Don't install
48339         charset.alias on mingw and Cygwin, if the file does not yet exist.
48340         The result for these platforms is hardcoded in localcharset.c.
48341
48342 2009-01-25  Bruno Haible  <bruno@clisp.org>
48343
48344         Make it possible again to use AC_GNU_SOURCE together with gnulib.
48345         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
48346         before requiring AC_USE_SYSTEM_EXTENSIONS.
48347
48348 2009-01-25  Jim Meyering  <meyering@redhat.com>
48349
48350         c-strtod: avoid warnings
48351         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
48352         "assignment discards qualifiers from pointer target type" warnings.
48353
48354 2009-01-24  Bruno Haible  <bruno@clisp.org>
48355
48356         Add support for non-UTF-8 locales on MacOS X.
48357         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
48358         canonical encodings. For Darwin 7 and newer, don't map traditional
48359         encodings to UTF-8.
48360         Reported by Vincent Lefevre <vincent@vinc17.org>
48361         at <http://savannah.gnu.org/bugs/?25235>.
48362
48363 2009-01-24  Bruno Haible  <bruno@clisp.org>
48364
48365         * doc/gnulib.texi (Obsolete modules): New section.
48366         Reported by Mike Frysinger <vapier@gentoo.org>.
48367
48368 2009-01-24  Bruno Haible  <bruno@clisp.org>
48369
48370         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
48371         (%.dvi): New rule.
48372
48373 2009-01-24  Bruno Haible  <bruno@clisp.org>
48374
48375         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
48376         Reported by Eric Blake.
48377
48378 2009-01-24  Bruno Haible  <bruno@clisp.org>
48379
48380         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
48381         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
48382         Reported by Gary V. Vaughan <gary@gnu.org>.
48383
48384 2009-01-24  Bruno Haible  <bruno@clisp.org>
48385
48386         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48387
48388 2009-01-23  Bruno Haible  <bruno@clisp.org>
48389
48390         Make c-strtod, c-strtold usable in libraries.
48391         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48392         (C_STRTOD): Call strdup instead of xstrdup.
48393         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48394         * modules/c-strtold (Depends-on): Likewise.
48395         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48396         * NEWS: Mention the change.
48397         Reported by Michael Gold <mgold@ncf.ca>.
48398
48399 2009-01-23  Jim Meyering  <meyering@redhat.com>
48400
48401         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48402         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48403         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48404
48405 2009-01-23  Simon Josefsson  <simon@josefsson.org>
48406
48407         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
48408         GNU CoreUtils.
48409         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
48410         * modules/version-etc (Description): Update.
48411
48412 2009-01-22  Bruno Haible  <bruno@clisp.org>
48413
48414         Cache the C locale object.
48415         * lib/c-strtod.c (c_locale_cache): New variable.
48416         (c_locale): New function.
48417         (C_STRTOD): Use it, and don't call freelocale.
48418         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
48419         Suggested by Paolo Bonzini.
48420
48421 2009-01-21  Bruno Haible  <bruno@clisp.org>
48422
48423         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
48424         conditions other than overflow.
48425
48426 2009-01-21  Bruno Haible  <bruno@clisp.org>
48427
48428         * lib/c-strtod.c: Include errno.h.
48429         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48430         value from STRTOD_L and STRTOD.
48431
48432 2009-01-21  Bruno Haible  <bruno@clisp.org>
48433         and Jim Meyering  <meyering@redhat.com>
48434
48435         nanosleep: skip configure test (fail it) for apple universal builds
48436         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
48437         universal builds, assume that nanosleep does not work.
48438         * modules/nanosleep (Depends-on): Add multiarch.
48439
48440         mktime: skip configure test (fail it) for apple universal builds
48441         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
48442         universal builds, assume that mktime does not work.
48443         * modules/mktime (Depends-on): Add multiarch.
48444
48445 2009-01-21  Eric Blake  <ebb9@byu.net>
48446
48447         multiarch: avoid expand-before-require warning
48448         * modules/multiarch (configure.ac): Require, rather than expand,
48449         gl_MULTIARCH.
48450         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
48451         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
48452         enforce that all clients require it.  Partial reversion of
48453         2008-12-29 patch.
48454
48455         error: avoid expand-before-require warning
48456         * modules/errno (configure.ac): Require, rather than expand,
48457         gl_HEADER_ERRNO_H.
48458         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
48459         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
48460         enforce that all clients require it.
48461
48462         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
48463         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
48464         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
48465         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
48466
48467 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
48468
48469         Revert:
48470         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48471
48472         regex: do not depend on obsolete modules.
48473         * modules/regex: Remove memcmp and memmove.
48474
48475 2009-01-20  Bruno Haible  <bruno@clisp.org>
48476
48477         Make the 'link' module link on Windows NT 4.
48478         * lib/link.c (_WIN32_WINNT): Don't define.
48479         (CreateHardLinkFuncType): New type.
48480         (CreateHardLinkFunc, initialized): New variables.
48481         (initialize): New function.
48482         (link): Invoke CreateHardLink indirectly through the function pointer.
48483
48484 2009-01-20  Bruno Haible  <bruno@clisp.org>
48485
48486         Fix compilation failure on mingw.
48487         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48488
48489 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48490
48491         * doc/c-strtod.texi: Mention a couple of restrictions.
48492
48493 2009-01-20  Jim Meyering  <meyering@redhat.com>
48494
48495         gettimeofday: move more declarations out of functions
48496         * lib/gettimeofday.c: Move extern declarations of tzset and
48497         gmtime out of containing functions.  Prompted by Bruno Haible.
48498
48499 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48500
48501         regex: do not depend on obsolete modules.
48502         * modules/regex: Remove memcmp and memmove.
48503
48504 2009-01-19  Bruno Haible  <bruno@clisp.org>
48505
48506         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48507         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48508         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48509         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48510         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48511
48512 2009-01-19  Bruno Haible  <bruno@clisp.org>
48513
48514         * tests/test-link.c: Include <errno.h>.
48515         (main): Exit with code 77 when a hard link cannot be created due to
48516         the file system.
48517         * tests/test-link.sh: Skip test when a hard link cannot be created due
48518         to the file system.
48519         Suggested by Eric Blake.
48520
48521 2009-01-19  Martin Lambers  <marlam@marlam.de>
48522
48523         * modules/link-tests: New file.
48524         * tests/test-link.sh: New file.
48525         * tests/test-link.c: New file.
48526
48527 2009-01-19  Eric Blake  <ebb9@byu.net>
48528
48529         doc: mention another function added in cygwin 1.7.0
48530         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48531         Another new function in cygwin 1.7.
48532
48533 2009-01-19  Bruno Haible  <bruno@clisp.org>
48534
48535         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48536         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48537         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48538         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48539         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48540         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48541         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48542         * m4/md4.m4 (gl_MD4): Likewise.
48543         * m4/md5.m4 (gl_MD5): Likewise.
48544         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48545         * m4/sha1.m4 (gl_SHA1): Likewise.
48546         * m4/sha256.m4 (gl_SHA256): Likewise.
48547         * m4/sha512.m4 (gl_SHA512): Likewise.
48548
48549 2009-01-19  Bruno Haible  <bruno@clisp.org>
48550
48551         * modules/uniname/uniname-tests (Depends-on): Add progname.
48552         * tests/uniname/test-uninames.c: Include progname.h.
48553         (main): Call set_program_name.
48554
48555         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48556         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48557         (main): Call set_program_name.
48558
48559         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48560         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48561         (main): Call set_program_name.
48562
48563         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48564         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48565         (main): Call set_program_name.
48566
48567         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48568         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48569         (main): Call set_program_name.
48570
48571         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48572         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48573         (main): Call set_program_name.
48574
48575         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48576         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48577         (main): Call set_program_name.
48578
48579         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48580         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48581         (main): Call set_program_name.
48582
48583         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48584         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48585         (main): Call set_program_name.
48586
48587 2009-01-19  Eric Blake  <ebb9@byu.net>
48588
48589         test-unistd: test previous patch
48590         * tests/test-unistd.c: Test *_FILENO macros.
48591
48592         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48593         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48594         Guarantee a definition.
48595         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48596         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48597         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48598         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48599         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48600         Likewise.
48601         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48602         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48603         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48604         Likewise.
48605         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48606         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48607         (STDERR_FILENO): Likewise.
48608         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48609         (STDERR_FILENO): Likewise.
48610         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48611         (STDERR_FILENO): Likewise.
48612         Reported by Elbert Pol.
48613
48614 2009-01-19  Eric Blake  <ebb9@byu.net>
48615
48616         doc: mention more functions added in cygwin 1.7.0
48617         * doc/posix-functions/abort.texi (abort): Update wording related
48618         to cygwin.
48619         * doc/posix-functions/daylight.texi (daylight): Likewise.
48620         * doc/posix-functions/optarg.texi (optarg): Likewise.
48621         * doc/posix-functions/optarg.texi (opterr): Likewise.
48622         * doc/posix-functions/optarg.texi (optind): Likewise.
48623         * doc/posix-functions/optarg.texi (optopt): Likewise.
48624         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48625         worked in 1.5.x, and was withdrawn in 1.7.
48626         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48627         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48628         cygwin versions.
48629         * doc/posix-functions/perror.texi (perror): Likewise.
48630         * doc/posix-functions/printf.texi (printf): Likewise.
48631         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48632         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48633         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48634         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48635         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48636         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48637         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48638         Likewise.
48639         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48640         Likewise.
48641         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48642         this function.
48643         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48644         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48645         Likewise.
48646         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48647         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48648         * doc/posix-functions/confstr.texi (confstr): Likewise.
48649         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48650         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48651         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48652         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48653         * doc/posix-functions/fputws.texi (fputws): Likewise.
48654         * doc/posix-functions/fwide.texi (fwide): Likewise.
48655         * doc/posix-functions/getwc.texi (getwc): Likewise.
48656         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48657         * doc/posix-functions/putwc.texi (putwc): Likewise.
48658         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48659         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48660         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48661         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48662         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48663         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48664         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48665         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48666         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48667         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48668         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48669
48670 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48671
48672         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48673         * lib/ioctl.c: Include <sys/ioctl.h>.
48674
48675 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48676
48677         * modules/getdate-tests (Depends-on): Add progname.
48678         * tests/test-getdate.c: Use progname module, to avoid link errors
48679         on non-glibc systems.
48680
48681 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48682
48683         * modules/filenamecat-tests (Depends-on): Add progname.
48684         * modules/fstrcmp-tests (Depends-on): Likewise.
48685
48686         * tests/test-filenamecat.c: Use progname module, to avoid link
48687         errors on non-glibc systems.
48688         * tests/test-fstrcmp.c: Likewise.
48689
48690 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48691
48692         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48693         * lib/gettimeofday.c: Move extern declaration out of function.
48694
48695 2009-01-18  Bruno Haible  <bruno@clisp.org>
48696
48697         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48698         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48699         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48700
48701 2009-01-18  Bruno Haible  <bruno@clisp.org>
48702
48703         * lib/strftime.c (MEMPCPY): Remove unused macro.
48704         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48705
48706 2009-01-18  Martin Lambers  <marlam@marlam.de>
48707
48708         New module 'link'.
48709         * lib/unistd.in.h (link): New declaration.
48710         * lib/link.c: New file.
48711         * m4/link.m4: New file.
48712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48713         HAVE_LINK.
48714         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48715         * modules/link: New file.
48716         * doc/posix-functions/link.texi: Mention the new module.
48717
48718 2009-01-18  Bruno Haible  <bruno@clisp.org>
48719
48720         * tests/test-avltree_list.c (main): Call set_program_name.
48721         * tests/test-avltree_oset.c (main): Likewise.
48722         * tests/test-obstack-printf.c: Include progname.h.
48723         (main): Call set_program_name.
48724         * tests/test-quotearg.c: Include progname.h.
48725         (main): Call set_program_name.
48726         * tests/test-xmemdup0.c: Include progname.h.
48727         (main): Call set_program_name.
48728
48729 2009-01-18  Bruno Haible  <bruno@clisp.org>
48730
48731         New module 'alphasort'.
48732         * lib/dirent.in.h (alphasort): New declaration.
48733         * lib/alphasort.c: New file, from glibc with modifications.
48734         * m4/alphasort.m4: New file.
48735         * modules/alphasort: New file.
48736         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48737         HAVE_ALPHASORT.
48738         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48739         HAVE_ALPHASORT.
48740         * doc/posix-functions/alphasort.texi: Mention the new module and the
48741         portability problems.
48742
48743 2009-01-18  Bruno Haible  <bruno@clisp.org>
48744
48745         New module 'scandir'.
48746         * lib/dirent.in.h (scandir): New declaration.
48747         * lib/scandir.c: New file, from glibc with modifications.
48748         * m4/scandir.m4: New file.
48749         * modules/scandir: New file.
48750         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48751         HAVE_SCANDIR.
48752         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48753         HAVE_SCANDIR.
48754         * doc/posix-functions/scandir.texi: Mention the new module and the
48755         portability problems.
48756
48757 2009-01-17  Bruno Haible  <bruno@clisp.org>
48758
48759         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48760         Update documentation.
48761         (func_remove_suffix): Escape all dots in the suffix. Update
48762         documentation.
48763         (func_filter_filelist): Update documentation.
48764         Reported by Ralf Wildenhues.
48765
48766 2009-01-17  Bruno Haible  <bruno@clisp.org>
48767
48768         * modules/dprintf-posix-tests: New file.
48769         * tests/test-dprintf-posix.sh: New file.
48770         * tests/test-dprintf-posix.c: New file.
48771
48772         New modules 'dprintf', 'dprintf-posix'.
48773         * lib/stdio.in.h (dprintf): New declaration.
48774         * lib/dprintf.c: New file.
48775         * m4/dprintf.m4: New file.
48776         * m4/dprintf-posix.m4: New file.
48777         * modules/dprintf: New file.
48778         * modules/dprintf-posix: New file.
48779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48780         HAVE_DPRINTF, REPLACE_DPRINTF.
48781         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48782         HAVE_DPRINTF, REPLACE_DPRINTF.
48783         * doc/posix-functions/dprintf.texi: Mention the new modules.
48784
48785 2009-01-17  Bruno Haible  <bruno@clisp.org>
48786
48787         * modules/vdprintf-posix-tests: New file.
48788         * tests/test-vdprintf-posix.sh: New file.
48789         * tests/test-vdprintf-posix.c: New file.
48790
48791         New modules 'vdprintf', 'vdprintf-posix'.
48792         * lib/stdio.in.h (vdprintf): New declaration.
48793         * lib/vdprintf.c: New file.
48794         * m4/vdprintf.m4: New file.
48795         * m4/vdprintf-posix.m4: New file.
48796         * modules/vdprintf: New file.
48797         * modules/vdprintf-posix: New file.
48798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48799         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48800         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48801         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48802         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48803
48804 2009-01-17  Bruno Haible  <bruno@clisp.org>
48805
48806         Fix replacement of fopen on mingw.
48807         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48808         mingw.
48809
48810 2009-01-17  Bruno Haible  <bruno@clisp.org>
48811
48812         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48813         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48814
48815 2009-01-17  Bruno Haible  <bruno@clisp.org>
48816
48817         Avoid test-fflush2.sh failure on mingw.
48818         * tests/test-fflush2.c: Include binary-io.h.
48819         (main): Put standard input into binary mode.
48820         * modules/fflush-tests (Depends-on): Add binary-io.
48821
48822 2009-01-17  Bruno Haible  <bruno@clisp.org>
48823
48824         * lib/wchar.in.h: In another particular situation, include only the
48825         system's <wchar.h> file.
48826         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48827         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48828         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48829
48830 2009-01-17  Bruno Haible  <bruno@clisp.org>
48831
48832         Support for stripping executables in --enable-relocatable.
48833         * build-aux/install-reloc: Expect one more argument, or an environment
48834         variable RELOC_STRIP_PROG. If set, strip the destination program and
48835         its wrapper.
48836         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48837         RELOC_STRIP_PROG.
48838         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48839         to set RELOCATABLE_STRIP.
48840         * NEWS: Mention the new Makefile requirement.
48841
48842 2009-01-17  Bruno Haible  <bruno@clisp.org>
48843
48844         * build-aux/install-reloc: Remove debugging information left over by
48845         C compiler on MacOS X.
48846
48847 2009-01-17  Bruno Haible  <bruno@clisp.org>
48848
48849         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48850         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48851         _NSGetExecutablePath.
48852
48853 2009-01-16  Jim Meyering  <meyering@redhat.com>
48854
48855         strerror: avoid warnings about discarding "const"
48856         * lib/strerror.c (rpl_strerror): Instead of returning a const
48857         string from each and every "case", use a variable, and add a single
48858         cast after the switch.
48859
48860 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48861
48862         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48863
48864 2009-01-16  Bruno Haible  <bruno@clisp.org>
48865
48866         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48867         array initializer syntax that also works in C++ mode.
48868         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48869
48870 2009-01-16  Jim Meyering  <meyering@redhat.com>
48871
48872         poll: suppress a warning
48873         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48874         to ignore "...unsigned expression < 0 is always false" warnings.
48875
48876 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48877
48878         poll: remove declarations of unused variables
48879         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48880         sockbuf and optlen.
48881
48882 2009-01-15  Bruno Haible  <bruno@clisp.org>
48883
48884         Make fflush-after-ungetc POSIX compliant on BSD systems.
48885         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48886         (clear_ungetc_buffer): Implement also for other systems.
48887         (rpl_fflush): On glibc systems, invoke
48888         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48889         clear_ungetc_buffer after fetching the stream's position, not before.
48890
48891 2009-01-15  Bruno Haible  <bruno@clisp.org>
48892
48893         Make fflush-after-ungetc POSIX compliant on glibc systems.
48894         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48895         after ungetc.
48896         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48897         (rpl_fflush): On glibc systems, simply call the system's fflush
48898         function after clearing the ungetc buffer.
48899         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48900         Instead, lseek only to the end of file, then use the system's fseeko
48901         for the rest. On glibc systems, reset the EOF indicator bit.
48902
48903 2009-01-15  Jim Meyering  <meyering@redhat.com>
48904
48905         openmp.m4: revert quote-adding change, for portability to older autoconf
48906         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48907         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48908         Simon Josefsson noticed the problem when using autoconf-2.61.
48909
48910 2009-01-15  Bruno Haible  <bruno@clisp.org>
48911
48912         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48913         * tests/test-fflush2.c (ASSERT): Always fail.
48914         (main): Add two tests for fflush() after ungetc(), taking into account
48915         the Austin Group's clarification.
48916         Suggested by Eric Blake.
48917
48918 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48919
48920         mktime.m4: remove K&R-style function prototypes
48921         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48922         for the Sun C++ compiler.
48923
48924 2009-01-14  Bruno Haible  <bruno@clisp.org>
48925
48926         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48927         while including <wchar.h>.
48928         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48929         the system's <wchar.h> file.
48930         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48931
48932 2009-01-14  Bruno Haible  <bruno@clisp.org>
48933
48934         * m4/csharp.m4: Don't mention gettext on the serial number line.
48935         * m4/csharpexec.m4: Likewise.
48936         * m4/eaccess.m4: Likewise.
48937         * m4/javaexec.m4: Likewise.
48938         * m4/sig_atomic_t.m4: Likewise.
48939         * m4/tmpdir.m4: Likewise.
48940         * m4/intldir.m4: Bump gettext version.
48941         * m4/lib-ld.m4: Likewise.
48942
48943 2009-01-14  Bruno Haible  <bruno@clisp.org>
48944
48945         * lib/progname.c (set_program_name): Add more comments.
48946         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48947
48948 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48949
48950         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48951         were sys/stat.h does not define it.
48952
48953 2009-01-14  Jim Meyering  <meyering@redhat.com>
48954
48955         many *.m4 files: improve m4 quoting
48956         99% of this change was performed by running the following commands:
48957         git ls-files | grep '\.m4$' | xargs perl -pi \
48958           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48959           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48960           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48961           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48962         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48963         The remainder were to add Copyright dates, increment serial numbers,
48964         undo some changes in comments, exclude m4/intl.m4, and add quotes
48965         around the "1" in ",1" where the unusual spacing prohibited the
48966         above regexps from doing the job.  For more details, see
48967         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48968         * m4/acl.m4: Modified.
48969         * m4/afs.m4: Likewise.
48970         * m4/alloca.m4: Likewise.
48971         * m4/argp.m4: Likewise.
48972         * m4/argz.m4: Likewise.
48973         * m4/atexit.m4: Likewise.
48974         * m4/bison-i18n.m4: Likewise.
48975         * m4/bison.m4: Likewise.
48976         * m4/byteswap.m4: Likewise.
48977         * m4/c-stack.m4: Likewise.
48978         * m4/c-strtod.m4: Likewise.
48979         * m4/calloc.m4: Likewise.
48980         * m4/canonicalize-lgpl.m4: Likewise.
48981         * m4/chown.m4: Likewise.
48982         * m4/clock_time.m4: Likewise.
48983         * m4/codeset.m4: Likewise.
48984         * m4/copy-file.m4: Likewise.
48985         * m4/csharp.m4: Likewise.
48986         * m4/csharpcomp.m4: Likewise.
48987         * m4/csharpexec.m4: Likewise.
48988         * m4/d-ino.m4: Likewise.
48989         * m4/d-type.m4: Likewise.
48990         * m4/dirfd.m4: Likewise.
48991         * m4/double-slash-root.m4: Likewise.
48992         * m4/eaccess.m4: Likewise.
48993         * m4/eealloc.m4: Likewise.
48994         * m4/environ.m4: Likewise.
48995         * m4/errno_h.m4: Likewise.
48996         * m4/euidaccess.m4: Likewise.
48997         * m4/execute.m4: Likewise.
48998         * m4/fatal-signal.m4: Likewise.
48999         * m4/fchdir.m4: Likewise.
49000         * m4/fcntl_h.m4: Likewise.
49001         * m4/fileblocks.m4: Likewise.
49002         * m4/filenamecat.m4: Likewise.
49003         * m4/findprog.m4: Likewise.
49004         * m4/flexmember.m4: Likewise.
49005         * m4/fnmatch.m4: Likewise.
49006         * m4/fopen.m4: Likewise.
49007         * m4/fpending.m4: Likewise.
49008         * m4/fprintf-posix.m4: Likewise.
49009         * m4/free.m4: Likewise.
49010         * m4/frexp.m4: Likewise.
49011         * m4/frexpl.m4: Likewise.
49012         * m4/fsusage.m4: Likewise.
49013         * m4/ftruncate.m4: Likewise.
49014         * m4/gc-camellia.m4: Likewise.
49015         * m4/gc-random.m4: Likewise.
49016         * m4/gc.m4: Likewise.
49017         * m4/getaddrinfo.m4: Likewise.
49018         * m4/getcwd-abort-bug.m4: Likewise.
49019         * m4/getcwd-path-max.m4: Likewise.
49020         * m4/getdate.m4: Likewise.
49021         * m4/getdomainname.m4: Likewise.
49022         * m4/getgroups.m4: Likewise.
49023         * m4/gethostname.m4: Likewise.
49024         * m4/gethrxtime.m4: Likewise.
49025         * m4/getline.m4: Likewise.
49026         * m4/getloadavg.m4: Likewise.
49027         * m4/getndelim2.m4: Likewise.
49028         * m4/getpass.m4: Likewise.
49029         * m4/gettext.m4: Likewise.
49030         * m4/gettime.m4: Likewise.
49031         * m4/gettimeofday.m4: Likewise.
49032         * m4/gnulib-common.m4: Likewise.
49033         * m4/group-member.m4: Likewise.
49034         * m4/host-os.m4: Likewise.
49035         * m4/iconv.m4: Likewise.
49036         * m4/iconv_open.m4: Likewise.
49037         * m4/inet_ntop.m4: Likewise.
49038         * m4/inet_pton.m4: Likewise.
49039         * m4/inline.m4: Likewise.
49040         * m4/intldir.m4: Likewise.
49041         * m4/intlmacosx.m4: Likewise.
49042         * m4/intmax.m4: Likewise.
49043         * m4/intmax_t.m4: Likewise.
49044         * m4/inttypes.m4: Likewise.
49045         * m4/inttypes_h.m4: Likewise.
49046         * m4/inttypes-pri.m4: Likewise.
49047         * m4/isapipe.m4: Likewise.
49048         * m4/isnand.m4: Likewise.
49049         * m4/isnanf.m4: Likewise.
49050         * m4/isnanl.m4: Likewise.
49051         * m4/javacomp.m4: Likewise.
49052         * m4/javaexec.m4: Likewise.
49053         * m4/jm-winsz1.m4: Likewise.
49054         * m4/jm-winsz2.m4: Likewise.
49055         * m4/lchown.m4: Likewise.
49056         * m4/lcmessage.m4: Likewise.
49057         * m4/ldexpl.m4: Likewise.
49058         * m4/lib-ld.m4: Likewise.
49059         * m4/lib-link.m4: Likewise.
49060         * m4/libsigsegv.m4: Likewise.
49061         * m4/link-follow.m4: Likewise.
49062         * m4/localcharset.m4: Likewise.
49063         * m4/locale-fr.m4: Likewise.
49064         * m4/locale-ja.m4: Likewise.
49065         * m4/locale-tr.m4: Likewise.
49066         * m4/locale-zh.m4: Likewise.
49067         * m4/lock.m4: Likewise.
49068         * m4/longlong.m4: Likewise.
49069         * m4/ls-mntd-fs.m4: Likewise.
49070         * m4/lstat.m4: Likewise.
49071         * m4/malloc.m4: Likewise.
49072         * m4/mathl.m4: Likewise.
49073         * m4/mbrtowc.m4: Likewise.
49074         * m4/mbstate_t.m4: Likewise.
49075         * m4/mbswidth.m4: Likewise.
49076         * m4/memchr.m4: Likewise.
49077         * m4/memcmp.m4: Likewise.
49078         * m4/memcpy.m4: Likewise.
49079         * m4/memmem.m4: Likewise.
49080         * m4/memmove.m4: Likewise.
49081         * m4/mempcpy.m4: Likewise.
49082         * m4/memrchr.m4: Likewise.
49083         * m4/memset.m4: Likewise.
49084         * m4/minmax.m4: Likewise.
49085         * m4/mkdir-slash.m4: Likewise.
49086         * m4/mkdtemp.m4: Likewise.
49087         * m4/mktime.m4: Likewise.
49088         * m4/mmap-anon.m4: Likewise.
49089         * m4/mountlist.m4: Likewise.
49090         * m4/nanosleep.m4: Likewise.
49091         * m4/nls.m4: Likewise.
49092         * m4/nocrash.m4: Likewise.
49093         * m4/open.m4: Likewise.
49094         * m4/openat.m4: Likewise.
49095         * m4/openmp.m4: Likewise.
49096         * m4/pathmax.m4: Likewise.
49097         * m4/perl.m4: Likewise.
49098         * m4/physmem.m4: Likewise.
49099         * m4/pipe.m4: Likewise.
49100         * m4/po.m4: Likewise.
49101         * m4/poll.m4: Likewise.
49102         * m4/posixtm.m4: Likewise.
49103         * m4/posixver.m4: Likewise.
49104         * m4/printf-frexp.m4: Likewise.
49105         * m4/printf-frexpl.m4: Likewise.
49106         * m4/printf-posix.m4: Likewise.
49107         * m4/printf-posix-rpl.m4: Likewise.
49108         * m4/printf.m4: Likewise.
49109         * m4/progtest.m4: Likewise.
49110         * m4/putenv.m4: Likewise.
49111         * m4/readline.m4: Likewise.
49112         * m4/readlink.m4: Likewise.
49113         * m4/readutmp.m4: Likewise.
49114         * m4/realloc.m4: Likewise.
49115         * m4/regex.m4: Likewise.
49116         * m4/relocatable.m4: Likewise.
49117         * m4/relocatable-lib.m4: Likewise.
49118         * m4/rename-dest-slash.m4: Likewise.
49119         * m4/rename.m4: Likewise.
49120         * m4/rmdir-errno.m4: Likewise.
49121         * m4/rmdir.m4: Likewise.
49122         * m4/roundf.m4: Likewise.
49123         * m4/roundl.m4: Likewise.
49124         * m4/rpmatch.m4: Likewise.
49125         * m4/save-cwd.m4: Likewise.
49126         * m4/selinux-selinux-h.m4: Likewise.
49127         * m4/setenv.m4: Likewise.
49128         * m4/settime.m4: Likewise.
49129         * m4/sig2str.m4: Likewise.
49130         * m4/sig_atomic_t.m4: Likewise.
49131         * m4/signalblocking.m4: Likewise.
49132         * m4/signbit.m4: Likewise.
49133         * m4/sigpipe.m4: Likewise.
49134         * m4/sockets.m4: Likewise.
49135         * m4/sockpfaf.m4: Likewise.
49136         * m4/st_dm_mode.m4: Likewise.
49137         * m4/stat-time.m4: Likewise.
49138         * m4/stdbool.m4: Likewise.
49139         * m4/stdint.m4: Likewise.
49140         * m4/stdint_h.m4: Likewise.
49141         * m4/stpcpy.m4: Likewise.
49142         * m4/stpncpy.m4: Likewise.
49143         * m4/strcase.m4: Likewise.
49144         * m4/strchrnul.m4: Likewise.
49145         * m4/strcspn.m4: Likewise.
49146         * m4/strdup.m4: Likewise.
49147         * m4/strftime.m4: Likewise.
49148         * m4/strndup.m4: Likewise.
49149         * m4/strnlen.m4: Likewise.
49150         * m4/strpbrk.m4: Likewise.
49151         * m4/strptime.m4: Likewise.
49152         * m4/strsep.m4: Likewise.
49153         * m4/strtod.m4: Likewise.
49154         * m4/strtoimax.m4: Likewise.
49155         * m4/strtok_r.m4: Likewise.
49156         * m4/strtol.m4: Likewise.
49157         * m4/strtoll.m4: Likewise.
49158         * m4/strtoul.m4: Likewise.
49159         * m4/strtoull.m4: Likewise.
49160         * m4/strtoumax.m4: Likewise.
49161         * m4/strverscmp.m4: Likewise.
49162         * m4/threadlib.m4: Likewise.
49163         * m4/timegm.m4: Likewise.
49164         * m4/tm_gmtoff.m4: Likewise.
49165         * m4/tmpdir.m4: Likewise.
49166         * m4/tmpfile.m4: Likewise.
49167         * m4/tzset.m4: Likewise.
49168         * m4/uintmax_t.m4: Likewise.
49169         * m4/unlinkdir.m4: Likewise.
49170         * m4/unlocked-io.m4: Likewise.
49171         * m4/uptime.m4: Likewise.
49172         * m4/userspec.m4: Likewise.
49173         * m4/utimbuf.m4: Likewise.
49174         * m4/utime.m4: Likewise.
49175         * m4/utimes-null.m4: Likewise.
49176         * m4/utimes.m4: Likewise.
49177         * m4/vararrays.m4: Likewise.
49178         * m4/vasnprintf.m4: Likewise.
49179         * m4/vfprintf-posix.m4: Likewise.
49180         * m4/vprintf-posix.m4: Likewise.
49181         * m4/wait-process.m4: Likewise.
49182         * m4/wchar_t.m4: Likewise.
49183         * m4/wint_t.m4: Likewise.
49184         * m4/write-any-file.m4: Likewise.
49185         * m4/yield.m4: Likewise.
49186
49187 2009-01-13  Bruno Haible  <bruno@clisp.org>
49188
49189         Avoid test-copy-file.sh failures when ACL support insufficient.
49190         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49191         TESTS_ENVIRONMENT.
49192         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49193         Reported by Jim Meyering.
49194
49195 2009-01-13  Bruno Haible  <bruno@clisp.org>
49196
49197         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49198         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49199         * modules/unistdio/u8-printf-parse (Files): Likewise.
49200         * modules/unistdio/u32-printf-parse (Files): Likewise.
49201         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49202
49203 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49204
49205         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49206         and m4/inttypes_h.m4 too.
49207
49208 2009-01-12  Eric Blake  <ebb9@byu.net>
49209
49210         tests: IRIX 6.2 cc can't compile -0.0 into .data
49211         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49212         rather than at compile-time.
49213         * tests/test-floorl.c (minus_zero): Likewise.
49214         * tests/test-frexpl.c (minus_zero): Likewise.
49215         * tests/test-isnan.c (minus_zerol): Likewise.
49216         * tests/test-isnanl.h (minus_zero): Likewise.
49217         * tests/test-ldexpl.c (minus_zero): Likewise.
49218         * tests/test-roundl.c (minus_zero): Likewise.
49219         * tests/test-signbit.c (minus_zerol): Likewise.
49220         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49221         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49222         * tests/test-truncl.c (minus_zero): Likewise.
49223         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49224         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49225         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49226
49227 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49228
49229         regex: fix glibc bug 9697
49230         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49231         handling.
49232
49233 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49234
49235         regex: fix glibc bug 697
49236         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49237         being NULL also if there are no backreferences.
49238
49239 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49240
49241         regex: merge glibc changes
49242         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49243         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49244         re_string_skip_chars, re_string_reconstruct): Likewise.
49245         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49246
49247 2009-01-07  Jim Meyering  <meyering@redhat.com>
49248
49249         poll: filter through cppi
49250         * lib/poll.c: Indent cpp directives to reflect nesting.
49251
49252 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49253
49254         poll: don't return uninitialized
49255         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
49256
49257 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
49258
49259         avoid compile failure on AIX 6.1
49260         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
49261         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
49262
49263 2009-01-04  Jim Meyering  <meyering@redhat.com>
49264
49265         remove duplicate inclusion of <stdio.h>
49266         * tests/test-fprintf-posix.c: Likewise.
49267         * tests/test-printf-posix.c: Likewise.
49268         * tests/test-snprintf-posix.c: Likewise.
49269         * tests/test-sprintf-posix.c: Likewise.
49270         * tests/test-vasprintf-posix.c: Likewise.
49271         * tests/test-vfprintf-posix.c: Likewise.
49272         * tests/test-vprintf-posix.c: Likewise.
49273         * tests/test-vsnprintf-posix.c: Likewise.
49274         * tests/test-vsprintf-posix.c: Likewise.
49275
49276 2009-01-03  Jim Meyering  <meyering@redhat.com>
49277
49278         gnulib-tool: fix sed-based filtering
49279         * gnulib-tool (func_filter_filelist): Remove extra backslash
49280         in sed_fff_filter definition.
49281
49282 2009-01-02  Jim Meyering  <meyering@redhat.com>
49283
49284         strftime: avoid compilation failure on Solaris 2.6
49285         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49286         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49287         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49288         be available.  Reported by Tom G. Christensen.  Details in
49289         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49290
49291 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49292             Bruno Haible  <bruno@clisp.org>
49293
49294         Speed up gnulib-tool by doing more string processing through shell
49295         built-ins.
49296         * gnulib-tool (fast_func_append): New variable.
49297         (func_remove_prefix, func_remove_suffix): New functions.
49298         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49299         (func_filter_filelist): New function.
49300         (func_get_dependencies): Use func_remove_suffix instead of sed.
49301         (func_get_automake_snippet): Use func_filter_filelist instead of a
49302         subshell and sed invocation.
49303
49304 2009-01-01  Bruno Haible  <bruno@clisp.org>
49305
49306         Fix a security bug.
49307         * gnulib-tool (func_import, import, update): Don't allow the characters
49308         '"', '$', '`', '\' in macro arguments that become part of commands that
49309         are evaluated.
49310
49311 2009-01-01  Bruno Haible  <bruno@clisp.org>
49312
49313         * gnulib-tool (func_reset_sigpipe): Add more comments.
49314
49315 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49316
49317         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49318         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49319         already know the answer.
49320
49321 2009-01-01  Jim Meyering  <meyering@redhat.com>
49322
49323         * lib/version-etc.c (version_etc_va): Update copyright year.
49324
49325 2008-12-30  Bruno Haible  <bruno@clisp.org>
49326
49327         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49328         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
49329         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
49330
49331 2008-12-29  Eric Blake  <ebb9@byu.net>
49332
49333         multiarch: avoid autoconf AC_REQUIRE bug
49334         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
49335         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
49336         2.63 and older.
49337         Reported by Bruno Haible, and analyzed in
49338         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
49339
49340 2008-12-29  Bruno Haible  <bruno@clisp.org>
49341
49342         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
49343         files in subdirectories correctly.
49344         Reported by Ralf Wildenhues.
49345
49346 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49347
49348         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
49349         rather than 'join FILE -', for Solaris join.
49350
49351 2008-12-29  Bruno Haible  <bruno@clisp.org>
49352
49353         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
49354         quoting.
49355         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49356         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
49357         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
49358         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
49359         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49360         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49361         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49362         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49363         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49364         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49365         * m4/nls.m4 (AM_NLS): Likewise.
49366         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
49367         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49368         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49369         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49370         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49371         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49372         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
49373         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49374         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49375         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49376         * m4/xsize.m4 (gl_XSIZE): Likewise.
49377         Suggested by Jim Meyering.
49378
49379 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49380
49381         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
49382         * lib/parse-duration.c: use a switch instead of cascading if's.
49383
49384 2008-12-29  Eric Blake  <ebb9@byu.net>
49385
49386         wchar.h: supply WEOF on Irix 5.3
49387         * lib/wchar.in.h (wint_t): Also supply WEOF.
49388         * lib/wctype.in.h (wint_t): Likewise.
49389         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49390         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49391         Reported by Tom G. Christensen.
49392
49393 2008-12-26  Bruno Haible  <bruno@clisp.org>
49394
49395         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49396         i486, i586, i686.
49397
49398 2008-12-26  Bruno Haible  <bruno@clisp.org>
49399
49400         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49401
49402 2008-12-26  Bruno Haible  <bruno@clisp.org>
49403
49404         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49405         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
49406         not __STDC_CONSTANT_MACROS.
49407         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49408
49409 2008-12-25  Bruno Haible  <bruno@clisp.org>
49410
49411         Add support for universal builds to vasnprintf.
49412         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
49413         universal builds, guess no.
49414         * modules/vasnprintf-posix (Depends-on): Add multiarch.
49415         * modules/vasprintf-posix (Depends-on): Likewise.
49416         * modules/fprintf-posix (Depends-on): Likewise.
49417         * modules/vfprintf-posix (Depends-on): Likewise.
49418         * modules/snprintf-posix (Depends-on): Likewise.
49419         * modules/vsnprintf-posix (Depends-on): Likewise.
49420         * modules/sprintf-posix (Depends-on): Likewise.
49421         * modules/vsprintf-posix (Depends-on): Likewise.
49422         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49423         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49424         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49425         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49426         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49427         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49428         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49429
49430         Add support for universal builds to <inttypes.h>.
49431         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49432         _SCNu64_PREFIX): In Apple
49433         universal builds, define directly, using _LP64.
49434         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49435         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49436         * modules/inttypes (Depends-on): Add multiarch.
49437         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49438
49439         Add support for universal builds to <stdint.h>.
49440         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
49441         universal builds, define directly, using _LP64.
49442         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
49443         Apple universal builds, don't test for the size and suffix of ptrdiff_t
49444         and size_t.
49445         * modules/stdint (Depends-on): Add multiarch.
49446         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49447
49448         New module 'multiarch'.
49449         * modules/multiarch: New file.
49450         * m4/multiarch.m4: New file.
49451
49452 2008-12-25  Bruno Haible  <bruno@clisp.org>
49453
49454         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
49455
49456 2008-12-25  Bruno Haible  <bruno@clisp.org>
49457
49458         * modules/btowc (License): Relicense under LGPLv2+.
49459         * modules/mbsinit (License): Likewise.
49460         * modules/mbrtowc (License): Likewise.
49461         * modules/wcrtomb (License): Likewise.
49462         * modules/streq (License): Likewise.
49463         Reported by David Lutterkort <lutter@redhat.com>.
49464
49465 2008-12-23  Bruno Haible  <bruno@clisp.org>
49466
49467         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
49468
49469 2008-12-23  Bruno Haible  <bruno@clisp.org>
49470
49471         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
49472         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
49473         GETADDRINFO_LIB, not in LIBS.
49474         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
49475         * modules/canon-host (Link): Likewise.
49476         * NEWS: Mention the change.
49477         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
49478         GETADDRINFO_LIB.
49479
49480 2008-12-22  Bruno Haible  <bruno@clisp.org>
49481
49482         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49483         * doc/posix-functions/iswalpha_l.texi: Likewise.
49484         * doc/posix-functions/iswblank_l.texi: Likewise.
49485         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49486         * doc/posix-functions/iswctype_l.texi: Likewise.
49487         * doc/posix-functions/iswdigit_l.texi: Likewise.
49488         * doc/posix-functions/iswgraph_l.texi: Likewise.
49489         * doc/posix-functions/iswlower_l.texi: Likewise.
49490         * doc/posix-functions/iswprint_l.texi: Likewise.
49491         * doc/posix-functions/iswpunct_l.texi: Likewise.
49492         * doc/posix-functions/iswspace_l.texi: Likewise.
49493         * doc/posix-functions/iswupper_l.texi: Likewise.
49494         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49495         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49496         * doc/posix-functions/open_wmemstream.texi: Likewise.
49497         * doc/posix-functions/swscanf.texi: Likewise.
49498         * doc/posix-functions/towctrans_l.texi: Likewise.
49499         * doc/posix-functions/towlower.texi: Likewise.
49500         * doc/posix-functions/towlower_l.texi: Likewise.
49501         * doc/posix-functions/towupper.texi: Likewise.
49502         * doc/posix-functions/towupper_l.texi: Likewise.
49503         * doc/posix-functions/vfwprintf.texi: Likewise.
49504         * doc/posix-functions/vfwscanf.texi: Likewise.
49505         * doc/posix-functions/vswscanf.texi: Likewise.
49506         * doc/posix-functions/vwprintf.texi: Likewise.
49507         * doc/posix-functions/vwscanf.texi: Likewise.
49508         * doc/posix-functions/wcpcpy.texi: Likewise.
49509         * doc/posix-functions/wcpncpy.texi: Likewise.
49510         * doc/posix-functions/wcscasecmp.texi: Likewise.
49511         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49512         * doc/posix-functions/wcscoll_l.texi: Likewise.
49513         * doc/posix-functions/wcsdup.texi: Likewise.
49514         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49515         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49516         * doc/posix-functions/wcsnlen.texi: Likewise.
49517         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49518         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49519         * doc/posix-functions/wctrans_l.texi: Likewise.
49520         * doc/posix-functions/wctype_l.texi: Likewise.
49521         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49522         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49523         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49524         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49525         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49526         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49527         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49528         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49529         * doc/glibc-functions/wcschrnul.texi: Likewise.
49530         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49531         * doc/glibc-functions/wcstod_l.texi: Likewise.
49532         * doc/glibc-functions/wcstof_l.texi: Likewise.
49533         * doc/glibc-functions/wcstol_l.texi: Likewise.
49534         * doc/glibc-functions/wcstold_l.texi: Likewise.
49535         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49536         * doc/glibc-functions/wcstoq.texi: Likewise.
49537         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49538         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49539         * doc/glibc-functions/wcstouq.texi: Likewise.
49540         * doc/glibc-functions/wmempcpy.texi: Likewise.
49541
49542 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49543             Eric Blake  <ebb9@byu.net>
49544             Paolo Bonzini  <bonzini@gnu.org>
49545             Bruno Haible  <bruno@clisp.org>
49546
49547         Make c-stack work on Haiku.
49548         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49549         (c_stack_action): Use SA_ONSTACK flag.
49550
49551 2008-12-22  Bruno Haible  <bruno@clisp.org>
49552
49553         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49554
49555 2008-12-22  Bruno Haible  <bruno@clisp.org>
49556
49557         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49558         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49559         being overridden.
49560         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49561         New macros.
49562         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49563         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49564         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49565         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49566
49567 2008-12-22  Bruno Haible  <bruno@clisp.org>
49568
49569         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49570         from test code.
49571
49572 2008-12-22  Eric Blake  <ebb9@byu.net>
49573
49574         Avoid gcc warnings on cygwin.
49575         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49576         Avoid unused variable.
49577         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49578         Likewise.
49579
49580 2008-12-22  Bruno Haible  <bruno@clisp.org>
49581
49582         Remove HAVE_MBRTOWC conditionals.
49583         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49584         (mbscasecmp): Assume mbrtowc function.
49585         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49586         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49587         * lib/mbschr.c: Include mbuiter.h unconditionally.
49588         (mbschr): Assume mbrtowc function.
49589         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49590         (mbscspn): Assume mbrtowc function.
49591         * lib/mbslen.c: Include mbuiter.h unconditionally.
49592         (mbslen): Assume mbrtowc function.
49593         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49594         (mbsncasecmp): Assume mbrtowc function.
49595         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49596         (mbsnlen): Assume mbrtowc function.
49597         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49598         (mbspbrk): Assume mbrtowc function.
49599         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49600         (mbspcasecmp): Assume mbrtowc function.
49601         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49602         (mbsrchr): Assume mbrtowc function.
49603         * lib/mbssep.c: Include mbuiter.h unconditionally.
49604         (mbssep): Assume mbrtowc function.
49605         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49606         (mbsspn): Assume mbrtowc function.
49607         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49608         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49609         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49610         (mbstok_r): Assume mbrtowc function.
49611         * lib/propername.c: Include mbuiter.h unconditionally.
49612         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49613         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49614         (trim2): Assume mbrtowc function.
49615         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49616         (mbsnwidth): Assume mbrtowc function.
49617         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49618         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49619         fallback definitions.
49620         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49621
49622 2008-12-22  Bruno Haible  <bruno@clisp.org>
49623
49624         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49625
49626 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49627
49628         * modules/regex: Request emulations for the mb*/wc* functions we need.
49629         * m4/regex.m4: Don't look for those functions here.
49630         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49631
49632 2008-12-22  Bruno Haible  <bruno@clisp.org>
49633
49634         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49635
49636 2008-12-21  Bruno Haible  <bruno@clisp.org>
49637
49638         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49639         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49640         (Include): Remove conditionalization.
49641         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49642         (Include): Remove conditionalization.
49643         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49644         (Include): Remove conditionalization.
49645         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49646         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49647         * NEWS: Mention the change.
49648         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49649         via Sergey Poznyakoff <gray@gnu.org.ua>.
49650
49651 2008-12-21  Bruno Haible  <bruno@clisp.org>
49652
49653         * MODULES.html.sh (Extended multibyte and wide character utilities
49654         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49655         wcrtomb, wcsrtombs.
49656         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49657         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49658         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49659         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49660
49661 2008-12-21  Bruno Haible  <bruno@clisp.org>
49662
49663         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49664
49665 2008-12-21  Bruno Haible  <bruno@clisp.org>
49666
49667         * modules/wcsnrtombs-tests: New file.
49668         * tests/test-wcsnrtombs1.sh: New file.
49669         * tests/test-wcsnrtombs2.sh: New file.
49670         * tests/test-wcsnrtombs3.sh: New file.
49671         * tests/test-wcsnrtombs4.sh: New file.
49672         * tests/test-wcsnrtombs.c: New file.
49673
49674         New module 'wcsnrtombs'.
49675         * lib/wchar.in.h (wcsnrtombs): New declaration.
49676         * lib/wcsnrtombs.c: New file.
49677         * lib/wcsrtombs-state.c: New file.
49678         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49679         (internal_state): Remove variable.
49680         * m4/wcsnrtombs.m4: New file.
49681         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49682         compilation units.
49683         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49684         HAVE_WCSNRTOMBS.
49685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49686         HAVE_WCSNRTOMBS.
49687         * modules/wcsnrtombs: New file.
49688         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49689         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49690
49691 2008-12-21  Bruno Haible  <bruno@clisp.org>
49692
49693         * modules/wcsrtombs-tests: New file.
49694         * tests/test-wcsrtombs1.sh: New file.
49695         * tests/test-wcsrtombs2.sh: New file.
49696         * tests/test-wcsrtombs3.sh: New file.
49697         * tests/test-wcsrtombs4.sh: New file.
49698         * tests/test-wcsrtombs.c: New file.
49699
49700         New module 'wcsrtombs'.
49701         * lib/wchar.in.h (wcsrtombs): New declaration.
49702         * lib/wcsrtombs.c: New file.
49703         * m4/wcsrtombs.m4: New file.
49704         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49705         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49706         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49707         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49708         * modules/wcsrtombs: New file.
49709         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49710         bugs.
49711
49712 2008-12-21  Bruno Haible  <bruno@clisp.org>
49713
49714         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49715         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49716         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49717         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49718         if not correct.
49719         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49720         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49721         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49722         m4/locale-zh.m4, m4/codeset.m4.
49723         * doc/posix-functions/wcrtomb.texi: Document the bug.
49724
49725 2008-12-21  Bruno Haible  <bruno@clisp.org>
49726
49727         Work around a btowc() bug on IRIX 6.5.
49728         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49729         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49730         REPLACE_WTOBC if not.
49731         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49732         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49733         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49734
49735 2008-12-21  Bruno Haible  <bruno@clisp.org>
49736
49737         * modules/wcrtomb-tests: New file.
49738         * tests/test-wcrtomb.sh: New file.
49739         * tests/test-wcrtomb.c: New file.
49740
49741         New module 'wcrtomb'.
49742         * lib/wchar.in.h (wcrtomb): New declaration.
49743         * lib/wcrtomb.c: New file.
49744         * m4/wcrtomb.m4: New file.
49745         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49746         HAVE_WCRTOMB.
49747         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49748         HAVE_WCRTOMB.
49749         * modules/wcrtomb: New file.
49750         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49751
49752 2008-12-21  Bruno Haible  <bruno@clisp.org>
49753
49754         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49755         * modules/mbsrtowcs (Files): Likewise.
49756         * modules/wctob (Files): Likewise.
49757         * modules/c-strcase-tests (Files): Likewise.
49758         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49759         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49760         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49761         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49762         * modules/vasnprintf-posix-tests (Files): Likewise.
49763
49764 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49765
49766         gitlog-to-changelog: pass all command-line arguments to git-log
49767         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49768         it is sometimes convenient to filter the commits in various ways.
49769         gitlog-to-changelog only allows --since to specify a start date,
49770         but git-log itself supports many other filtering mechanisms.
49771         At the moment, I want to filter by branch name.  Rather than
49772         adding a --branch option to gitlog-to-changelog, it seems more
49773         flexible to simply pass all options directly to git-log and let
49774         git do the work.  Notice that this effectively makes --since a
49775         redundant option for gitlog-to-changelog, but removing it would
49776         require current usage to change since calls would then require
49777         an additional '--'.
49778
49779 2008-12-21  Bruno Haible  <bruno@clisp.org>
49780
49781         * modules/mbsnrtowcs-tests: New file.
49782         * tests/test-mbsnrtowcs1.sh: New file.
49783         * tests/test-mbsnrtowcs2.sh: New file.
49784         * tests/test-mbsnrtowcs3.sh: New file.
49785         * tests/test-mbsnrtowcs4.sh: New file.
49786         * tests/test-mbsnrtowcs.c: New file.
49787
49788         New module 'mbsnrtowcs'.
49789         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49790         * lib/mbsnrtowcs.c: New file.
49791         * lib/mbsrtowcs-state.c: New file.
49792         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49793         (internal_state): Remove variable.
49794         * m4/mbsnrtowcs.m4: New file.
49795         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49796         compilation units.
49797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49798         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49799         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49800         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49801         * modules/mbsnrtowcs: New file.
49802         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49803         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49804         portability problem.
49805
49806 2008-12-21  Bruno Haible  <bruno@clisp.org>
49807
49808         Work around mbsrtowcs bug.
49809         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49810         (gl_FUNC_MBSRTOWCS): Invoke it.
49811         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49812         m4/locale-zh.m4.
49813         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49814
49815 2008-12-21  Bruno Haible  <bruno@clisp.org>
49816
49817         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49818
49819 2008-12-21  Bruno Haible  <bruno@clisp.org>
49820
49821         Update doc for AIX.
49822         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49823         16-bit wchar_t type.
49824         * doc/posix-functions/btowc.texi: Likewise.
49825         * doc/posix-functions/fgetwc.texi: Likewise.
49826         * doc/posix-functions/fgetws.texi: Likewise.
49827         * doc/posix-functions/fputwc.texi: Likewise.
49828         * doc/posix-functions/fputws.texi: Likewise.
49829         * doc/posix-functions/fwide.texi: Likewise.
49830         * doc/posix-functions/fwprintf.texi: Likewise.
49831         * doc/posix-functions/fwscanf.texi: Likewise.
49832         * doc/posix-functions/getwchar.texi: Likewise.
49833         * doc/posix-functions/getwc.texi: Likewise.
49834         * doc/posix-functions/iswalnum.texi: Likewise.
49835         * doc/posix-functions/iswalpha.texi: Likewise.
49836         * doc/posix-functions/iswblank.texi: Likewise.
49837         * doc/posix-functions/iswcntrl.texi: Likewise.
49838         * doc/posix-functions/iswctype.texi: Likewise.
49839         * doc/posix-functions/iswdigit.texi: Likewise.
49840         * doc/posix-functions/iswgraph.texi: Likewise.
49841         * doc/posix-functions/iswlower.texi: Likewise.
49842         * doc/posix-functions/iswprint.texi: Likewise.
49843         * doc/posix-functions/iswpunct.texi: Likewise.
49844         * doc/posix-functions/iswspace.texi: Likewise.
49845         * doc/posix-functions/iswupper.texi: Likewise.
49846         * doc/posix-functions/iswxdigit.texi: Likewise.
49847         * doc/posix-functions/mbrtowc.texi: Likewise.
49848         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49849         * doc/posix-functions/mbstowcs.texi: Likewise.
49850         * doc/posix-functions/mbtowc.texi: Likewise.
49851         * doc/posix-functions/putwchar.texi: Likewise.
49852         * doc/posix-functions/putwc.texi: Likewise.
49853         * doc/posix-functions/swprintf.texi: Likewise.
49854         * doc/posix-functions/tolower.texi: Likewise.
49855         * doc/posix-functions/toupper.texi: Likewise.
49856         * doc/posix-functions/towctrans.texi: Likewise.
49857         * doc/posix-functions/ungetwc.texi: Likewise.
49858         * doc/posix-functions/vswprintf.texi: Likewise.
49859         * doc/posix-functions/wcrtomb.texi: Likewise.
49860         * doc/posix-functions/wcscat.texi: Likewise.
49861         * doc/posix-functions/wcschr.texi: Likewise.
49862         * doc/posix-functions/wcscmp.texi: Likewise.
49863         * doc/posix-functions/wcscoll.texi: Likewise.
49864         * doc/posix-functions/wcscpy.texi: Likewise.
49865         * doc/posix-functions/wcscspn.texi: Likewise.
49866         * doc/posix-functions/wcsftime.texi: Likewise.
49867         * doc/posix-functions/wcslen.texi: Likewise.
49868         * doc/posix-functions/wcsncat.texi: Likewise.
49869         * doc/posix-functions/wcsncmp.texi: Likewise.
49870         * doc/posix-functions/wcsncpy.texi: Likewise.
49871         * doc/posix-functions/wcspbrk.texi: Likewise.
49872         * doc/posix-functions/wcsrchr.texi: Likewise.
49873         * doc/posix-functions/wcsrtombs.texi: Likewise.
49874         * doc/posix-functions/wcsspn.texi: Likewise.
49875         * doc/posix-functions/wcsstr.texi: Likewise.
49876         * doc/posix-functions/wcstod.texi: Likewise.
49877         * doc/posix-functions/wcstof.texi: Likewise.
49878         * doc/posix-functions/wcstoimax.texi: Likewise.
49879         * doc/posix-functions/wcstok.texi: Likewise.
49880         * doc/posix-functions/wcstold.texi: Likewise.
49881         * doc/posix-functions/wcstoll.texi: Likewise.
49882         * doc/posix-functions/wcstol.texi: Likewise.
49883         * doc/posix-functions/wcstombs.texi: Likewise.
49884         * doc/posix-functions/wcstoull.texi: Likewise.
49885         * doc/posix-functions/wcstoul.texi: Likewise.
49886         * doc/posix-functions/wcstoumax.texi: Likewise.
49887         * doc/posix-functions/wcswidth.texi: Likewise.
49888         * doc/posix-functions/wcsxfrm.texi: Likewise.
49889         * doc/posix-functions/wctob.texi: Likewise.
49890         * doc/posix-functions/wctomb.texi: Likewise.
49891         * doc/posix-functions/wctrans.texi: Likewise.
49892         * doc/posix-functions/wctype.texi: Likewise.
49893         * doc/posix-functions/wcwidth.texi: Likewise.
49894         * doc/posix-functions/wmemchr.texi: Likewise.
49895         * doc/posix-functions/wmemcmp.texi: Likewise.
49896         * doc/posix-functions/wmemcpy.texi: Likewise.
49897         * doc/posix-functions/wmemmove.texi: Likewise.
49898         * doc/posix-functions/wmemset.texi: Likewise.
49899         * doc/posix-functions/wprintf.texi: Likewise.
49900         * doc/posix-functions/wscanf.texi: Likewise.
49901
49902 2008-12-21  Bruno Haible  <bruno@clisp.org>
49903
49904         Update doc for HP-UX 11.11.
49905         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49906         in HP-UX version 11.00, not in all versions of HP-UX 11.
49907         * doc/posix-functions/fwide.texi: Likewise.
49908         * doc/posix-functions/fwprintf.texi: Likewise.
49909         * doc/posix-functions/fwscanf.texi: Likewise.
49910         * doc/posix-functions/inet_ntop.texi: Likewise.
49911         * doc/posix-functions/inet_pton.texi: Likewise.
49912         * doc/posix-functions/mbrlen.texi: Likewise.
49913         * doc/posix-functions/mbrtowc.texi: Likewise.
49914         * doc/posix-functions/mbsinit.texi: Likewise.
49915         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49916         * doc/posix-functions/swprintf.texi: Likewise.
49917         * doc/posix-functions/swscanf.texi: Likewise.
49918         * doc/posix-functions/towctrans.texi: Likewise.
49919         * doc/posix-functions/vfwprintf.texi: Likewise.
49920         * doc/posix-functions/vswprintf.texi: Likewise.
49921         * doc/posix-functions/vwprintf.texi: Likewise.
49922         * doc/posix-functions/wcrtomb.texi: Likewise.
49923         * doc/posix-functions/wcsrtombs.texi: Likewise.
49924         * doc/posix-functions/wcsstr.texi: Likewise.
49925         * doc/posix-functions/wctob.texi: Likewise.
49926         * doc/posix-functions/wctrans.texi: Likewise.
49927         * doc/posix-functions/wmemchr.texi: Likewise.
49928         * doc/posix-functions/wmemcmp.texi: Likewise.
49929         * doc/posix-functions/wmemcpy.texi: Likewise.
49930         * doc/posix-functions/wmemmove.texi: Likewise.
49931         * doc/posix-functions/wmemset.texi: Likewise.
49932         * doc/posix-functions/wprintf.texi: Likewise.
49933         * doc/posix-functions/wscanf.texi: Likewise.
49934
49935 2008-12-21  Bruno Haible  <bruno@clisp.org>
49936
49937         Work around a portability problem.
49938         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49939         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49940
49941 2008-12-20  Bruno Haible  <bruno@clisp.org>
49942
49943         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49944         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49945         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49946         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49947         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49948
49949         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49950         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49951         set.
49952         (GNULIB_defined_mbstate_t): New macro.
49953         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49954         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49955         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49956         reuses the system's mbrtowc function but works around the bugs.
49957         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49958         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49959         macros.
49960         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49961         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49962         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49963         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49964         REPLACE_MBSINIT if mbsinit needs to be overridden.
49965         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49966         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49967         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49968         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49969         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49970         m4/locale-zh.m4.
49971         (Depends): Add mbsinit.
49972         * modules/mbsinit (Depends): Add mbrtowc.
49973         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49974
49975 2008-12-20  Bruno Haible  <bruno@clisp.org>
49976
49977         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49978         so that there are no conversion errors on AIX.
49979         * tests/test-mbsrtowcs.c (main): LIkewise.
49980
49981 2008-12-20  Bruno Haible  <bruno@clisp.org>
49982
49983         Work around wctob bug on Solaris <= 9.
49984         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49985         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49986         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49987         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49988         * modules/wctob (Files): Add m4/locale-fr.m4.
49989         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49990
49991 2008-12-20  Bruno Haible  <bruno@clisp.org>
49992
49993         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49994         /dev/null.
49995         * tests/test-select-in.sh: Likewise.
49996         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49997
49998 2008-12-20  Bruno Haible  <bruno@clisp.org>
49999
50000         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50001         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50002         Cygwin 1.5.x.
50003
50004 2008-12-20  Bruno Haible  <bruno@clisp.org>
50005
50006         Ensure mbstate_t is defined on HP-UX 11.11.
50007         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50008         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50009         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50010         AC_USE_SYSTEM_EXTENSIONS.
50011         * modules/fnmatch (Depends-on): Add extensions.
50012         * modules/mbrlen (Depends-on): Likewise.
50013         * modules/mbrtowc (Depends-on): Likewise.
50014         * modules/mbsinit (Depends-on): Likewise.
50015         * modules/mbsrtowcs (Depends-on): Likewise.
50016         * modules/mbswidth (Depends-on): Likewise.
50017         * modules/quotearg (Depends-on): Likewise.
50018         * modules/strftime (Depends-on): Likewise.
50019
50020 2008-12-20  Bruno Haible  <bruno@clisp.org>
50021
50022         Ensure wctob is declared on IRIX 6.5.
50023         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50024         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50025         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50026         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50027         of HAVE_WCTOB.
50028         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50029         HAVE_WCTOB.
50030         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50031
50032 2008-12-19  Bruno Haible  <bruno@clisp.org>
50033
50034         * modules/mbsrtowcs-tests: New file.
50035         * tests/test-mbsrtowcs1.sh: New file.
50036         * tests/test-mbsrtowcs2.sh: New file.
50037         * tests/test-mbsrtowcs3.sh: New file.
50038         * tests/test-mbsrtowcs4.sh: New file.
50039         * tests/test-mbsrtowcs.c: New file.
50040
50041         New module 'mbsrtowcs'.
50042         * lib/wchar.in.h (mbsrtowcs): New declaration.
50043         * lib/mbsrtowcs.c: New file.
50044         * m4/mbsrtowcs.m4: New file.
50045         * modules/mbsrtowcs: New file.
50046         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50047         HAVE_MBSRTOWCS.
50048         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50049         HAVE_MBSRTOWCS.
50050         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50051
50052 2008-12-19  Bruno Haible  <bruno@clisp.org>
50053
50054         New module 'mbrlen'.
50055         * lib/wchar.in.h (mbrlen): New declaration.
50056         * lib/mbrlen.c: New file.
50057         * m4/mbrlen.m4: New file.
50058         * modules/mbrlen: New file.
50059         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50060         HAVE_MBRLEN.
50061         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50062         HAVE_MBRLEN.
50063         * doc/posix-functions/mbrlen.texi: Document the new module.
50064
50065 2008-12-19  Bruno Haible  <bruno@clisp.org>
50066
50067         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50068         * modules/mbrtowc (Depends-on): Add verify.
50069         Suggested by Paul Eggert.
50070
50071 2008-12-18  Bruno Haible  <bruno@clisp.org>
50072
50073         * modules/mbsinit-tests: New file.
50074         * tests/test-mbsinit.sh: New file.
50075         * tests/test-mbsinit.c: New file.
50076
50077 2008-12-18  Bruno Haible  <bruno@clisp.org>
50078
50079         * modules/mbrtowc-tests: New file.
50080         * tests/test-mbrtowc1.sh: New file.
50081         * tests/test-mbrtowc2.sh: New file.
50082         * tests/test-mbrtowc3.sh: New file.
50083         * tests/test-mbrtowc4.sh: New file.
50084         * tests/test-mbrtowc.c: New file.
50085
50086         New module 'mbrtowc'.
50087         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50088         mbsinit and mbrtowc.
50089         (mbrtowc): New declaration.
50090         * lib/mbrtowc.c: New file.
50091         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50092         * modules/mbrtowc: New file.
50093         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50094         HAVE_MBRTOWC.
50095         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50096         HAVE_MBRTOWC.
50097         * doc/posix-functions/mbrtowc.texi: Document the new module.
50098
50099 2008-12-18  Bruno Haible  <bruno@clisp.org>
50100
50101         New module 'wctob'.
50102         * lib/wchar.in.h (wctob): New declaration.
50103         * lib/wctob.c: New file.
50104         * m4/wctob.m4: New file.
50105         * modules/wctob: New file.
50106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50107         HAVE_WCTOB.
50108         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50109         * doc/posix-functions/wctob.texi: Document the new module.
50110
50111 2008-12-18  Bruno Haible  <bruno@clisp.org>
50112
50113         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50114         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50115
50116 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50117
50118         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50119         G. Christensen" <tgc@jupiterrise.com>.
50120
50121         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50122         G. Christensen" <tgc@jupiterrise.com>.
50123
50124         * lib/flock.c: Need to include string.h.  Reported by "Tom
50125         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50126         <ebb9@byu.net>.
50127
50128 2008-12-18  Bruno Haible  <bruno@clisp.org>
50129
50130         * m4/locale-ja.m4: New file, from GNU gettext.
50131
50132 2008-12-17  Bruno Haible  <bruno@clisp.org>
50133
50134         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50135         Suggested by Eric Blake.
50136
50137 2008-12-17  Bruno Haible  <bruno@clisp.org>
50138
50139         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50140
50141 2008-12-17  Bruno Haible  <bruno@clisp.org>
50142
50143         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50144         * modules/mbsinit (Depends-on): Add verify.
50145         Suggested by Paul Eggert.
50146
50147 2008-12-17  Bruno Haible  <bruno@clisp.org>
50148
50149         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50150         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50151         gl_FUNC_MBRTOWC.
50152         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50153         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50154         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50155         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50156         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50157         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50158         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50159         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50160         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50161         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50162         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50163         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50164         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50165         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50166         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50167         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50168         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50169         * modules/trim (configure.ac): Likewise.
50170
50171 2008-12-17  Bruno Haible  <bruno@clisp.org>
50172
50173         * modules/btowc-tests: New file.
50174         * tests/test-btowc1.sh: New file.
50175         * tests/test-btowc2.sh: New file.
50176         * tests/test-btowc.c: New file.
50177
50178         New module 'btowc'.
50179         * lib/wchar.in.h (btowc): New declaration.
50180         * lib/btowc.c: New file.
50181         * m4/btowc.m4: New file.
50182         * modules/btowc: New file.
50183         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50184         HAVE_BTOWC.
50185         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50186         * doc/posix-functions/btowc.texi: Document the new module.
50187
50188 2008-12-17  Bruno Haible  <bruno@clisp.org>
50189
50190         New module 'mbsinit'.
50191         * lib/wchar.in.h (mbsinit): New declaration.
50192         * lib/mbsinit.c: New file.
50193         * m4/mbsinit.m4: New file.
50194         * modules/mbsinit: New file.
50195         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50196         HAVE_MBSINIT.
50197         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50198         HAVE_MBSINIT.
50199         * doc/posix-functions/mbsinit.texi: Document the new module.
50200
50201 2008-12-16  Bruno Haible  <bruno@clisp.org>
50202
50203         * lib/unistd.in.h: Add comment.
50204         * tests/test-environ.c: Don't include <stdlib.h>.
50205
50206 2008-12-16  Bruno Haible  <bruno@clisp.org>
50207
50208         * lib/parse-duration.h (parse_duration): Document return value
50209         convention.
50210         * lib/parse-duration.c: Include specification header first. Add
50211         comments.
50212         (_): Remove macro.
50213         (parse_year_month_day, parse_hour_minute_second): Move side effects
50214         outside of strchr call.
50215         (parse_non_iso8601): Move side effects outside of isspace call.
50216         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50217         call.
50218
50219 2008-12-16  Bruno Haible  <bruno@clisp.org>
50220
50221         * tests/test-parse-duration.sh: Produce no output when the test
50222         succeeds.
50223
50224 2008-12-16  Bruno Haible  <bruno@clisp.org>
50225
50226         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50227         expressions.
50228
50229 2008-12-15  Bruno Haible  <bruno@clisp.org>
50230
50231         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50232         * doc/glibc-functions/flistxattr.texi: Likewise.
50233         * doc/glibc-functions/fopencookie.texi: Likewise.
50234         * doc/glibc-functions/fremovexattr.texi: Likewise.
50235         * doc/glibc-functions/fsetxattr.texi: Likewise.
50236         * doc/glibc-functions/getxattr.texi: Likewise.
50237         * doc/glibc-functions/lgetxattr.texi: Likewise.
50238         * doc/glibc-functions/listxattr.texi: Likewise.
50239         * doc/glibc-functions/llistxattr.texi: Likewise.
50240         * doc/glibc-functions/lremovexattr.texi: Likewise.
50241         * doc/glibc-functions/lsetxattr.texi: Likewise.
50242         * doc/glibc-functions/removexattr.texi: Likewise.
50243         * doc/glibc-functions/setxattr.texi: Likewise.
50244         * doc/posix-functions/open_memstream.texi: Likewise.
50245
50246 2008-12-15  Eric Blake  <ebb9@byu.net>
50247
50248         Update doc for cygwin 1.7.
50249         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50250         functions.
50251         * doc/posix-functions/fchmodat.texi: Likewise.
50252         * doc/posix-functions/fchownat.texi: Likewise.
50253         * doc/posix-functions/fdopendir.texi: Likewise.
50254         * doc/posix-functions/fmemopen.texi: Likewise.
50255         * doc/posix-functions/freeaddrinfo.texi: Likewise.
50256         * doc/posix-functions/fstatat.texi: Likewise.
50257         * doc/posix-functions/futimens.texi: Likewise.
50258         * doc/posix-functions/gai_strerror.texi: Likewise.
50259         * doc/posix-functions/getaddrinfo.texi: Likewise.
50260         * doc/posix-functions/getnameinfo.texi: Likewise.
50261         * doc/posix-functions/if_freenameindex.texi: Likewise.
50262         * doc/posix-functions/if_indextoname.texi: Likewise.
50263         * doc/posix-functions/if_nameindex.texi: Likewise.
50264         * doc/posix-functions/if_nametoindex.texi: Likewise.
50265         * doc/posix-functions/insque.texi: Likewise.
50266         * doc/posix-functions/linkat.texi: Likewise.
50267         * doc/posix-functions/llrint.texi: Likewise.
50268         * doc/posix-functions/llrintf.texi: Likewise.
50269         * doc/posix-functions/llrintl.texi: Likewise.
50270         * doc/posix-functions/lockf.texi: Likewise.
50271         * doc/posix-functions/lrintl.texi: Likewise.
50272         * doc/posix-functions/mkdirat.texi: Likewise.
50273         * doc/posix-functions/mkfifoat.texi: Likewise.
50274         * doc/posix-functions/mknodat.texi: Likewise.
50275         * doc/posix-functions/mq_close.texi: Likewise.
50276         * doc/posix-functions/mq_getattr.texi: Likewise.
50277         * doc/posix-functions/mq_notify.texi: Likewise.
50278         * doc/posix-functions/mq_open.texi: Likewise.
50279         * doc/posix-functions/mq_receive.texi: Likewise.
50280         * doc/posix-functions/mq_send.texi: Likewise.
50281         * doc/posix-functions/mq_setattr.texi: Likewise.
50282         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50283         * doc/posix-functions/mq_timedsend.texi: Likewise.
50284         * doc/posix-functions/mq_unlink.texi: Likewise.
50285         * doc/posix-functions/open_memstream.texi: Likewise.
50286         * doc/posix-functions/openat.texi: Likewise.
50287         * doc/posix-functions/posix_fadvise.texi: Likewise.
50288         * doc/posix-functions/posix_fallocate.texi: Likewise.
50289         * doc/posix-functions/posix_madvise.texi: Likewise.
50290         * doc/posix-functions/posix_memalign.texi: Likewise.
50291         * doc/posix-functions/posix_openpt.texi: Likewise.
50292         * doc/posix-functions/readlinkat.texi: Likewise.
50293         * doc/posix-functions/remque.texi: Likewise.
50294         * doc/posix-functions/renameat.texi: Likewise.
50295         * doc/posix-functions/rintl.texi: Likewise.
50296         * doc/posix-functions/sem_unlink.texi: Likewise.
50297         * doc/posix-functions/shm_open.texi: Likewise.
50298         * doc/posix-functions/shm_unlink.texi: Likewise.
50299         * doc/posix-functions/signgam.texi: Likewise.
50300         * doc/posix-functions/sigset.texi: Likewise.
50301         * doc/posix-functions/stpcpy.texi: Likewise.
50302         * doc/posix-functions/stpncpy.texi: Likewise.
50303         * doc/posix-functions/strerror.texi: Likewise.
50304         * doc/posix-functions/strtod.texi: Likewise.
50305         * doc/posix-functions/symlinkat.texi: Likewise.
50306         * doc/posix-functions/unlinkat.texi: Likewise.
50307         * doc/posix-functions/utimensat.texi: Likewise.
50308         * doc/glibc-functions/bindresvport.texi: Likewise.
50309         * doc/glibc-functions/dn_expand.texi: Likewise.
50310         * doc/glibc-functions/exp10.texi: Likewise.
50311         * doc/glibc-functions/exp10f.texi: Likewise.
50312         * doc/glibc-functions/fgetxattr.texi: Likewise.
50313         * doc/glibc-functions/flistxattr.texi: Likewise.
50314         * doc/glibc-functions/fopencookie.texi: Likewise.
50315         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50316         * doc/glibc-functions/fremovexattr.texi: Likewise.
50317         * doc/glibc-functions/fsetxattr.texi: Likewise.
50318         * doc/glibc-functions/getifaddrs.texi: Likewise.
50319         * doc/glibc-functions/getxattr.texi: Likewise.
50320         * doc/glibc-functions/lgetxattr.texi: Likewise.
50321         * doc/glibc-functions/listxattr.texi: Likewise.
50322         * doc/glibc-functions/llistxattr.texi: Likewise.
50323         * doc/glibc-functions/lremovexattr.texi: Likewise.
50324         * doc/glibc-functions/lsetxattr.texi: Likewise.
50325         * doc/glibc-functions/pow10.texi: Likewise.
50326         * doc/glibc-functions/pow10f.texi: Likewise.
50327         * doc/glibc-functions/rcmd_af.texi: Likewise.
50328         * doc/glibc-functions/removexattr.texi: Likewise.
50329         * doc/glibc-functions/res_init.texi: Likewise.
50330         * doc/glibc-functions/res_mkquery.texi: Likewise.
50331         * doc/glibc-functions/res_query.texi: Likewise.
50332         * doc/glibc-functions/res_querydomain.texi: Likewise.
50333         * doc/glibc-functions/res_send.texi: Likewise.
50334         * doc/glibc-functions/rresvport_af.texi: Likewise.
50335         * doc/glibc-functions/setxattr.texi: Likewise.
50336         * doc/glibc-functions/strcasestr.texi: Likewise.
50337
50338 2008-12-15  Bruno Haible  <bruno@clisp.org>
50339
50340         Fix compilation error on OSF/1 4.0.
50341         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
50342         <sys/time.h>, simply delegate to the system header.
50343         Reported by Daniel Richard G. <oss@teragram.com>.
50344
50345 2008-12-15  Bruno Haible  <bruno@clisp.org>
50346
50347         * doc/posix-functions/openat.texi: Mention the 'openat' module.
50348         * doc/posix-functions/fchmodat.texi: Likewise.
50349         * doc/posix-functions/fchownat.texi: Likewise.
50350         * doc/posix-functions/fdopendir.texi: Likewise.
50351         * doc/posix-functions/fstatat.texi: Likewise.
50352         * doc/posix-functions/mkdirat.texi: Likewise.
50353         * doc/posix-functions/unlinkat.texi: Likewise.
50354
50355 2008-12-14  Bruno Haible  <bruno@clisp.org>
50356
50357         Update doc for POSIX:2008.
50358         * doc/posix-functions/faccessat.texi: New file.
50359         * doc/posix-functions/fchmodat.texi: New file.
50360         * doc/posix-functions/fchownat.texi: New file.
50361         * doc/posix-functions/fdopendir.texi: New file.
50362         * doc/posix-functions/fstatat.texi: New file.
50363         * doc/posix-functions/futimens.texi: New file.
50364         * doc/posix-functions/linkat.texi: New file.
50365         * doc/posix-functions/mkdirat.texi: New file.
50366         * doc/posix-functions/mkfifoat.texi: New file.
50367         * doc/posix-functions/mknodat.texi: New file.
50368         * doc/posix-functions/open_wmemstream.texi: New file.
50369         * doc/posix-functions/openat.texi: New file.
50370         * doc/posix-functions/psiginfo.texi: New file.
50371         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
50372         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
50373         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
50374         * doc/posix-functions/readlinkat.texi: New file.
50375         * doc/posix-functions/renameat.texi: New file.
50376         * doc/posix-functions/strerror_l.texi: New file.
50377         * doc/posix-functions/symlinkat.texi: New file.
50378         * doc/posix-functions/unlinkat.texi: New file.
50379         * doc/posix-functions/utimensat.texi: New file.
50380         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50381
50382 2008-12-14  Bruno Haible  <bruno@clisp.org>
50383
50384         Update doc for POSIX:2008.
50385         * doc/posix-functions/alphasort.texi: Renamed from
50386         doc/glibc-functions/alphasort.texi.
50387         * doc/posix-functions/dirfd.texi: Renamed from
50388         doc/glibc-functions/dirfd.texi.
50389         * doc/posix-functions/dprintf.texi: Renamed from
50390         doc/glibc-functions/dprintf.texi.
50391         * doc/posix-functions/duplocale.texi: Renamed from
50392         doc/glibc-functions/duplocale.texi.
50393         * doc/posix-functions/fexecve.texi: Renamed from
50394         doc/glibc-functions/fexecve.texi.
50395         * doc/posix-functions/fmemopen.texi: Renamed from
50396         doc/glibc-functions/fmemopen.texi.
50397         * doc/posix-functions/freelocale.texi: Renamed from
50398         doc/glibc-functions/freelocale.texi.
50399         * doc/posix-functions/getdate_err.texi: Renamed from
50400         doc/glibc-functions/getdate_err.texi.
50401         * doc/posix-functions/isalnum_l.texi: Renamed from
50402         doc/glibc-functions/isalnum_l.texi.
50403         * doc/posix-functions/isalpha_l.texi: Renamed from
50404         doc/glibc-functions/isalpha_l.texi.
50405         * doc/posix-functions/isblank_l.texi: Renamed from
50406         doc/glibc-functions/isblank_l.texi.
50407         * doc/posix-functions/iscntrl_l.texi: Renamed from
50408         doc/glibc-functions/iscntrl_l.texi.
50409         * doc/posix-functions/isdigit_l.texi: Renamed from
50410         doc/glibc-functions/isdigit_l.texi.
50411         * doc/posix-functions/isgraph_l.texi: Renamed from
50412         doc/glibc-functions/isgraph_l.texi.
50413         * doc/posix-functions/islower_l.texi: Renamed from
50414         doc/glibc-functions/islower_l.texi.
50415         * doc/posix-functions/isprint_l.texi: Renamed from
50416         doc/glibc-functions/isprint_l.texi.
50417         * doc/posix-functions/ispunct_l.texi: Renamed from
50418         doc/glibc-functions/ispunct_l.texi.
50419         * doc/posix-functions/isspace_l.texi: Renamed from
50420         doc/glibc-functions/isspace_l.texi.
50421         * doc/posix-functions/isupper_l.texi: Renamed from
50422         doc/glibc-functions/isupper_l.texi.
50423         * doc/posix-functions/iswalnum_l.texi: Renamed from
50424         doc/glibc-functions/iswalnum_l.texi.
50425         * doc/posix-functions/iswalpha_l.texi: Renamed from
50426         doc/glibc-functions/iswalpha_l.texi.
50427         * doc/posix-functions/iswblank_l.texi: Renamed from
50428         doc/glibc-functions/iswblank_l.texi.
50429         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50430         doc/glibc-functions/iswcntrl_l.texi.
50431         * doc/posix-functions/iswctype_l.texi: Renamed from
50432         doc/glibc-functions/iswctype_l.texi.
50433         * doc/posix-functions/iswdigit_l.texi: Renamed from
50434         doc/glibc-functions/iswdigit_l.texi.
50435         * doc/posix-functions/iswgraph_l.texi: Renamed from
50436         doc/glibc-functions/iswgraph_l.texi.
50437         * doc/posix-functions/iswlower_l.texi: Renamed from
50438         doc/glibc-functions/iswlower_l.texi.
50439         * doc/posix-functions/iswprint_l.texi: Renamed from
50440         doc/glibc-functions/iswprint_l.texi.
50441         * doc/posix-functions/iswpunct_l.texi: Renamed from
50442         doc/glibc-functions/iswpunct_l.texi.
50443         * doc/posix-functions/iswspace_l.texi: Renamed from
50444         doc/glibc-functions/iswspace_l.texi.
50445         * doc/posix-functions/iswupper_l.texi: Renamed from
50446         doc/glibc-functions/iswupper_l.texi.
50447         * doc/posix-functions/iswxdigit_l.texi: Renamed from
50448         doc/glibc-functions/iswxdigit_l.texi.
50449         * doc/posix-functions/isxdigit_l.texi: Renamed from
50450         doc/glibc-functions/isxdigit_l.texi.
50451         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
50452         doc/glibc-functions/mbsnrtowcs.texi.
50453         * doc/posix-functions/mkdtemp.texi: Renamed from
50454         doc/glibc-functions/mkdtemp.texi.
50455         * doc/posix-functions/newlocale.texi: Renamed from
50456         doc/glibc-functions/newlocale.texi.
50457         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
50458         doc/glibc-functions/nl_langinfo_l.texi.
50459         * doc/posix-functions/open_memstream.texi: Renamed from
50460         doc/glibc-functions/open_memstream.texi.
50461         * doc/posix-functions/opterr.texi: Renamed from
50462         doc/glibc-functions/opterr.texi.
50463         * doc/posix-functions/optind.texi: Renamed from
50464         doc/glibc-functions/optind.texi.
50465         * doc/posix-functions/optopt.texi: Renamed from
50466         doc/glibc-functions/optopt.texi.
50467         * doc/posix-functions/psignal.texi: Renamed from
50468         doc/glibc-functions/psignal.texi.
50469         * doc/posix-functions/scandir.texi: Renamed from
50470         doc/glibc-functions/scandir.texi.
50471         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
50472         doc/glibc-functions/sched_get_priority_min.texi.
50473         * doc/posix-functions/signgam.texi: Renamed from
50474         doc/glibc-functions/signgam.texi.
50475         * doc/posix-functions/stpcpy.texi: Renamed from
50476         doc/glibc-functions/stpcpy.texi.
50477         * doc/posix-functions/stpncpy.texi: Renamed from
50478         doc/glibc-functions/stpncpy.texi.
50479         * doc/posix-functions/strcasecmp_l.texi: Renamed from
50480         doc/glibc-functions/strcasecmp_l.texi.
50481         * doc/posix-functions/strcoll_l.texi: Renamed from
50482         doc/glibc-functions/strcoll_l.texi.
50483         * doc/posix-functions/strfmon_l.texi: Renamed from
50484         doc/glibc-functions/strfmon_l.texi.
50485         * doc/posix-functions/strftime_l.texi: Renamed from
50486         doc/glibc-functions/strftime_l.texi.
50487         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50488         doc/glibc-functions/strncasecmp_l.texi.
50489         * doc/posix-functions/strndup.texi: Renamed from
50490         doc/glibc-functions/strndup.texi.
50491         * doc/posix-functions/strnlen.texi: Renamed from
50492         doc/glibc-functions/strnlen.texi.
50493         * doc/posix-functions/strsignal.texi: Renamed from
50494         doc/glibc-functions/strsignal.texi.
50495         * doc/posix-functions/strxfrm_l.texi: Renamed from
50496         doc/glibc-functions/strxfrm_l.texi.
50497         * doc/posix-functions/timer_gettime.texi: Renamed from
50498         doc/glibc-functions/timer_gettime.texi.
50499         * doc/posix-functions/tolower_l.texi: Renamed from
50500         doc/glibc-functions/tolower_l.texi.
50501         * doc/posix-functions/toupper_l.texi: Renamed from
50502         doc/glibc-functions/toupper_l.texi.
50503         * doc/posix-functions/towctrans_l.texi: Renamed from
50504         doc/glibc-functions/towctrans_l.texi.
50505         * doc/posix-functions/towlower_l.texi: Renamed from
50506         doc/glibc-functions/towlower_l.texi.
50507         * doc/posix-functions/towupper_l.texi: Renamed from
50508         doc/glibc-functions/towupper_l.texi.
50509         * doc/posix-functions/uselocale.texi: Renamed from
50510         doc/glibc-functions/uselocale.texi.
50511         * doc/posix-functions/vdprintf.texi: Renamed from
50512         doc/glibc-functions/vdprintf.texi.
50513         * doc/posix-functions/wcpcpy.texi:
50514         Renamed from doc/glibc-functions/wcpcpy.texi.
50515         * doc/posix-functions/wcpncpy.texi: Renamed from
50516         doc/glibc-functions/wcpncpy.texi.
50517         * doc/posix-functions/wcscasecmp.texi: Renamed from
50518         doc/glibc-functions/wcscasecmp.texi.
50519         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50520         doc/glibc-functions/wcscasecmp_l.texi.
50521         * doc/posix-functions/wcscoll_l.texi: Renamed from
50522         doc/glibc-functions/wcscoll_l.texi.
50523         * doc/posix-functions/wcsdup.texi: Renamed from
50524         doc/glibc-functions/wcsdup.texi.
50525         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50526         doc/glibc-functions/wcsncasecmp.texi.
50527         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50528         doc/glibc-functions/wcsncasecmp_l.texi.
50529         * doc/posix-functions/wcsnlen.texi: Renamed from
50530         doc/glibc-functions/wcsnlen.texi.
50531         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50532         doc/glibc-functions/wcsnrtombs.texi.
50533         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50534         doc/glibc-functions/wcsxfrm_l.texi.
50535         * doc/posix-functions/wctrans_l.texi: Renamed from
50536         doc/glibc-functions/wctrans_l.texi.
50537         * doc/posix-functions/wctype_l.texi: Renamed from
50538         doc/glibc-functions/wctype_l.texi.
50539         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50540         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50541         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50542         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50543         these subsections.
50544         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50545         Remove sections.
50546
50547 2008-12-14  Bruno Haible  <bruno@clisp.org>
50548
50549         Update doc for POSIX:2008.
50550         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50551
50552 2008-12-14  Bruno Haible  <bruno@clisp.org>
50553
50554         Update doc for POSIX:2008.
50555         * doc/pastposix-functions/bcmp.texi: Renamed from
50556         doc/posix-functions/bcmp.texi.
50557         * doc/pastposix-functions/bcopy.texi: Renamed from
50558         doc/posix-functions/bcopy.texi.
50559         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50560         doc/posix-functions/bsd_signal.texi.
50561         * doc/pastposix-functions/bzero.texi: Renamed from
50562         doc/posix-functions/bzero.texi.
50563         * doc/pastposix-functions/ecvt.texi: Renamed from
50564         doc/posix-functions/ecvt.texi.
50565         * doc/pastposix-functions/fcvt.texi: Renamed from
50566         doc/posix-functions/fcvt.texi.
50567         * doc/pastposix-functions/ftime.texi: Renamed from
50568         doc/posix-functions/ftime.texi.
50569         * doc/pastposix-functions/gcvt.texi: Renamed from
50570         doc/posix-functions/gcvt.texi.
50571         * doc/pastposix-functions/getcontext.texi: Renamed from
50572         doc/posix-functions/getcontext.texi.
50573         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50574         doc/posix-functions/gethostbyaddr.texi.
50575         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50576         doc/posix-functions/gethostbyname.texi.
50577         * doc/pastposix-functions/getwd.texi: Renamed from
50578         doc/posix-functions/getwd.texi.
50579         * doc/pastposix-functions/h_errno.texi: Renamed from
50580         doc/posix-functions/h_errno.texi.
50581         * doc/pastposix-functions/index.texi: Renamed from
50582         doc/posix-functions/index.texi.
50583         * doc/pastposix-functions/makecontext.texi: Renamed from
50584         doc/posix-functions/makecontext.texi.
50585         * doc/pastposix-functions/mktemp.texi: Renamed from
50586         doc/posix-functions/mktemp.texi.
50587         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50588         doc/posix-functions/pthread_attr_getstackaddr.texi.
50589         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50590         doc/posix-functions/pthread_attr_setstackaddr.texi.
50591         * doc/pastposix-functions/rindex.texi: Renamed from
50592         doc/posix-functions/rindex.texi.
50593         * doc/pastposix-functions/scalb.texi: Renamed from
50594         doc/posix-functions/scalb.texi.
50595         * doc/pastposix-functions/setcontext.texi: Renamed from
50596         doc/posix-functions/setcontext.texi.
50597         * doc/pastposix-functions/swapcontext.texi: Renamed from
50598         doc/posix-functions/swapcontext.texi.
50599         * doc/pastposix-functions/ualarm.texi: Renamed from
50600         doc/posix-functions/ualarm.texi.
50601         * doc/pastposix-functions/usleep.texi: Renamed from
50602         doc/posix-functions/usleep.texi.
50603         * doc/pastposix-functions/vfork.texi: Renamed from
50604         doc/posix-functions/vfork.texi.
50605         * doc/pastposix-functions/wcswcs.texi: Renamed from
50606         doc/posix-functions/wcswcs.texi.
50607         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50608         (Function Substitutes): Update.
50609
50610 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50611
50612         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50613         m4/strerror.m4.
50614
50615 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50616             Bruno Haible  <bruno@clisp.org>
50617
50618         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50619
50620 2008-12-13  Bruno Haible  <bruno@clisp.org>
50621
50622         * modules/strtoull (Depends-on): Remove unistd.
50623
50624 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50625
50626         * modules/strtoull (Depends-on): Add stdlib.
50627
50628 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50629
50630         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50631
50632 2008-12-10  Jim Meyering  <meyering@redhat.com>
50633
50634         gl_ASSERT: don't say assertions are disabled when they're not
50635         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50636         "checking whether to enable assertions... no", when they are in
50637         fact enabled.  This is solely a bug in the output of configure.
50638         In spite of saying "no", NDEBUG was not defined in that case.
50639         Also, as noted by Eric Blake, leave assertions enabled upon
50640         --enable-assert=INVALID.
50641
50642 2008-12-10  Bruno Haible  <bruno@clisp.org>
50643
50644         Change MODULES.html to refer to POSIX:2008 where possible.
50645         * MODULES.html.sh (POSIX2008_URL): New variable.
50646         (posix_headers): Remove sys/timeb, ucontext.
50647         (posix2001_headers): New variable.
50648         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50649         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50650         index, makecontext, mktemp, pthread_attr_getstackaddr,
50651         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50652         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50653         (posix2001_functions): New variable.
50654         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50655         otherwise.
50656
50657 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50658
50659         add missing include to parse-duration.c
50660         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50661         * modules/parse-duration (Depends-on): Add xalloc.
50662
50663         fix sed script reading maint.mk
50664         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50665         (syntax-check-rules): Use it.
50666
50667 2008-12-09  Bruno Haible  <bruno@clisp.org>
50668
50669         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50670         MacOS X 10.4/PowerPC.
50671         Reported by Simon Josefsson.
50672
50673 2008-12-08  Jim Meyering  <meyering@redhat.com>
50674
50675         work around mingw's lack of some S_IF definitions
50676         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50677         Reported by Simon Josefsson.
50678
50679 2008-12-08  Bruno Haible  <bruno@clisp.org>
50680
50681         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50682         applied to variables. Needed on MacOS X 10.4/PowerPC.
50683         Reported by Simon Josefsson.
50684
50685 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50686         and Eric Blake  <ebb9@byu.net>
50687
50688         assert: honor --enable-assert
50689         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50690         order to honor --enable-assert, rather than treating it as a
50691         synonym for --disable-assert.
50692
50693 2008-12-08  Jim Meyering  <meyering@redhat.com>
50694
50695         * lib/posixtm.c: Remove now-useless declaration of mktime.
50696
50697         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50698
50699 2008-12-07  Bruno Haible  <bruno@clisp.org>
50700
50701         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50702         test_once): Mark functions as static.
50703         * tests/test-tls.c (test_tls): Likewise.
50704
50705 2008-12-07  Bruno Haible  <bruno@clisp.org>
50706
50707         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50708         iconv_register_autodetect.
50709
50710 2008-12-07  Jim Meyering  <meyering@redhat.com>
50711
50712         posixtm.c: avoid a warning
50713         * lib/posixtm.c (posixtime): Don't initialize tm0.
50714         It's no longer needed to placate gcc4's -Wuninitialized,
50715         and the attempt to placate would elicit a new warning.
50716
50717         unicodeio.c: mark unused parameters
50718         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50719         (fallback_failure_callback): Likewise.
50720
50721 2008-12-07  Bruno Haible  <bruno@clisp.org>
50722
50723         * gnulib-tool (func_create_testdir): When building the tests
50724         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50725         Reported by Simon Josefsson.
50726
50727 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50728
50729         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50730
50731 2008-12-06  Bruno Haible  <bruno@clisp.org>
50732
50733         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50734         Suggested by Eric Blake.
50735
50736 2008-12-06  Bruno Haible  <bruno@clisp.org>
50737
50738         Fix a c-stack test failure on MacOS X.
50739         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50740         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50741         handler for SIGBUS as well.
50742         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50743         install a signal handler for SIGBUS as well.
50744         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50745
50746 2008-12-06  Bruno Haible  <bruno@clisp.org>
50747
50748         Advocacy documentation.
50749         * doc/gnulib-intro.texi (Benefits): New section.
50750         * doc/gnulib.texi: Update.
50751
50752 2008-12-06  Bruno Haible  <bruno@clisp.org>
50753
50754         Document the 'manywarnings' module.
50755         * doc/manywarnings.texi: New file.
50756         * doc/gnulib.texi: Include it.
50757
50758 2008-12-05  Eric Blake  <ebb9@byu.net>
50759
50760         tests: silence some gcc warnings
50761         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50762         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50763         type mismatches.
50764
50765 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50766             Bruno Haible  <bruno@clisp.org>
50767
50768         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50769
50770 2008-11-29  Jim Meyering  <meyering@redhat.com>
50771
50772         unicodeio.c: mark unused parameters
50773         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50774         (fallback_failure_callback): Likewise.
50775
50776         fts: fix a thinko
50777         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50778         (set_stat_type): Return S_IF*-valued "type" directly.
50779         Prompted by James Youngman's spotting a related bug.
50780         Confirmed by further testing through find.
50781
50782         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50783         * lib/fts.c (D_TYPE): Define.
50784         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50785         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50786         (s_ifmt_shift_bits): New function.
50787         (set_stat_type): New function.
50788         (fts_build): When not calling fts_stat, call set_stat_type
50789         to propagate dirent.d_type info to fts_read caller.
50790         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50791         fts_statp->st_mode type information may be valid.
50792
50793 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50794
50795         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50796         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50797         <sds@gnu.org>.
50798
50799 2008-11-20  Bruno Haible  <bruno@clisp.org>
50800
50801         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50802         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50803         INCLUDE_NEXT.
50804         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50805         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50806         * modules/math (Makefile.am): Substitute
50807         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50808         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50809
50810 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50811             Bruno Haible  <bruno@clisp.org>
50812
50813         * lib/stdint.in.h: Define all type macros so that their expansion is
50814         a single typedef'ed token. Fixes a compilation failure in Boost which
50815         does "using ::int8_t;".
50816
50817 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50818
50819         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50820         gl_MANYWARN_ALL_GCC.
50821         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50822         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50823         * modules/manywarnings: New file.
50824         * MODULES.html.sh: Mention manywarnings module.
50825
50826 2008-11-18  Bruno Haible  <bruno@clisp.org>
50827
50828         * doc/gnulib-tool.texi (Unit tests): New section.
50829
50830 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50831
50832         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50833         paths like 'lib/po/foo.po'.
50834
50835 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50836
50837         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50838         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50839
50840 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50841
50842         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50843         parameter works.
50844
50845 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50846
50847         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50848
50849 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50850
50851         * modules/parse-duration-tests: New file.
50852         * tests/test-parse-duration.sh: New file.
50853         * tests/test-parse-duration.c: New file.
50854
50855         New module 'parse-duration'.
50856         * lib/parse-duration.h: New file.
50857         * lib/parse-duration.c: New file.
50858         * modules/parse-duration: New file.
50859
50860 2008-11-17  Bruno Haible  <bruno@clisp.org>
50861
50862         * tests/test-select-out.sh: Comment out the first pipe test.
50863         Reported by Simon Josefsson.
50864
50865 2008-11-17  Bruno Haible  <bruno@clisp.org>
50866
50867         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50868         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50869         gl_HOSTENT.
50870
50871 2008-11-17  Bruno Haible  <bruno@clisp.org>
50872
50873         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50874         -lnetwork and -lnet. Needed for Haiku and BeOS.
50875
50876 2008-11-16  Bruno Haible  <bruno@clisp.org>
50877
50878         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50879
50880 2008-11-16  Bruno Haible  <bruno@clisp.org>
50881
50882         Avoid test failure on Haiku.
50883         * tests/test-fsync.c: Include <errno.h>.
50884         (main): Don't require that fsync (0) fails.
50885
50886 2008-11-15  Bruno Haible  <bruno@clisp.org>
50887
50888         New module 'hostent'.
50889         * modules/hostent: New file.
50890         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50891
50892 2008-11-15  Bruno Haible  <bruno@clisp.org>
50893
50894         New module 'servent'.
50895         * modules/servent: New file.
50896         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50897
50898 2008-11-15  Bruno Haible  <bruno@clisp.org>
50899
50900         Avoid generating same test program with two different rules.
50901         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50902         test-frexp to test-frexp-nolibm.
50903         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50904         test-frexpl to test-frexpl-nolibm.
50905
50906 2008-11-15  Bruno Haible  <bruno@clisp.org>
50907
50908         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50909         $(FREXPL_LIBM).
50910
50911 2008-11-15  Bruno Haible  <bruno@clisp.org>
50912
50913         * lib/netdb.in.h: Activate the definitions also when the system's
50914         <netdb.h> has 'struct addrinfo'.
50915         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50916         EAI_OVERFLOW or AI_NUMERICSERV.
50917         * doc/posix-headers/netdb.texi: Document the problem.
50918
50919 2008-11-15  Bruno Haible  <bruno@clisp.org>
50920
50921         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50922
50923         Make the 'sched' module work on platforms where <sched.h> exists but
50924         is incomplete (such as Haiku).
50925         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50926         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50927         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50928         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50929         HAVE_STRUCT_SCHED_PARAM.
50930         * modules/sched (Depends-on): Add include_next.
50931         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50932         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50933         * doc/posix-headers/sched.texi: Document the issue.
50934
50935 2008-11-13  Jim Meyering  <meyering@redhat.com>
50936
50937         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50938         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50939         test would fail due to the difference in the Report bugs to ...
50940         line.  The expected address is empty, "<>", while the actual
50941         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50942
50943 2008-11-12  Bruno Haible  <bruno@clisp.org>
50944
50945         lstat: don't compile lstat.c on systems lacking lstat
50946         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50947         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50948         Reported by Daniel P. Berrange via Jim Meyering.
50949
50950 2008-11-12  Jim Meyering  <meyering@redhat.com>
50951
50952         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50953
50954 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50955
50956         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50957         instead.
50958
50959 2008-11-12  Bruno Haible  <bruno@clisp.org>
50960
50961         * lib/unicodeio.c: Include unistr.h.
50962         (utf8_wctomb): Remove function.
50963         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50964
50965 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50966
50967         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50968         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50969         <bruno@clisp.org>.
50970         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50971
50972 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50973
50974         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50975         * doc/gnulib.texi: Add section for warnings.
50976
50977 2008-11-11  Bruno Haible  <bruno@clisp.org>
50978
50979         * lib/sockets.h: Add a comment.
50980
50981 2008-11-11  Karl Berry  <karl@gnu.org>
50982
50983         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50984
50985 2008-11-11  Eric Blake  <ebb9@byu.net>
50986
50987         fdl.texi: avoid git symlinks
50988         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50989
50990 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50991
50992         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50993
50994 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50995
50996         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50997         (gl_WARN_ADD): Substitute $2 if literal.
50998
50999 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51000
51001         * m4/warning.m4: Remove.
51002
51003 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51004
51005         * m4/warnings.m4: Almost complete rewrite. :-)
51006
51007 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51008
51009         * modules/warnings: New module.
51010         * m4/warnings.m4: New file.
51011         * MODULES.html.sh: Mention warnings module.
51012         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51013         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51014
51015 2008-11-10  Eric Blake  <ebb9@byu.net>
51016
51017         fdl.texi: make a symlink to the latest version
51018         * doc/standards.texi: Revert today's earlier change.
51019         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51020         * doc/fdl.texi: ...and replace this with a symlink to the newer
51021         fdl-1.3.texi.
51022
51023 2008-11-10  Bruno Haible  <bruno@clisp.org>
51024
51025         * tests/test-select-fd.c (main): Accept the result file name as fourth
51026         argument.
51027         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51028         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51029
51030 2008-11-10  Bruno Haible  <bruno@clisp.org>
51031
51032         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51033         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51034         as autoconf-substituted macros.
51035         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51036         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51037         gl_NETDB_H_DEFAULTS. Set these variables.
51038         * modules/netdb (Makefile.am): Substitute these variables.
51039
51040 2008-11-10  Eric Blake  <ebb9@byu.net>
51041
51042         standards.texi: include correct file for FDL 1.3
51043         * doc/standards.texi (GNU Free Documentation License): Change
51044         include file to pull in FDL 1.3, not 1.2.
51045
51046         fdl.texi: revert accidental change to license
51047         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51048
51049 2008-11-10  Bruno Haible  <bruno@clisp.org>
51050
51051         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51052         cross-compiling guesses also when the native compile gives no result.
51053
51054 2008-11-10  Bruno Haible  <bruno@clisp.org>
51055
51056         * lib/spawni.c (__spawni): Force variable into the stack.
51057
51058 2008-11-10  Bruno Haible  <bruno@clisp.org>
51059
51060         Add support for Haiku.
51061         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51062         glibc and BeOS, but also on Haiku.
51063         * lib/fpurge.c (fpurge): Likewise.
51064         * lib/freadable.c (freadable): Likewise.
51065         * lib/freadahead.c (freadahead): Likewise.
51066         * lib/freading.c (freading): Likewise.
51067         * lib/freadptr.c (freadptr): Likewise.
51068         * lib/freadseek.c (freadptrinc): Likewise.
51069         * lib/fseeko.c (rpl_fseeko): Likewise.
51070         * lib/fseterr.c (fseterr): Likewise.
51071         * lib/fwritable.c (fwritable): Likewise.
51072         * lib/fwriting.c (fwriting): Likewise.
51073         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51074
51075 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51076
51077         * lib/config.charset: Treat Haiku like BeOS.
51078
51079 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51080
51081         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51082         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51083
51084 2008-11-08  Bruno Haible  <bruno@clisp.org>
51085
51086         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51087         AC_CACHE_CHECK.
51088
51089 2008-11-08  Bruno Haible  <bruno@clisp.org>
51090
51091         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51092
51093 2008-11-08  Bruno Haible  <bruno@clisp.org>
51094
51095         * tests/test-select-fd.c: New file.
51096         * tests/test-select-in.sh: New file.
51097         * tests/test-select-out.sh: New file.
51098         * tests/test-select-stdin.c: New file.
51099         * modules/select-tests (Files): Add the new files.
51100         (Depends-on): Add gettimeofday.
51101         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51102         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51103         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51104
51105 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51106             Bruno Haible  <bruno@clisp.org>
51107
51108         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51109
51110 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51111
51112         * build-aux/pmccabe2html: Added support for C++ source files.
51113
51114 2008-11-05  Ben Pfaff  <blp@gnu.org>
51115
51116         Fix lib/close.c build on Windows.
51117         * modules/close (Files): Add lib/w32sock.h.
51118
51119 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51120
51121         Accept Bison's NEWS format.
51122         * build-aux/announce-gen (print_news_deltas): Tweak
51123         $re_prefix.
51124
51125 2008-11-04  Bruno Haible  <bruno@clisp.org>
51126
51127         * modules/random_r (Maintainer): Add glibc.
51128
51129 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51130
51131         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51132         by karl@freefriends.org (Karl Berry).
51133         * doc/alloca.texi: Likewise.
51134         * doc/c-ctype.texi: Likewise.
51135         * doc/c-strcase.texi: Likewise.
51136         * doc/c-strcaseeq.texi: Likewise.
51137         * doc/c-strcasestr.texi: Likewise.
51138         * doc/c-strstr.texi: Likewise.
51139         * doc/c-strtod.texi: Likewise.
51140         * doc/c-strtold.texi: Likewise.
51141         * doc/ctime.texi: Likewise.
51142         * doc/error.texi: Likewise.
51143         * doc/fdl.texi: Likewise.
51144         * doc/gcd.texi: Likewise.
51145         * doc/getdate.texi: Likewise.
51146         * doc/gnulib-intro.texi: Likewise.
51147         * doc/gnulib-tool.texi: Likewise.
51148         * doc/gnulib.texi: Likewise.
51149         * doc/inet_ntoa.texi: Likewise.
51150         * doc/maintain.texi: Likewise.
51151         * doc/make-stds.texi: Likewise.
51152         * doc/quote.texi: Likewise.
51153         * doc/regexprops-generic.texi: Likewise.
51154         * doc/standards.texi: Likewise.
51155         * doc/verify.texi: Likewise.
51156         * doc/visibility.texi: Likewise.
51157         * doc/gnulib.texi (GNU Free Documentation License): Include
51158         fdl-1.3.texi instead of fdl.texi.
51159
51160 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51161
51162         * doc/fdl-1.3.texi: New file, from
51163         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51164         * modules/fdl-1.3: Add.
51165         * MODULES.html.sh: Add fdl-1.3.
51166
51167 2008-11-03  Bruno Haible  <bruno@clisp.org>
51168
51169         Make determination of absolute name of header file work with AIX xlc.
51170         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51171         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51172         preprocessing.
51173         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51174         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51175
51176 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51177
51178         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51179         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51180         <ludo@gnu.org>.
51181
51182 2008-11-02  Bruno Haible  <bruno@clisp.org>
51183
51184         Mark 'strpbrk' obsolete.
51185         * modules/strpbrk (Status, Notice): New sections.
51186         * modules/strtok_r (Depends-on): Add strpbrk.
51187
51188 2008-11-02  Bruno Haible  <bruno@clisp.org>
51189
51190         Mark 'strdup' obsolete.
51191         * modules/strdup (Status, Notice): New sections.
51192         * modules/findprog (Depends-on): Add strdup.
51193         * modules/getaddrinfo (Depends-on): Likewise.
51194         * modules/localename (Depends-on): Likewise.
51195         * modules/relocatable-lib (Depends-on): Likewise.
51196         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51197         * modules/relocatable-prog (Depends-on): Likewise.
51198         * modules/trim (Depends-on): Likewise.
51199         * modules/unictype/gen-ctype (Depends-on): Likewise.
51200         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51201
51202 2008-11-02  Bruno Haible  <bruno@clisp.org>
51203
51204         Mark 'strcspn' obsolete.
51205         * modules/strcspn (Status, Notice): New sections.
51206
51207 2008-11-02  Bruno Haible  <bruno@clisp.org>
51208
51209         Mark 'rmdir' obsolete.
51210         * modules/rmdir (Status, Notice): New sections.
51211         * modules/clean-temp (Depends-on): Add rmdir.
51212         * modules/openat (Depends-on): Likewise.
51213
51214 2008-11-02  Bruno Haible  <bruno@clisp.org>
51215
51216         Mark 'raise' obsolete.
51217         * modules/raise (Status, Notice): New sections.
51218         (Include): Specify <signal.h>.
51219         * modules/stdio (Depends-on): Add raise.
51220         * modules/write (Depends-on): Likewise.
51221
51222 2008-11-02  Bruno Haible  <bruno@clisp.org>
51223
51224         Mark 'memset' obsolete.
51225         * modules/memset (Status, Notice): New sections.
51226
51227 2008-11-02  Bruno Haible  <bruno@clisp.org>
51228
51229         Mark 'memmove' obsolete.
51230         * modules/memmove (Status, Notice): New sections.
51231         * modules/argp (Depends-on): Add memmove.
51232         * modules/argz (Depends-on): Likewise.
51233         * modules/canonicalize (Depends-on): Likewise.
51234         * modules/canonicalize-lgpl (Depends-on): Likewise.
51235         * modules/fts (Depends-on): Likewise.
51236         * modules/getcwd (Depends-on): Likewise.
51237         * modules/human (Depends-on): Likewise.
51238         * modules/regex (Depends-on): Likewise.
51239         * modules/striconveh (Depends-on): Likewise.
51240         * modules/trim (Depends-on): Likewise.
51241         * modules/unistr/u8-move (Depends-on): Likewise.
51242         * modules/unistr/u16-move (Depends-on): Likewise.
51243         * modules/unistr/u32-move (Depends-on): Likewise.
51244
51245 2008-11-02  Bruno Haible  <bruno@clisp.org>
51246
51247         Mark 'memcpy' obsolete.
51248         * modules/memcpy (Status, Notice): New sections.
51249
51250 2008-11-02  Bruno Haible  <bruno@clisp.org>
51251
51252         Mark 'memcmp' obsolete.
51253         * modules/memcmp (Status, Notice): New sections.
51254         * modules/argmatch (Depends-on): Add memchr.
51255         * modules/backupfile (Depends-on): Likewise.
51256         * modules/c-strcasestr (Depends-on): Likewise.
51257         * modules/crypto/des (Depends-on): Likewise.
51258         * modules/csharpcomp (Depends-on): Likewise.
51259         * modules/fnmatch (Depends-on): Likewise.
51260         * modules/git-merge-changelog (Depends-on): Likewise.
51261         * modules/isnand (Depends-on): Likewise.
51262         * modules/isnand-nolibm (Depends-on): Likewise.
51263         * modules/isnanf (Depends-on): Likewise.
51264         * modules/isnanf-nolibm (Depends-on): Likewise.
51265         * modules/isnanl (Depends-on): Likewise.
51266         * modules/isnanl-nolibm (Depends-on): Likewise.
51267         * modules/mbchar (Depends-on): Likewise.
51268         * modules/memcoll (Depends-on): Likewise.
51269         * modules/quotearg (Depends-on): Likewise.
51270         * modules/regex (Depends-on): Likewise.
51271         * modules/relocatable-prog (Depends-on): Likewise.
51272         * modules/same (Depends-on): Likewise.
51273         * modules/signbit (Depends-on): Likewise.
51274         * modules/strcasestr-simple (Depends-on): Likewise.
51275         * modules/unictype/gen-ctype (Depends-on): Likewise.
51276         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51277         * modules/uniname/uniname (Depends-on): Likewise.
51278         * modules/unistr/u8-cmp (Depends-on): Likewise.
51279
51280 2008-11-02  Bruno Haible  <bruno@clisp.org>
51281
51282         Mark 'memchr' obsolete.
51283         * modules/memchr (Status, Notice): New sections.
51284         * modules/argp (Depends-on): Add memchr.
51285         * modules/base64 (Depends-on): Likewise.
51286         * modules/c-strcasestr (Depends-on): Likewise.
51287         * modules/chdir-long (Depends-on): Likewise.
51288         * modules/fnmatch (Depends-on): Likewise.
51289         * modules/getsubopt (Depends-on): Likewise.
51290         * modules/git-merge-changelog (Depends-on): Likewise.
51291         * modules/glob (Depends-on): Likewise.
51292         * modules/strcasestr-simple (Depends-on): Likewise.
51293         * modules/strnlen (Depends-on): Likewise.
51294
51295 2008-11-02  Bruno Haible  <bruno@clisp.org>
51296
51297         Mark 'atexit' obsolete.
51298         * modules/atexit (Status, Notice): New sections.
51299         * modules/chdir-long (Depends-on): Add atexit.
51300         * modules/wait-process (Depends-on): Likewise.
51301
51302 2008-11-02  Bruno Haible  <bruno@clisp.org>
51303
51304         * gnulib-tool: New option --with-obsolete.
51305         (func_usage): Document it.
51306         (func_modules_transitive_closure): Drop obsolete dependencies if
51307         incobsolete is not true.
51308         (func_import): Read and save the incobsolete variable to the cache.
51309
51310 2008-11-02  Bruno Haible  <bruno@clisp.org>
51311
51312         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51313         * gnulib-tool: New option --extract-status.
51314         (func_usage): Document it.
51315         (sed_extract_prog): Recognize it.
51316         (func_get_status): New function.
51317
51318 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51319
51320         * modules/sockets (License): Change from LGPL to LGPLv2+.
51321
51322 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51323
51324         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51325
51326 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51327
51328         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51329         Mention times and sys_times.
51330         * modules/sys_times, modules/sys_times-tests: New modules.
51331         * modules/times, modules/times-tests: Likewise
51332         * m4/sys_times_h.m4: New file.
51333         * lib/sys_times.in.h: Likewise
51334         * lib/times.c: Likewise.
51335         * tests/test-sys_times.c: Likewise.
51336         * tests/test-times.c: Likewise.
51337         * doc/posix-headers/sys_times.texi: Update.
51338         * doc/posix-functions/times.texi: Update.
51339
51340 2008-10-28  Jim Meyering  <meyering@redhat.com>
51341
51342         * modules/tempname (Depends-on): Add lstat.
51343
51344         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
51345
51346 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51347
51348         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
51349         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
51350         using idiom used elsewhere in gnulib.
51351
51352 2008-10-27  Jim Meyering  <meyering@redhat.com>
51353
51354         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
51355
51356 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51357
51358         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
51359         TESTS_ENVIRONMENT, for shell scripts that needs to call built
51360         programs.
51361         * tests/test-argp-2.sh: Use $EXEEXT when needed.
51362
51363 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51364
51365         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
51366
51367 2008-10-27  Bruno Haible  <bruno@clisp.org>
51368
51369         * tests/test-lstat.c: Include <stdio.h>.
51370
51371 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51372
51373         * modules/lstat-tests: New module.
51374         * tests/test-lstat.c: New file.
51375
51376 2008-10-26  Jim Meyering  <meyering@redhat.com>
51377
51378         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
51379
51380 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51381             Bruno Haible  <bruno@clisp.org>
51382
51383         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
51384         * modules/configmake (Include): Add a note that the include must come
51385         after all system headers.
51386         * lib/javaversion.c: Include configmake.h after all other includes.
51387
51388 2008-10-26  Bruno Haible  <bruno@clisp.org>
51389
51390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51391         HAVE_STRUCT_RANDOM_DATA to 1.
51392         (gl_STDLIB_H): Simplify.
51393
51394 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51395
51396         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51397         substitute HAVE_STRUCT_RANDOM_DATA.
51398         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51399         random_data.
51400         * modules/stdlib (Makefile.am): Substitute
51401         HAVE_STRUCT_RANDOM_DATA.
51402
51403 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51404
51405         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
51406         * doc/gnulib-intro.texi (Copyright): Likewise.
51407
51408 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51409
51410         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
51411         findings.
51412
51413 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
51414             Bruno Haible  <bruno@clisp.org>
51415
51416         * lib/unistd.in.h: Include <winsock2.h>.
51417         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
51418         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
51419         Provide dummy declarations.
51420         (gethostname): Override.
51421         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
51422         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
51423         gl_PREREQ_SYS_H_WINSOCK2.
51424         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
51425         * doc/posix-functions/gethostname.texi: More details.
51426
51427 2008-10-25  Bruno Haible  <bruno@clisp.org>
51428
51429         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51430         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51431         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51432
51433         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51434         here ...
51435         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51436         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
51437         gl_UNISTD_H_DEFAULTS.
51438
51439 2008-10-25  Eric Blake  <ebb9@byu.net>
51440
51441         signbit: avoid spurious compiler failure
51442         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
51443         declarations inside function.
51444
51445 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51446             Bruno Haible  <bruno@clisp.org>
51447
51448         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
51449         * modules/random_r (Depends-on): Add stdint.
51450
51451 2008-10-24  Bruno Haible  <bruno@clisp.org>
51452
51453         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
51454         Eggert.
51455         * modules/strerror (License): Likewise.
51456
51457 2008-10-24  Jim Meyering  <meyering@redhat.com>
51458
51459         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
51460         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
51461
51462 2008-10-24  Eric Blake  <ebb9@byu.net>
51463
51464         getgroups: fix compilation when getgroups is available
51465         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
51466         but with <config.h> override of getgroups disabled.
51467
51468 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51469
51470         * doc/gnulib.texi (Header files): Add note about C++ problems.
51471         Explained by Bruno Haible <bruno@clisp.org>.
51472
51473 2008-10-23  Bruno Haible  <bruno@clisp.org>
51474
51475         Define a dummy SA_NODEFER macro on Interix.
51476         * lib/signal.in.h (SA_NODEFER): Define fallback.
51477         Reported by Aleksey Cheusov <cheusov@tut.by> via
51478         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
51479
51480 2008-10-23  Bruno Haible  <bruno@clisp.org>
51481
51482         * modules/freadahead (License): Change to LGPLv2+.
51483         Suggested by Simon Josefsson.
51484
51485 2008-10-23  Jim Meyering  <meyering@redhat.com>
51486
51487         random_r: new module
51488         * modules/random_r: New file.
51489         * m4/random_r.m4: New file.
51490         * lib/random_r.c: New file, from glibc.
51491         * modules/random_r-tests: New file.
51492         * tests/test-random_r.c: New file.
51493         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51494          Declare.
51495         (RAND_MAX): Define.
51496         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51497         * modules/stdlib: Substitute them, too.
51498         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51499         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51500         * doc/glibc-functions/random_r.texi: Likewise.
51501         * doc/glibc-functions/setstate_r.texi: Likewise.
51502         * doc/glibc-functions/srandom_r.texi: Likewise.
51503         * config/srclist.txt: Mention it.
51504
51505 2008-10-23  David Lutterkort  <lutter@redhat.com>
51506
51507         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51508         link requirement
51509
51510 2008-10-23  Jim Meyering  <meyering@redhat.com>
51511
51512         selinux-h: mark parameters of stub functions as intentionally unused
51513         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51514         * lib/se-context.in.h: Likewise.
51515
51516 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51517
51518         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51519
51520 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51521
51522         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51523
51524 2008-10-22  Eric Blake  <ebb9@byu.net>
51525
51526         glthread/thread: avoid compiler warning
51527         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51528         Add unreachable abort to silence compiler.
51529
51530 2008-10-22  Eric Blake  <ebb9@byu.net>
51531
51532         netdb: also supply struct addrinfo for cygwin 1.5.x
51533         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51534         older cygwin.
51535         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51536         cygwin.
51537         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51538
51539 2008-10-22  Bruno Haible  <bruno@clisp.org>
51540
51541         * users.txt: Update entry about pspp.
51542
51543 2008-10-21  Bruno Haible  <bruno@clisp.org>
51544
51545         Simplification.
51546         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51547         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51548
51549         Simplification.
51550         * lib/ioctl.c (ioctl): Don't undefine.
51551         * lib/socket.c (socket): Don't undefine.
51552
51553         Remove unused module indicator macros.
51554         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51555         GNULIB_$1 as a C macro.
51556
51557         * doc/posix-functions/close.texi: Undo last change.
51558         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51559         Windows platforms.
51560
51561 2008-10-21  Bruno Haible  <bruno@clisp.org>
51562
51563         Add gethostname() declaration to <unistd.h>.
51564         * lib/unistd.in.h (gethostname): New declaration.
51565         * lib/gethostname.c: Include <unistd.h>.
51566         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51567         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51569         and HAVE_GETHOSTNAME.
51570         * modules/gethostname (Depends-on): Add unistd.
51571         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51572         (Include): Specify <unistd.h>.
51573         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51574         HAVE_GETHOSTNAME.
51575         * tests/test-gethostname.c: Include <unistd.h> first.
51576
51577 2008-10-21  Bruno Haible  <bruno@clisp.org>
51578
51579         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51580         * modules/select-tests (Depends-on): Likewise.
51581         Reported by Simon Josefsson.
51582
51583 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51584
51585         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51586         * lib/accept.c: New file, based on winsock.c.
51587         * lib/bind.c: New file, based on winsock.c.
51588         * lib/connect.c: New file, based on winsock.c.
51589         * lib/getpeername.c: New file, based on winsock.c.
51590         * lib/getsockname.c: New file, based on winsock.c.
51591         * lib/getsockopt.c: New file, based on winsock.c.
51592         * lib/ioctl.c: New file, based on winsock.c.
51593         * lib/listen.c: New file, based on winsock.c.
51594         * lib/recv.c: New file, based on winsock.c.
51595         * lib/recvfrom.c: New file, based on winsock.c.
51596         * lib/send.c: New file, based on winsock.c.
51597         * lib/sendto.c: New file, based on winsock.c.
51598         * lib/setsockopt.c: New file, based on winsock.c.
51599         * lib/shutdown.c: New file, based on winsock.c.
51600         * lib/socket.c: New file, based on winsock.c.
51601         * lib/w32sock.h: New file, based on winsock.c.
51602         * lib/winsock.c: Remove file.
51603         * modules/accept: Likewise.
51604         * modules/bind: Likewise.
51605         * modules/connect: Likewise.
51606         * modules/getpeername: Likewise.
51607         * modules/getsockname: Likewise.
51608         * modules/getsockopt: Likewise.
51609         * modules/ioctl: Likewise.
51610         * modules/listen: Likewise.
51611         * modules/recv: Likewise.
51612         * modules/recvfrom: Likewise.
51613         * modules/send: Likewise.
51614         * modules/sendto: Likewise.
51615         * modules/setsockopt: Likewise.
51616         * modules/shutdown: Likewise.
51617         * modules/socket: Use socket.c instead of winsock.c.
51618         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51619         * doc/posix-functions/accept.texi: Doc fix.
51620         * doc/posix-functions/bind.texi: Doc fix.
51621         * doc/posix-functions/close.texi: Doc fix.
51622         * doc/posix-functions/connect.texi: Doc fix.
51623         * doc/posix-functions/getpeername.texi: Doc fix.
51624         * doc/posix-functions/getsockname.texi: Doc fix.
51625         * doc/posix-functions/getsockopt.texi: Doc fix.
51626         * doc/posix-functions/ioctl.texi: Doc fix.
51627         * doc/posix-functions/listen.texi: Doc fix.
51628         * doc/posix-functions/recv.texi: Doc fix.
51629         * doc/posix-functions/recvfrom.texi: Doc fix.
51630         * doc/posix-functions/send.texi: Doc fix.
51631         * doc/posix-functions/sendto.texi: Doc fix.
51632         * doc/posix-functions/setsockopt.texi: Doc fix.
51633         * doc/posix-functions/shutdown.texi: Doc fix.
51634         * doc/posix-functions/socket.texi: Doc fix.
51635
51636 2008-10-20  Bruno Haible  <bruno@clisp.org>
51637
51638         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51639         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51640         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51641         as an alias for SIGABRT.
51642         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51643         (sigaction): Map it to SIGABRT.
51644         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51645
51646 2008-10-20  Bruno Haible  <bruno@clisp.org>
51647
51648         * lib/fts.c: Don't include lstat.h.
51649         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51650
51651         Move the lstat() declaration to <sys/stat.h>.
51652         * lib/lstat.h: Remove file.
51653         * lib/sys_stat.in.h: Add special invocation convention.
51654         (lstat): New declaration.
51655         * lib/lstat.c (orig_lstat): New function.
51656         (rpl_lstat): Use orig_lstat instead of lstat.
51657         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51658         AC_C_INLINE. Set REPLACE_LSTAT.
51659         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51660         and REPLACE_LSTAT.
51661         * modules/lstat (Files): Remove lib/lstat.h.
51662         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51663         (Include): Specify <sys/stat.h> instead of lstat.h.
51664         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51665         REPLACE_LSTAT.
51666         * NEWS: Mention the change.
51667
51668 2008-10-20  Bruno Haible  <bruno@clisp.org>
51669
51670         * modules/posix_spawn-tests: New file.
51671         * tests/test-posix_spawn3.c: New file.
51672
51673 2008-10-20  Bruno Haible  <bruno@clisp.org>
51674
51675         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51676         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51677         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51678         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51679         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51680
51681 2008-10-20  Bruno Haible  <bruno@clisp.org>
51682
51683         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51684         of posix_spawn on AIX 5.3.
51685
51686 2008-10-20  Bruno Haible  <bruno@clisp.org>
51687
51688         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51689
51690 2008-10-20  Bruno Haible  <bruno@clisp.org>
51691
51692         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51693         of AC_LANG_PROGRAM.
51694
51695 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51696
51697         * lib/netdb.in.h: Don't define GNU specific constants until they
51698         are supported or needed.  Reported by Bruno Haible
51699         <bruno@clisp.org>.
51700
51701 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51702
51703         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51704
51705 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51706
51707         * lib/getaddrinfo.h: Remove file.
51708         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51709         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51710         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51711         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51712         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51713         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51714         * tests/test-getaddrinfo.c: Likewise.
51715         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51716         * NEWS: Mention change.
51717
51718 2008-10-19  Bruno Haible  <bruno@clisp.org>
51719
51720         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51721
51722 2008-10-19  Bruno Haible  <bruno@clisp.org>
51723
51724         * lib/wait-process.c: Include simply <sys/wait.h>.
51725         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51726         WIFSTOPPED): Remove fallback definitions.
51727         * modules/wait-process (Depends-on): Add sys_wait.
51728
51729         New module 'sys_wait'.
51730         * modules/sys_wait: New file.
51731         * lib/sys_wait.in.h: New file, partially copied from
51732         lib/wait-process.c.
51733         * m4/sys_wait_h.m4: New file.
51734         * doc/posix-headers/sys_wait.texi: Mention the new module.
51735
51736 2008-10-19  Bruno Haible  <bruno@clisp.org>
51737
51738         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51739
51740 2008-10-19  Bruno Haible  <bruno@clisp.org>
51741
51742         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51743         * lib/wait-process.c (WAIT_T): Remove type.
51744         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51745         (wait_subprocess): Update.
51746
51747 2008-10-19  Bruno Haible  <bruno@clisp.org>
51748
51749         New module 'atoll'.
51750         * modules/atoll: New file.
51751         * lib/stdlib.in.h (atoll): New declaration.
51752         * lib/atoll.c: New file, from glibc with modifications.
51753         * m4/atoll.m4: New file.
51754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51755         HAVE_ATOLL.
51756         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51757         * doc/posix-functions/atoll.texi: Mention the new module.
51758
51759 2008-10-19  Bruno Haible  <bruno@clisp.org>
51760
51761         Add strtoull() declaration to <stdlib.h>.
51762         * lib/stdlib.in.h (strtoull): New declaration.
51763         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51764         Set HAVE_STRTOULL.
51765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51766         HAVE_STRTOULL.
51767         * modules/strtoull (Depends-on): Add stdlib.
51768         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51769         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51770         HAVE_STRTOULL.
51771
51772 2008-10-19  Bruno Haible  <bruno@clisp.org>
51773
51774         Add strtoll() declaration to <stdlib.h>.
51775         * lib/stdlib.in.h (strtoll): New declaration.
51776         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51777         Set HAVE_STRTOLL.
51778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51779         HAVE_STRTOLL.
51780         * modules/strtoll (Depends-on): Add stdlib.
51781         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51782         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51783
51784 2008-10-19  Bruno Haible  <bruno@clisp.org>
51785
51786         * modules/bcopy (Depends-on): Add strings.
51787         (Include): Specify <strings.h>.
51788
51789 2008-10-19  Bruno Haible  <bruno@clisp.org>
51790
51791         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51792
51793 2008-10-19  Bruno Haible  <bruno@clisp.org>
51794
51795         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51796         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51797         mingw.
51798
51799 2008-10-19  Bruno Haible  <bruno@clisp.org>
51800
51801         * lib/atanl.c: Don't include isnanl.h.
51802         * lib/cosl.c: Likewise.
51803         * lib/ldexpl.c: Likewise.
51804         * lib/logl.c: Likewise.
51805         * lib/sinl.c: Likewise.
51806         * lib/sqrtl.c: Likewise.
51807         * lib/tanl.c: Likewise.
51808
51809         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51810         * lib/isnanf.h: Remove file.
51811         * lib/isnand.h: Remove file.
51812         * lib/isnanl.h: Remove file.
51813         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51814         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51815         macros.
51816         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51817         HAVE_ISNANF, don't define it as a C macro.
51818         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51819         HAVE_ISNAND, don't define it as a C macro.
51820         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51821         HAVE_ISNANL, don't define it as a C macro.
51822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51823         HAVE_ISNAN[FDL].
51824         * modules/isnanf (Files): Remove lib/isnanf.h.
51825         (Depends-on): Add math.
51826         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51827         (Include): Specify <math.h> instead of isnanf.h.
51828         * modules/isnand (Files): Remove lib/isnand.h.
51829         (Depends-on): Add math.
51830         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51831         (Include): Specify <math.h> instead of isnand.h.
51832         * modules/isnanl (Files): Remove lib/isnanl.h.
51833         (Depends-on): Add math.
51834         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51835         (Include): Specify <math.h> instead of isnanl.h.
51836         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51837         HAVE_ISNAN[FDL].
51838         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51839         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51840         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51841         * NEWS: Mention the change.
51842
51843 2008-10-18  Bruno Haible  <bruno@clisp.org>
51844
51845         Add getusershell(), setusershell(), endusershell() declarations to
51846         <unistd.h>.
51847         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51848         declarations.
51849         * lib/getusershell.c: Include unistd.h.
51850         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51851         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51852         HAVE_GETUSERSHELL.
51853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51854         and HAVE_GETUSERSHELL.
51855         * modules/getusershell (Depends-on): Add unistd, extensions.
51856         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51857         (Include): Specify <unistd.h>.
51858         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51859         HAVE_GETUSERSHELL.
51860
51861 2008-10-18  Bruno Haible  <bruno@clisp.org>
51862
51863         Add a getloadavg() declaration to <stdlib.h>.
51864         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51865         getloadavg declaration.
51866         (getloadavg): New declaration.
51867         * lib/getloadavg.c: Include <stdlib.h> first.
51868         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51869         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51870         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51872         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51873         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51874         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51875         (Include): Specify <stdlib.h>.
51876         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51877         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51878
51879 2008-10-18  Bruno Haible  <bruno@clisp.org>
51880
51881         * lib/dirchownmod.c: Don't include lchmod.h.
51882
51883         Move the lchmod() declaration to <sys/stat.h>.
51884         * lib/lchmod.h: Remove file.
51885         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51886         (lchmod): New declaration, moved here from lib/lchown.h.
51887         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51888         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51889         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51890         and HAVE_LCHMOD.
51891         * modules/lchmod (Files): Remove lib/lchmod.h.
51892         (Depends-on): Add sys_stat, extensions.
51893         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51894         (Include): Specify <sys/stat.h> instead of lchmod.h.
51895         * modules/sys_stat (Depends-on): Add link-warning.
51896         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51897         definition of GL_LINK_WARNING.
51898         * NEWS: Mention the change.
51899
51900 2008-10-18  Bruno Haible  <bruno@clisp.org>
51901
51902         * lib/fchdir.c: Don't include dirfd.h.
51903         * lib/fts.c: Likewise.
51904         * lib/getcwd.c: Likewise.
51905         * lib/glob.c: Likewise.
51906
51907         Move the dirfd() declaration to <dirent.h>.
51908         * lib/dirfd.h: Remove file.
51909         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51910         (dirfd): New declaration.
51911         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51912         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51913         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51914         HAVE_DECL_DIRFD.
51915         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51916         HAVE_DECL_DIRFD.
51917         * modules/dirfd (Files): Remove lib/dirfd.h.
51918         (Depends-on): Add dirent, extensions.
51919         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51920         (Include): Specify <dirent.h> instead of dirfd.h.
51921         * modules/dirent (Depends-on): Add link-warning.
51922         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51923         definition of GL_LINK_WARNING.
51924         * NEWS: Mention the change.
51925
51926 2008-10-18  Bruno Haible  <bruno@clisp.org>
51927
51928         Move the euidaccess() declaration to <unistd.h>.
51929         * lib/euidaccess.h: Remove file.
51930         * lib/unistd.in.h (euidaccess): New declaration.
51931         * lib/euidaccess.c: Don't include euidaccess.h.
51932         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51933         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51935         and HAVE_EUIDACCESS.
51936         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51937         (Depends-on): Add unistd.
51938         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51939         (Include): Specify <unistd.h> instead of euidaccess.h.
51940         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51941         HAVE_EUIDACCESS.
51942         * NEWS: Mention the change.
51943
51944 2008-10-18  Bruno Haible  <bruno@clisp.org>
51945
51946         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51947
51948         Move the getdomainname() declaration to <unistd.h>.
51949         * lib/getdomainname.h: Remove file.
51950         * lib/unistd.in.h (getdomainname): New declaration.
51951         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51952         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51953         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51954         HAVE_GETDOMAINNAME.
51955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51956         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51957         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51958         (Depends-on): Add unistd, extensions.
51959         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51960         (Includes): Specify <unistd.h> instead of getdomainname.h.
51961         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51962         HAVE_GETDOMAINNAME.
51963         * NEWS: Mention the change.
51964
51965 2008-10-18  Bruno Haible  <bruno@clisp.org>
51966
51967         * modules/dirent: New file.
51968         * m4/dirent_h.m4: New file.
51969         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51970         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51971         * modules/fchdir (Files): Remove lib/dirent.in.h.
51972         (Depends-on): Add dirent.
51973         (Makefile.am): Move rules to modules/dirent.
51974         * doc/posix-headers/dirent.texi: Mention the new module.
51975
51976 2008-10-18  Bruno Haible  <bruno@clisp.org>
51977
51978         Avoid -Wunused-parameter warnings in public gnulib header files.
51979         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51980         macro.
51981         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51982
51983 2008-10-18  Bruno Haible  <bruno@clisp.org>
51984
51985         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51986         * doc/glibc-functions/error.texi: Mention the module 'error'.
51987         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51988         * doc/glibc-functions/getdomainname.texi: Mention the module
51989         'getdomainname'.
51990         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51991         * doc/glibc-functions/getpagesize.texi: Mention the module
51992         'getpagesize'.
51993         * doc/glibc-functions/getusershell.texi: Mention the module
51994         'getusershell'.
51995         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51996         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51997         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51998         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51999         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52000         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52001         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52002         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52003         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52004         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52005         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52006         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52007         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52008         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52009
52010 2008-10-17  Bruno Haible  <bruno@clisp.org>
52011
52012         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52013         HP-UX and IRIX, use -0.0L.
52014         * tests/test-ceill.c (minus_zero): Likewise.
52015         * tests/test-floorl.c (minus_zero): Likewise.
52016         * tests/test-frexpl.c (minus_zero): Likewise.
52017         * tests/test-isnan.c (minus_zerol): Likewise.
52018         * tests/test-isnanl.h (minus_zero): Likewise.
52019         * tests/test-ldexpl.c (minus_zero): Likewise.
52020         * tests/test-roundl.c (minus_zero): Likewise.
52021         * tests/test-signbit.c (minus_zerol): Likewise.
52022         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52023         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52024         * tests/test-truncl.c (minus_zero): Likewise.
52025         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52026         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52027         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52028         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52029
52030 2008-10-17  Bruno Haible  <bruno@clisp.org>
52031
52032         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52033         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52034         that it gets activated only for gcc >= 3.0.
52035         * lib/dirent.in.h: Likewise.
52036         * lib/errno.in.h: Likewise.
52037         * lib/fcntl.in.h: Likewise.
52038         * lib/float.in.h: Likewise.
52039         * lib/iconv.in.h: Likewise.
52040         * lib/inttypes.in.h: Likewise.
52041         * lib/locale.in.h: Likewise.
52042         * lib/math.in.h: Likewise.
52043         * lib/netdb.in.h: Likewise.
52044         * lib/netinet_in.in.h: Likewise.
52045         * lib/search.in.h: Likewise.
52046         * lib/signal.in.h: Likewise.
52047         * lib/spawn.in.h: Likewise.
52048         * lib/stdarg.in.h: Likewise.
52049         * lib/stdint.in.h: Likewise.
52050         * lib/stdio.in.h: Likewise.
52051         * lib/stdlib.in.h: Likewise.
52052         * lib/string.in.h: Likewise.
52053         * lib/strings.in.h: Likewise.
52054         * lib/sys_file.in.h: Likewise.
52055         * lib/sys_ioctl.in.h: Likewise.
52056         * lib/sys_select.in.h: Likewise.
52057         * lib/sys_socket.in.h: Likewise.
52058         * lib/sys_stat.in.h: Likewise.
52059         * lib/sys_time.in.h: Likewise.
52060         * lib/sysexits.in.h: Likewise.
52061         * lib/time.in.h: Likewise.
52062         * lib/unistd.in.h: Likewise.
52063         * lib/wchar.in.h: Likewise.
52064         * lib/wctype.in.h: Likewise.
52065         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52066
52067 2008-10-17  Jim Meyering  <meyering@redhat.com>
52068
52069         ignore-value: don't depend on inline module
52070         * modules/ignore-value (Depends-on): Remove 'inline'.
52071         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52072         Suggestion from Bruno Haible.
52073
52074 2008-10-17  Bruno Haible  <bruno@clisp.org>
52075
52076         New implementation of condition variables for Win32.
52077         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52078         (gl_linked_waitqueue_t): New type.
52079         (gl_cond_t): Use it.
52080         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52081         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52082         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52083         (glthread_cond_init_func, glthread_cond_wait_func,
52084         glthread_cond_timedwait_func, glthread_cond_signal_func,
52085         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52086         Reimplemented on the basis of gl_linked_waitqueue_t.
52087         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52088         gl_waitqueue_t.
52089         (gl_rwlock_t): Update.
52090         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52091
52092 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52093
52094         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52095         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52096
52097 2008-10-17  Jim Meyering  <meyering@redhat.com>
52098
52099         ignore-value: new module
52100         * modules/ignore-value: New file.
52101         * lib/ignore-value.h: New file.
52102         * MODULES.html.sh (Compiler warning management): New section,
52103         just for this module.  More to come.
52104
52105 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52106
52107         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52108         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52109         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52110
52111 2008-10-16  Jim Meyering  <meyering@redhat.com>
52112
52113         openat-die.c: avoid 'no previous prototype' warning
52114         * lib/openat-die.c: Include "openat.h".
52115         Reported by Reuben Thomas <rrt@sc3d.org>.
52116
52117 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52118
52119         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52120         * lib/netdb.in.h: Fix typo.
52121         Reported by Bruno Haible  <bruno@clisp.org>
52122
52123         * lib/netdb.in.h: Include sys/socket.h for platforms without
52124         netdb.h, to get structures like hostent on MinGW.
52125         * modules/netdb (Depends-on): Add sys_socket.
52126
52127 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52128
52129         * modules/netdb, modules/netdb-tests: New file.
52130         * m4/netdb_h.m4: New file.
52131         * lib/netdb.in.h: Add, currently just an empty file pending
52132         definitions.
52133         * tests/test-netdb.c: New file.
52134         * doc/posix-headers/netdb.texi: Mention that we replace it if
52135         needed.
52136         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52137         netdb.
52138
52139 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52140
52141         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52142         with code.
52143
52144 2008-10-13  Bruno Haible  <bruno@clisp.org>
52145
52146         * lib/glthread/cond.c (glthread_cond_wait_func,
52147         glthread_cond_timedwait_func): Add a comment.
52148
52149 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52150
52151         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52152         * tests/test-select.c: Likewise,
52153
52154 2008-10-13  Bruno Haible  <bruno@clisp.org>
52155
52156         * lib/glthread/cond.c (glthread_cond_wait_func,
52157         glthread_cond_timedwait_func): Fix variable name.
52158         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52159
52160 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52161
52162         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52163         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52164         struct sockaddr.sa_len.
52165         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52166
52167 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52168
52169         * build-aux/pmccabe2html: Add css and css_url parameters.
52170
52171 2008-10-12  Bruno Haible  <bruno@clisp.org>
52172
52173         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52174         calling aclx_get.
52175         Reported by Rainer Tammer <tammer@tammer.net>.
52176
52177 2008-10-12  Bruno Haible  <bruno@clisp.org>
52178
52179         Use msvcrt aware primitives for creation/termination of Win32 threads.
52180         * lib/glthread/thread.c: Include <process.h>.
52181         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52182         (wrapper_func): Update signature.
52183         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52184
52185 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52186             Bruno Haible  <bruno@clisp.org>
52187
52188         Provide a Win32 implementation of the 'cond' module.
52189         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52190         * lib/glthread/cond.c (glthread_cond_init_func,
52191         glthread_cond_wait_func, glthread_cond_timedwait_func,
52192         glthread_cond_signal_func, glthread_cond_broadcast_func,
52193         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52194         * modules/cond (Dependencies): Add gettimeofday.
52195
52196 2008-10-11  Bruno Haible  <bruno@clisp.org>
52197
52198         Make sleep work on older versions of mingw.
52199         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52200         only whether it exists.
52201         * doc/posix-functions/sleep.texi: Mention the problem with older
52202         versions of mingw.
52203
52204 2008-10-11  Bruno Haible  <bruno@clisp.org>
52205
52206         New module 'shutdown'.
52207         * modules/shutdown: New file.
52208         * lib/sys_socket.in.h (shutdown): New declaration.
52209         * lib/winsock.c (shutdown): New function.
52210         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52211         GNULIB_SHUTDOWN.
52212         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52213         * doc/posix-functions/shutdown.texi: Document the new module.
52214
52215 2008-10-11  Jim Meyering  <meyering@redhat.com>
52216
52217         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52218
52219 2008-10-11  Bruno Haible  <bruno@clisp.org>
52220
52221         New module 'fclose'.
52222         * modules/fclose: New file.
52223         * lib/stdio.in.h (fclose): New declaration.
52224         * lib/fclose.c: New file.
52225         * m4/fclose.m4: New file.
52226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52227         REPLACE_FCLOSE.
52228         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52229         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52230         REPLACE_FCLOSE.
52231         * modules/close (Depends-on): fclose.
52232         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52233
52234 2008-10-11  Bruno Haible  <bruno@clisp.org>
52235
52236         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52237         set errno and don't call _close.
52238
52239 2008-10-10  Bruno Haible  <bruno@clisp.org>
52240
52241         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52242         ACL, not afterwards. Fixes test failure on Cygwin.
52243
52244 2008-10-09  Ben Pfaff  <blp@gnu.org>
52245
52246         * build-aux/announce-gen: Fix gnulib version related part of usage
52247         message.  Die with a useful error message if no tarballs are
52248         found.
52249
52250 2008-10-10  Jim Meyering  <meyering@redhat.com>
52251
52252         bootstrap: use git's --depth=N option only if it's supported
52253         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52254         recognize the --depth option.  Reported by Pádraig Brady.
52255
52256 2008-10-09  Bruno Haible  <bruno@clisp.org>
52257
52258         New module 'ioctl'.
52259         * modules/ioctl: New file.
52260         * lib/sys_socket.in.h (ioctl): Remove declaration.
52261         * lib/winsock.c: Include <sys/ioctl.h>.
52262         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
52263         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52264         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
52265         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52266         * doc/posix-functions/ioctl.texi: Mention the new module.
52267
52268 2008-10-09  Bruno Haible  <bruno@clisp.org>
52269
52270         New module 'sys_ioctl'.
52271         * lib/sys_ioctl.in.h: New file.
52272         * m4/sys_ioctl_h.m4: New file.
52273         * modules/sys_ioctl: New file.
52274         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52275
52276 2008-10-09  Bruno Haible  <bruno@clisp.org>
52277
52278         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52279         * lib/winsock.c: Include <stdarg.h>.
52280         (rpl_ioctl): Change to second argument 'int' and then varargs.
52281
52282 2008-10-09  Bruno Haible  <bruno@clisp.org>
52283
52284         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52285         when the sys_socket module is present and the system has <winsock2.h>.
52286
52287 2008-10-09  Bruno Haible  <bruno@clisp.org>
52288
52289         * doc/posix-functions/close.texi: Mention module 'close' instead of
52290         module 'sys_socket'.
52291
52292 2008-10-09  Bruno Haible  <bruno@clisp.org>
52293
52294         * doc/glibc-headers/sys_ioctl.texi: New file.
52295         * doc/gnulib.texi: Include it.
52296
52297 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52298             Bruno Haible  <bruno@clisp.org>
52299
52300         Combine the two replacements of 'close'.
52301         * lib/sys_socket.in.h (close): Define to a reminder to include
52302         <unistd.h>.
52303         (_gl_close_fd_maybe_socket): New declaration.
52304         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52305         * lib/winsock.c (close): Remove undefinition.
52306         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52307         needed for the gnulib module 'close'.
52308         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52309         define to an error symbol or to a warning, if suitable.
52310         * lib/close.c: Include <sys/socket.h>.
52311         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52312         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52313         UNISTD_H_HAVE_WINSOCK2_H.
52314         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52316         UNISTD_H_HAVE_WINSOCK2_H.
52317         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52318         (configure.ac): Set a module indicator.
52319         (Makefile.am): Substitute GNULIB_CLOSE.
52320         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52321         * modules/poll-tests (Depends-on): Add close.
52322         * modules/select-tests (Depends-on): Likewise.
52323
52324 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52325             Bruno Haible  <bruno@clisp.org>
52326
52327         New module 'close'.
52328         * modules/close: New file.
52329         * lib/unistd.in.h (close): Move declaration out of the
52330         FCHDIR_REPLACEMENT scope.
52331         (_gl_unregister_fd): New declaration.
52332         * lib/close.c: New file.
52333         * lib/fchdir.c (rpl_close): Remove function.
52334         * m4/close.m4: New file.
52335         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52336         close.
52337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
52338         REPLACE_CLOSE.
52339         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
52340         REPLACE_CLOSE.
52341         * modules/fchdir (Depends-on): Add close.
52342
52343 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52344             Bruno Haible  <bruno@clisp.org>
52345
52346         * lib/fcntl.in.h (open): Simplify conditionals.
52347         (_gl_register_fd): New declaration.
52348         * lib/fchdir.c (rpl_open): Remove function.
52349         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
52350         also.
52351         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
52352         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52353         open.
52354
52355 2008-10-09  Jim Meyering  <meyering@redhat.com>
52356
52357         GNUmakefile: use the more name-space-friendly "_version"
52358         * top/GNUmakefile (_dummy): Update.
52359         (_version): Rename from "version".
52360
52361 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52362             Bruno Haible  <bruno@clisp.org>
52363
52364         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
52365         rpl_close.
52366         (_gl_register_fd): New function, extracted from rpl_open.
52367         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
52368         (rpl_open, rpl_opendir): Use _gl_register_fd.
52369
52370 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52371
52372         Fix organization of 'open' replacement.
52373         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
52374         (gl_FUNC_OPEN): Use it.
52375         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
52376
52377 2008-10-08  Bruno Haible  <bruno@clisp.org>
52378
52379         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
52380
52381 2008-10-08  Simon Josefsson  <simon@josefsson.org>
52382
52383         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
52384         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
52385         listen).
52386
52387 2008-10-08  Eric Blake  <ebb9@byu.net>
52388
52389         GNUmakefile: add 'make version' target
52390         * top/GNUmakefile (_curr-ver): Split version update rules...
52391         (version): ...into a target.
52392
52393 2008-10-07  Bruno Haible  <bruno@clisp.org>
52394
52395         Use a more portable replacement expression for -0.0L.
52396         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52397         instead of -0.0L. Fix m4 quotation.
52398
52399         * tests/test-signbit.c: Include <float.h>.
52400         (minus_zero): New variable.
52401         (test_signbitl): Use minus_zero instead of -zero.
52402         * modules/signbit-tests (Depends-on): Add float.
52403
52404         * tests/test-ceill.c: Include <float.h>.
52405         (zero): Remove variable.
52406         (minus_zero): New variable.
52407         (main): Use minus_zero instead of -zero.
52408         * modules/ceill-tests (Depends-on): Add float.
52409
52410         * tests/test-floorl.c: Include <float.h>.
52411         (zero): Remove variable.
52412         (minus_zero): New variable.
52413         (main): Use minus_zero instead of -zero.
52414         * modules/floorl-tests (Depends-on): Add float.
52415
52416         * tests/test-roundl.c: Include <float.h>.
52417         (zero): Remove variable.
52418         (minus_zero): New variable.
52419         (main): Use minus_zero instead of -zero.
52420         * modules/roundl-tests (Depends-on): Add float.
52421
52422         * tests/test-truncl.c: Include <float.h>.
52423         (zero): Remove variable.
52424         (minus_zero): New variable.
52425         (main): Use minus_zero instead of -zero.
52426         * modules/truncl-tests (Depends-on): Add float.
52427
52428         * tests/test-frexpl.c (zero): Remove variable.
52429         (minus_zero): New variable.
52430         (main): Use minus_zero instead of -zero.
52431         * modules/frexpl-tests (Depends-on): Add float.
52432
52433         * tests/test-isnan.c (zerol): Remove variable.
52434         (minus_zerol): New variable.
52435         (test_long_double): Use minus_zerol instead of -zerol.
52436         * modules/isnan-tests (Depends-on): Add float.
52437
52438         * tests/test-isnanl.h (zero): Remove variable.
52439         (minus_zero): New variable.
52440         (main): Use minus_zero instead of -zero.
52441         * modules/isnanl-nolibm-tests (Depends-on): Add float.
52442         * modules/isnanl-tests (Depends-on): Add float.
52443
52444         * tests/test-ldexpl.c (zero): Remove variable.
52445         (minus_zero): New variable.
52446         (main): Use minus_zero instead of -zero.
52447         * modules/ldexpl-tests (Depends-on): Add float.
52448
52449         * tests/test-snprintf-posix.h (zerol): Remove variable.
52450         (minus_zerol): New variable.
52451         (test_function): Use minus_zerol instead of -zerol.
52452         * modules/snprintf-posix-tests (Depends-on): Add float.
52453         * modules/vsnprintf-posix-tests (Depends-on): Add float.
52454
52455         * tests/test-sprintf-posix.h (zerol): Remove variable.
52456         (minus_zerol): New variable.
52457         (test_function): Use minus_zerol instead of -zerol.
52458         * modules/sprintf-posix-tests (Depends-on): Add float.
52459         * modules/vsprintf-posix-tests (Depends-on): Add float.
52460
52461         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
52462         (minus_zerol): New variable.
52463         (test_function): Use minus_zerol instead of -zerol.
52464         * modules/vasnprintf-posix-tests (Depends-on): Add float.
52465
52466         * tests/test-vasprintf-posix.c (zerol): Remove variable.
52467         (minus_zerol): New variable.
52468         (test_function): Use minus_zerol instead of -zerol.
52469         * modules/vasprintf-posix-tests (Depends-on): Add float.
52470
52471 2008-10-07  Simon Josefsson  <simon@josefsson.org>
52472
52473         * MODULES.html.sh (Support for building documentation): Mention
52474         pmccabe2html.  Sort entries.
52475
52476         Add pmccabe2html module, from gnupdf.
52477         * build-aux/pmccabe.css: New file.
52478         * build-aux/pmccabe2html: New file.
52479         * m4/pmccabe2html.m4: New file.
52480         * modules/pmccabe2html: New file.
52481
52482 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52483
52484         flock: new module
52485         * MODULES.html.sh: Add to list of modules.
52486         * lib/flock.c: flock implementation for Windows and Unix systems
52487         which have fcntl.
52488         * doc/glibc-functions/flock.texi: Update documentation.
52489         * lib/sys_file.in.h: <sys/file.h> header file.
52490         * m4/flock.m4: M4 macros.
52491         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52492         * modules/flock: flock module.
52493         * modules/flock-tests: flock tests module.
52494         * modules/sys_file: sys/file.h module.
52495         * tests/test-flock.c: test suite for flock.
52496
52497 2008-10-06  Jim Meyering  <meyering@redhat.com>
52498
52499         bootstrap: check for LT_INIT more portably still ;-)
52500         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52501         Spotted by Bruno Haible.
52502
52503 2008-10-06  Eric Blake  <ebb9@byu.net>
52504
52505         test-signbit: avoid tripping Irix cc bug on -0.0L
52506         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52507         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52508         entire testsuite consistent and avoids an Irix 6.2 bug.
52509
52510 2008-10-05  Bruno Haible  <bruno@clisp.org>
52511             Jim Meyering  <jim@meyering.net>
52512
52513         Add an option for ignoring EPIPE during close_stdout.
52514         * lib/closeout.h: Include <stdbool.h>.
52515         (close_stdout_set_ignore_EPIPE): New declaration.
52516         * lib/closeout.c: Include <stdbool.h>.
52517         (ignore_EPIPE): New variable.
52518         (close_stdout_set_ignore_EPIPE): New function.
52519         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52520         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52521         failure.
52522         * modules/closeout (Depends-on): Add stdbool.
52523
52524 2008-10-05  Bruno Haible  <bruno@clisp.org>
52525
52526         * modules/accept: New file.
52527         * modules/bind: New file.
52528         * modules/connect: New file.
52529         * modules/getpeername: New file.
52530         * modules/getsockname: New file.
52531         * modules/getsockopt: New file.
52532         * modules/listen: New file.
52533         * modules/recv: New file.
52534         * modules/recvfrom: New file.
52535         * modules/send: New file.
52536         * modules/sendto: New file.
52537         * modules/setsockopt: New file.
52538         * modules/socket: New file.
52539         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52540         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52541         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52542         the particular module is requested. Add a link warning when the
52543         particular module is not requested.
52544         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52545         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52546         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52547         the particular module is requested.
52548         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52549         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52550         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52551         * modules/sys_socket (Depends-on): Add link-warning.
52552         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52553         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52554         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52555         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52556         GL_LINK_WARNING.
52557         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52558         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52559         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52560         * doc/posix-functions/getpeername.texi: Mention the new module
52561         'getpeername'.
52562         * doc/posix-functions/getsockname.texi: Mention the new module
52563         'getsockname'.
52564         * doc/posix-functions/getsockopt.texi: Mention the new module
52565         'getsockopt'.
52566         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52567         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52568         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52569         * doc/posix-functions/send.texi: Mention the new module 'send'.
52570         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52571         * doc/posix-functions/setsockopt.texi: Mention the new module
52572         'setsockopt'.
52573         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52574         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52575         listen, connect, accept.
52576         * modules/select-tests (Depends-on): Likewise.
52577
52578 2008-10-05  Bruno Haible  <bruno@clisp.org>
52579
52580         * lib/winsock.c (strerror): Remove unused #undef.
52581         (rpl_close): Remove unused local variable.
52582
52583         * modules/sys_socket (Depends-on); Add errno.
52584
52585 2008-10-05  Bruno Haible  <bruno@clisp.org>
52586
52587         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52588         (select): Add a link warning when the 'select' module is not used.
52589         * modules/sys_select (Depends-on): Add link-warning.
52590         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52591         Suggested by Paolo Bonzini.
52592
52593 2008-10-05  Jim Meyering  <meyering@redhat.com>
52594
52595         bootstrap: check for LT_INIT more portably
52596         * build-aux/bootstrap: Avoid using grep -E, since it's not
52597         portable enough.  Suggestion from Bruno Haible.
52598
52599 2008-10-05  Bruno Haible  <bruno@clisp.org>
52600
52601         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52602         as being fixed by gnulib.
52603
52604 2008-10-05  Bruno Haible  <bruno@clisp.org>
52605
52606         * modules/select-tests: New file, mostly copied from
52607         modules/sys_select-tests.
52608         * tests/test-select.c: New file, mostly copied from
52609         tests/test-sys_select.c.
52610         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52611         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52612         (Makefile.am): Remove test_sys_select_LDADD.
52613
52614         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52615         to an undefined symbol, for an error message.
52616         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52617         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52618         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52619         winsock-select.c here.
52620         * modules/sys_select (Files): Remove lib/winsock-select.c.
52621         (Depends-on): Remove alloca.
52622         (Makefile.am): Substitute GNULIB_SELECT.
52623         * modules/select: New file.
52624         * doc/posix-functions/select.texi: Update.
52625
52626 2008-10-05  Bruno Haible  <bruno@clisp.org>
52627
52628         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52629         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52630         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52631         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52632         getdtablesize.
52633         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52634         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52635
52636 2008-10-05  Bruno Haible  <bruno@clisp.org>
52637
52638         * modules/getdtablesize-tests: New file.
52639         * tests/test-getdtablesize.c: New file.
52640
52641         New module 'getdtablesize'.
52642         * lib/unistd.in.h (getdtablesize): New declaration.
52643         * lib/getdtablesize.c: New file.
52644         * m4/getdtablesize.m4: New file.
52645         * modules/getdtablesize: New file.
52646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52647         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52648         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52649         HAVE_GETDTABLESIZE.
52650         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52651
52652 2008-10-05  Bruno Haible  <bruno@clisp.org>
52653
52654         * modules/sched (Makefile.am): Fix typo.
52655         Reported by Simon Josefsson.
52656
52657 2008-10-05  Jim Meyering  <meyering@redhat.com>
52658
52659         bootstrap: check for LT_INIT, too
52660         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52661         are deprecated.  Suggestion from Ralf Wildenhues.
52662
52663 2008-10-05  Bruno Haible  <bruno@clisp.org>
52664
52665         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52666         overriding them by ours.
52667         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52668
52669 2008-10-05  Jim Meyering  <meyering@redhat.com>
52670
52671         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52672         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52673         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52674
52675 2008-10-04  Bruno Haible  <bruno@clisp.org>
52676
52677         * modules/dup2 (License): Change to LGPLv2+.
52678         * modules/sleep (License): Likewise.
52679         * modules/perror (License): Likewise.
52680         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52681         Blake.
52682         * modules/signal (License): Likewise.
52683         * modules/sigprocmask (License): Likewise.
52684         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52685         Meyering.
52686
52687 2008-10-04  Bruno Haible  <bruno@clisp.org>
52688
52689         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52690         Reported by Rainer Tammer <tammer@tammer.net>.
52691
52692 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52693             Bruno Haible  <bruno@clisp.org>
52694
52695         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52696         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52697         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52698
52699 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52700
52701         filevercmp: new module
52702         * lib/filevercmp.h: New function filevercmp comparing version strings.
52703         * lib/filevercmp.c: Implementation of filevercmp function.
52704         * modules/filevercmp: Module metadata.
52705         * tests/test-filevercmp.c: Unit test for new module.
52706         * modules/filevercmp-tests: Unit test metadata.
52707         * MODULES.html.sh: Add filevercmp module.
52708
52709 2008-10-03  Bruno Haible  <bruno@clisp.org>
52710
52711         * lib/c-ctype.h: Add comment.
52712         Reported by Jim Meyering.
52713
52714 2008-10-02  Bruno Haible  <bruno@clisp.org>
52715
52716         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52717
52718 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52719
52720         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52721         name of bootstrap.conf accordingly.
52722
52723 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52724
52725         * build-aux/bootstrap: Install git-merge-changelog configuration
52726         items into .gitconfig if needed.
52727
52728 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52729
52730         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52731         git repository, and initialize/update it accordingly.
52732
52733 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52734
52735         * modules/fsync-tests: New file.
52736         * tests/test-fsync.c: New file.
52737
52738         New module 'fsync'.
52739         * lib/fsync.c: New file.
52740         * m4/fsync.m4: New file.
52741         * modules/fsync: New file.
52742         * lib/unistd.in.h (fsync): New declaration.
52743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52744         GNULIB_FSYNC and HAVE_FSYNC.
52745         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52746         * MODULES.html.sh (posix_functions): Add fsync.
52747         * doc/posix-functions/fsync.texi: Mention the new module.
52748
52749 2008-10-02  Jim Meyering  <meyering@redhat.com>
52750
52751         fts.c: sync with similar code from coreutils' remove.c
52752         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52753         Guard also with "#if defined __linux__", since for now at least,
52754         this code is Linux-kernel-specific.
52755
52756 2008-10-02  Jim Meyering  <meyering@redhat.com>
52757
52758         fts: bug fixes
52759         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52760         Include <sys/vfs.h>, not <sys/statfs.h>.
52761
52762         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52763         Include <sys/vfs.h>, not <sys/statfs.h>.
52764
52765 2008-10-01  Bruno Haible  <bruno@clisp.org>
52766
52767         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52768         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52769         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52770         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52771         * doc/posix-functions/posix_spawnp.texi: Likewise.
52772         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52773         whether posix_spawn actually works.
52774         * m4/pipe.m4 (gl_PIPE): Likewise.
52775         * modules/execute (Files): Add m4/posix_spawn.m4.
52776         * modules/pipe (Files): Add m4/posix_spawn.m4.
52777         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52778
52779 2008-10-01  Jim Meyering  <meyering@redhat.com>
52780
52781         remove trailing spaces
52782         * NEWS: Likewise.
52783         * lib/poll.c (poll): Likewise.
52784         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52785         * lib/winsock.c (rpl_close): Likewise.
52786         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52787         * modules/yield: Likewise.
52788         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52789         * tests/test-sys_select.c (connect_to_socket): Likewise.
52790
52791         fts.c: adjust a new interface to be more generally useful
52792         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52793         (fts_build): Adjust caller.
52794
52795 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52796
52797         * modules/cond-tests: New file.
52798         * tests/test-cond.c: New file.
52799
52800 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52801             Bruno Haible  <bruno@clisp.org>
52802
52803         * modules/cond (Dependencies): Add errno, time.
52804         * lib/glthread/cond.h: Include <time.h>.
52805         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52806         across platforms.
52807
52808 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52809             Bruno Haible  <bruno@clisp.org>
52810
52811         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52812
52813 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52814             Bruno Haible  <bruno@clisp.org>
52815
52816         * modules/tls-tests (Depends-on): Add thread, yield.
52817         (configure.ac): Remove all checks.
52818         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52819         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52820         gl_thread_self): Remove definitions. Include glthread/thread.h and
52821         glthread/yield.h instead.
52822         (test_tls): Pass an additional NULL argument to gl_thread_join.
52823
52824 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52825             Bruno Haible  <bruno@clisp.org>
52826
52827         * modules/lock-tests (Depends-on): Add thread, yield.
52828         (configure.ac): Remove all checks.
52829         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52830         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52831         gl_thread_self): Remove definitions. Include glthread/thread.h and
52832         glthread/yield.h instead.
52833         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52834         additional NULL argument to gl_thread_join.
52835
52836 2008-09-30  Bruno Haible  <bruno@clisp.org>
52837
52838         Fix the Win32 implementation of the 'thread' module.
52839         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52840         pointer type.
52841         (gl_thread_self): Invoke gl_thread_self_func.
52842         (gl_thread_self_func): New declaration.
52843         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52844         (do_init_self_key, init_self_key): New functions.
52845         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52846         Remove some fields.
52847         (running_threads, running_lock): Remove variables.
52848         (get_current_thread_handle): New function.
52849         (gl_thread_self_func, wrapper_func, glthread_create_func,
52850         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52851         simplified.
52852
52853 2008-09-30  Bruno Haible  <bruno@clisp.org>
52854
52855         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52856         files.
52857
52858 2008-09-30  Jim Meyering  <meyering@redhat.com>
52859
52860         fts.m4: correct the test for statfs.f_type
52861         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52862         when checking for statfs.f_type.
52863
52864 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52865
52866         tests: avoid some compiler warnings
52867         * tests/test-memchr.c (main): Pass NULL indirectly.
52868         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52869
52870 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52871
52872         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52873         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52874         exactly specified dayshifts.
52875         (dayshift): New rule.
52876         (rel): Add dayshift.
52877         (relative_time_table) [tomorrow, yesterday, today, now]:
52878         Use tDAY_SHIFT in place of tDAY_UNIT.
52879         * tests/test-getdate.c: Add tests for now-disallowed countable
52880         dayshifts, e.g., "4 yesterday ago".
52881
52882 2008-09-29  Bruno Haible  <bruno@clisp.org>
52883
52884         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52885         * tests/test-posix_spawn1.in.sh: Renamed from
52886         tests/test-posix_spawn.in.sh.
52887         * tests/test-posix_spawn2.c: New file.
52888         * tests/test-posix_spawn2.in.sh: New file.
52889         * modules/posix_spawnp-tests (Files): Update.
52890         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52891
52892 2008-09-29  Bruno Haible  <bruno@clisp.org>
52893
52894         Propagate effects of putenv/setenv/unsetenv to child processes.
52895         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52896         * lib/pipe.c (create_pipe): Likewise.
52897
52898 2008-09-29  Bruno Haible  <bruno@clisp.org>
52899
52900         Enable use of shell scripts as executables in mingw.
52901         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52902         run the program as a shell script.
52903         * lib/pipe.c (create_pipe): Likewise.
52904         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52905         resulting array.
52906
52907 2008-09-29  Eric Blake  <ebb9@byu.net>
52908
52909         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52910
52911 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52912
52913         * doc/posix-functions/accept.texi: Update mingw problems.
52914         * doc/posix-functions/bind.texi: Update mingw problems.
52915         * doc/posix-functions/close.texi: Update mingw problems.
52916         * doc/posix-functions/connect.texi: Update mingw problems.
52917         * doc/posix-functions/getpeername.texi: Update mingw problems.
52918         * doc/posix-functions/getsockname.texi: Update mingw problems.
52919         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52920         * doc/posix-functions/ioctl.texi: Update mingw problems.
52921         * doc/posix-functions/listen.texi: Update mingw problems.
52922         * doc/posix-functions/recv.texi: Update mingw problems.
52923         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52924         * doc/posix-functions/select.texi: Update mingw problems.
52925         * doc/posix-functions/send.texi: Update mingw problems.
52926         * doc/posix-functions/sendto.texi: Update mingw problems.
52927         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52928         * doc/posix-functions/socket.texi: Update mingw problems.
52929
52930 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52931             Bruno Haible  <bruno@clisp.org>
52932
52933         * lib/sys_select.in.h: Include sys/time.h.
52934         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52935         * modules/sys_select: Depend on sys_time.
52936         * tests/test-sys_select.c: Test that sys/select.h defines struct
52937         timeval fully.
52938
52939 2008-09-29  Bruno Haible  <bruno@clisp.org>
52940
52941         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52942         * lib/sys_select.in.h: Likewise.
52943
52944 2008-09-29  Bruno Haible  <bruno@clisp.org>
52945
52946         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52947
52948 2008-09-29  Bruno Haible  <bruno@clisp.org>
52949
52950         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52951         Set LIBSOCKET instead of augmenting LIBS.
52952         * modules/sockets (Link): New section.
52953         * modules/sockets-tests (test_sockets_LDADD): New variable.
52954         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52955         * modules/poll-tests (test_poll_LDADD): New variable.
52956         * NEWS: Document the change.
52957
52958 2008-09-29  Bruno Haible  <bruno@clisp.org>
52959
52960         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52961         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52962         ARPA_INET_H directly.
52963         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52964
52965 2008-09-28  Bruno Haible  <bruno@clisp.org>
52966
52967         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52968         from gl_HEADER_SYS_SOCKET.
52969         (gl_HEADER_SYS_SOCKET): Invoke it.
52970         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52971
52972 2008-09-28  Bruno Haible  <bruno@clisp.org>
52973
52974         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52975         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52976         Needed on OSF/1 4.0.
52977
52978 2008-09-28  Bruno Haible  <bruno@clisp.org>
52979
52980         Override open more carefully.
52981         * lib/open.c (orig_open): New function.
52982         (rpl_open): Use orig_open instead of open.
52983         * lib/fcntl.in.h: Add special invocation convention.
52984         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52985         (gl_FUNC_OPEN): Invoke it.
52986
52987         Override freopen more carefully.
52988         * lib/freopen.c (orig_freopen): New function.
52989         (rpl_freopen): Use orig_freopen instead of freopen.
52990         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52991         (gl_FUNC_FREOPEN): Invoke it.
52992
52993         Override fopen more carefully.
52994         * lib/fopen.c (orig_fopen): New function.
52995         (rpl_fopen): Use orig_fopen instead of fopen.
52996         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52997         (gl_FUNC_FOPEN): Invoke it.
52998         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52999
53000 2008-09-28  Bruno Haible  <bruno@clisp.org>
53001
53002         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53003         SIGPIPE.
53004
53005 2008-09-28  Bruno Haible  <bruno@clisp.org>
53006
53007         * tests/test-sigaction.c (handler, main): Disable the check whether
53008         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53009         glibc systems with LinuxThreads.
53010
53011 2008-09-28  Bruno Haible  <bruno@clisp.org>
53012
53013         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53014
53015         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53016         with AIX xlc.
53017         * lib/fcntl.in.h (open): Likewise.
53018         Reported by Rainer Tammer <tammer@tammer.net>.
53019
53020 2008-09-28  Bruno Haible  <bruno@clisp.org>
53021
53022         * modules/posix_spawnp-tests: New file.
53023         * tests/test-posix_spawn.c: New file.
53024         * tests/test-posix_spawn.in.sh: New file.
53025
53026         New module 'posix_spawnp'.
53027         * modules/posix_spawnp: New file.
53028         * lib/spawnp.c: New file, from GNU libc with modifications.
53029         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53030
53031         New module 'posix_spawn'.
53032         * modules/posix_spawn: New file.
53033         * lib/spawn.c: New file, from GNU libc with modifications.
53034         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53035
53036         New module 'posix_spawnattr_destroy'.
53037         * modules/posix_spawnattr_destroy: New file.
53038         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53039         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53040         module.
53041
53042         New module 'posix_spawnattr_setsigmask'.
53043         * modules/posix_spawnattr_setsigmask: New file.
53044         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53045         modifications.
53046         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53047         new module.
53048
53049         New module 'posix_spawnattr_getsigmask'.
53050         * modules/posix_spawnattr_getsigmask: New file.
53051         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53052         modifications.
53053         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53054         new module.
53055
53056         New module 'posix_spawnattr_setsigdefault'.
53057         * modules/posix_spawnattr_setsigdefault: New file.
53058         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53059         modifications.
53060         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53061         new module.
53062
53063         New module 'posix_spawnattr_getsigdefault'.
53064         * modules/posix_spawnattr_getsigdefault: New file.
53065         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53066         modifications.
53067         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53068         new module.
53069
53070         New module 'posix_spawnattr_setschedpolicy'.
53071         * modules/posix_spawnattr_setschedpolicy: New file.
53072         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53073         modifications.
53074         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53075         new module.
53076
53077         New module 'posix_spawnattr_getschedpolicy'.
53078         * modules/posix_spawnattr_getschedpolicy: New file.
53079         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53080         modifications.
53081         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53082         new module.
53083
53084         New module 'posix_spawnattr_setschedparam'.
53085         * modules/posix_spawnattr_setschedparam: New file.
53086         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53087         modifications.
53088         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53089         new module.
53090
53091         New module 'posix_spawnattr_getschedparam'.
53092         * modules/posix_spawnattr_getschedparam: New file.
53093         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53094         modifications.
53095         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53096         new module.
53097
53098         New module 'posix_spawnattr_setpgroup'.
53099         * modules/posix_spawnattr_setpgroup: New file.
53100         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53101         modifications.
53102         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53103         module.
53104
53105         New module 'posix_spawnattr_getpgroup'.
53106         * modules/posix_spawnattr_getpgroup: New file.
53107         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53108         modifications.
53109         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53110         module.
53111
53112         New module 'posix_spawnattr_setflags'.
53113         * modules/posix_spawnattr_setflags: New file.
53114         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53115         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53116         module.
53117
53118         New module 'posix_spawnattr_getflags'.
53119         * modules/posix_spawnattr_getflags: New file.
53120         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53121         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53122         module.
53123
53124         New module 'posix_spawnattr_init'.
53125         * modules/posix_spawnattr_init: New file.
53126         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53127         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53128         module.
53129
53130         New module 'posix_spawn_file_actions_destroy'.
53131         * modules/posix_spawn_file_actions_destroy: New file.
53132         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53133         modifications.
53134         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53135         the new module.
53136
53137         New module 'posix_spawn_file_actions_addopen'.
53138         * modules/posix_spawn_file_actions_addopen: New file.
53139         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53140         modifications.
53141         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53142         the new module.
53143
53144         New module 'posix_spawn_file_actions_adddup2'.
53145         * modules/posix_spawn_file_actions_adddup2: New file.
53146         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53147         modifications.
53148         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53149         the new module.
53150
53151         New module 'posix_spawn_file_actions_addclose'.
53152         * modules/posix_spawn_file_actions_addclose: New file.
53153         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53154         modifications.
53155         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53156         the new module.
53157
53158         New module 'posix_spawn_file_actions_init'.
53159         * modules/posix_spawn_file_actions_init: New file.
53160         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53161         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53162         new module.
53163
53164         New module 'posix_spawn-internal'.
53165         * modules/posix_spawn-internal: New file.
53166         * lib/spawn_int.h: New file, from GNU libc with modifications.
53167         * lib/spawni.c: New file, from GNU libc with modifications.
53168         * m4/posix_spawn.m4: New file.
53169
53170         New module 'spawn'.
53171         * modules/spawn: New file.
53172         * lib/spawn.in.h: New file, from GNU libc with modifications.
53173         * m4/spawn_h.m4: New file.
53174         * doc/posix-headers/spawn.texi: Mention the new module.
53175
53176 2008-09-28  Bruno Haible  <bruno@clisp.org>
53177
53178         * modules/sched-tests: New file.
53179         * tests/test-sched.c: New file.
53180
53181         New module 'sched'.
53182         * modules/sched: New file.
53183         * lib/sched.in.h: New file.
53184         * m4/sched_h.m4: New file.
53185         * doc/posix-headers/sched.texi: Mention the new module.
53186
53187 2008-09-27  Eric Blake  <ebb9@byu.net>
53188
53189         Fix previous patch, and tweak references to $0.
53190         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53191         (func_version, func_gnulib_dir): Don't call this program
53192         gnulib-tool.
53193         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53194         with using $0 in function.
53195         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53196         (func_fatal_error): Reuse the name the user invoked us with.
53197
53198 2008-09-27  Bruno Haible  <bruno@clisp.org>
53199
53200         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53201         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53202         (gl_ICONV_H): Not here.
53203         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53204         instead of assigning ICONV_H directly.
53205
53206         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53207         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53208         WCHAR_H directly.
53209
53210 2008-09-27  Bruno Haible  <bruno@clisp.org>
53211
53212         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53213         * modules/arpa_inet (Depends-on): Add link-warning.
53214         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53215         * modules/unistd (Makefile.am): Likewise.
53216
53217 2008-09-26  Bruno Haible  <bruno@clisp.org>
53218
53219         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53220         variables.
53221         (func_version): Essentially copied from gnulib-tool.
53222         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53223         func_readlink): Copied from gnulib-tool.
53224
53225 2008-09-26  Bruno Haible  <bruno@clisp.org>
53226
53227         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53228         invoking git-version-gen.
53229
53230 2008-09-26  Bruno Haible  <bruno@clisp.org>
53231
53232         * posix-modules: Update to directory names changed on 2008-01-19.
53233         Remove commas in output before splitting into words. No more need to
53234         avoid 'ftruncate' since 2007-02-19.
53235
53236 2008-09-26  Bruno Haible  <bruno@clisp.org>
53237
53238         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53239
53240 2008-09-26  Bruno Haible  <bruno@clisp.org>
53241
53242         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53243         * modules/fwriteerror (Depends-on): Add errno.
53244
53245 2008-09-26  Bruno Haible  <bruno@clisp.org>
53246
53247         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53248         * tests/test-vc-list-files-cvs.sh: Likewise.
53249
53250 2008-09-26  Bruno Haible  <bruno@clisp.org>
53251
53252         * doc/posix-headers/sys_resource.texi: Reorder items.
53253
53254 2008-09-26  Jim Meyering  <meyering@redhat.com>
53255
53256         fts: tweak inode comparison function
53257         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
53258         inode numbers, as documented.
53259
53260         fts: sort dirent entries on inode number before traversing
53261         This avoids a quadratic, seek-related performance penalty when
53262         operating on a directory containing many entries (measurable at 10k;
53263         3.5 hours at 2 million entries with a cold cache) on certain types
53264         of file systems, including ext3 and ext4, but not tmpfs.
53265         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53266         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53267         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53268         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53269         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53270         (fts_build): Set the stat.st_ino member from D_INO.
53271         If it is likely to be useful, sort dirent entries on inode number.
53272
53273         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53274         and the struct statfs.f_type member.
53275         * modules/fts (Depends-on): Add d-ino.
53276
53277 2008-09-26  Bruno Haible  <bruno@clisp.org>
53278
53279         * modules/sigpipe-die (Depends-on): Add sigpipe.
53280
53281         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53282         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53283         and GNULIB_STDIO_H_SIGPIPE are set.
53284         * lib/stdio-write.c: New file.
53285         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53286         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53287         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53288         REPLACE_STDIO_WRITE_FUNCS.
53289         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53290         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53291         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53292         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53293         * modules/stdio (Files): Add lib/stdio-write.c.
53294         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53295         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53296         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53297         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53298         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53299         REPLACE_FPRINTF_POSIX.
53300         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53301         REPLACE_PRINTF_POSIX.
53302         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53303         REPLACE_VFPRINTF_POSIX.
53304         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53305         REPLACE_VPRINTF_POSIX.
53306         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53307         SIGPIPE issue.
53308         * doc/posix-functions/fputc.texi: Likewise.
53309         * doc/posix-functions/fputs.texi: Likewise.
53310         * doc/posix-functions/fwrite.texi: Likewise.
53311         * doc/posix-functions/printf.texi: Likewise.
53312         * doc/posix-functions/putc.texi: Likewise.
53313         * doc/posix-functions/putchar.texi: Likewise.
53314         * doc/posix-functions/puts.texi: Likewise.
53315         * doc/posix-functions/vfprintf.texi: Likewise.
53316         * doc/posix-functions/vprintf.texi: Likewise.
53317
53318         * modules/safe-write (Depends-on): Add write.
53319
53320         * modules/sigpipe-tests: New file.
53321         * tests/test-sigpipe.c: New file.
53322         * tests/test-sigpipe.sh: New file.
53323
53324         * modules/write: New file.
53325         * lib/unistd.in.h: Include <sys/types.h>.
53326         (write): New declaration.
53327         * lib/write.c: New file.
53328         * m4/write.m4: New file.
53329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53330         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
53331         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
53332         GNULIB_WRITE, REPLACE_WRITE.
53333         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
53334         and the SIGPIPE issue.
53335
53336         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
53337         (raise): New declaration.
53338         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
53339         (ext_signal): New function.
53340         (rpl_raise): New function.
53341         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
53342         GNULIB_SIGNAL_H_SIGPIPE.
53343         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
53344         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
53345
53346         * modules/sigpipe: New file.
53347         * m4/sigpipe.m4: New file.
53348
53349 2008-09-25  Derek Price  <derek@ximbiot.com>
53350             Bruno Haible  <bruno@clisp.org>
53351
53352         * gnulib-tool (func_import): Report all license incompatibilities, not
53353         just the first one.
53354
53355 2008-09-25  Bruno Haible  <bruno@clisp.org>
53356
53357         * gnulib-tool (func_import): When computing the edits, consider not
53358         only the Makefile.ams that exist but also those that will be generated.
53359
53360 2008-09-25  Simon Josefsson  <simon@josefsson.org>
53361
53362         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
53363         fixes gnulib-tool --test warning about duplicate dependency.
53364
53365 2008-09-25  Bruno Haible  <bruno@clisp.org>
53366
53367         * gnulib-tool: Don't ask the user to perform edits in the generated
53368         Makefile.ams.
53369         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
53370         apply to the Makefile.am being generated.
53371         (func_emit_tests_Makefile_am): Execute edits that apply to the
53372         Makefile.am being generated.
53373         (func_import): Setup list of Makefile.am edits before emitting the
53374         Makefile.ams, not at the end.
53375         (func_create_testdir): Update.
53376         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53377
53378 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53379
53380         * gnulib-tool (func_import): Store the --tests-base option in the
53381         comment in gnulib-cache.m4.
53382
53383 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
53384
53385         * NEWS: Document increased portability that sys_select now provides.
53386
53387         * lib/sys_select.in.h: Install select wrapper.
53388         * lib/sys_socket.in.h: Use more descriptive name when there is no
53389         select wrapper.
53390         * lib/winsock-select.c: New.
53391         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53392         Require gl_HEADER_SYS_SOCKET.
53393         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53394         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53395         * tests/test-sys_select.c: Add functional tests.
53396
53397 2008-09-24  Eric Blake  <ebb9@byu.net>
53398
53399         open, fopen: close fd leak in last patch
53400         * lib/open.c (rpl_open): Close fd before returning error.
53401         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53402         * doc/posix-functions/open.texi (open): Document that Irix also
53403         has the bug.
53404         * doc/posix-functions/fopen.texi (fopen): Likewise.
53405         Reported by Paolo Bonzini.
53406
53407 2008-09-24  Bruno Haible  <bruno@clisp.org>
53408
53409         Ensure that a filename ending in a slash cannot be used to access a
53410         non-directory.
53411         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
53412         to check whether it's really a directory.
53413         * lib/fopen.c: Include fcntl.h, unistd.h.
53414         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
53415         and fdopen().
53416         * modules/fopen (Depends-on): Add unistd.
53417         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
53418         * tests/test-fopen.c (main): Likewise.
53419         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
53420         * doc/posix-functions/fopen.texi: Likewise.
53421         Reported by Eric Blake.
53422
53423 2008-09-23  Eric Blake  <ebb9@byu.net>
53424
53425         c-stack: avoid compiler optimizations when provoking overflow
53426         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53427         recursion harder to optimize, to ensure a stack overflow occurs.
53428         * tests/test-c-stack.c (recurse): Likewise.
53429         Borrowed from libsigsegv.
53430
53431         c-stack: work around Irix sigaltstack bug
53432         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53433         whether sigaltstack uses wrong end of stack_t (copied in part from
53434         libsigsegv).
53435         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53436         Irix bug, without requiring an over-allocation.
53437         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
53438         bug.
53439
53440         fopen: document mingw bug on directories
53441         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
53442         not allowing a stream visiting a directory, even though reading
53443         from such a stream is not portable.
53444
53445 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53446
53447         * lib/poll.c: Rewrite.
53448         * modules/poll: Depend on alloca.
53449
53450 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53451
53452         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
53453         instead define prototypes for a full set of wrappers.  Ensure
53454         that Cygwin does not use the compatibility code, which is only
53455         for MinGW.
53456         * lib/winsock.c: New.
53457         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
53458         * modules/sys_socket: Add lib/winsock.c.
53459
53460         * modules/poll-tests: Add errno and perror.
53461         * tests/test-poll.c: Use ioctl, not ioctlsocket.
53462
53463 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53464
53465         * tests/test-poll.c: Downgrade minimum needed Winsock version.
53466
53467 2008-09-23  Bruno Haible  <bruno@clisp.org>
53468
53469         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
53470         * doc/glibc-functions/*: Likewise.
53471
53472 2008-09-23  Simon Josefsson  <simon@josefsson.org>
53473
53474         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
53475         success.
53476
53477 2008-09-22  Eric Blake  <ebb9@byu.net>
53478             Bruno Haible  <bruno@clisp.org>
53479
53480         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
53481         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53482         supply %A but mishandle pseudo-NaN.
53483         Reported by Simon Josefsson.
53484
53485 2008-09-21  Bruno Haible  <bruno@clisp.org>
53486
53487         * tests/test-lock.c (main): Tweak skip message.
53488         * tests/test-tls.c (main): Likewise.
53489
53490 2008-09-21  Bruno Haible  <bruno@clisp.org>
53491
53492         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53493         whether 'struct sigaction' has sa_sigaction here...
53494         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53495         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53496
53497 2008-09-21  Bruno Haible  <bruno@clisp.org>
53498
53499         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53500         section.
53501         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53502         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53503         the new section.
53504         (Support for obsolete systems lacking POSIX:2001): New section.
53505         (String handling <string.h>): Move strdup to the new section.
53506         Suggested by Simon Josefsson and Paolo Bonzini.
53507
53508 2008-09-21  Bruno Haible  <bruno@clisp.org>
53509
53510         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53511         exponents in %e and %g results on 'long double'. Needed for mingw's
53512         improved *printf functions.
53513         * tests/test-vasprintf-posix.c (test_function): Likewise.
53514         * tests/test-snprintf-posix.h (test_function): Likewise.
53515         * tests/test-sprintf-posix.h (test_function): Likewise.
53516         Reported by Eric Blake.
53517
53518 2008-09-21  Bruno Haible  <bruno@clisp.org>
53519
53520         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53521         * tests/test-sprintf-posix.h (test_function): Likewise.
53522
53523 2008-09-21  Bruno Haible  <bruno@clisp.org>
53524
53525         * modules/getpass (Depends-on): Add strdup-posix.
53526
53527         New module 'strdup-posix'.
53528         * modules/strdup-posix: New file.
53529         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53530         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53532         REPLACE_STRDUP.
53533         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53534         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53535         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53536         strdup-posix.
53537
53538         * modules/strdup (Depends-on): Remove malloc-posix.
53539
53540 2008-09-20  Bruno Haible  <bruno@clisp.org>
53541
53542         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53543         Wildenhues.
53544
53545 2008-09-20  Bruno Haible  <bruno@clisp.org>
53546
53547         Ensure that wint_t gets defined on IRIX 5.3.
53548         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53549         * lib/wctype.in.h (wint_t): Likewise.
53550         (__wctype_wint_t): Remove type.
53551         (isw*): Use wint_t instead of __wctype_wint_t.
53552         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53553         * modules/wchar (Files): Add m4/wint_t.m4.
53554         (Makefile.am): Substitute HAVE_WINT_T.
53555         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53556         * tests/test-wctype.c: Check that wint_t is defined.
53557         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53558         * doc/posix-headers/wctype.texi: Likewise.
53559         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53560
53561 2008-09-18  Bruno Haible  <bruno@clisp.org>
53562
53563         * gnulib-tool (func_exit): Update comment.
53564
53565 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53566
53567         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53568         assumes strdup exists and does not depend on strdup to return
53569         ENOMEM on out of memory conditions.
53570
53571 2008-09-18  Bruno Haible  <bruno@clisp.org>
53572
53573         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
53574         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53575         digits for the exponent.
53576
53577 2008-09-18  Jim Meyering  <meyering@redhat.com>
53578             Bruno Haible  <bruno@clisp.org>
53579
53580         * lib/vasnprintf.c (decimal_point_char): Define also if
53581         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53582
53583 2008-09-16  Bruno Haible  <bruno@clisp.org>
53584         and Eric Blake  <ebb9@byu.net>
53585
53586         vasnprintf: support Irix 5.3
53587         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53588         that mishandle long double infinity.
53589         Reported by Tom G. Christensen.
53590
53591 2008-09-16  Bruno Haible  <bruno@clisp.org>
53592
53593         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53594         Solaris 9.
53595         * doc/glibc-functions/alphasort.texi: Likewise.
53596         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53597
53598 2008-09-16  Jim Meyering  <meyering@redhat.com>
53599
53600         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53601         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53602         a umask modification leak out of a subshell.  Otherwise, the
53603         opensolaris /bin/sh would be accepted and thus cause unwarranted
53604         failures in the coreutils test suite.
53605
53606 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53607
53608         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53609         to succeed.
53610
53611 2008-09-16  Jim Meyering  <meyering@redhat.com>
53612
53613         avoid spurious test failure when library is built without ACL support
53614         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53615         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53616         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53617         * tests/test-copy-acl.sh: Likewise.
53618
53619 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53620
53621         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53622         based on character occurrence counts.
53623
53624 2008-09-15  Eric Blake  <ebb9@byu.net>
53625
53626         tests: avoid some compiler warnings
53627         * tests/test-memchr.c (main): Pass NULL indirectly.
53628         * tests/test-closein.c (main): Avoid unused variable.
53629
53630 2008-09-15  Bruno Haible  <bruno@clisp.org>
53631
53632         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53633         are missing on OpenBSD 4.0 individually.
53634         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53635
53636 2008-09-15  Bruno Haible  <bruno@clisp.org>
53637
53638         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53639         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53640         * doc/posix-functions/perror.texi: Likewise.
53641         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53642         is missing.
53643         Reported by Eric Blake.
53644
53645         * lib/errno.in.h: Use replacement values >= 2000.
53646         Reported by Eric Blake.
53647
53648 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53649
53650         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53651         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53652         limit.
53653         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53654         compareseq was aborted.
53655
53656 2008-09-14  Bruno Haible  <bruno@clisp.org>
53657
53658         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53659         yvec_edit_count.
53660         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53661         (fstrcmp_bounded): Simplify result computation accordingly.
53662
53663 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53664
53665         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53666         (fstrcmp): Define in terms of fstrcmp_bounded.
53667         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53668         lower_bound argument.
53669         Return quickly if the result is certainly < lower_bound.
53670         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53671
53672 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53673
53674         * lib/diffseq.h (EARLY_ABORT): New macro.
53675         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53676         evaluates to true.
53677
53678 2008-09-14  Bruno Haible  <bruno@clisp.org>
53679
53680         * modules/perror-tests: New file.
53681         * tests/test-perror.sh: New file.
53682         * tests/test-perror.c: New file.
53683
53684         New module 'perror'.
53685         * lib/stdio.in.h (perror): New declaration.
53686         * lib/perror.c: New file.
53687         * m4/perror.m4: New file.
53688         * modules/perror: New file.
53689         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53690         * doc/posix-functions/perror.texi: Mention the perror module.
53691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53692         REPLACE_PERROR.
53693         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53694         REPLACE_PERROR.
53695
53696 2008-09-14  Bruno Haible  <bruno@clisp.org>
53697
53698         * modules/stdio (Makefile.am): Reorder to match the order in
53699         lib/stdio.in.h.
53700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53701
53702 2008-09-13  Bruno Haible  <bruno@clisp.org>
53703
53704         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53705
53706 2008-09-13  Bruno Haible  <bruno@clisp.org>
53707
53708         Extend strerror to cover the added errno values.
53709         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53710         (rpl_strerror): Provide error messages for the added errno values and
53711         for the WSA* values.
53712         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53713         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53714         strerror.
53715         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53716         * modules/strerror (Depends-on): Add errno.
53717         * doc/posix-functions/strerror.texi: Document the change.
53718         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53719         and EOVERFLOW.
53720
53721 2008-09-13  Bruno Haible  <bruno@clisp.org>
53722
53723         * modules/EOVERFLOW: Remove file.
53724         * m4/eoverflow.m4: Remove file.
53725         * modules/EOVERFLOW-tests: Remove file.
53726         * tests/test-EOVERFLOW.c: Remove file.
53727         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53728         * modules/ftell (Depends-on): Likewise.
53729         * modules/getdelim (Depends-on): Likewise.
53730         * modules/getugroups (Depends-on): Likewise.
53731         * modules/poll (Depends-on): Likewise.
53732         * modules/snprintf (Depends-on): Likewise.
53733         * modules/sprintf-posix (Depends-on): Likewise.
53734         * modules/vasnprintf (Depends-on): Likewise.
53735         * modules/vasprintf (Depends-on): Likewise.
53736         * modules/vfprintf-posix (Depends-on): Likewise.
53737         * modules/vsnprintf (Depends-on): Likewise.
53738         * modules/vsprintf-posix (Depends-on): Likewise.
53739         * modules/xvasprintf (Depends-on): Likewise.
53740         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53741         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53742         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53743         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53744         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53745         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53746         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53747         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53748         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53749         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53750         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53751         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53752         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53753         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53754         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53755         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53756         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53757         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53758         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53759         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53760         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53761         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53762         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53763         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53764         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53765         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53766         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53767         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53768         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53769         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53770         * MODULES.html.sh: Remove EOVERFLOW.
53771         * NEWS: Mention the change.
53772
53773 2008-09-13  Bruno Haible  <bruno@clisp.org>
53774
53775         * modules/errno-tests: New file.
53776         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53777
53778         * lib/errno.in.h: New file.
53779         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53780         * modules/errno: New file.
53781         * doc/posix-headers/errno.texi: Update documentation.
53782         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53783
53784 2008-09-13  Bruno Haible  <bruno@clisp.org>
53785
53786         * tests/test-poll.c: Use #if for native Windows, rather than testing
53787         __MSVCRT__.
53788
53789 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53790             Bruno Haible  <bruno@clisp.org>
53791
53792         * lib/glob.c: Don't include <pwd.h> on native Windows.
53793         (WINDOWS32): New macro.
53794         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53795
53796 2008-09-13  Bruno Haible  <bruno@clisp.org>
53797
53798         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53799         (ETIMEDOUT): Remove macro.
53800         (glthread_cond_timedwait_multithreaded): New declaration.
53801         (glthread_cond_timedwait): Use it.
53802         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53803         (glthread_cond_timedwait_multithreaded): New function.
53804
53805 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53806
53807         * modules/poll-tests: Do not check for io.h.
53808         * tests/test-poll.c: Check for __MSVCRT__ instead.
53809
53810 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53811
53812         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53813         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53814         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53815
53816 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53817
53818         * modules/poll-tests: New.
53819         * tests/test-poll.c: New.
53820
53821 2008-09-12  Eric Blake  <ebb9@byu.net>
53822
53823         frexp: test for NetBSD failure on -0.0
53824         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53825         not all, bugs from NetBSD 3.0 have been fixed.
53826         * doc/posix-functions/frexp.texi (frexp): Document bug.
53827         Reported by Thomas Klausner.
53828
53829         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53830         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53831         literal -0.0.
53832         Reported by Jonathan C. Patschke <jp@centtech.com>.
53833
53834 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53835
53836         * lib/glthread/cond.h: Use dummy implementation also if
53837         USE_WIN32_THREADS.
53838
53839 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53840
53841         * modules/fnmatch-posix (License): Change to LGPLv2+.
53842         * modules/fnmatch-gnu (License): Likewise.
53843
53844 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53845
53846         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53847
53848 2008-09-11  Jim Meyering  <meyering@redhat.com>
53849
53850         * users.txt: Add gtk-vnc.
53851
53852 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53853
53854         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53855         rotate amounts.
53856
53857         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53858         required for 16-bit and 8-bit rotates.
53859         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53860         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53861         UINT8_MAX instead of hard-coded constants.
53862         Suggested by Paul Eggert.
53863
53864 2008-09-07  Bruno Haible  <bruno@clisp.org>
53865
53866         * tests/test-striconveh.c (main): Check behaviour when converting from
53867         UTF-7.
53868
53869         Make striconveh work better with stateful encodings.
53870         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53871         that iconv does not increment the inptr when returning -1/EINVAL.
53872
53873 2008-09-07  Bruno Haible  <bruno@clisp.org>
53874
53875         * build-aux/config.rpath: Update according to libtool-2.2.6.
53876         * build-aux/config.libpath: Likewise.
53877
53878 2008-09-06  Bruno Haible  <bruno@clisp.org>
53879
53880         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53881         * lib/freadptr.c (freadptr): Likewise.
53882         * lib/freadseek.c (freadptrinc): Likewise.
53883         Reported by Simon Josefsson.
53884
53885 2008-09-06  Bruno Haible  <bruno@clisp.org>
53886
53887         * modules/freadptr (License): Change to LGPLv2+.
53888         * modules/freadseek (License): Likewise.
53889         Suggested by Eric Blake.
53890
53891         * modules/memchr2 (License): Change to LGPLv2+.
53892         Approved by Eric Blake.
53893
53894 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53895             Bruno Haible  <bruno@clisp.org>
53896
53897         Make gnulib-tool work with native 'sed' on AIX.
53898         * gnulib-tool (sed_noop): New variable.
53899         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53900         func_add_or_update, func_create_testdir): Use it to initialize sed
53901         script variables.
53902         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53903
53904 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53905             Bruno Haible  <bruno@clisp.org>
53906
53907         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53908         also works after #include directives.
53909
53910 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53911
53912         getdate.y: reject an out-of-range timezone value
53913         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53914         the range [-24...+24].  When specified with only one or two digits,
53915         * tests/test-getdate.c: Tests for the fix.
53916         * doc/getdate.texi: Document this change.
53917
53918 2008-09-03  Bruno Haible  <bruno@clisp.org>
53919
53920         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53921
53922 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53923
53924         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53925         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53926         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53927         Blake <ebb9@byu.net>.
53928
53929         * tests/test-bitrotate.c: Add more test vectors.
53930
53931 2008-09-02  Eric Blake  <ebb9@byu.net>
53932
53933         vasnprintf-posix: handle large precision via %.*d
53934         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53935         when handling it ourselves.
53936         * tests/test-vasnprintf-posix.c (test_function): Add test.
53937         * tests/test-snprintf-posix.h (test_function): Likewise.
53938         * tests/test-sprintf-posix.h (test_function): Likewise.
53939         * tests/test-vasprintf-posix.c (test_function): Likewise.
53940         Reported by Alain Guibert.
53941
53942 2008-09-01  Eric Blake  <ebb9@byu.net>
53943
53944         c-stack: make configure-time check more robust
53945         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53946         successful sigaction call.
53947         Reported by Tom G. Christensen.
53948
53949 2008-09-01  Bruno Haible  <bruno@clisp.org>
53950
53951         New module 'findprog-lgpl'.
53952         * modules/findprog-lgpl: New file.
53953         * lib/findprog-lgpl.c: New file.
53954         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53955         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53956         to decide whether to use strdup or xstrdup, concatenated_filename or
53957         xconcatenated_filename.
53958
53959 2008-09-01  Bruno Haible  <bruno@clisp.org>
53960
53961         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53962         'xconcat-filename' (GPL).
53963         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53964         (License): Change to LGPLv2+.
53965         * modules/xconcat-filename: New file.
53966         * lib/concat-filename.h (concatenated_filename): Change specification.
53967         (xconcatenated_filename): New declaration.
53968         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53969         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53970         memory situations.
53971         * lib/xconcat-filename.c: New file.
53972         * NEWS: Mention the change.
53973         * lib/findprog.c: Include concat-filename.h, not filename.h.
53974         (find_in_path): Use xconcatenated_filename instead of
53975         concatenated_filename.
53976         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53977         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53978         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53979         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53980         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53981         instead of concatenated_filename.
53982         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53983         (execute_java_class): Use xconcatenated_filename instead of
53984         concatenated_filename.
53985         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53986         * modules/javacomp (Depends-on): Likewise.
53987         * modules/javaexec (Depends-on): Likewise.
53988
53989 2008-09-01  Bruno Haible  <bruno@clisp.org>
53990
53991         Split module 'filename' into 'filename' and 'concat-filename'.
53992         * modules/filename: Keep only lib/filename.h.
53993         (License): Change to LGPLv2+.
53994         * modules/concat-filename: New file, extracted from modules/filename.
53995         * lib/filename.h (concatenated_filename): Remove declaration.
53996         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53997         * lib/concat-filename.c: Include concat-filename.h.
53998         * NEWS: Mention the change.
53999
54000 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54001
54002         * lib/bitrotate.h (rotl8, rotr8): Add.
54003
54004         * modules/bitrotate (configure.ac): Need
54005         AC_REQUIRE([AC_C_INLINE]).
54006         (Description): Mention stdint.h.  Reported by Bruno Haible
54007         <bruno@clisp.org>.
54008
54009         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54010         Paolo Bonzini <bonzini@gnu.org>.
54011
54012 2008-08-31  Bruno Haible  <bruno@clisp.org>
54013
54014         Assume Solaris specific bi-arch conventions on Solaris systems.
54015         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54016         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54017         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54018         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54019         like acl_libdirstem.
54020         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54021         acl_libdirstem.
54022         * NEWS: Mention the change.
54023         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54024
54025 2008-08-31  Jim Meyering  <meyering@redhat.com>
54026
54027         * lib/strftime.h: Add comments describing the two added arguments.
54028
54029         remove duplicate #include directives
54030         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54031         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54032
54033 2008-08-31  Bruno Haible  <bruno@clisp.org>
54034
54035         New module 'sigpipe-die'.
54036         * modules/sigpipe-die: New file.
54037         * lib/sigpipe-die.h: New file.
54038         * lib/sigpipe-die.c: New file.
54039         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54040
54041 2008-08-31  Bruno Haible  <bruno@clisp.org>
54042
54043         Don't override previously installed signal handlers.
54044         * lib/fatal-signal.c (saved_sigactions): New variable.
54045         (uninstall_handlers): Reset the signal to the saved handler, not
54046         to SIG_DFL (except when ignored).
54047         (install_handlers): Save the previous handlers.
54048
54049 2008-08-30  Bruno Haible  <bruno@clisp.org>
54050
54051         * gnulib-tool (func_reset_sigpipe): New function.
54052         (func_get_automake_snippet, func_modules_transitive_closure,
54053         func_import): Invoke it before a join command that reads from stdin,
54054         to avoid "echo: write error: Broken pipe" error messages on stderr.
54055         Reported by Sam Steingold <sds@gnu.org>.
54056
54057 2008-08-30  Bruno Haible  <bruno@clisp.org>
54058
54059         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54060         Code copied from m4/open.m4.
54061         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54062         access and the filename ends in a slash. Code copied from lib/open.c.
54063         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54064         * tests/test-fopen.c (main): Check against bug with trailing slash.
54065
54066 2008-08-29  Bruno Haible  <bruno@clisp.org>
54067
54068         Avoid some "gcc -pedantic" warnings.
54069         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54070         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54071         * lib/dirent.in.h: Likewise.
54072         * lib/fcntl.in.h: Likewise.
54073         * lib/float.in.h: Likewise.
54074         * lib/iconv.in.h: Likewise.
54075         * lib/inttypes.in.h: Likewise.
54076         * lib/locale.in.h: Likewise.
54077         * lib/math.in.h: Likewise.
54078         * lib/netinet_in.in.h: Likewise.
54079         * lib/search.in.h: Likewise.
54080         * lib/signal.in.h: Likewise.
54081         * lib/stdarg.in.h: Likewise.
54082         * lib/stdint.in.h: Likewise.
54083         * lib/stdio.in.h: Likewise.
54084         * lib/stdlib.in.h: Likewise.
54085         * lib/string.in.h: Likewise.
54086         * lib/strings.in.h: Likewise.
54087         * lib/sys_select.in.h: Likewise.
54088         * lib/sys_socket.in.h: Likewise.
54089         * lib/sys_stat.in.h: Likewise.
54090         * lib/sys_time.in.h: Likewise.
54091         * lib/sysexits.in.h: Likewise.
54092         * lib/time.in.h: Likewise.
54093         * lib/unistd.in.h: Likewise.
54094         * lib/wchar.in.h: Likewise.
54095         * lib/wctype.in.h: Likewise.
54096         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54097         * modules/fchdir (Makefile.am): Likewise.
54098         * modules/fcntl (Makefile.am): Likewise.
54099         * modules/float (Makefile.am): Likewise.
54100         * modules/iconv_open (Makefile.am): Likewise.
54101         * modules/inttypes (Makefile.am): Likewise.
54102         * modules/locale (Makefile.am): Likewise.
54103         * modules/math (Makefile.am): Likewise.
54104         * modules/netinet_in (Makefile.am): Likewise.
54105         * modules/search (Makefile.am): Likewise.
54106         * modules/signal (Makefile.am): Likewise.
54107         * modules/stdarg (Makefile.am): Likewise.
54108         * modules/stdint (Makefile.am): Likewise.
54109         * modules/stdio (Makefile.am): Likewise.
54110         * modules/stdlib (Makefile.am): Likewise.
54111         * modules/string (Makefile.am): Likewise.
54112         * modules/strings (Makefile.am): Likewise.
54113         * modules/sys_select (Makefile.am): Likewise.
54114         * modules/sys_socket (Makefile.am): Likewise.
54115         * modules/sys_stat (Makefile.am): Likewise.
54116         * modules/sys_time (Makefile.am): Likewise.
54117         * modules/sysexits (Makefile.am): Likewise.
54118         * modules/time (Makefile.am): Likewise.
54119         * modules/unistd (Makefile.am): Likewise.
54120         * modules/wchar (Makefile.am): Likewise.
54121         * modules/wctype (Makefile.am): Likewise.
54122         Reported by Reuben Thomas <rrt@sc3d.org>.
54123
54124 2008-08-29  Bruno Haible  <bruno@clisp.org>
54125
54126         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54127         any more.
54128
54129 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54130
54131         * MODULES.html.sh (Misc): Add bitrotate.
54132
54133         * modules/bitrotate: New file.
54134
54135         * lib/bitrotate.h: New file.
54136
54137         * modules/bitrotate-tests: New file.
54138
54139         * tests/test-bitrotate.c: New file.
54140
54141         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54142         on the bitrotate module.
54143
54144         * lib/arctwo.c: Use new bitrotate module.
54145
54146 2008-08-29  Jim Meyering  <meyering@redhat.com>
54147
54148         bootstrap: merge changes from coreutils
54149         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54150         of copied files.  Remove a kludge, now that this is fixed.
54151         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54152         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54153         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54154
54155 2008-08-29  Bruno Haible  <bruno@clisp.org>
54156
54157         * MODULES.html.sh: Remove --cvs-urls option.
54158
54159 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54160
54161         maint.mk: adjust to file name change
54162         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54163
54164 2008-08-28  Jim Meyering  <meyering@redhat.com>
54165
54166         * modules/getndelim2 (License): Relicense to LGPLv2+.
54167         Approved by Richard Stallman for the version of 1995, and by
54168         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54169
54170 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54171
54172         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54173         dummy if one is not available.  Do not touch them if
54174         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54175         (getc_maybe_unlocked): New.
54176         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54177
54178 2008-08-26  Eric Blake  <ebb9@byu.net>
54179
54180         doc/INSTALL: resync from autoconf
54181         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54182         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54183         moving...
54184         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54185         * INSTALL: Regenerate.
54186         * INSTALL.ISO: New file.
54187         * INSTALL.UTF-8: Likewise.
54188
54189 2008-08-26  Jim Meyering  <meyering@redhat.com>
54190
54191         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54192         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54193         these definitions conditional, so that they may be overridden, too.
54194
54195 2008-08-26  Bruno Haible  <bruno@clisp.org>
54196
54197         Generate INSTALL file variants with prettier quotes.
54198         * doc/Makefile (INSTALL_PRELUDE): New macro.
54199         (INSTALL): Use it.
54200         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54201
54202 2008-08-26  Bruno Haible  <bruno@clisp.org>
54203
54204         Run makeinfo in an English locale.
54205         * doc/Makefile (MAKEINFO): New variable.
54206
54207 2008-08-26  Bruno Haible  <bruno@clisp.org>
54208
54209         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54210         Suggested by Eric Blake.
54211
54212 2008-08-25  Bruno Haible  <bruno@clisp.org>
54213
54214         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54215
54216 2008-08-25  Eric Blake  <ebb9@byu.net>
54217
54218         c-stack: test that stack overflow can be caught
54219         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54220         that platform allows handling stack overflow; at least OS/2 EMX
54221         has sigaltstack, but crashes before transferring control to
54222         handler on stack overflow.
54223         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54224         check for HAVE_STACK_OVERFLOW_HANDLING.
54225         Reported by Elbert Pol.
54226
54227 2008-08-25  Bruno Haible  <bruno@clisp.org>
54228
54229         * doc/posix-functions/strftime.texi: Fix description of strftime
54230         module.
54231
54232 2008-08-24  Bruno Haible  <bruno@clisp.org>
54233
54234         * tests/uniwidth/test-uc_width2.c: New file.
54235         * tests/uniwidth/test-uc_width2.sh: New file.
54236         * modules/uniwidth/width-tests (Files): Add the new files.
54237         (TESTS): Add uniwidth/test-uc_width2.sh.
54238         (TESTS_ENVIRONMENT): New variable.
54239         (check_PROGRAMS): Add test-uc_width2.
54240         (test_uc_width2_SOURCES): New variable.
54241
54242         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54243         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54244         not 0x00AB.
54245         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54246
54247 2008-08-22  Eric Blake  <ebb9@byu.net>
54248
54249         test-lock, test-tls: mention why a test is skipped
54250         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54251         skipped.
54252         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54253
54254         count-one-bits: relax license
54255         * modules/count-one-bits (License): Relicense to LGPLv2+.
54256         Suggested by Ludovic Courtès, approved by Ben Pfaff.
54257
54258 2008-08-22  Andreas Schwab  <schwab@suse.de>
54259
54260         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54261         Remove spurious space in assignment.
54262
54263 2008-08-21  Simon Josefsson  <simon@josefsson.org>
54264
54265         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54266         Paul Eggert <eggert@CS.UCLA.EDU>.
54267
54268 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54269
54270         * modules/gettext: Add m4/threadlib.m4.
54271
54272 2008-08-19  Eric Blake  <ebb9@byu.net>
54273
54274         test-c-stack: fix compilation failure on FreeBSD 5.0
54275         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54276         headers before <sys/resource.h>.
54277         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54278         the bug.
54279         Reported by Nelson H. F. Beebe.
54280
54281         strverscmp: migrate from "strverscmp.h" to <string.h>
54282         * modules/string (Makefile.am): Add new hooks.
54283         * modules/strverscmp (Files): Remove strverscmp.h.
54284         (Depends-on): Add string.
54285         (configure.ac): Add indicator.
54286         (Include): Mention new header.
54287         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54288         defaults.
54289         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54290         results.
54291         * lib/strverscmp.h: Delete.
54292         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54293         * tests/test-strverscmp.c (includes): Adjust client.
54294         * lib/check-version.c (includes): Likewise.
54295         * NEWS: Document the change.
54296
54297         strverscmp: add unit test
54298         * modules/strverscmp-tests: New file.
54299         * tests/test-strverscmp.c: Likewise.
54300
54301 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54302
54303         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54304         regarding Windows crypto stuff, from Mono.
54305
54306 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54307
54308         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54309         if present, for intel RND.  Return error on failures.
54310
54311 2008-08-18  Ben Pfaff  <blp@gnu.org>
54312
54313         gitlog-to-changelog: give better diagnostic for failed pipe-open
54314         * build-aux/gitlog-to-changelog: Improve error message: suggest
54315         that the version of Git may be too old.
54316
54317 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54318
54319         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54320         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54321
54322 2008-08-18  Bruno Haible  <bruno@clisp.org>
54323
54324         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54325         pthread_in_use().
54326
54327 2008-08-18  Bruno Haible  <bruno@clisp.org>
54328
54329         * lib/glthread/threadlib.c: Include <pthread.h>.
54330
54331 2008-08-18  Bruno Haible  <bruno@clisp.org>
54332
54333         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
54334         glthread_recursive_lock_* macros.
54335         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
54336         Fix syntax error.
54337
54338 2008-08-18  Bruno Haible  <bruno@clisp.org>
54339
54340         * lib/glthread/thread.c: Avoid forcing a context switch right after
54341         thread creation.
54342
54343 2008-08-17  Bruno Haible  <bruno@clisp.org>
54344
54345         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
54346         * lib/glthread/thread.h: Provide Win32 specific implementation.
54347         * modules/thread (Files): Add lib/glthread/thread.c.
54348         (Depends-on): Add lock.
54349         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
54350
54351 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54352
54353         New module 'yield'.
54354         * modules/yield: New file.
54355         * lib/glthread/yield.h: New file.
54356         * m4/yield.m4: New file.
54357         * MODULES.html.sh (Multithreading): Add yield.
54358
54359 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54360
54361         New module 'thread'.
54362         * modules/thread: New file.
54363         * lib/glthread/thread.h: New file.
54364         * m4/thread.m4: New file.
54365         * MODULES.html.sh (Multithreading): Add thread.
54366
54367 2008-08-17  Bruno Haible  <bruno@clisp.org>
54368
54369         * lib/glthread/lock.h: Include <stdlib.h> always.
54370         * lib/glthread/tls.h: Likewise.
54371         * lib/glthread/cond.h: Likewise.
54372
54373 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54374
54375         New module 'cond'.
54376         * modules/cond: New file.
54377         * lib/glthread/cond.h: New file.
54378         * lib/glthread/cond.c: New file.
54379         * m4/cond.m4: New file.
54380         * MODULES.html.sh (Multithreading): Add cond.
54381
54382 2008-08-16  Eric Blake  <ebb9@byu.net>
54383
54384         c-stack: fix regression on Irix 5.3 from 2008-06-21
54385         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54386         sa_sigaction...
54387         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54388         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54389         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54390         * modules/signal (Makefile.am): Use the value.
54391         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54392         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54393         * doc/posix-headers/signal.texi (signal.h): Document this
54394         portability issue.
54395         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54396         Reported by Tom G. Christensen.
54397
54398 2008-08-17  Bruno Haible  <bruno@clisp.org>
54399
54400         New module 'threadlib'.
54401         * modules/threadlib: New file.
54402         * lib/glthread/threadlib.c: New file, extracted from
54403         lib/glthread/lock.c.
54404         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54405         functions.
54406         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
54407         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
54408         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
54409         macros.
54410         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
54411         (gl_DISABLE_THREADS): Remove macro.
54412         * modules/lock (Files): Remove build-aux/config.rpath.
54413         (Depends-on): Remove havelib. Add threadlib.
54414         (configure.ac-early): Remove section.
54415         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
54416         * modules/tls (Depends-on): Remove lock. Add threadlib.
54417         (Link): New section, copied from threadlib.
54418         * MODULES.html.sh (Multithreading): Add threadlib.
54419
54420 2008-08-14  Bruno Haible  <bruno@clisp.org>
54421
54422         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
54423         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
54424         glthread_rwlock_unlock, glthread_rwlock_destroy,
54425         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
54426         glthread_recursive_lock_destroy): Define as macros always.
54427         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54428         glthread_lock_lock.
54429         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54430         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54431         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54432         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54433         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54434         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54435         (glthread_recursive_lock_lock_func): Renamed from
54436         glthread_recursive_lock_lock.
54437         (glthread_recursive_lock_unlock_func): Renamed from
54438         glthread_recursive_lock_unlock.
54439         (glthread_recursive_lock_destroy_func): Renamed from
54440         glthread_recursive_lock_destroy.
54441
54442 2008-08-14  Bruno Haible  <bruno@clisp.org>
54443
54444         * lib/glthread/lock.h: Renamed from lib/lock.h.
54445         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
54446         * lib/glthread/tls.h: Renamed from lib/tls.h.
54447         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
54448         * lib/fstrcmp.c: Update includes.
54449         * lib/strsignal.c: Update includes.
54450         * modules/lock (Files, Makefile.am): Update.
54451         (Include): Change to "glthread/lock.h".
54452         * modules/tls (Files, Makefile.am): Update.
54453         (Include): Change to "glthread/tls.h".
54454         * tests/test-lock.c: Update includes.
54455         * tests/test-tls.c: Update includes.
54456         * NEWS: Mention the renamed header files.
54457
54458 2008-08-11  Jim Meyering  <meyering@redhat.com>
54459
54460         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
54461
54462 2008-08-11  Eric Blake  <ebb9@byu.net>
54463
54464         test-c-stack: avoid C99-ism
54465         * tests/test-c-stack.c (main): Fix whitespace, move declaration
54466         before statement.
54467         Reported by Alain Guibert.
54468
54469 2008-08-10  Jim Meyering  <meyering@redhat.com>
54470
54471         ensure that return value of uinttostr et al are not ignored
54472         * lib/inttostr.h (__GNUC_PREREQ): Define.
54473         (__attribute_warn_unused_result__): Define.
54474         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
54475
54476 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
54477
54478         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
54479         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
54480
54481 2008-08-07  Jim Meyering  <meyering@redhat.com>
54482
54483         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54484
54485         * modules/mkstemp (License): Relicense under LGPLv2+.
54486         * modules/tempname (License): Likewise.
54487
54488 2008-08-06  Bruno Haible  <bruno@clisp.org>
54489
54490         * lib/poll.c (poll): Further micro-optimization.
54491
54492 2008-08-06  Jim Meyering  <meyering@redhat.com>
54493
54494         inet_pton.c: use locale-independent tolower
54495         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54496         (inet_pton6): Use c_tolower rather than tolower.
54497         * modules/inet_pton (Depends-on): Add c-ctype.
54498
54499 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54500
54501         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54502         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54503
54504 2008-08-06  Jim Meyering  <meyering@redhat.com>
54505
54506         * modules/inet_pton (License): Relicense under LGPLv2+.
54507
54508 2008-08-03  Bruno Haible  <bruno@clisp.org>
54509
54510         Additional non-aborting API for lock and tls.
54511         * lib/lock.h: Include <errno.h>.
54512         (glthread_lock_init): New macro/function.
54513         (gl_lock_init): Define as wrapper around glthread_lock_init.
54514         (glthread_lock_lock): New macro/function.
54515         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54516         (glthread_lock_unlock): New macro/function.
54517         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54518         (glthread_lock_destroy): New macro/function.
54519         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54520         (glthread_rwlock_init): New macro/function.
54521         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54522         (glthread_rwlock_rdlock): New macro/function.
54523         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54524         (glthread_rwlock_wrlock): New macro/function.
54525         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54526         (glthread_rwlock_unlock): New macro/function.
54527         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54528         (glthread_rwlock_destroy): New macro/function.
54529         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54530         (glthread_recursive_lock_init): New macro/function.
54531         (gl_recursive_lock_init): Define as wrapper around
54532         glthread_recursive_lock_init.
54533         (glthread_recursive_lock_lock): New macro/function.
54534         (gl_recursive_lock_lock): Define as wrapper around
54535         glthread_recursive_lock_lock.
54536         (glthread_recursive_lock_unlock): New macro/function.
54537         (gl_recursive_lock_unlock): Define as wrapper around
54538         glthread_recursive_lock_unlock.
54539         (glthread_recursive_lock_destroy): New macro/function.
54540         (gl_recursive_lock_destroy): Define as wrapper around
54541         glthread_recursive_lock_destroy.
54542         (glthread_once): New macro/function.
54543         (gl_once): Define as wrapper around glthread_once.
54544         Update function declarations.
54545         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54546         glthread_rwlock_init. Return error code.
54547         (glthread_rwlock_rdlock_multithreaded): Renamed from
54548         glthread_rwlock_rdlock. Return error code.
54549         (glthread_rwlock_wrlock_multithreaded): Renamed from
54550         glthread_rwlock_wrlock. Return error code.
54551         (glthread_rwlock_unlock_multithreaded): Renamed from
54552         glthread_rwlock_unlock. Return error code.
54553         (glthread_rwlock_destroy_multithreaded): Renamed from
54554         glthread_rwlock_destroy. Return error code.
54555         (glthread_recursive_lock_init_multithreaded): Renamed from
54556         glthread_recursive_lock_init. Return error code.
54557         (glthread_recursive_lock_lock_multithreaded): Renamed from
54558         glthread_recursive_lock_lock. Return error code.
54559         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54560         glthread_recursive_lock_unlock. Return error code.
54561         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54562         glthread_recursive_lock_destroy. Return error code.
54563         (glthread_once_call): Make static.
54564         (glthread_once_multithreaded): Renamed from glthread_once.
54565         * lib/tls.h: Include <errno.h>.
54566         (glthread_tls_key_init): New macro/function.
54567         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54568         (glthread_tls_set): New macro/function.
54569         (gl_tls_set): Define as wrapper around glthread_tls_set.
54570         (glthread_tls_key_destroy): New macro/function.
54571         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54572         Update function declarations.
54573         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54574         glthread_tls_get.
54575         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54576
54577 2008-08-04  Eric Blake  <ebb9@byu.net>
54578
54579         gnumakefile: use space, not TAB, outside of targets
54580         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54581
54582 2008-08-02  Jim Meyering  <meyering@redhat.com>
54583
54584         getdate.y: avoid locale-dependent date parsing failure
54585         In Turkish locales, getdate would fail to recognize keywords
54586         containing a lowercase "i".  The solution is not to rely on
54587         locale-sensitive case-conversion.
54588         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54589         (lookup_word): Use c_toupper in place of toupper.
54590         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54591         Reported by Vefa Bicakci <bicave@superonline.com> in
54592         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54593         * modules/getdate (Depends-on): Add c-ctype.
54594
54595 2008-08-02  Bruno Haible  <bruno@clisp.org>
54596
54597         * gnulib-tool (func_import): When updating or creating a .gitignore
54598         file, prepend each added line with a slash, and ignore leading slashes
54599         from the existing lines.
54600         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54601
54602 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54603
54604         Portability fix for GNU make 3.79.1.
54605         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54606         versions do not understand.
54607
54608 2008-08-01  Bruno Haible  <bruno@clisp.org>
54609
54610         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54611         * tests/test-isnanf.h (zero): New variable.
54612         (main): Avoid literal -0.0f.
54613         * tests/test-isnand.h (zero): New variable.
54614         (main): Avoid literal -0.0.
54615         * tests/test-isnanl.h (zero): New variable.
54616         (main): Avoid literal -0.0L.
54617         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54618         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54619         -0.0, -0.0L.
54620         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54621         (test_signbitd): Avoid literal -0.0.
54622         (test_signbitl): Avoid literal -0.0L.
54623         * tests/test-ceilf1.c (zero): New variable.
54624         (main): Avoid literal -0.0f.
54625         * tests/test-ceill.c (zero): New variable.
54626         (main): Avoid literal -0.0L.
54627         * tests/test-floorf1.c (zero): New variable.
54628         (main): Avoid literal -0.0f.
54629         * tests/test-floorl.c (zero): New variable.
54630         (main): Avoid literal -0.0L.
54631         * tests/test-roundf1.c (zero): New variable.
54632         (main): Avoid literal -0.0f.
54633         * tests/test-round1.c (zero): New variable.
54634         (main): Avoid literal -0.0.
54635         * tests/test-roundl.c (zero): New variable.
54636         (main): Avoid literal -0.0L.
54637         * tests/test-truncf1.c (zero): New variable.
54638         (main): Avoid literal -0.0f.
54639         * tests/test-trunc1.c (zero): New variable.
54640         (main): Avoid literal -0.0.
54641         * tests/test-truncl.c (zero): New variable.
54642         (main): Avoid literal -0.0L.
54643         * tests/test-frexp.c (zero): New variable.
54644         (main): Avoid literal -0.0.
54645         * tests/test-frexpl.c (zero): New variable.
54646         (main): Avoid literal -0.0L.
54647         * tests/test-ldexpl.c (zero): New variable.
54648         (main): Avoid literal -0.0L.
54649         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54650         (zerod, zerol): New variables.
54651         (test_function): Avoid literals -0.0, -0.0L.
54652         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54653         (zerod, zerol): New variables.
54654         (test_function): Avoid literals -0.0, -0.0L.
54655         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54656         (zerod, zerol): New variables.
54657         (test_function): Avoid literals -0.0, -0.0L.
54658         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54659         (zerod, zerol): New variables.
54660         (test_function): Avoid literals -0.0, -0.0L.
54661         * tests/test-strtod.c (zero): New variable.
54662         (main): Avoid literal -0.0.
54663         Reported by Jonathan C. Patschke <jp@centtech.com>.
54664
54665 2008-07-31  Jim Meyering  <meyering@redhat.com>
54666
54667         sha256.h: correct definition of SHA224_DIGEST_SIZE
54668         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54669         Reported by Paulie Pena IV <paulie4@gmail.com>.
54670         Define as 224 / 8, rather than as a literal.
54671         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54672         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54673         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54674
54675 2008-07-31  Bruno Haible  <bruno@clisp.org>
54676
54677         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54678         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54679         Reported by Jonathan Patschke <jp@centtech.com>.
54680
54681 2008-07-31  Bruno Haible  <bruno@clisp.org>
54682
54683         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54684         Reported by Paolo Bonzini <bonzini@gnu.org>.
54685
54686 2008-07-30  Eric Blake  <ebb9@byu.net>
54687
54688         test-strtod: allow compilation without -lm
54689         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54690         Reported by Dennis Clarke <blastwave@gmail.com>.
54691
54692 2008-07-28  Jim Meyering  <meyering@redhat.com>
54693
54694         bootstrap: work also when there are no .po files in po/
54695         * build-aux/bootstrap (update_po_files): Complete the change
54696         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54697
54698 2008-07-27  Jim Meyering  <meyering@redhat.com>
54699
54700         * users.txt: Add zile.
54701
54702 2008-07-26  Ben Pfaff  <blp@gnu.org>
54703
54704         Add missing dependencies on new m4/exponent[fdl].m4 files.
54705         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54706         * modules/isnand-nolibm: Add m4/exponentd.m4.
54707         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54708         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54709         m4/isnan[fdl].m4, because the macros actually used moved.
54710         Reported by Jim Meyering.
54711
54712 2008-07-14  Ben Pfaff  <blp@gnu.org>
54713
54714         Add isinf module.
54715         * lib/isinf.c: New file.
54716         * lib/math.in.h: Define isinf macro if we have decided to replace
54717         it.
54718         * m4/isinf.m4: New file.
54719         * m4/math_h.m4: Initialize and substitute variables for isinf
54720         module.
54721         * modules/isinf: New file.
54722         * modules/isinf-tests: New file.
54723         * modules/math: Add substitutions for new module.
54724         * tests/test-isinf.c: New file.
54725         * doc/posix-functions/isinf.texi: Mention new module.
54726         * MODULES.html.sh: Mention new module.
54727
54728 2008-07-14  Ben Pfaff  <blp@gnu.org>
54729
54730         Factor out some macros for use by additional modules.
54731         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54732         exponentf.m4.
54733         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54734         exponentd.m4.
54735         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54736         file exponentl.m4.
54737         * m4/exponentf.m4: New file.
54738         * m4/exponentd.m4: New file.
54739         * m4/exponentl.m4: New file.
54740         * modules/isnanf: Use new file m4/exponentf.m4.
54741         * modules/isnand: Use new file m4/exponentd.m4.
54742         * modules/isnanl: Use new file m4/exponentl.m4.
54743
54744 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54745
54746         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54747         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54748         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54749         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54750
54751         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54752         readlink on platforms without PATH_MAX.
54753
54754 2008-07-21  Eric Blake  <ebb9@byu.net>
54755
54756         Warn, not fail, on stale version.
54757         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54758
54759         Don't allow installation with stale devel version number.
54760         * top/GNUmakefile (_is-install-target): New macro.
54761         (_curr-ver): Forbid installation with stale version number.
54762
54763 2008-07-20  Bruno Haible  <bruno@clisp.org>
54764
54765         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54766         TESTS_ENVIRONMENT.
54767         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54768
54769 2008-07-20  Bruno Haible  <bruno@clisp.org>
54770
54771         * lib/c-stack.h (c_stack_action): Add documentation.
54772         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54773
54774 2008-07-20  Bruno Haible  <bruno@clisp.org>
54775
54776         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54777         * modules/readlink (License): Likewise.
54778
54779 2008-07-17  Eric Blake  <ebb9@byu.net>
54780
54781         * modules/c-stack (Link): Fix typo.
54782
54783         Make c-stack use libsigsegv, when available.
54784         * modules/c-stack (Depends-on): Add libsigsegv.
54785         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54786         needed.
54787         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54788         (segv_handler, overflow_handler, c_stack_action)
54789         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54790         implementation when libsigsegv is available, but only when using
54791         the library is necessary.
54792         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54793         comment, explaining why XSI check fails on Linux.
54794         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54795         * tests/test-c-stack2.sh: Tweak skip message.
54796         * NEWS: Document new link-time requirements.
54797
54798 2008-07-16  Eric Blake  <ebb9@byu.net>
54799
54800         c-stack: Expose false positives when not using libsigsegv.
54801         * modules/c-stack-tests (Files): Expand test.
54802         * tests/test-c-stack.c (main): Add means to conditionally trigger
54803         non-overflow SIGSEGV.
54804         * tests/test-c-stack2.sh: New file.
54805
54806 2008-07-14  Bruno Haible  <bruno@clisp.org>
54807
54808         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54809         Reported by Eric Blake.
54810
54811 2008-07-14  Sam Steingold  <sds@gnu.org>
54812             Bruno Haible  <bruno@clisp.org>
54813
54814         New module libsigsegv.
54815         * modules/libsigsegv: New file.
54816         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54817         modifications.
54818         * MODULES.html.sh (Signal handling): New section.
54819
54820 2008-07-14  Bruno Haible  <bruno@clisp.org>
54821
54822         * modules/unictype/ctype-* (Description): Add the word "function".
54823         Improves the resulting doc in MODULES.html.
54824
54825 2008-07-12  Ben Pfaff  <blp@gnu.org>
54826
54827         Add longlong module.
54828         * modules/longlong: New file.
54829
54830 2008-07-12  Bruno Haible  <bruno@clisp.org>
54831
54832         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54833         to empty.
54834
54835 2008-07-10  Ben Pfaff  <blp@gnu.org>
54836
54837         Add isnan module.
54838         * doc/posix-functions/isnan.texi: Mention new module.
54839         * lib/math.in.h: Define isnan macro if we have decided to replace
54840         it.
54841         * m4/isnan.m4: New file.
54842         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54843         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54844         also.
54845         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54846         redundancy.
54847         * m4/math_h.m4: Initialize and substitute variables for isnan
54848         module.
54849         * modules/isnan: New file.
54850         * modules/isnan-tests: New file.
54851         * modules/math: Add substitutions for new module.
54852         * tests/test-isnan.c: New file.
54853         * MODULES.html.sh: Mention new module.
54854
54855 2008-07-10  Ben Pfaff  <blp@gnu.org>
54856
54857         Add isnanf module.
54858         * lib/isnanf.m4: New file.
54859         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54860         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54861         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54862         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54863         * modules/isnanf: New file.
54864         * modules/isnanf-tests: New file.
54865         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54866         files.
54867         * tests/test-isnanf-nolibm.c: factored most of its contents into
54868         new file tests/test-isnanf.h.
54869         * tests/test-isnanf.h: New file.
54870         * tests/test-isnanf.c: New file.
54871         * MODULES.html.sh: Mention new module.
54872         * doc/glibc-functions/isnanf.texi: Mention new module.
54873
54874 2008-07-10  Ben Pfaff  <blp@gnu.org>
54875
54876         Add isnand module.
54877         * lib/isnand.h: New file.
54878         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54879         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54880         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54881         functionality also.
54882         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54883         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54884         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54885         * modules/isnand: New file.
54886         * modules/isnand-tests: New file.
54887         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54888         files.
54889         * tests/test-isnand-nolibm.c: factored most of its contents into
54890         new file tests/test-isnand.h.
54891         * tests/test-isnand.h: New file.
54892         * tests/test-isnand.c: New file.
54893         * MODULES.html.sh: Mention new module.
54894
54895 2008-07-10  Ben Pfaff  <blp@gnu.org>
54896
54897         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54898         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54899         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54900         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54901         * modules/isnanf-nolibm: Update references to renamed files.
54902         * modules/isnand-nolibm: Likewise.
54903         * modules/isnanf-nolibm-tests: Likewise.
54904         * modules/isnand-nolibm-tests: Likewise.
54905         * lib/frexp.c: Likewise.
54906         * lib/isfinite.c: Likewise.
54907         * lib/signbitd.c: Likewise.
54908         * lib/signbitf.c: Likewise.
54909         * lib/vasnprintf.c: Likewise.
54910         * tests/test-ceilf1.c: Likewise.
54911         * tests/test-ceilf2.c: Likewise.
54912         * tests/test-floorf1.c: Likewise.
54913         * tests/test-floorf2.c: Likewise.
54914         * tests/test-frexp.c: Likewise.
54915         * tests/test-round1.c: Likewise.
54916         * tests/test-round2.c: Likewise.
54917         * tests/test-roundf1.c: Likewise.
54918         * tests/test-strtod.c: Likewise.
54919         * tests/test-trunc1.c: Likewise.
54920         * tests/test-trunc2.c: Likewise.
54921         * tests/test-truncf1.c: Likewise.
54922         * tests/test-truncf2.c: Likewise.
54923         * NEWS: Mention the renamed header files.
54924
54925 2008-07-11  Jim Meyering  <meyering@redhat.com>
54926
54927         vc-list-files: make the last-resort awk code more portable
54928         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54929         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54930         does not support it.
54931
54932 2008-07-10  Eric Blake  <ebb9@byu.net>
54933
54934         Work with tar's bootstrap.
54935         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54936         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54937         an m4 comment.
54938
54939 2008-07-09  Jim Meyering  <meyering@redhat.com>
54940
54941         posix-shell.m4: fix typo that made this test malfunction
54942         * m4/posix-shell.m4: Remove capitalization in variable name.
54943
54944 2008-07-08  Bruno Haible  <bruno@clisp.org>
54945
54946         * m4/onceonly.m4: Update comments.
54947         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54948
54949 2008-07-04  Jim Meyering  <meyering@redhat.com>
54950
54951         * users.txt: Add vc-dwim.
54952         (bison, coreutils): Use the gitweb URL.
54953
54954 2008-07-03  Jim Meyering  <meyering@redhat.com>
54955
54956         * users.txt: Add libffcall.  From Sam Steingold.
54957
54958 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54959
54960         getdate.y: do not ignore TZ with relative day, month or year offset
54961         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54962         relative-date-handling, since otherwise, the latter would clobber the
54963         sole output (an updated Start value) of the tz-handling block.
54964         * tests/test-getdate.c: Tests for the fix
54965
54966 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54967
54968         Recognize 'foo_LIBRARIES += libgnu.a'.
54969         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54970         makefile snippet has already specified an installation location,
54971         also using '+='.
54972
54973 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54974
54975         getdate.y: factor out common actions
54976         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54977         Use them in place of open-coded actions.
54978
54979 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54980
54981         Add self-test for getdate module.
54982         * modules/getdate-tests: New file.
54983         * tests/test-getdate.c: New file.
54984
54985 2008-06-29  Bruno Haible  <bruno@clisp.org>
54986
54987         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54988         .gitignore.
54989         Reported by Sylvain Beucler <beuc@beuc.net>.
54990
54991 2008-06-29  Bruno Haible  <bruno@clisp.org>
54992
54993         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54994         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54995
54996 2008-06-29  Bruno Haible  <bruno@clisp.org>
54997
54998         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54999         EXTRA_DIST.
55000         Reported by Sylvain Beucler <beuc@beuc.net>.
55001
55002 2008-06-26  Jim Meyering  <meyering@redhat.com>
55003
55004         make several modules depend on the "open" module
55005         This provides slightly increased consistency when opening-for-write
55006         the name of a non-directory spelled with a trailing slash.
55007         * modules/chdir-safer: Likewise.
55008         * modules/chown: Likewise.
55009         * modules/clean-temp: Likewise.
55010         * modules/copy-file: Likewise.
55011         * modules/fchdir: Likewise.
55012         * modules/fcntl-safer: Likewise.
55013         * modules/pipe: Likewise.
55014         * modules/utime: Likewise.
55015         Prompted by Eric Blake and Bruno Haible.
55016
55017 2008-06-24  Andreas Schwab  <schwab@suse.de>
55018
55019         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55020         literals can be used as initializers for global variables.
55021
55022 2008-06-23  Eric Blake  <ebb9@byu.net>
55023
55024         Make gnulib-cache.m4 easier to diff.
55025         * gnulib-tool (func_import): Allow newlines when reading cached
55026         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55027
55028 2008-06-23  Bruno Haible  <bruno@clisp.org>
55029
55030         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55031         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55032         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55033         m4/signalblocking.m4.
55034         (gl_PREREQ_SIGACTION): Don't invoke it.
55035         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55036         gl_PREREQ_SIG_HANDLER_H.
55037         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55038         Don't check for sigaction here.
55039
55040 2008-06-23  Bruno Haible  <bruno@clisp.org>
55041
55042         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55043         (install_handlers): Don't set the SA_RESETHAND flag.
55044
55045 2008-06-23  Bruno Haible  <bruno@clisp.org>
55046
55047         * m4/sigaction.m4: Comment fixes.
55048         * lib/signal.in.h: Likewise.
55049
55050 2008-06-23  Eric Blake  <ebb9@byu.net>
55051
55052         Fix typo.
55053         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55054
55055         Avoid SA_ namespace.
55056         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55057         Reported by Ralf Wildenhues.
55058
55059         Avoid test failure due to SA_RESTORER.
55060         * tests/test-sigaction.c (SA_MASK): New macro.
55061         (main): Avoid failing due to extension flags being set.
55062         Reported by Jim Meyering.
55063
55064         Revert use of sig-handler.h in sigprocmask.c.
55065         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55066         it requires the existence of struct sigaction.
55067         * lib/sigprocmask.c (handler_t): Restore typedef.
55068         (rpl_signal, old_handlers): Use local type.
55069
55070 2008-06-22  Bruno Haible  <bruno@clisp.org>
55071
55072         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55073         conditionally.
55074         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55075
55076 2008-06-22  Bruno Haible  <bruno@clisp.org>
55077
55078         * doc/posix-functions/siginterrupt.texi: Move note.
55079
55080         * lib/signal.in.h (SA_RESTART): New macro.
55081         * lib/sigaction.c: Update comment.
55082
55083         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55084
55085         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55086         (gl_PREREQ_SIGPROCMASK): Invoke it.
55087         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55088
55089         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55090
55091         * lib/sigprocmask.c: Update a comment.
55092
55093 2008-06-21  Eric Blake  <ebb9@byu.net>
55094
55095         Use sigaction module rather than signal().
55096         * modules/c-stack (Depends-on): Add sigaction.
55097         * modules/fatal-signal (Depends-on): Likewise.
55098         * modules/nanosleep (Depends-on): Likewise.
55099         * modules/sigprocmask (Files): Add sig-handler.h.
55100         * modules/sigaction (Files): Likewise.
55101         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55102         Eggert.
55103         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55104         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55105         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55106         (init_fatal_signals): Likewise.
55107         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55108         (siginterrupt): Delete fallback.
55109         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55110         instead.
55111         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55112         siginterrupt.
55113
55114         New module sigaction, for mingw.
55115         * modules/sigaction: New module...
55116         * modules/sigaction-tests: ...and its test.
55117         * m4/sigaction.m4: New file.
55118         * lib/sigaction.c: Likewise.
55119         * tests/test-sigaction.c: Likewise.
55120         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55121         * modules/signal (Makefile.am): Likewise.
55122         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55123         needed.
55124         * doc/posix-headers/signal.texi (signal.h): Mention provided
55125         types.
55126         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55127         that sigaction is preferable.
55128         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55129         module.
55130         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55131         sigaction.
55132
55133         Improve robustness of sigprocmask by overriding signal.
55134         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55135         is in use.
55136         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55137         (SIGKILL, SIGSTOP): Provide fallbacks.
55138         (rpl_signal): Implement.
55139         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55140         signal can be called inside handlers.
55141
55142         Fix nanosleep module on mingw.
55143         * modules/nanosleep (Depends-on): Add sys_select.
55144         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55145
55146         Fix licensing of sigprocmask.
55147         * modules/raise (License): Relicense as LGPL.
55148
55149 2008-06-21  Bruno Haible  <bruno@clisp.org>
55150
55151         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55152         result if it contains question marks.
55153         Reported by Michael Geng <linux@michaelgeng.de>.
55154
55155 2008-06-19  Bruno Haible  <bruno@clisp.org>
55156
55157         Fix CVS-ism.
55158         * doc/gnulib.texi: Include updated-stamp.texi.
55159         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55160         (updated-stamp.texi): New rule.
55161         (gnulib.info): Depend on it.
55162         * doc/.gitignore: Add updated-stamp.texi.
55163         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55164
55165 2008-06-19  Bruno Haible  <bruno@clisp.org>
55166
55167         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55168         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55169
55170 2008-06-19  Eric Blake  <ebb9@byu.net>
55171
55172         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55173         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55174         Reported by Stepan Kasal.
55175
55176 2008-06-18  Bruno Haible  <bruno@clisp.org>
55177
55178         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55179         Reported by Eric Blake.
55180
55181 2008-06-18  Eric Blake  <ebb9@byu.net>
55182
55183         Work around cygwin 1.5.25 strsignal bug.
55184         * tests/test-strsignal.c: Allow for const char *.
55185         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55186
55187 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55188
55189         * users.txt: Update URL to article and add author/date
55190         information.
55191
55192 2008-06-17  Bruno Haible  <bruno@clisp.org>
55193
55194         New macro gl_DISABLE_THREADS.
55195         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55196         if the user did not pass --enable-threads or --disable-threads option.
55197         (gl_DISABLE_THREADS): New macro.
55198         Reported by Eric Blake <ebb9@byu.net>.
55199
55200 2008-06-17  Bruno Haible  <bruno@clisp.org>
55201
55202         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55203         when the macro ignores it.
55204         Based on a patch by Eric Blake <ebb9@byu.net>.
55205
55206 2008-06-17  Bruno Haible  <bruno@clisp.org>
55207
55208         * modules/tls (License): Change to LGPLv2+.
55209         Reported by Eric Blake.
55210
55211 2008-06-17  Eric Blake  <ebb9@byu.net>
55212
55213         Simplify c-stack prerequisites.
55214         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55215         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55216         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55217         check.
55218         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55219         <sys/resource.h>.
55220
55221         Move c-stack test into testsuite.
55222         * modules/c-stack-tests: New file.
55223         * lib/c-stack.c [DEBUG]: Move test program...
55224         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55225         fail test if sigaltstack is lacking.
55226         * tests/test-c-stack.sh: New driver file.
55227
55228 2008-06-16  Eric Blake  <ebb9@byu.net>
55229
55230         Use raise module consistently.
55231         * modules/fatal-signal (Depends-on): Add raise.
55232         * modules/sigprocmask (Depends-on): Likewise.
55233         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55234         * lib/sigprocmask.c (sigprocmask): Likewise.
55235         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55236         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55237
55238         Fix compliance bug in sigpending.
55239         * lib/sigprocmask.c (sigpending): Return pending array via
55240         parameter, not return value.
55241
55242 2008-06-14  Eric Blake  <ebb9@byu.net>
55243
55244         Improve obstack-printf test code.
55245         * tests/test-obstack-printf.c (test_function): Fix comment, and
55246         simplify usage of obstack_* in macros.  Add a test for coverage.
55247         Reported by Bruno Haible.
55248
55249 2008-06-14  Bruno Haible  <bruno@clisp.org>
55250
55251         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55252         array size as a constant, not as a const variable.
55253         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55254         AC_USE_SYSTEM_EXTENSIONS.
55255         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
55256         Test whether the obstack_printf function actually exists.
55257         * modules/obstack-printf (Depends-on): Add extensions.
55258         (Include): Remove obstack.h.
55259         * modules/obstack-printf-posix (Depends-on): Add extensions.
55260         (Include): Remove obstack.h.
55261
55262 2008-06-13  Eric Blake  <ebb9@byu.net>
55263
55264         Add obstack-printf and obstack-printf-posix modules.
55265         * modules/obstack-printf: New file.
55266         * modules/obstack-printf-posix: Likewise.
55267         * MODULES.html.sh (Misc): Mention them.
55268         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55269         Likewise.
55270         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55271         Likewise.
55272         * modules/stdio (Makefile.am): Accomodate new modules.
55273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55274         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55275         Declare.
55276         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55277         functions.
55278         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55279         (gl_REPLACE_OBSTACK_PRINTF): New macros
55280         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55281         * tests/test-obstack-printf.c: New file.
55282         * modules/obstack-printf-tests: Likewise.
55283         * modules/obstack-printf-posix-tests: Likewise.
55284
55285 2008-06-11  Bruno Haible  <bruno@clisp.org>
55286
55287         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55288         * lib/open.c: Include errno.h.
55289         (open): Fail when attempting to write to a file that has a trailing
55290         slash.
55291         * tests/test-open.c (main): Test against trailing slash bug.
55292         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55293
55294 2008-06-10  Bruno Haible  <bruno@clisp.org>
55295
55296         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55297         for $? to work inside the trap command, with various /bin/sh-s.
55298         * tests/test-vc-list-files-cvs.sh: Likewise.
55299
55300 2008-06-10  Bruno Haible  <bruno@clisp.org>
55301
55302         * lib/acl-internal.h: Don't include gettext.h here.
55303         * lib/set-mode-acl.c: Include gettext.h here.
55304         * lib/copy-acl.c: Likewise.
55305
55306 2008-06-10  Bruno Haible  <bruno@clisp.org>
55307
55308         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55309         * lib/wait-process.c (wait_subprocess): Likewise.
55310         * lib/execute.h (execute): Add termsigp argument.
55311         * lib/execute.c (execute): Likewise.
55312         * lib/csharpcomp.c (compile_csharp_using_pnet,
55313         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55314         * lib/csharpexec.c (execute_csharp_using_pnet,
55315         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55316         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55317         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55318         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55319         is_jikes_present): Update.
55320         * lib/javaexec.c (execute_java_class): Update.
55321         * lib/javaversion.c (execute_and_read_line): Update.
55322         * NEWS: Document the changes.
55323         Reported by Eric Blake.
55324
55325 2008-06-10  Eric Blake  <ebb9@byu.net>
55326
55327         Add missing include.
55328         * tests/test-strstr.c (includes): Add <signal.h>.
55329         * tests/test-strcasestr.c (includes): Likewise.
55330         * tests/test-memmem.c (includes): Likewise.
55331
55332 2008-06-10  Bruno Haible  <bruno@clisp.org>
55333
55334         * lib/wait-process.c (wait_subprocess): Add an assertion.
55335
55336 2008-06-10  Bruno Haible  <bruno@clisp.org>
55337
55338         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55339
55340 2008-06-10  Bruno Haible  <bruno@clisp.org>
55341
55342         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
55343         using alarm().
55344         * tests/test-strcasestr.c (main): Likewise.
55345         * tests/test-strstr.c (main): Likewise.
55346
55347 2008-06-09  Bruno Haible  <bruno@clisp.org>
55348
55349         Work around the Solaris 10 ACE ACLs ABI change.
55350         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
55351         declare if ACL_NO_TRIVIAL is present.
55352         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
55353         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
55354         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
55355         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
55356         define if ACL_NO_TRIVIAL is present.
55357         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
55358         and use the current ABI.
55359         (file_has_acl): Use same #if condition as elsewhere.
55360         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
55361         in use, and use the current ABI.
55362         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
55363         Reported by Jim Meyering.
55364
55365 2008-06-09  Eric Blake  <ebb9@byu.net>
55366
55367         Work around environments that (stupidly) ignore SIGALRM.
55368         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
55369         before using alarm().
55370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55371         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55372         Reported by Ian Beckwith <ianb@erislabs.net>.
55373
55374         Produce autobuild blurb earlier in log.
55375         * modules/autobuild (configure.ac-early): Move AB_INIT here.
55376
55377 2008-06-09  Jim Meyering  <meyering@redhat.com>
55378         and OndÅ™ej Vašík  <ovasik@redhat.com>
55379
55380         utimens.c: correct kernel bug work-around
55381         OndÅ™ej Vašík found that the invalid return value of 280 indicates
55382         failure, not success, and the kernel bug we're trying to work
55383         around affects not just the utimensat call, but also the fallback
55384         futimens call.
55385         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55386         not success.
55387         [HAVE_FUTIMENS]: Use the same work-around, here.
55388
55389 2008-06-09  Jim Meyering  <meyering@redhat.com>
55390
55391         add more guards around definition of ACE_-related code
55392         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55393         ALLOW and ACE_OWNER are also defined.
55394
55395 2008-06-08  Bruno Haible  <bruno@clisp.org>
55396
55397         * lib/acl-internal.h: Add me as co-author.
55398         * lib/file-has-acl.c: Likewise.
55399         * lib/set-mode-acl.c: Likewise.
55400         * lib/copy-acl.c: Likewise.
55401
55402 2008-06-08  Bruno Haible  <bruno@clisp.org>
55403
55404         Add support for AIX ACLs.
55405         * lib/acl-internal.h (acl_nontrivial): New declaration.
55406         * lib/file-has-acl.c (acl_nontrivial): New function.
55407         (file_has_acl): Add implementation using AIX 4 ACL API.
55408         * lib/set-mode-acl.c (qset_acl): Likewise.
55409         * lib/copy-acl.c (qcopy_acl): Likewise.
55410
55411 2008-06-08  Bruno Haible  <bruno@clisp.org>
55412
55413         Add support for HP-UX ACLs.
55414         * lib/acl-internal.h (acl_nontrivial): New declaration.
55415         * lib/file-has-acl.c (acl_nontrivial): New function.
55416         (file_has_acl): Add implementation using HP-UX 11 ACL API.
55417         * lib/set-mode-acl.c (qset_acl): Likewise.
55418         * lib/copy-acl.c (qcopy_acl): Likewise.
55419
55420 2008-06-08  Bruno Haible  <bruno@clisp.org>
55421
55422         Add support for Cygwin ACLs.
55423         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
55424         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
55425         the chmod_or_fchmod call.
55426         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55427
55428 2008-06-08  Bruno Haible  <bruno@clisp.org>
55429
55430         Fix bug with setuid modes in Solaris 10+ code.
55431         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55432         succeeded, when the mode contains some special bits.
55433
55434 2008-06-08  Bruno Haible  <bruno@clisp.org>
55435
55436         Add support for Solaris 7..10 ACLs.
55437         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
55438         declarations.
55439         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
55440         functions.
55441         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
55442         * lib/set-mode-acl.c (qset_acl): Likewise.
55443         * lib/copy-acl.c (qcopy_acl): Likewise.
55444
55445 2008-06-08  Bruno Haible  <bruno@clisp.org>
55446
55447         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
55448         declaration.
55449         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
55450         (acl_access_nontrivial): Remove MacOS X case.
55451         (file_has_acl): Use acl_extended_nontrivial.
55452         * lib/copy-acl.c (qcopy_acl): Likewise.
55453
55454 2008-06-08  Bruno Haible  <bruno@clisp.org>
55455
55456         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
55457
55458 2008-06-08  Jim Meyering  <meyering@redhat.com>
55459
55460         * modules/acl (Maintainer): Add Bruno Haible.
55461
55462 2008-06-07  Bruno Haible  <bruno@clisp.org>
55463
55464         Improve support for Tru64 ACLs.
55465         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
55466         ACL on OSF/1.
55467
55468 2008-06-07  Bruno Haible  <bruno@clisp.org>
55469
55470         Add support for MacOS X ACLs.
55471         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
55472         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
55473         * lib/set-mode-acl.c (qset_acl): Likewise.
55474         * lib/copy-acl.c (qcopy_acl): Likewise.
55475
55476 2008-06-07  Bruno Haible  <bruno@clisp.org>
55477
55478         Fix memory leak introduced on 2008-05-22.
55479         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
55480         use.
55481
55482 2008-06-07  Bruno Haible  <bruno@clisp.org>
55483
55484         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55485         to construct an empty ACL.
55486
55487 2008-06-07  Bruno Haible  <bruno@clisp.org>
55488
55489         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55490         precisely.
55491         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55492
55493 2008-06-07  Bruno Haible  <bruno@clisp.org>
55494
55495         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55496         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55497
55498 2008-06-07  Bruno Haible  <bruno@clisp.org>
55499
55500         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55501         regardless of POSIX.
55502         * doc/posix-functions/_longjmp.texi: Likewise.
55503         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55504         SystemV platform in this case.
55505
55506 2008-06-06  Eric Blake  <ebb9@byu.net>
55507
55508         Document abort() bugs.
55509         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55510
55511         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55512         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55513         sigsetjmp.
55514         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55515         siglongjmp, but only as a macro.
55516         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55517         is obsolete.
55518         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55519
55520         Tweak documentation to cover cygwin argz bugs.
55521         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55522         argz bug fix; no code change needed since no cygwin releases
55523         occurred between the last fix and the bug being tested.
55524         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55525         module and recently fixed cygwin bugs.
55526         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55527         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55528         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55529         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55530         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55531         Likewise.
55532         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55533         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55534         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55535         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55536         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55537         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55538         Likewise.
55539
55540         Avoid gcc warning on cygwin.
55541         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55542         !ACL_NO_TRIVIAL]: Avoid unused variable.
55543
55544 2008-06-05  Eric Blake  <ebb9@byu.net>
55545
55546         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55547         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55548         git-version-gen fails to come up with a version.
55549         Reported by Simon Josefsson.
55550
55551 2008-06-05  Jim Meyering  <meyering@redhat.com>
55552             Paul Eggert  <eggert@cs.ucla.edu>
55553
55554         utimens.c: work around a probable Linux kernel bug
55555         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55556         appears to be a kernel bug that causes utimensat to return 280
55557         instead of 0, indicating success.
55558
55559 2008-06-04  Bruno Haible  <bruno@clisp.org>
55560
55561         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55562         2008-06-01 commit.
55563
55564 2008-06-04  Bruno Haible  <bruno@clisp.org>
55565
55566         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55567         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55568         (file_has_acl): Use it. Save errno afterwards.
55569         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55570
55571 2008-06-03  Bruno Haible  <bruno@clisp.org>
55572
55573         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55574         draft code. Simplify #ifs.
55575         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55576         Put Solaris code after POSIX-draft code. Fix comments regarding
55577         Solaris 10, HP-UX. Mention Cygwin.
55578         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55579
55580 2008-06-03  Eric Blake  <ebb9@byu.net>
55581
55582         Provide fallback for older kernels.
55583         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55584         Provide runtime fallback if kernel lacks support.
55585         Reported by Mike Frysinger.
55586
55587 2008-06-02  Bruno Haible  <bruno@clisp.org>
55588
55589         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55590         it exists.
55591
55592 2008-06-02  Bruno Haible  <bruno@clisp.org>
55593
55594         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55595         * lib/copy-acl.c (qcopy_acl): Update comment.
55596
55597 2008-06-02  Bruno Haible  <bruno@clisp.org>
55598
55599         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55600         like ACL APIs.
55601
55602 2008-06-02  Bruno Haible  <bruno@clisp.org>
55603
55604         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55605         * tests/test-set-mode-acl.sh: Likewise.
55606         * tests/test-copy-acl.sh: Likewise.
55607         * tests/test-copy-file.sh: Likewise.
55608
55609 2008-06-02  Bruno Haible  <bruno@clisp.org>
55610
55611         * tests/test-file-has-acl.sh: Remove unused code.
55612
55613 2008-06-01  Bruno Haible  <bruno@clisp.org>
55614
55615         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55616         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55617         messages.
55618         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55619
55620 2008-06-01  Bruno Haible  <bruno@clisp.org>
55621
55622         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55623         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55624         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55625         APIs.
55626         * modules/acl-tests (configure.ac): Remove tests now contained in
55627         m4/acl.m4.
55628
55629 2008-06-02  Jim Meyering  <meyering@redhat.com>
55630
55631         announce-gen: use a better key-server host name
55632         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55633         it may be more consistently reliable.  Suggested by Werner Koch
55634         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55635
55636 2008-06-01  Bruno Haible  <bruno@clisp.org>
55637
55638         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55639         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55640
55641 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55642
55643         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55644
55645 2008-06-01  Bruno Haible  <bruno@clisp.org>
55646
55647         New ACL tests.
55648         * tests/test-file-has-acl.sh: New file.
55649         * tests/test-file-has-acl.c: New file.
55650         * tests/test-set-mode-acl.sh: New file.
55651         * tests/test-set-mode-acl.c: New file.
55652         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55653         * tests/test-copy-acl.c: New file.
55654         * modules/acl-tests: New file, based on modules/copy-file-tests.
55655         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55656         (Depends-on): Add acl-tests.
55657         (configure.ac): Remove checks.
55658         (Makefile.am): Don't create test-sameacls program here any more.
55659
55660 2008-06-01  Bruno Haible  <bruno@clisp.org>
55661
55662         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55663         * tests/test-sameacls.c: Include progname.h.
55664         (main): Invoke set_program_name. Portability fixes for MacOS X,
55665         Solaris, HP-UX.
55666
55667 2008-06-01  Bruno Haible  <bruno@clisp.org>
55668
55669         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55670         function.
55671         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55672
55673 2008-06-01  Bruno Haible  <bruno@clisp.org>
55674
55675         * modules/rpmatch (Depends-on): Add strdup.
55676
55677 2008-06-01  Bruno Haible  <bruno@clisp.org>
55678
55679         * lib/pipe.c: Include unistd-safer.h.
55680         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55681         * modules/pipe (Depends-on): Add unistd-safer.
55682
55683 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55684
55685         * modules/autobuild (configure.ac): Call AB_INIT.
55686
55687 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55688
55689         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55690         Suggested by Bruno Haible <bruno@clisp.org>.
55691
55692 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55693
55694         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55695         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55696         <bruno@clisp.org>.
55697
55698 2008-05-29  Eric Blake  <ebb9@byu.net>
55699
55700         Prefer new POSIX 200x interfaces over futimesat.
55701         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55702         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55703         when available.
55704         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55705
55706 2008-05-28  Bruno Haible  <bruno@clisp.org>
55707
55708         * modules/stpcpy (License): Change to LGPLv2+.
55709         Requested by David Lutterkort <dlutter@redhat.com>.
55710
55711 2008-05-27  Bruno Haible  <bruno@clisp.org>
55712
55713         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55714         current mingw.
55715         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55716
55717 2008-05-27  Bruno Haible  <bruno@clisp.org>
55718
55719         * modules/iconv_open (Link): New section, from module 'iconv'.
55720         * modules/striconv (Link): Likewise.
55721         * modules/striconveh (Link): Likewise.
55722         * modules/xstriconv (Link): Likewise.
55723         * modules/unicodeio (Link): Likewise.
55724         * modules/propername (Link): Likewise.
55725         Reported by Jim Meyering.
55726
55727 2008-05-26  Jim Meyering  <meyering@redhat.com>
55728
55729         sha256: do not artificially restrict buffer length to be < 2^32
55730         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55731         uint32_t to size_t.
55732         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55733         to match.
55734
55735         avoid unaligned access errors, e.g., on sparc
55736         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55737         direct access through a possibly-unaligned uint64* pointer.
55738         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55739         direct access through a possibly-unaligned uint32* pointer.
55740         Prompted by this patch from Tom "spot" Callaway:
55741         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55742
55743         sha512.c: fix typo in comment
55744         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55745
55746 2008-05-25  Bruno Haible  <bruno@clisp.org>
55747
55748         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55749         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55750         (Makefile.am): Update lib_SOURCES.
55751
55752 2008-05-25  Bruno Haible  <bruno@clisp.org>
55753
55754         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55755
55756 2008-05-25  Jim Meyering  <meyering@redhat.com>
55757
55758         useless-if-before-free: freed expr may have white-space differences
55759         * build-aux/useless-if-before-free: Recognize cases in which the
55760         freed expression differs from the tested one in embedded white
55761         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55762         $1 was used, so we can't make any regexp shy.  Improved tests now
55763         detect this.
55764
55765         useless-if-before-free: accept white space in the expression.
55766         * build-aux/useless-if-before-free: For now, any white space
55767         in the expression must be identical in the free argument.
55768
55769         useless-if-before-free: efficiency tweak
55770         * build-aux/useless-if-before-free: Make the expression-matching
55771         regexp "shy".
55772         Make the *outer* regexp shy, not the expr-matching one.
55773
55774         update code-in-comment to accept cast of free arg
55775         * build-aux/useless-if-before-free: Update regexp.
55776
55777 2008-05-25  Bruno Haible  <bruno@clisp.org>
55778
55779         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55780         * modules/copy-file-tests (Files, Makefile.am): Update.
55781         * tests/test-copy-file.c (func_test_copy): Update.
55782
55783 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55784
55785         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55786
55787 2008-05-23  Bruno Haible  <bruno@clisp.org>
55788
55789         Improve support for ACLs on OSF/1.
55790         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55791         Remove fallback for unknown flavors of ACLs.
55792
55793 2008-05-22  Bruno Haible  <bruno@clisp.org>
55794
55795         Add support for ACLs on OSF/1.
55796         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55797         replacements.
55798         (acl_free_text): New macro fallback.
55799         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55800         acl_free.
55801         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55802         acl_free_text function. Require AC_C_INLINE.
55803
55804 2008-05-22  Bruno Haible  <bruno@clisp.org>
55805
55806         Make copy_acl work on MacOS X 10.5.
55807         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55808         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55809         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55810         If MODE_INSIDE_ACL, don't assume that every system has the same text
55811         representation for ACLs as FreeBSD.
55812         * lib/copy-acl.c (copy_acl): Add support for platforms with
55813         !MODE_INSIDE_ACL.
55814         * lib/file-has-acl.c (file_has_acl): Likewise.
55815         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55816         FreeBSD, MacOS X, or IRIX, respectively.
55817
55818 2008-05-22  Bruno Haible  <bruno@clisp.org>
55819
55820         * lib/acl.h: Don't include <sys/acl.h>.
55821         (GETACLCNT): Move fallback to lib/acl-internal.h.
55822         * lib/acl-internal.h: Include <sys/acl.h> here.
55823         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55824
55825 2008-05-22  Bruno Haible  <bruno@clisp.org>
55826
55827         Split off copy_acl function to separate file.
55828         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55829         * lib/acl.c (copy_acl): Moved function to separate file.
55830         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55831         * modules/acl (Files): Add lib/copy-acl.c.
55832         (Makefiles.am): Augment lib_SOURCES.
55833
55834 2008-05-22  Bruno Haible  <bruno@clisp.org>
55835
55836         * modules/copy-file-tests: New file.
55837         * tests/test-copy-file.sh: New file.
55838         * tests/test-copy-file.c: New file.
55839         * tests/test-copy-file-sameacls.c: New file.
55840
55841 2008-05-22  Eric Blake  <ebb9@byu.net>
55842
55843         Avoid gcc warning.
55844         * tests/test-memcmp.c (main): Pass NULL indirectly.
55845
55846 2008-05-21  Bruno Haible  <bruno@clisp.org>
55847
55848         Add reference doc about ACLs.
55849         * doc/acl-resources.txt: New file.
55850         * doc/acl-cygwin.txt: New file.
55851
55852 2008-05-21  Bruno Haible  <bruno@clisp.org>
55853
55854         Avoid one more warning from gcc.
55855         * lib/vasnprintf.c (IF_LINT): Update comments.
55856         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55857
55858 2008-05-21  Jim Meyering  <meyering@redhat.com>
55859
55860         avoid a warning from gcc
55861         * lib/vasnprintf.c (IF_LINT): Define.
55862         (scale10_round_decimal_long_double):
55863         Use it to avoid a "may be used uninitialized" warning.
55864         (scale10_round_decimal_double): Likewise.
55865
55866 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55867
55868         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55869         declared.
55870
55871 2008-05-20  Bruno Haible  <bruno@clisp.org>
55872
55873         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55874         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55875
55876 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55877
55878         * modules/memcmp-tests: New file.
55879         * tests/test-memcmp.c: New file.
55880
55881 2008-05-19  Bruno Haible  <bruno@clisp.org>
55882
55883         * modules/propername (Notice, configure.ac): Put quoted "..." into
55884         --keyword option.
55885         * lib/propername.h: Update comments accordingly.
55886         Reported by Eric Blake.
55887
55888 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55889
55890         * modules/getpass-gnu (Depends-on): Add fseeko.
55891
55892 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55893
55894         * modules/base64-tests: New file.
55895
55896 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55897
55898         * lib/base64.c (base64_decode_ctx): If a decode context structure
55899         was passed in use it to ignore newlines.  If a context structure
55900         was _not_ passed in, continue to treat newlines as garbage (this
55901         is the historical behavior).  Formerly base64_decode.
55902         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55903         takes a decode context structure.
55904         * lib/base64.h (base64_decode): Macro for four-argument calls.
55905         (base64_decode_alloc): Likewise.
55906         * lib/base64.c (base64_decode_ctx): If a decode context structure
55907         was passed in use it to ignore newlines.  If a context structure
55908         was _not_ passed in, continue to treat newlines as garbage (this
55909         is the historical behavior).  Formerly base64_decode.
55910         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55911         takes a decode context structure.
55912         * lib/base64.h (base64_decode): Macro for four-argument calls.
55913         (base64_decode_alloc): Likewise.
55914
55915 2008-05-19  Jim Meyering  <meyering@redhat.com>
55916
55917         avoid a warning from gcc
55918         * lib/trim.c (IF_LINT): Define.
55919         (trim2): Use it to avoid a "may be used uninitialized" warning.
55920
55921         Fix doc typo.
55922         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55923
55924 2008-05-19  Bruno Haible  <bruno@clisp.org>
55925
55926         * doc/glibc-functions/getpass.texi: Document limits of other
55927         implementations.
55928
55929 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55930             Bruno Haible <bruno@clisp.org>
55931
55932         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55933
55934 2008-05-18  Bruno Haible  <bruno@clisp.org>
55935
55936         * modules/propername: New file, from GNU gettext.
55937         * lib/propername.h: New file, from GNU gettext.
55938         * lib/propername.c: New file, from GNU gettext.
55939         * MODULES.html.sh (Internationalization functions): Add propername.
55940
55941 2008-05-16  Jim Meyering  <meyering@redhat.com>
55942             Bruno Haible  <bruno@clisp.org>
55943
55944         Avoid some warnings from "gcc -Wshadow".
55945         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55946
55947 2008-05-15  Eric Blake  <ebb9@byu.net>
55948
55949         Extend previous patch to cygwin 1.7.0.
55950         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55951         fast implementation in cygwin >= 1.7.0.
55952         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55953         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55954
55955 2008-05-15  Bruno Haible  <bruno@clisp.org>
55956
55957         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55958         implementation in glibc >= 2.9.
55959         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55961
55962 2008-05-15  Bruno Haible  <bruno@clisp.org>
55963
55964         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55965         (Unicode string functions): Add unilbrk/*.
55966         Reported by Karl Berry.
55967
55968 2008-05-15  Eric Blake  <ebb9@byu.net>
55969
55970         Fix violation of <stdbool.h> replacement in regex.
55971         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55972         * lib/regexec.c (re_search_internal): Likewise.
55973         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55974
55975 2008-05-15  Jim Meyering  <meyering@redhat.com>
55976
55977         avoid distracting test output when git or cvs is not found
55978         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55979         * tests/test-vc-list-files-git.sh: Likewise.
55980
55981 2008-05-15  Eric Blake  <ebb9@byu.net>
55982
55983         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55984         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55985         glibc version.
55986         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55987         * doc/posix-functions/strstr.texi (strstr): Likewise.
55988         * lib/str-two-way.h (MAX): Sychronize with glibc.
55989
55990 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55991
55992         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55993         opr.ctx_type.
55994         (calc_first): Initialize constraint field.
55995         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55996         Fix grammar.
55997         (duplicate_node): Merge constraint field for all node types.
55998         (calc_eclosure_iter): Look at constraint field for all node types.
55999         * lib/regex_internal.c (create_cd_newstate): Don't look at
56000         opr.ctx_type.
56001
56002 2008-05-14  Bruno Haible  <bruno@clisp.org>
56003
56004         Help GCC to do better code generation.
56005         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56006         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56007         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56008         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56009         Declare with attribute 'malloc' if supported.
56010
56011 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56012
56013         use "echo STR|wc -c" rather than unportable "expr length STR"
56014         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56015         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56016
56017 2008-05-14  Jim Meyering  <meyering@redhat.com>
56018
56019         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56020         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56021         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56022         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56023         via Collin Lasse.
56024
56025 2008-05-14  Eric Blake  <ebb9@byu.net>
56026
56027         Avoid quadratic growth in gl_LIBSOURCES.
56028         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56029         Suggested by Bruno Haible.
56030
56031         Test xmemdup0.
56032         * modules/xmemdup0-tests: New file.
56033         * tests/test-xmemdup0.c: Likewise.
56034
56035 2008-05-13  Eric Blake  <ebb9@byu.net>
56036
56037         Split xmemdup0 into its own module.
56038         * modules/xmemdup0: New file.
56039         * lib/xmemdup0.h: Likewise.
56040         * lib/xmemdup0.c: Likewise.
56041         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56042         * lib/xalloc.h (xmemdup0): Remove.
56043         * lib/xmalloc.c (xmemdup0): Likewise.
56044
56045 2008-05-13  Eric Blake  <ebb9@byu.net>
56046             Bruno Haible  <bruno@clisp.org>
56047
56048         Reduce number of forks required during autoconf.
56049         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56050         and gl_LIBSOURCES_DIR.
56051         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56052         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56053         m4_syscmd per file.
56054         <m4_foreach_w>: Move...
56055         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56056
56057 2008-05-13  Eric Blake  <ebb9@byu.net>
56058
56059         * gnulib-tool: Fix various comment typos.
56060
56061 2008-05-12  Bruno Haible  <bruno@clisp.org>
56062
56063         Tailor the linebreaking algorithm.
56064         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56065
56066 2008-05-12  Bruno Haible  <bruno@clisp.org>
56067
56068         Update to Unicode 5.0.0.
56069         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56070         LBP_JV, LBP_JT. Redistribute values.
56071         (unilbrk_table): Change size.
56072         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56073         Unicode TR#14 rev. 22.
56074         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56075         LBP_JV, LBP_JT. Redistribute values.
56076         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56077         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56078         Update.
56079         * lib/unilbrk/lbrkprop1.h: Regenerated.
56080         * lib/unilbrk/lbrkprop2.h: Regenerated.
56081         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56082         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56083         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56084         Likewise.
56085         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56086         Likewise.
56087         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56088         result.
56089         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56090         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56091         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56092         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56093         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56094         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56095
56096 2008-05-11  Bruno Haible  <bruno@clisp.org>
56097
56098         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56099
56100 2008-05-11  Bruno Haible  <bruno@clisp.org>
56101
56102         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56103         * modules/unilbrk/gen-lbrk: New file.
56104
56105 2008-05-11  Bruno Haible  <bruno@clisp.org>
56106
56107         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56108         * m4/sha512.m4 (gl_SHA512): Likewise.
56109
56110 2008-05-11  Jim Meyering  <meyering@redhat.com>
56111
56112         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56113         * modules/crypto/sha256: New file.
56114         * modules/crypto/sha512: Likewise.
56115         * lib/sha256.c: Likewise.
56116         * lib/sha256.h: Likewise.
56117         * lib/sha512.c: Likewise.
56118         * lib/sha512.h: Likewise.
56119         * lib/u64.h: Likewise.
56120         * m4/sha256.m4: Likewise.
56121         * m4/sha512.m4: Likewise.
56122         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56123
56124 2008-05-10  Bruno Haible  <bruno@clisp.org>
56125
56126         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56127         (Input/Output <stdio.h>): Add xprintf.
56128         (Signal handling <signal.h>): Add strsignal.
56129         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56130         (Core language properties): Add func.
56131         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56132         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56133         strings.
56134         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56135         (Input/output): New section.
56136         (File system functions): Add openat-die, stat-macros.
56137         (Networking functions): Add sockets.
56138         (Unicode string functions): Add unictype/*.
56139         (Support for building libraries and executables): Add gperf.
56140         (Support for building documentation): Add agpl-3.0.
56141         (Misc): Add nocrash.
56142
56143 2008-05-10  Bruno Haible  <bruno@clisp.org>
56144
56145         * modules/unictype/gen-ctype: New file.
56146
56147 2008-05-10  Jim Meyering  <meyering@redhat.com>
56148
56149         Make chdir-safer.c more efficient on a system with no symlinks.
56150         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56151         also if ELOOP is zero.  Suggested by Bruno Haible.
56152
56153         Make chdir-safer.c slightly safer.
56154         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56155         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56156
56157         Avoid compile failure on systems without ELOOP (like mingw).
56158         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56159         Reported by Bruno Haible.
56160
56161 2008-05-10  Bruno Haible  <bruno@clisp.org>
56162
56163         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56164         (is_utf8_encoding): Use a case-insensitive comparison.
56165         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56166         streq.
56167
56168 2008-05-10  Bruno Haible  <bruno@clisp.org>
56169
56170         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56171         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56172         * lib/unilbrk/ulc-common.h (iconv_string_length,
56173         iconv_string_keeping_offsets): Remove declarations.
56174         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56175         Don't include <iconv.h>, streq.h, xsize.h.
56176         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56177         conversion.
56178         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56179         <iconv.h>, streq.h, xsize.h.
56180         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56181         conversion.
56182         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56183         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56184         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56185         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56186
56187 2008-05-10  Bruno Haible  <bruno@clisp.org>
56188
56189         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56190         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56191
56192         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56193         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56194
56195         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56196         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56197
56198         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56199         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56200
56201         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56202         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56203
56204         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56205         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56206
56207         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56208         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56209
56210         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56211         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56212
56213 2008-05-10  Bruno Haible  <bruno@clisp.org>
56214
56215         Split up 'linebreak' module.
56216         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56217         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56218         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56219         modifications.
56220         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56221         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56222         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56223         lib/linebreak.c.
56224         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56225         lib/linebreak.c.
56226         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56227         lib/linebreak.c.
56228         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56229         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56230         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56231         lib/linebreak.c.
56232         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56233         lib/linebreak.c.
56234         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56235         lib/linebreak.c.
56236         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56237         lib/linebreak.c.
56238         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56239         lib/linebreak.c.
56240         * modules/unilbrk/base: New file.
56241         * modules/unilbrk/tables: New file.
56242         * modules/unilbrk/u8-possible-linebreaks: New file.
56243         * modules/unilbrk/u16-possible-linebreaks: New file.
56244         * modules/unilbrk/u32-possible-linebreaks: New file.
56245         * modules/unilbrk/ulc-common: New file.
56246         * modules/unilbrk/ulc-possible-linebreaks: New file.
56247         * modules/unilbrk/u8-width-linebreaks: New file.
56248         * modules/unilbrk/u16-width-linebreaks: New file.
56249         * modules/unilbrk/u32-width-linebreaks: New file.
56250         * modules/unilbrk/ulc-width-linebreaks: New file.
56251         * lib/linebreak.h: Remove file.
56252         * lib/linebreak.c: Remove file.
56253         * m4/linebreak.m4: Remove file.
56254         * modules/linebreak: Remove file.
56255         * NEWS: Mention the changes.
56256
56257 2008-05-09  Eric Blake  <ebb9@byu.net>
56258
56259         Add xmemdup0.
56260         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
56261         implementation.
56262         * lib/xmalloc.c (xmemdup0): New C implementation.
56263
56264 2008-05-08  Bruno Haible  <bruno@clisp.org>
56265
56266         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56267
56268 2008-05-07  Eric Blake  <ebb9@byu.net>
56269
56270         Support cross-compilation of <wctype.h>.
56271         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56272         AC_CACHE_CHECK.
56273
56274 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56275
56276         * build-aux/vc-list-files: Add support for bzr.
56277
56278 2008-05-03  Jim Meyering  <meyering@redhat.com>
56279
56280         avoid failed assertion with tight malloc
56281         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56282
56283 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56284
56285         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56286         are needed from arpa/inet.h.
56287         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56288         Reported by Bruno Haible.
56289
56290 2008-05-02  Jim Meyering  <meyering@redhat.com>
56291
56292         avoid compilation error on FreeBSD 6
56293         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56294
56295 2008-05-01  Jim Meyering  <meyering@redhat.com>
56296
56297         useless-if-before-free: correct --help's exit status description
56298         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56299         for one or more matches, etc.  Reported by Bruno Haible.
56300
56301         vc-list-files: make the stand-alone gnulib test work
56302         * modules/vc-list-files-tests (configure.ac):
56303         Define and AC_SUBST abs_aux_dir.
56304         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56305         $(abs_top_srcdir) to each script and having each of them
56306         duplicate the work of setting PATH, set PATH here, using
56307         the new variable, abs_aux_dir instead.
56308         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56309         * tests/test-vc-list-files-git.sh: Likewise.
56310         Reported by Bruno Haible.
56311
56312 2008-05-01  Bruno Haible  <bruno@clisp.org>
56313
56314         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56315         reallocation. Rename 'done' to 'found_delimiter'.
56316
56317 2008-05-01  Jim Meyering  <meyering@redhat.com>
56318
56319         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56320         * build-aux/vc-list-files: Use `...`, not $(...).
56321
56322 2008-04-30  Jim Meyering  <meyering@redhat.com>
56323
56324         add tests for vc-list-files
56325         * modules/vc-list-files-tests: New module.
56326         * tests/test-vc-list-files-cvs.sh: New file.
56327         * tests/test-vc-list-files-git.sh: New file.
56328
56329         avoid a warning from gcc
56330         * lib/getndelim2.c (IF_LINT): Define.
56331         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
56332
56333         vc-list-files: work properly with build-aux/cvsu, too
56334         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
56335         to all cvs-based clauses.
56336
56337         vc-list-files: work properly in the CVS+awk case, too
56338         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
56339
56340         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
56341         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
56342         take more than one file argument, so .  Add quotes, just in case $dir
56343         ever contains a shell meta-character.  Prompted by Soren Hansen in
56344         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
56345
56346 2008-04-29  Eric Blake  <ebb9@byu.net>
56347
56348         Optimize getndelim2 to use block operations when possible.
56349         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
56350         freadseek, and memchr2.
56351         * lib/getndelim2.c (getndelim2): Use them for block reads.
56352
56353 2008-04-29  Bruno Haible  <bruno@clisp.org>
56354
56355         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
56356         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56357         * modules/inet_ntop (Depends-on): Add extensions.
56358         * modules/inet_pton (Depends-on): Likewise.
56359         Reported by Simon Josefsson.
56360
56361 2008-04-29  Jim Meyering  <meyering@redhat.com>
56362
56363         When the is more than one match in a block, match all of them.
56364         * build-aux/useless-if-before-free: Iterate through each block
56365         until there are no more matches.
56366
56367         Fix broken useless-if-before-free script.
56368         * build-aux/useless-if-before-free: Fix typo: missing "?" after
56369         the expression to match cast of argument to free-like function.
56370
56371 2008-04-29  Eric Blake  <ebb9@byu.net>
56372
56373         Use new header.
56374         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
56375
56376 2008-04-29  Jim Meyering  <meyering@redhat.com>
56377
56378         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
56379         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
56380         by gnulib to exist and to declare e.g., inet_ntop.
56381         Don't include "inet_ntop.h", now removed.
56382
56383         * m4/arpa_inet_h.m4: Remove trailing blanks.
56384
56385 2008-04-29  Eric Blake  <ebb9@byu.net>
56386
56387         Silence valgrind on safe reads beyond potential array bounds.
56388         * lib/rawmemchr.valgrind: New file.
56389         * lib/strchrnul.valgrind: Likewise.
56390         * modules/rawmemchr (Files): Distribute new file.
56391         * modules/strchrnul (Files): Likewise.
56392         Suggested by Bruno Haible.
56393
56394 2008-04-29  Bruno Haible  <bruno@clisp.org>
56395
56396         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56397         (inet_ntop, inet_pton): Change portability warning's wording.
56398         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56399         Invoke gl_CHECK_NEXT_HEADERS.
56400         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56401         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56402         set ARPA_INET_H.
56403         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56404         * modules/arpa_inet (Description): No longer only for systems that
56405         lack it.
56406         (Depends-on): Add include_next.
56407         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
56408         HAVE_ARPA_INET_H.
56409
56410 2008-04-29  Jim Meyering  <meyering@redhat.com>
56411
56412         * modules/mkdir (License): Re-license as LGPLv2+.
56413
56414 2008-04-29  Bruno Haible  <bruno@clisp.org>
56415
56416         * modules/rawmemchr (Maintainer): Set to Eric.
56417         * modules/strchrnul (Maintainer): Likewise.
56418
56419 2008-04-29  Simon Josefsson  <simon@josefsson.org>
56420
56421         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
56422         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
56423
56424         * modules/arpa_inet (arpa/inet.h): Use them.
56425
56426 2008-04-28  Eric Blake  <ebb9@byu.net>
56427
56428         Test getndelim2.
56429         * modules/getndelim2-tests: New file.
56430         * tests/test-getndelim2.c: Likewise.
56431         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56432         stream.
56433         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56434
56435         * MODULES.html.sh: Document new module.
56436
56437 2008-04-20  Bruno Haible  <bruno@clisp.org>
56438
56439         * lib/c-stack.c (die): Use raise.
56440         * modules/c-stack (Depends-on): Add raise.
56441
56442 2008-04-28  Bruno Haible  <bruno@clisp.org>
56443
56444         Expect rpmatch to be declared.
56445         * lib/yesno.c (rpmatch): Remove declaration.
56446
56447         Declare rpmatch.
56448         * lib/stdlib.in.h (rpmatch): New declaration.
56449         * lib/rpmatch.c: Include <stdlib.h> first.
56450         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
56451         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
56452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
56453         HAVE_RPMATCH.
56454         * modules/rpmatch (Depends-on): Add stdlib, extensions.
56455         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56456         (Include): Set to <stdlib.h>.
56457         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
56458         HAVE_RPMATCH.
56459         * NEWS: Document the change.
56460
56461 2008-04-28  Bruno Haible  <bruno@clisp.org>
56462
56463         Change rpmatch to use nl_langinfo when appropriate.
56464         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
56465         (N_): New macro.
56466         (localized_pattern): New function/macro.
56467         (try): Remove match, nomatch arguments. Copy the pattern into safe
56468         memory before caching it.
56469         (rpmatch): Use localized_pattern. Add translator comments.
56470         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
56471         Suggested by Eric Blake.
56472         * modules/rpmatch (Depends-on): Add stdbool.
56473
56474 2008-04-28  Eric Blake  <ebb9@byu.net>
56475
56476         Add rawmemchr module, matching glibc.
56477         * modules/string (Makefile.am): New indicator.
56478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
56479         * lib/string.in.h (rawmemchr): Declare when appropriate.
56480         * modules/rawmemchr: New file.
56481         * m4/rawmemchr.m4: Likewise.
56482         * lib/rawmemchr.c: Likewise.
56483         * modules/rawmemchr-tests: Likewise.
56484         * tests/test-rawmemchr.c: Likewise.
56485         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56486         module.
56487         * modules/strchrnul (Depends-on): Add rawmemchr.
56488         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56489
56490         Whitespace cleanup.
56491         * tests/test-strchrnul.c: Reindent.
56492         * lib/strchrnul.c: Likewise.
56493
56494         Optimize and test strchrnul.
56495         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56496         * modules/strchrnul-tests: New file.
56497         * tests/test-strchrnul.c: Likewise.
56498
56499         Remove intprops dependency.
56500         * modules/memchr (Depends-on): Remove intprops.
56501         * modules/memrchr (Depends-on): Likewise.
56502         * modules/memchr2 (Depends-on): Likewise.
56503         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56504         * lib/memrchr.c (__memrchr): Likewise.
56505         * lib/memrchr2.c (memchr2): Likewise.
56506         Reported by Simon Josefsson.
56507
56508 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56509
56510         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56511         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56512
56513 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56514
56515         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56516
56517         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56518
56519         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56520
56521         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56522         declarations.
56523         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56524
56525         * m4/inet_pton.m4: Don't check for header files.
56526
56527         * m4/inet_ntop.m4: Don't check for header files.
56528
56529 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56530
56531         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56532         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56533         trigger for cygwin).
56534         Reported by Bruno Haible  <bruno@clisp.org>.
56535
56536 2008-04-28  Bruno Haible  <bruno@clisp.org>
56537
56538         * doc/posix-functions/strdup.texi: Mention mingw problem.
56539
56540 2008-04-27  Bruno Haible  <bruno@clisp.org>
56541
56542         * modules/stat-time-tests (Depends-on): Add sleep.
56543         * tests/test-stat-time.c (force_unlink): New function.
56544         (cleanup): Use it.
56545         (test_mtime): Remove the ctime related tests.
56546         (test_ctime): New function, containing the ctime related tests.
56547         (main): Call test_ctime, except on native Windows platforms.
56548
56549 2008-04-27  Bruno Haible  <bruno@clisp.org>
56550
56551         * lib/rpmatch.c (rpmatch): Add some comments.
56552         Reported by James Youngman <jay@gnu.org>.
56553
56554 2008-04-27  Bruno Haible  <bruno@clisp.org>
56555
56556         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56557         quiet NaNs.
56558
56559 2008-04-27  Bruno Haible  <bruno@clisp.org>
56560
56561         Make test-yesno.sh work on mingw.
56562         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56563         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56564         (main): Set stdin to binary mode.
56565         * modules/yesno-tests (Depends-on): Add binary-io.
56566
56567 2008-04-27  Bruno Haible  <bruno@clisp.org>
56568
56569         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56570         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56571         argument that lie outside the IEEE 854 domain.
56572         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56573         (gl_ISFINITE): Use it.
56574         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56575
56576 2008-04-27  Bruno Haible  <bruno@clisp.org>
56577
56578         Allow local renaming in config.h.
56579         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56580
56581 2008-04-27  Bruno Haible  <bruno@clisp.org>
56582
56583         * lib/memchr.c (__memchr): Change type of 'i'.
56584         * lib/memchr2.c (memchr2): Likewise.
56585
56586 2008-04-26  Eric Blake  <ebb9@byu.net>
56587         and Bruno Haible  <bruno@clisp.org>
56588
56589         Optimize and test memrchr.
56590         * modules/memrchr (Depends-on): Add intprops.
56591         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56592         * modules/memrchr-tests: New file.
56593         * tests/test-memrchr.c: New file.
56594
56595 2008-04-26  Bruno Haible  <bruno@clisp.org>
56596
56597         Add tentative support for DragonFly BSD.
56598         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56599         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56600         fp.
56601         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56602         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56603         * lib/fpurge.c (fpurge): Likewise.
56604         * lib/freadable.c (freaadable): Likewise.
56605         * lib/freadahead.c (freadahead): Likewise.
56606         * lib/freading.c (freading): Likewise.
56607         * lib/freadptr.c (freadptr): Likewise.
56608         * lib/freadseek.c (freadptrinc): Likewise.
56609         * lib/fseeko.c (fseeko): Likewise.
56610         * lib/fseterr.c (fseterr): Likewise.
56611         * lib/fwritable.c (fwritable): Likewise.
56612         * lib/fwriting.c (fwriting): Likewise.
56613
56614 2008-04-26  Bruno Haible  <bruno@clisp.org>
56615
56616         * lib/stdio-impl.h: New file.
56617         * lib/fbufmode.c: Include stdio-impl.h.
56618         (fbufmode): Use fp_, remove redundant #defines.
56619         * lib/fflush.c: Include stdio-impl.h.
56620         (clear_ungetc_buffer): Remove redundant #defines.
56621         * lib/fpurge.c: Include stdio-impl.h.
56622         (fpurge): Remove redundant #defines.
56623         * lib/freadable.c: Include stdio-impl.h.
56624         (freadable): Remove redundant #defines.
56625         * lib/freadahead.c: Include stdio-impl.h.
56626         (freadahead): Remove redundant #defines.
56627         * lib/freading.c: Include stdio-impl.h.
56628         (freading): Remove redundant #defines.
56629         * lib/freadptr.c: Include stdio-impl.h.
56630         (freadptr): Remove redundant #defines.
56631         * lib/freadseek.c: Include stdio-impl.h.
56632         (freadptrinc): Remove redundant #defines.
56633         * lib/fseeko.c: Include stdio-impl.h.
56634         (rpl_fseeko): Remove redundant #defines.
56635         * lib/fseterr.c: Include stdio-impl.h.
56636         (fseterr): Remove redundant #defines.
56637         * lib/fwritable.c: Include stdio-impl.h.
56638         (fwritable: Remove redundant #defines.
56639         * lib/fwriting.c: Include stdio-impl.h.
56640         (fwriting): Remove redundant #defines.
56641         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56642         * modules/fflush (Files): Likewise.
56643         * modules/fpurge (Files): Likewise.
56644         * modules/freadable (Files): Likewise.
56645         * modules/freadahead (Files): Likewise.
56646         * modules/freading (Files): Likewise.
56647         * modules/freadptr (Files): Likewise.
56648         * modules/freadseek (Files): Likewise.
56649         * modules/fseeko (Files): Likewise.
56650         * modules/fseterr (Files): Likewise.
56651         * modules/fwritable (Files): Likewise.
56652         * modules/fwriting (Files): Likewise.
56653
56654 2008-04-26  Bruno Haible  <bruno@clisp.org>
56655
56656         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56657         restore_seek_optimization, update_fpos_cache): New functions, extracted
56658         from rpl_fflush.
56659         (rpl_fflush): Use them.
56660         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56661         (gl_REPLACE_FFLUSH): Use it.
56662
56663 2008-04-26  Bruno Haible  <bruno@clisp.org>
56664
56665         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56666         on Solaris.
56667         * tests/test-xstrtoimax.sh: Likewise.
56668         * tests/test-xstrtoumax.sh: Likewise.
56669         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56670
56671 2008-04-26  Bruno Haible  <bruno@clisp.org>
56672
56673         * modules/memchr-tests: New file.
56674         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56675
56676 2008-04-26  Eric Blake  <ebb9@byu.net>
56677             Bruno Haible  <bruno@clisp.org>
56678
56679         * lib/memchr.c: Include intprops.h.
56680         (__memchr): Optimize parallel detection of matching bytes. Rename local
56681         variables. Add explanatory comments.
56682
56683 2008-04-26  Bruno Haible  <bruno@clisp.org>
56684
56685         Fix module 'memchr', broken since 2000-10-28.
56686         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56687
56688 2008-04-26  Bruno Haible  <bruno@clisp.org>
56689
56690         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56691         comments.
56692
56693 2008-04-25  Eric Blake  <ebb9@byu.net>
56694
56695         Use native fstatat on cygwin 1.7.0.
56696         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56697         first.
56698
56699 2008-04-23  Eric Blake  <ebb9@byu.net>
56700
56701         Improve memchr2 performance.
56702         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56703         NUL bytes.
56704         * modules/memchr2 (Depends-on): Use intprops.h.
56705
56706 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56707
56708         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56709         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56710         <blp@cs.stanford.edu>.
56711
56712 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56713
56714         * lib/arpa_inet.in.h: New file.
56715
56716         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56717         (Makefile.am): Sed in substitute header file.
56718
56719         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56720         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56721
56722         * modules/inet_ntop (configure.ac): Use
56723         gl_ARPA_INET_MODULE_INDICATOR.
56724
56725         * modules/inet_pton (configure.ac): Use
56726         gl_ARPA_INET_MODULE_INDICATOR.
56727
56728 2008-04-22  Jim Meyering  <meyering@redhat.com>
56729
56730         * modules/verify (License): Re-license as LGPLv2+.
56731
56732 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56733
56734         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56735         parameter to void* as per POSIX standard (MinGW uses char*).
56736
56737 2008-04-21  Bruno Haible  <bruno@clisp.org>
56738
56739         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56740         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56741         Define to replacements if REPLACE_ISWCNTRL is 1.
56742         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56743         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56744         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56745         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56746         what it fixes.
56747         * doc/posix-functions/iswalpha.texi: Likewise.
56748         * doc/posix-functions/iswblank.texi: Likewise.
56749         * doc/posix-functions/iswcntrl.texi: Likewise.
56750         * doc/posix-functions/iswdigit.texi: Likewise.
56751         * doc/posix-functions/iswgraph.texi: Likewise.
56752         * doc/posix-functions/iswlower.texi: Likewise.
56753         * doc/posix-functions/iswprint.texi: Likewise.
56754         * doc/posix-functions/iswpunct.texi: Likewise.
56755         * doc/posix-functions/iswspace.texi: Likewise.
56756         * doc/posix-functions/iswupper.texi: Likewise.
56757         * doc/posix-functions/iswxdigit.texi: Likewise.
56758         Reported by Alain Guibert.
56759
56760 2008-04-21  Bruno Haible  <bruno@clisp.org>
56761
56762         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56763         Patch by Alain Guibert.
56764
56765 2008-04-21  Bruno Haible  <bruno@clisp.org>
56766
56767         Fix test failures on mingw.
56768         * tests/test-xstrtol.c (print_no_progname): New function.
56769         (main): Install it in error_print_progname hook.
56770         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56771         * tests/test-xstrtoimax.sh: Likewise.
56772         * tests/test-xstrtoumax.sh: Likewise.
56773
56774 2008-04-21  Bruno Haible  <bruno@clisp.org>
56775
56776         Fix test failure on mingw.
56777         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56778
56779 2008-04-21  Bruno Haible  <bruno@clisp.org>
56780
56781         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56782         Actually assign a value.
56783
56784 2008-04-20  Bruno Haible  <bruno@clisp.org>
56785
56786         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56787         take 2.
56788         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56789         'canonicalize-lgpl' module is also used.
56790         * lib/canonicalize-lgpl.c: Undo last change.
56791         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56792
56793 2008-04-20  Bruno Haible  <bruno@clisp.org>
56794
56795         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56796         config.h. Provide _mkdir based fallback for mingw.
56797         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56798         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56799         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56800         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56801         rather than defining mkdir in config.h.
56802         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56803         (gl_SYS_STAT_H_DEFAULTS): New macro.
56804         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56805         HAVE_IO_H any more.
56806         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56807         HAVE_DECL_MKDIR and HAVE_IO_H.
56808
56809 2008-04-20  Bruno Haible  <bruno@clisp.org>
56810
56811         * lib/isapipe.c: Port to native Windows platforms.
56812
56813 2008-04-20  Bruno Haible  <bruno@clisp.org>
56814
56815         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56816
56817 2008-04-21  Eric Blake  <ebb9@byu.net>
56818
56819         Work around preprocessors that don't handle UINTMAX_MAX.
56820         * lib/memchr2.c (memchr2): Avoid embedded #if.
56821         Reported by Alain Guibert, fix suggested by Bruno Haible.
56822
56823 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56824
56825         * doc/posix-functions/strftime.texi (strftime): Explain better
56826         Windows incompatibility.  Suggested by Micah Cowan
56827         <micah@cowan.name>.
56828
56829 2008-04-20  Bruno Haible  <bruno@clisp.org>
56830
56831         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56832         unistr/u8-mblen.
56833
56834 2008-04-20  Bruno Haible  <bruno@clisp.org>
56835
56836         Fix test failure on platforms with non-GNU iconv.
56837         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56838         (U_TO_U8): Use it, rather than u16_to_u8.
56839         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56840         units at the end of the input string.
56841         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56842
56843 2008-04-20  Bruno Haible  <bruno@clisp.org>
56844
56845         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56846         when the resulting length is 0.
56847         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56848
56849 2008-04-20  Bruno Haible  <bruno@clisp.org>
56850
56851         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56852         works.
56853         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56854
56855 2008-04-20  Bruno Haible  <bruno@clisp.org>
56856
56857         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56858         * modules/tsearch-tests (configure.ac): Test for initstate function.
56859
56860 2008-04-20  Bruno Haible  <bruno@clisp.org>
56861
56862         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56863         for nlink_t if missing.
56864         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56865
56866 2008-04-19  Bruno Haible  <bruno@clisp.org>
56867
56868         Work around snprintf bug on Linux libc5.
56869         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56870         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56871         gl_SNPRINTF_SIZE1.
56872         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56873         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56874         that test failed.
56875         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56876         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56877         * modules/snprintf (Files): Add m4/printf.m4.
56878         * modules/vsnprintf (Files): Likewise.
56879         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56880         * doc/posix-functions/vsnprintf.texi: Likewise.
56881
56882 2008-04-19  Bruno Haible  <bruno@clisp.org>
56883
56884         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56885         from 0.0058 to less than 10^-7.
56886
56887 2008-04-19  Bruno Haible  <bruno@clisp.org>
56888
56889         Fix rounding when a precision is given.
56890         * lib/vasnprintf.c (is_borderline): New function.
56891         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56892         9...9x.
56893         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56894         %e, %g.
56895         * tests/test-vasprintf-posix.c (test_function): Likewise.
56896         * tests/test-snprintf-posix.h (test_function): Likewise.
56897         * tests/test-sprintf-posix.h (test_function): Likewise.
56898         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56899         * tests/test-printf-posix.h (test_function): Likewise.
56900         * tests/test-printf-posix.output: Update.
56901         Reported by John Darrington <john@darrington.wattle.id.au> via
56902         Ben Pfaff <blp@cs.stanford.edu>.
56903
56904 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56905
56906         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56907         Suggested by Bruno Haible <bruno@clisp.org>.
56908
56909 2008-04-17  Bruno Haible  <bruno@clisp.org>
56910
56911         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56912         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56913         implementation.
56914         Patch by Bruce Merry <bmerry@gmail.com>.
56915
56916 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56917
56918         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56919         doesn't work under Windows.
56920
56921 2008-04-16  Bruno Haible  <bruno@clisp.org>
56922
56923         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56924         New macros.
56925         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56926         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56927         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56928         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56929         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56930         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56931         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56932         macros.
56933         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56934         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56935         Northern Sotho, Uighur.
56936
56937 2008-04-16  Bruno Haible  <bruno@clisp.org>
56938
56939         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56940         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56941         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56942         Reported by Daniel Bergström <daniel@octocode.com>.
56943
56944 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56945             Bruno Haible  <bruno@clisp.org>
56946
56947         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56948         function.
56949         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56950         New functions, mostly extracted from gl_locale_name_default.
56951         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56952
56953 2008-04-16  Eric Blake  <ebb9@byu.net>
56954
56955         Adjust strtod detection to catch glibc 2.7 bug.
56956         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56957         Reported by John Gatewood Ham.
56958
56959 2008-04-16  Bruno Haible  <bruno@clisp.org>
56960
56961         Add tentative support for Linux libc5.
56962         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56963         * lib/fpurge.c (fpurge): Likewise.
56964         * lib/freadable.c (freadable): Likewise.
56965         * lib/freadahead.c (freadahead): Likewise.
56966         * lib/freading.c (freading): Likewise.
56967         * lib/freadptr.c (freadptr): Likewise.
56968         * lib/freadseek.c (freadptrinc): Likewise.
56969         * lib/fseeko.c (rpl_fseeko): Likewise.
56970         * lib/fseterr.c (fseterr): Likewise.
56971         * lib/fwritable.c (fwritable): Likewise.
56972         * lib/fwriting.c (fwriting): Likewise.
56973         Reported by Alain Guibert <alguibert+bts@free.fr>.
56974
56975 2008-04-15  Bruno Haible  <bruno@clisp.org>
56976
56977         * modules/mathl (configure.ac): Define module indicator.
56978
56979 2008-04-15  Bruno Haible  <bruno@clisp.org>
56980
56981         * lib/logl.c (logl): Remove unused variables.
56982
56983 2008-04-15  Bruno Haible  <bruno@clisp.org>
56984
56985         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56986         fails.
56987
56988 2008-04-15  Bruno Haible  <bruno@clisp.org>
56989
56990         * lib/trim.c (trim2): Fix argument of isspace() macro.
56991
56992 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56993
56994         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56995         to 0.
56996         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56997
56998 2008-04-14  Bruno Haible  <bruno@clisp.org>
56999
57000         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57001         AC_LANG_PROGRAM argument.
57002         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57003         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57004         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57005         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57006         * m4/math_h.m4 (gl_MATH_H): Likewise.
57007         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57008         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57009         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57010         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57011         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57012         * m4/regex.m4 (gl_REGEX): Likewise.
57013         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57014         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57015         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57016         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57017         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57018         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57019         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57020         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57021
57022 2008-04-14  Jim Meyering  <meyering@redhat.com>
57023
57024         test-strtod: fix typos: s/abs/fabs/
57025         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57026
57027 2008-04-13  Bruno Haible  <bruno@clisp.org>
57028
57029         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57030         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57031         module is also used and while not building the reloc-wrapper.
57032
57033 2008-04-13  Bruno Haible  <bruno@clisp.org>
57034
57035         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57036
57037 2008-04-13  Bruno Haible  <bruno@clisp.org>
57038
57039         Fix AIX compilation failure introduced on 2008-04-02.
57040         * tests/test-frexp.c (exp): Undefine before redefining.
57041         * tests/test-frexpl.c (exp): Likewise.
57042
57043 2008-04-13  Bruno Haible  <bruno@clisp.org>
57044
57045         Work around a HP-UX stdio bug.
57046         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57047         * tests/test-ftello.c (main): Likewise.
57048         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57049         * doc/posix-functions/ftello.texi: Likewise.
57050
57051 2008-04-13  Bruno Haible  <bruno@clisp.org>
57052
57053         Make test-signbit pass on HP-UX/hppa.
57054         * tests/test-signbit.c (minus_zerol): New variable.
57055         (test_signbitl): Use it.
57056
57057 2008-04-13  Bruno Haible  <bruno@clisp.org>
57058
57059         Make truncl work on OSF/1 4.0.
57060         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57061         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57062         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57064         HAVE_DECL_TRUNCL.
57065         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57066         HAVE_DECL_TRUNCL.
57067         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57068
57069 2008-04-13  Bruno Haible  <bruno@clisp.org>
57070
57071         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57072
57073 2008-04-13  Bruno Haible  <bruno@clisp.org>
57074
57075         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57076         expression, so as to avoid HP-UX 11 cc compiler bug.
57077
57078 2008-04-13  Bruno Haible  <bruno@clisp.org>
57079
57080         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57081
57082 2008-04-13  Bruno Haible  <bruno@clisp.org>
57083
57084         * lib/git-merge-changelog.c: Remove empty declaration outside of
57085         functions.
57086
57087 2008-04-13  Bruno Haible  <bruno@clisp.org>
57088
57089         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57090
57091 2008-04-13  Bruno Haible  <bruno@clisp.org>
57092
57093         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57094         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57095         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57096         also if it exists but lacks definitions of the SHUT_* macros.
57097         * modules/sys_socket (Description): Update.
57098         Reported by Elbert Pol <e.pol@chello.nl>.
57099
57100 2008-04-13  Bruno Haible  <bruno@clisp.org>
57101
57102         * lib/localcharset.c (OS2): Don't redefine if already defined.
57103         Reported by Elbert Pol <e.pol@chello.nl>.
57104
57105 2008-04-13  Bruno Haible  <bruno@clisp.org>
57106
57107         * lib/binary-io.h [__EMX__]: Include <io.h>.
57108         Reported by Elbert Pol <e.pol@chello.nl>.
57109
57110 2008-04-12  Bruno Haible  <bruno@clisp.org>
57111
57112         * lib/fpucw.h: Enable the definitions also for x86_64.
57113         Needed for NetBSD/x86_64.
57114         Reported by Thomas Klausner <tk@giga.or.at>.
57115
57116 2008-04-12  Bruno Haible  <bruno@clisp.org>
57117
57118         * tests/test-strtod.c: Include isnand.h.
57119         (main): Use isnand instead of isnan.
57120         Reported by Jim Meyering.
57121
57122 2008-04-12  Bruno Haible  <bruno@clisp.org>
57123
57124         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57125         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57126
57127 2008-04-12  Jim Meyering  <meyering@redhat.com>
57128
57129         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57130
57131 2008-04-12  Bruno Haible  <bruno@clisp.org>
57132
57133         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57134         Reported by Elbert Pol <e.pol@chello.nl>.
57135
57136 2008-04-12  Eric Blake  <ebb9@byu.net>
57137
57138         Work around Solaris 10 math.h bug.
57139         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57140         (gl_MATH_H_DEFAULTS): Set up default.
57141         * modules/math (Makefile.am): Replace new indicators.
57142         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57143         * tests/test-math.c (main): Test this.
57144         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57145         * doc/posix-headers/math.texi (math.h): Mention bug.
57146         Reported by Nelson H. F. Beebe and Jim Meyering.
57147
57148 2008-04-11  Bruno Haible  <bruno@clisp.org>
57149
57150         Adapt to future versions of Apple GCC.
57151         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57152         Reported by Peter O'Gorman <peter@pogma.com>.
57153
57154 2008-04-11  Bruno Haible  <bruno@clisp.org>
57155
57156         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57157
57158 2008-04-11  Bruno Haible  <bruno@clisp.org>
57159
57160         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57161
57162         * modules/getaddrinfo-tests (Makefile.am): Define
57163         test_getaddrinfo_LDADD.
57164
57165 2008-04-11  Bruno Haible  <bruno@clisp.org>
57166
57167         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57168         (init): Fix syntax error.
57169         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57170         is declared.
57171
57172 2008-04-11  Bruno Haible  <bruno@clisp.org>
57173
57174         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57175         * modules/glob (Depends-on): Add stdbool.
57176
57177 2008-04-11  Bruno Haible  <bruno@clisp.org>
57178
57179         * lib/trim.c: Include <string.h>.
57180
57181 2008-04-11  Eric Blake  <ebb9@byu.net>
57182
57183         Avoid compile failure on OS/2.
57184         * lib/regex_internal.h (internal_function): Disable optimization
57185         on OS/2 (__EMX__), where it caused compiler error.
57186         Reported by Elbert Pol.
57187
57188 2008-04-11  Bruno Haible  <bruno@clisp.org>
57189
57190         Flush the standard error stream before aborting. Needed on mingw.
57191         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57192         * tests/test-array_list.c (ASSERT): Likewise.
57193         * tests/test-array_oset.c (ASSERT): Likewise.
57194         * tests/test-avltree_list.c (ASSERT): Likewise.
57195         * tests/test-avltree_oset.c (ASSERT): Likewise.
57196         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57197         * tests/test-binary-io.c (ASSERT): Likewise.
57198         * tests/test-byteswap.c (ASSERT): Likewise.
57199         * tests/test-c-ctype.c (ASSERT): Likewise.
57200         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57201         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57202         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57203         * tests/test-c-strstr.c (ASSERT): Likewise.
57204         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57205         * tests/test-canonicalize.c (ASSERT): Likewise.
57206         * tests/test-carray_list.c (ASSERT): Likewise.
57207         * tests/test-ceilf1.c (ASSERT): Likewise.
57208         * tests/test-ceilf2.c (ASSERT): Likewise.
57209         * tests/test-ceill.c (ASSERT): Likewise.
57210         * tests/test-count-one-bits.c (ASSERT): Likewise.
57211         * tests/test-fbufmode.c (ASSERT): Likewise.
57212         * tests/test-fflush2.c (ASSERT): Likewise.
57213         * tests/test-floorf1.c (ASSERT): Likewise.
57214         * tests/test-floorf2.c (ASSERT): Likewise.
57215         * tests/test-floorl.c (ASSERT): Likewise.
57216         * tests/test-fopen.c (ASSERT): Likewise.
57217         * tests/test-fpending.c (ASSERT): Likewise.
57218         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57219         * tests/test-fpurge.c (ASSERT): Likewise.
57220         * tests/test-freadable.c (ASSERT): Likewise.
57221         * tests/test-freadahead.c (ASSERT): Likewise.
57222         * tests/test-freading.c (ASSERT): Likewise.
57223         * tests/test-freadptr.c (ASSERT): Likewise.
57224         * tests/test-freadptr2.c (ASSERT): Likewise.
57225         * tests/test-freadseek.c (ASSERT): Likewise.
57226         * tests/test-freopen.c (ASSERT): Likewise.
57227         * tests/test-frexp.c (ASSERT): Likewise.
57228         * tests/test-frexpl.c (ASSERT): Likewise.
57229         * tests/test-fseek.c (ASSERT): Likewise.
57230         * tests/test-fseeko.c (ASSERT): Likewise.
57231         * tests/test-fstrcmp.c (ASSERT): Likewise.
57232         * tests/test-ftell.c (ASSERT): Likewise.
57233         * tests/test-ftello.c (ASSERT): Likewise.
57234         * tests/test-func.c (ASSERT): Likewise.
57235         * tests/test-fwritable.c (ASSERT): Likewise.
57236         * tests/test-fwriting.c (ASSERT): Likewise.
57237         * tests/test-getdelim.c (ASSERT): Likewise.
57238         * tests/test-getline.c (ASSERT): Likewise.
57239         * tests/test-i-ring.c (ASSERT): Likewise.
57240         * tests/test-iconv-utf.c (ASSERT): Likewise.
57241         * tests/test-iconv.c (ASSERT): Likewise.
57242         * tests/test-isfinite.c (ASSERT): Likewise.
57243         * tests/test-isnand.c (ASSERT): Likewise.
57244         * tests/test-isnanf.c (ASSERT): Likewise.
57245         * tests/test-isnanl.h (ASSERT): Likewise.
57246         * tests/test-ldexpl.c (ASSERT): Likewise.
57247         * tests/test-linked_list.c (ASSERT): Likewise.
57248         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57249         * tests/test-localename.c (ASSERT): Likewise.
57250         * tests/test-lseek.c (ASSERT): Likewise.
57251         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57252         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57253         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57254         * tests/test-mbscasestr3.c (ASSERT): Likewise.
57255         * tests/test-mbscasestr4.c (ASSERT): Likewise.
57256         * tests/test-mbschr.c (ASSERT): Likewise.
57257         * tests/test-mbscspn.c (ASSERT): Likewise.
57258         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
57259         * tests/test-mbspbrk.c (ASSERT): Likewise.
57260         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
57261         * tests/test-mbsrchr.c (ASSERT): Likewise.
57262         * tests/test-mbsspn.c (ASSERT): Likewise.
57263         * tests/test-mbsstr1.c (ASSERT): Likewise.
57264         * tests/test-mbsstr2.c (ASSERT): Likewise.
57265         * tests/test-mbsstr3.c (ASSERT): Likewise.
57266         * tests/test-memchr2.c (ASSERT): Likewise.
57267         * tests/test-memmem.c (ASSERT): Likewise.
57268         * tests/test-open.c (ASSERT): Likewise.
57269         * tests/test-printf-frexp.c (ASSERT): Likewise.
57270         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57271         * tests/test-printf-posix.c (ASSERT): Likewise.
57272         * tests/test-quotearg.c (ASSERT): Likewise.
57273         * tests/test-rbtree_list.c (ASSERT): Likewise.
57274         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57275         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57276         * tests/test-round1.c (ASSERT): Likewise.
57277         * tests/test-roundf1.c (ASSERT): Likewise.
57278         * tests/test-roundl.c (ASSERT): Likewise.
57279         * tests/test-signbit.c (ASSERT): Likewise.
57280         * tests/test-sleep.c (ASSERT): Likewise.
57281         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57282         * tests/test-snprintf.c (ASSERT): Likewise.
57283         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57284         * tests/test-stat-time.c (ASSERT): Likewise.
57285         * tests/test-strcasestr.c (ASSERT): Likewise.
57286         * tests/test-strerror.c (ASSERT): Likewise.
57287         * tests/test-striconv.c (ASSERT): Likewise.
57288         * tests/test-striconveh.c (ASSERT): Likewise.
57289         * tests/test-striconveha.c (ASSERT): Likewise.
57290         * tests/test-strsignal.c (ASSERT): Likewise.
57291         * tests/test-strstr.c (ASSERT): Likewise.
57292         * tests/test-strtod.c (ASSERT): Likewise.
57293         * tests/test-trunc1.c (ASSERT): Likewise.
57294         * tests/test-trunc2.c (ASSERT): Likewise.
57295         * tests/test-truncf1.c (ASSERT): Likewise.
57296         * tests/test-truncf2.c (ASSERT): Likewise.
57297         * tests/test-truncl.c (ASSERT): Likewise.
57298         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57299         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57300         * tests/test-vasnprintf.c (ASSERT): Likewise.
57301         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57302         * tests/test-vasprintf.c (ASSERT): Likewise.
57303         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57304         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57305         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57306         * tests/test-vsnprintf.c (ASSERT): Likewise.
57307         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57308         * tests/test-wcwidth.c (ASSERT): Likewise.
57309         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57310         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57311         * tests/test-xvasprintf.c (ASSERT): Likewise.
57312         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57313         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57314         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57315         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57316         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57317         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57318         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57319         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57320         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57321         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57322         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57323         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57324         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57325         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57326         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57327         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57328         * tests/unictype/test-block_list.c (ASSERT): Likewise.
57329         * tests/unictype/test-block_of.c (ASSERT): Likewise.
57330         * tests/unictype/test-block_test.c (ASSERT): Likewise.
57331         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
57332         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
57333         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
57334         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
57335         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
57336         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
57337         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
57338         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
57339         * tests/unictype/test-combining.c (ASSERT): Likewise.
57340         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
57341         * tests/unictype/test-digit.c (ASSERT): Likewise.
57342         * tests/unictype/test-mirror.c (ASSERT): Likewise.
57343         * tests/unictype/test-numeric.c (ASSERT): Likewise.
57344         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
57345         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
57346         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
57347         * tests/unictype/test-scripts.c (ASSERT): Likewise.
57348         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
57349         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
57350         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
57351         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
57352         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
57353         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
57354         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
57355         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
57356         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
57357         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
57358         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
57359         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
57360         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
57361         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
57362         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
57363         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
57364         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
57365         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
57366         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
57367         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
57368         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
57369         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
57370         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
57371         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
57372         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
57373         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
57374         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
57375         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
57376         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
57377         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
57378         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
57379         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
57380         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
57381         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
57382         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
57383         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
57384         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
57385         Reported by Eric Blake.
57386
57387 2008-04-11  Bruno Haible  <bruno@clisp.org>
57388
57389         * lib/wchar.in.h: Tweak comment.
57390
57391 2008-04-11  Bruno Haible  <bruno@clisp.org>
57392
57393         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57394         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57395         gl_COMMON.
57396         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57397
57398 2008-04-11  Bruno Haible  <bruno@clisp.org>
57399
57400         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57401
57402 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57403
57404         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57405         of attempting to use non-existing /dev/*random.  Based on patch
57406         from Adam Strzelecki <ono@java.pl> in
57407         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
57408
57409 2008-04-08  Bruno Haible  <bruno@clisp.org>
57410
57411         Add tentative support for emx+gcc.
57412         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
57413         * lib/fpurge.c (fpurge): Likewise.
57414         * lib/freadable.c (freadable): Likewise.
57415         * lib/freadahead.c (freadahead): Likewise.
57416         * lib/freading.c (freading): Likewise.
57417         * lib/freadptr.c (freadptr): Likewise.
57418         * lib/freadseek.c (freadptrinc): Likewise.
57419         * lib/fseeko.c (rpl_fseeko): Likewise.
57420         * lib/fseterr.c (fseterr): Likewise.
57421         * lib/fwritable.c (fwritable): Likewise.
57422         * lib/fwriting.c (fwriting): Likewise.
57423         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
57424
57425 2008-04-09  Eric Blake  <ebb9@byu.net>
57426
57427         Avoid some autoconf warnings.
57428         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57429         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57430         * m4/afs.m4 (gl_AFS): Likewise.
57431         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57432         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57433         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57434         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57435         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57436         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
57437         (AC_CHECK_DECLS_ONCE): Likewise.
57438         Rename file...
57439         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
57440         gnulib-tool requires autoconf 2.59 or better.
57441         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
57442
57443 2008-04-08  Eric Blake  <ebb9@byu.net>
57444
57445         Use 'git describe --match' if present (added in git 1.5.5).
57446         * build-aux/git-version-gen: Limit result to tags that match 'v*'
57447         if possible.
57448
57449 2008-04-08  Bruno Haible  <bruno@clisp.org>
57450
57451         Add tentative support for OpenServer.
57452         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
57453         _ptr, _cnt.
57454         * lib/fpurge.c (fpurge): Likewise.
57455         * lib/freadable.c (freadable): Likewise.
57456         * lib/freadahead.c (freadahead): Likewise.
57457         * lib/freading.c (freading): Likewise.
57458         * lib/freadptr.c (freadptr): Likewise.
57459         * lib/freadseek.c (freadptrinc): Likewise.
57460         * lib/fseeko.c (rpl_fseeko): Likewise.
57461         * lib/fseterr.c (fseterr): Likewise.
57462         * lib/fwritable.c (fwritable): Likewise.
57463         * lib/fwriting.c (fwriting): Likewise.
57464         Reported by Roger Cornelius <rac@tenzing.org> and
57465         Brian K. White <brian@aljex.com>.
57466
57467 2008-04-06  Jim Meyering  <meyering@redhat.com>
57468
57469         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
57470
57471 2008-04-06  Bruno Haible  <bruno@clisp.org>
57472
57473         Avoid possible error with non-ASCII bytes in UTF-8 locales.
57474         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
57475         * tests/test-printf-posix.sh: Likewise.
57476         * tests/test-vfprintf-posix.sh: Likewise.
57477         * tests/test-vprintf-posix.sh: Likewise.
57478         * tests/test-xprintf-posix.sh: Likewise.
57479
57480 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57481
57482         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57483         hide error from 'ls', needed on OS/2.
57484         Report by Elbert Pol <elbert.pol@gmail.com>.
57485
57486 2008-04-04  Eric Blake  <ebb9@byu.net>
57487
57488         Make test-fseeko.c failures meaningful.
57489         * tests/test-fseeko.c: Print line number on failure.
57490         * tests/test-fseek.c: Likewise.
57491         Reported by Nelson H. F. Beebe.
57492
57493         Improve strtod bug detection check.
57494         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57495         required for Solaris 10.
57496         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57497
57498 2008-04-04  Bruno Haible  <bruno@clisp.org>
57499
57500         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57501         by m4/setenv.m4.
57502
57503 2008-04-03  Eric Blake  <ebb9@byu.net>
57504
57505         Ensure sane .version contents.
57506         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57507         version string.
57508         * build-aux/git-version-gen: Improve documentation.
57509
57510         Make GNU make output nicer.
57511         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57512         MAKECMDGOALS to enforce message for all command line targets.  Set
57513         srcdir for use in maint.mk.
57514
57515         Another maintainer tweak.
57516         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57517         a target that regenerates version.
57518
57519 2008-04-03  Jim Meyering  <meyering@redhat.com>
57520
57521         vc-list-files: don't cause coreutils "make po-check" failure
57522         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57523
57524 2008-04-03  Eric Blake  <ebb9@byu.net>
57525
57526         Allow VPATH usage of vc-list-files.
57527         * build-aux/vc-list-files (scriptversion): Add timestamp.
57528         (options): Add --help, --version, -C.
57529         (CVS): Support installed cvsu.
57530
57531 2008-04-02  Bruno Haible  <bruno@clisp.org>
57532
57533         Avoid some "statement with no effect" warnings from gcc.
57534         * tests/test-wctype.c (main): Explicitly ignore unused values.
57535         Reported by Jim Meyering.
57536
57537 2008-04-02  Jim Meyering  <meyering@redhat.com>
57538
57539         Avoid some warnings from "gcc -Wshadow".
57540         * tests/test-frexp.c (exp): Define to a different identifier.
57541         * tests/test-frexpl.c (exp): Likewise.
57542
57543 2008-04-03  Jim Meyering  <meyering@redhat.com>
57544
57545         bootstrap: remove dangling *.[ch] symlinks from lib
57546         * build-aux/bootstrap [dangling symlink removal]: Move find's
57547         -depth option to precede all others, to avoid a warning.
57548         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57549
57550 2008-04-02  Bruno Haible  <bruno@clisp.org>
57551
57552         Avoid some warnings from "gcc -Wshadow".
57553         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57554         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57555         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57556         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57557         Reported by Jim Meyering.
57558
57559 2008-04-01  Bruno Haible  <bruno@clisp.org>
57560
57561         Fix test to work on IRIX 6.5 with cc.
57562         * tests/test-math.c (numeric_equal): New function.
57563         (main): Use it.
57564
57565 2008-04-01  Bruno Haible  <bruno@clisp.org>
57566
57567         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57568
57569 2008-04-01  Bruno Haible  <bruno@clisp.org>
57570
57571         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57572         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57573         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57574         (Depends-on): Remove math.
57575
57576         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57577         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57578         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57579         (Depends-on): Remove math.
57580
57581         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57582         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57583         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57584         (Depends-on): Remove math.
57585         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57586         (Depends-on): Remove math.
57587
57588         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57589         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57590         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57591         (Depends-on): Remove math.
57592         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57593         (Depends-on): Remove math.
57594
57595         * tests/test-round1.c: Include nan.h.
57596         (main): Use NaNd instead of NAN.
57597         * modules/round-tests (Files): Add tests/nan.h.
57598
57599         * tests/test-trunc1.c: Include nan.h.
57600         (main): Use NaNd instead of NAN.
57601         * modules/trunc-tests (Files): Add tests/nan.h.
57602
57603         * tests/test-roundf1.c: Include nan.h.
57604         (main): Use NaNf instead of NAN.
57605         * modules/roundf-tests (Files): Add tests/nan.h.
57606
57607         * tests/test-truncf1.c: Include nan.h.
57608         (main): Use NaNf instead of NAN.
57609         * modules/truncf-tests (Files): Add tests/nan.h.
57610
57611         * tests/test-ceilf1.c: Include nan.h.
57612         (main): Use NaNf instead of NAN.
57613         * modules/ceilf-tests (Files): Add tests/nan.h.
57614
57615         * tests/test-floorf1.c: Include nan.h.
57616         (main): Use NaNf instead of NAN.
57617         * modules/floorf-tests (Files): Add tests/nan.h.
57618
57619         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57620         (main): Use NaNf instead of NAN.
57621         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57622
57623         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57624         (main): Use NaNd instead of NAN.
57625         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57626
57627         * tests/test-frexp.c: Include nan.h.
57628         (main): Use NaNd instead of NAN.
57629         * modules/frexp-tests (Files): Add tests/nan.h.
57630
57631         * lib/isnan.c: Don't include <math.h>.
57632         (FUNC): Don't use NAN macro.
57633         * modules/isnand-nolibm (Depends-on): Remove math.
57634         * modules/isnanf-nolibm (Depends-on): Remove math.
57635         * modules/isnanl (Depends-on): Remove math.
57636         * modules/isnanl-nolibm (Depends-on): Remove math.
57637
57638         * tests/nan.h: New file.
57639
57640 2008-04-01  Eric Blake  <ebb9@byu.net>
57641
57642         Fix typos.
57643         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57644         values to be the right type.
57645
57646         For now, cater to gnulib strtod inaccuracies.
57647         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57648         fractional results.  While not as nice from a QoI perspective, it
57649         is a quicker patch than correctly implementing decimal to binary
57650         rounding.
57651
57652 2008-03-31  Eric Blake  <ebb9@byu.net>
57653
57654         Guarantee a definition of NAN.
57655         * lib/math.in.h (NAN): Define if missing.
57656         * tests/test-math.c (main): Test it.
57657         * doc/posix-headers/math.texi (math.h): Document this.
57658         * lib/isnan.c (rpl_isnand): Use it.
57659         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57660         * tests/test-floorf1.c (NaN): Likewise.
57661         * tests/test-frexp.c (NaN): Likewise.
57662         * tests/test-isnand.c (NaN): Likewise.
57663         * tests/test-isnanf.c (NaN): Likewise.
57664         * tests/test-round1.c (NaN): Likewise.
57665         * tests/test-roundf1.c (NaN): Likewise.
57666         * tests/test-snprintf-posix.h (NaN): Likewise.
57667         * tests/test-sprintf-posix.h (NaN): Likewise.
57668         * tests/test-trunc1.c (NaN): Likewise.
57669         * tests/test-truncf1.c (NaN): Likewise.
57670         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57671         * tests/test-vasprintf-posix.c (NaN): Likewise.
57672         * modules/isnand-nolibm (Depends-on): Add math.
57673         * modules/isnanf-nolibm (Depends-on): Likewise.
57674         * modules/isnanl (Depends-on): Likewise.
57675         * modules/isnanl-nolibm (Depends-on): Likewise.
57676         * modules/snprintf-posix-tests (Depends-on): Likewise.
57677         * modules/sprintf-posix-tests (Depends-on): Likewise.
57678         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57679         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57680         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57681         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57682
57683 2008-03-31  Bruno Haible  <bruno@clisp.org>
57684
57685         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57686         * doc/posix-functions/strtod.texi: Likewise.
57687
57688 2008-03-31  Bruno Haible  <bruno@clisp.org>
57689
57690         * tests/test-strtod.c (main): Don't use C99 syntax.
57691
57692 2008-03-31  Bruno Haible  <bruno@clisp.org>
57693
57694         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57695         Reported by Eric Blake.
57696
57697 2008-03-31  Jim Meyering  <meyering@redhat.com>
57698
57699         Don't compare actual signbit return values.
57700         * tests/test-strtod.c (main): Rather, compare only their
57701         zero/non-zero nature.
57702
57703 2008-03-31  Eric Blake  <ebb9@byu.net>
57704
57705         More strtod documentation.
57706         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57707         failures as distinct bugs.
57708
57709 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57710
57711         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57712         Problem reported by Erik Benada in
57713         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57714
57715 2008-03-30  Bruno Haible  <bruno@clisp.org>
57716
57717         * tests/test-strtod.c: Add comments about which assertion fails on which
57718         platform.
57719         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57720
57721 2008-03-30  Eric Blake  <ebb9@byu.net>
57722
57723         Test signbit behavior on zeros.
57724         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57725         (test_signbitd, test_signbitl): Likewise.
57726
57727         More strtod touchups.
57728         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57729         sign of negative underflow, for now.  Use .5, not .1.
57730         * doc/posix-functions/strtod.texi (strtod): Mention these
57731         limitations.
57732         Reported by Jim Meyering.
57733
57734 2008-03-30  Bruno Haible  <bruno@clisp.org>
57735
57736         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57737         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57738
57739 2008-03-30  Bruno Haible  <bruno@clisp.org>
57740
57741         Avoid failure when attempting to return empty iconv results on some
57742         platforms.
57743         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57744         allocation, don't report ENOMEM when the resulting string is empty.
57745
57746 2008-03-30  Bruno Haible  <bruno@clisp.org>
57747
57748         Fix buffer overrun.
57749         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57750         Don't consider the width for tmp_length. Check count against tmp_length
57751         before doing the padding. Ensure enough allocation during padding.
57752
57753 2008-03-30  Eric Blake  <ebb9@byu.net>
57754
57755         strtod touchups.
57756         * lib/strtod.c (strtod): Avoid compiler warnings.
57757         Reported by Jim Meyering.
57758
57759 2008-03-30  Bruno Haible  <bruno@clisp.org>
57760
57761         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57762         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57763         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57764         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57765         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57766         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57767         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57768         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57769
57770         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57771         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57772         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57773         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57774         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57775         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57776         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57777         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57778
57779         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57780         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57781         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57782         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57783         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57784         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57785         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57786         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57787
57788         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57789         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57790
57791         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57792         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57793
57794         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57795         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57796
57797         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57798         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57799         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57800
57801         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57802         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57803         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57804
57805         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57807         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57808
57809         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57810         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57811         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57812
57813         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57814         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57816         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57817         (Depends-on): Add EOVERFLOW.
57818         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57819         (Depends-on): Add EOVERFLOW.
57820         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57821         (Depends-on): Add EOVERFLOW.
57822         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57823         (Depends-on): Add EOVERFLOW.
57824         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57825         (Depends-on): Add EOVERFLOW.
57826         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57827         (Depends-on): Add EOVERFLOW.
57828         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57829         (Depends-on): Add EOVERFLOW.
57830         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57831         (Depends-on): Add EOVERFLOW.
57832
57833         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57834         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57835         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57836
57837         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57838         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57839         * modules/snprintf (Depends-on): Add EOVERFLOW.
57840
57841         * lib/poll.c (EOVERFLOW): Remove fallback.
57842         * modules/poll (Depends-on): Add EOVERFLOW.
57843
57844         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57845         * modules/getugroups (Depends-on): Add EOVERFLOW.
57846
57847         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57848         * modules/getdelim (Depends-on): Add EOVERFLOW.
57849
57850         * lib/ftell.c (EOVERFLOW): Remove fallback.
57851         * modules/ftell (Depends-on): Add EOVERFLOW.
57852
57853         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57854         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57855         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57856
57857         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57858
57859         * modules/EOVERFLOW-tests: New file.
57860         * tests/test-EOVERFLOW.c: New file.
57861
57862         * modules/EOVERFLOW: New file.
57863         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57864
57865 2008-03-30  Bruno Haible  <bruno@clisp.org>
57866
57867         Fix bug introduced on 2007-06-10.
57868         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57869         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57870
57871 2008-03-30  Bruno Haible  <bruno@clisp.org>
57872
57873         Improve freadseek's efficiency after ungetc.
57874         * lib/freadseek.c: Include freadahead.h.
57875         (freadptrinc): New function, extracted from freadseek.
57876         (freadseek): Use it in a loop. Use freadahead to determine the number
57877         of loop iterations.
57878         * modules/freadseek (Depends-on): Add freadahead.
57879         (configure.ac): Require AC_C_INLINE.
57880
57881 2008-03-30  Bruno Haible  <bruno@clisp.org>
57882
57883         * lib/freadseek.c (freadseek): Don't ignore the return value of
57884         freadptr.
57885
57886 2008-03-29  Eric Blake  <ebb9@byu.net>
57887
57888         Add hex float support.
57889         * modules/strtod (Depends-on): Add c-ctype.
57890         (Link): Mention POW_LIB.
57891         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57892         whitespace between 'e' and exponent.
57893         * tests/test-strtod.c (main): Enable hex float tests.
57894         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57895         now provides.
57896
57897         Document various strtod bugs, with some fixes.
57898         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57899         "-0x", "inf", "nan", and hex constants.
57900         * doc/posix-functions/atof.texi (atof): Likewise.
57901         * modules/stdlib (Makefile.am): Support strtod.
57902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57903         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57904         detect additional strtod bugs.
57905         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57906         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57907         bool where appropriate.  Parse 'inf' and 'nan'.
57908         * tests/test-strtod.c: New file.
57909         * modules/strtod (Depends-on): Add stdbool, stdlib.
57910         (configure.ac): Turn on module indicator.
57911         * modules/strtod-tests: New module.
57912
57913 2008-03-29  Eric Blake  <ebb9@byu.net>
57914
57915         Fix ftell on mingw.
57916         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57917         * modules/ftell-tests (Depends-on): Add binary-io.
57918         * modules/ftello-tests (Depends-on): Likewise.
57919         * tests/test-ftell.c (main): Enhance test to cover behavior after
57920         ungetc.  Enforce binary mode.
57921         * tests/test-ftello.c (main): Likewise.
57922
57923         Pass test-freadseek on cygwin.
57924         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57925         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57926         ungetc buffer.
57927
57928         * tests/test-fflush2.c (main): Fix typo.
57929
57930 2008-03-29  Bruno Haible  <bruno@clisp.org>
57931
57932         * tests/test-fflush2.c (main): Temporarily disable the contents of
57933         this test.
57934         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57935         Reported by Eric Blake.
57936
57937 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57938
57939         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57940         (GC_SHA224_DIGEST_SIZE): Add.
57941
57942         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57943         (gc_hash_digest_length): Likewise.
57944         (gc_hash_buffer): Likewise.
57945
57946 2008-03-25  Bruno Haible  <bruno@clisp.org>
57947
57948         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57949         detail which gettext release to use.
57950         Reported by Simon Josefsson.
57951
57952 2008-03-26  Jim Meyering  <meyering@redhat.com>
57953
57954         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57955         * modules/gnumakefile (clean-GNUmakefile): Also, use
57956         test ... && ... || : syntax rather than if-then ... fi.
57957
57958         gnumakefile: Don't double-quote-expand $(VPATH) value.
57959         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57960
57961 2008-03-24  Eric Blake  <ebb9@byu.net>
57962
57963         Alter GNUmakefile to install into top directory.
57964         * modules/maintainer-makefile: Split, and add dependency...
57965         * modules/gnumakefile: to this new module.
57966         * build-aux/GNUmakefile: Move...
57967         * top/GNUmakefile: ...here.
57968         * build-aux/maint.mk: Move...
57969         * top/maint.mk: ...here.
57970         * MODULES.html.sh (Support for maintaining...): Document new
57971         module.
57972
57973 2008-03-23  Bruno Haible  <bruno@clisp.org>
57974
57975         * gnulib-tool: New options --vc-files, --no-vc-files.
57976         (func_usage): Document them.
57977         (vc_files): New variable.
57978         (func_import): Consider vc_files.
57979         (func_create_testdir): Set vc_files to empty.
57980         Suggested by Jim Meyering and Karl Berry.
57981
57982 2008-03-23  Bruno Haible  <bruno@clisp.org>
57983
57984         Fix regex compilation error on HP-UX 11.
57985         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57986         * modules/regex (Files): Add m4/mbstate_t.m4.
57987         Reported by Ton Voon <ton.voon@altinity.com>.
57988
57989 2008-03-23  Bruno Haible  <bruno@clisp.org>
57990
57991         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57992
57993 2008-03-23  Eric Blake  <ebb9@byu.net>
57994             Bruno Haible  <bruno@clisp.org>
57995
57996         Install files from top/ in the destination directory.
57997         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57998         augmentation also for the files from top/.
57999         (func_import, func_create_testdir): Rewrite file names:
58000         top/filename -> filename.
58001
58002 2008-03-23  Bruno Haible  <bruno@clisp.org>
58003
58004         Tweak "gnulib --version" output.
58005         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58006
58007 2008-03-23  Bruno Haible  <bruno@clisp.org>
58008
58009         Tweak "gnulib --version" output.
58010         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58011         rather than contents of ChangeLog, when possible.
58012
58013 2008-03-21  Eric Blake  <ebb9@byu.net>
58014
58015         More --version tweaks.
58016         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58017         date of last ChangeLog entry.
58018
58019 2008-03-21  Jim Meyering  <meyering@redhat.com>
58020
58021         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58022
58023 2008-03-20  Eric Blake  <ebb9@byu.net>
58024
58025         VPATH fix.
58026         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58027
58028 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58029
58030         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58031         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58032
58033 2008-03-20  Eric Blake  <ebb9@byu.net>
58034
58035         Sync GNUmakefile with coreutils.
58036         * build-aux/GNUmakefile (have-Makefile): Rename...
58037         (_have-Makefile): ...to this, for namespace consideration.
58038         (GNUmakefile.cfg): Include, if present.
58039         (_autoreconf): Define a default.
58040         (_is-dist-target): New rule for rebuilds to pick up intra-release
58041         version.
58042         (maint-cfg.mk): Rename...
58043         (cfg.mk): ...to this.
58044
58045 2008-03-18  Jim Meyering  <meyering@redhat.com>
58046
58047         New script and module: mktempd
58048         * MODULES.html.sh (maint+release support): Add mktempd.
58049         * build-aux/mktempd: New file.
58050         * modules/mktempd: New file.
58051
58052 2008-03-15  Jim Meyering  <meyering@redhat.com>
58053
58054         Undo last change.
58055         * lib/sha1.c, lib/md5.c: 63 != ~63.
58056         Reported by Andreas Schwab.
58057
58058         sha1.c, md5.c: Hoist a redundant expression.
58059         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58060         "ctx->buflen" only once, before calling *_process_block.
58061         * lib/md5.c (md5_process_bytes): Likewise.
58062
58063 2008-03-14  Eric Blake  <ebb9@byu.net>
58064
58065         Bump copyright year in files generated by gnulib-tool.
58066         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58067         gnulib-tool, rather than hard-coding it.
58068
58069         Fix 'gnulib-tool --version' output to work with git.
58070         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58071         (startup): ...here.
58072         (func_version): Use it to invoke git-version-gen, rather than
58073         relying on CVS keyword expansion.  Modernize wording.
58074         (cvsdatestamp, last_checkin_date, version): Kill unused
58075         variables.
58076
58077 2008-03-12  Jim Meyering  <meyering@redhat.com>
58078
58079         Recognize optional cast of the argument to free.
58080         * build-aux/useless-if-before-free: Update regexps.
58081
58082         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58083
58084 2008-03-11  Bruno Haible  <bruno@clisp.org>
58085
58086         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58087         by a single package.
58088         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58089         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58090         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58091         Reported by Sam Steingold <sds@gnu.org>.
58092
58093 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58094
58095         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58096         repositories.
58097
58098 2008-03-11  Bruno Haible  <bruno@clisp.org>
58099
58100         Avoid conflicts between local macro definitions.
58101         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58102         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58103
58104 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58105             Bruno Haible  <bruno@clisp.org>
58106
58107         Make va_copy work with some version of xlc on AIX 5.1.
58108         * lib/stdarg.in.h: New file.
58109         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58110         On AIX, use a <stdarg.h> file substitute.
58111         * modules/stdarg (Files): Add lib/stdarg.in.h.
58112         (Depends-on): Add include_next.
58113         (Makefile.am): Build a stdarg.h substitute if requested.
58114         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58115
58116 2008-03-10  Bruno Haible  <bruno@clisp.org>
58117
58118         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58119         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58120         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58121
58122 2008-03-10  Bruno Haible  <bruno@clisp.org>
58123
58124         * modules/stdlib (Depends-on): Add include_next, remove
58125         absolute-header.
58126
58127 2008-03-09  Bruno Haible  <bruno@clisp.org>
58128
58129         * lib/freadahead.h (freadahead): Document more precisely.
58130         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58131         the sum of both buffer sizes.
58132         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58133         * NEWS: Document the change.
58134
58135 2008-03-09  Bruno Haible  <bruno@clisp.org>
58136
58137         Extend freadptr to return also the buffer size.
58138         * lib/freadptr.h (freadptr): Add sizep argument.
58139         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58140         (freadptr): Add sizep argument. Determine buffer size like freadahead
58141         does.
58142         * tests/test-freadptr.c: Don't include freadahead.h.
58143         (main): Adapt for new calling convention of freadptr.
58144         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58145         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58146         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58147         tests/test-freadptr2.sh.
58148         (Depends): Remove freadahead.
58149         (TESTS): Add test-freadptr2.sh.
58150         (check_PROGRAMS): Add test-freadptr2.
58151
58152 2008-03-09  Bruno Haible  <bruno@clisp.org>
58153
58154         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58155         Report and solution by Simon Josefsson.
58156
58157 2008-03-06  Bruno Haible  <bruno@clisp.org>
58158
58159         Make fflush after ungetc work on BSD platforms.
58160         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58161         * tests/test-fflush2.c: New file.
58162         * tests/test-fflush2.sh: New file.
58163         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58164         tests/test-fflush2.c.
58165         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58166         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58167
58168 2008-03-06  Eric Blake  <ebb9@byu.net>
58169
58170         Likewise for ftello.
58171         * modules/ftello (Dependencies): Add extensions.
58172         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58173
58174 2008-03-06  Bruno Haible  <bruno@clisp.org>
58175
58176         * modules/fseeko (Dependencies): Add extensions.
58177         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58178         Needed on glibc systems.
58179
58180 2008-03-06  Bruno Haible  <bruno@clisp.org>
58181
58182         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58183         email address.
58184         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58185
58186 2008-03-06  Bruno Haible  <bruno@clisp.org>
58187
58188         * users.txt: Add libgnupdf.
58189
58190 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58191
58192         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58193         (Header File Substitutes, Function Substitutes,
58194         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58195         (Build robot for gnulib): Fix typo.
58196
58197 2008-03-06  Bruno Haible  <bruno@clisp.org>
58198
58199         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58200         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58201
58202 2008-03-06  Bruno Haible  <bruno@clisp.org>
58203
58204         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58205         * doc/gnulib.texi: Include it.
58206
58207 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58208
58209         * modules/func (License): Change license to unlimited; there was
58210         no LGPL parts in the module anyway.
58211
58212 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58213
58214         * modules/__func__: Renamed to modules/func.
58215         * modules/__func__-tests: Renamed to modules/func-tests.
58216         * tests/test-__func__.c: Renamed to tests/test-func.c.
58217         * m4/__func__.m4: Renamed to m4/func.m4.
58218         * doc/gnulib.texi (__func__): Section renamed to func.
58219         Suggested by Eric Blake <ebb9@byu.net>.
58220
58221 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58222
58223         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58224         about __func__.  Make example self-contained.  Suggested by Eric
58225         Blake <ebb9@byu.net>.
58226
58227         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58228         Suggested by Eric Blake <ebb9@byu.net>.
58229
58230 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58231
58232         * modules/__func__: New file.
58233         * modules/__func__-tests: New file.
58234         * tests/test-__func__.c: New file.
58235         * m4/__func__.m4: New file.
58236         * doc/gnulib.texi (__func__): Document __func__ module.
58237
58238 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58239
58240         * modules/byteswap (License): Re-license as LGPLv2+.
58241
58242 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58243
58244         * doc/Makefile: Add pdf target.
58245
58246 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58247
58248         * modules/inline (License): Use 'unlimited', since there are only
58249         *.m4 files in this module.
58250
58251 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58252             Bruno Haible  <bruno@clisp.org>
58253
58254         Add support for HP C 7.1 on OpenVMS 8.3.
58255         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
58256
58257 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58258
58259         Update VMS specifics.
58260         * lib/getopt.c [VMS]: Remove include of unixlib.h.
58261
58262 2008-03-02  Jim Meyering  <meyering@redhat.com>
58263
58264         Remove the last dependency on the "free" module.
58265         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58266         Reported by Bob Proulx.
58267
58268         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58269
58270         Remove useless "if" tests before free.  Deprecate "free" module.
58271         * doc/posix-functions/free.texi: Mention that this
58272         module is no longer useful.
58273         * modules/free (Notice): Say this module is obsolete.
58274         * modules/readutmp (Depends-on): Remove free.
58275         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58276         * lib/putenv.c (putenv): Likewise.
58277         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58278         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58279         * tests/test-c-strcasestr.c (main): Likewise.
58280         * tests/test-c-strstr.c (main): Likewise.
58281         * tests/test-mbscasestr1.c (main): Likewise.
58282         * tests/test-mbscasestr2.c (main): Likewise.
58283         * tests/test-mbsstr1.c (main): Likewise.
58284         * tests/test-mbsstr2.c (main): Likewise.
58285         * tests/test-memmem.c (main): Likewise.
58286         * tests/test-strcasestr.c (main): Likewise.
58287         * tests/test-striconv.c (main): Likewise.
58288         * tests/test-striconveh.c (main): Likewise.
58289         * tests/test-striconveha.c (main): Likewise.
58290         * tests/test-strstr.c (main): Likewise.
58291
58292         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58293
58294         bootstrap: sync from coreutils again
58295         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58296
58297 2008-03-01  Jim Meyering  <meyering@redhat.com>
58298
58299         bootstrap: sync from coreutils
58300         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58301         also when the target doesn't exist.
58302
58303 2008-03-01  Eric Blake  <ebb9@byu.net>
58304
58305         Fix bugs in last patch.
58306         * lib/memchr2.c (memchr2): Fix typo.
58307         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58308         extension.
58309         Reported by Bruce Korb.
58310
58311         New module 'memchr2'.
58312         * modules/memchr2: New file.
58313         * modules/memchr2-tests: Likewise.
58314         * lib/memchr2.h: Likewise.
58315         * lib/memchr2.c: Likewise, based on memchr.c.
58316         * tests/test-memchr2.c: New test.
58317         * MODULES.html.sh (String handling): Add memchr2.
58318
58319 2008-02-29  Bruno Haible  <bruno@clisp.org>
58320
58321         * modules/freadseek-tests: New file.
58322         * tests/test-freadseek.sh: New file.
58323         * tests/test-freadseek.c: New file.
58324
58325         New module 'freadseek'.
58326         * modules/freadseek: New file.
58327         * lib/freadseek.h: New file.
58328         * lib/freadseek.c: New file.
58329         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
58330
58331 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58332
58333         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
58334         wydawca.
58335
58336         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
58337         program_invocation_name and program_invocation_short_name are
58338         present.
58339
58340 2008-02-28  Bruno Haible  <bruno@clisp.org>
58341
58342         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
58343         * tests/test-freadptr.sh: Also test non-seekable stdin.
58344
58345 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
58346
58347         * build-aux/bootstrap (source_base, m4_base)
58348         (doc_base, tests_base): New variables.
58349         (gnulib_tool_options): Do not hardcode base directories, use
58350         the above variables instead.
58351
58352 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
58353
58354         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
58355
58356 2008-02-28  Bruno Haible  <bruno@clisp.org>
58357
58358         * modules/freadptr-tests: New file.
58359         * tests/test-freadptr.sh: New file.
58360         * tests/test-freadptr.c: New file.
58361
58362         New module 'freadptr'.
58363         * modules/freadptr: New file.
58364         * lib/freadptr.h: New file.
58365         * lib/freadptr.c: New file.
58366         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
58367
58368 2008-02-26  Karl Berry  <karl@freefriends.org>
58369
58370         Sync from Libtool:
58371         * libltdl/argz.c (argz_add, argz_count): New functions.
58372         * libltdl/argz.in.h: Declare them.
58373         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
58374
58375 2008-02-22  Bruno Haible  <bruno@clisp.org>
58376
58377         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
58378         is a pointer type.  Needed for HP-UX 10.
58379         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
58380         * doc/posix-functions/gmtime_r.texi: Likewise.
58381         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58382
58383 2008-02-24  Bruno Haible  <bruno@clisp.org>
58384
58385         * modules/environ-tests: New file.
58386         * tests/test-environ.c: New file.
58387
58388         New module 'environ'.
58389         * modules/environ: New file.
58390         * lib/unistd.in.h (environ): New declaration.
58391         * m4/environ.m4: New file.
58392         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58393         after use.
58394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58395         HAVE_DECL_ENVIRON.
58396         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58397         HAVE_DECL_ENVIRON.
58398         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58399         wrong claim that 'environ' is missing on some systems.
58400         * modules/execute (Depends-on): Add environ.
58401         * lib/execute.c (environ): Remove fallback declaration.
58402         * modules/pipe (Depends-on): Add environ.
58403         * lib/pipe.c (environ): Remove fallback declaration.
58404         * modules/setenv (Depends-on): Add environ.
58405         * lib/setenv.c (environ): Remove fallback declaration.
58406         * modules/unsetenv (Depends-on): Add environ.
58407         * lib/unsetenv.c (environ): Remove fallback declaration.
58408         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
58409         m4/environ.m4.
58410         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
58411         (gl_PREREQ_UNSETENV): Likewise.
58412
58413 2008-02-24  Bruno Haible  <bruno@clisp.org>
58414
58415         * doc/posix-functions/environ.texi: Document the MacOS X problem.
58416
58417 2008-02-20  Bob Proulx  <bob@proulx.com>
58418
58419         Enable use of older two part flavor 'git describe'.
58420         * build-aux/git-version-gen: If using the older two part flavor of
58421         git version then recreate the third part now present in the
58422         newer three part flavor of git describe.
58423
58424 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
58425
58426         * lib/fts.c (fts_build): Typo correction to comment.
58427
58428 2008-02-17  Bruno Haible  <bruno@clisp.org>
58429
58430         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58431         generating no-op conflicts.
58432
58433 2008-02-17  Bruno Haible  <bruno@clisp.org>
58434
58435         Speed up by 10%.
58436         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
58437         result_entries, rather than an index-based loop.
58438
58439 2008-02-17  Bruno Haible  <bruno@clisp.org>
58440
58441         Speed up by 25%.
58442         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58443         'hashcode_cached'.
58444         (entry_create): New function.
58445         (entry_hashcode): Use the cached hashcode if possible.
58446         (read_changelog_file, try_split_merged_entry): Use entry_create.
58447
58448 2008-02-17  Bruno Haible  <bruno@clisp.org>
58449
58450         Speed up from O(n^2) to O(n) for long ChangeLog files.
58451         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
58452         (read_changelog_file): Change implementation of entries_reversed list
58453         to rbtreehash.
58454         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
58455
58456 2008-02-17  Bruno Haible  <bruno@clisp.org>
58457
58458         New option --split-merged-entry.
58459         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
58460         (find_paragraph_end, try_split_merged_entry): New functions.
58461         (long_options): Add option --split-merged-entry.
58462         (usage): Document option --split-merged-entry.
58463         (main): Implement option --split-merged-entry.
58464         Reported by Eric Blake.
58465
58466 2008-02-17  Bruno Haible  <bruno@clisp.org>
58467
58468         * lib/git-merge-changelog.c: Include c-strstr.h.
58469         (main): Support the "git pull --rebase" situation.
58470         * modules/git-merge-changelog (Depends-on): Add c-strstr.
58471         Reported by Eric Blake.
58472
58473 2008-02-16  Eric Blake  <ebb9@byu.net>
58474
58475         Avoid doubling \ in common case of "c-maybe" quoting style.
58476         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
58477         eliding outer quotes.
58478         * lib/quotearg.h: Document this.
58479         * tests/test-quotearg.c (result_strings, inputs, results_g)
58480         (flag_results, locale_results): Test it by adding a new string to
58481         each test group.
58482         (compare_strings): Test new string.
58483
58484 2008-02-13  Eric Blake  <ebb9@byu.net>
58485
58486         Avoid trigraph quoting in default output.
58487         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58488         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58489         unless explicitly requested.
58490         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58491
58492 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58493
58494         Don't rely on signed integer overflowing to negative value.
58495         * lib/getugroups.c (getugroups): Include <limits.h>.
58496         Instead, compare against INT_MAX, and increment only if the test passes.
58497
58498 2008-02-13  Jim Meyering  <meyering@redhat.com>
58499         and Eric Blake  <ebb9@byu.net>
58500
58501         Avoid shadowing warning and compile errors on Linux.
58502         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58503         forwarding macros on Linux.
58504         (dcgettext): Define a stub, for Linux.
58505         (results_g, main): Avoid warnings.
58506
58507 2008-02-12  Eric Blake  <ebb9@byu.net>
58508
58509         Silence warning in last patch.
58510         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58511
58512         Quotearg part 4: add tests, fix c-maybe colon quoting.
58513         * lib/quotearg.h: Improve documentation.
58514         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58515         escapes when adding outer quotes.  When quoting trigraphs, use
58516         valid C notation.  When quoting NUL, omit extra characters if next
58517         character is not digit.  Alter prototype.
58518         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58519         callers.
58520         * modules/quotearg-tests: New module.
58521         * tests/test-quotearg.c: New test.
58522
58523 2008-02-07  Eric Blake  <ebb9@byu.net>
58524
58525         Quotearg part 3: add flag to control outer quote elision.
58526         * lib/quotearg.h (c_maybe_quoting_style): New style.
58527         (enum quoting_flags): Better documentation of flags.
58528         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58529         c-maybe style.
58530         (quotearg_buffer_restyled): Handle new flag to elide outer
58531         quotes.
58532
58533         Quotearg part 2: add flag that can control NUL elision.
58534         * lib/quotearg.h (set_quoting_flags): New prototype.
58535         * lib/quotearg.c (struct quoting_options): Add flag field.
58536         (set_quoting_flags): New function.
58537         (quotearg_buffer_restyled): Add flags parameter.
58538         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58539         (quotearg_n_options): Set the flag, since length cannot be
58540         returned.
58541         (quoting_options_from_style): Default flags correctly.
58542
58543         Quotearg part 1: more wrappers, restore quotearg_char state.
58544         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58545         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58546         (quotearg_colon_mem): New wrappers.
58547         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58548         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58549         functions.
58550         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58551         (quotearg_colon_mem): New functions.
58552
58553 2008-02-11  Bruno Haible  <bruno@clisp.org>
58554
58555         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58556         library in the current directory: it does not work with parallel make.
58557         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58558
58559 2008-02-11  Bruno Haible  <bruno@clisp.org>
58560
58561         * .gitattributes: New file.
58562
58563 2008-02-11  Jim Meyering  <meyering@redhat.com>
58564
58565         useless-if-before-free: Fix reversed exit values.
58566         * build-aux/useless-if-before-free: Use correct values
58567         for EXIT_MATCH and EXIT_NO_MATCH.
58568
58569         * build-aux/useless-if-before-free: Close stdout carefully.
58570
58571 2008-02-10  Bruno Haible  <bruno@clisp.org>
58572
58573         New module 'git-merge-changelog'.
58574         * modules/git-merge-changelog: New file.
58575         * lib/git-merge-changelog.c: New file.
58576
58577 2008-02-10  Jim Meyering  <meyering@redhat.com>
58578
58579         useless-if-before-free: New option: --list (-l).
58580
58581         useless-if-before-free: Don't exit immediately upon open failure.
58582         * build-aux/useless-if-before-free: Exit 2 for errors.
58583         Upon failure to open a file, don't exit immediately.
58584         Rather, just warn and continue with any remaining files.
58585
58586 2008-02-10  Bruno Haible  <bruno@clisp.org>
58587
58588         New abstract list operation 'node_set_value'.
58589         * lib/gl_list.h (gl_list_node_set_value): New function.
58590         (struct gl_list_implementation): New field node_set_value.
58591         * lib/gl_list.c (gl_list_node_set_value): New function.
58592         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58593         (gl_array_list_implementation): Update.
58594         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58595         (gl_carray_list_implementation): Update.
58596         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58597         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58598         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58599         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58600         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58601         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58602         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58603         Update.
58604         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58605         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58606         (gl_sublist_list_implementation): Update.
58607
58608 2008-02-10  Bruno Haible  <bruno@clisp.org>
58609
58610         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58611         Needed when ELEMENT is #defined to 'some_type *'.
58612
58613 2008-02-10  Jim Meyering  <meyering@redhat.com>
58614
58615         New script and module: useless-if-before-free
58616         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58617         * build-aux/useless-if-before-free: New file.
58618         * modules/useless-if-before-free: New file.
58619
58620         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58621
58622         xstrtol_error: Fix typo.
58623         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58624         s/exit_failure/exit_status/.
58625
58626 2008-02-09  Jim Meyering  <meyering@redhat.com>
58627
58628         New script and module: gitlog-to-changelog
58629         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58630         * modules/gitlog-to-changelog: New file.
58631         * build-aux/gitlog-to-changelog: New file.
58632
58633 2008-02-08  Jim Meyering  <meyering@redhat.com>
58634
58635         Avoid two "parameter unused" warnings.
58636         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58637         Mark "st" as used.
58638
58639         Use "git COMMAND", not "git-COMMAND".
58640         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58641         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58642         * build-aux/git-version-gen: Use "git status", not "git-status".
58643
58644 2008-02-07  Bruno Haible  <bruno@clisp.org>
58645
58646         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58647         Avoids a crash on Windows Vista.
58648         Reported by Adam Strzelecki <ono@java.pl> via
58649         Simon Josefsson <simon@josefsson.org>.
58650
58651 2008-02-06  Bruno Haible  <bruno@clisp.org>
58652
58653         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58654         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58655         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58656         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58657         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58658         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58659         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58660         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58661         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58662         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58663         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58664         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58665         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58666         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58667         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58668         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58669         left-adjust flag.
58670         * tests/test-snprintf-posix.h (test_function): Likewise.
58671         * tests/test-sprintf-posix.h (test_function): Likewise.
58672         * tests/test-vasprintf-posix.c (test_function): Likewise.
58673         * doc/posix-functions/fprintf.texi: Update.
58674         * doc/posix-functions/printf.texi: Update.
58675         * doc/posix-functions/snprintf.texi: Update.
58676         * doc/posix-functions/sprintf.texi: Update.
58677         * doc/posix-functions/vfprintf.texi: Update.
58678         * doc/posix-functions/vprintf.texi: Update.
58679         * doc/posix-functions/vsnprintf.texi: Update.
58680         * doc/posix-functions/vsprintf.texi: Update.
58681         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58682
58683 2008-02-06  Bruno Haible  <bruno@clisp.org>
58684
58685         Fix bug introduced on 2008-01-26.
58686         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58687
58688 2008-02-06  Bruno Haible  <bruno@clisp.org>
58689
58690         Fix bug introduced on 2007-06-10.
58691         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58692         !NEED_PRINTF_FLAG_ZERO.
58693
58694 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58695
58696         getloadavg: use libperfstat on AIX5
58697         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58698
58699 2008-02-03  Bruno Haible  <bruno@clisp.org>
58700
58701         * lib/diffseq.h: Add comments about required #includes.
58702         Reported by Michael Biggs <gnulib@doubleplum.net>.
58703
58704 2008-02-01  Bruno Haible  <bruno@clisp.org>
58705
58706         * users.txt: Add gnuit.
58707
58708 2008-01-31  Bruno Haible  <bruno@clisp.org>
58709
58710         * lib/md4.c (set_uint32): Mark as inline.
58711         * lib/md5.c (set_uint32): Likewise.
58712         * lib/sha1.c (set_uint32): Likewise.
58713         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58714         * m4/md5.m4 (gl_MD5): Likewise.
58715         * m4/sha1.m4 (gl_SHA1): Likewise.
58716
58717 2008-01-31  Jim Meyering  <meyering@redhat.com>
58718
58719         Use "sizeof VAR", rather than a literal "4".
58720         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58721         * lib/md4.c (md4_read_ctx): Likewise.
58722         * lib/sha1.c (sha1_read_ctx): Likewise.
58723
58724 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58725
58726         * tests/test-sha1.c: New file, based on test-md5.c.
58727
58728         * modules/crypto/sha1-tests: New file.
58729
58730 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58731
58732         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58733
58734 2008-01-31  Jim Meyering  <meyering@redhat.com>
58735
58736         Prefer "sizeof v" over the equivalent "4".
58737         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58738         * lib/md5.c (set_uint32): Likewise.
58739         * lib/sha1.c (set_uint32): Likewise.
58740
58741 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58742
58743         * lib/sha1.c (set_uint32): Mark function as static.
58744
58745 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58746
58747         md2: clarify comments to say that alignment is not required.
58748         * lib/md2.h: Remove warning about alignment in comment.
58749         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58750         never been required.
58751
58752 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58753
58754         md4: adapt alignment constraint fix from sha1.
58755         * lib/md4.c (set_uint32): New function, from sha1.c
58756         (md4_read_ctx): Use it.
58757         (md4_finish_ctx): Doc fix.
58758         * lib/md4.h: Doc fix.
58759
58760 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58761
58762         md5: adapt alignment constraint fix from sha1.
58763         * lib/md5.c (set_uint32): New function, from sha1.c
58764         (md5_read_ctx): Use it.
58765         (md5_finish_ctx): Doc fix.
58766         * lib/md5.h: Doc fix.
58767
58768 2008-01-30  Peter Palfrader  <weasel@debian.org>
58769
58770         sha1: remove the result buffer alignment constraint
58771         * lib/sha1.c (set_uint32): New function.
58772         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58773         constraint.
58774         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58775         * lib/sha1.h: Likewise.
58776
58777 2008-01-30  Andreas Schwab  <schwab@suse.de>
58778             Bruno Haible  <bruno@clisp.org>
58779
58780         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58781         correct definition of LDBL_MIN_EXP.
58782
58783 2008-01-30  Karl Berry  <karl@gnu.org>
58784
58785         * config/srclist-update: try to preserve x bit on updates.
58786         * config/srclistvars.sh: update for karl.
58787
58788 2008-01-29  Jim Meyering  <meyering@redhat.com>
58789
58790         vasnprintf.c: Avoid warning about unused label
58791         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58792         "overflow" label definition and associated code with the
58793         same cpp condition that guards the sole use of that label.
58794
58795 2008-01-26  Bruno Haible  <bruno@clisp.org>
58796
58797         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58798         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58799         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58800         * lib/isnanl-nolibm.h (isnanl): Likewise.
58801         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58802
58803 2008-01-26  Bruno Haible  <bruno@clisp.org>
58804
58805         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58806         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58807
58808 2008-01-26  Bruno Haible  <bruno@clisp.org>
58809
58810         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58811         GCC >= 4.0 built-in.
58812         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58813
58814 2008-01-26  Bruno Haible  <bruno@clisp.org>
58815
58816         Rename isnan, applicable to 'double' only, to isnand.
58817         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58818         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58819         (configure.ac): Update.
58820         (Include): Replace "isnan.h" with "isnand.h".
58821         * m4/isnand.m4: Renamed from m4/isnan.m4.
58822         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58823         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58824         instead of isnan.c.
58825         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58826         instead of HAVE_ISNAN_IN_LIBC.
58827         (isnand): Renamed from isnan.
58828         * lib/isnand.c: New file.
58829         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58830         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58831         (Makefile.am): Update.
58832         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58833         Include isnand.h instead of isnan.h.
58834         (main): Test isnand instead of isnan.
58835         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58836         isnan-nolibm.
58837         * modules/frexp (Depends-on): Likewise.
58838         * modules/frexp-tests (Depends-on): Likewise.
58839         * modules/frexp-nolibm (Depends-on): Likewise.
58840         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58841         * modules/isfinite (Depends-on): Likewise.
58842         * modules/round-tests (Depends-on): Likewise.
58843         * modules/signbit (Depends-on): Likewise.
58844         * modules/signbit-tests (Depends-on): Likewise.
58845         * modules/snprintf-posix (Depends-on): Likewise.
58846         * modules/sprintf-posix (Depends-on): Likewise.
58847         * modules/trunc-tests (Depends-on): Likewise.
58848         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58849         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58850         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58851         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58852         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58853         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58854         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58855         * modules/vasnprintf-posix (Depends-on): Likewise.
58856         * modules/vasprintf-posix (Depends-on): Likewise.
58857         * modules/vfprintf-posix (Depends-on): Likewise.
58858         * modules/vsnprintf-posix (Depends-on): Likewise.
58859         * modules/vsprintf-posix (Depends-on): Likewise.
58860         * lib/frexp.c: Include isnand.h instead of isnan.h.
58861         (ISNAN): Set to isnand instead of isnan.
58862         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58863         (gl_isfinited): Use isnand instead of isnan.
58864         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58865         (gl_signbitd): Use isnand instead of isnan.
58866         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58867         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58868         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58869         (main): Use isnand instead of isnan.
58870         * tests/test-round1.c: Include isnand.h.
58871         (main): Use isnand instead of isnan.
58872         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58873         (ISNAN): Set to isnand instead of isnan.
58874         * tests/test-trunc1.c: Include isnand.h.
58875         (main): Use isnand instead of isnan.
58876         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58877         (equal): Use isnand instead of isnan.
58878         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58879         isnand-nolibm.
58880         * NEWS: Mention the change.
58881
58882 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58883             Bruno Haible  <bruno@clisp.org>
58884
58885         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58886         the GCC builtins for signbits are present and set
58887         REPLACE_SIGNBIT_USING_GCC if so.
58888         * lib/math.in.h (signbit): Define using GCC builtins if
58889         REPLACE_SIGNBIT_USING_GCC is set.
58890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58891         REPLACE_SIGNBIT_USING_GCC.
58892         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58893
58894 2008-01-25  Jim Meyering  <meyering@redhat.com>
58895
58896         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58897         * lib/poll.c: Include <config.h>, not "config.h".
58898         * tests/test-getaddrinfo.c: Likewise.
58899
58900 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58901
58902         * modules/sockets-tests: New file.
58903
58904 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58905
58906         * modules/sockets: New module, can be used to call WSA_Startup and
58907         WSA_Cleanup when needed.
58908
58909         * lib/sockets.h, lib/sockets.c: New files.
58910
58911         * m4/sockets.m4: New file.
58912
58913         * tests/test-sockets.c: New file.
58914
58915 2008-01-19  Bruno Haible  <bruno@clisp.org>
58916
58917         * doc/posix-headers: Renamed from doc/headers.
58918         * doc/posix-functions: Renamed from doc/functions.
58919         * doc/gnulib.texi: Update.
58920
58921 2008-01-19  Bruno Haible  <bruno@clisp.org>
58922
58923         * doc/glibc-functions/strcasestr.texi: Include contents of
58924         doc/functions/strcasestr.texi, fixing the list of platforms.
58925         * doc/functions/strcasestr.texi: Remove file.
58926
58927 2008-01-19  Bruno Haible  <bruno@clisp.org>
58928
58929         * doc/glibc-functions/memmem.texi: Include contents of
58930         doc/functions/memmem.texi.
58931         * doc/functions/memmem.texi: Remove file.
58932
58933 2008-01-18  Bruno Haible  <bruno@clisp.org>
58934
58935         * doc/glibc-functions/*.texi: New files.
58936         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58937         to use the new files.
58938
58939 2008-01-17  Bruno Haible  <bruno@clisp.org>
58940
58941         * tests/test-gethostname.c (main): Fix printf statement.
58942
58943 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58944
58945         * modules/gethostname-tests: New file.
58946
58947         * tests/test-gethostname.c: New file.
58948
58949 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58950
58951         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58952         used by the UNAME case.  Reported by Bruno Haible
58953         <bruno@clisp.org>.
58954
58955 2008-01-17  Eric Blake  <ebb9@byu.net>
58956
58957         Convert c-strcasestr to be more efficient.
58958         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58959         (Depends-on): Add c-strcase, remove malloca, strnlen.
58960         * tests/test-c-strcasestr.c (main): Enhance test.
58961         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58962
58963 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58964
58965         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58966         Use it in creating po/Makevars.
58967
58968 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58969
58970         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58971         Applications that requires it should initialize libgcrypt
58972         manually.
58973
58974 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58975
58976         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58977
58978 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58979
58980         Fix problem with getdate on mingw32 reported by Simon Josefsson
58981         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58982         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58983         tzname", when deciding whether to declare tzname.
58984         * lib/strftime.c (tzname): Likewise.
58985
58986 2008-01-15  Bruno Haible  <bruno@clisp.org>
58987
58988         Work around a MacOS X 10.5 bug in frexpl().
58989         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58990         * doc/functions/frexpl.texi: Document the bug.
58991         Reported by Elias Pipping <pipping@gentoo.org>.
58992
58993 2008-01-14  Eric Blake  <ebb9@byu.net>
58994
58995         Touch up previous patch.
58996         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58997         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58998
58999         Convert strcasestr module to use Two-Way algorithm.
59000         * modules/strcasestr-simple: New module, based on the old
59001         strcasestr, but with Two-Way rather than KMP.
59002         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59003         * lib/string.in.h (rpl_strcasestr): Declare.
59004         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59005         performance.
59006         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59007         * modules/string (Makefile.am): Support strcasestr.
59008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59009         * modules/strcasestr-tests (Depends-on): Check for alarm.
59010         * tests/test-strcasestr.c: Augment test.
59011         * lib/str-two-way.h: Clean up stray macro.
59012         * NEWS: Document new module.
59013         * MODULES.html.sh (string handling): Likewise.
59014         * doc/functions/strcasestr.texi: New file.
59015         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59016         here, since it is not a POSIX function.
59017
59018 2008-01-14  Colin Watson  <cjwatson@debian.org>
59019             Bruno Haible  <bruno@clisp.org>
59020
59021         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59022         works fine; if not, set REPLACE_STRSIGNAL.
59023         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59025         REPLACE_STRSIGNAL.
59026         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59027         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59028         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59029
59030 2008-01-14  Bruno Haible  <bruno@clisp.org>
59031
59032         * modules/strsignal (Include): Change to <string.h>.
59033
59034 2008-01-14  Colin Watson  <cjwatson@debian.org>
59035
59036         * modules/argp (Notice): Add a notice recommending to change
59037         XGETTEXT_OPTIONS.
59038         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59039
59040 2008-01-13  Colin Watson  <cjwatson@debian.org>
59041
59042         * modules/strsignal-tests: New file.
59043         * tests/test-strsignal.c: New file.
59044
59045         * lib/strsignal.c: New file, from glibc with modifications.
59046         * lib/siglist.h: New file, from glibc with modifications.
59047         * lib/string.in.h (strsignal): New declaration.
59048         * m4/strsignal.m4: New file.
59049         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59050         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59051         * modules/strsignal: New file.
59052         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59053         HAVE_DECL_STRSIGNAL.
59054
59055 2008-01-13  Bruno Haible  <bruno@clisp.org>
59056
59057         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59058         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59059         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59060         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59061
59062 2008-01-13  Bruno Haible  <bruno@clisp.org>
59063
59064         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59065         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59066         * lib/argp.h (__attribute__): Likewise.
59067         * lib/c-stack.c (__attribute__): Likewise.
59068         * lib/error.h (__attribute__): Likewise.
59069         * lib/fts.c (__attribute__): Likewise.
59070         * lib/openat.h (__attribute__): Likewise.
59071         * lib/stdio.in.h (__attribute__): Likewise.
59072         * lib/string.in.h (__attribute__): Likewise.
59073         * lib/utimens.c (__attribute__): Likewise.
59074         * lib/vasnprintf.h (__attribute__): Likewise.
59075         * lib/xalloc.h (__attribute__): Likewise.
59076         * lib/xprintf.h (__attribute__): Likewise.
59077         * lib/xstrtol.h (__attribute__): Likewise.
59078         * lib/xvasprintf.h (__attribute__): Likewise.
59079
59080 2008-01-12  Bruno Haible  <bruno@clisp.org>
59081
59082         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59083         * doc/glibc-headers/a.out.texi: New file.
59084         * doc/glibc-headers/aliases.texi: New file.
59085         * doc/glibc-headers/alloca.texi: New file.
59086         * doc/glibc-headers/ar.texi: New file.
59087         * doc/glibc-headers/argp.texi: New file.
59088         * doc/glibc-headers/argz.texi: New file.
59089         * doc/glibc-headers/byteswap.texi: New file.
59090         * doc/glibc-headers/crypt.texi: New file.
59091         * doc/glibc-headers/endian.texi: New file.
59092         * doc/glibc-headers/envz.texi: New file.
59093         * doc/glibc-headers/err.texi: New file.
59094         * doc/glibc-headers/error.texi: New file.
59095         * doc/glibc-headers/execinfo.texi: New file.
59096         * doc/glibc-headers/fpu_control.texi: New file.
59097         * doc/glibc-headers/fstab.texi: New file.
59098         * doc/glibc-headers/fts.texi: New file.
59099         * doc/glibc-headers/getopt.texi: New file.
59100         * doc/glibc-headers/ieee754.texi: New file.
59101         * doc/glibc-headers/ifaddrs.texi: New file.
59102         * doc/glibc-headers/libintl.texi: New file.
59103         * doc/glibc-headers/mcheck.texi: New file.
59104         * doc/glibc-headers/mntent.texi: New file.
59105         * doc/glibc-headers/obstack.texi: New file.
59106         * doc/glibc-headers/paths.texi: New file.
59107         * doc/glibc-headers/printf.texi: New file.
59108         * doc/glibc-headers/pty.texi: New file.
59109         * doc/glibc-headers/resolv.texi: New file.
59110         * doc/glibc-headers/shadow.texi: New file.
59111         * doc/glibc-headers/sysexits.texi: New file.
59112         * doc/glibc-headers/ttyent.texi: New file.
59113
59114 2008-01-12  Jim Meyering  <meyering@redhat.com>
59115
59116         announce-gen: emit Gnulib's git-based version string.
59117         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59118         New option --gnulib-version=V, where V is expected to be
59119         the output of running git describe in the gnulib directory.
59120         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59121         not useful, and plan to stop publishing an xdelta file with each
59122         coreutils release.
59123
59124         * build-aux/announce-gen: Also check for lzma-compressed files.
59125
59126 2008-01-11  Bruno Haible  <bruno@clisp.org>
59127
59128         * tests/test-memmem.c (main): Increase maximum allowed time.
59129         * tests/test-strstr.c (main): Likewise.
59130
59131 2008-01-11  Bruno Haible  <bruno@clisp.org>
59132
59133         * doc/functions/memmem.texi: Add more precisions about platforms.
59134         * doc/functions/strstr.texi: Likewise.
59135
59136 2008-01-10  Eric Blake  <ebb9@byu.net>
59137
59138         * m4/strstr.m4: Delete cruft from copy-n-paste.
59139         Reported by Bruno Haible.
59140
59141 2008-01-10  Bruno Haible  <bruno@clisp.org>
59142
59143         Make c-strstr rely on strstr.
59144         * lib/c-strstr.c: Don't include str-kmp.h.
59145         (c_strstr): Define in terms of strstr.
59146         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59147         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59148
59149 2008-01-10  Bruno Haible  <bruno@clisp.org>
59150
59151         * doc/gnulib.texi (String Functions in C Locale): New section.
59152         * doc/c-ctype.texi: New file.
59153         * doc/c-strcase.texi: New file.
59154         * doc/c-strcaseeq.texi: New file.
59155         * doc/c-strcasestr.texi: New file.
59156         * doc/c-strstr.texi: New file.
59157         * doc/c-strtod.texi: New file.
59158         * doc/c-strtold.texi: New file.
59159
59160 2008-01-10  Eric Blake  <ebb9@byu.net>
59161
59162         * lib/relocatable.h: Fix a comment.
59163
59164 2008-01-10  Eric Blake  <ebb9@byu.net>
59165
59166         Share two-way algorithm.
59167         * lib/str-two-way.h: New file, merged from...
59168         * lib/memmem.c: ...here...
59169         * lib/strstr.c: ...and here.
59170         * modules/memmem (Files): Use it.
59171         * modules/strstr (Files): Likewise.
59172
59173         Avoid quadratic strstr implementations.
59174         * lib/strstr.c: New file.
59175         * m4/strstr.m4: Likewise.
59176         * modules/strstr: Likewise.
59177         * modules/strstr-tests: Likewise.
59178         * tests/test-strstr.c: Likewise.
59179         * lib/string.in.h (rpl_strstr): Declare.
59180         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59182         * modules/string (Makefile.am): Likewise.
59183         * MODULES.html.sh (string handling): Mention new module.
59184         * doc/functions/strstr.texi (strstr): Document the bug.
59185
59186 2008-01-10  Bruno Haible  <bruno@clisp.org>
59187
59188         * lib/relocatable.h (relocate): State whether result is freshly
59189         allocated or not.
59190         * lib/relocatable.c (relocate): Return a freshly allocated string
59191         instead of a pointer to a privately held string.
59192         Reported by Sylvain Beucler <beuc@gnu.org>.
59193
59194 2008-01-10  Colin Watson  <cjwatson@debian.org>
59195
59196         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59197         s/S_ISNLK/S_ISLNK/.
59198
59199 2008-01-09  Bruno Haible  <bruno@clisp.org>
59200
59201         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59202         and other files.
59203         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59204         if it's only a guess.
59205         * modules/memmem: Simplify by depending on memmem-simple.
59206
59207 2008-01-09  Bruno Haible  <bruno@clisp.org>
59208
59209         Work around OpenBSD 4.0 tdelete() bug.
59210         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59211         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59212         macros and don't redefine the enum values.
59213         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59214         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59215         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59216
59217 2008-01-09  Bruno Haible  <bruno@clisp.org>
59218
59219         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59220         (main): Don't perform the tests if setlocale did not install a UTF-8
59221         locale. Needed on OpenBSD 4.0.
59222         * modules/wcwidth-tests (Depends-on): Add localcharset.
59223
59224 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59225
59226         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59227         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59228         * NEWS: announce this.
59229         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59230
59231 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59232         and Eric Blake  <ebb9@byu.net>
59233
59234         Add memmem-simple module.
59235         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59236         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59237         * modules/memmem-simple: New file.
59238         * modules/memmem (Description): Tweak.
59239         * MODULES.html.sh (string handling): Mention new module.
59240         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59241         addressed by memmem-simple.
59242         * NEWS: Document the difference.
59243
59244 2008-01-09  Eric Blake  <ebb9@byu.net>
59245
59246         Give gcc some memmem optimization hints.
59247         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59248         (strcasestr): Declare as pure.
59249         * modules/memmem (Maintainer): Claim my implementation.
59250
59251 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59252
59253         Support AIX 6.1 and higher.
59254         * build-aux/config.libpath: Likewise.
59255         * build-aux/config.rpath: Likewise.
59256
59257 2008-01-08  Jim Meyering  <meyering@redhat.com>
59258             Bruno Haible  <bruno@clisp.org>
59259
59260         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
59261         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
59262         Reported by Peter Fales in
59263         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
59264
59265 2008-01-08  Bruno Haible  <bruno@clisp.org>
59266
59267         * modules/unictype/category-of (Depends-on): Add
59268         unictype/category-none.
59269         * modules/unictype/category-and-tests (Depends-on): Add
59270         unictype/category-{L,N,Lu,Nd}.
59271         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59272         * modules/unictype/category-or-tests (Depends-on): Add
59273         unictype/category-{L,N}.
59274         * modules/unictype/category-name-tests (Depends-on): Add
59275         unictype/category-{Z,Nl}.
59276         Reported by Simon Josefsson.
59277
59278 2008-01-08  Bruno Haible  <bruno@clisp.org>
59279
59280         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59281         convention better.
59282         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59283         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59284         Reported by Peter Miller <millerp@canb.auug.org.au>.
59285
59286 2008-01-08  Eric Blake  <ebb9@byu.net>
59287
59288         Rewrite memmem to guarantee linear complexity without malloc.
59289         * lib/memmem.c (memmem): Use Two-Way rather than
59290         Knuth-Morris-Pratt, to allow O(1) space usage.
59291         (critical_factorization, two_way_short_needle)
59292         (two_way_long_needle): New functions.
59293         (knuth_morris_pratt): Delete.
59294         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59295         Add stdint.
59296         * tests/test-memmem.c (main): Add tests for periodic needle and
59297         sublinear performance.
59298         * doc/functions/memmem.texi (memmem): Document other deficiencies
59299         in cygwin and older glibc.
59300
59301 2008-01-08  Bruno Haible  <bruno@clisp.org>
59302
59303         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59304         augmentation.
59305
59306 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59307
59308         Add a configure time option: --disable-acl.
59309         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59310         AC_ARG_ENABLE(acl).
59311
59312 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59313
59314         * tests/test-localename.c: Don't include obsolete "setenv.h".
59315
59316         * modules/localename-tests (Depends-on): Need unsetenv.
59317
59318 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59319
59320         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59321
59322 2008-01-06  Colin Watson  <cjwatson@debian.org>
59323
59324         * users.txt: Add man-db.
59325
59326 2008-01-07  Bruno Haible  <bruno@clisp.org>
59327
59328         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
59329         previous section name.
59330
59331 2008-01-07  Bruno Haible  <bruno@clisp.org>
59332
59333         * lib/progname.c (set_program_name): Don't strip off a leading
59334         "lt-" prefix outside a .libs directory.
59335         Suggested by Paul Eggert.
59336
59337 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
59338             Bruno Haible  <bruno@clisp.org>
59339
59340         Improve memory cleanup in 'relocatable' module.
59341         * lib/relocatable.h (compute_curr_prefix): Change return type to
59342         'char *'.
59343         * lib/relocatable.c (compute_curr_prefix): Change return type to
59344         'char *'. Free curr_installdir after use.
59345         (relocate): Free curr_prefix_better after use.
59346         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
59347
59348 2008-01-01  Bruno Haible  <bruno@clisp.org>
59349
59350         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
59351         failure on older glibc systems.
59352         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59353
59354 2008-01-05  Eric Blake  <ebb9@byu.net>
59355
59356         Avoid quadratic system memmem.
59357         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
59358         Reported by Ralf Wildenhues.
59359
59360         Fix memmem test for mingw.
59361         * modules/memmem-tests (configure.ac): Check for alarm.
59362         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
59363         it.
59364         * doc/functions/memmem.texi: New file.
59365         * doc/gnulib.texi (Function Substitutes): Add memmem.
59366         Reported by Bruno Haible.
59367
59368 2008-01-04  Bruno Haible  <bruno@clisp.org>
59369
59370         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
59371         Require gl_HEADER_STRINGS_H_DEFAULTS, not
59372         gl_HEADER_STRING_H_DEFAULTS.
59373
59374 2008-01-04  Eric Blake  <ebb9@byu.net>
59375
59376         Shorten duration of memmem test.
59377         * tests/test-memmem.c (main): Use alarm to declare failure if test
59378         is taking too long.
59379         Reported by Ralf Wildenhues.
59380
59381 2007-12-21  Simon Josefsson  <simon@josefsson.org>
59382
59383         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
59384         string, needed by strerror.
59385
59386 2008-01-03  Colin Watson  <cjwatson@debian.org>
59387             Bruno Haible  <bruno@clisp.org>
59388
59389         * doc/gnulib-tool.texi (Localization): New section.
59390
59391 2008-01-02  Bruno Haible  <bruno@clisp.org>
59392
59393         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59394         variables to 'unsigned char *' type.
59395         Reported by Paul Eggert.
59396
59397 2008-01-02  Jim Meyering  <jim@meyering.net>
59398
59399         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59400
59401 2007-12-31  Jim Meyering  <jim@meyering.net>
59402
59403         Avoid use of private FTS type name.
59404         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59405
59406 2007-12-30  Karl Berry  <karl@gnu.org>
59407
59408         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
59409         work around defect in Texinfo and/or the standalone Info browser.
59410
59411 2007-12-30  Bruno Haible  <bruno@clisp.org>
59412
59413         Unify 5 copies of the KMP code.
59414         * lib/str-kmp.h: New file.
59415         * lib/c-strcasestr.c: Include str-kmp.h.
59416         (knuth_morris_pratt): Remove function.
59417         (c_strcasestr): Update.
59418         * lib/c-strstr.c: Include str-kmp.h.
59419         (knuth_morris_pratt): Remove function.
59420         (c_strcasestr): Update.
59421         * lib/mbscasestr.c: Include str-kmp.h.
59422         (knuth_morris_pratt_unibyte): Remove function.
59423         * lib/mbsstr.c: Include str-kmp.h.
59424         (knuth_morris_pratt_unibyte): Remove function.
59425         * lib/strcasestr.c: Include str-kmp.h.
59426         (knuth_morris_pratt): Remove function.
59427         (strcasestr): Update.
59428         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59429         * modules/c-strstr (Files): Likewise.
59430         * modules/mbscasestr (Files): Likewise.
59431         * modules/mbsstr (Files): Likewise.
59432         * modules/strcasestr (Files): Likewise.
59433         Suggested by Paul Eggert.
59434
59435 2007-12-30  Bruno Haible  <bruno@clisp.org>
59436
59437         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
59438         defined.
59439
59440 2007-12-30  Bruno Haible  <bruno@clisp.org>
59441
59442         * lib/xmalloca.h: Include xalloc.h.
59443         (xnmalloca): New macro.
59444
59445 2007-12-30  Bruno Haible  <bruno@clisp.org>
59446
59447         * lib/malloca.h (nmalloca): New macro.
59448         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
59449         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
59450         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
59451         knuth_morris_pratt_multibyte): Likewise.
59452         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
59453         knuth_morris_pratt_multibyte): Likewise.
59454         * lib/memmem.c (knuth_morris_pratt): Likewise.
59455         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
59456
59457 2007-12-25  Bruno Haible  <bruno@clisp.org>
59458
59459         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
59460         * lib/glob.c: Don't include openat.h.
59461         (link_exists2_p): Add back the code that deals with the
59462         !GLOB_ALTDIRFUNC case.
59463         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
59464         let it do the filename concatenation.
59465         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
59466         * modules/glob (Depends-on): Remove openat.
59467
59468 2007-12-31  Bruno Haible  <bruno@clisp.org>
59469
59470         * modules/dirfd (License): Change to LGPLv2+.
59471         Approved by Jim Meyering.
59472
59473 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59474
59475         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
59476         when multiplying M by sizeof (size_t).
59477
59478 2007-12-10  Martin Lambers  <marlam@marlam.de>
59479
59480         Override getpagesize on mingw.
59481         * lib/getpagesize.c: New file.
59482         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59483         * modules/getpagesize (Files): Add lib/getpagesize.c.
59484         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59486         REPLACE_GETPAGESIZE.
59487         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59488
59489 2007-12-25  Bruno Haible  <bruno@clisp.org>
59490
59491         * modules/localcharset (Notice): New field.
59492         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59493         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59494
59495 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59496             Bruno Haible  <bruno@clisp.org>
59497
59498         Avoid using the syntax symbol() in formatted documentation.
59499         * MODULES.html.sh (func_module): When replacing symbol() with a
59500         hyperlink, remove the parentheses. Show an error if some remain.
59501         Recognize and render the '...' syntax.
59502         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59503         Rework. Add paragraph about GCC's inlining.
59504         * doc/alloca.texi: Likewise.
59505         * doc/error.texi: Remove parentheses from symbol reference.
59506         * doc/gnulib-intro.texi: Likewise.
59507         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59508         * modules/fnmatch (Description): Reword to say "the ... function".
59509         * modules/full-read (Description): Likewise.
59510         * modules/full-write (Description): Likewise.
59511         * modules/safe-read (Description): Likewise.
59512         * modules/safe-write (Description): Likewise.
59513         * modules/strchrnul (Description): Likewise.
59514         * modules/trim (Description): Likewise.
59515         * modules/error (Description): Remove parentheses from symbol
59516         references.
59517         * modules/verror (Description): Likewise.
59518         Reported by Karl Berry.
59519
59520 2007-12-25  Bruno Haible  <bruno@clisp.org>
59521
59522         Fixup after 2007-10-16 commit.
59523         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59524
59525 2007-12-24  Bruno Haible  <bruno@clisp.org>
59526
59527         Make --enable-relocatable work with DESTDIR.
59528         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59529         to compute installdir from destprog.
59530         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59531         also set the RELOC_DESTDIR variable.
59532         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
59533
59534 2007-12-24  Bruno Haible  <bruno@clisp.org>
59535
59536         Fix link error due to xalloc_die().
59537         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59538         of xreadlink.
59539         * lib/relocwrapper.c: Update comments.
59540         * build-aux/install-reloc: Remove xreadlink.c from file list.
59541         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59542         xreadlink.c.
59543         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
59544
59545 2007-12-24  Bruno Haible  <bruno@clisp.org>
59546
59547         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59548         * lib/setenv.h: Remove file.
59549         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59550         lib/setenv.h.
59551         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59552         (Depends-on): Add stdlib.
59553         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59554         gl_FUNC_UNSETENV.
59555         (Include): Replace setenv.h with <stdlib.h>.
59556         * modules/unsetenv: New file.
59557         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59558         * lib/unsetenv.c: Include <stdlib.h> first.
59559         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59560         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59561         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59562         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59563         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59564         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59565         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59566         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59567         * doc/functions/unsetenv.texi: Update.
59568         * modules/xsetenv (Depends-on): Add unsetenv.
59569         * modules/getdate (Depends-on): Likewise.
59570         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59571         * lib/xsetenv.c: Don't include setenv.h.
59572         * lib/getdate.y: Likewise.
59573         * lib/relocwrapper.c: Likewise.
59574         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59575         (Depends-on): Add stdlib.
59576         * NEWS: Mention the changes.
59577         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
59578
59579 2007-12-23  Bruno Haible  <bruno@clisp.org>
59580
59581         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59582         indentation.
59583
59584 2007-12-23  Bruno Haible  <bruno@clisp.org>
59585
59586         * lib/c-strcasestr.c: Add more comments.
59587         * lib/c-strstr.c: Likewise.
59588         * lib/mbscasestr.c: Likewise.
59589         * lib/mbsstr.c: Likewise.
59590         * lib/strcasestr.c: Likewise.
59591         * lib/memmem.c: Likewise.
59592
59593 2007-12-23  Bruno Haible  <bruno@clisp.org>
59594
59595         * tests/test-memmem.c: Include <string.h> first.
59596
59597 2007-12-22  Bruno Haible  <bruno@clisp.org>
59598
59599         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59600         the contents of $testsbase.
59601         Reported by Ralf Wildenhues.
59602
59603 2007-12-22  Bruno Haible  <bruno@clisp.org>
59604
59605         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59606         two variables local_ldadd_before, local_ldadd_last.
59607
59608 2007-12-20  Eric Blake  <ebb9@byu.net>
59609
59610         Work around circular library issue when cross-compiling.
59611         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59612         that progname.o does not need to pull in rpl_memcmp.
59613
59614 2007-12-19  Eric Blake  <ebb9@byu.net>
59615
59616         Fix memmem to avoid O(n^2) worst-case complexity.
59617         * lib/memmem.c (knuth_morris_pratt): New function.
59618         (memmem): Use it if first few naive iterations fail.
59619         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59620         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59621         * modules/memchr (License): Likewise.
59622         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59623         malloca.
59624         * tests/test-memmem.c: Rewrite, borrowing ideas from
59625         test-mbsstr1.c; the old version wouldn't even compile!
59626         * modules/memmem-tests: New file.
59627         * lib/string.in.h (rpl_memmem): Add declaration.
59628         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59629         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59630         REPLACE_MEMMEM.
59631
59632 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59633
59634         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59635         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59636         before any system include files, and undef after them all.  This
59637         should fix a problem on VMS reported by John E. Malmberg in
59638         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59639
59640 2007-12-17  Eric Blake  <ebb9@byu.net>
59641
59642         Revert addition of verify, for BSD/OS.
59643         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59644         can't handle large files, for the sake of obsolete platforms.
59645         * modules/fseeko (Depends-on): Remove verify.
59646         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59647         * doc/functions/ftello.texi (ftello): Likewise.
59648         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59649         Reported by Larry Jones.
59650
59651 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59652
59653         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59654         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59655
59656 2007-12-17  Jim Meyering  <meyering@redhat.com>
59657
59658         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59659         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59660         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59661         * modules/getcwd (Depends-on): Add openat.
59662         Reported by Petr Salinger.
59663
59664 2007-12-17  Bruno Haible  <bruno@clisp.org>
59665
59666         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59667         avoid a segmentation fault of the configure test on x86_64 systems.
59668
59669 2007-12-15  Jim Meyering  <meyering@redhat.com>
59670
59671         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59672
59673 2007-12-13  Eric Blake  <ebb9@byu.net>
59674
59675         Another fseek test.
59676         * tests/test-fseek.c (main): Also test ungetc handling.
59677         * tests/test-fseeko.c (main): Likewise.
59678         * modules/fseeko (Depends-on): Add verify.
59679         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59680         large.
59681         Reported by Larry Jones.
59682
59683         Fix fseeko on mingw.
59684         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59685         seek.
59686
59687         Beef up fseek tests.
59688         * tests/test-fseek.c (main): Also test eof handling.
59689         * tests/test-fseeko.c (main): Likewise.
59690         Reported by Larry Jones.
59691
59692 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59693
59694         Fix fseeko on BSD-based platforms.
59695         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59696         successful seek.
59697
59698 2007-12-12  Eric Blake  <ebb9@byu.net>
59699
59700         Allow circular dependency of separate libtests.a
59701         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59702         when use_libtests.
59703
59704 2007-12-11  Eric Blake  <ebb9@byu.net>
59705
59706         Fix bug with -0.0L in previous patch.
59707         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59708         * tests/test-isnan.c (main): Also test on zeroes.
59709         * tests/test-isnanf.c (main): Likewise.
59710         * tests/test-isnanl.h (main): Likewise.
59711
59712         Detect pseudo-denormals on x86 even when cross-compiling.
59713         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59714         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59715         invalid bit patterns that happen to satisfy ==.
59716
59717         Avoid link failures with separate libtests.a.
59718         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59719         last, to satisfy circular dependencies.
59720
59721 2007-12-11  Eric Blake  <ebb9@byu.net>
59722         and Bruno Haible  <bruno@clisp.org>
59723
59724         Fix OpenBSD 4.0 <float.h> handling of long double.
59725         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59726         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59727         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59728
59729 2007-12-11  Jim Meyering  <meyering@redhat.com>
59730
59731         * users.txt: Add libvirt.
59732
59733         Support versions of autoconf prior to 2.59c.
59734         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59735         if it is not already defined.
59736
59737 2007-12-09  Bruno Haible  <bruno@clisp.org>
59738
59739         Let 'gnulib-tool --import' collect sources needed for the tests in
59740         tests/ rather than in lib/.
59741         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59742         argument. If true, add rules to generate libtests.a, and put libtests.a
59743         into $(LDADD). Consider source files in subdirectories and set
59744         uses_subdirs.
59745         (func_emit_initmacro_start, func_emit_initmacro_end,
59746         func_emit_initmacro_done): Pass all arguments explicitly.
59747         (func_import): Determine two module lists main_modules,
59748         testsrelated_modules. Determine use_libtests. Determine two variables
59749         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59750         instead of just sed_transform_lib_file. Determine two variables
59751         main_files and testsrelated_files. Compute 'files' as the union of
59752         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59753         func_add_or_update. In the generated gnulib-comp.m4, collect the
59754         object files for tests/ in different variables than those for lib/.
59755         Substitute LIBTESTS_LIBDEPS.
59756         (func_create_testdir): Combine the uses_subdirs results from
59757         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59758
59759 2007-12-09  Bruno Haible  <bruno@clisp.org>
59760
59761         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59762         the build-aux directory.
59763
59764 2007-12-09  Bruno Haible  <bruno@clisp.org>
59765
59766         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59767         introduced on 2006-09-09.
59768
59769 2007-12-07  Jim Meyering  <meyering@redhat.com>
59770
59771         Let these macros work also with autoconf-2.59.
59772         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59773         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59774         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59775
59776 2007-12-06  Jim Meyering  <meyering@redhat.com>
59777
59778         Avoid a configure-time syntax error in gl_FUNC_ACL.
59779         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59780         function in each branch, before testing the cache variable.
59781
59782 2007-12-04  Eric Blake  <ebb9@byu.net>
59783
59784         Make scripts executable.
59785         * build-aux/config.guess: Add execute permissions.
59786         * build-aux/config.sub: Likewise.
59787         * build-aux/gendocs.sh: Likewise.
59788
59789         Fix frexp on mingw.
59790         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59791         cross-compiling.
59792         * doc/functions/frexp.texi (frexp): Document the bug.
59793
59794         Make cygwin fseeko check more reliable.
59795         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59796         version numbers, rather than unrelated feature check.
59797         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59798         * doc/functions/ftello.texi (ftello): Likewise.
59799         Reported by Bruno Haible.
59800
59801         * m4/strerror.m4: Bump version number.
59802
59803 2007-12-03  Bruno Haible  <bruno@clisp.org>
59804
59805         * doc/functions/mprotect.texi: Mention the mingw problem.
59806
59807 2007-12-03  Eric Blake  <ebb9@byu.net>
59808
59809         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59810         REPLACE_STRERROR is initialized before this macro.
59811
59812 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59813
59814         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59815         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59816         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59817         put -lsec in even for programs other than 'ls'.  This fixes a problem
59818         for gettext reported by Bruno Haible in
59819         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59820         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59821         Add support for Solaris 10.  This isn't efficient, but should get the
59822         job done for now.
59823
59824 2007-12-03  James Youngman  <jay@gnu.org>
59825
59826         * doc/regexprops-generic.texi: change "an close-group" to "a
59827         close-group" and "illegal" to "not allowed".
59828
59829 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59830
59831         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59832         pr_byname.h. Needed for the rare case when the maintainer has done
59833         "make maintainer-clean" in the source directory and then attempts a
59834         build outside the source directory.
59835         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59836         scripts_byname.h.
59837
59838 2007-12-02  Martin Lambers <marlam@marlam.de>
59839             Bruno Haible  <bruno@clisp.org>
59840
59841         * lib/getpagesize.h: Remove file.
59842         * lib/unistd.in.h: Include declaration of getpagesize here.
59843         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59844         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59845         HAVE_SYS_PARAM_H.
59846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59847         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59848         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59849         (Depends-on): Add unistd.
59850         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59851         (Include): Use <unistd.h> instead of getpagesize.h.
59852         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59853         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59854         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59855         gl_GETPAGESIZE invocation, already handled by module dependency.
59856         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59857
59858 2007-12-02  Bruno Haible  <bruno@clisp.org>
59859
59860         * modules/strings-tests: New file.
59861         * tests/test-strings.c: New file.
59862
59863         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59864         * lib/strings.in.h: New file.
59865         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59866         * m4/strings_h.m4: New file.
59867         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59868         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59869         * modules/strings: New file.
59870         * modules/string (Makefile.am): Update.
59871         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59872         Reported by Karl Berry.
59873
59874 2007-12-01  Eric Blake  <ebb9@byu.net>
59875
59876         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59877         accommodate fix in cygwin 1.5.25.
59878
59879 2007-12-01  Jim Meyering  <meyering@redhat.com>
59880
59881         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59882         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59883         that would inhibit utf8-optimization of a regexp containing line-
59884         or buffer-anchors, e.g., `^', `$'.
59885
59886 2007-11-30  Bruno Haible  <bruno@clisp.org>
59887
59888         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59889         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59890         glthread_recursive_lock_init.
59891         * lib/lock.c (glthread_recursive_lock_init)
59892         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59893         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59894
59895 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59896
59897         New function qset_acl, like set_acl but with syscall semantics.
59898         * lib/acl.h (qset_acl): New decl.
59899         * lib/acl.c (qset_acl): New function.
59900         (set_acl): Use new function.  Use more-consistent diagnostics.
59901
59902 2007-11-28  Jim Meyering  <meyering@redhat.com>
59903
59904         * modules/physmem (License): Change from GPL to LGPLv2+.
59905
59906 2007-11-26  Bruno Haible  <bruno@clisp.org>
59907
59908         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59909         'long double' type has excess precision.
59910         Reported by Jim Meyering in
59911         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59912
59913 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59914
59915         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59916         Sync from <http://gnu.org/licenses>.
59917         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59918         with license text from same location.
59919         * doc/maintain.texi, doc/standards.texi:  Sync from
59920         <http://savannah.gnu.org/projects/gnustandards>.
59921
59922 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59923         and Jim Meyering  <meyering@redhat.com>
59924
59925         Adjust getdate' grammar to accept a slightly more regular language.
59926         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59927         Before, the former was rejected.
59928         * lib/getdate.y (digits_to_date_time): New function, factored
59929         out of ...
59930         (number): ...here.  Just call digits_to_date_time.
59931         (hybrid): New non-terminal to handle an <unsigned number,
59932         signed relative offset> sequence consistently.
59933
59934 2007-11-18  Jim Meyering  <meyering@redhat.com>
59935
59936         Pull my changes from coreutils:
59937         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59938         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59939         use of $gnulib_tool_option_extras, so that it's separated from the
59940         preceding argument.
59941
59942         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59943         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59944         parent destination directories before copying a file into place.
59945
59946 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59947
59948         bootstrap: work also with 4-argument variant of AC_INIT
59949         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59950
59951 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59952
59953         Port test-getaddrinfo to Solaris.
59954         Problem reported by Bruno Haible in
59955         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59956         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59957         explanation of setting 'hints'.
59958         Don't reject an implementation merely because it returns EAI_SERVICE.
59959         (EAI_SERVICE): Define to 0 if not defined.
59960
59961 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59962
59963         The license of gnu-make and posix-shell is now "GPLed build tool".
59964         * modules/gnu-make (License): Likewise.
59965         * modules/posix-shell (License): Likewise.
59966
59967         New module posix-shell, for determining a POSIX shell
59968         or perhaps something that is close enough to a POSIX shell.
59969         * m4/posix-shell.m4: New file.
59970         * modules/posix-shell: New file.
59971
59972         * MODULES.html.sh: Mention new module.
59973
59974         New module gnu-make, for determining whether we're using GNU Make.
59975         * m4/gnu-make.m4: New file.
59976         * modules/gnu-make: New file.
59977         * MODULES.html.sh: Mention new module.
59978
59979 2007-11-14  Jim Meyering  <meyering@redhat.com>
59980
59981         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59982         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59983         use this macro to create a function _definition_.
59984         Remove useless "#undef ARGMATCH_DIE".
59985
59986 2007-11-14  Bruno Haible  <bruno@clisp.org>
59987
59988         * lib/config.charset: Update for OpenBSD 4.1.
59989         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59990
59991 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59992
59993         Document 64-bit #if problems in stdint.texi.
59994         * doc/headers/stdint.texi (stdint.h): Mention problems with
59995         64-bit-#if, and how to work around them.
59996
59997         Don't insist on 'long long int' support in the preprocessor.  It
59998         breaks too many things.  For example, PRIdMAX still uses a 'long
59999         long int' format with the latest Sun compiler, even though
60000         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60001         preprocessor problem.  This causes the latest coreutils to dump
60002         core on Solaris 10 sparc with the Sun C compiler.
60003         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60004         the troublesome expressions at configure-time, not at #if-time.
60005         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60006         preprocessor.
60007         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60008         compile-time C checks, done at 'configure'-time.
60009         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60010         * modules/inttypes (Makefile): Substitute the new symbols that
60011         gl_INTTYPES_H now generates.
60012         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60013
60014 2007-11-12  Bruno Haible  <bruno@clisp.org>
60015
60016         Tests for Unicode character classification functions.
60017
60018         * modules/unictype/bidicategory-byname-tests: New file.
60019         * modules/unictype/bidicategory-name-tests: New file.
60020         * modules/unictype/bidicategory-of-tests: New file.
60021         * modules/unictype/bidicategory-test-tests: New file.
60022         * modules/unictype/block-list-tests: New file.
60023         * modules/unictype/block-of-tests: New file.
60024         * modules/unictype/block-test-tests: New file.
60025         * modules/unictype/category-C-tests: New file.
60026         * modules/unictype/category-Cc-tests: New file.
60027         * modules/unictype/category-Cf-tests: New file.
60028         * modules/unictype/category-Cn-tests: New file.
60029         * modules/unictype/category-Co-tests: New file.
60030         * modules/unictype/category-Cs-tests: New file.
60031         * modules/unictype/category-L-tests: New file.
60032         * modules/unictype/category-Ll-tests: New file.
60033         * modules/unictype/category-Lm-tests: New file.
60034         * modules/unictype/category-Lo-tests: New file.
60035         * modules/unictype/category-Lt-tests: New file.
60036         * modules/unictype/category-Lu-tests: New file.
60037         * modules/unictype/category-M-tests: New file.
60038         * modules/unictype/category-Mc-tests: New file.
60039         * modules/unictype/category-Me-tests: New file.
60040         * modules/unictype/category-Mn-tests: New file.
60041         * modules/unictype/category-N-tests: New file.
60042         * modules/unictype/category-Nd-tests: New file.
60043         * modules/unictype/category-Nl-tests: New file.
60044         * modules/unictype/category-No-tests: New file.
60045         * modules/unictype/category-P-tests: New file.
60046         * modules/unictype/category-Pc-tests: New file.
60047         * modules/unictype/category-Pd-tests: New file.
60048         * modules/unictype/category-Pe-tests: New file.
60049         * modules/unictype/category-Pf-tests: New file.
60050         * modules/unictype/category-Pi-tests: New file.
60051         * modules/unictype/category-Po-tests: New file.
60052         * modules/unictype/category-Ps-tests: New file.
60053         * modules/unictype/category-S-tests: New file.
60054         * modules/unictype/category-Sc-tests: New file.
60055         * modules/unictype/category-Sk-tests: New file.
60056         * modules/unictype/category-Sm-tests: New file.
60057         * modules/unictype/category-So-tests: New file.
60058         * modules/unictype/category-Z-tests: New file.
60059         * modules/unictype/category-Zl-tests: New file.
60060         * modules/unictype/category-Zp-tests: New file.
60061         * modules/unictype/category-Zs-tests: New file.
60062         * modules/unictype/category-and-not-tests: New file.
60063         * modules/unictype/category-and-tests: New file.
60064         * modules/unictype/category-byname-tests: New file.
60065         * modules/unictype/category-name-tests: New file.
60066         * modules/unictype/category-none-tests: New file.
60067         * modules/unictype/category-of-tests: New file.
60068         * modules/unictype/category-or-tests: New file.
60069         * modules/unictype/category-test-withtable-tests: New file.
60070         * modules/unictype/combining-class-tests: New file.
60071         * modules/unictype/ctype-alnum-tests: New file.
60072         * modules/unictype/ctype-alpha-tests: New file.
60073         * modules/unictype/ctype-blank-tests: New file.
60074         * modules/unictype/ctype-cntrl-tests: New file.
60075         * modules/unictype/ctype-digit-tests: New file.
60076         * modules/unictype/ctype-graph-tests: New file.
60077         * modules/unictype/ctype-lower-tests: New file.
60078         * modules/unictype/ctype-print-tests: New file.
60079         * modules/unictype/ctype-punct-tests: New file.
60080         * modules/unictype/ctype-space-tests: New file.
60081         * modules/unictype/ctype-upper-tests: New file.
60082         * modules/unictype/ctype-xdigit-tests: New file.
60083         * modules/unictype/decimal-digit-tests: New file.
60084         * modules/unictype/digit-tests: New file.
60085         * modules/unictype/mirror-tests: New file.
60086         * modules/unictype/numeric-tests: New file.
60087         * modules/unictype/property-alphabetic-tests: New file.
60088         * modules/unictype/property-ascii-hex-digit-tests: New file.
60089         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60090         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60091         * modules/unictype/property-bidi-block-separator-tests: New file.
60092         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60093         * modules/unictype/property-bidi-common-separator-tests: New file.
60094         * modules/unictype/property-bidi-control-tests: New file.
60095         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60096         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60097         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60098         * modules/unictype/property-bidi-european-digit-tests: New file.
60099         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60100         * modules/unictype/property-bidi-left-to-right-tests: New file.
60101         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60102         * modules/unictype/property-bidi-other-neutral-tests: New file.
60103         * modules/unictype/property-bidi-pdf-tests: New file.
60104         * modules/unictype/property-bidi-segment-separator-tests: New file.
60105         * modules/unictype/property-bidi-whitespace-tests: New file.
60106         * modules/unictype/property-byname-tests: New file.
60107         * modules/unictype/property-combining-tests: New file.
60108         * modules/unictype/property-composite-tests: New file.
60109         * modules/unictype/property-currency-symbol-tests: New file.
60110         * modules/unictype/property-dash-tests: New file.
60111         * modules/unictype/property-decimal-digit-tests: New file.
60112         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60113         * modules/unictype/property-deprecated-tests: New file.
60114         * modules/unictype/property-diacritic-tests: New file.
60115         * modules/unictype/property-extender-tests: New file.
60116         * modules/unictype/property-format-control-tests: New file.
60117         * modules/unictype/property-grapheme-base-tests: New file.
60118         * modules/unictype/property-grapheme-extend-tests: New file.
60119         * modules/unictype/property-grapheme-link-tests: New file.
60120         * modules/unictype/property-hex-digit-tests: New file.
60121         * modules/unictype/property-hyphen-tests: New file.
60122         * modules/unictype/property-id-continue-tests: New file.
60123         * modules/unictype/property-id-start-tests: New file.
60124         * modules/unictype/property-ideographic-tests: New file.
60125         * modules/unictype/property-ids-binary-operator-tests: New file.
60126         * modules/unictype/property-ids-trinary-operator-tests: New file.
60127         * modules/unictype/property-ignorable-control-tests: New file.
60128         * modules/unictype/property-iso-control-tests: New file.
60129         * modules/unictype/property-join-control-tests: New file.
60130         * modules/unictype/property-left-of-pair-tests: New file.
60131         * modules/unictype/property-line-separator-tests: New file.
60132         * modules/unictype/property-logical-order-exception-tests: New file.
60133         * modules/unictype/property-lowercase-tests: New file.
60134         * modules/unictype/property-math-tests: New file.
60135         * modules/unictype/property-non-break-tests: New file.
60136         * modules/unictype/property-not-a-character-tests: New file.
60137         * modules/unictype/property-numeric-tests: New file.
60138         * modules/unictype/property-other-alphabetic-tests: New file.
60139         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60140         * modules/unictype/property-other-grapheme-extend-tests: New file.
60141         * modules/unictype/property-other-id-continue-tests: New file.
60142         * modules/unictype/property-other-id-start-tests: New file.
60143         * modules/unictype/property-other-lowercase-tests: New file.
60144         * modules/unictype/property-other-math-tests: New file.
60145         * modules/unictype/property-other-uppercase-tests: New file.
60146         * modules/unictype/property-paired-punctuation-tests: New file.
60147         * modules/unictype/property-paragraph-separator-tests: New file.
60148         * modules/unictype/property-pattern-syntax-tests: New file.
60149         * modules/unictype/property-pattern-white-space-tests: New file.
60150         * modules/unictype/property-private-use-tests: New file.
60151         * modules/unictype/property-punctuation-tests: New file.
60152         * modules/unictype/property-quotation-mark-tests: New file.
60153         * modules/unictype/property-radical-tests: New file.
60154         * modules/unictype/property-sentence-terminal-tests: New file.
60155         * modules/unictype/property-soft-dotted-tests: New file.
60156         * modules/unictype/property-space-tests: New file.
60157         * modules/unictype/property-terminal-punctuation-tests: New file.
60158         * modules/unictype/property-test-tests: New file.
60159         * modules/unictype/property-titlecase-tests: New file.
60160         * modules/unictype/property-unassigned-code-value-tests: New file.
60161         * modules/unictype/property-unified-ideograph-tests: New file.
60162         * modules/unictype/property-uppercase-tests: New file.
60163         * modules/unictype/property-variation-selector-tests: New file.
60164         * modules/unictype/property-white-space-tests: New file.
60165         * modules/unictype/property-xid-continue-tests: New file.
60166         * modules/unictype/property-xid-start-tests: New file.
60167         * modules/unictype/property-zero-width-tests: New file.
60168         * modules/unictype/scripts-tests: New file.
60169         * modules/unictype/syntax-c-ident-tests: New file.
60170         * modules/unictype/syntax-c-whitespace-tests: New file.
60171         * modules/unictype/syntax-java-ident-tests: New file.
60172         * modules/unictype/syntax-java-whitespace-tests: New file.
60173         * tests/unictype/test-bidi_byname.c: New file.
60174         * tests/unictype/test-bidi_name.c: New file.
60175         * tests/unictype/test-bidi_of.c: New file.
60176         * tests/unictype/test-bidi_test.c: New file.
60177         * tests/unictype/test-block_list.c: New file.
60178         * tests/unictype/test-block_of.c: New file.
60179         * tests/unictype/test-block_test.c: New file.
60180         * tests/unictype/test-categ_and.c: New file.
60181         * tests/unictype/test-categ_and_not.c: New file.
60182         * tests/unictype/test-categ_byname.c: New file.
60183         * tests/unictype/test-categ_name.c: New file.
60184         * tests/unictype/test-categ_none.c: New file.
60185         * tests/unictype/test-categ_of.c: New file.
60186         * tests/unictype/test-categ_or.c: New file.
60187         * tests/unictype/test-categ_test_withtable.c: New file.
60188         * tests/unictype/test-combining.c: New file.
60189         * tests/unictype/test-decdigit.c: New file.
60190         * tests/unictype/test-digit.c: New file.
60191         * tests/unictype/test-mirror.c: New file.
60192         * tests/unictype/test-numeric.c: New file.
60193         * tests/unictype/test-pr_byname.c: New file.
60194         * tests/unictype/test-pr_test.c: New file.
60195         * tests/unictype/test-predicate-part1.h: New file.
60196         * tests/unictype/test-predicate-part2.h: New file.
60197         * tests/unictype/test-scripts.c: New file.
60198         * tests/unictype/test-sy_c_ident.c: New file.
60199         * tests/unictype/test-sy_java_ident.c: New file.
60200
60201         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60202         for Unicode 5.0.0.
60203         * tests/unictype/test-categ_Cc.c: Likewise.
60204         * tests/unictype/test-categ_Cf.c: Likewise.
60205         * tests/unictype/test-categ_Cn.c: Likewise.
60206         * tests/unictype/test-categ_Co.c: Likewise.
60207         * tests/unictype/test-categ_Cs.c: Likewise.
60208         * tests/unictype/test-categ_L.c: Likewise.
60209         * tests/unictype/test-categ_Ll.c: Likewise.
60210         * tests/unictype/test-categ_Lm.c: Likewise.
60211         * tests/unictype/test-categ_Lo.c: Likewise.
60212         * tests/unictype/test-categ_Lt.c: Likewise.
60213         * tests/unictype/test-categ_Lu.c: Likewise.
60214         * tests/unictype/test-categ_M.c: Likewise.
60215         * tests/unictype/test-categ_Mc.c: Likewise.
60216         * tests/unictype/test-categ_Me.c: Likewise.
60217         * tests/unictype/test-categ_Mn.c: Likewise.
60218         * tests/unictype/test-categ_N.c: Likewise.
60219         * tests/unictype/test-categ_Nd.c: Likewise.
60220         * tests/unictype/test-categ_Nl.c: Likewise.
60221         * tests/unictype/test-categ_No.c: Likewise.
60222         * tests/unictype/test-categ_P.c: Likewise.
60223         * tests/unictype/test-categ_Pc.c: Likewise.
60224         * tests/unictype/test-categ_Pd.c: Likewise.
60225         * tests/unictype/test-categ_Pe.c: Likewise.
60226         * tests/unictype/test-categ_Pf.c: Likewise.
60227         * tests/unictype/test-categ_Pi.c: Likewise.
60228         * tests/unictype/test-categ_Po.c: Likewise.
60229         * tests/unictype/test-categ_Ps.c: Likewise.
60230         * tests/unictype/test-categ_S.c: Likewise.
60231         * tests/unictype/test-categ_Sc.c: Likewise.
60232         * tests/unictype/test-categ_Sk.c: Likewise.
60233         * tests/unictype/test-categ_Sm.c: Likewise.
60234         * tests/unictype/test-categ_So.c: Likewise.
60235         * tests/unictype/test-categ_Z.c: Likewise.
60236         * tests/unictype/test-categ_Zl.c: Likewise.
60237         * tests/unictype/test-categ_Zp.c: Likewise.
60238         * tests/unictype/test-categ_Zs.c: Likewise.
60239         * tests/unictype/test-ctype_alnum.c: Likewise.
60240         * tests/unictype/test-ctype_alpha.c: Likewise.
60241         * tests/unictype/test-ctype_blank.c: Likewise.
60242         * tests/unictype/test-ctype_cntrl.c: Likewise.
60243         * tests/unictype/test-ctype_digit.c: Likewise.
60244         * tests/unictype/test-ctype_graph.c: Likewise.
60245         * tests/unictype/test-ctype_lower.c: Likewise.
60246         * tests/unictype/test-ctype_print.c: Likewise.
60247         * tests/unictype/test-ctype_punct.c: Likewise.
60248         * tests/unictype/test-ctype_space.c: Likewise.
60249         * tests/unictype/test-ctype_upper.c: Likewise.
60250         * tests/unictype/test-ctype_xdigit.c: Likewise.
60251         * tests/unictype/test-decdigit.h: Likewise.
60252         * tests/unictype/test-digit.h: Likewise.
60253         * tests/unictype/test-numeric.h: Likewise.
60254         * tests/unictype/test-pr_alphabetic.c: Likewise.
60255         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
60256         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60257         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60258         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
60259         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60260         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
60261         * tests/unictype/test-pr_bidi_control.c: Likewise.
60262         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
60263         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
60264         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60265         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60266         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60267         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60268         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60269         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60270         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60271         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60272         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60273         * tests/unictype/test-pr_combining.c: Likewise.
60274         * tests/unictype/test-pr_composite.c: Likewise.
60275         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60276         * tests/unictype/test-pr_dash.c: Likewise.
60277         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60278         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60279         * tests/unictype/test-pr_deprecated.c: Likewise.
60280         * tests/unictype/test-pr_diacritic.c: Likewise.
60281         * tests/unictype/test-pr_extender.c: Likewise.
60282         * tests/unictype/test-pr_format_control.c: Likewise.
60283         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60284         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60285         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60286         * tests/unictype/test-pr_hex_digit.c: Likewise.
60287         * tests/unictype/test-pr_hyphen.c: Likewise.
60288         * tests/unictype/test-pr_id_continue.c: Likewise.
60289         * tests/unictype/test-pr_id_start.c: Likewise.
60290         * tests/unictype/test-pr_ideographic.c: Likewise.
60291         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60292         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60293         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60294         * tests/unictype/test-pr_iso_control.c: Likewise.
60295         * tests/unictype/test-pr_join_control.c: Likewise.
60296         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60297         * tests/unictype/test-pr_line_separator.c: Likewise.
60298         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60299         * tests/unictype/test-pr_lowercase.c: Likewise.
60300         * tests/unictype/test-pr_math.c: Likewise.
60301         * tests/unictype/test-pr_non_break.c: Likewise.
60302         * tests/unictype/test-pr_not_a_character.c: Likewise.
60303         * tests/unictype/test-pr_numeric.c: Likewise.
60304         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60305         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60306         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60307         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60308         * tests/unictype/test-pr_other_id_start.c: Likewise.
60309         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60310         * tests/unictype/test-pr_other_math.c: Likewise.
60311         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60312         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60313         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60314         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60315         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60316         * tests/unictype/test-pr_private_use.c: Likewise.
60317         * tests/unictype/test-pr_punctuation.c: Likewise.
60318         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60319         * tests/unictype/test-pr_radical.c: Likewise.
60320         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60321         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60322         * tests/unictype/test-pr_space.c: Likewise.
60323         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60324         * tests/unictype/test-pr_titlecase.c: Likewise.
60325         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60326         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60327         * tests/unictype/test-pr_uppercase.c: Likewise.
60328         * tests/unictype/test-pr_variation_selector.c: Likewise.
60329         * tests/unictype/test-pr_white_space.c: Likewise.
60330         * tests/unictype/test-pr_xid_continue.c: Likewise.
60331         * tests/unictype/test-pr_xid_start.c: Likewise.
60332         * tests/unictype/test-pr_zero_width.c: Likewise.
60333         * tests/unictype/test-sy_c_whitespace.c: Likewise.
60334         * tests/unictype/test-sy_java_whitespace.c: Likewise.
60335
60336 2007-11-12  Bruno Haible  <bruno@clisp.org>
60337
60338         Unicode character classification functions.
60339         * lib/unictype.h: New file.
60340         * modules/unictype/base: New file.
60341         * modules/unictype/category-L: New file.
60342         * modules/unictype/category-Lu: New file.
60343         * modules/unictype/category-Ll: New file.
60344         * modules/unictype/category-Lt: New file.
60345         * modules/unictype/category-Lm: New file.
60346         * modules/unictype/category-Lo: New file.
60347         * modules/unictype/category-M: New file.
60348         * modules/unictype/category-Mn: New file.
60349         * modules/unictype/category-Mc: New file.
60350         * modules/unictype/category-Me: New file.
60351         * modules/unictype/category-N: New file.
60352         * modules/unictype/category-Nd: New file.
60353         * modules/unictype/category-Nl: New file.
60354         * modules/unictype/category-No: New file.
60355         * modules/unictype/category-P: New file.
60356         * modules/unictype/category-Pc: New file.
60357         * modules/unictype/category-Pd: New file.
60358         * modules/unictype/category-Ps: New file.
60359         * modules/unictype/category-Pe: New file.
60360         * modules/unictype/category-Pi: New file.
60361         * modules/unictype/category-Pf: New file.
60362         * modules/unictype/category-Po: New file.
60363         * modules/unictype/category-S: New file.
60364         * modules/unictype/category-Sm: New file.
60365         * modules/unictype/category-Sc: New file.
60366         * modules/unictype/category-Sk: New file.
60367         * modules/unictype/category-So: New file.
60368         * modules/unictype/category-Z: New file.
60369         * modules/unictype/category-Zs: New file.
60370         * modules/unictype/category-Zl: New file.
60371         * modules/unictype/category-Zp: New file.
60372         * modules/unictype/category-C: New file.
60373         * modules/unictype/category-Cc: New file.
60374         * modules/unictype/category-Cf: New file.
60375         * modules/unictype/category-Cs: New file.
60376         * modules/unictype/category-Co: New file.
60377         * modules/unictype/category-Cn: New file.
60378         * modules/unictype/category-or: New file.
60379         * modules/unictype/category-of: New file.
60380         * modules/unictype/category-test: New file.
60381         * modules/unictype/category-test-withtable: New file.
60382         * modules/unictype/category-byname: New file.
60383         * modules/unictype/category-none: New file.
60384         * modules/unictype/category-and: New file.
60385         * modules/unictype/category-and-not: New file.
60386         * modules/unictype/category-name: New file.
60387         * modules/unictype/combining-class: New file.
60388         * modules/unictype/category-all: New file.
60389         * modules/unictype/bidicategory-all: New file.
60390         * modules/unictype/bidicategory-byname: New file.
60391         * modules/unictype/bidicategory-name: New file.
60392         * modules/unictype/bidicategory-of: New file.
60393         * modules/unictype/bidicategory-test: New file.
60394         * modules/unictype/decimal-digit: New file.
60395         * modules/unictype/digit: New file.
60396         * modules/unictype/numeric: New file.
60397         * modules/unictype/mirror: New file.
60398         * modules/unictype/property-white-space: New file.
60399         * modules/unictype/property-alphabetic: New file.
60400         * modules/unictype/property-other-alphabetic: New file.
60401         * modules/unictype/property-not-a-character: New file.
60402         * modules/unictype/property-default-ignorable-code-point: New file.
60403         * modules/unictype/property-other-default-ignorable-code-point: New
60404         file.
60405         * modules/unictype/property-deprecated: New file.
60406         * modules/unictype/property-logical-order-exception: New file.
60407         * modules/unictype/property-variation-selector: New file.
60408         * modules/unictype/property-private-use: New file.
60409         * modules/unictype/property-unassigned-code-value: New file.
60410         * modules/unictype/property-uppercase: New file.
60411         * modules/unictype/property-other-uppercase: New file.
60412         * modules/unictype/property-lowercase: New file.
60413         * modules/unictype/property-other-lowercase: New file.
60414         * modules/unictype/property-titlecase: New file.
60415         * modules/unictype/property-soft-dotted: New file.
60416         * modules/unictype/property-id-start: New file.
60417         * modules/unictype/property-other-id-start: New file.
60418         * modules/unictype/property-id-continue: New file.
60419         * modules/unictype/property-other-id-continue: New file.
60420         * modules/unictype/property-xid-start: New file.
60421         * modules/unictype/property-xid-continue: New file.
60422         * modules/unictype/property-pattern-white-space: New file.
60423         * modules/unictype/property-pattern-syntax: New file.
60424         * modules/unictype/property-join-control: New file.
60425         * modules/unictype/property-grapheme-base: New file.
60426         * modules/unictype/property-grapheme-extend: New file.
60427         * modules/unictype/property-other-grapheme-extend: New file.
60428         * modules/unictype/property-grapheme-link: New file.
60429         * modules/unictype/property-bidi-control: New file.
60430         * modules/unictype/property-bidi-left-to-right: New file.
60431         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60432         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60433         * modules/unictype/property-bidi-european-digit: New file.
60434         * modules/unictype/property-bidi-eur-num-separator: New file.
60435         * modules/unictype/property-bidi-eur-num-terminator: New file.
60436         * modules/unictype/property-bidi-arabic-digit: New file.
60437         * modules/unictype/property-bidi-common-separator: New file.
60438         * modules/unictype/property-bidi-block-separator: New file.
60439         * modules/unictype/property-bidi-segment-separator: New file.
60440         * modules/unictype/property-bidi-whitespace: New file.
60441         * modules/unictype/property-bidi-non-spacing-mark: New file.
60442         * modules/unictype/property-bidi-boundary-neutral: New file.
60443         * modules/unictype/property-bidi-pdf: New file.
60444         * modules/unictype/property-bidi-embedding-or-override: New file.
60445         * modules/unictype/property-bidi-other-neutral: New file.
60446         * modules/unictype/property-hex-digit: New file.
60447         * modules/unictype/property-ascii-hex-digit: New file.
60448         * modules/unictype/property-ideographic: New file.
60449         * modules/unictype/property-unified-ideograph: New file.
60450         * modules/unictype/property-radical: New file.
60451         * modules/unictype/property-ids-binary-operator: New file.
60452         * modules/unictype/property-ids-trinary-operator: New file.
60453         * modules/unictype/property-zero-width: New file.
60454         * modules/unictype/property-space: New file.
60455         * modules/unictype/property-non-break: New file.
60456         * modules/unictype/property-iso-control: New file.
60457         * modules/unictype/property-format-control: New file.
60458         * modules/unictype/property-dash: New file.
60459         * modules/unictype/property-hyphen: New file.
60460         * modules/unictype/property-punctuation: New file.
60461         * modules/unictype/property-line-separator: New file.
60462         * modules/unictype/property-paragraph-separator: New file.
60463         * modules/unictype/property-quotation-mark: New file.
60464         * modules/unictype/property-sentence-terminal: New file.
60465         * modules/unictype/property-terminal-punctuation: New file.
60466         * modules/unictype/property-currency-symbol: New file.
60467         * modules/unictype/property-math: New file.
60468         * modules/unictype/property-other-math: New file.
60469         * modules/unictype/property-paired-punctuation: New file.
60470         * modules/unictype/property-left-of-pair: New file.
60471         * modules/unictype/property-combining: New file.
60472         * modules/unictype/property-composite: New file.
60473         * modules/unictype/property-decimal-digit: New file.
60474         * modules/unictype/property-numeric: New file.
60475         * modules/unictype/property-diacritic: New file.
60476         * modules/unictype/property-extender: New file.
60477         * modules/unictype/property-ignorable-control: New file.
60478         * modules/unictype/property-test: New file.
60479         * modules/unictype/property-byname: New file.
60480         * modules/unictype/property-all: New file.
60481         * modules/unictype/scripts: New file.
60482         * modules/unictype/scripts-all: New file.
60483         * modules/unictype/block-of: New file.
60484         * modules/unictype/block-test: New file.
60485         * modules/unictype/block-list: New file.
60486         * modules/unictype/block-all: New file.
60487         * modules/unictype/syntax-c-whitespace: New file.
60488         * modules/unictype/syntax-java-whitespace: New file.
60489         * modules/unictype/syntax-c-ident: New file.
60490         * modules/unictype/syntax-java-ident: New file.
60491         * modules/unictype/ctype-alnum: New file.
60492         * modules/unictype/ctype-alpha: New file.
60493         * modules/unictype/ctype-cntrl: New file.
60494         * modules/unictype/ctype-digit: New file.
60495         * modules/unictype/ctype-graph: New file.
60496         * modules/unictype/ctype-lower: New file.
60497         * modules/unictype/ctype-print: New file.
60498         * modules/unictype/ctype-punct: New file.
60499         * modules/unictype/ctype-space: New file.
60500         * modules/unictype/ctype-upper: New file.
60501         * modules/unictype/ctype-xdigit: New file.
60502         * modules/unictype/ctype-blank: New file.
60503         * lib/unictype/bidi_byname.c: New file.
60504         * lib/unictype/bidi_name.c: New file.
60505         * lib/unictype/bidi_of.c: New file.
60506         * lib/unictype/bidi_test.c: New file.
60507         * lib/unictype/bitmap.h: New file.
60508         * lib/unictype/block_test.c: New file.
60509         * lib/unictype/blocks.c: New file.
60510         * lib/unictype/categ_C.c: New file.
60511         * lib/unictype/categ_Cc.c: New file.
60512         * lib/unictype/categ_Cf.c: New file.
60513         * lib/unictype/categ_Cn.c: New file.
60514         * lib/unictype/categ_Co.c: New file.
60515         * lib/unictype/categ_Cs.c: New file.
60516         * lib/unictype/categ_L.c: New file.
60517         * lib/unictype/categ_Ll.c: New file.
60518         * lib/unictype/categ_Lm.c: New file.
60519         * lib/unictype/categ_Lo.c: New file.
60520         * lib/unictype/categ_Lt.c: New file.
60521         * lib/unictype/categ_Lu.c: New file.
60522         * lib/unictype/categ_M.c: New file.
60523         * lib/unictype/categ_Mc.c: New file.
60524         * lib/unictype/categ_Me.c: New file.
60525         * lib/unictype/categ_Mn.c: New file.
60526         * lib/unictype/categ_N.c: New file.
60527         * lib/unictype/categ_Nd.c: New file.
60528         * lib/unictype/categ_Nl.c: New file.
60529         * lib/unictype/categ_No.c: New file.
60530         * lib/unictype/categ_P.c: New file.
60531         * lib/unictype/categ_Pc.c: New file.
60532         * lib/unictype/categ_Pd.c: New file.
60533         * lib/unictype/categ_Pe.c: New file.
60534         * lib/unictype/categ_Pf.c: New file.
60535         * lib/unictype/categ_Pi.c: New file.
60536         * lib/unictype/categ_Po.c: New file.
60537         * lib/unictype/categ_Ps.c: New file.
60538         * lib/unictype/categ_S.c: New file.
60539         * lib/unictype/categ_Sc.c: New file.
60540         * lib/unictype/categ_Sk.c: New file.
60541         * lib/unictype/categ_Sm.c: New file.
60542         * lib/unictype/categ_So.c: New file.
60543         * lib/unictype/categ_Z.c: New file.
60544         * lib/unictype/categ_Zl.c: New file.
60545         * lib/unictype/categ_Zp.c: New file.
60546         * lib/unictype/categ_Zs.c: New file.
60547         * lib/unictype/categ_and.c: New file.
60548         * lib/unictype/categ_and_not.c: New file.
60549         * lib/unictype/categ_byname.c: New file.
60550         * lib/unictype/categ_name.c: New file.
60551         * lib/unictype/categ_none.c: New file.
60552         * lib/unictype/categ_of.c: New file.
60553         * lib/unictype/categ_or.c: New file.
60554         * lib/unictype/categ_test.c: New file.
60555         * lib/unictype/combining.c: New file.
60556         * lib/unictype/ctype_alnum.c: New file.
60557         * lib/unictype/ctype_alpha.c: New file.
60558         * lib/unictype/ctype_blank.c: New file.
60559         * lib/unictype/ctype_cntrl.c: New file.
60560         * lib/unictype/ctype_digit.c: New file.
60561         * lib/unictype/ctype_graph.c: New file.
60562         * lib/unictype/ctype_lower.c: New file.
60563         * lib/unictype/ctype_print.c: New file.
60564         * lib/unictype/ctype_punct.c: New file.
60565         * lib/unictype/ctype_space.c: New file.
60566         * lib/unictype/ctype_upper.c: New file.
60567         * lib/unictype/ctype_xdigit.c: New file.
60568         * lib/unictype/decdigit.c: New file.
60569         * lib/unictype/digit.c: New file.
60570         * lib/unictype/identsyntaxmap.h: New file.
60571         * lib/unictype/mirror.c: New file.
60572         * lib/unictype/numeric.c: New file.
60573         * lib/unictype/pr_alphabetic.c: New file.
60574         * lib/unictype/pr_ascii_hex_digit.c: New file.
60575         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60576         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60577         * lib/unictype/pr_bidi_block_separator.c: New file.
60578         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60579         * lib/unictype/pr_bidi_common_separator.c: New file.
60580         * lib/unictype/pr_bidi_control.c: New file.
60581         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60582         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60583         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60584         * lib/unictype/pr_bidi_european_digit.c: New file.
60585         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60586         * lib/unictype/pr_bidi_left_to_right.c: New file.
60587         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60588         * lib/unictype/pr_bidi_other_neutral.c: New file.
60589         * lib/unictype/pr_bidi_pdf.c: New file.
60590         * lib/unictype/pr_bidi_segment_separator.c: New file.
60591         * lib/unictype/pr_bidi_whitespace.c: New file.
60592         * lib/unictype/pr_byname.c: New file.
60593         * lib/unictype/pr_byname.gperf: New file.
60594         * lib/unictype/pr_combining.c: New file.
60595         * lib/unictype/pr_composite.c: New file.
60596         * lib/unictype/pr_currency_symbol.c: New file.
60597         * lib/unictype/pr_dash.c: New file.
60598         * lib/unictype/pr_decimal_digit.c: New file.
60599         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60600         * lib/unictype/pr_deprecated.c: New file.
60601         * lib/unictype/pr_diacritic.c: New file.
60602         * lib/unictype/pr_extender.c: New file.
60603         * lib/unictype/pr_format_control.c: New file.
60604         * lib/unictype/pr_grapheme_base.c: New file.
60605         * lib/unictype/pr_grapheme_extend.c: New file.
60606         * lib/unictype/pr_grapheme_link.c: New file.
60607         * lib/unictype/pr_hex_digit.c: New file.
60608         * lib/unictype/pr_hyphen.c: New file.
60609         * lib/unictype/pr_id_continue.c: New file.
60610         * lib/unictype/pr_id_start.c: New file.
60611         * lib/unictype/pr_ideographic.c: New file.
60612         * lib/unictype/pr_ids_binary_operator.c: New file.
60613         * lib/unictype/pr_ids_trinary_operator.c: New file.
60614         * lib/unictype/pr_ignorable_control.c: New file.
60615         * lib/unictype/pr_iso_control.c: New file.
60616         * lib/unictype/pr_join_control.c: New file.
60617         * lib/unictype/pr_left_of_pair.c: New file.
60618         * lib/unictype/pr_line_separator.c: New file.
60619         * lib/unictype/pr_logical_order_exception.c: New file.
60620         * lib/unictype/pr_lowercase.c: New file.
60621         * lib/unictype/pr_math.c: New file.
60622         * lib/unictype/pr_non_break.c: New file.
60623         * lib/unictype/pr_not_a_character.c: New file.
60624         * lib/unictype/pr_numeric.c: New file.
60625         * lib/unictype/pr_other_alphabetic.c: New file.
60626         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60627         * lib/unictype/pr_other_grapheme_extend.c: New file.
60628         * lib/unictype/pr_other_id_continue.c: New file.
60629         * lib/unictype/pr_other_id_start.c: New file.
60630         * lib/unictype/pr_other_lowercase.c: New file.
60631         * lib/unictype/pr_other_math.c: New file.
60632         * lib/unictype/pr_other_uppercase.c: New file.
60633         * lib/unictype/pr_paired_punctuation.c: New file.
60634         * lib/unictype/pr_paragraph_separator.c: New file.
60635         * lib/unictype/pr_pattern_syntax.c: New file.
60636         * lib/unictype/pr_pattern_white_space.c: New file.
60637         * lib/unictype/pr_private_use.c: New file.
60638         * lib/unictype/pr_punctuation.c: New file.
60639         * lib/unictype/pr_quotation_mark.c: New file.
60640         * lib/unictype/pr_radical.c: New file.
60641         * lib/unictype/pr_sentence_terminal.c: New file.
60642         * lib/unictype/pr_soft_dotted.c: New file.
60643         * lib/unictype/pr_space.c: New file.
60644         * lib/unictype/pr_terminal_punctuation.c: New file.
60645         * lib/unictype/pr_test.c: New file.
60646         * lib/unictype/pr_titlecase.c: New file.
60647         * lib/unictype/pr_unassigned_code_value.c: New file.
60648         * lib/unictype/pr_unified_ideograph.c: New file.
60649         * lib/unictype/pr_uppercase.c: New file.
60650         * lib/unictype/pr_variation_selector.c: New file.
60651         * lib/unictype/pr_white_space.c: New file.
60652         * lib/unictype/pr_xid_continue.c: New file.
60653         * lib/unictype/pr_xid_start.c: New file.
60654         * lib/unictype/pr_zero_width.c: New file.
60655         * lib/unictype/scripts.c: New file.
60656         * lib/unictype/sy_c_ident.c: New file.
60657         * lib/unictype/sy_c_whitespace.c: New file.
60658         * lib/unictype/sy_java_ident.c: New file.
60659         * lib/unictype/sy_java_whitespace.c: New file.
60660
60661         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60662         Unicode 5.0.0.
60663         * lib/unictype/blocks.h: Likewise.
60664         * lib/unictype/categ_C.h: Likewise.
60665         * lib/unictype/categ_Cc.h: Likewise.
60666         * lib/unictype/categ_Cf.h: Likewise.
60667         * lib/unictype/categ_Cn.h: Likewise.
60668         * lib/unictype/categ_Co.h: Likewise.
60669         * lib/unictype/categ_Cs.h: Likewise.
60670         * lib/unictype/categ_L.h: Likewise.
60671         * lib/unictype/categ_Ll.h: Likewise.
60672         * lib/unictype/categ_Lm.h: Likewise.
60673         * lib/unictype/categ_Lo.h: Likewise.
60674         * lib/unictype/categ_Lt.h: Likewise.
60675         * lib/unictype/categ_Lu.h: Likewise.
60676         * lib/unictype/categ_M.h: Likewise.
60677         * lib/unictype/categ_Mc.h: Likewise.
60678         * lib/unictype/categ_Me.h: Likewise.
60679         * lib/unictype/categ_Mn.h: Likewise.
60680         * lib/unictype/categ_N.h: Likewise.
60681         * lib/unictype/categ_Nd.h: Likewise.
60682         * lib/unictype/categ_Nl.h: Likewise.
60683         * lib/unictype/categ_No.h: Likewise.
60684         * lib/unictype/categ_P.h: Likewise.
60685         * lib/unictype/categ_Pc.h: Likewise.
60686         * lib/unictype/categ_Pd.h: Likewise.
60687         * lib/unictype/categ_Pe.h: Likewise.
60688         * lib/unictype/categ_Pf.h: Likewise.
60689         * lib/unictype/categ_Pi.h: Likewise.
60690         * lib/unictype/categ_Po.h: Likewise.
60691         * lib/unictype/categ_Ps.h: Likewise.
60692         * lib/unictype/categ_S.h: Likewise.
60693         * lib/unictype/categ_Sc.h: Likewise.
60694         * lib/unictype/categ_Sk.h: Likewise.
60695         * lib/unictype/categ_Sm.h: Likewise.
60696         * lib/unictype/categ_So.h: Likewise.
60697         * lib/unictype/categ_Z.h: Likewise.
60698         * lib/unictype/categ_Zl.h: Likewise.
60699         * lib/unictype/categ_Zp.h: Likewise.
60700         * lib/unictype/categ_Zs.h: Likewise.
60701         * lib/unictype/categ_of.h: Likewise.
60702         * lib/unictype/combining.h: Likewise.
60703         * lib/unictype/ctype_alnum.h: Likewise.
60704         * lib/unictype/ctype_alpha.h: Likewise.
60705         * lib/unictype/ctype_blank.h: Likewise.
60706         * lib/unictype/ctype_cntrl.h: Likewise.
60707         * lib/unictype/ctype_digit.h: Likewise.
60708         * lib/unictype/ctype_graph.h: Likewise.
60709         * lib/unictype/ctype_lower.h: Likewise.
60710         * lib/unictype/ctype_print.h: Likewise.
60711         * lib/unictype/ctype_punct.h: Likewise.
60712         * lib/unictype/ctype_space.h: Likewise.
60713         * lib/unictype/ctype_upper.h: Likewise.
60714         * lib/unictype/ctype_xdigit.h: Likewise.
60715         * lib/unictype/decdigit.h: Likewise.
60716         * lib/unictype/digit.h: Likewise.
60717         * lib/unictype/mirror.h: Likewise.
60718         * lib/unictype/numeric.h: Likewise.
60719         * lib/unictype/pr_alphabetic.h: Likewise.
60720         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60721         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60722         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60723         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60724         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60725         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60726         * lib/unictype/pr_bidi_control.h: Likewise.
60727         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60728         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60729         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60730         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60731         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60732         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60733         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60734         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60735         * lib/unictype/pr_bidi_pdf.h: Likewise.
60736         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60737         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60738         * lib/unictype/pr_combining.h: Likewise.
60739         * lib/unictype/pr_composite.h: Likewise.
60740         * lib/unictype/pr_currency_symbol.h: Likewise.
60741         * lib/unictype/pr_dash.h: Likewise.
60742         * lib/unictype/pr_decimal_digit.h: Likewise.
60743         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60744         * lib/unictype/pr_deprecated.h: Likewise.
60745         * lib/unictype/pr_diacritic.h: Likewise.
60746         * lib/unictype/pr_extender.h: Likewise.
60747         * lib/unictype/pr_format_control.h: Likewise.
60748         * lib/unictype/pr_grapheme_base.h: Likewise.
60749         * lib/unictype/pr_grapheme_extend.h: Likewise.
60750         * lib/unictype/pr_grapheme_link.h: Likewise.
60751         * lib/unictype/pr_hex_digit.h: Likewise.
60752         * lib/unictype/pr_hyphen.h: Likewise.
60753         * lib/unictype/pr_id_continue.h: Likewise.
60754         * lib/unictype/pr_id_start.h: Likewise.
60755         * lib/unictype/pr_ideographic.h: Likewise.
60756         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60757         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60758         * lib/unictype/pr_ignorable_control.h: Likewise.
60759         * lib/unictype/pr_iso_control.h: Likewise.
60760         * lib/unictype/pr_join_control.h: Likewise.
60761         * lib/unictype/pr_left_of_pair.h: Likewise.
60762         * lib/unictype/pr_line_separator.h: Likewise.
60763         * lib/unictype/pr_logical_order_exception.h: Likewise.
60764         * lib/unictype/pr_lowercase.h: Likewise.
60765         * lib/unictype/pr_math.h: Likewise.
60766         * lib/unictype/pr_non_break.h: Likewise.
60767         * lib/unictype/pr_not_a_character.h: Likewise.
60768         * lib/unictype/pr_numeric.h: Likewise.
60769         * lib/unictype/pr_other_alphabetic.h: Likewise.
60770         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60771         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60772         * lib/unictype/pr_other_id_continue.h: Likewise.
60773         * lib/unictype/pr_other_id_start.h: Likewise.
60774         * lib/unictype/pr_other_lowercase.h: Likewise.
60775         * lib/unictype/pr_other_math.h: Likewise.
60776         * lib/unictype/pr_other_uppercase.h: Likewise.
60777         * lib/unictype/pr_paired_punctuation.h: Likewise.
60778         * lib/unictype/pr_paragraph_separator.h: Likewise.
60779         * lib/unictype/pr_pattern_syntax.h: Likewise.
60780         * lib/unictype/pr_pattern_white_space.h: Likewise.
60781         * lib/unictype/pr_private_use.h: Likewise.
60782         * lib/unictype/pr_punctuation.h: Likewise.
60783         * lib/unictype/pr_quotation_mark.h: Likewise.
60784         * lib/unictype/pr_radical.h: Likewise.
60785         * lib/unictype/pr_sentence_terminal.h: Likewise.
60786         * lib/unictype/pr_soft_dotted.h: Likewise.
60787         * lib/unictype/pr_space.h: Likewise.
60788         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60789         * lib/unictype/pr_titlecase.h: Likewise.
60790         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60791         * lib/unictype/pr_unified_ideograph.h: Likewise.
60792         * lib/unictype/pr_uppercase.h: Likewise.
60793         * lib/unictype/pr_variation_selector.h: Likewise.
60794         * lib/unictype/pr_white_space.h: Likewise.
60795         * lib/unictype/pr_xid_continue.h: Likewise.
60796         * lib/unictype/pr_xid_start.h: Likewise.
60797         * lib/unictype/pr_zero_width.h: Likewise.
60798         * lib/unictype/scripts.h: Likewise.
60799         * lib/unictype/scripts_byname.gperf: Likewise.
60800         * lib/unictype/sy_c_ident.h: Likewise.
60801         * lib/unictype/sy_c_whitespace.h: Likewise.
60802         * lib/unictype/sy_java_ident.h: Likewise.
60803         * lib/unictype/sy_java_whitespace.h: Likewise.
60804
60805         * lib/unictype/Makefile: New file.
60806         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60807         glibc.
60808         * lib/unictype/3level.h: New file, copied from glibc.
60809         * lib/unictype/3levelbit.h: New file.
60810
60811 2007-11-11  Bruno Haible  <bruno@clisp.org>
60812
60813         * modules/gperf: New file.
60814         * modules/iconv_open (Depends-on): Add it.
60815         (Makefile.am): Remove the GPERF definition.
60816
60817 2007-11-11  Bruno Haible  <bruno@clisp.org>
60818
60819         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60820         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60821
60822 2007-11-11  Bruno Haible  <bruno@clisp.org>
60823
60824         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60825         (usage): Remove function.
60826
60827 2007-11-11  Bruno Haible  <bruno@clisp.org>
60828
60829         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60830         gl_FUNC_CEILF_LIBS.
60831         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60832         gl_FUNC_CEIL_LIBS.
60833         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60834         gl_FUNC_CEILL_LIBS.
60835         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60836         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60837         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60838
60839 2007-11-11  Bruno Haible  <bruno@clisp.org>
60840
60841         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60842         roundf were declared but do not exist on functions.
60843         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60844         roundl were declared but do not exist on functions.
60845         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60846         HAVE_FLOORL_AND_CEILL, respectively.
60847         Needed for Sun C on Solaris 10.
60848
60849 2007-11-11  Bruno Haible  <bruno@clisp.org>
60850
60851         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60852         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60853         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60854         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60855         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60856         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60857         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60858         HAVE_DECL_ROUNDF.
60859         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60860         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60862         of HAVE_DECL_ROUND*.
60863         * modules/math (Makefile.am): Update.
60864
60865 2007-11-10  Bruno Haible  <bruno@clisp.org>
60866
60867         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60868         ptrdiff_t as m4/intl.m4.
60869
60870 2007-11-10  Jim Meyering  <meyering@redhat.com>
60871
60872         Avoid link failure for the argmatch test.
60873         * tests/test-argmatch.c (usage): Define function to avoid a link
60874         failure: argmatch_die requires a usage function.
60875
60876 2007-11-09  Bruno Haible  <bruno@clisp.org>
60877
60878         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60879         * doc/functions/vsnprintf.texi: Likewise.
60880         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60881         with a size argument < 2.
60882
60883 2007-11-09  Bruno Haible  <bruno@clisp.org>
60884
60885         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60886         buffer. Fixes an inefficiency introduced on 2007-11-03.
60887
60888 2007-11-09  Bruno Haible  <bruno@clisp.org>
60889
60890         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60891         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60892
60893 2007-11-08  Jim Meyering  <meyering@redhat.com>
60894
60895         Change cache variable name prefix "jm_" to "gl_" everywhere.
60896         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60897         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60898         * m4/uptime.m4: s/gl_/jm_/
60899
60900 2007-11-07  Bruno Haible  <bruno@clisp.org>
60901
60902         Update to GNU gettext 0.17.
60903         * m4/intl.m4: Update to GNU gettext 0.17.
60904         * m4/po.m4: Likewise.
60905         * modules/gettext (Files): Remove m4/ulonglong.m4.
60906         (configure.ac): Require gettext infrastructure from version 0.17.
60907
60908 2007-11-06  Bruno Haible  <bruno@clisp.org>
60909
60910         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60911         symbolic values are not defined in a public header.
60912         * lib/freadable.c (freadable) [QNX]: Likewise.
60913         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60914         * lib/freading.c (freading) [QNX]: Likewise.
60915         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60916         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60917         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60918         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60919         Reported by Alain Magloire.
60920
60921         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60922
60923 2007-11-05  Bruno Haible  <bruno@clisp.org>
60924
60925         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60926         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60927         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60928         Reported by Eric Blake.
60929
60930 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60931             Bruno Haible  <bruno@clisp.org>
60932
60933         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60934         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60935         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60936         (malloc): Undefine also before including <stdlib.h>.
60937         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60938         Needed on OSF/1 4.0.
60939
60940 2007-11-05  Jim Meyering  <meyering@redhat.com>
60941
60942         git-version-gen: sync from coreutils.
60943         * build-aux/git-version-gen: Add comments.
60944         Change the first '-' to '.' in the snapshot version string,
60945         e.g., 6.9-377-08144 -> 6.9.377-08144
60946         Remove first parameter.
60947         Don't declare a version "-dirty" merely because a time
60948         stamp has changed.
60949
60950 2007-11-04  Bruno Haible  <bruno@clisp.org>
60951
60952         * lib/lock.h: Protect all macro definitions containing an 'if'
60953         statement through a "do { ... } while (0)".
60954         * lib/tls.h: Likewise.
60955
60956 2007-11-04  Bruno Haible  <bruno@clisp.org>
60957
60958         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60959
60960 2007-11-04  Bruno Haible  <bruno@clisp.org>
60961
60962         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60963         * modules/fprintf-posix (Depends-on): Add nocrash.
60964         * modules/snprintf-posix (Depends-on): Likewise.
60965         * modules/sprintf-posix (Depends-on): Likewise.
60966         * modules/vasnprintf-posix (Depends-on): Likewise.
60967         * modules/vasprintf-posix (Depends-on): Likewise.
60968         * modules/vfprintf-posix (Depends-on): Likewise.
60969         * modules/vsnprintf-posix (Depends-on): Likewise.
60970         * modules/vsprintf-posix (Depends-on): Likewise.
60971         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60972         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60973         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60974         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60975         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60976         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60977         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60978
60979 2007-11-04  Bruno Haible  <bruno@clisp.org>
60980
60981         * modules/nocrash: New file.
60982         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60983         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60984
60985 2007-11-04  Bruno Haible  <bruno@clisp.org>
60986
60987         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60988         precision handling.
60989         * tests/test-vasprintf-posix.c (test_function): Likewise.
60990         * tests/test-snprintf-posix.h (test_function): Likewise.
60991         * tests/test-sprintf-posix.h (test_function): Likewise.
60992
60993         Fix *printf behaviour for large precisions on mingw and BeOS.
60994         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60995         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60997         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60998         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60999         gl_PRINTF_PRECISION and test its result. Invoke
61000         gl_PREREQ_VASNPRINTF_PRECISION.
61001         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61002         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61003         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61004         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61005         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61006         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61007         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61008         * doc/functions/fprintf.texi: Update.
61009         * doc/functions/printf.texi: Update.
61010         * doc/functions/snprintf.texi: Update.
61011         * doc/functions/sprintf.texi: Update.
61012         * doc/functions/vfprintf.texi: Update.
61013         * doc/functions/vprintf.texi: Update.
61014         * doc/functions/vsnprintf.texi: Update.
61015         * doc/functions/vsprintf.texi: Update.
61016
61017 2007-11-04  Bruno Haible  <bruno@clisp.org>
61018
61019         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61020
61021 2007-11-04  Bruno Haible  <bruno@clisp.org>
61022
61023         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61024         Reported by Sylvain Beucler <beuc@gnu.org>.
61025
61026 2007-11-03  Bruno Haible  <bruno@clisp.org>
61027
61028         * tests/test-fprintf-posix2.sh: New file.
61029         * tests/test-fprintf-posix2.c: New file.
61030         * modules/fprintf-posix-tests (Files): Add them.
61031         (TESTS): Add test-fprintf-posix2.sh.
61032         (configure.ac): Check for getrlimit and setrlimit.
61033         (check_PROGRAMS): Add test-fprintf-posix2.
61034
61035         * tests/test-printf-posix2.sh: New file.
61036         * tests/test-printf-posix2.c: New file.
61037         * modules/printf-posix-tests (Files): Add them.
61038         (TESTS): Add test-printf-posix2.sh.
61039         (configure.ac): Check for getrlimit and setrlimit.
61040         (check_PROGRAMS): Add test-printf-posix2.
61041
61042         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61043         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61044         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61045         (decode_double): New function, copied from decode_long_double.
61046         (scale10_round_decimal_decoded): New function, extracted from
61047         scale10_round_decimal_long_double.
61048         (scale10_round_decimal_long_double): Use it.
61049         (scale10_round_decimal_double): New function.
61050         (floorlog10): New function.
61051         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61052         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61053         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61054         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61055         gl_PRINTF_ENOMEM and test its result. Invoke
61056         gl_PREREQ_VASNPRINTF_ENOMEM.
61057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61058         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61059         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61060         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61061         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61062         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61063         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61064         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61065         * modules/snprintf-posix (Depends-on): Likewise.
61066         * modules/sprintf-posix (Depends-on): Likewise.
61067         * modules/vasnprintf-posix (Depends-on): Likewise.
61068         * modules/vasprintf-posix (Depends-on): Likewise.
61069         * modules/vfprintf-posix (Depends-on): Likewise.
61070         * modules/vsnprintf-posix (Depends-on): Likewise.
61071         * modules/vsprintf-posix (Depends-on): Likewise.
61072         * doc/functions/fprintf.texi: Update.
61073         * doc/functions/printf.texi: Update.
61074         * doc/functions/snprintf.texi: Update.
61075         * doc/functions/sprintf.texi: Update.
61076         * doc/functions/vfprintf.texi: Update.
61077         * doc/functions/vprintf.texi: Update.
61078         * doc/functions/vsnprintf.texi: Update.
61079         * doc/functions/vsprintf.texi: Update.
61080
61081 2007-11-03  Bruno Haible  <bruno@clisp.org>
61082
61083         * modules/frexp-nolibm-tests: New file.
61084
61085         * modules/frexp-nolibm: New file.
61086         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61087
61088 2007-11-03  Bruno Haible  <bruno@clisp.org>
61089
61090         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61091         value is C99 compliant.
61092         Needed for OSF/1 5.1.
61093
61094 2007-11-03  Bruno Haible  <bruno@clisp.org>
61095
61096         Fix out-of-memory handling of vasnprintf.
61097         * lib/printf-parse.c: Include <errno.h>.
61098         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61099         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61100         is already set.
61101
61102 2007-11-02  Eric Blake  <ebb9@byu.net>
61103
61104         Fix tests on cygwin.
61105         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61106
61107 2007-11-01  Bruno Haible  <bruno@clisp.org>
61108
61109         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61110         warning.
61111         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61112         needed for POSIX compatibility.
61113
61114 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61115
61116         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61117         for compatibility with GNU.
61118
61119 2007-11-01  Bruno Haible  <bruno@clisp.org>
61120
61121         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61122         (putenv): Renamed from rpl_putenv. Change argument type from
61123         'const char *' to 'char *'.
61124         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61125         of defining putenv in config.h, just set REPLACE_PUTENV.
61126         * modules/putenv (Depends-on): Add stdlib.
61127         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61128         (Include): Use <stdlib.h>.
61129         * lib/stdlib.in.h (putenv): New declaration.
61130         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61131         REPLACE_PUTENV.
61132         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61133         REPLACE_PUTENV.
61134         Needed for MacOS X 10.5.0.
61135         Reported by Peter O'Gorman <peter@pogma.com>.
61136
61137 2007-11-01  Jim Meyering  <meyering@redhat.com>
61138
61139         Treat an empty date string exactly like "0".
61140         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61141         if the remaining date string (to be parsed) is empty, use "0".
61142         Reported by Mischa Molhoek and discussed in this thread:
61143         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61144
61145 2007-10-31  Bruno Haible  <bruno@clisp.org>
61146
61147         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61148         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61149         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61150         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61151         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61152         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61153
61154 2007-10-31  Bruno Haible  <bruno@clisp.org>
61155
61156         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61157         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61158         (AC_TYPE_LONG_LONG_INT): Use it.
61159         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61160         it as well.
61161         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61162         to m4/longlong.m4.
61163         * modules/stdint (Files): Remove m4/ulonglong.m4.
61164         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61165         m4/ulonglong.m4.
61166         * modules/strtoumax (Files): Likewise.
61167
61168 2007-10-30  Bruno Haible  <bruno@clisp.org>
61169
61170         * modules/xvasprintf-posix: New file.
61171         Suggested by Eric Blake.
61172
61173 2007-10-30  Bruno Haible  <bruno@clisp.org>
61174
61175         * modules/xprintf-posix-tests: New file.
61176         * tests/test-xprintf-posix.sh: New file.
61177         * tests/test-xprintf-posix.c: New file.
61178         * tests/test-xfprintf-posix.c: New file.
61179
61180         * modules/xprintf-posix: New file.
61181
61182 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61183
61184         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61185         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61186         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61187
61188 2007-10-29  Bruno Haible  <bruno@clisp.org>
61189
61190         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61191         contain the special marker '_cv_'.
61192         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61193         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61194         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61195         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61196         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61197         Reported by Ralf Wildenhues.
61198
61199 2007-10-29  Bruno Haible  <bruno@clisp.org>
61200
61201         * gnulib-tool (func_import): When --lgpl is not specified, set
61202         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61203         GPLv3.
61204         Reported by Simon Josefsson.
61205
61206 2007-10-28  Bruno Haible  <bruno@clisp.org>
61207
61208         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61209         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61210         HAVE_DECL_ISFINITE.
61211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61212         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61213         HAVE_DECL_ISFINITE.
61214
61215 2007-10-28  Bruno Haible  <bruno@clisp.org>
61216
61217         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61218         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61219
61220 2007-10-28  Bruno Haible  <bruno@clisp.org>
61221
61222         Fix link errors with Sun C 5.0 on Solaris 10.
61223         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61224         function is declared but not present in the compiler's libm.
61225         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61226         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61227         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61228         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61229         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61230         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61231         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61233         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61234         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61235         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61236         HAVE_DECL_FLOORL.
61237
61238 2007-10-28  Bruno Haible  <bruno@clisp.org>
61239
61240         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61241         gl_FUNC_FLOORL. Cache the result.
61242         (gl_FUNC_FLOORL): Use it.
61243         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61244         gl_FUNC_CEILL. Cache the result.
61245         (gl_FUNC_CEILL): Use it.
61246
61247         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61248         gl_FUNC_FLOOR. Cache the result.
61249         (gl_FUNC_FLOOR): Use it.
61250         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61251         gl_FUNC_CEIL. Cache the result.
61252         (gl_FUNC_CEIL): Use it.
61253
61254         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
61255         gl_FUNC_FLOORF. Cache the result.
61256         (gl_FUNC_FLOORF): Use it.
61257         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
61258         gl_FUNC_CEILF. Cache the result.
61259         (gl_FUNC_CEILF): Use it.
61260
61261 2007-10-28  Bruno Haible  <bruno@clisp.org>
61262
61263         * gnulib-tool: Allow specifying the LGPL version number through
61264         --lgpl=2 or --lgpl=3.
61265         (func_usage): Document --lgpl with argument.
61266         Handle --lgpl=... arguments.
61267         (func_import): Recognize also gl_LGPL calls with an argument. When
61268         --lgpl=2 is used and the module's license is just LGPL, report an
61269         error. Set sed_transform_lib_file according to the lgpl variable. In
61270         the generated files, use --lgpl or gl_LGPL invocations with argument,
61271         if necessary.
61272         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61273         an LGPv2+ license.
61274         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61275         gl_LGPL macro.
61276
61277 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61278             Bruno Haible  <bruno@clisp.org>
61279
61280         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61281         (u16_uctomb_aux): Likewise.
61282         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61283         !HAVE_INLINE.
61284         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61285
61286 2007-10-28  Bruno Haible  <bruno@clisp.org>
61287
61288         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61289         Invoke AM_GETTEXT_OPTION if it exists.
61290         * modules/vasprintf: Likewise.
61291         * modules/verror: Likewise.
61292         * modules/xprintf: Likewise.
61293         * modules/xvasprintf: Likewise.
61294
61295 2007-10-27  Ben Pfaff  <blp@gnu.org>
61296
61297         * lib/math.in.h: Define isfinite macro and prototypes for
61298         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61299         implementations.
61300         * m4/math_h.m4: New substitutions for isfinite module.
61301         * lib/isfinite.c: New file.
61302         * m4/isfinite.m4: New file.
61303         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61304         * modules/isfinite: New file.
61305         * modules/isfinite-tests: New file.
61306         * tests/tests-isfinite.c: New file.
61307         * doc/functions/isfinite.texi: Mention isfinite module.
61308         * MODULES.html.sh: Mention new module.
61309
61310 2007-10-27  Ben Pfaff  <blp@gnu.org>
61311
61312         Ralf Wildenhues reported that Tru64 4.0D declares the round
61313         functions but does not have definitions.
61314         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61315         cannot be found in any library, set the output variable to
61316         "missing" instead of "".
61317         * m4/round.m4: Also use our substitute if we cannot find round in
61318         any library, even if it is declared.
61319         * m4/roundf.m4: Likewise for roundf.
61320         * m4/roundl.m4: Likewise for roundl.
61321         * lib/math.in.h: Undefine roundf, round, roundl before defining
61322         their replacements, to allow for hypothetical systems where these
61323         may be defined as macros but not available in libraries.
61324
61325 2007-10-27  Bruno Haible  <bruno@clisp.org>
61326
61327         * doc/gnulib.texi: Invoke @firstparagraphindent.
61328         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
61329         changes in gnulib.
61330         (Source changes): New section.
61331
61332 2007-10-26  Bruno Haible  <bruno@clisp.org>
61333
61334         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
61335         borrowed from autoconf.
61336
61337 2007-10-26  Bruno Haible  <bruno@clisp.org>
61338
61339         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
61340         strerror returned the empty string. Needed on HP-UX 11.00.
61341
61342 2007-10-24  Micah Cowan  <micah@cowan.name>
61343
61344         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
61345         * build-aux/bootstrap: Remove support for now-unnecessary option,
61346         --cvs-user, and envvars CVS_USER, CVS_RSH.
61347
61348 2007-10-24  Jim Meyering  <meyering@redhat.com>
61349
61350         Avoid diagnostics from sha1sum when there is no cached checksum.
61351         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
61352         if the po.s1 file hasn't been created yet.
61353
61354         * build-aux/bootstrap: Sync from coreutils:
61355         2007-10-24  Jim Meyering  <meyering@redhat.com>
61356         Get gnulib from the git repository, not from an obsolete cvs one.
61357         * build-aux/bootstrap: Suggestion from Micah Cowan.
61358         2007-10-04  Jim Meyering  <jim@meyering.net>
61359         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
61360         (update_po_files): Work also when there are no .po files in po/.
61361
61362 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61363
61364         * README: Append ".git" to git and cg examples.
61365         Problem reported by Benoit Sigoure.
61366
61367 2007-10-23  Micah Cowan  <micah@cowan.name>
61368
61369         * users.txt: Add wget.
61370
61371 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61372
61373         Fix linking of some unistdio tests on FreeBSD.
61374         * modules/unistdio/u16-vsnprintf-tests
61375         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
61376         * modules/unistdio/u16-vsprintf-tests
61377         (test_u16_vsnprintf1_LDADD): Likewise.
61378         * modules/unistdio/u32-vsnprintf-tests
61379         (test_u32_vsnprintf1_LDADD): Likewise.
61380         * modules/unistdio/u32-vsprintf-tests
61381         (test_u32_vsprintf1_LDADD): Likewise.
61382         * modules/unistdio/u8-vsnprintf-tests
61383         (test_u8_vsnprintf1_LDADD): Likewise.
61384         * modules/unistdio/u8-vsprintf-tests
61385         (test_u8_vsprintf1_LDADD): Likewise.
61386         * modules/unistdio/ulc-vsnprintf-tests
61387         (test_ulc_vsnprintf1_LDADD): Likewise.
61388         * modules/unistdio/ulc-vsprintf-tests
61389         (test_ulc_vsprintf1_LDADD): Likewise.
61390
61391         Fix linking of some uniconv tests on FreeBSD.
61392         * modules/uniconv/u16-conv-from-enc-tests
61393         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61394         * modules/uniconv/u16-conv-to-enc-tests
61395         (test_u16_conv_to_enc_LDADD): Likewise.
61396         * modules/uniconv/u16-strconv-from-enc-tests
61397         (test_u16_strconv_from_enc_LDADD): Likewise.
61398         * modules/uniconv/u16-strconv-to-enc-tests
61399         (test_u16_strconv_to_enc_LDADD): Likewise.
61400         * modules/uniconv/u32-conv-from-enc-tests
61401         (test_u32_conv_from_enc_LDADD): Likewise.
61402         * modules/uniconv/u32-conv-to-enc-tests
61403         (test_u32_conv_to_enc_LDADD): Likewise.
61404         * modules/uniconv/u32-strconv-from-enc-tests
61405         (test_u32_strconv_from_enc_LDADD): Likewise.
61406         * modules/uniconv/u32-strconv-to-enc-tests
61407         (test_u32_strconv_to_enc_LDADD): Likewise.
61408         * modules/uniconv/u8-conv-from-enc-tests
61409         (test_u8_conv_from_enc_LDADD): Likewise.
61410         * modules/uniconv/u8-conv-to-enc-tests
61411         (test_u8_conv_to_enc_LDADD): Likewise.
61412         * modules/uniconv/u8-strconv-from-enc-tests
61413         (test_u8_strconv_from_enc_LDADD): Likewise.
61414         * modules/uniconv/u8-strconv-to-enc-tests
61415         (test_u8_strconv_to_enc_LDADD): Likewise.
61416
61417 2007-10-22  Bruno Haible  <bruno@clisp.org>
61418
61419         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
61420         size.
61421
61422 2007-10-22  Eric Blake  <ebb9@byu.net>
61423
61424         Tweak x*printf documentation.
61425         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
61426         variable name and comments.
61427         Suggested by Bruno Haible.
61428
61429 2007-10-22  Bruno Haible  <bruno@clisp.org>
61430
61431         * lib/acl.c (copy_acl): Fix file name in comment.
61432
61433 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61434
61435         Fix Tru64 problem with stdbool.h.
61436         * lib/stdbool.in.h (false, true):
61437         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
61438         Don't declare as an enum in this situation; it runs afoul of Tru64.
61439         Problem reported by Steven M. Schweda in
61440         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
61441
61442 2007-10-22  Eric Blake  <ebb9@byu.net>
61443
61444         Also wrap vf?printf.
61445         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
61446         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
61447         (xvprintf, xvfprintf): New functions.
61448
61449 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61450
61451         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
61452         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
61453
61454         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
61455         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
61456
61457 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61458
61459         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
61460         by Bruno Haible.
61461
61462 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61463
61464         * lib/getloadavg.c
61465         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
61466         Undef `sys' after including sys/table.h, for Tru64 4.0D.
61467
61468         * tests/test-i-ring.c: Work for C89.
61469
61470 2007-10-22  Bruno Haible  <bruno@clisp.org>
61471
61472         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
61473         -1u, in preprocessor expression, so that we don't test for the bug
61474         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
61475         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
61476
61477 2007-10-22  Eric Blake  <ebb9@byu.net>
61478
61479         * tests/test-yesno.sh: Silence stderr during test.
61480
61481 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61482
61483         * modules/crypto/gc-camellia: New file.
61484
61485         * m4/gc-camellia.m4: New file.
61486
61487         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61488
61489         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61490
61491 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61492
61493         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61494         --help to stdout.  Reported by sms@antinode.org (Steven
61495         M. Schweda).
61496
61497 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61498
61499         * users.txt: Fix link to libksba.
61500
61501 2007-10-21  Ben Pfaff  <blp@gnu.org>
61502
61503         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61504         round.c roundf implementation that depends on floorf and ceilf to
61505         be tested unconditionally.
61506
61507 2007-10-21  Ben Pfaff  <blp@gnu.org>
61508
61509         * m4/check-libm-func.m4: Removed.
61510         * m4/check-math-lib.m4: New file.
61511         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61512         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61513         definition and lack of AC_LIBOBJ([roundf]).
61514         * m4/roundl.m4: Ditto, and similarly for roundl.
61515         * modules/round: Reference new m4 file.
61516         * modules/roundf: Ditto.
61517         * modules/roundl: Ditto.
61518         * tests/test-round2.c (main): Use ROUND instead of round.
61519         Bug report from Bruno Haible.
61520
61521 2007-10-21  Bruno Haible  <bruno@clisp.org>
61522
61523         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61524         context.
61525
61526 2007-10-21  Bruno Haible  <bruno@clisp.org>
61527
61528         * tests/test-wcwidth.c (main): Allow negative result for some control
61529         characters.
61530
61531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61532         Needed on OSF/1 5.1.
61533
61534 2007-10-21  Bruno Haible  <bruno@clisp.org>
61535
61536         * tests/test-floorf1.c: Include isnanf.h.
61537         (main): Use isnanf() instead of isnan().
61538         * tests/test-ceilf1.c: Include isnanf.h.
61539         (main): Use isnanf() instead of isnan().
61540         * tests/test-truncf1.c: Include isnanf.h.
61541         (main): Use isnanf() instead of isnan().
61542         * tests/test-roundf1.c: Include isnanf.h.
61543         (main): Use isnanf() instead of isnan().
61544
61545 2007-10-21  Eric Blake  <ebb9@byu.net>
61546
61547         * users.txt: Update URL for m4.
61548
61549 2007-10-21  Bruno Haible  <bruno@clisp.org>
61550
61551         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61552
61553 2007-10-21  Bruno Haible  <bruno@clisp.org>
61554
61555         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61556         Git's management files if the CVS files are not present.
61557
61558 2007-10-20  Bruno Haible  <bruno@clisp.org>
61559
61560         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61561         gcc-3.4.x.
61562
61563 2007-10-20  Ben Pfaff  <blp@gnu.org>
61564
61565         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61566         implementations.
61567         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61568         * lib/round.c: New file.
61569         * lib/roundf.c: New file.
61570         * lib/roundl.c: New file.
61571         * m4/round.m4: New file.
61572         * m4/roundf.m4: New file.
61573         * m4/roundl.m4: New file.
61574         * m4/check-libm-func-m4: New file.
61575         * modules/math: Replace round, roundf, roundl related @VARS@ in
61576         math.in.h.
61577         * modules/round: New file.
61578         * modules/round-tests: New file.
61579         * modules/roundf: New file.
61580         * modules/roundf-tests: New file.
61581         * modules/roundl: New file.
61582         * modules/roundl-tests: New file.
61583         * tests/test-round1.c: New file.
61584         * tests/test-round2.c: New file.
61585         * tests/test-roundf1.c: New file.
61586         * tests/test-roundf2.c: New file.
61587         * tests/test-roundl.c: New file.
61588         * doc/functions/round.texi: Mention round module.
61589         * doc/functions/roundf.texi: Mention roundf module.
61590         * doc/functions/roundl.texi: Mention roundl module.
61591         * MODULES.html.sh: Mention new modules.
61592         Thanks to Bruno Haible for suggestions.
61593
61594 2007-10-20  Jim Meyering  <meyering@redhat.com>
61595
61596         * lib/xprintf.c: Include <config.h> unconditionally.
61597
61598         Change xprintf's license to GPL.
61599         * modules/xprintf (License): s/LGPL/GPL/, since this module
61600         depends on modules (exit and exitfail) which are GPL.
61601         Suggestion from Bruno Haible.
61602
61603         xprintf fixes.
61604         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61605         Use a clearer diagnostic.
61606         Patch from Bruno Haible.
61607
61608 2007-10-20  Bruno Haible  <bruno@clisp.org>
61609
61610         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61611         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61612         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61613
61614 2007-10-20  Bruno Haible  <bruno@clisp.org>
61615
61616         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61617         precision in the comparison result > x - 1 or similar.
61618         * tests/test-ceilf2.c (correct_result_p): Likewise.
61619         * tests/test-truncf2.c (correct_result_p): Likewise.
61620         * tests/test-trunc2.c (correct_result_p): Likewise.
61621         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61622
61623 2007-10-20  Bruno Haible  <bruno@clisp.org>
61624
61625         * modules/ceil: New file.
61626         * m4/ceil.m4: New file.
61627         * doc/functions/ceil.texi: Mention the 'ceil' module.
61628
61629 2007-10-20  Bruno Haible  <bruno@clisp.org>
61630
61631         * modules/floor: New file.
61632         * m4/floor.m4: New file.
61633         * doc/functions/floor.texi: Mention the 'floor' module.
61634
61635 2007-10-20  Bruno Haible  <bruno@clisp.org>
61636
61637         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61638         of %a.
61639         * modules/floorf-tests (Depends-on): Likewise.
61640         * modules/truncf-tests (Depends-on): Likewise.
61641         * modules/trunc-tests (Depends-on): Likewise.
61642         Reported by Ben Pfaff.
61643
61644 2007-10-19  Jim Meyering  <meyering@redhat.com>
61645
61646         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61647         Don't bother testing specific errno values.  Just test ferror.
61648
61649         New module: xprintf
61650         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61651
61652 2007-10-19  Bruno Haible  <bruno@clisp.org>
61653
61654         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61655         syntax.
61656         * modules/javaexec (Makefile.am): Likewise.
61657         * modules/relocatable-prog (Makefile.am): Likewise.
61658         Suggested by Jim Meyering.
61659
61660 2007-10-18  Bruno Haible  <bruno@clisp.org>
61661
61662         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61663         Reported by Jim Meyering.
61664
61665 2007-10-18  Eric Blake  <ebb9@byu.net>
61666
61667         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61668
61669 2007-10-18  Bruno Haible  <bruno@clisp.org>
61670
61671         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61672         the format string into writable memory. Needed in Fortify conditions.
61673
61674 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61675             Bruno Haible  <bruno@clisp.org>
61676
61677         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61678         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61679         * modules/trim (Depends-on): Add mbchar.
61680         (configure.ac): Add gl_FUNC_MBRTOWC.
61681         (Makefile.am): Augment lib_SOURCES.
61682
61683 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61684
61685         Modify glob.c to use fstatat and dirfd, to simplify it.
61686         Suggested by Eric Blake.
61687         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61688         Don't include <stdbool.h>; not used.
61689         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61690         (link_exists_p): Simplify implementation, since we can now assume
61691         dirfd and fstatat.
61692         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61693
61694 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61695
61696         * gnulib-tool (func_get_dependencies): Fix sed script to
61697         match only tests.
61698
61699 2007-10-17  Bruno Haible  <bruno@clisp.org>
61700
61701         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61702         allow locale names without encoding suffix.
61703         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61704         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61705
61706 2007-10-16  Bruno Haible  <bruno@clisp.org>
61707
61708         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61709         * lib/getgroups.c (getgroups): Likewise.
61710         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61711
61712 2007-10-16  Bruno Haible  <bruno@clisp.org>
61713
61714         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61715         * modules/malloc-posix (License): Likewise.
61716         * modules/realloc-posix (License): Likewise.
61717         * modules/calloc-posix (License): Likewise.
61718         * modules/intprops (License): Change from GPL to LGPL, with
61719         Paul Eggert's approval.
61720
61721 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61722
61723         Merge glibc changes into lib/glob.c.
61724
61725         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61726         2007-10-15 04:59:03 UTC.  Here are the changes:
61727
61728         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61729
61730         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61731
61732         * lib/glob.c: Add some branch prediction throughout.
61733
61734         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61735
61736         [BZ #5103]
61737         * lib/glob.c (glob): Recognize patterns starting \/.
61738
61739         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61740
61741         [BZ #3996]
61742         * lib/glob.c (attribute_hidden): Define if not defined.
61743         (glob): Unescape dirname, filename or username when needed and not
61744         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61745         is NULL.  Handle unescaped [ in pattern without closing ].
61746         Don't pass GLOB_CHECK down to recursive glob for directories.
61747         (__glob_pattern_type): New function.
61748         (__glob_pattern_p): Implement using __glob_pattern_type.
61749         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61750         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61751         Remove unreachable code.
61752
61753         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61754
61755         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61756         explain why there are no leaks.
61757
61758         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61759
61760         [BZ #3253]
61761         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61762         time, rather allocate increasingly bigger arrays of pointers, if
61763         possible with alloca, if too large with malloc.
61764
61765 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61766
61767         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61768         Problem reported by H.Merijn Brand in
61769         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61770         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61771         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61772
61773 2007-10-15  Bruno Haible  <bruno@clisp.org>
61774
61775         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61776         with explicit rpl_ prefix.
61777         * lib/fopen.c (fopen): Likewise.
61778         * lib/freopen.c (freopen): Likewise.
61779         * lib/iconv.c (iconv): Likewise.
61780         * lib/iconv_close.c (iconv_close): Likewise.
61781
61782 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61783
61784         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61785
61786 2007-10-15  Bruno Haible  <bruno@clisp.org>
61787
61788         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61789         <stddef.h> instead of <stdlib.h> since we only need NULL.
61790         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61791
61792 2007-10-15  Bruno Haible  <bruno@clisp.org>
61793
61794         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61795         Replace paragraph talking about LIBOBJS.
61796         Reported by Colin Watson <cjwatson@debian.org>.
61797
61798 2007-10-15  Bruno Haible  <bruno@clisp.org>
61799
61800         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61801         <stdlib.h> before using NULL.
61802
61803 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61804
61805         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61806         Reported by Albert Chin <china@thewrittenword.com>.
61807
61808 2007-10-14  Bruno Haible  <bruno@clisp.org>
61809
61810         * modules/iconv_open-utf-tests: New file.
61811         * tests/test-iconv-utf.c: New file.
61812
61813         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61814         * modules/iconv_open-utf: New file.
61815         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61816         (iconv, iconv_close): New declarations.
61817         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61818         be defined.
61819         (iconv_open): Add special handling of conversion between UTF-8 and
61820         UTF-{16,32}{BE,LE}.
61821         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61822         * lib/iconv_close.c: New file.
61823         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61824         gl_FUNC_ICONV_OPEN.
61825         (gl_FUNC_ICONV_OPEN): Use it.
61826         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61827         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61828         and REPLACE_ICONV_UTF.
61829         * modules/iconv_open (Depends-on): Add c-strcase.
61830         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61831         ICONV_CONST.
61832         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61833
61834 2007-10-13  Albert Chin  <china@thewrittenword.com>
61835             Bruno Haible  <bruno@clisp.org>
61836
61837         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61838         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61839
61840 2007-10-13  Bruno Haible  <bruno@clisp.org>
61841
61842         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61843         defined, use the ISO C99 inline semantics.
61844         * lib/argp.h (ARGP_EI): Likewise.
61845
61846 2007-10-13  Bruno Haible  <bruno@clisp.org>
61847
61848         Handle 'inline' change in gcc 4.3.0.
61849         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61850         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61851         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61852         argp_fmtstream_point): Disable 'extern' declaration if the function
61853         definition is going to be provided inline.
61854         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61855         semantics, not the ISO C99 inline semantics.
61856         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61857         'extern' declaration if the function definition is going to be provided
61858         inline.
61859         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61860         the GNU C inline semantics, not the ISO C99 inline semantics. With
61861         GCC 4.2, avoid a warning.
61862
61863 2007-10-13  Bruno Haible  <bruno@clisp.org>
61864
61865         * lib/freading.h (freading): Enable the use of __freading for
61866         glibc >= 2.7.
61867         * lib/freading.c (freading): Likewise.
61868
61869 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61870
61871         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61872         "warning: C99 inline functions are not supported; using GNU89".
61873
61874 2007-10-12  Bruno Haible  <bruno@clisp.org>
61875
61876         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61877         of 2.
61878         * tests/test-ceilf2.c: New file.
61879         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61880
61881         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61882         * modules/ceilf-tests: Update.
61883
61884 2007-10-12  Bruno Haible  <bruno@clisp.org>
61885
61886         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61887         of 2.
61888         * tests/test-floorf2.c: New file.
61889         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61890
61891         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61892         * modules/floorf-tests: Update.
61893
61894 2007-10-12  Bruno Haible  <bruno@clisp.org>
61895
61896         * tests/test-trunc2.c: New file.
61897         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61898
61899         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61900         * modules/trunc-tests: Update.
61901
61902 2007-10-12  Bruno Haible  <bruno@clisp.org>
61903
61904         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61905         of 2.
61906         * tests/test-truncf2.c: New file.
61907         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61908
61909         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61910         * modules/truncf-tests: Update.
61911
61912 2007-10-11  Eric Blake  <ebb9@byu.net>
61913
61914         Don't claim strerror is broken on Interix.
61915         * doc/functions/strerror.texi (strerror): Known broken systems are
61916         now Solaris 8, and not Interix.
61917         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61918         Interix on cross-compile.
61919         Reported by Martin Koeppe in
61920         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61921
61922 2007-10-11  Bruno Haible  <bruno@clisp.org>
61923
61924         * modules/i-ring-tests: New file.
61925         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61926         instead of assert.
61927
61928 2007-10-11  Bruno Haible  <bruno@clisp.org>
61929
61930         * modules/filenamecat-tests: New file.
61931         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61932         * lib/filenamecat.c: Remove test code.
61933
61934 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61935
61936         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61937
61938         * lib/strerror.c: Include <string.h> always, to test interface,
61939         and to remove the need for the dummy.
61940         Include intprops.h to compute width instead of doing it ourselves
61941         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61942         (strerror): Define it to return NULL if there's no system strerror.
61943         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61944         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61945         ancient pre-strerror Unix systems well any more.  Saying "unknown
61946         system error" is enough.
61947         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61948         simpler strerror.c implementation.
61949         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61950         Simplify the tests to reflect the simpler strerror implementation.
61951         * modules/strerror (Depends-on): Add intprops.
61952
61953 2007-10-09  Eric Blake  <ebb9@byu.net>
61954
61955         Silence test-fpending.
61956         * modules/fpending-tests (Files): Add wrapper script.
61957         * tests/test-fpending.sh: New file.
61958
61959 2007-10-09  Bruno Haible  <bruno@clisp.org>
61960
61961         * MODULES.html.sh (func_module): Don't create a hyperlink for
61962         function names like 'printf_frexp'.
61963         (Misc): Add crc, memxor.
61964         (Characteristics of floating types): New section.
61965         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61966         isnanf-nolibm, signbit, trunc, truncf, truncl.
61967         (Enhancements for ISO C 99 functions): New subsection Input/output.
61968         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61969         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61970         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61971         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61972         (Enhancements for POSIX:2001 functions): Add chdir-long.
61973         (File system functions): Add areadlink, chdir-safer, read-file.
61974         Remove cycle-check.
61975         (File system as inode set): New section.
61976         (Date and time): Add gethrxtime.
61977         (Multithreading): Add openmp.
61978         (Internationalization functions): Add localename.
61979         (Unicode string functions): Add unistr/u*-mbsnlen.
61980         (Support for maintaining and releasing projects): Add git-version-gen.
61981         (Lone files): Remove directories.
61982
61983 2007-10-08  Ben Pfaff  <blp@gnu.org>
61984
61985         * lib/xmalloca.h: Fix typo in comment.
61986
61987 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61988
61989         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61990         when avoiding problems with integer overflow.  Use a portable test
61991         instead.
61992
61993 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61994
61995         * modules/dummy (License): Change to LGPLv2+.
61996         * modules/float (License): Likewise
61997         * modules/realloc (License): Likewise
61998         * modules/stdlib (License): Likewise
61999
62000 2007-10-07  Bruno Haible  <bruno@clisp.org>
62001
62002         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62003         * floor.c (TWO_MANT_DIG): Likewise.
62004         * ceil.c (TWO_MANT_DIG): Likewise.
62005         Reported by Ben Pfaff.
62006
62007 2007-10-07  Bruno Haible  <bruno@clisp.org>
62008
62009         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62010         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62011         * lib/frexp.c (FUNC): Likewise.
62012         * lib/printf-frexp.h (printf_frexp): Likewise.
62013         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62014         * lib/printf-frexp.c (FUNC): Likewise.
62015         Suggested by Jim Meyering.
62016
62017 2007-10-07  Jim Meyering  <meyering@redhat.com>
62018
62019         Make xnanosleep's integer overflow test more robust.
62020         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62021         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62022
62023 2007-10-07  Bruno Haible  <bruno@clisp.org>
62024
62025         * NEWS: Mention the license change.
62026
62027         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62028         abbreviations in the modules files.
62029
62030         Change copyright notice from GPLv2+ to GPLv3+.
62031         * README: Change copyright notice.
62032         * MODULES.html.sh: Likewise.
62033         * build-aux/bootstrap.conf: Likewise.
62034         * build-aux/config.libpath: Likewise.
62035         * build-aux/csharpcomp.sh.in: Likewise.
62036         * build-aux/csharpexec.sh.in: Likewise.
62037         * build-aux/install-reloc: Likewise.
62038         * build-aux/javacomp.sh.in: Likewise.
62039         * build-aux/javaexec.sh.in: Likewise.
62040         * build-aux/ldd.sh.in: Likewise.
62041         * build-aux/reloc-ldflags: Likewise.
62042         * build-aux/relocatable.sh.in: Likewise.
62043         * build-aux/x-to-1.in: Likewise.
62044         * check-module: Likewise.
62045         * config/srclistvars.sh: Likewise.
62046         * gnulib-tool: Likewise.
62047         * lib/acl-internal.h: Likewise.
62048         * lib/acl.c: Likewise.
62049         * lib/acl.h: Likewise.
62050         * lib/acl_entries.c: Likewise.
62051         * lib/areadlink-with-size.c: Likewise.
62052         * lib/areadlink.c: Likewise.
62053         * lib/areadlink.h: Likewise.
62054         * lib/argmatch.c: Likewise.
62055         * lib/argmatch.h: Likewise.
62056         * lib/argp-ba.c: Likewise.
62057         * lib/argp-eexst.c: Likewise.
62058         * lib/argp-fmtstream.c: Likewise.
62059         * lib/argp-fmtstream.h: Likewise.
62060         * lib/argp-fs-xinl.c: Likewise.
62061         * lib/argp-help.c: Likewise.
62062         * lib/argp-namefrob.h: Likewise.
62063         * lib/argp-parse.c: Likewise.
62064         * lib/argp-pin.c: Likewise.
62065         * lib/argp-pv.c: Likewise.
62066         * lib/argp-pvh.c: Likewise.
62067         * lib/argp-xinl.c: Likewise.
62068         * lib/argp.h: Likewise.
62069         * lib/at-func.c: Likewise.
62070         * lib/atanl.c: Likewise.
62071         * lib/backupfile.c: Likewise.
62072         * lib/backupfile.h: Likewise.
62073         * lib/basename.c: Likewise.
62074         * lib/binary-io.h: Likewise.
62075         * lib/byteswap.in.h: Likewise.
62076         * lib/c-stack.c: Likewise.
62077         * lib/c-stack.h: Likewise.
62078         * lib/c-strcasestr.c: Likewise.
62079         * lib/c-strcasestr.h: Likewise.
62080         * lib/c-strstr.c: Likewise.
62081         * lib/c-strstr.h: Likewise.
62082         * lib/c-strtod.c: Likewise.
62083         * lib/calloc.c: Likewise.
62084         * lib/canon-host.c: Likewise.
62085         * lib/canon-host.h: Likewise.
62086         * lib/canonicalize-lgpl.c: Likewise.
62087         * lib/canonicalize.c: Likewise.
62088         * lib/canonicalize.h: Likewise.
62089         * lib/ceil.c: Likewise.
62090         * lib/ceilf.c: Likewise.
62091         * lib/ceill.c: Likewise.
62092         * lib/chdir-long.c: Likewise.
62093         * lib/chdir-long.h: Likewise.
62094         * lib/chdir-safer.c: Likewise.
62095         * lib/chdir-safer.h: Likewise.
62096         * lib/chown.c: Likewise.
62097         * lib/classpath.c: Likewise.
62098         * lib/classpath.h: Likewise.
62099         * lib/clean-temp.c: Likewise.
62100         * lib/clean-temp.h: Likewise.
62101         * lib/cloexec.c: Likewise.
62102         * lib/close-stream.c: Likewise.
62103         * lib/closein.c: Likewise.
62104         * lib/closein.h: Likewise.
62105         * lib/closeout.c: Likewise.
62106         * lib/closeout.h: Likewise.
62107         * lib/concat-filename.c: Likewise.
62108         * lib/copy-file.c: Likewise.
62109         * lib/copy-file.h: Likewise.
62110         * lib/count-one-bits.h: Likewise.
62111         * lib/crc.c: Likewise.
62112         * lib/crc.h: Likewise.
62113         * lib/creat-safer.c: Likewise.
62114         * lib/csharpcomp.c: Likewise.
62115         * lib/csharpcomp.h: Likewise.
62116         * lib/csharpexec.c: Likewise.
62117         * lib/csharpexec.h: Likewise.
62118         * lib/cycle-check.c: Likewise.
62119         * lib/cycle-check.h: Likewise.
62120         * lib/diacrit.c: Likewise.
62121         * lib/diacrit.h: Likewise.
62122         * lib/diffseq.h: Likewise.
62123         * lib/dirchownmod.c: Likewise.
62124         * lib/dirent.in.h: Likewise.
62125         * lib/dirfd.c: Likewise.
62126         * lib/dirfd.h: Likewise.
62127         * lib/dirname.c: Likewise.
62128         * lib/dirname.h: Likewise.
62129         * lib/dummy.c: Likewise.
62130         * lib/dup-safer.c: Likewise.
62131         * lib/dup2.c: Likewise.
62132         * lib/eealloc.h: Likewise.
62133         * lib/error.c: Likewise.
62134         * lib/error.h: Likewise.
62135         * lib/euidaccess.c: Likewise.
62136         * lib/exclude.c: Likewise.
62137         * lib/exclude.h: Likewise.
62138         * lib/execute.c: Likewise.
62139         * lib/execute.h: Likewise.
62140         * lib/exitfail.c: Likewise.
62141         * lib/exitfail.h: Likewise.
62142         * lib/expl.c: Likewise.
62143         * lib/fatal-signal.c: Likewise.
62144         * lib/fatal-signal.h: Likewise.
62145         * lib/fbufmode.c: Likewise.
62146         * lib/fbufmode.h: Likewise.
62147         * lib/fchdir.c: Likewise.
62148         * lib/fchmodat.c: Likewise.
62149         * lib/fchownat.c: Likewise.
62150         * lib/fcntl--.h: Likewise.
62151         * lib/fcntl-safer.h: Likewise.
62152         * lib/fcntl.in.h: Likewise.
62153         * lib/fd-safer.c: Likewise.
62154         * lib/fflush.c: Likewise.
62155         * lib/file-has-acl.c: Likewise.
62156         * lib/file-set.c: Likewise.
62157         * lib/file-type.c: Likewise.
62158         * lib/file-type.h: Likewise.
62159         * lib/fileblocks.c: Likewise.
62160         * lib/filemode.c: Likewise.
62161         * lib/filemode.h: Likewise.
62162         * lib/filename.h: Likewise.
62163         * lib/filenamecat.c: Likewise.
62164         * lib/filenamecat.h: Likewise.
62165         * lib/findprog.c: Likewise.
62166         * lib/findprog.h: Likewise.
62167         * lib/float.in.h: Likewise.
62168         * lib/floor.c: Likewise.
62169         * lib/floorf.c: Likewise.
62170         * lib/floorl.c: Likewise.
62171         * lib/fopen-safer.c: Likewise.
62172         * lib/fopen.c: Likewise.
62173         * lib/fpending.c: Likewise.
62174         * lib/fpending.h: Likewise.
62175         * lib/fprintf.c: Likewise.
62176         * lib/fprintftime.h: Likewise.
62177         * lib/fpucw.h: Likewise.
62178         * lib/fpurge.c: Likewise.
62179         * lib/fpurge.h: Likewise.
62180         * lib/freadable.c: Likewise.
62181         * lib/freadable.h: Likewise.
62182         * lib/freadahead.c: Likewise.
62183         * lib/freadahead.h: Likewise.
62184         * lib/freading.c: Likewise.
62185         * lib/freading.h: Likewise.
62186         * lib/free.c: Likewise.
62187         * lib/freopen.c: Likewise.
62188         * lib/frexp.c: Likewise.
62189         * lib/frexpl.c: Likewise.
62190         * lib/fseek.c: Likewise.
62191         * lib/fseterr.c: Likewise.
62192         * lib/fseterr.h: Likewise.
62193         * lib/fstatat.c: Likewise.
62194         * lib/fstrcmp.c: Likewise.
62195         * lib/fstrcmp.h: Likewise.
62196         * lib/fsusage.c: Likewise.
62197         * lib/fsusage.h: Likewise.
62198         * lib/ftell.c: Likewise.
62199         * lib/ftello.c: Likewise.
62200         * lib/fts-cycle.c: Likewise.
62201         * lib/fts.c: Likewise.
62202         * lib/fts_.h: Likewise.
62203         * lib/full-read.c: Likewise.
62204         * lib/full-read.h: Likewise.
62205         * lib/full-write.c: Likewise.
62206         * lib/full-write.h: Likewise.
62207         * lib/fwritable.c: Likewise.
62208         * lib/fwritable.h: Likewise.
62209         * lib/fwriteerror.c: Likewise.
62210         * lib/fwriteerror.h: Likewise.
62211         * lib/fwriting.c: Likewise.
62212         * lib/fwriting.h: Likewise.
62213         * lib/gcd.c: Likewise.
62214         * lib/gcd.h: Likewise.
62215         * lib/getcwd.c: Likewise.
62216         * lib/getdate.h: Likewise.
62217         * lib/getdate.y: Likewise.
62218         * lib/getdomainname.c: Likewise.
62219         * lib/getdomainname.h: Likewise.
62220         * lib/getgroups.c: Likewise.
62221         * lib/gethostname.c: Likewise.
62222         * lib/gethrxtime.c: Likewise.
62223         * lib/gethrxtime.h: Likewise.
62224         * lib/getloadavg.c: Likewise.
62225         * lib/getndelim2.c: Likewise.
62226         * lib/getndelim2.h: Likewise.
62227         * lib/getnline.c: Likewise.
62228         * lib/getnline.h: Likewise.
62229         * lib/getopt.c: Likewise.
62230         * lib/getopt.in.h: Likewise.
62231         * lib/getopt1.c: Likewise.
62232         * lib/getopt_int.h: Likewise.
62233         * lib/getpagesize.h: Likewise.
62234         * lib/getsubopt.c: Likewise.
62235         * lib/gettime.c: Likewise.
62236         * lib/getugroups.c: Likewise.
62237         * lib/getugroups.h: Likewise.
62238         * lib/getusershell.c: Likewise.
62239         * lib/gl_anyavltree_list1.h: Likewise.
62240         * lib/gl_anyavltree_list2.h: Likewise.
62241         * lib/gl_anyhash_list1.h: Likewise.
62242         * lib/gl_anyhash_list2.h: Likewise.
62243         * lib/gl_anylinked_list1.h: Likewise.
62244         * lib/gl_anylinked_list2.h: Likewise.
62245         * lib/gl_anyrbtree_list1.h: Likewise.
62246         * lib/gl_anyrbtree_list2.h: Likewise.
62247         * lib/gl_anytree_list1.h: Likewise.
62248         * lib/gl_anytree_list2.h: Likewise.
62249         * lib/gl_anytree_oset.h: Likewise.
62250         * lib/gl_anytreehash_list1.h: Likewise.
62251         * lib/gl_anytreehash_list2.h: Likewise.
62252         * lib/gl_array_list.c: Likewise.
62253         * lib/gl_array_list.h: Likewise.
62254         * lib/gl_array_oset.c: Likewise.
62255         * lib/gl_array_oset.h: Likewise.
62256         * lib/gl_avltree_list.c: Likewise.
62257         * lib/gl_avltree_list.h: Likewise.
62258         * lib/gl_avltree_oset.c: Likewise.
62259         * lib/gl_avltree_oset.h: Likewise.
62260         * lib/gl_avltreehash_list.c: Likewise.
62261         * lib/gl_avltreehash_list.h: Likewise.
62262         * lib/gl_carray_list.c: Likewise.
62263         * lib/gl_carray_list.h: Likewise.
62264         * lib/gl_linked_list.c: Likewise.
62265         * lib/gl_linked_list.h: Likewise.
62266         * lib/gl_linkedhash_list.c: Likewise.
62267         * lib/gl_linkedhash_list.h: Likewise.
62268         * lib/gl_list.c: Likewise.
62269         * lib/gl_list.h: Likewise.
62270         * lib/gl_oset.c: Likewise.
62271         * lib/gl_oset.h: Likewise.
62272         * lib/gl_rbtree_list.c: Likewise.
62273         * lib/gl_rbtree_list.h: Likewise.
62274         * lib/gl_rbtree_oset.c: Likewise.
62275         * lib/gl_rbtree_oset.h: Likewise.
62276         * lib/gl_rbtreehash_list.c: Likewise.
62277         * lib/gl_rbtreehash_list.h: Likewise.
62278         * lib/gl_sublist.c: Likewise.
62279         * lib/gl_sublist.h: Likewise.
62280         * lib/group-member.c: Likewise.
62281         * lib/group-member.h: Likewise.
62282         * lib/hard-locale.c: Likewise.
62283         * lib/hard-locale.h: Likewise.
62284         * lib/hash-pjw.c: Likewise.
62285         * lib/hash-pjw.h: Likewise.
62286         * lib/hash-triple.c: Likewise.
62287         * lib/hash.c: Likewise.
62288         * lib/hash.h: Likewise.
62289         * lib/human.c: Likewise.
62290         * lib/human.h: Likewise.
62291         * lib/i-ring.c: Likewise.
62292         * lib/i-ring.h: Likewise.
62293         * lib/idcache.c: Likewise.
62294         * lib/imaxabs.c: Likewise.
62295         * lib/imaxdiv.c: Likewise.
62296         * lib/inet_pton.c: Likewise.
62297         * lib/inet_pton.h: Likewise.
62298         * lib/intprops.h: Likewise.
62299         * lib/inttostr.c: Likewise.
62300         * lib/inttostr.h: Likewise.
62301         * lib/inttypes.in.h: Likewise.
62302         * lib/isapipe.c: Likewise.
62303         * lib/isdir.c: Likewise.
62304         * lib/isnan.c: Likewise.
62305         * lib/isnan.h: Likewise.
62306         * lib/isnanf.c: Likewise.
62307         * lib/isnanf.h: Likewise.
62308         * lib/isnanl-nolibm.h: Likewise.
62309         * lib/isnanl.c: Likewise.
62310         * lib/isnanl.h: Likewise.
62311         * lib/javacomp.c: Likewise.
62312         * lib/javacomp.h: Likewise.
62313         * lib/javaexec.c: Likewise.
62314         * lib/javaexec.h: Likewise.
62315         * lib/javaversion.c: Likewise.
62316         * lib/javaversion.h: Likewise.
62317         * lib/javaversion.java: Likewise.
62318         * lib/lbrkprop.h: Likewise.
62319         * lib/lchmod.h: Likewise.
62320         * lib/lchown.c: Likewise.
62321         * lib/ldexpl.c: Likewise.
62322         * lib/linebreak.c: Likewise.
62323         * lib/linebreak.h: Likewise.
62324         * lib/linebuffer.c: Likewise.
62325         * lib/linebuffer.h: Likewise.
62326         * lib/locale.in.h: Likewise.
62327         * lib/logl.c: Likewise.
62328         * lib/long-options.c: Likewise.
62329         * lib/long-options.h: Likewise.
62330         * lib/lstat.c: Likewise.
62331         * lib/lstat.h: Likewise.
62332         * lib/math.in.h: Likewise.
62333         * lib/mbchar.c: Likewise.
62334         * lib/mbchar.h: Likewise.
62335         * lib/mbfile.h: Likewise.
62336         * lib/mbiter.h: Likewise.
62337         * lib/mbscasecmp.c: Likewise.
62338         * lib/mbscasestr.c: Likewise.
62339         * lib/mbschr.c: Likewise.
62340         * lib/mbscspn.c: Likewise.
62341         * lib/mbslen.c: Likewise.
62342         * lib/mbsncasecmp.c: Likewise.
62343         * lib/mbsnlen.c: Likewise.
62344         * lib/mbspbrk.c: Likewise.
62345         * lib/mbspcasecmp.c: Likewise.
62346         * lib/mbsrchr.c: Likewise.
62347         * lib/mbssep.c: Likewise.
62348         * lib/mbsspn.c: Likewise.
62349         * lib/mbsstr.c: Likewise.
62350         * lib/mbstok_r.c: Likewise.
62351         * lib/mbswidth.c: Likewise.
62352         * lib/mbswidth.h: Likewise.
62353         * lib/mbuiter.h: Likewise.
62354         * lib/memcasecmp.c: Likewise.
62355         * lib/memcasecmp.h: Likewise.
62356         * lib/memchr.c: Likewise.
62357         * lib/memcmp.c: Likewise.
62358         * lib/memcoll.c: Likewise.
62359         * lib/memcoll.h: Likewise.
62360         * lib/memcpy.c: Likewise.
62361         * lib/memrchr.c: Likewise.
62362         * lib/mkancesdirs.c: Likewise.
62363         * lib/mkdir-p.c: Likewise.
62364         * lib/mkdir-p.h: Likewise.
62365         * lib/mkdir.c: Likewise.
62366         * lib/mkdirat.c: Likewise.
62367         * lib/mkdtemp.c: Likewise.
62368         * lib/mkstemp-safer.c: Likewise.
62369         * lib/mkstemp.c: Likewise.
62370         * lib/modechange.c: Likewise.
62371         * lib/modechange.h: Likewise.
62372         * lib/mountlist.c: Likewise.
62373         * lib/mountlist.h: Likewise.
62374         * lib/mpsort.c: Likewise.
62375         * lib/nanosleep.c: Likewise.
62376         * lib/obstack.c: Likewise.
62377         * lib/obstack.h: Likewise.
62378         * lib/open-safer.c: Likewise.
62379         * lib/open.c: Likewise.
62380         * lib/openat-die.c: Likewise.
62381         * lib/openat-priv.h: Likewise.
62382         * lib/openat-proc.c: Likewise.
62383         * lib/openat.c: Likewise.
62384         * lib/openat.h: Likewise.
62385         * lib/pagealign_alloc.c: Likewise.
62386         * lib/pagealign_alloc.h: Likewise.
62387         * lib/physmem.c: Likewise.
62388         * lib/physmem.h: Likewise.
62389         * lib/pipe-safer.c: Likewise.
62390         * lib/pipe.c: Likewise.
62391         * lib/pipe.h: Likewise.
62392         * lib/posixtm.c: Likewise.
62393         * lib/posixtm.h: Likewise.
62394         * lib/posixver.c: Likewise.
62395         * lib/printf-frexp.c: Likewise.
62396         * lib/printf-frexp.h: Likewise.
62397         * lib/printf-frexpl.c: Likewise.
62398         * lib/printf-frexpl.h: Likewise.
62399         * lib/printf.c: Likewise.
62400         * lib/progname.c: Likewise.
62401         * lib/progname.h: Likewise.
62402         * lib/progreloc.c: Likewise.
62403         * lib/putenv.c: Likewise.
62404         * lib/quote.c: Likewise.
62405         * lib/quote.h: Likewise.
62406         * lib/quotearg.c: Likewise.
62407         * lib/quotearg.h: Likewise.
62408         * lib/raise.c: Likewise.
62409         * lib/readline.c: Likewise.
62410         * lib/readline.h: Likewise.
62411         * lib/readlink.c: Likewise.
62412         * lib/readtokens.c: Likewise.
62413         * lib/readtokens.h: Likewise.
62414         * lib/readtokens0.c: Likewise.
62415         * lib/readtokens0.h: Likewise.
62416         * lib/readutmp.c: Likewise.
62417         * lib/readutmp.h: Likewise.
62418         * lib/realloc.c: Likewise.
62419         * lib/relocwrapper.c: Likewise.
62420         * lib/rename-dest-slash.c: Likewise.
62421         * lib/rename.c: Likewise.
62422         * lib/rmdir.c: Likewise.
62423         * lib/rpmatch.c: Likewise.
62424         * lib/safe-read.c: Likewise.
62425         * lib/safe-read.h: Likewise.
62426         * lib/safe-write.c: Likewise.
62427         * lib/safe-write.h: Likewise.
62428         * lib/same-inode.h: Likewise.
62429         * lib/same.c: Likewise.
62430         * lib/same.h: Likewise.
62431         * lib/save-cwd.c: Likewise.
62432         * lib/save-cwd.h: Likewise.
62433         * lib/savedir.c: Likewise.
62434         * lib/savedir.h: Likewise.
62435         * lib/savewd.c: Likewise.
62436         * lib/savewd.h: Likewise.
62437         * lib/search.in.h: Likewise.
62438         * lib/setenv.c: Likewise.
62439         * lib/setenv.h: Likewise.
62440         * lib/settime.c: Likewise.
62441         * lib/sh-quote.c: Likewise.
62442         * lib/sh-quote.h: Likewise.
62443         * lib/sig2str.c: Likewise.
62444         * lib/sig2str.h: Likewise.
62445         * lib/signal.in.h: Likewise.
62446         * lib/signbitd.c: Likewise.
62447         * lib/signbitf.c: Likewise.
62448         * lib/signbitl.c: Likewise.
62449         * lib/sigprocmask.c: Likewise.
62450         * lib/sincosl.c: Likewise.
62451         * lib/sleep.c: Likewise.
62452         * lib/sprintf.c: Likewise.
62453         * lib/sqrtl.c: Likewise.
62454         * lib/stat-time.h: Likewise.
62455         * lib/stdio--.h: Likewise.
62456         * lib/stdio-safer.h: Likewise.
62457         * lib/stdlib--.h: Likewise.
62458         * lib/stdlib-safer.h: Likewise.
62459         * lib/stdlib.in.h: Likewise.
62460         * lib/stpcpy.c: Likewise.
62461         * lib/stpncpy.c: Likewise.
62462         * lib/strchrnul.c: Likewise.
62463         * lib/strcspn.c: Likewise.
62464         * lib/strerror.c: Likewise.
62465         * lib/strftime.c: Likewise.
62466         * lib/strftime.h: Likewise.
62467         * lib/striconveh.c: Likewise.
62468         * lib/striconveh.h: Likewise.
62469         * lib/striconveha.c: Likewise.
62470         * lib/striconveha.h: Likewise.
62471         * lib/stripslash.c: Likewise.
62472         * lib/strnlen1.c: Likewise.
62473         * lib/strnlen1.h: Likewise.
62474         * lib/strtod.c: Likewise.
62475         * lib/strtoimax.c: Likewise.
62476         * lib/strtok_r.c: Likewise.
62477         * lib/strtol.c: Likewise.
62478         * lib/strtoll.c: Likewise.
62479         * lib/strtoul.c: Likewise.
62480         * lib/strtoull.c: Likewise.
62481         * lib/sysexits.in.h: Likewise.
62482         * lib/tempname.c: Likewise.
62483         * lib/tempname.h: Likewise.
62484         * lib/timespec.h: Likewise.
62485         * lib/tls.c: Likewise.
62486         * lib/tls.h: Likewise.
62487         * lib/tmpdir.c: Likewise.
62488         * lib/tmpdir.h: Likewise.
62489         * lib/tmpfile-safer.c: Likewise.
62490         * lib/tmpfile.c: Likewise.
62491         * lib/trigl.c: Likewise.
62492         * lib/trigl.h: Likewise.
62493         * lib/trim.c: Likewise.
62494         * lib/trim.h: Likewise.
62495         * lib/trunc.c: Likewise.
62496         * lib/truncf.c: Likewise.
62497         * lib/truncl.c: Likewise.
62498         * lib/tsearch.c: Likewise.
62499         * lib/unicodeio.c: Likewise.
62500         * lib/unicodeio.h: Likewise.
62501         * lib/unistd--.h: Likewise.
62502         * lib/unistd-safer.h: Likewise.
62503         * lib/unistdio/ulc-fprintf.c: Likewise.
62504         * lib/unistdio/ulc-vfprintf.c: Likewise.
62505         * lib/unlinkdir.c: Likewise.
62506         * lib/unlinkdir.h: Likewise.
62507         * lib/unlocked-io.h: Likewise.
62508         * lib/unsetenv.c: Likewise.
62509         * lib/userspec.c: Likewise.
62510         * lib/utime.c: Likewise.
62511         * lib/utimecmp.c: Likewise.
62512         * lib/utimecmp.h: Likewise.
62513         * lib/utimens.c: Likewise.
62514         * lib/verify.h: Likewise.
62515         * lib/verror.c: Likewise.
62516         * lib/verror.h: Likewise.
62517         * lib/version-etc-fsf.c: Likewise.
62518         * lib/version-etc.c: Likewise.
62519         * lib/version-etc.h: Likewise.
62520         * lib/vfprintf.c: Likewise.
62521         * lib/vprintf.c: Likewise.
62522         * lib/vsprintf.c: Likewise.
62523         * lib/w32spawn.h: Likewise.
62524         * lib/wait-process.c: Likewise.
62525         * lib/wait-process.h: Likewise.
62526         * lib/wcwidth.c: Likewise.
62527         * lib/write-any-file.c: Likewise.
62528         * lib/xalloc-die.c: Likewise.
62529         * lib/xalloc.h: Likewise.
62530         * lib/xasprintf.c: Likewise.
62531         * lib/xgetcwd.c: Likewise.
62532         * lib/xgetcwd.h: Likewise.
62533         * lib/xgetdomainname.c: Likewise.
62534         * lib/xgetdomainname.h: Likewise.
62535         * lib/xgethostname.c: Likewise.
62536         * lib/xmalloc.c: Likewise.
62537         * lib/xmalloca.c: Likewise.
62538         * lib/xmalloca.h: Likewise.
62539         * lib/xmemcoll.c: Likewise.
62540         * lib/xnanosleep.c: Likewise.
62541         * lib/xreadlink.c: Likewise.
62542         * lib/xreadlink.h: Likewise.
62543         * lib/xsetenv.c: Likewise.
62544         * lib/xsetenv.h: Likewise.
62545         * lib/xstriconv.c: Likewise.
62546         * lib/xstriconv.h: Likewise.
62547         * lib/xstrndup.c: Likewise.
62548         * lib/xstrndup.h: Likewise.
62549         * lib/xstrtod.c: Likewise.
62550         * lib/xstrtod.h: Likewise.
62551         * lib/xstrtol-error.c: Likewise.
62552         * lib/xstrtol.c: Likewise.
62553         * lib/xstrtol.h: Likewise.
62554         * lib/xtime.h: Likewise.
62555         * lib/xvasprintf.c: Likewise.
62556         * lib/xvasprintf.h: Likewise.
62557         * lib/yesno.c: Likewise.
62558         * lib/yesno.h: Likewise.
62559         * posix-modules: Likewise.
62560         * tests/test-alloca-opt.c: Likewise.
62561         * tests/test-arcfour.c: Likewise.
62562         * tests/test-arctwo.c: Likewise.
62563         * tests/test-argmatch.c: Likewise.
62564         * tests/test-argp-2.sh: Likewise.
62565         * tests/test-argp.c: Likewise.
62566         * tests/test-arpa_inet.c: Likewise.
62567         * tests/test-array_list.c: Likewise.
62568         * tests/test-array_oset.c: Likewise.
62569         * tests/test-atexit.c: Likewise.
62570         * tests/test-avltree_list.c: Likewise.
62571         * tests/test-avltree_oset.c: Likewise.
62572         * tests/test-avltreehash_list.c: Likewise.
62573         * tests/test-base64.c: Likewise.
62574         * tests/test-binary-io.c: Likewise.
62575         * tests/test-byteswap.c: Likewise.
62576         * tests/test-c-ctype.c: Likewise.
62577         * tests/test-c-strcasecmp.c: Likewise.
62578         * tests/test-c-strcasestr.c: Likewise.
62579         * tests/test-c-strncasecmp.c: Likewise.
62580         * tests/test-c-strstr.c: Likewise.
62581         * tests/test-canonicalize-lgpl.c: Likewise.
62582         * tests/test-canonicalize.c: Likewise.
62583         * tests/test-carray_list.c: Likewise.
62584         * tests/test-ceilf.c: Likewise.
62585         * tests/test-ceill.c: Likewise.
62586         * tests/test-count-one-bits.c: Likewise.
62587         * tests/test-crc.c: Likewise.
62588         * tests/test-dirname.c: Likewise.
62589         * tests/test-fbufmode.c: Likewise.
62590         * tests/test-fcntl.c: Likewise.
62591         * tests/test-fflush.c: Likewise.
62592         * tests/test-floorf.c: Likewise.
62593         * tests/test-floorl.c: Likewise.
62594         * tests/test-fopen.c: Likewise.
62595         * tests/test-fprintf-posix.c: Likewise.
62596         * tests/test-fprintf-posix.h: Likewise.
62597         * tests/test-fpurge.c: Likewise.
62598         * tests/test-freadable.c: Likewise.
62599         * tests/test-freadahead.c: Likewise.
62600         * tests/test-freading.c: Likewise.
62601         * tests/test-freopen.c: Likewise.
62602         * tests/test-frexp.c: Likewise.
62603         * tests/test-frexpl.c: Likewise.
62604         * tests/test-fseek.c: Likewise.
62605         * tests/test-fseeko.c: Likewise.
62606         * tests/test-fseterr.c: Likewise.
62607         * tests/test-fstrcmp.c: Likewise.
62608         * tests/test-ftell.c: Likewise.
62609         * tests/test-ftello.c: Likewise.
62610         * tests/test-fwritable.c: Likewise.
62611         * tests/test-fwriting.c: Likewise.
62612         * tests/test-getaddrinfo.c: Likewise.
62613         * tests/test-getpass.c: Likewise.
62614         * tests/test-gettimeofday.c: Likewise.
62615         * tests/test-hmac-md5.c: Likewise.
62616         * tests/test-hmac-sha1.c: Likewise.
62617         * tests/test-iconv.c: Likewise.
62618         * tests/test-iconvme.c: Likewise.
62619         * tests/test-inttypes.c: Likewise.
62620         * tests/test-isnan.c: Likewise.
62621         * tests/test-isnanf.c: Likewise.
62622         * tests/test-isnanl-nolibm.c: Likewise.
62623         * tests/test-isnanl.c: Likewise.
62624         * tests/test-isnanl.h: Likewise.
62625         * tests/test-ldexpl.c: Likewise.
62626         * tests/test-linked_list.c: Likewise.
62627         * tests/test-linkedhash_list.c: Likewise.
62628         * tests/test-locale.c: Likewise.
62629         * tests/test-localename.c: Likewise.
62630         * tests/test-lock.c: Likewise.
62631         * tests/test-lseek.c: Likewise.
62632         * tests/test-malloca.c: Likewise.
62633         * tests/test-math.c: Likewise.
62634         * tests/test-mbscasecmp.c: Likewise.
62635         * tests/test-mbscasestr1.c: Likewise.
62636         * tests/test-mbscasestr2.c: Likewise.
62637         * tests/test-mbscasestr3.c: Likewise.
62638         * tests/test-mbscasestr4.c: Likewise.
62639         * tests/test-mbschr.c: Likewise.
62640         * tests/test-mbscspn.c: Likewise.
62641         * tests/test-mbsncasecmp.c: Likewise.
62642         * tests/test-mbspbrk.c: Likewise.
62643         * tests/test-mbspcasecmp.c: Likewise.
62644         * tests/test-mbsrchr.c: Likewise.
62645         * tests/test-mbsspn.c: Likewise.
62646         * tests/test-mbsstr1.c: Likewise.
62647         * tests/test-mbsstr2.c: Likewise.
62648         * tests/test-mbsstr3.c: Likewise.
62649         * tests/test-md5.c: Likewise.
62650         * tests/test-memmem.c: Likewise.
62651         * tests/test-netinet_in.c: Likewise.
62652         * tests/test-open.c: Likewise.
62653         * tests/test-printf-frexp.c: Likewise.
62654         * tests/test-printf-frexpl.c: Likewise.
62655         * tests/test-printf-posix.c: Likewise.
62656         * tests/test-printf-posix.h: Likewise.
62657         * tests/test-rbtree_list.c: Likewise.
62658         * tests/test-rbtree_oset.c: Likewise.
62659         * tests/test-rbtreehash_list.c: Likewise.
62660         * tests/test-read-file.c: Likewise.
62661         * tests/test-rijndael.c: Likewise.
62662         * tests/test-search.c: Likewise.
62663         * tests/test-signbit.c: Likewise.
62664         * tests/test-sleep.c: Likewise.
62665         * tests/test-snprintf-posix.c: Likewise.
62666         * tests/test-snprintf-posix.h: Likewise.
62667         * tests/test-snprintf.c: Likewise.
62668         * tests/test-sprintf-posix.c: Likewise.
62669         * tests/test-sprintf-posix.h: Likewise.
62670         * tests/test-stat-time.c: Likewise.
62671         * tests/test-stdbool.c: Likewise.
62672         * tests/test-stdint.c: Likewise.
62673         * tests/test-stdio.c: Likewise.
62674         * tests/test-stdlib.c: Likewise.
62675         * tests/test-stpncpy.c: Likewise.
62676         * tests/test-strcasestr.c: Likewise.
62677         * tests/test-striconv.c: Likewise.
62678         * tests/test-striconveh.c: Likewise.
62679         * tests/test-striconveha.c: Likewise.
62680         * tests/test-string.c: Likewise.
62681         * tests/test-sys_select.c: Likewise.
62682         * tests/test-sys_socket.c: Likewise.
62683         * tests/test-sys_stat.c: Likewise.
62684         * tests/test-sys_time.c: Likewise.
62685         * tests/test-sysexits.c: Likewise.
62686         * tests/test-time.c: Likewise.
62687         * tests/test-tls.c: Likewise.
62688         * tests/test-trunc.c: Likewise.
62689         * tests/test-truncf.c: Likewise.
62690         * tests/test-truncl.c: Likewise.
62691         * tests/test-unistd.c: Likewise.
62692         * tests/test-vasnprintf-posix.c: Likewise.
62693         * tests/test-vasnprintf-posix2.c: Likewise.
62694         * tests/test-vasnprintf.c: Likewise.
62695         * tests/test-vasprintf-posix.c: Likewise.
62696         * tests/test-vasprintf.c: Likewise.
62697         * tests/test-verify.c: Likewise.
62698         * tests/test-vfprintf-posix.c: Likewise.
62699         * tests/test-vprintf-posix.c: Likewise.
62700         * tests/test-vsnprintf-posix.c: Likewise.
62701         * tests/test-vsnprintf.c: Likewise.
62702         * tests/test-vsprintf-posix.c: Likewise.
62703         * tests/test-wchar.c: Likewise.
62704         * tests/test-wctype.c: Likewise.
62705         * tests/test-wcwidth.c: Likewise.
62706         * tests/test-xstrtol.c: Likewise.
62707         * tests/test-xvasprintf.c: Likewise.
62708         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62709         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62710         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62711         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62712         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62713         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62714         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62715         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62716         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62717         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62718         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62719         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62720         * tests/uniname/test-uninames.c: Likewise.
62721         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62722         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62723         * tests/unistdio/test-u16-printf1.h: Likewise.
62724         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62725         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62726         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62727         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62728         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62729         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62730         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62731         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62732         * tests/unistdio/test-u32-printf1.h: Likewise.
62733         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62734         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62735         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62736         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62737         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62738         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62739         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62740         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62741         * tests/unistdio/test-u8-printf1.h: Likewise.
62742         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62743         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62744         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62745         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62746         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62747         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62748         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62749         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62750         * tests/unistdio/test-ulc-printf1.h: Likewise.
62751         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62752         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62753         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62754         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62755         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62756         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62757         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62758         * tests/uniwidth/test-u16-width.c: Likewise.
62759         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62760         * tests/uniwidth/test-u32-width.c: Likewise.
62761         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62762         * tests/uniwidth/test-u8-width.c: Likewise.
62763         * tests/uniwidth/test-uc_width.c: Likewise.
62764         * config/srclist-update: Likewise.
62765         (fixlicense): Update to GPLv3+.
62766
62767         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62768         * tests/test-tsearch.c: Change copyright notice.
62769
62770         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62771         * lib/c-strcaseeq.h: Change copyright notice.
62772         * lib/streq.h: Likewise.
62773         * lib/uniconv.h: Likewise.
62774         * lib/uniconv/u-conv-from-enc.h: Likewise.
62775         * lib/uniconv/u-conv-to-enc.h: Likewise.
62776         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62777         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62778         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62779         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62780         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62781         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62782         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62783         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62784         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62785         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62786         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62787         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62788         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62789         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62790         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62791         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62792         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62793         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62794         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62795         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62796         * lib/uniname.h: Likewise.
62797         * lib/uniname/uniname.c: Likewise.
62798         * lib/unistdio.h: Likewise.
62799         * lib/unistdio/u-asnprintf.h: Likewise.
62800         * lib/unistdio/u-asprintf.h: Likewise.
62801         * lib/unistdio/u-printf-args.c: Likewise.
62802         * lib/unistdio/u-printf-args.h: Likewise.
62803         * lib/unistdio/u-printf-parse.h: Likewise.
62804         * lib/unistdio/u-snprintf.h: Likewise.
62805         * lib/unistdio/u-sprintf.h: Likewise.
62806         * lib/unistdio/u-vasprintf.h: Likewise.
62807         * lib/unistdio/u-vsnprintf.h: Likewise.
62808         * lib/unistdio/u-vsprintf.h: Likewise.
62809         * lib/unistdio/u16-asnprintf.c: Likewise.
62810         * lib/unistdio/u16-asprintf.c: Likewise.
62811         * lib/unistdio/u16-printf-parse.c: Likewise.
62812         * lib/unistdio/u16-snprintf.c: Likewise.
62813         * lib/unistdio/u16-sprintf.c: Likewise.
62814         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62815         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62816         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62817         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62818         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62819         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62820         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62821         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62822         * lib/unistdio/u16-vasnprintf.c: Likewise.
62823         * lib/unistdio/u16-vasprintf.c: Likewise.
62824         * lib/unistdio/u16-vsnprintf.c: Likewise.
62825         * lib/unistdio/u16-vsprintf.c: Likewise.
62826         * lib/unistdio/u32-asnprintf.c: Likewise.
62827         * lib/unistdio/u32-asprintf.c: Likewise.
62828         * lib/unistdio/u32-printf-parse.c: Likewise.
62829         * lib/unistdio/u32-snprintf.c: Likewise.
62830         * lib/unistdio/u32-sprintf.c: Likewise.
62831         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62832         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62833         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62834         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62835         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62836         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62837         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62838         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62839         * lib/unistdio/u32-vasnprintf.c: Likewise.
62840         * lib/unistdio/u32-vasprintf.c: Likewise.
62841         * lib/unistdio/u32-vsnprintf.c: Likewise.
62842         * lib/unistdio/u32-vsprintf.c: Likewise.
62843         * lib/unistdio/u8-asnprintf.c: Likewise.
62844         * lib/unistdio/u8-asprintf.c: Likewise.
62845         * lib/unistdio/u8-printf-parse.c: Likewise.
62846         * lib/unistdio/u8-snprintf.c: Likewise.
62847         * lib/unistdio/u8-sprintf.c: Likewise.
62848         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62849         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62850         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62851         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62852         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62853         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62854         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62855         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62856         * lib/unistdio/u8-vasnprintf.c: Likewise.
62857         * lib/unistdio/u8-vasprintf.c: Likewise.
62858         * lib/unistdio/u8-vsnprintf.c: Likewise.
62859         * lib/unistdio/u8-vsprintf.c: Likewise.
62860         * lib/unistdio/ulc-asnprintf.c: Likewise.
62861         * lib/unistdio/ulc-asprintf.c: Likewise.
62862         * lib/unistdio/ulc-printf-parse.c: Likewise.
62863         * lib/unistdio/ulc-snprintf.c: Likewise.
62864         * lib/unistdio/ulc-sprintf.c: Likewise.
62865         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62866         * lib/unistdio/ulc-vasprintf.c: Likewise.
62867         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62868         * lib/unistdio/ulc-vsprintf.c: Likewise.
62869         * lib/unistr.h: Likewise.
62870         * lib/unistr/u-cpy-alloc.h: Likewise.
62871         * lib/unistr/u-cpy.h: Likewise.
62872         * lib/unistr/u-endswith.h: Likewise.
62873         * lib/unistr/u-move.h: Likewise.
62874         * lib/unistr/u-set.h: Likewise.
62875         * lib/unistr/u-startswith.h: Likewise.
62876         * lib/unistr/u-stpcpy.h: Likewise.
62877         * lib/unistr/u-stpncpy.h: Likewise.
62878         * lib/unistr/u-strcat.h: Likewise.
62879         * lib/unistr/u-strcpy.h: Likewise.
62880         * lib/unistr/u-strcspn.h: Likewise.
62881         * lib/unistr/u-strdup.h: Likewise.
62882         * lib/unistr/u-strlen.h: Likewise.
62883         * lib/unistr/u-strncat.h: Likewise.
62884         * lib/unistr/u-strncpy.h: Likewise.
62885         * lib/unistr/u-strnlen.h: Likewise.
62886         * lib/unistr/u-strpbrk.h: Likewise.
62887         * lib/unistr/u-strspn.h: Likewise.
62888         * lib/unistr/u-strstr.h: Likewise.
62889         * lib/unistr/u-strtok.h: Likewise.
62890         * lib/unistr/u16-check.c: Likewise.
62891         * lib/unistr/u16-chr.c: Likewise.
62892         * lib/unistr/u16-cmp.c: Likewise.
62893         * lib/unistr/u16-cpy-alloc.c: Likewise.
62894         * lib/unistr/u16-cpy.c: Likewise.
62895         * lib/unistr/u16-endswith.c: Likewise.
62896         * lib/unistr/u16-mblen.c: Likewise.
62897         * lib/unistr/u16-mbsnlen.c: Likewise.
62898         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62899         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62900         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62901         * lib/unistr/u16-mbtouc.c: Likewise.
62902         * lib/unistr/u16-mbtoucr.c: Likewise.
62903         * lib/unistr/u16-move.c: Likewise.
62904         * lib/unistr/u16-next.c: Likewise.
62905         * lib/unistr/u16-prev.c: Likewise.
62906         * lib/unistr/u16-set.c: Likewise.
62907         * lib/unistr/u16-startswith.c: Likewise.
62908         * lib/unistr/u16-stpcpy.c: Likewise.
62909         * lib/unistr/u16-stpncpy.c: Likewise.
62910         * lib/unistr/u16-strcat.c: Likewise.
62911         * lib/unistr/u16-strchr.c: Likewise.
62912         * lib/unistr/u16-strcmp.c: Likewise.
62913         * lib/unistr/u16-strcpy.c: Likewise.
62914         * lib/unistr/u16-strcspn.c: Likewise.
62915         * lib/unistr/u16-strdup.c: Likewise.
62916         * lib/unistr/u16-strlen.c: Likewise.
62917         * lib/unistr/u16-strmblen.c: Likewise.
62918         * lib/unistr/u16-strmbtouc.c: Likewise.
62919         * lib/unistr/u16-strncat.c: Likewise.
62920         * lib/unistr/u16-strncmp.c: Likewise.
62921         * lib/unistr/u16-strncpy.c: Likewise.
62922         * lib/unistr/u16-strnlen.c: Likewise.
62923         * lib/unistr/u16-strpbrk.c: Likewise.
62924         * lib/unistr/u16-strrchr.c: Likewise.
62925         * lib/unistr/u16-strspn.c: Likewise.
62926         * lib/unistr/u16-strstr.c: Likewise.
62927         * lib/unistr/u16-strtok.c: Likewise.
62928         * lib/unistr/u16-to-u32.c: Likewise.
62929         * lib/unistr/u16-to-u8.c: Likewise.
62930         * lib/unistr/u16-uctomb-aux.c: Likewise.
62931         * lib/unistr/u16-uctomb.c: Likewise.
62932         * lib/unistr/u32-check.c: Likewise.
62933         * lib/unistr/u32-chr.c: Likewise.
62934         * lib/unistr/u32-cmp.c: Likewise.
62935         * lib/unistr/u32-cpy-alloc.c: Likewise.
62936         * lib/unistr/u32-cpy.c: Likewise.
62937         * lib/unistr/u32-endswith.c: Likewise.
62938         * lib/unistr/u32-mblen.c: Likewise.
62939         * lib/unistr/u32-mbsnlen.c: Likewise.
62940         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62941         * lib/unistr/u32-mbtouc.c: Likewise.
62942         * lib/unistr/u32-mbtoucr.c: Likewise.
62943         * lib/unistr/u32-move.c: Likewise.
62944         * lib/unistr/u32-next.c: Likewise.
62945         * lib/unistr/u32-prev.c: Likewise.
62946         * lib/unistr/u32-set.c: Likewise.
62947         * lib/unistr/u32-startswith.c: Likewise.
62948         * lib/unistr/u32-stpcpy.c: Likewise.
62949         * lib/unistr/u32-stpncpy.c: Likewise.
62950         * lib/unistr/u32-strcat.c: Likewise.
62951         * lib/unistr/u32-strchr.c: Likewise.
62952         * lib/unistr/u32-strcmp.c: Likewise.
62953         * lib/unistr/u32-strcpy.c: Likewise.
62954         * lib/unistr/u32-strcspn.c: Likewise.
62955         * lib/unistr/u32-strdup.c: Likewise.
62956         * lib/unistr/u32-strlen.c: Likewise.
62957         * lib/unistr/u32-strmblen.c: Likewise.
62958         * lib/unistr/u32-strmbtouc.c: Likewise.
62959         * lib/unistr/u32-strncat.c: Likewise.
62960         * lib/unistr/u32-strncmp.c: Likewise.
62961         * lib/unistr/u32-strncpy.c: Likewise.
62962         * lib/unistr/u32-strnlen.c: Likewise.
62963         * lib/unistr/u32-strpbrk.c: Likewise.
62964         * lib/unistr/u32-strrchr.c: Likewise.
62965         * lib/unistr/u32-strspn.c: Likewise.
62966         * lib/unistr/u32-strstr.c: Likewise.
62967         * lib/unistr/u32-strtok.c: Likewise.
62968         * lib/unistr/u32-to-u16.c: Likewise.
62969         * lib/unistr/u32-to-u8.c: Likewise.
62970         * lib/unistr/u32-uctomb.c: Likewise.
62971         * lib/unistr/u8-check.c: Likewise.
62972         * lib/unistr/u8-chr.c: Likewise.
62973         * lib/unistr/u8-cmp.c: Likewise.
62974         * lib/unistr/u8-cpy-alloc.c: Likewise.
62975         * lib/unistr/u8-cpy.c: Likewise.
62976         * lib/unistr/u8-endswith.c: Likewise.
62977         * lib/unistr/u8-mblen.c: Likewise.
62978         * lib/unistr/u8-mbsnlen.c: Likewise.
62979         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62980         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62981         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62982         * lib/unistr/u8-mbtouc.c: Likewise.
62983         * lib/unistr/u8-mbtoucr.c: Likewise.
62984         * lib/unistr/u8-move.c: Likewise.
62985         * lib/unistr/u8-next.c: Likewise.
62986         * lib/unistr/u8-prev.c: Likewise.
62987         * lib/unistr/u8-set.c: Likewise.
62988         * lib/unistr/u8-startswith.c: Likewise.
62989         * lib/unistr/u8-stpcpy.c: Likewise.
62990         * lib/unistr/u8-stpncpy.c: Likewise.
62991         * lib/unistr/u8-strcat.c: Likewise.
62992         * lib/unistr/u8-strchr.c: Likewise.
62993         * lib/unistr/u8-strcmp.c: Likewise.
62994         * lib/unistr/u8-strcpy.c: Likewise.
62995         * lib/unistr/u8-strcspn.c: Likewise.
62996         * lib/unistr/u8-strdup.c: Likewise.
62997         * lib/unistr/u8-strlen.c: Likewise.
62998         * lib/unistr/u8-strmblen.c: Likewise.
62999         * lib/unistr/u8-strmbtouc.c: Likewise.
63000         * lib/unistr/u8-strncat.c: Likewise.
63001         * lib/unistr/u8-strncmp.c: Likewise.
63002         * lib/unistr/u8-strncpy.c: Likewise.
63003         * lib/unistr/u8-strnlen.c: Likewise.
63004         * lib/unistr/u8-strpbrk.c: Likewise.
63005         * lib/unistr/u8-strrchr.c: Likewise.
63006         * lib/unistr/u8-strspn.c: Likewise.
63007         * lib/unistr/u8-strstr.c: Likewise.
63008         * lib/unistr/u8-strtok.c: Likewise.
63009         * lib/unistr/u8-to-u16.c: Likewise.
63010         * lib/unistr/u8-to-u32.c: Likewise.
63011         * lib/unistr/u8-uctomb-aux.c: Likewise.
63012         * lib/unistr/u8-uctomb.c: Likewise.
63013         * lib/unitypes.h: Likewise.
63014         * lib/uniwidth.h: Likewise.
63015         * lib/uniwidth/cjk.h: Likewise.
63016         * lib/uniwidth/u16-strwidth.c: Likewise.
63017         * lib/uniwidth/u16-width.c: Likewise.
63018         * lib/uniwidth/u32-strwidth.c: Likewise.
63019         * lib/uniwidth/u32-width.c: Likewise.
63020         * lib/uniwidth/u8-strwidth.c: Likewise.
63021         * lib/uniwidth/u8-width.c: Likewise.
63022         * lib/uniwidth/width.c: Likewise.
63023
63024 2007-10-07  Bruno Haible  <bruno@clisp.org>
63025
63026         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63027         The file is still under LGPL (see modules/inttypes).
63028
63029 2007-10-06  Bruno Haible  <bruno@clisp.org>
63030
63031         * modules/trunc (Dependencies): Add 'extensions'.
63032         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63033         Reported by Ben Pfaff <blp@gnu.org>.
63034
63035 2007-10-06  Bruno Haible  <bruno@clisp.org>
63036
63037         * modules/freopen-tests: New file.
63038         * tests/test-freopen.c: New file.
63039
63040         * modules/fopen-tests: New file.
63041         * tests/test-fopen.c: New file.
63042
63043         * modules/fopen: New file.
63044         * lib/fopen.c: New file.
63045         * m4/fopen.m4: New file.
63046         * modules/freopen: New file.
63047         * lib/freopen.c: New file.
63048         * m4/freopen.m4: New file.
63049         * lib/stdio.in.h (fopen, freopen): New declarations.
63050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63051         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63052         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63053         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63054         * doc/functions/fopen.texi: Mention the 'fopen' module.
63055         * doc/functions/freopen.texi: Mention the 'freopen' module.
63056
63057 2007-10-06  Bruno Haible  <bruno@clisp.org>
63058
63059         * modules/open-tests: New file.
63060         * tests/test-open.c: New file.
63061
63062         * modules/open: New file.
63063         * lib/open.c: New file.
63064         * m4/open.m4: New file.
63065         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63066         lib/open.c does.
63067         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63068         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63069         macros.
63070         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63071         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63072         REPLACE_OPEN.
63073         * doc/functions/open.texi: Mention the 'open' module.
63074
63075 2007-10-04  Bruno Haible  <bruno@clisp.org>
63076
63077         * modules/ceill-tests: New file.
63078         * tests/test-ceill.c: New file.
63079
63080         * modules/ceill: New file.
63081         * lib/ceill.c: Replace entire file.
63082         * m4/ceill.m4: New file.
63083         * lib/math.in.h (ceill): Replace declaration.
63084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63085         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63086         * doc/functions/ceill.texi: Mention the 'ceill' module.
63087         * modules/mathl (Files): Remove lib/ceill.c.
63088         (Depends-on): Add ceill.
63089
63090 2007-10-04  Bruno Haible  <bruno@clisp.org>
63091
63092         * modules/ceilf-tests: New file.
63093         * tests/test-ceilf.c: New file.
63094
63095         * modules/ceilf: New file.
63096         * lib/ceil.c: New file.
63097         * lib/ceilf.c: New file.
63098         * m4/ceilf.m4: New file.
63099         * lib/math.in.h (ceilf): New declaration.
63100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63101         HAVE_DECL_CEILF.
63102         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63103         HAVE_DECL_CEILF.
63104         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63105
63106 2007-10-04  Bruno Haible  <bruno@clisp.org>
63107
63108         * modules/floorl-tests: New file.
63109         * tests/test-floorl.c: New file.
63110
63111         * modules/floorl: New file.
63112         * lib/floorl.c: Replace entire file.
63113         * m4/floorl.m4: New file.
63114         * lib/math.in.h (floorl): Replace declaration.
63115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63116         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63117         * doc/functions/floorl.texi: Mention the 'floorl' module.
63118         * modules/mathl (Files): Remove lib/floorl.c.
63119         (Depends-on): Add floorl.
63120
63121 2007-10-04  Bruno Haible  <bruno@clisp.org>
63122
63123         * modules/floorf-tests: New file.
63124         * tests/test-floorf.c: New file.
63125
63126         * modules/floorf: New file.
63127         * lib/floor.c: New file.
63128         * lib/floorf.c: New file.
63129         * m4/floorf.m4: New file.
63130         * lib/math.in.h (floorf): New declaration.
63131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63132         HAVE_DECL_FLOORF.
63133         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63134         HAVE_DECL_FLOORF.
63135         * doc/functions/floorf.texi: Mention the 'floorf' module.
63136
63137 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63138             Bruno Haible  <bruno@clisp.org>
63139
63140         Advertise for the Git server instead of the CVS server.
63141         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63142         repository instead of the CVS one.
63143         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63144         about all VCS systems generically.
63145         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63146
63147 2007-10-04  Bruno Haible  <bruno@clisp.org>
63148
63149         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63150         means.
63151         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63152
63153 2007-10-04  Bruno Haible  <bruno@clisp.org>
63154
63155         * modules/truncl-tests: New file.
63156         * tests/test-truncl.c: New file.
63157
63158         * modules/truncl: New file.
63159         * lib/truncl.c: New file.
63160         * m4/truncl.m4: New file.
63161         * lib/math.in.h (truncl): New declaration.
63162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63163         HAVE_DECL_TRUNCL.
63164         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63165         HAVE_DECL_TRUNCL.
63166         * doc/functions/truncl.texi: Mention the 'truncl' module.
63167
63168 2007-10-04  Bruno Haible  <bruno@clisp.org>
63169
63170         * modules/truncf-tests: New file.
63171         * tests/test-truncf.c: New file.
63172
63173         * modules/truncf: New file.
63174         * lib/trunc.c: Make paramerizable through USE_* macros.
63175         * lib/truncf.c: New file.
63176         * m4/truncf.m4: New file.
63177         * lib/math.in.h (truncf): New declaration.
63178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63179         HAVE_DECL_TRUNCF.
63180         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63181         HAVE_DECL_TRUNCF.
63182         * doc/functions/truncf.texi: Mention the 'truncf' module.
63183
63184 2007-10-03  Bruno Haible  <bruno@clisp.org>
63185
63186         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63187         augmentation also for tests modules.
63188         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63189         * modules/atexit-tests (Makefile.am): Likewise.
63190         * modules/binary-io-tests (Makefile.am): Likewise.
63191         * modules/c-strcase-tests (Makefile.am): Likewise.
63192         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63193         * modules/canonicalize-tests (Makefile.am): Likewise.
63194         * modules/closein-tests (Makefile.am): Likewise.
63195         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63196         * modules/freadahead-tests (Makefile.am): Likewise.
63197         * modules/fseek-tests (Makefile.am): Likewise.
63198         * modules/fseeko-tests (Makefile.am): Likewise.
63199         * modules/ftell-tests (Makefile.am): Likewise.
63200         * modules/ftello-tests (Makefile.am): Likewise.
63201         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63202         * modules/isnanl-tests (Makefile.am): Likewise.
63203         * modules/lseek-tests (Makefile.am): Likewise.
63204         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63205         * modules/mbscasestr-tests (Makefile.am): Likewise.
63206         * modules/mbschr-tests (Makefile.am): Likewise.
63207         * modules/mbscspn-tests (Makefile.am): Likewise.
63208         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63209         * modules/mbspbrk-tests (Makefile.am): Likewise.
63210         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63211         * modules/mbsrchr-tests (Makefile.am): Likewise.
63212         * modules/mbsspn-tests (Makefile.am): Likewise.
63213         * modules/mbsstr-tests (Makefile.am): Likewise.
63214         * modules/printf-posix-tests (Makefile.am): Likewise.
63215         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63216         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63217         * modules/tsearch-tests (Makefile.am): Likewise.
63218         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63219         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63220         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63221         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63222         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63223         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63224         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63225         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63226         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63227         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63228         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63229         * modules/xstrtol-tests (Makefile.am): Likewise.
63230         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63231         * modules/yesno-tests (Makefile.am): Likewise.
63232
63233 2007-10-03  Bruno Haible  <bruno@clisp.org>
63234
63235         * modules/trunc-tests: New file.
63236         * tests/test-trunc.c: New file.
63237
63238         * modules/trunc: New file.
63239         * lib/trunc.c: New file.
63240         * m4/trunc.m4: New file.
63241         * lib/math.in.h (trunc): New declaration.
63242         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63243         HAVE_DECL_TRUNC.
63244         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63245         HAVE_DECL_TRUNC.
63246         * doc/functions/trunc.texi: Mention the 'trunc' module.
63247
63248 2007-10-03  Bruno Haible  <bruno@clisp.org>
63249
63250         * tests/test-fpending.c: New file, mostly copied
63251         from coreutils/lib/t-fpending.c.
63252         * modules/fpending-tests: New file.
63253
63254 2007-10-03  Bruno Haible  <bruno@clisp.org>
63255
63256         Port the stdio extensions to QNX (untested).
63257         * lib/fseterr.c (fseterr): Add support for QNX.
63258         * lib/fbufmode.c (fbufmode): Likewise.
63259         * lib/freadable.c (freadable): Likewise.
63260         * lib/fwritable.c (fwritable): Likewise.
63261         * lib/freading.c (freading): Likewise.
63262         * lib/fwriting.c (fwriting): Likewise.
63263         * lib/freadahead.c (freadahed): Likewise.
63264         * lib/fpurge.c (fpurge): Likewise.
63265         * lib/fseeko.c (rpl_fseeko): Likewise.
63266
63267 2007-10-03  Bruno Haible  <bruno@clisp.org>
63268             Jim Meyering  <jim@meyering.net>
63269             Eric Blake  <ebb9@byu.net>
63270
63271         * doc/relocatable.texi: Use @command instead of @program.
63272
63273 2007-10-02  Jim Meyering  <jim@meyering.net>
63274
63275         Perform one more "_.h" -> ".in.h" substitution.
63276         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63277         instead of unistd_.h here, too.
63278
63279 2007-10-01  Bruno Haible  <bruno@clisp.org>
63280
63281         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63282         Needed for the alloca-opt module.
63283
63284 2007-09-30  Bruno Haible  <bruno@clisp.org>
63285
63286         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63287         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63288         alloca_.h.
63289         * lib/argz.in.h: Renamed from lib/argz_.h.
63290         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63291         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63292         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63293         byteswap_.h.
63294         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63295         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63296         dirent_.h.
63297         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63298         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63299         fcntl_.h.
63300         * lib/float.in.h: Renamed from lib/float_.h.
63301         * modules/float (Files, Makefile.am): Use float.in.h instead of
63302         float_.h.
63303         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63304         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63305         fnmatch_.h.
63306         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63307         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63308         getopt_.h.
63309         * lib/glob.in.h: Renamed from lib/glob_.h.
63310         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63311         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63312         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63313         iconv_.h.
63314         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63315         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63316         inttypes_.h.
63317         * lib/locale.in.h: Renamed from lib/locale_.h.
63318         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63319         locale_.h.
63320         * lib/math.in.h: Renamed from lib/math_.h.
63321         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63322         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63323         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63324         of netinet_in_.h. Add dependency.
63325         * lib/poll.in.h: Renamed from lib/poll_.h.
63326         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63327         * lib/search.in.h: Renamed from lib/search_.h.
63328         * modules/search (Files, Makefile.am): Use search.in.h instead of
63329         search_.h.
63330         * lib/signal.in.h: Renamed from lib/signal_.h.
63331         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
63332         _signal.h.
63333         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
63334         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
63335         stdbool_.h.
63336         * lib/stdint.in.h: Renamed from lib/stdint_.h.
63337         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
63338         stdint_.h.
63339         * lib/stdio.in.h: Renamed from lib/stdio_.h.
63340         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
63341         stdio_.h.
63342         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
63343         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
63344         stdlib_.h.
63345         * lib/string.in.h: Renamed from lib/string_.h.
63346         * modules/string (Files, Makefile.am): Use string.in.h instead of
63347         string_.h.
63348         * doc/gnulib-tool.texi (Initial import): Update.
63349         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
63350         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
63351         of sys_select_.h. Add dependency.
63352         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
63353         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
63354         of sys_socket_.h.
63355         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
63356         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
63357         sys_stat_.h.
63358         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
63359         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
63360         sys_time_.h.
63361         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
63362         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
63363         sysexits_.h.
63364         * lib/time.in.h: Renamed from lib/time_.h.
63365         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
63366         * lib/unistd.in.h: Renamed from lib/unistd_.h.
63367         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
63368         unistd_.h.
63369         * lib/wchar.in.h: Renamed from lib/wchar_.h.
63370         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
63371         wchar_.h.
63372         * lib/wctype.in.h: Renamed from lib/wctype_.h.
63373         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
63374         wctype_.h.
63375         * build-aux/bootstrap (slurp): Update.
63376         * lib/.cppi-disable: Update.
63377
63378 2007-09-30  Bruno Haible  <bruno@clisp.org>
63379
63380         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
63381         Needed on BeOS.
63382
63383 2007-09-30  Bruno Haible  <bruno@clisp.org>
63384
63385         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63386
63387 2007-09-29  Bruno Haible  <bruno@clisp.org>
63388
63389         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63390
63391 2007-09-29  Bruno Haible  <bruno@clisp.org>
63392
63393         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63394         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63395         * build-aux/install-reloc: Compile also areadlink.c.
63396         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63397
63398 2007-09-29  Bruno Haible  <bruno@clisp.org>
63399
63400         * gnulib-tool (func_emit_initmacro_done): Indentation.
63401
63402 2007-09-29  Bruno Haible  <bruno@clisp.org>
63403
63404         * README: Add CVS checkout update instructions.
63405         Info from Bob Proulx <bob@proulx.com>.
63406
63407 2007-09-28  Eric Blake  <ebb9@byu.net>
63408
63409         Provide move-if-change.
63410         * build-aux/move-if-change: New file, based on best practice
63411         rather than any canonical upstream location.
63412
63413 2007-09-28  Jim Meyering  <jim@meyering.net>
63414
63415         Fix canonicalize loop-detection corner case.
63416         Do not attempt to stat the symlink values stored via seen_triple.
63417         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
63418         on linux-2.6.18, (but not 2.6.22).
63419         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
63420         triple_compare.  The former compares dev,ino,filename, while the latter
63421         would actually stat dirname(filename) when dev and ino were equal.
63422         * lib/hash-triple.c: Install <string.h>.
63423         (STREQ): Define.
63424         (triple_compare_ino_str): New function.
63425         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
63426
63427 2007-09-28  Eric Blake  <ebb9@byu.net>
63428
63429         Enforce that AC_REPLACE_FUNCS files exist.
63430         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63431         override check for typos.
63432
63433         Fix test-closein on Solaris 10.
63434         * tests/test-closein.c (main): Don't assume stdin can be inherited
63435         closed on all systems.
63436         * tests/test-closein.sh: Likewise.
63437         Reported by Piotr Tarnowski.
63438
63439 2007-09-28  Jim Meyering  <jim@meyering.net>
63440
63441         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
63442
63443 2007-09-27  Jim Meyering  <jim@meyering.net>
63444
63445         canonicalize: Avoid a false-positive cycle failure.
63446         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
63447         Sort.  Remove cycle-check.
63448         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
63449         not cycle-check.h.
63450         (seen_triple): New function.
63451         (canonicalize_filename_mode): Use it instead of cycle-check.
63452         * tests/test-canonicalize.c: Add a test for this bug.
63453         * tests/test-canonicalize.sh: Set up and run the test.
63454
63455         New module, file-set, from coreutils.
63456         * modules/file-set: Define it.
63457         * lib/file-set.c, lib/file-set.h: Implement.
63458
63459         New module, hash-triple, from coreutils.
63460         * modules/hash-triple: Define it.
63461         * lib/hash-triple.c, lib/hash-triple.h: Implement.
63462
63463 2007-09-25  Eric Blake  <ebb9@byu.net>
63464
63465         Fix strerror on Interix.
63466         * lib/string_.h (strerror): Declare replacement.
63467         * doc/functions/strerror.texi (strerror): Document the Interix
63468         shortcoming.
63469         * modules/string (Makefile.am): Support new hooks.
63470         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
63471         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
63472         gl_FUNC_STRERROR_SEPARATE.
63473         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
63474         * lib/strerror.c (rpl_strerror): Provide replacement.
63475         * modules/strerror (Depends-on): Add string.
63476         (configure.ac): Detect use of module.
63477         * tests/test-strerror.c: New file.
63478         * modules/strerror-tests: New test module.
63479         * modules/argp (Depends-on): Add strerror.
63480         * modules/error (Depends-on): Likewise.
63481         Reported by Martin Koeppe.
63482
63483 2007-09-24  Bruno Haible  <bruno@clisp.org>
63484
63485         * README: Update git instructions.
63486
63487 2007-09-24  Eric Blake  <ebb9@byu.net>
63488
63489         Revert fpending breakage from 2007-09-08.
63490         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63491         __fpending.c.
63492
63493 2007-09-24  Jim Meyering  <jim@meyering.net>
63494
63495         filenamecat.c: Add a test.
63496         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63497         showing how the function works when DIR is the empty string.
63498
63499 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63500
63501         * tests/test-canonicalize.sh: Turn on executable bit.
63502
63503 2007-09-19  Eric Blake  <ebb9@byu.net>
63504
63505         * README: Update CVS instructions.
63506
63507 2007-09-18  Bruno Haible  <bruno@clisp.org>
63508
63509         * modules/areadlink: New file.
63510         * lib/areadlink.h (areadlink): New declaration.
63511         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63512
63513 2007-09-17  Jim Meyering  <jim@meyering.net>
63514
63515         * lib/savewd.c (ESTALE) [!defined]: Define.
63516         Reported to be required on Interix by Martin Koeppe.
63517
63518 2007-09-17  Bruno Haible  <bruno@clisp.org>
63519
63520         * gnulib-tool (func_version): Use $version.
63521
63522 2007-09-16  Bruno Haible  <bruno@clisp.org>
63523
63524         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63525         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63526         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63527         Reported by Greg Schafer <gschafer@zip.com.au>.
63528
63529 2007-09-15  Bruno Haible  <bruno@clisp.org>
63530
63531         * gnulib-tool (sed): Try a little harder to make bash understand the
63532         alias.
63533         Reported by Bruce Korb <bruce.korb@gmail.com>.
63534
63535 2007-09-13  Eric Blake  <ebb9@byu.net>
63536
63537         * ChangeLog: Remove conflict markers.
63538
63539 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63540
63541         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63542         Reported by Bruno Haible <bruno@clisp.org>.
63543
63544 2007-09-12  Bruno Haible  <bruno@clisp.org>
63545
63546         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63547         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63548         is not defined.
63549
63550 2007-09-12  Eric Blake  <ebb9@byu.net>
63551
63552         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63553         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63554         Autoconf definition.
63555         * modules/euidaccess (Depends-on): Add extensions, for
63556         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63557         * modules/fnmatch (Depends-on): Likewise.
63558         * modules/getaddrinfo (Depends-on): Likewise.
63559         * modules/getdelim (Depends-on): Likewise.
63560         * modules/getline (Depends-on): Likewise.
63561         * modules/getsubopt (Depends-on): Likewise.
63562         * modules/gettext (Depends-on): Likewise.
63563         * modules/group-member (Depends-on): Likewise.
63564         * modules/mbchar (Depends-on): Likewise.
63565         * modules/memmem (Depends-on): Likewise.
63566         * modules/mempcpy (Depends-on): Likewise.
63567         * modules/memrchr (Depends-on): Likewise.
63568         * modules/pagealign_alloc (Depends-on): Likewise.
63569         * modules/readutmp (Depends-on): Likewise.
63570         * modules/stpcpy (Depends-on): Likewise.
63571         * modules/stpncpy (Depends-on): Likewise.
63572         * modules/strchrnul (Depends-on): Likewise.
63573         * modules/strndup (Depends-on): Likewise.
63574         * modules/strsep (Depends-on): Likewise.
63575         * modules/strverscmp (Depends-on): Likewise.
63576         * modules/vasprintf (Depends-on): Likewise.
63577         * modules/wcwidth (Depends-on): Likewise.
63578         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63579         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63580         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63581         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63582         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63583         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63584         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63585         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63586         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63587         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63588         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63589         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63590         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63591         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63592         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63593         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63594         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63595         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63596         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63597         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63598         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63599         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63600         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63601         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63602         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63603         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63604         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63605         so that lock.m4 can be used in gettext without extensions module.
63606
63607 2007-09-11  Bruno Haible  <bruno@clisp.org>
63608
63609         * m4/isc-posix.m4: Remove file.
63610         Suggested by Eric Blake.
63611
63612 2007-09-11  Eric Blake  <ebb9@byu.net>
63613
63614         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63615
63616 2007-09-10  Bruno Haible  <bruno@clisp.org>
63617
63618         * posix-modules: Fix typo in error message.
63619         Reported by Matt <mkraai@beckman.com>.
63620
63621 2007-09-09  Bruno Haible  <bruno@clisp.org>
63622
63623         * doc/functions/getdelim.texi: Update list of platforms lacking the
63624         function.
63625         * doc/functions/getline.texi: Likewise.
63626
63627 2007-09-09  Jim Meyering  <jim@meyering.net>
63628
63629         * lib/hash.c (hash_initialize): Detect calloc failure.
63630         Reported by Bruno Haible.
63631
63632 2007-09-09  Bruno Haible  <bruno@clisp.org>
63633
63634         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63635         malloc or realloc fails.
63636
63637 2007-09-09  Bruno Haible  <bruno@clisp.org>
63638
63639         * modules/getcwd (Depends-on): Add malloc-posix.
63640         * modules/glob (Depends-on): Likewise.
63641         * modules/putenv (Depends-on): Likewise.
63642         * modules/strdup (Depends-on): Likewise.
63643         * modules/getdelim (Depends-on): Add realloc-posix.
63644         * modules/read-file (Depends-on): Likewise.
63645
63646 2007-09-09  Bruno Haible  <bruno@clisp.org>
63647
63648         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63649         (gl_FUNC_MALLOC_POSIX): Require it.
63650         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63651         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63652         * modules/realloc (Files): Add m4/malloc.m4.
63653         * modules/calloc (Files): Likewise.
63654
63655 2007-09-09  Bruno Haible  <bruno@clisp.org>
63656
63657         * modules/malloc-posix: New file.
63658         * modules/malloc (Depends-on): Add malloc-posix.
63659         * lib/malloc.c: Include errno.h.
63660         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63661         and a POSIX-compatible malloc into a single function. Set ENOMEM
63662         when returning NULL.
63663         * m4/malloc.m4: New file.
63664         * doc/functions/malloc.texi: Mention the malloc-posix module.
63665         * lib/stdlib_.h (malloc): New declaration.
63666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63667         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63668         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63669         and HAVE_MALLOC_POSIX.
63670
63671 2007-09-09  Bruno Haible  <bruno@clisp.org>
63672
63673         * modules/realloc-posix: New file.
63674         * modules/realloc (Depends-on): Add realloc-posix.
63675         * lib/realloc.c: Include errno.h.
63676         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63677         and a POSIX-compatible realloc into a single function. Set ENOMEM
63678         when returning NULL.
63679         * m4/realloc.m4: New file.
63680         * doc/functions/realloc.texi: Mention the realloc-posix module.
63681         * lib/stdlib_.h (realloc): New declaration.
63682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63683         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63684         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63685         and HAVE_REALLOC_POSIX.
63686
63687 2007-09-09  Bruno Haible  <bruno@clisp.org>
63688
63689         * modules/calloc-posix: New file.
63690         * modules/calloc (Depends-on): Add calloc-posix.
63691         * lib/calloc.c: Include errno.h.
63692         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63693         and a POSIX-compatible calloc into a single function. Set ENOMEM
63694         when returning NULL.
63695         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63696         * doc/functions/calloc.texi: Mention the calloc-posix module.
63697         * lib/stdlib_.h (calloc): New declaration.
63698         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63699         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63700         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63701         and HAVE_CALLOC_POSIX.
63702
63703 2007-09-09  Bruno Haible  <bruno@clisp.org>
63704
63705         Allow for modules to show an arbitrary notice.
63706         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63707         * gnulib-tool: New option --extract-notice.
63708         (func_usage): Document it.
63709         (sed_extract_prog): Update.
63710         (func_get_notice): New function.
63711         (func_modules_notice): New function.
63712         (func_import, func_create_testdir): Invoke it.
63713         Suggested by Jim Meyering.
63714
63715 2007-09-09  Bruno Haible  <bruno@clisp.org>
63716
63717         * gnulib-tool: New options --verbose, --quiet.
63718         (func_usage): Document them.
63719         (verbose): New variable.
63720         (func_execute_command): New function.
63721         (func_import): Don't show the module list and the file list if
63722         $verbose < 0.
63723         (func_create_testdir): Likewise. Use func_execute_command.
63724         (func_create_megatestdir): Use func_execute_command.
63725
63726 2007-09-08  Bruno Haible  <bruno@clisp.org>
63727
63728         * gnulib-tool (func_import): Prefer rsync over wget when available,
63729         for fetching the PO files.
63730
63731 2007-09-08  Bruno Haible  <bruno@clisp.org>
63732
63733         * posix-modules: New file. Portions copied from gnulib-tool.
63734         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63735
63736 2007-09-08  Jim Meyering  <jim@meyering.net>
63737
63738         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63739         * lib/fpending.h: Rename from __fpending.h.
63740         * lib/fpending.c: Rename from __fpending.c.
63741         Include "fpending.h", not "__fpending.h".
63742         * lib/__fpending.h, lib/__fpending.c: Remove files.
63743         * modules/fpending (Files): Reflect new file names.
63744         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63745
63746 2007-09-08  Bruno Haible  <bruno@clisp.org>
63747
63748         * m4/inttypes-h.m4: Remove stub file.
63749
63750 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63751
63752         * doc/headers/stdint.texi: Discuss #include_next issue.
63753
63754 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63755
63756         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63757
63758 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63759
63760         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63761         in variable name.
63762
63763 2007-09-03  Jim Meyering  <jim@meyering.net>
63764
63765         New module: git-version-gen.
63766         * modules/git-version-gen: New file.
63767
63768         Import changes from coreutils for bootstrap script.
63769
63770         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63771
63772         bootstrap: uses rsync to download the .po files
63773         * build-aux/bootstrap (po_download_command_format): New global.
63774         (download_po_files): Use rsync.
63775         (update_po_files): Don't remove .po files after download,
63776         so future rsync runs can take advantage of the copies.
63777
63778         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63779
63780         Solve the unnecessary-.po-file-regeneration problem once and for all.
63781         * build-aux/bootstrap (download_po_files): New function, renamed from
63782         get_translations.  Now, downloads, but doesn't update LINGUAS.
63783         (update_po_files): New function.
63784
63785         bootstrap: Ignore more.
63786         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63787         uniwidth to e.g., lib/.gitignore.
63788         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63789
63790         * build-aux/bootstrap: New setting: vc_ignore.
63791         (insert_sorted_if_absent): Create $file if absent.
63792         Adapt to new, possibly empty, list: $vc_ignore.
63793
63794         bootstrap: generate more ignorable names
63795         * build-aux/bootstrap (slurp): When generating ignorable names,
63796         also map .sin to .sed, .gperf to .c, and .y to .c.
63797
63798 2007-09-03  Jim Meyering  <jim@meyering.net>
63799
63800         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63801         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63802
63803 2007-09-02  Bruno Haible  <bruno@clisp.org>
63804
63805         Fix mis-recognition of 'mcs' on QNX 6.
63806         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63807         output contains the string "Mono".
63808         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63809         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63810
63811 2007-09-01  Bruno Haible  <bruno@clisp.org>
63812
63813         Fix collision between uniwidth/* and linebreak modules.
63814         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63815         u32_width): Remove declarations.
63816         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63817         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63818         streq3, streq2, streq1, streq0): Remove functions.
63819         (STREQ): Remove macro.
63820         (is_cjk_encoding): Remove function.
63821         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63822         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63823         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63824         * NEWS: Document the change.
63825
63826 2007-09-01  Bruno Haible  <bruno@clisp.org>
63827
63828         * lib/streq.h: Add double-inclusion guard.
63829
63830 2007-09-01  Karl Berry  <karl@gnu.org>
63831
63832         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63833
63834 2007-08-28  Jim Meyering  <jim@meyering.net>
63835
63836         Rename mreadlink_with_size to areadlink_with_size.
63837         * NEWS: Document the change.
63838         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63839         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63840         * lib/mreadlink.h: Rename this to...
63841         * lib/areadlink.h: ...this.
63842         * modules/mreadlink-with-size: Rename this to...
63843         * modules/areadlink-with-size: ...this.
63844         * lib/canonicalize.c: Reflect the renaming.
63845         * modules/canonicalize: Likewise.
63846
63847 2007-08-26  Bruno Haible  <bruno@clisp.org>
63848
63849         * gnulib-tool (func_import): When deciding which files to remove,
63850         consider also dangling symbolic links.
63851         Reported by Eric Blake.
63852
63853 2007-08-26  Bruno Haible  <bruno@clisp.org>
63854
63855         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63856
63857 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63858
63859         * lib/readline.c: Don't include getline.h, the prototype is now
63860         found in stdio.h.
63861
63862 2007-08-23  Jim Meyering  <jim@meyering.net>
63863
63864         Getdelim touchup.
63865         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63866         around the funlockfile call, since funlockfile never sets errno.
63867         Don't set errno upon failed realloc.
63868
63869 2007-08-22  Eric Blake  <ebb9@byu.net>
63870
63871         Getline touchups.
63872         * lib/getdelim.c (getdelim): Revert regression that required *n to
63873         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63874         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63875         getdelim, rather than whether implementation is missing.
63876         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63877         * lib/stdio_.h (getline): Also declare if replacement is
63878         required.
63879         * doc/functions/getdelim.texi: New file.
63880         * doc/functions/getline.texi: Likewise.
63881         * doc/gnulib.texi (Function Substitutes): Add new files.
63882         Reported by Bruno Haible.
63883
63884 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63885
63886         * users.txt: Add Guile.
63887
63888 2007-08-22  Eric Blake  <ebb9@byu.net>
63889
63890         * tests/test-getdelim.c (main): Use remove, not unlink.
63891         * tests/test-getline.c (main): Likewise.
63892
63893         Move getline and getdelim into stdio.h, per POSIX 200x.
63894         * modules/getline (Files): Remove getline.h.
63895         (Depends-on): Add stdio.
63896         (configure.ac): Add module indicator.
63897         * modules/getdelim (Files): Remove getdelim.h.
63898         (Depends-on): Add stdio.
63899         (configure.ac): Add module indicator.
63900         * modules/stdio (Makefile.am): Work with new indicators.
63901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63902         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63903         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63904         * lib/getdelim.h: Delete.
63905         * lib/getline.h: Delete.
63906         * lib/stdio_.h (getdelim, getline): Declare.
63907         * modules/getdelim-tests: New module.
63908         * modules/getline-tests: Likewise.
63909         * tests/test-getdelim.c: New file.
63910         * tests/test-getline.c: Likewise.
63911         * NEWS: Document the change.
63912         * lib/getline.c: Update choice of header.
63913         * lib/csharpcomp.c: Likewise.
63914         * lib/getpass.c: Likewise.
63915         * lib/javacomp.c: Likewise.
63916         * lib/javaversion.c: Likewise.
63917         * lib/yesno.c: Likewise.
63918         * lib/getdelim.c: Likewise.
63919         (getdelim): Set errno on failure, and avoid memory leak.
63920
63921 2007-08-19  Bruno Haible  <bruno@clisp.org>
63922
63923         * modules/closein (Depends-on): Add freadahead.
63924         * lib/closein.c: Include freadahead.h.
63925         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63926         is zero.
63927
63928 2007-08-19  Bruno Haible  <bruno@clisp.org>
63929
63930         * modules/freadahead-tests: New file.
63931         * tests/test-freadahead.sh: New file.
63932         * tests/test-freadahead.c: New file.
63933
63934         * modules/freadahead: New file.
63935         * lib/freadahead.h: New file.
63936         * lib/freadahead.c: New file.
63937         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63938         fbufmode, fpurge, freadable, fwritable.
63939
63940 2007-08-19  Eric Blake  <ebb9@byu.net>
63941
63942         Test yesno in combination with closein.
63943         * lib/yesno.c (yesno): Document use of stdin.
63944         * modules/yesno-tests (Files): New module.
63945         * tests/test-yesno.c (main): New file.
63946         * tests/test-yesno.sh: Likewise.
63947
63948 2007-08-19  Bruno Haible  <bruno@clisp.org>
63949
63950         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63951         * lib/fseeko.c (rpl_fseeko): Likewise.
63952         * lib/fseterr.c (fseterr): Likewise.
63953
63954 2007-08-19  Bruno Haible  <bruno@clisp.org>
63955
63956         * tests/test-lseek.c (main): Disable a test for BeOS.
63957         * doc/functions/lseek.texi: Document the BeOS bug.
63958
63959 2007-08-19  Bruno Haible  <bruno@clisp.org>
63960             Eric Blake  <ebb9@byu.net>
63961
63962         * lib/lseek.c: Include <sys/stat.h>.
63963         (rpl_lseek): Add workaround code also for Unix platforms.
63964         Needed for BeOS.
63965         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63966         * doc/functions/lseek.texi: Document BeOS definiency.
63967
63968 2007-08-18  Bruno Haible  <bruno@clisp.org>
63969
63970         * modules/fstrcmp-tests: New file.
63971         * tests/test-fstrcmp.c: New file.
63972
63973 2007-08-18  Bruno Haible  <bruno@clisp.org>
63974
63975         * modules/fstrcmp: New file, from GNU gettext with modifications.
63976         * lib/fstrcmp.h: New file, from GNU gettext.
63977         * lib/fstrcmp.c: New file, from GNU gettext.
63978         * MODULES.html.sh (String handling): Add fstrcmp.
63979
63980 2007-08-18  Bruno Haible  <bruno@clisp.org>
63981
63982         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63983         'bool'.
63984         (diag, compareseq): Remove const from the ctxt argument.
63985         (USE_HEURISTIC): Undefine at the end.
63986
63987 2007-08-18  Jim Meyering  <jim@meyering.net>
63988
63989         New file: lib/idcache.h
63990         * NEWS: Mention the addition.
63991         * modules/idcache (Files): Add lib/idcache.h
63992         * lib/idcache.c: Include "idcache.h".
63993         Don't include <sys/types.h>.
63994         Add a FIXME comment.
63995         Move file-scoped "static" declarations to the top.
63996         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63997
63998 2007-08-17  Bruno Haible  <bruno@clisp.org>
63999         and Paul Eggert  <eggert@cs.ucla.edu>
64000
64001         * MODULES.html.sh: Add diffseq.
64002         * modules/diffseq: New file.
64003         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64004         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64005
64006 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64007
64008         Import changes from coreutils for bootstrap script.
64009
64010         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64011
64012         * build-aux/bootstrap (slurp): Work even in environments where
64013         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64014         current code does not slurp files whose names start with ".", and
64015         this looks like it might be a troublesome area.
64016
64017         2007-07-11  Jim Meyering  <jim@meyering.net>
64018
64019         If there's a GPL vN copyright comment, require that N == 3.
64020
64021         2007-07-08  Jim Meyering  <jim@meyering.net>
64022
64023         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64024         * build-aux/bootstrap (mam_template): Move definition out of loop.
64025
64026         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64027
64028         * build-aux/bootstrap (symlink_to_dir): Rename function from
64029         symlink_to_gnulib.  Add a directory parameter.  Update all
64030         callers.
64031         (cp_mark_as_generated): Also check for -- and link to -- files in
64032         gl/.
64033
64034         2007-07-08  Jim Meyering  <jim@meyering.net>
64035
64036         Adapt to deeper hierarchy in gnulib.
64037         * build-aux/bootstrap (symlink_to_dir): If the destination
64038         directory doesn't exist, create it. This is required at least for
64039         "lib/uniwidth/cjk.h".
64040
64041         2007-05-15  Jim Meyering  <jim@meyering.net>
64042
64043         * build-aux/bootstrap: Now that generated Makefile.am files
64044         are no longer under version control, they must be created at
64045         bootstrap time.
64046
64047 2007-08-14  Ben Pfaff  <blp@gnu.org>
64048
64049         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64050
64051 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64052
64053         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64054         given the changes below.
64055         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64056         even on hosts that have padding bits beyond the supported 64.
64057
64058 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64059
64060         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64061         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64062         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64063         depends on it.
64064         (xstrtol_error): Remove.
64065         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64066         but with a different signature.
64067         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64068         * lib/xstrtol-error.c: Include exitfail.h.
64069         (xstrtol_fatal): New function, with a different signature from the
64070         old xstrtol_error, so that the caller need not worry about passing
64071         in an exit status, or about storage management of the option argument.
64072         (xstrtol_error): Now a static function.  Redo signature to
64073         implement xstrtol_fatal.  Output the correct number of hyphens in
64074         front of the option so that the caller need not worry about
64075         storage management.
64076         (N_): New macro.
64077         (_): Remove; not used now.
64078         * modules/xstrtol: Depend on getopt.
64079         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64080         of old STRTOL_FATAL_ERROR macro.
64081         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64082         of test program.
64083         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64084         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64085
64086 2007-08-08  Eric Blake  <ebb9@byu.net>
64087
64088         * lib/xstrtol-error.c: Add missing include.
64089
64090         Move xstrtol messages into gnulib domain, when --pobase is used.
64091         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64092         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64093         * modules/xstrtol (Files): Distribute new file.
64094         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64095         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64096         * tests/test-xstrtol.c: ...into new file.
64097         * tests/test-xstrtoul.c: Also test xstrtoul.
64098         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64099         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64100         * tests/test-xstrtol.sh: Drive the tests.
64101         * tests/test-xstrtoimax.sh: Likewise.
64102         * tests/test-xstrtoumax.sh: Likewise.
64103         * modules/xstrtol-tests: New module.
64104         * modules/xstrtoimax-tests: Likewise.
64105         * modules/xstrtoumax-tests: Likewise.
64106
64107 2007-08-08  Jim Meyering  <jim@meyering.net>
64108
64109         New function: mfile_name_concat.
64110         * lib/filenamecat.c (mfile_name_concat): New function, just like
64111         file_name_concat, but return NULL upon failure rather than exiting
64112         with a diagnostic.
64113         * lib/filenamecat.h: Declare it.
64114
64115 2007-08-07  Bruno Haible  <bruno@clisp.org>
64116
64117         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64118         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64119         warning from gcc.
64120         Reported by Eric Blake.
64121
64122 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64123
64124         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64125         * modules/crypto/arcfour (License): Likewise.
64126         * modules/crypto/des-tests (License): Likewise.
64127         * modules/crypto/gc-arctwo-tests (License): Likewise.
64128         * modules/crypto/gc-des-tests (License): Likewise.
64129         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64130         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64131         * modules/crypto/gc-md2-tests (License): Likewise.
64132         * modules/crypto/gc-md4-tests (License): Likewise.
64133         * modules/crypto/gc-md5-tests (License): Likewise.
64134         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64135         * modules/crypto/gc-rijndael-tests (License): Likewise.
64136         * modules/crypto/gc-sha1-tests (License): Likewise.
64137         * modules/crypto/gc-tests (License): Likewise.
64138         * modules/crypto/hmac-md5 (License): Likewise.
64139         * modules/crypto/hmac-sha1 (License): Likewise.
64140         * modules/crypto/md2-tests (License): Likewise.
64141         * modules/crypto/md4-tests (License): Likewise.
64142         * modules/crypto/md5 (License): Likewise.
64143         * modules/crypto/rijndael (License): Likewise.
64144         * modules/crypto/sha1 (License): Likewise.
64145         * modules/memxor (License): Likewise.
64146
64147 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64148         and Bruno Haible  <bruno@clisp.org>
64149
64150         * NEWS: Describe interface changes to human, xstrtol.
64151         * lib/human.h: Include <xstrtol.h>.
64152         (human_options): Return enum strtol_error, not int.  Remove
64153         bool arg; take int * instead.
64154         * lib/human.c: Don't include "gettext.h".
64155         (_): Remove; no longer used.
64156         Don't include <xstrtol.h>, since human.h does it.
64157         (human_options): Adjust to abovementioned interface changes.
64158         Do not report error to stderr; that's now the caller's
64159         responsibility.
64160         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64161         interface change.
64162         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64163         Str, Argument_type_string.  All uses changed.  Put " argument"
64164         in diagnostics to make them clearer.  Change wording of suffix
64165         message for clarity.
64166         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64167         Argument_type_string.
64168         (STRTOL_FATAL_WARN): Remove; no longer used.
64169         * modules/human (Depends-on): Remove gettext-h.
64170
64171 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64172
64173         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64174
64175 2007-07-31  Bruno Haible  <bruno@clisp.org>
64176
64177         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64178         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64179         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64180
64181 2007-07-31  Bruno Haible  <bruno@clisp.org>
64182
64183         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64184         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64185
64186 2007-07-30  Bruno Haible  <bruno@clisp.org>
64187
64188         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64189         * modules/c-ctype (License): Likewise.
64190         * modules/c-strcase (License): Likewise.
64191         * modules/check-version (License): Likewise.
64192         * modules/iconv (License): Likewise.
64193         * modules/iconv_open (License): Likewise.
64194         * modules/read-file (License): Likewise.
64195         * modules/striconv (License): Likewise.
64196         * modules/strverscmp (License): Likewise.
64197         * modules/vasprintf (License): Likewise.
64198         * modules/crypto/des (License): Likewise.
64199         * modules/crypto/gc (License): Likewise.
64200         * modules/crypto/gc-arcfour (License): Likewise.
64201         * modules/crypto/gc-arctwo (License): Likewise.
64202         * modules/crypto/gc-des (License): Likewise.
64203         * modules/crypto/gc-hmac-md5 (License): Likewise.
64204         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64205         * modules/crypto/gc-md2 (License): Likewise.
64206         * modules/crypto/gc-md4 (License): Likewise.
64207         * modules/crypto/gc-md5 (License): Likewise.
64208         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64209         * modules/crypto/gc-random (License): Likewise.
64210         * modules/crypto/gc-rijndael (License): Likewise.
64211         * modules/crypto/gc-sha1 (License): Likewise.
64212         * modules/crypto/md2 (License): Likewise.
64213         * modules/crypto/md4 (License): Likewise.
64214
64215 2007-07-30  Jim Meyering  <jim@meyering.net>
64216
64217         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64218         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64219         it has valid stat data.  This bug would cause du not to count the
64220         sizes of inaccessible directories.
64221         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64222         in <http://bugzilla.redhat.com/250077>.
64223
64224 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64225             Bruno Haible  <bruno@clisp.org>
64226
64227         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64228         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64229         #include_next, gives a diagnostic about it, but reports no error in
64230         the exit code.
64231         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64232
64233 2007-07-24  Ben Pfaff  <blp@gnu.org>
64234
64235         Improve name: "count-one-bits" is better than "popcount".
64236         * MODULES.html.sh: Update name.
64237         * lib/popcount.h: Renamed lib/count-one-bits.h.
64238         (popcount): Renamed count_one_bits.
64239         (popcountl): Renamed count_one_bits_l.
64240         (popcountll): Renamed count_one_bits_ll.
64241         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64242         * modules/popcount: Renamed module/count-one-bits.
64243         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64244         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64245
64246 2007-07-23  Ben Pfaff  <blp@gnu.org>
64247
64248         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64249         better code generation, and add U to large constants to avoid
64250         warnings, in non-GCC case.
64251         Suggested by Bruno Haible.
64252
64253 2007-07-23  Ben Pfaff  <blp@gnu.org>
64254
64255         * lib/popcount.h: Use verify_true instead of if...abort.
64256         * modules/popcount: Depend on verify module.
64257         Suggested by Jim Meyering.
64258
64259 2007-07-23  Bruno Haible  <bruno@clisp.org>
64260
64261         * gnulib-tool (func_import): Create a .cvsignore file also when the
64262         directory is not yet in CVS but the toplevel directory is. When
64263         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
64264         Reported by Karl Berry.
64265
64266 2007-07-22  Ben Pfaff  <blp@gnu.org>
64267
64268         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64269         case.
64270         Suggested by Eric Blake.
64271
64272 2007-07-22  Ben Pfaff  <blp@gnu.org>
64273
64274         New module: popcount.
64275         * MODULES.html.sh: Add popcount.
64276         * modules/popcount: New file.
64277         * modules/popcount-tests: New file.
64278         * tests/test-popcount.c: New file.
64279         * lib/popcount.h: New file.
64280         * m4/popcount.m4: New file.
64281
64282 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64283
64284         * build-aux/announce-gen: Update to GPLv3.
64285
64286         * build-aux/config.guess: Update from config.
64287
64288 2007-07-21  Bruno Haible  <bruno@clisp.org>
64289
64290         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64291         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64292
64293 2007-07-20  Jim Meyering  <jim@meyering.net>
64294
64295         * check-module: Diagnose a self-dependency.
64296
64297 2007-07-19  Bruno Haible  <bruno@clisp.org>
64298
64299         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64300         empty.
64301         Reported by Eric Blake.
64302
64303 2007-07-18  Bruno Haible  <bruno@clisp.org>
64304
64305         * gnulib-tool: New options --po-base, --po-domain.
64306         (func_usage): Document them.
64307         (pobase, po_domain): New variables.
64308         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64309         DEFAULT_TEXT_DOMAIN.
64310         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64311         (func_import): Consider pobase and po_domain. Create a po/ directory.
64312         (func_create_testdir): Set pobase and po_domain to empty.
64313         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64314         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64315
64316 2007-07-18  Bruno Haible  <bruno@clisp.org>
64317
64318         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64319         EXTRA_DIST augmentation for files in build-aux/.
64320
64321 2007-07-16  Bruno Haible  <bruno@clisp.org>
64322
64323         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64324         * modules/getdelim (License): Likewise.
64325
64326 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64327
64328         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
64329         * modules/d-type (License): Likewise.
64330         * modules/extensions (License): Likewise.
64331         * modules/fnmatch (License): Likewise.
64332         * modules/fseeko (License): Likewise.
64333         * modules/getaddrinfo (License): Likewise.
64334         * modules/getline (License): Likewise.
64335         * modules/getlogin_r (License): Likewise.
64336         * modules/getpass (License): Likewise.
64337         * modules/gettimeofday (License): Likewise.
64338         * modules/glob (License): Likewise.
64339         * modules/inet_ntop (License): Likewise.
64340         * modules/malloc (License): Likewise.
64341         * modules/malloca (License): Likewise.
64342         * modules/memmem (License): Likewise.
64343         * modules/mempcpy (License): Likewise.
64344         * modules/memset (License): Likewise.
64345         * modules/minmax (License): Likewise.
64346         * modules/mktime (License): Likewise.
64347         * modules/netinet_in (License): Likewise.
64348         * modules/pathmax (License): Likewise.
64349         * modules/poll (License): Likewise.
64350         * modules/regex (License): Likewise.
64351         * modules/snprintf (License): Likewise.
64352         * modules/stdbool (License): Likewise.
64353         * modules/stdint (License): Likewise.
64354         * modules/stdio (License): Likewise.
64355         * modules/strcase (License): Likewise.
64356         * modules/strcasestr (License): Likewise.
64357         * modules/strdup (License): Likewise.
64358         * modules/string (License): Likewise.
64359         * modules/strndup (License): Likewise.
64360         * modules/strnlen (License): Likewise.
64361         * modules/strpbrk (License): Likewise.
64362         * modules/strptime (License): Likewise.
64363         * modules/strsep (License): Likewise.
64364         * modules/sys_select (License): Likewise.
64365         * modules/sys_socket (License): Likewise.
64366         * modules/sys_stat (License): Likewise.
64367         * modules/sys_time (License): Likewise.
64368         * modules/time (License): Likewise.
64369         * modules/time_r (License): Likewise.
64370         * modules/timegm (License): Likewise.
64371         * modules/unistd (License): Likewise.
64372         * modules/vsnprintf (License): Likewise.
64373         * modules/wctype (License): Likewise.
64374
64375 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64376
64377         * modules/argz (License): LGPLv2+.
64378
64379 2007-07-15  Karl Berry  <karl@gnu.org>
64380
64381         * doc/gnulib.texi: revise node structure per new fdl.texi.
64382
64383 2007-07-14  Bruno Haible  <bruno@clisp.org>
64384
64385         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64386         the output file.
64387         * lib/uniname/uninames.h: Regenerated.
64388
64389 2007-07-14  Karl Berry  <karl@gnu.org>
64390
64391         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64392         omitting sectioning and index commands.
64393
64394 2007-07-13  Bruno Haible  <bruno@clisp.org>
64395
64396         New gnulib-tool option --more-symlinks.
64397         * gnulib-tool (func_usage): Document --more-symlinks.
64398         (do_copyrights): New variable.
64399         Recognize option --more-symlinks.
64400         (func_import): Don't add a copyright notice transform to
64401         sed_transform_lib_file if do_copyrights is empty.
64402
64403 2007-07-13  Bruno Haible  <bruno@clisp.org>
64404
64405         * lib/vasnprintf.c (decimal_point_char): Define also if
64406         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
64407         && !NEED_PRINTF_DIRECTIVE_A.
64408         Reported by Clemens Koller <clemens.koller@anagramm.de> via
64409         Gary V. Vaughan <gary@gnu.org>.
64410
64411 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
64412
64413         * lib/inttypes_.h: Undo previous change, since it was fixed
64414         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
64415
64416 2007-07-13  Bruno Haible  <bruno@clisp.org>
64417
64418         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
64419         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
64420
64421 2007-07-13  Jim Meyering  <jim@meyering.net>
64422
64423         df: Don't fail for Tru64's "file-on-file mount".
64424         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
64425         so we fall through and use statfs instead.  Details here:
64426         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64427         Reported by Albert Chin.
64428
64429 2007-07-13  Bruno Haible  <bruno@clisp.org>
64430
64431         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64432         * modules/configmake (License): Likewise.
64433         * modules/gettext (License): Likewise.
64434         * modules/gettext-h (License): Likewise.
64435         * modules/include_next (License): Likewise.
64436         * modules/link-warning (License): Likewise.
64437         * modules/localcharset (License): Likewise.
64438         * modules/localename (License): Likewise.
64439         * modules/lock (License): Likewise.
64440         * modules/relocatable-lib-lgpl (License): Likewise.
64441         * modules/size_max (License): Likewise.
64442         * modules/vasnprintf (License): Likewise.
64443         * modules/wchar (License): Likewise.
64444         * modules/xsize (License): Likewise.
64445
64446 2007-07-13  Bruno Haible  <bruno@clisp.org>
64447
64448         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
64449         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
64450
64451 2007-07-12  Bruno Haible  <bruno@clisp.org>
64452
64453         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
64454         in the modules files.
64455
64456 2007-07-11  Karl Berry  <karl@gnu.org>
64457
64458         * MODULES.html.sh (func_module): use
64459          sed -e '\|^'"${includefile}"'$|d'
64460          instead of /.../d, to avoid errors on $includefile's containing /.
64461
64462 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64463
64464         * gnulib-tool (func_import): Avoid duplication of --avoid
64465         statements
64466         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
64467         names to `_' in variable names.
64468
64469 2007-07-10  Eric Blake  <ebb9@byu.net>
64470
64471         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
64472         * NEWS: Document this change.
64473
64474 2007-07-08  Bruno Haible  <bruno@clisp.org>
64475
64476         Update to Unicode 5.0.
64477         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
64478         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
64479         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
64480         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
64481         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64482         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64483         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64484         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64485         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64486         U+10A3F, U+1D242..U+1D244.
64487         (nonspacing_table_ind): Update.
64488         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64489         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64490
64491 2007-07-08  Bruno Haible  <bruno@clisp.org>
64492
64493         Update to Unicode 5.0.
64494         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64495         code transform. Extend the name index field of unicode_name_to_code and
64496         unicode_code_to_name from 16 to 24 bits.
64497         * lib/uniname/uniname.c (unicode_character_name,
64498         unicode_name_character): Add the range 0x12xxx to the code transform.
64499         * lib/uniname/uninames.h: Regenerated.
64500         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64501
64502 2007-07-07  Bruno Haible  <bruno@clisp.org>
64503
64504         * modules/wcwidth-tests: New file.
64505         * tests/test-wcwidth.c: New file.
64506
64507         Work around MacOS X wcwidth() bug.
64508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64509         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64510         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64511         original wcwidth in non-UTF-8 locales.
64512         * modules/wcwidth (Depends-on): Add localcharset, streq,
64513         uniwidth/width.
64514         * doc/functions/wcwidth.texi: Update.
64515
64516 2007-07-07  Bruno Haible  <bruno@clisp.org>
64517
64518         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64519         (wcwidth): New declaration.
64520         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64521         macros.
64522         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64523         here. Prepare for creating <wchar.h> unconditionally.
64524         * modules/wchar (Depends-on): Add link-warning.
64525         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64526         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64527         * lib/wcwidth.h: Remove file.
64528         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64529         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64530         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64531         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64532         (Include): Replace wcwidth.h with <wchar.h>.
64533         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64534         * lib/mbchar.h: Don't include wcwidth.h.
64535         * lib/mbswidth.c: Likewise.
64536         * NEWS: Mention the change.
64537
64538 2007-07-07  Bruno Haible  <bruno@clisp.org>
64539
64540         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64541         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64542         definition with an external declaration.
64543         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64544         defined as a function. Remove AC_C_INLINE requirement.
64545         * modules/wcwidth (Files): Add lib/wcwidth.c.
64546         (Makefile.am): Remove redundant statement.
64547
64548 2007-07-07  Bruno Haible  <bruno@clisp.org>
64549
64550         * MODULES.html.sh (Unicode string functions): Add the new modules.
64551
64552         * tests/uniwidth/test-u32-strwidth.c: New file.
64553         * modules/uniwidth/u32-strwidth-tests: New file.
64554
64555         * lib/uniwidth/u32-strwidth.c: New file.
64556         * modules/uniwidth/u32-strwidth: New file.
64557
64558         * tests/uniwidth/test-u16-strwidth.c: New file.
64559         * modules/uniwidth/u16-strwidth-tests: New file.
64560
64561         * lib/uniwidth/u16-strwidth.c: New file.
64562         * modules/uniwidth/u16-strwidth: New file.
64563
64564         * tests/uniwidth/test-u8-strwidth.c: New file.
64565         * modules/uniwidth/u8-strwidth-tests: New file.
64566
64567         * lib/uniwidth/u8-strwidth.c: New file.
64568         * modules/uniwidth/u8-strwidth: New file.
64569
64570         * tests/uniwidth/test-u32-width.c: New file.
64571         * modules/uniwidth/u32-width-tests: New file.
64572
64573         * lib/uniwidth/u32-width.c: New file.
64574         * modules/uniwidth/u32-width: New file.
64575
64576         * tests/uniwidth/test-u16-width.c: New file.
64577         * modules/uniwidth/u16-width-tests: New file.
64578
64579         * lib/uniwidth/u16-width.c: New file.
64580         * modules/uniwidth/u16-width: New file.
64581
64582         * tests/uniwidth/test-u8-width.c: New file.
64583         * modules/uniwidth/u8-width-tests: New file.
64584
64585         * lib/uniwidth/u8-width.c: New file.
64586         * modules/uniwidth/u8-width: New file.
64587
64588         * tests/uniwidth/test-uc_width.c: New file.
64589         * modules/uniwidth/width-tests: New file.
64590
64591         * lib/uniwidth/width.c: New file, from GNU libiconv.
64592         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64593         * modules/uniwidth/width: New file.
64594
64595         * lib/uniwidth.h: New file, from GNU libiconv.
64596         * modules/uniwidth/base: New file.
64597
64598 2007-07-07  Bruno Haible  <bruno@clisp.org>
64599
64600         * lib/uniname.h: New file, from GNU gettext.
64601         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64602         * lib/uniname/uninames.h: New file, from GNU gettext.
64603         * lib/uniname/uniname.c: New file, from GNU gettext.
64604         * tests/uniname/test-uninames.sh: New file.
64605         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64606         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64607         * modules/uniname/base: New file.
64608         * modules/uniname/uniname: New file.
64609         * modules/uniname/uniname-tests: New file.
64610         * MODULES.html.sh (Unicode string functions): Add the new modules.
64611
64612 2007-07-06  Bruno Haible  <bruno@clisp.org>
64613
64614         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64615
64616 2007-07-06  Bruno Haible  <bruno@clisp.org>
64617
64618         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64619         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64620         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64621         include <sys/time.h>.
64622         Reported by Eric Blake.
64623
64624 2007-07-06  Eric Blake  <ebb9@byu.net>
64625
64626         Fix testing canonicalize on cygwin.
64627         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64628         Revert patch from 2007-06-19.
64629         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64630         canonicalize module is also in use.
64631         * tests/test-canonicalize.c: New file.
64632         * tests/test-canonicalize.sh: Likewise.
64633         * modules/canonicalize-tests: Likewise.
64634
64635 2007-07-06  Jim Meyering  <jim@meyering.net>
64636
64637         * lib/getugroups.c (getugroups): Detect getgrent failure.
64638         Adjust comment to reflect reality: this function may return -1.
64639
64640 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64641
64642         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64643         the new TP address.
64644         (usage): Fix typo
64645         (gnulib_mk): New variable.
64646
64647 2007-07-05  Jim Meyering  <jim@meyering.net>
64648
64649         Don't let endgrent clobber errno, no matter how improbable.
64650         * lib/getugroups.c (getugroups): Save and restore errno around
64651         endgrent call.
64652
64653         Close the group DB even when failing with 2^31 or more members.
64654         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64655
64656 2007-07-04  Jim Meyering  <jim@meyering.net>
64657
64658         * lib/getugroups.h: New file.
64659         * lib/getugroups.c: Include "getugroups.h".
64660         Remove uses of "register" keyword.
64661         Move local variable, "cp", down into scope where used.
64662         Give "username" parameter the "const" attribute.
64663         * modules/getugroups (Files): Add lib/getugroups.h
64664
64665 2007-07-04  Karl Berry  <karl@gnu.org>
64666
64667         * MODULES.html.sh (func_all_modules): Complete rename of
64668         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64669
64670 2007-07-02  Bruno Haible  <bruno@clisp.org>
64671
64672         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64673         mode, when inttypes.h comes from gnulib.
64674         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64675
64676 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64677
64678         * NEWS: Mention lgpl module name change.
64679
64680         * modules/lgpl-2.1: Renamed from lgpl.
64681
64682         * NEWS: Mention gpl module name change.
64683
64684         * modules/gpl-3.0: New file, based on gpl-2.0.
64685
64686         * modules/gpl-2.0: Renamed from gpl.
64687
64688         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64689         doc/gpl-2.0.texi.
64690
64691 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64692
64693         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64694         #define __STDC_LIMIT_MACROS temporarily while including
64695         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64696         Problem reported by Joel E. Denny in
64697         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64698
64699 2007-07-01  Bruno Haible  <bruno@clisp.org>
64700
64701         * lib/unistdio.h: New file.
64702         * lib/unistdio/u-asnprintf.h: New file.
64703         * lib/unistdio/u-asprintf.h: New file.
64704         * lib/unistdio/u-printf-args.c: New file.
64705         * lib/unistdio/u-printf-args.h: New file.
64706         * lib/unistdio/u-printf-parse.h: New file.
64707         * lib/unistdio/u-snprintf.h: New file.
64708         * lib/unistdio/u-sprintf.h: New file.
64709         * lib/unistdio/u-vasprintf.h: New file.
64710         * lib/unistdio/u-vsnprintf.h: New file.
64711         * lib/unistdio/u-vsprintf.h: New file.
64712         * lib/unistdio/ulc-asnprintf.c: New file.
64713         * lib/unistdio/ulc-asprintf.c: New file.
64714         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64715         * lib/unistdio/ulc-printf-parse.c: New file.
64716         * lib/unistdio/ulc-snprintf.c: New file.
64717         * lib/unistdio/ulc-sprintf.c: New file.
64718         * lib/unistdio/ulc-vasnprintf.c: New file.
64719         * lib/unistdio/ulc-vasprintf.c: New file.
64720         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64721         * lib/unistdio/ulc-vsnprintf.c: New file.
64722         * lib/unistdio/ulc-vsprintf.c: New file.
64723         * lib/unistdio/u8-asnprintf.c: New file.
64724         * lib/unistdio/u8-asprintf.c: New file.
64725         * lib/unistdio/u8-printf-parse.c: New file.
64726         * lib/unistdio/u8-snprintf.c: New file.
64727         * lib/unistdio/u8-sprintf.c: New file.
64728         * lib/unistdio/u8-vasnprintf.c: New file.
64729         * lib/unistdio/u8-vasprintf.c: New file.
64730         * lib/unistdio/u8-vsnprintf.c: New file.
64731         * lib/unistdio/u8-vsprintf.c: New file.
64732         * lib/unistdio/u8-u8-asnprintf.c: New file.
64733         * lib/unistdio/u8-u8-asprintf.c: New file.
64734         * lib/unistdio/u8-u8-snprintf.c: New file.
64735         * lib/unistdio/u8-u8-sprintf.c: New file.
64736         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64737         * lib/unistdio/u8-u8-vasprintf.c: New file.
64738         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64739         * lib/unistdio/u8-u8-vsprintf.c: New file.
64740         * lib/unistdio/u16-asnprintf.c: New file.
64741         * lib/unistdio/u16-asprintf.c: New file.
64742         * lib/unistdio/u16-printf-parse.c: New file.
64743         * lib/unistdio/u16-snprintf.c: New file.
64744         * lib/unistdio/u16-sprintf.c: New file.
64745         * lib/unistdio/u16-vasnprintf.c: New file.
64746         * lib/unistdio/u16-vasprintf.c: New file.
64747         * lib/unistdio/u16-vsnprintf.c: New file.
64748         * lib/unistdio/u16-vsprintf.c: New file.
64749         * lib/unistdio/u16-u16-asnprintf.c: New file.
64750         * lib/unistdio/u16-u16-asprintf.c: New file.
64751         * lib/unistdio/u16-u16-snprintf.c: New file.
64752         * lib/unistdio/u16-u16-sprintf.c: New file.
64753         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64754         * lib/unistdio/u16-u16-vasprintf.c: New file.
64755         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64756         * lib/unistdio/u16-u16-vsprintf.c: New file.
64757         * lib/unistdio/u32-asnprintf.c: New file.
64758         * lib/unistdio/u32-asprintf.c: New file.
64759         * lib/unistdio/u32-printf-parse.c: New file.
64760         * lib/unistdio/u32-snprintf.c: New file.
64761         * lib/unistdio/u32-sprintf.c: New file.
64762         * lib/unistdio/u32-vasnprintf.c: New file.
64763         * lib/unistdio/u32-vasprintf.c: New file.
64764         * lib/unistdio/u32-vsnprintf.c: New file.
64765         * lib/unistdio/u32-vsprintf.c: New file.
64766         * lib/unistdio/u32-u32-asnprintf.c: New file.
64767         * lib/unistdio/u32-u32-asprintf.c: New file.
64768         * lib/unistdio/u32-u32-snprintf.c: New file.
64769         * lib/unistdio/u32-u32-sprintf.c: New file.
64770         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64771         * lib/unistdio/u32-u32-vasprintf.c: New file.
64772         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64773         * lib/unistdio/u32-u32-vsprintf.c: New file.
64774         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64775         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64776         * tests/unistdio/test-ulc-printf1.h: New file.
64777         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64778         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64779         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64780         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64781         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64782         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64783         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64784         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64785         * tests/unistdio/test-u8-asnprintf1.c: New file.
64786         * tests/unistdio/test-u8-asnprintf1.h: New file.
64787         * tests/unistdio/test-u8-printf1.h: New file.
64788         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64789         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64790         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64791         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64792         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64793         * tests/unistdio/test-u8-vasprintf1.c: New file.
64794         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64795         * tests/unistdio/test-u8-vsprintf1.c: New file.
64796         * tests/unistdio/test-u16-asnprintf1.c: New file.
64797         * tests/unistdio/test-u16-asnprintf1.h: New file.
64798         * tests/unistdio/test-u16-printf1.h: New file.
64799         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64800         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64801         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64802         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64803         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64804         * tests/unistdio/test-u16-vasprintf1.c: New file.
64805         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64806         * tests/unistdio/test-u16-vsprintf1.c: New file.
64807         * tests/unistdio/test-u32-asnprintf1.c: New file.
64808         * tests/unistdio/test-u32-asnprintf1.h: New file.
64809         * tests/unistdio/test-u32-printf1.h: New file.
64810         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64811         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64812         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64813         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64814         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64815         * tests/unistdio/test-u32-vasprintf1.c: New file.
64816         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64817         * tests/unistdio/test-u32-vsprintf1.c: New file.
64818         * modules/unistdio/base: New file.
64819         * modules/unistdio/u-printf-args: New file.
64820         * modules/unistdio/ulc-asnprintf: New file.
64821         * modules/unistdio/ulc-asprintf: New file.
64822         * modules/unistdio/ulc-fprintf: New file.
64823         * modules/unistdio/ulc-printf-parse: New file.
64824         * modules/unistdio/ulc-snprintf: New file.
64825         * modules/unistdio/ulc-sprintf: New file.
64826         * modules/unistdio/ulc-vasnprintf: New file.
64827         * modules/unistdio/ulc-vasprintf: New file.
64828         * modules/unistdio/ulc-vfprintf: New file.
64829         * modules/unistdio/ulc-vsnprintf: New file.
64830         * modules/unistdio/ulc-vsprintf: New file.
64831         * modules/unistdio/u8-asnprintf: New file.
64832         * modules/unistdio/u8-asprintf: New file.
64833         * modules/unistdio/u8-printf-parse: New file.
64834         * modules/unistdio/u8-snprintf: New file.
64835         * modules/unistdio/u8-sprintf: New file.
64836         * modules/unistdio/u8-vasnprintf: New file.
64837         * modules/unistdio/u8-vasprintf: New file.
64838         * modules/unistdio/u8-vsnprintf: New file.
64839         * modules/unistdio/u8-vsprintf: New file.
64840         * modules/unistdio/u8-u8-asnprintf: New file.
64841         * modules/unistdio/u8-u8-asprintf: New file.
64842         * modules/unistdio/u8-u8-snprintf: New file.
64843         * modules/unistdio/u8-u8-sprintf: New file.
64844         * modules/unistdio/u8-u8-vasnprintf: New file.
64845         * modules/unistdio/u8-u8-vasprintf: New file.
64846         * modules/unistdio/u8-u8-vsnprintf: New file.
64847         * modules/unistdio/u8-u8-vsprintf: New file.
64848         * modules/unistdio/u16-asnprintf: New file.
64849         * modules/unistdio/u16-asprintf: New file.
64850         * modules/unistdio/u16-printf-parse: New file.
64851         * modules/unistdio/u16-snprintf: New file.
64852         * modules/unistdio/u16-sprintf: New file.
64853         * modules/unistdio/u16-vasnprintf: New file.
64854         * modules/unistdio/u16-vasprintf: New file.
64855         * modules/unistdio/u16-vsnprintf: New file.
64856         * modules/unistdio/u16-vsprintf: New file.
64857         * modules/unistdio/u16-u16-asnprintf: New file.
64858         * modules/unistdio/u16-u16-asprintf: New file.
64859         * modules/unistdio/u16-u16-snprintf: New file.
64860         * modules/unistdio/u16-u16-sprintf: New file.
64861         * modules/unistdio/u16-u16-vasnprintf: New file.
64862         * modules/unistdio/u16-u16-vasprintf: New file.
64863         * modules/unistdio/u16-u16-vsnprintf: New file.
64864         * modules/unistdio/u16-u16-vsprintf: New file.
64865         * modules/unistdio/u32-asnprintf: New file.
64866         * modules/unistdio/u32-asprintf: New file.
64867         * modules/unistdio/u32-printf-parse: New file.
64868         * modules/unistdio/u32-snprintf: New file.
64869         * modules/unistdio/u32-sprintf: New file.
64870         * modules/unistdio/u32-vasnprintf: New file.
64871         * modules/unistdio/u32-vasprintf: New file.
64872         * modules/unistdio/u32-vsnprintf: New file.
64873         * modules/unistdio/u32-vsprintf: New file.
64874         * modules/unistdio/u32-u32-asnprintf: New file.
64875         * modules/unistdio/u32-u32-asprintf: New file.
64876         * modules/unistdio/u32-u32-snprintf: New file.
64877         * modules/unistdio/u32-u32-sprintf: New file.
64878         * modules/unistdio/u32-u32-vasnprintf: New file.
64879         * modules/unistdio/u32-u32-vasprintf: New file.
64880         * modules/unistdio/u32-u32-vsnprintf: New file.
64881         * modules/unistdio/u32-u32-vsprintf: New file.
64882         * modules/unistdio/ulc-asnprintf-tests: New file.
64883         * modules/unistdio/ulc-vasnprintf-tests: New file.
64884         * modules/unistdio/ulc-vasprintf-tests: New file.
64885         * modules/unistdio/ulc-vsnprintf-tests: New file.
64886         * modules/unistdio/ulc-vsprintf-tests: New file.
64887         * modules/unistdio/u8-asnprintf-tests: New file.
64888         * modules/unistdio/u8-vasnprintf-tests: New file.
64889         * modules/unistdio/u8-vasprintf-tests: New file.
64890         * modules/unistdio/u8-vsnprintf-tests: New file.
64891         * modules/unistdio/u8-vsprintf-tests: New file.
64892         * modules/unistdio/u16-asnprintf-tests: New file.
64893         * modules/unistdio/u16-vasnprintf-tests: New file.
64894         * modules/unistdio/u16-vasprintf-tests: New file.
64895         * modules/unistdio/u16-vsnprintf-tests: New file.
64896         * modules/unistdio/u16-vsprintf-tests: New file.
64897         * modules/unistdio/u32-asnprintf-tests: New file.
64898         * modules/unistdio/u32-vasnprintf-tests: New file.
64899         * modules/unistdio/u32-vasprintf-tests: New file.
64900         * modules/unistdio/u32-vsnprintf-tests: New file.
64901         * modules/unistdio/u32-vsprintf-tests: New file.
64902         * MODULES.html.sh (Unicode string functions): Add the new modules.
64903
64904 2007-07-01  Bruno Haible  <bruno@clisp.org>
64905
64906         * lib/sprintf.c (sprintf): Limit the available length estimation,
64907         to avoid address wraparound.
64908         * lib/vsprintf.c (vsprintf): Likewise.
64909         * modules/sprintf-posix (Dependencies): Add stdint.
64910         * modules/vsprintf-posix (Dependencies): Likewise.
64911
64912 2007-07-01  Bruno Haible  <bruno@clisp.org>
64913
64914         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64915         Windows PATH as well. Conservative double-quoting. Comments.
64916
64917 2007-07-01  Bruno Haible  <bruno@clisp.org>
64918             Eric Blake  <ebb9@byu.net>
64919             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64920
64921         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64922         empty components in $PATH, denoting '.'.
64923
64924 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64925
64926         * gnulib-tool: Fix indentation.
64927         (func_create_megatestdir): Likewise.
64928         Report by Bruno Haible.
64929
64930 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64931
64932         Sync from Automake.
64933         * build-aux/gnupload: Fix shell portability issues with for loops.
64934         Report by Karl Berry.
64935
64936 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64937
64938         * build-aux/maint.mk (POURL): Use translationproject.org.
64939
64940 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64941             Bruno Haible  <bruno@clisp.org>
64942
64943         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64944         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64945         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64946         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64947         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64948
64949 2007-06-27  Bruno Haible  <bruno@clisp.org>
64950
64951         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64952         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64953
64954 2007-06-26  Karl Berry  <karl@gnu.org>
64955
64956         * MODULES.html.sh: remove xreadlink-with-size.
64957
64958 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64959
64960         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64961         method that I hope also handles the double-include problem noted
64962         by Bruno Haible in
64963         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64964
64965 2007-06-23  Bruno Haible  <bruno@clisp.org>
64966
64967         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64968         Don't let the 'mostlyclean' target fail if the last subdirectory could
64969         not be removed.
64970         Reported by Karl Berry.
64971
64972 2007-06-23  Bruno Haible  <bruno@clisp.org>
64973
64974         * gnulib-tool (echo): Add a speedier workaround for ksh.
64975         * tests/test-echo.sh: Likewise.
64976
64977 2007-06-23  Bruno Haible  <bruno@clisp.org>
64978
64979         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64980         * tests/test-echo.sh: Likewise.
64981
64982 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64983
64984         * gnulib-tool (IFS): Initialize early, so we don't set it to
64985         empty later.
64986         (self_abspathname): Rewrite algorithm to set it, reindent.
64987         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64988         (func_create_megatestdir): Merge some sed scripts.
64989
64990 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64991
64992         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64993         exposed by Sun Studio 11 cc on Solaris 8.
64994
64995 2007-06-22  Bruno Haible  <bruno@clisp.org>
64996
64997         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64998         backslashes.
64999         * tests/test-echo.sh: New file.
65000
65001 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65002
65003         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65004         simplify `sed_replace_build_aux' scripts, they are portable but
65005         echoing them with `echo' is not.
65006         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65007
65008 2007-06-21  Karl Berry  <karl@gnu.org>
65009
65010         * config/srclist.txt: guess we can't handle the licenses via
65011         srclist at the moment.
65012
65013 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65014
65015         * MODULES.html.sh: Add include_next.
65016         * modules/include_next: New file.
65017
65018 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65019
65020         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65021         INCLUDE_NEXT.
65022         (gl_CHECK_NEXT_HEADERS): New macro.
65023         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65024         the obsolescent gl_ABSOLUTE_HEADER.
65025         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65026         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65027         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65028         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65029         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65030         * m4/math_h.m4 (gl_MATH_H): Likewise.
65031         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65032         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65033         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65034         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65035         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65036         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65037         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65038         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65039         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65040         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65041         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65042         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65043         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65044         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65045         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65046         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65047         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65048         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65049         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65050         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65051         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65052         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65053         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65054         * lib/float_.h: Likewise.
65055         * lib/inttypes_.h: Likewise.
65056         * lib/math_.h: Likewise.
65057         * lib/search_.h: Likewise.
65058         * lib/signal_.h: Likewise.
65059         * lib/stdint_.h: Likewise.
65060         * lib/stdio_.h: Likewise.
65061         * lib/stdlib_.h: Likewise.
65062         * lib/string_.h: Likewise.
65063         * lib/sys_stat_.h: Likewise.
65064         * lib/sys_time_.h: Likewise.
65065         * lib/time_.h: Likewise.
65066         * lib/unistd_.h: Likewise.
65067         * lib/wchar_.h: Likewise.
65068         * lib/wctype_.h: Likewise.
65069         * lib/dirent_.h: Likewise.
65070         * lib/iconv_.h: Likewise.
65071         * lib/locale_.h: Likewise.
65072         * lib/netinet_in_.h: Likewise.
65073         * lib/sys_select_.h: Likewise.
65074         * lib/sys_socket_.h: Likewise.
65075         * lib/sysexits_.h: Likewise.
65076         * modules/fcntl (Depends-on): Depend on include_next, not
65077         absolute_header.
65078         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65079         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65080         * modules/fchdir: Likewise.
65081         * modules/float: Likewise.
65082         * modules/iconv_open: Likewise.
65083         * modules/inttypes: Likewise.
65084         * modules/locale: Likewise.
65085         * modules/math: Likewise.
65086         * modules/netinet_in: Likewise.
65087         * modules/search: Likewise.
65088         * modules/signal: Likewise.
65089         * modules/stdint: Likewise.
65090         * modules/stdio: Likewise.
65091         * modules/stdlib: Likewise.
65092         * modules/string: Likewise.
65093         * modules/sys_select: Likewise.
65094         * modules/sys_socket: Likewise.
65095         * modules/sys_stat: Likewise.
65096         * modules/sys_time: Likewise.
65097         * modules/sysexits: Likewise.
65098         * modules/time: Likewise.
65099         * modules/unistd: Likewise.
65100         * modules/wchar: Likewise.
65101         * modules/wctype: Likewise.
65102         * modules/sys_stat: Change maintainer to "all".
65103         * modules/unistd: Likewise.
65104
65105 2007-06-20  Karl Berry  <karl@gnu.org>
65106
65107         * config/srclist.txt: track www changes in license files.
65108
65109 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65110
65111         * build-aux/bootstrap: Remove stray dot.
65112         Make sure build_aux settings are honored when linking
65113         gnulib_extra_files.
65114
65115 2007-06-19  Eric Blake  <ebb9@byu.net>
65116
65117         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65118         Allow compilation on cygwin.
65119
65120 2007-06-19  Jim Meyering  <jim@meyering.net>
65121
65122         xreadlink-with-size: Remove module.  No longer used.
65123         Ex-callers now use xreadlink or mreadlink-with-size.
65124         * modules/xreadlink-with-size: Remove module.
65125         * lib/xreadlink-with-size.c: Remove file.
65126         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65127         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65128         just before the function definition *is* accurate.
65129
65130         Eliminate one way canonicalize_filename_mode could exit.
65131         * lib/canonicalize.c (canonicalize_filename_mode):
65132         Use mreadlink_with_size, not xreadlink_with_size.
65133
65134 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65135
65136         Detect porting problems to FreeBSD/arm, which has time_t wider than
65137         long int.  Original problem reported for GNU diff by Xin Li in
65138         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65139         * modules/getdate (Depends-on): Add intprops, verify.
65140         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65141         is an integer type no wider than long int.
65142
65143 2007-06-18  Jim Meyering  <jim@meyering.net>
65144
65145         New module: mreadlink-with-size.
65146         * MODULES.html.sh: Add mreadlink-with-size.
65147         * modules/mreadlink-with-size: New module
65148         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65149         not xreadlink-with-size.
65150         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65151
65152 2007-06-16  Bruno Haible  <bruno@clisp.org>
65153
65154         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65155         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65156         Reported by Gary V. Vaughan <gary@gnu.org>.
65157
65158 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65159
65160         Revamp lchown so that it lives in unistd.h where it belongs.
65161         * lib/lchown.h: Remove.
65162         * lib/dirchownmod.c: Don't include lib/lchown.h.
65163         * lib/fchownat.c: Likewise.
65164         * lib/openat.c: Likewise.
65165         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65166         does not follow symlinks.
65167         (EOPNOTSUPP): Define if not defined.
65168         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65169         is defined to 0.
65170         (lchown): New decl.
65171         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65172         Do not check for lchown decl.
65173         Set REPLACE_LCHOWN.
65174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65175         REPLACE_LCHOWN.
65176         * modules/chown: Make it clear it follows symlinks.
65177         * modules/lchown: Make it clear it doesn't follow symlinks.
65178         (Files): Remove lib/lchown.h
65179         (Depends-on): Add unistd.
65180         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65181         (Include): Include <unistd.h>, not "lchown.h".
65182         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65183         REPLACE_LCHOWN.
65184
65185 2007-06-15  Jim Meyering  <jim@meyering.net>
65186
65187         Change license (GPL to LGPL) of fsusage and dependents.
65188         * modules/fsusage (License): Change to LGPL.
65189         * modules/full-read (License): Likewise.
65190         * modules/full-write (License): Likewise.
65191         * modules/safe-read (License): Likewise.
65192         * modules/safe-write (License): Likewise.
65193
65194 2007-06-14  Ben Pfaff  <blp@gnu.org>
65195
65196         Missing part of allocsa -> malloca transition.
65197         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65198         gl_MALLOCA.
65199
65200 2007-06-12  Bruno Haible  <bruno@clisp.org>
65201
65202         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65203         to ia64, x86_64, i386.
65204         Reported by Eric Blake.
65205
65206 2007-06-12  Bruno Haible  <bruno@clisp.org>
65207
65208         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65209         cross-compiling to x86_64.
65210
65211 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65212
65213         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65214         glitch reported by Ralf Wildenhues in
65215         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65216
65217         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65218         Vin Shelton.
65219
65220 2007-06-11  Bruno Haible  <bruno@clisp.org>
65221
65222         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65223         replacement string.
65224         Reported by Eric Blake.
65225
65226 2007-06-10  Bruno Haible  <bruno@clisp.org>
65227
65228         Prepare vasnprintf code for use with Unicode strings.
65229         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65230         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65231         TYPE_U32_STRING.
65232         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65233         a_u32_string variants.
65234         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65235         * lib/printf-args.c: Don't include config.h and the specification
65236         header if PRINTF_FETCHARGS is already defined.
65237         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65238         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65239         TYPE_U16_STRING, TYPE_U32_STRING.
65240         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65241         u16_directive, u16_directives, u32_directive, u32_directives): New
65242         types.
65243         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65244         New declarations.
65245         * lib/printf-parse.c: Don't include config.h and the specification
65246         header if PRINTF_PARSE is already defined. Eliminate the set of
65247         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65248         them now. Include c-ctype.h.
65249         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65250         directive and CHAR_T_ONLY_ASCII.
65251         * lib/vasnprintf.c: Don't include config.h and the specification header
65252         if VASNPRINTF is already defined.
65253         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65254         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
65255         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
65256         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
65257         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
65258         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
65259         code accordingly.
65260         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
65261         pad_ourselves also in this case, with the 'c' and 's' directives, and
65262         with a different notion of "width".
65263         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
65264
65265 2007-06-10  Bruno Haible  <bruno@clisp.org>
65266
65267         * modules/unistr/u32-mbsnlen: New file.
65268         * lib/unistr/u32-mbsnlen.c: New file.
65269
65270         * modules/unistr/u16-mbsnlen: New file.
65271         * lib/unistr/u16-mbsnlen.c: New file.
65272
65273         * modules/unistr/u8-mbsnlen: New file.
65274         * lib/unistr/u8-mbsnlen.c: New file.
65275
65276         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65277         declarations.
65278
65279 2007-06-10  Bruno Haible  <bruno@clisp.org>
65280
65281         * lib/string_.h (mbsnlen): New declaration.
65282         * lib/mbsnlen.c: New file.
65283         * m4/mbsnlen.m4: New file.
65284         * modules/mbsnlen: New file.
65285         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65286         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65287         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65288
65289 2007-06-10  Bruno Haible  <bruno@clisp.org>
65290
65291         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65292
65293 2007-06-10  Bruno Haible  <bruno@clisp.org>
65294
65295         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65296         * lib/mbuiter.h: Likewise.
65297
65298 2007-06-10  Bruno Haible  <bruno@clisp.org>
65299
65300         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65301         declaration.
65302
65303 2007-06-10  Karl Berry  <karl@gnu.org>
65304
65305         * config/srclist.txt: remove gettext entries, Bruno prefers
65306         to update individually.
65307
65308 2007-06-10  Bruno Haible  <bruno@clisp.org>
65309
65310         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65311         'maxlen'. Ensure only length + width bytes are allocated, not
65312         length + 1 + width.
65313
65314 2007-06-09  Bruno Haible  <bruno@clisp.org>
65315
65316         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65317         (CHAR_T): Remove macro.
65318         (VASNPRINTF): Update.
65319
65320 2007-06-09  Bruno Haible  <bruno@clisp.org>
65321
65322         * MODULES.html.sh (Unicode string functions): Add the new modules.
65323
65324         * modules/uniconv/u32-conv-to-enc: New file.
65325         * lib/uniconv/u32-conv-to-enc.c: New file.
65326         * modules/uniconv/u32-conv-to-enc-tests: New file.
65327         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65328
65329         * modules/uniconv/u16-conv-to-enc: New file.
65330         * lib/uniconv/u16-conv-to-enc.c: New file.
65331         * lib/uniconv/u-conv-to-enc.h: New file.
65332         * modules/uniconv/u16-conv-to-enc-tests: New file.
65333         * tests/uniconv/test-u16-conv-to-enc.c: New file.
65334
65335         * modules/uniconv/u8-conv-to-enc: New file.
65336         * lib/uniconv/u8-conv-to-enc.c: New file.
65337         * modules/uniconv/u8-conv-to-enc-tests: New file.
65338         * tests/uniconv/test-u8-conv-to-enc.c: New file.
65339
65340         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65341         u32_conv_to_encoding): New declarations.
65342
65343 2007-06-09  Bruno Haible  <bruno@clisp.org>
65344
65345         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
65346
65347 2007-06-09  Bruno Haible  <bruno@clisp.org>
65348
65349         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
65350         * modules/malloca: Renamed from modules/allocsa, updated.
65351         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
65352         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
65353         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
65354         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
65355         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
65356         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
65357         * modules/xmalloca: Renamed from modules/xallocsa, updated.
65358         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
65359         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
65360         * modules/c-strcasestr (Depends-on): Update.
65361         * lib/c-strcasestr.c: Update.
65362         * modules/c-strstr (Depends-on): Update.
65363         * lib/c-strstr.c: Update.
65364         * modules/canonicalize-lgpl (Depends-on): Update.
65365         * lib/canonicalize-lgpl.c: Update.
65366         * modules/clean-temp (Depends-on): Update.
65367         * lib/clean-temp.c: Update.
65368         * modules/csharpcomp (Depends-on): Update.
65369         * lib/csharpcomp.c: Update.
65370         * modules/csharpexec (Depends-on): Update.
65371         * lib/csharpexec.c: Update.
65372         * modules/javacomp (Depends-on): Update.
65373         * lib/javacomp.c: Update.
65374         * modules/javaexec (Depends-on): Update.
65375         * lib/javaexec.c: Update.
65376         * modules/mbscasestr (Depends-on): Update.
65377         * lib/mbscasestr.c: Update.
65378         * modules/mbsstr (Depends-on): Update.
65379         * lib/mbsstr.c: Update.
65380         * modules/setenv (Depends-on): Update.
65381         * lib/setenv.c: Update.
65382         * modules/strcasestr (Depends-on): Update.
65383         * lib/strcasestr.c: Update.
65384         * modules/striconveha (Depends-on): Update.
65385         * lib/striconveha.c: Update.
65386         * modules/relocatable-prog-wrapper (Files): Update.
65387         * lib/relocwrapper.c: Update.
65388         * build-aux/install-reloc: Update.
65389         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65390
65391 2007-06-08  Bruno Haible  <bruno@clisp.org>
65392
65393         Port to uClibc.
65394         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65395         * lib/fpurge.c (fpurge): Likewise.
65396         * lib/freading.c (freading): Likewise.
65397         * lib/fseeko.c (rpl_fseeko): Likewise.
65398         * lib/fseterr.c (fseterr): Likewise.
65399         * lib/fwriting.c (fwriting): Likewise.
65400         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65401
65402 2007-06-08  Bruno Haible  <bruno@clisp.org>
65403
65404         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65405         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
65406         * modules/gettext (Files): Add m4/intlmacosx.m4.
65407
65408 2007-06-07  Bruno Haible  <bruno@clisp.org>
65409
65410         * modules/localename-tests: New file.
65411         * tests/test-localename.c: New file.
65412
65413         New module 'localename'.
65414         * lib/localename.h: New file.
65415         * lib/localename.c: New file, from GNU gettext.
65416         * m4/localename.m4: New file.
65417         * modules/localename: New file.
65418
65419 2007-06-07  Bruno Haible  <bruno@clisp.org>
65420
65421         Work around the lack of <wchar.h> on some builds of uClibc.
65422         * doc/headers/wchar.texi: Update.
65423         * lib/wchar_.h: Include <wchar.h> only if it exists.
65424         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
65425         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
65426         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65427         doesn't exist.
65428         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65429         * modules/mbfile (Depends-on): Add wchar.
65430         * modules/mbiter (Depends-on): Likewise.
65431         * modules/mbuiter (Depends-on): Likewise.
65432         Reported by Simon Josefsson.
65433
65434 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65435
65436         Work around problem reported by Steven M. Schweda in
65437         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
65438         Tru64 5.1B with the Compaq compiler environment installed declares
65439         an 'isblank' function but does not define it in the C library.
65440         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
65441         * lib/regex_internal.h (isblank): Likewise.
65442         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
65443         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65444
65445 2007-06-05  Bruno Haible  <bruno@clisp.org>
65446
65447         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
65448         ia64.
65449         * modules/printf-safe: New file.
65450         * modules/fprintf-posix (Depends-on): Add printf-safe.
65451         * modules/printf-posix (Depends-on): Likewise.
65452         * modules/snprintf-posix (Depends-on): Likewise.
65453         * modules/sprintf-posix (Depends-on): Likewise.
65454         * modules/vasnprintf-posix (Depends-on): Likewise.
65455         * modules/vasprintf-posix (Depends-on): Likewise.
65456         * modules/vfprintf-posix (Depends-on): Likewise.
65457         * modules/vprintf-posix (Depends-on): Likewise.
65458         * modules/vsnprintf-posix (Depends-on): Likewise.
65459         * modules/vsprintf-posix (Depends-on): Likewise.
65460         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
65461         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
65462         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
65463         "no" on i386, x86_64, ia64.
65464         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
65465         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65466         on i386, x86_64, ia64.
65467         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
65468         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65469         on i386, x86_64, ia64.
65470         * tests/test-vasnprintf-posix.c: Include float.h.
65471         (LDBL80_WORDS): New macro.
65472         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65473         on i386, x86_64, ia64.
65474         * tests/test-vasprintf-posix.c: Include float.h.
65475         (LDBL80_WORDS): New macro.
65476         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65477         on i386, x86_64, ia64.
65478         * tests/test-snprintf-posix.c: Include float.h.
65479         * tests/test-sprintf-posix.c: Likewise.
65480         * tests/test-vsnprintf-posix.c: Likewise.
65481         * tests/test-vsprintf-posix.c: Likewise.
65482
65483 2007-06-05  Bruno Haible  <bruno@clisp.org>
65484
65485         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65486         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65487         non-IEEE numbers on i386, x86_64, ia64.
65488         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65489         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65490         * tests/test-isnanl.h: Include float.h.
65491         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65492
65493 2007-06-05  Bruno Haible  <bruno@clisp.org>
65494
65495         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65496         also the %a / %A. Handle the %a / %A code before this extra handling.
65497
65498 2007-06-05  Bruno Haible  <bruno@clisp.org>
65499
65500         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65501         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65502
65503 2007-06-05  Bruno Haible  <bruno@clisp.org>
65504
65505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65506         typo in variable name.
65507
65508 2007-06-05  Eric Blake  <ebb9@byu.net>
65509
65510         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65511         Reported by Simon Josefsson.
65512
65513 2007-06-04  Bruno Haible  <bruno@clisp.org>
65514
65515         Avoid test failures on some PowerPC platforms.
65516         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65517         Define differently for PowerPC.
65518         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65519         Reported by Gary V. Vaughan <gary@gnu.org>.
65520
65521 2007-06-02  Bruno Haible  <bruno@clisp.org>
65522
65523         Fix test-stdint failure on FreeBSD/ia64.
65524         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65525         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65526         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65527         * doc/headers/stdint.texi: Update.
65528
65529 2007-06-01  Bruno Haible  <bruno@clisp.org>
65530
65531         * tests/test-binary-io.c (main): Pass a third argument to open().
65532         Reported by Gary V. Vaughan <gary@gnu.org>.
65533
65534 2007-06-01  Bruno Haible  <bruno@clisp.org>
65535
65536         * doc/functions/frexpl.texi: Update for mingw.
65537
65538 2007-06-01  Bruno Haible  <bruno@clisp.org>
65539
65540         * tests/test-lseek.c (main): Disable test of errno for invalid third
65541         argument.
65542         * doc/functions/lseek.texi: Update.
65543         Reported by Gary V. Vaughan <gary@gnu.org>.
65544
65545 2007-05-28  Bruno Haible  <bruno@clisp.org>
65546
65547         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65548
65549 2007-05-31  Eric Blake  <ebb9@byu.net>
65550
65551         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65552         cross compiling.
65553
65554 2007-05-30  Eric Blake  <ebb9@byu.net>
65555         and Bruno Haible  <bruno@clisp.org>
65556
65557         Work around mingw test failures exposed by m4-1.4.9b.
65558         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65559         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65560         moment.
65561
65562 2007-05-30  Bruno Haible  <bruno@clisp.org>
65563
65564         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65565         assuming that they are closed. Needed on HP-UX 11.
65566
65567 2007-05-29  Bruno Haible  <bruno@clisp.org>
65568
65569         Fix a problem with #include_next.
65570         * lib/dirent_.h: Split the double-inclusion guard.
65571         * lib/fcntl_.h: Likewise.
65572         * lib/float_.h: Likewise.
65573         * lib/iconv_.h: Likewise.
65574         * lib/inttypes_.h: Likewise.
65575         * lib/locale_.h: Likewise.
65576         * lib/math_.h: Likewise.
65577         * lib/netinet_in_.h: Likewise.
65578         * lib/search_.h: Likewise.
65579         * lib/signal_.h: Likewise.
65580         * lib/stdint_.h: Likewise.
65581         * lib/stdio_.h: Likewise.
65582         * lib/stdlib_.h: Likewise.
65583         * lib/string_.h: Likewise.
65584         * lib/sys_select_.h: Likewise.
65585         * lib/sys_socket_.h: Likewise.
65586         * lib/sys_stat_.h: Likewise.
65587         * lib/sys_time_.h: Likewise.
65588         * lib/sysexits_.h: Likewise.
65589         * lib/time_.h: Likewise.
65590         * lib/unistd_.h: Likewise.
65591         * lib/wchar_.h: Likewise.
65592         * lib/wctype_.h: Likewise.
65593
65594 2007-05-29  Bruno Haible  <bruno@clisp.org>
65595
65596         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65597         for the moment.
65598
65599 2007-05-29  Bruno Haible  <bruno@clisp.org>
65600
65601         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65602         invocation.
65603         Reported by Eric Blake.
65604
65605 2007-05-29  Bruno Haible  <bruno@clisp.org>
65606
65607         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65608         compiling case.
65609
65610 2007-05-29  Eric Blake  <ebb9@byu.net>
65611             Bruno Haible  <bruno@clisp.org>
65612
65613         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65614         cross compiles.
65615
65616 2007-05-28  Eric Blake  <ebb9@byu.net>
65617
65618         * modules/closein-tests (test_closein_LDADD): Support test on
65619         cygwin with libtool.
65620
65621 2007-05-28  Bruno Haible  <bruno@clisp.org>
65622
65623         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65624         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65625         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65626         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65627         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65628         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65629         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65630         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65631         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65632
65633 2007-05-28  Eric Blake  <ebb9@byu.net>
65634
65635         Unconditionally include <config.h> in unit tests.
65636         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65637         * tests/test-allocsa.c, tests/test-arcfour.c,
65638         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65639         tests/test-array_list.c, tests/test-array_oset.c,
65640         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65641         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65642         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65643         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65644         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65645         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65646         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65647         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65648         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65649         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65650         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65651         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65652         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65653         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65654         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65655         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65656         test-md5.c, test-memmem.c, test-printf-posix.c,
65657         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65658         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65659         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65660         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65661         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65662         test-vasnprintf-posix2.c, test-vasnprintf.c,
65663         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65664         test-vfprintf-posix.c, test-vprintf-posix.c,
65665         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65666         test-xvasprintf.c: Likewise.
65667
65668 2007-05-28  Bruno Haible  <bruno@clisp.org>
65669
65670         * gnulib-tool (func_import): Remember the --with-tests command-line
65671         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65672         Reported by Eric Blake.
65673
65674 2007-05-28  Bruno Haible  <bruno@clisp.org>
65675
65676         * modules/ftell-tests: New file.
65677         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65678         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65679
65680         * lib/ftell.c: New file.
65681         * modules/ftell: New file.
65682         * m4/ftell.m4: New file.
65683         * doc/functions/ftell.texi: Update.
65684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65685         REPLACE_FTELL.
65686         * lib/stdio_.h (rpl_ftell): New declaration.
65687         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65688         REPLACE_FTELL.
65689
65690 2007-05-28  Eric Blake  <ebb9@byu.net>
65691
65692         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65693
65694 2007-05-28  Bruno Haible  <bruno@clisp.org>
65695
65696         * modules/fseek-tests: New file.
65697         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65698         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65699
65700         * lib/fseek.c: New file.
65701         * modules/fseek: New file.
65702         * m4/fseek.m4: New file.
65703         * doc/functions/fseek.texi: Update.
65704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65705         REPLACE_FSEEK.
65706         * lib/stdio_.h (rpl_fseek): New declaration.
65707         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65708         REPLACE_FSEEK.
65709
65710 2007-05-28  Bruno Haible  <bruno@clisp.org>
65711
65712         * lib/stdio_.h (fflush): More comments.
65713
65714 2007-05-28  Bruno Haible  <bruno@clisp.org>
65715
65716         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65717         runtime test.
65718
65719 2007-05-28  Eric Blake  <ebb9@byu.net>
65720
65721         Improve lseek module.
65722         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65723         * lib/unistd_.h (lseek): Scale back link warning message.
65724         * tests/test-lseek.c: Beef up test.
65725         * tests/test-lseek.sh: Exercise more facets of lseek.
65726         Reported by Bruno Haible.
65727
65728 2007-05-28  Bruno Haible  <bruno@clisp.org>
65729
65730         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65731         to define.
65732
65733 2007-05-27  Bruno Haible  <bruno@clisp.org>
65734
65735         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65736
65737 2007-05-27  Bruno Haible  <bruno@clisp.org>
65738
65739         * modules/openmp: New file.
65740         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65741         Noah Misch.
65742
65743 2007-05-26  Bruno Haible  <bruno@clisp.org>
65744
65745         * modules/chdir-long (Depends-on): Add fchdir.
65746         * modules/chdir-safer (Depends-on): Likewise.
65747         * modules/fts (Depends-on): Likewise.
65748         * modules/fts-lgpl (Depends-on): Likewise.
65749         * modules/openat (Depends-on): Likewise.
65750         * modules/savewd (Depends-on): Likewise.
65751
65752 2007-05-24  Eric Blake  <ebb9@byu.net>
65753
65754         Fix lseek on mingw.
65755         * modules/lseek: New module.
65756         * m4/lseek.m4: New file.
65757         * lib/lseek.c: New file.
65758         * modules/lseek-tests: New file.
65759         * tests/test-lseek.c: New file.
65760         * tests/test-lseek.sh: New file.
65761         * MODULES.html.sh: Document lseek module.
65762         * modules/fflush (Depends-on): Add lseek, fseeko.
65763         * modules/fseeko (Depends-on): Likewise.
65764         * modules/ftello (Depends-on): Likewise.
65765         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65766         broken.
65767         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65768         broken.
65769         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65770         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65771         * lib/ftello.c (rpl_ftello): Likewise.
65772         * tests/test-fseeko.c (main): Test this.
65773         * tests/test-fseeko.sh: Likewise.
65774         * tests/test-ftello.c (main): Likewise.
65775         * tests/test-ftello.sh: Likewise.
65776         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65777         implies replacing fseek.
65778         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65779         HAVE_FTELLO.
65780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65781         * modules/unistd (Makefile.am): Likewise.
65782         * lib/unistd_.h (lseek): Declare a replacement.
65783         * doc/functions/lseek.texi (lseek): Document this fix.
65784         * doc/functions/fseek.texi (fseek): Likewise.
65785         * doc/functions/ftell.texi (ftell): Likewise.
65786
65787 2007-05-24  Bruno Haible  <bruno@clisp.org>
65788
65789         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65790         in the printed representation of a NaN.
65791         * tests/test-vasprintf-posix.c (test_function): Likewise.
65792         * tests/test-snprintf-posix.h (test_function): Likewise.
65793         * tests/test-sprintf-posix.h (test_function): Likewise.
65794         Reported by Eric Blake.
65795
65796 2007-05-23  Eric Blake  <ebb9@byu.net>
65797
65798         Fix fseeko/ftello on cygwin 1.5.24.
65799         * doc/functions/fseeko.texi (fseeko): Document the fix.
65800         * doc/functions/ftello.texi (ftello): Document the fix.
65801         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65802         * doc/functions/stdout.text (stdout): New file.
65803         * doc/functions/stderr.text (stderr): New file.
65804         * doc/gnulib.texi (Function Substitutes): Use new files.
65805         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65806         prior to 1.7.0.
65807         * tests/test-ftello.c (main): Likewise for ftello.
65808         * tests/test-fseeko.sh: New file.
65809         * tests/test-ftello.sh: New file.
65810         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65811         with seekable stdin.
65812         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65813         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65814         (gl_REPLACE_FSEEKO): New macro.
65815         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65816         * modules/fseeko (Files): Distribute fseeko.c.
65817         * modules/ftello (Files): Distribute ftello.c.
65818         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65819         mode.
65820         * lib/ftello.c (rpl_ftello): New file.
65821         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65822         fseeko, ftello.
65823         (gl_STDIN_LARGE_OFFSET): New macro.
65824         * modules/stdio (Makefile.am): Perform the replacement.
65825         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65826
65827 2007-05-23  Bruno Haible  <bruno@clisp.org>
65828
65829         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65830         GNULIB_POSIXCHECK is defined.
65831
65832 2007-05-21  Bruno Haible  <bruno@clisp.org>
65833
65834         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65835         Check also the output for NaN arguments. When cross-compiling, guess
65836         no on IRIX.
65837         * lib/vasnprintf.c: Update comments.
65838         * tests/test-vasnprintf-posix.c (strisnan): New function.
65839         (test_function): Use it.
65840         * tests/test-vasprintf-posix.c (strisnan): New function.
65841         (test_function): Use it.
65842         * tests/test-snprintf-posix.h (strisnan): New function.
65843         (test_function): Use it.
65844         * tests/test-sprintf-posix.h (strisnan): New function.
65845         (test_function): Use it.
65846         Reported by Eric Blake.
65847
65848 2007-05-20  Bruno Haible  <bruno@clisp.org>
65849
65850         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65851         numbers that fails on BeOS.
65852         * doc/functions/frexpl.texi: Update.
65853
65854 2007-05-20  Jim Meyering  <jim@meyering.net>
65855
65856         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65857         forced upon us by glibc-2.6.
65858
65859 2007-05-20  Bruno Haible  <bruno@clisp.org>
65860
65861         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65862         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65863         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65864         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65865         NEED_PRINTF_INFINITE.
65866         (is_infinitel): New function.
65867         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65868         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65869         gl_PREREQ_VASNPRINTF_INFINITE.
65870         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65871         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65872         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65873         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65874         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65875         gl_PREREQ_VASNPRINTF_INFINITE.
65876         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65877         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65879         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65880         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65881         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65882         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65883         * doc/functions/fprintf.texi: Update.
65884         * doc/functions/printf.texi: Update.
65885         * doc/functions/snprintf.texi: Update.
65886         * doc/functions/sprintf.texi: Update.
65887         * doc/functions/vfprintf.texi: Update.
65888         * doc/functions/vprintf.texi: Update.
65889         * doc/functions/vsnprintf.texi: Update.
65890         * doc/functions/vsprintf.texi: Update.
65891
65892 2007-05-20  Bruno Haible  <bruno@clisp.org>
65893
65894         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65895         was not found in libc.
65896         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65897
65898 2007-05-20  Bruno Haible  <bruno@clisp.org>
65899
65900         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65901         printed as "-nan" instead of "nan".
65902         * tests/test-vasprintf-posix.c (test_function): Likewise.
65903         * tests/test-snprintf-posix.h (test_function): Likewise.
65904         * tests/test-sprintf-posix.h (test_function): Likewise.
65905         Needed for HP-UX 11.
65906
65907 2007-05-20  Jim Meyering  <jim@meyering.net>
65908
65909         Fix buggy test for the fchownat-deref bug.
65910         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65911         symlink required for the run-test.  Without it, this test would
65912         always declare that fchownat doesn't work, and client code would
65913         unnecessarily use the replacement function with fixed libc.
65914         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65915         Reported by Greg Schafer.
65916
65917 2007-05-19  Bruno Haible  <bruno@clisp.org>
65918
65919         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65920         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65921         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65922         Needed for IRIX 6.5 and Solaris 2.5.1.
65923
65924 2007-05-19  Bruno Haible  <bruno@clisp.org>
65925
65926         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65927         (test_function): Skip tests involving -0.0 on platforms where
65928         -0.0 = 0.0.
65929         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65930         (test_function): Skip tests involving -0.0 on platforms where
65931         -0.0 = 0.0.
65932         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65933         (test_function): Skip tests involving -0.0 on platforms where
65934         -0.0 = 0.0.
65935         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65936         (test_function): Skip tests involving -0.0 on platforms where
65937         -0.0 = 0.0.
65938         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65939         tests.
65940         * tests/test-printf-posix.h (test_function): Likewise.
65941         * tests/test-printf-posix.output: Remove all -0.0 related results.
65942         Needed for IRIX 6.5.
65943
65944 2007-05-19  Bruno Haible  <bruno@clisp.org>
65945
65946         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65947         printed as "nan0x7fffffff" instead of "nan".
65948         * tests/test-vasprintf-posix.c (test_function): Likewise.
65949         * tests/test-snprintf-posix.h (test_function): Likewise.
65950         * tests/test-sprintf-posix.h (test_function): Likewise.
65951         * tests/test-fprintf-posix.h (NaN): Remove macro.
65952         (test_function): Remove all NaN related tests.
65953         * tests/test-printf-posix.h (NaN): Remove macro.
65954         (test_function): Remove all NaN related tests.
65955         * tests/test-printf-posix.output: Remove all NaN related results.
65956         Needed for IRIX 6.5.
65957
65958 2007-05-19  Bruno Haible  <bruno@clisp.org>
65959
65960         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65961         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65962
65963 2007-05-19  Bruno Haible  <bruno@clisp.org>
65964
65965         * lib/float_.h: New file.
65966         * m4/float_h.m4: New file.
65967         * modules/float: New file.
65968         * modules/isnanl (Dependencies): Add float.
65969         * modules/isnanl-nolibm (Dependencies): Likewise.
65970         * modules/mathl (Dependencies): Likewise.
65971         * modules/printf-frexpl (Dependencies): Likewise.
65972         * modules/signbit (Dependencies): Likewise.
65973         * modules/vasnprintf (Dependencies): Likewise.
65974         * doc/headers/float.texi: Update.
65975
65976 2007-05-19  Jim Meyering  <jim@meyering.net>
65977
65978         * lib/utimens.c (gl_futimens): Rename from futimens,
65979         now that glibc-2.6 declares futimens.
65980         * lib/utimens.h: Likewise.
65981
65982 2007-05-19  Bruno Haible  <bruno@clisp.org>
65983
65984         Avoid test failures on mingw.
65985         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65986         * tests/test-printf-posix.sh: Likewise.
65987         * tests/test-vfprintf-posix.sh: Likewise.
65988         * tests/test-vprintf-posix.sh: Likewise.
65989
65990 2007-05-19  Bruno Haible  <bruno@clisp.org>
65991
65992         Fix *printf result for NaN, Inf, -0.0 on mingw.
65993         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65994         * lib/vasnprintf.c: Include math.h and isnan.h.
65995         (is_infinite_or_zero): New function.
65996         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65997         values in the %f, %F, %e, %E, %g, %G directives.
65998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65999         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66000         gl_PRINTF_INFINITE and test its result. Invoke
66001         gl_PREREQ_VASNPRINTF_INFINITE.
66002         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66003         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66004         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66005         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66006         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66007         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66008         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66009         * doc/functions/fprintf.texi: Update.
66010         * doc/functions/printf.texi: Update.
66011         * doc/functions/snprintf.texi: Update.
66012         * doc/functions/sprintf.texi: Update.
66013         * doc/functions/vfprintf.texi: Update.
66014         * doc/functions/vprintf.texi: Update.
66015         * doc/functions/vsnprintf.texi: Update.
66016         * doc/functions/vsprintf.texi: Update.
66017
66018 2007-05-19  Bruno Haible  <bruno@clisp.org>
66019
66020         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66021         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66022         Instead of multiplying with 10^k, set extra_zeroes to k.
66023         (scale10_round_long_double): Remove function.
66024
66025 2007-05-18  Bruno Haible  <bruno@clisp.org>
66026
66027         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66028         introduced on 2007-05-06.
66029
66030 2007-05-18  Bruno Haible  <bruno@clisp.org>
66031
66032         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66033         %g directives.
66034         * tests/test-vasprintf-posix.c (test_function): Likewise.
66035         * tests/test-snprintf-posix.h (test_function): Likewise.
66036         * tests/test-sprintf-posix.h (test_function): Likewise.
66037
66038 2007-05-18  Bruno Haible  <bruno@clisp.org>
66039
66040         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66041         (strmatch): New function.
66042         (test_function): Test the %f directive on numbers of various exponents.
66043         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66044         (strmatch): New function.
66045         (test_function): Test the %f directive on numbers of various exponents.
66046         * tests/test-snprintf-posix.h (strmatch): New function.
66047         (test_function): Test the %f directive on numbers of various exponents.
66048         * tests/test-sprintf-posix.h (strmatch): New function.
66049         (test_function): Test the %f directive on numbers of various exponents.
66050         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66051         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66052         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66053         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66054
66055 2007-05-18  Bruno Haible  <bruno@clisp.org>
66056
66057         Add support for 'long double' number output.
66058         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66059         * lib/vasnprintf.c: Include math.h and float+.h.
66060         (mp_limb_t): New type.
66061         (GMP_LIMB_BITS): New macro.
66062         (mp_twolimb_t): New type.
66063         (GMP_TWOLIMB_BITS): New macro.
66064         (mpn_t): New type.
66065         (multiply, divide, convert_to_decimal, decode_long_double,
66066         scale10_round_long_double, scale10_round_decimal_long_double,
66067         floorlog10l): New functions.
66068         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66069         for the %f, %F, %e, %E, %g, %G directives.
66070         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66071         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66072         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66073         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66074         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66075         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66076         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66077         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66078         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66079         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66080         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66081         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66082         * modules/snprintf-posix (Depends-on): Likewise.
66083         * modules/sprintf-posix (Depends-on): Likewise.
66084         * modules/vasnprintf-posix (Depends-on): Likewise.
66085         * modules/vasprintf-posix (Depends-on): Likewise.
66086         * modules/vfprintf-posix (Depends-on): Likewise.
66087         * modules/vsnprintf-posix (Depends-on): Likewise.
66088         * modules/vsprintf-posix (Depends-on): Likewise.
66089         * modules/vasnprintf (Files): Add lib/float+.h.
66090         * doc/functions/fprintf.texi: Update.
66091         * doc/functions/printf.texi: Update.
66092         * doc/functions/snprintf.texi: Update.
66093         * doc/functions/sprintf.texi: Update.
66094         * doc/functions/vfprintf.texi: Update.
66095         * doc/functions/vprintf.texi: Update.
66096         * doc/functions/vsnprintf.texi: Update.
66097         * doc/functions/vsprintf.texi: Update.
66098
66099 2007-05-18  Bruno Haible  <bruno@clisp.org>
66100
66101         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66102
66103 2007-05-18  Bruno Haible  <bruno@clisp.org>
66104
66105         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66106         for printing 64-bit integers. Needed for mingw.
66107
66108 2007-05-18  Bruno Haible  <bruno@clisp.org>
66109
66110         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66111         gl_FUNC_FREXPL_WORKS.
66112         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66113
66114 2007-05-18  Bruno Haible  <bruno@clisp.org>
66115
66116         * modules/frexpl-nolibm-tests: New file.
66117
66118         * modules/frexpl-nolibm: New file.
66119         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66120
66121 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66122
66123         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66124         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66125         GCC 4.2, which otherwise issues a lot of warnings.
66126         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66127         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66128         Likewise.
66129         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66130         * modules/iconv_open (iconv.h): Likewise.
66131         * modules/locale (locale.h): Likewise.
66132         * modules/netinet_in (netinet/in.h): Likewise.
66133         * modules/sys_select (sys_select.h): Likewise.
66134         * modules/sys_socket (sys/socket.h): Likewise.
66135         * modules/sys_stat (sys/stat.h): Likewise.
66136         * modules/sysexits (sysexits.h): Likewise.
66137         * modules/unistd (unistd.h): Likewise.
66138
66139 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66140
66141         * modules/closein-tests (Makefile.am): Distribute
66142         `test-closein.sh'.
66143
66144 2007-05-17  Bruno Haible  <bruno@clisp.org>
66145
66146         * tests/test-printf-posix.output: Renamed from
66147         tests/test-fprintf-posix.out.
66148         * modules/fprintf-posix-tests: Update.
66149         * modules/printf-posix-tests: Update.
66150         * modules/vfprintf-posix-tests: Update.
66151         * modules/vprintf-posix-tests: Update.
66152         * tests/test-fprintf-posix.sh: Update.
66153         * tests/test-printf-posix.sh: Update.
66154         * tests/test-vfprintf-posix.sh: Update.
66155         * tests/test-vprintf-posix.sh: Update.
66156         Reported by Ralf Wildenhues.
66157
66158 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66159
66160         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66161         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66162         GCC 4.2, which otherwise issues a lot of warnings.
66163         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66164         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66165         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66166         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66167         it should no longer be needed.
66168         * lib/string_.h: Likewise.
66169         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66170         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66171         * modules/inttypes (inttypes.h): Likewise.
66172         * modules/math (math.h): Likewise.
66173         * modules/search (search.h): Likewise.
66174         * modules/signal (signal.h): Likewise.
66175         * modules/stdint (stdint.h): Likewise.
66176         * modules/stdio (stdio.h): Likewise.
66177         * modules/stdlib (stdlib.h): Likewise.
66178         * modules/string (string.h): Likewise.
66179         * modules/sys_time (sys/time.h): Likewise.
66180         * modules/time (time.h): Likewise.
66181         * modules/wchar (wchar.h): Likewise.
66182         * modules/wctype (wtype.h): Likewise.
66183
66184 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66185
66186         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66187
66188 2007-05-13  Bruno Haible  <bruno@clisp.org>
66189
66190         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66191         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66192         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66193         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66194         (gl_PREREQ_STRTOK_R): Don't require it here.
66195
66196 2007-05-13  Bruno Haible  <bruno@clisp.org>
66197
66198         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66199         when used in C++ mode.
66200
66201 2007-05-12  Bruno Haible  <bruno@clisp.org>
66202
66203         * lib/linebuffer.h: Tweak doc.
66204         * lib/linebuffer.c: Likewise.
66205
66206 2007-05-12  James Youngman  <jay@gnu.org>
66207
66208         * lib/linebuffer.c (readlinebuffer_delim): New function,
66209         like readlinebuffer, but use a caller-specified delimiter.
66210         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66211         as the delimiter.
66212         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66213
66214 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66215
66216         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66217         * modules/openat (Files): Remove openat-die.c.
66218         (Depends-on): Add openat-die.
66219         * modules/openat-die: New module.
66220
66221 2007-05-06  Bruno Haible  <bruno@clisp.org>
66222
66223         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66224         Update with info about Cygwin.
66225         * doc/functions/fprintf.texi: Update.
66226         * doc/functions/printf.texi: Update.
66227         * doc/functions/snprintf.texi: Update.
66228         * doc/functions/sprintf.texi: Update.
66229         * doc/functions/vfprintf.texi: Update.
66230         * doc/functions/vprintf.texi: Update.
66231         * doc/functions/vsnprintf.texi: Update.
66232         * doc/functions/vsprintf.texi: Update.
66233         Reported by Eric Blake.
66234
66235 2007-05-06  Bruno Haible  <bruno@clisp.org>
66236
66237         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66238         padding ourselves for the floating-point directives.
66239         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66240         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66241         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66242         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66243         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
66244         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66245         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66246         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66247         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66248         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66249         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66250         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66251         * tests/test-snprintf-posix.h (test_function): Also check the width
66252         and some flags in the %f directive.
66253         * tests/test-sprintf-posix.h (test_function): Likewise.
66254         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66255         * tests/test-vasprintf-posix.c (test_function): Likewise.
66256         * doc/functions/fprintf.texi: Update.
66257         * doc/functions/printf.texi: Update.
66258         * doc/functions/snprintf.texi: Update.
66259         * doc/functions/sprintf.texi: Update.
66260         * doc/functions/vfprintf.texi: Update.
66261         * doc/functions/vprintf.texi: Update.
66262         * doc/functions/vsnprintf.texi: Update.
66263         * doc/functions/vsprintf.texi: Update.
66264
66265 2007-05-06  Bruno Haible  <bruno@clisp.org>
66266
66267         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66268         pass the ' flag character to sprintf or snprintf.
66269         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66271         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66272         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66273         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66274         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66275         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66276         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66277         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66278         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66279         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66280         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66281         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66282         flag.
66283         * tests/test-sprintf-posix.h (test_function): Likewise.
66284         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66285         * tests/test-vasprintf-posix.c (test_function): Likewise.
66286         * doc/functions/fprintf.texi: Update.
66287         * doc/functions/printf.texi: Update.
66288         * doc/functions/snprintf.texi: Update.
66289         * doc/functions/sprintf.texi: Update.
66290         * doc/functions/vfprintf.texi: Update.
66291         * doc/functions/vprintf.texi: Update.
66292         * doc/functions/vsnprintf.texi: Update.
66293         * doc/functions/vsprintf.texi: Update.
66294
66295 2007-05-01  Bruno Haible  <bruno@clisp.org>
66296
66297         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66298
66299 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66300
66301         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66302         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66303
66304 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66305
66306         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66307         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66308         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66309
66310 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66311
66312         * lib/argp-help.c (struct hol_entry): New member `ord'.
66313         (HOL_ENTRY_PTRCMP): Use ord for comparison
66314         (hol_sort): Initialize ord.
66315
66316 2007-05-01  Bruno Haible  <bruno@clisp.org>
66317
66318         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66319         Reported by Eric Blake.
66320         * doc/gnulib.texi (Function Substitutes): Update.
66321
66322 2007-05-01  Bruno Haible  <bruno@clisp.org>
66323
66324         * doc/functions.texi: Remove file, now redundant through
66325         doc/functions/*.texi.
66326
66327 2007-05-01  Bruno Haible  <bruno@clisp.org>
66328
66329         * modules/argp (Depends-on): Add sleep.
66330
66331 2007-05-01  Bruno Haible  <bruno@clisp.org>
66332
66333         * modules/sleep-tests: New file.
66334         * tests/test-sleep.c: New file.
66335
66336         * modules/sleep: New file.
66337         * lib/sleep.c: New file.
66338         * m4/sleep.m4: New file.
66339         * lib/unistd_.h (sleep): New declaration.
66340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
66341         HAVE_SLEEP.
66342         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
66343         * doc/functions/sleep.texi: Document the sleep module.
66344
66345 2007-05-01  Bruno Haible  <bruno@clisp.org>
66346
66347         * lib/sigprocmask.h: Remove file.
66348         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
66349         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
66350         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
66351         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
66352         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
66353         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
66354         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
66355         HAVE_SIGSET_T as a shell variable.
66356         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
66357         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
66358         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
66359         (Depends-on): Add signal. Remove verify.
66360         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
66361         (Include): Mention <signal.h> instead of sigprocmask.h.
66362         * NEWS: Mention the change.
66363         * lib/fatal-signal.c: Don't include sigprocmask.h.
66364
66365 2007-05-01  Bruno Haible  <bruno@clisp.org>
66366
66367         * modules/signal: New file.
66368         * lib/signal_.h: New file.
66369         * m4/signal_h.m4: New file.
66370
66371 2007-05-01  Bruno Haible  <bruno@clisp.org>
66372
66373         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
66374         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
66375         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
66376         HAVE_WCTYPE_CTMP_BUG into wctype.h.
66377
66378 2007-05-01  Bruno Haible  <bruno@clisp.org>
66379
66380         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
66381         configure time.
66382         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
66383         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
66384         * modules/sys_stat (Makefile.am): Substitute their values into
66385         sys/stat.h.
66386
66387 2007-05-01  Bruno Haible  <bruno@clisp.org>
66388
66389         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66390         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66391         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66392
66393 2007-05-01  Bruno Haible  <bruno@clisp.org>
66394
66395         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66396         'assert' module here.
66397
66398 2007-05-01  Bruno Haible  <bruno@clisp.org>
66399
66400         * doc/functions/*.texi: New files.
66401         * doc/functions/google-ranking.txt: New file.
66402         * doc/gnulib.texi (Function Substitutes): New chapter.
66403         (ctime, inet_ntoa): Remove sections.
66404         * doc/ctime.texi: Remove file.
66405         * doc/inet_ntoa.texi: Remove file.
66406         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
66407         dependencies.
66408         (%.info): New rule, specifying a --reference-limit.
66409
66410 2007-05-01  Bruno Haible  <bruno@clisp.org>
66411
66412         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
66413
66414 2007-05-01  Bruno Haible  <bruno@clisp.org>
66415
66416         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
66417         the portability of 'mkdir' to mingw systems.
66418
66419 2007-05-01  Bruno Haible  <bruno@clisp.org>
66420
66421         * doc/headers/google-ranking.txt: New file.
66422
66423 2007-04-30  Eric Blake  <ebb9@byu.net>
66424
66425         Prefer fseeko to fseek.
66426         * modules/getpass (Depends-on): Add fseeko.
66427         * lib/getpass.c (getpass): Use fseeko, not fseek.
66428
66429 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66430
66431         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66432         assumes the sorting is stable, while most qsort implementations
66433         are not.  Use argument addresses to ensure they never compare as
66434         equal.
66435
66436         * tests/test-argp-2.sh (usage-indent test): Fix output
66437         (func_compare): Restore diff options
66438         * tests/test-argp.c: Restore #include "progname.h"
66439
66440 2007-04-29  Bruno Haible  <bruno@clisp.org>
66441
66442         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
66443         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66444         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
66445         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66446         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
66447         (configure.ac): Define CHECK_SNPRINTF_POSIX.
66448         (TESTS, check_PROGRAMS): Add test-snprintf.
66449         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
66450         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
66451         (TESTS, check_PROGRAMS): Add test-vsnprintf.
66452         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
66453         assertions that fail on HP-UX, OSF/1, or IRIX.
66454         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
66455
66456 2007-04-29  Bruno Haible  <bruno@clisp.org>
66457
66458         * MODULES.html.sh (posix_functions): Remove 'contents'.
66459
66460 2007-04-29  Karl Berry  <karl@gnu.org>
66461
66462         * config/srclist.txt (gendocs_template_min): new entry.
66463
66464 2007-04-29  Bruno Haible  <bruno@clisp.org>
66465
66466         Work around fpurge bug on BSD systems.
66467         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
66468         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
66469         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
66470         fpurge to rpl_fpurge if the system already has this function.
66471         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
66472         the case where the system already has this function. Correct invariants
66473         on BSD systems.
66474         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
66475         BSD systems.
66476
66477 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
66478
66479         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
66480         proposed by Sven Verdoolaege.
66481
66482         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66483         options.
66484         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66485         (usage and help tests): Update
66486
66487 2007-04-29  Bruno Haible  <bruno@clisp.org>
66488
66489         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66490         Print more information in case of failure. Disable a test on BeOS.
66491
66492 2007-04-29  Bruno Haible  <bruno@clisp.org>
66493
66494         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66495         This helps debugging on systems on which no gdb is available.
66496
66497 2007-04-29  Bruno Haible  <bruno@clisp.org>
66498
66499         * lib/freading.h: Improve comments.
66500         * lib/fwriting.h: Likewise.
66501         * tests/test-freading.c (main): Don't check freading immediately after
66502         repositioning. Needed for glibc.
66503
66504 2007-04-29  Bruno Haible  <bruno@clisp.org>
66505
66506         * lib/freading.c (freading): Trivial simplification.
66507
66508 2007-04-28  Bruno Haible  <bruno@clisp.org>
66509
66510         * tests/test-fwriting.c (main): Also test the interaction between
66511         fflush and fwriting.
66512         * modules/fwriting-tests (Depends-on): Add fflush.
66513
66514         * tests/test-freading.c (main): Also test the interaction between
66515         fflush and freading.
66516         * modules/freading-tests (Depends-on): Add fflush.
66517
66518 2007-04-28  Bruno Haible  <bruno@clisp.org>
66519
66520         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66521         fseeko and ftello.
66522         Suggested by Eric Blake.
66523
66524 2007-04-28  Jim Meyering  <jim@meyering.net>
66525
66526         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66527         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66528         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66529
66530 2007-04-27  Eric Blake  <ebb9@byu.net>
66531
66532         * doc/headers/assert.texi (assert.h): Document assert module use.
66533
66534 2007-04-27  Bruno Haible  <bruno@clisp.org>
66535
66536         * doc/headers/*.texi: New files.
66537         * doc/gnulib.texi (Header File Substitutes): New chapter.
66538         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66539         dependencies.
66540         (standards.info ,standards.html, standards.dvi): Update dependencies.
66541         (mostlyclean, clean): New targets.
66542
66543 2007-04-27  Bruno Haible  <bruno@clisp.org>
66544
66545         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66546         * modules/sysexits (Files, Makefile.am): Update.
66547
66548         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66549         * modules/sys_socket (Files, Makefile.am): Update.
66550
66551         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66552         * modules/sys_stat (Files, Makefile.am): Update.
66553
66554 2007-04-27  Eric Blake  <ebb9@byu.net>
66555
66556         * lib/freading.h: Improve comments.
66557         * lib/fwriting.h: Likewise.
66558         * lib/fflush.c: Likewise.
66559
66560         Fix closein for mingw.
66561         * modules/closein-tests: Add tests for closein.
66562         * tests/test-closein.c: New file.
66563         * tests/test-closein.sh: Likewise.
66564         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66565         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66566
66567 2007-04-27  Bruno Haible  <bruno@clisp.org>
66568
66569         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66570         version is < 6.
66571         * lib/math_.h [__DECC]: Likewise.
66572         * lib/stdio_.h [__DECC]: Likewise.
66573         * lib/stdlib_.h [__DECC]: Likewise.
66574         * lib/string_.h [__DECC]: Likewise.
66575         * lib/time_.h [__DECC]: Likewise.
66576         * lib/wchar_.h [__DECC]: Likewise.
66577         * lib/wctype_.h [__DECC]: Likewise.
66578
66579 2007-04-27  Bruno Haible  <bruno@clisp.org>
66580
66581         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66582
66583 2007-04-27  Bruno Haible  <bruno@clisp.org>
66584
66585         * lib/fflush.c: Add comments.
66586         * modules/fpurge-tests (Depends-on): Add fflush.
66587         * modules/freadable-tests (Depends-on): Likewise.
66588         * modules/fwritable-tests (Depends-on): Likewise.
66589
66590 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66591
66592         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66593         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66594         Report by Bruno Haible <bruno@clisp.org>.
66595
66596 2007-04-26  Eric Blake  <ebb9@byu.net>
66597
66598         Fix fflush on mingw.
66599         * modules/fflush (Depends-on): Add freading.
66600         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66601         but unread data.
66602
66603 2007-04-26  Eric Blake  <ebb9@byu.net>
66604         and Bruno Haible  <bruno@clisp.org>
66605
66606         Implement freading and fwriting.
66607         * lib/freading.c: New file.
66608         * lib/freading.h: Likewise.
66609         * m4/freading.m4: Likewise.
66610         * modules/freading: Likewise.
66611         * modules/freading-tests: Likewise.
66612         * tests/test-freading.c: Likewise.
66613         * lib/fwriting.c: New file.
66614         * lib/fwriting.h: Likewise.
66615         * m4/fwriting.m4: Likewise.
66616         * modules/fwriting: Likewise.
66617         * modules/fwriting-tests: Likewise.
66618         * tests/test-fwriting.c: Likewise.
66619         * MODULES.html.sh (File stream based Input/Output): Mention them.
66620
66621 2007-04-26  Bruno Haible  <bruno@clisp.org>
66622
66623         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66624         'long' when we assume it.
66625         Suggested by Eric Blake.
66626
66627 2007-04-26  Bruno Haible  <bruno@clisp.org>
66628
66629         Ensure fseeko, ftello are declared on glibc systems.
66630         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66631         * modules/fseeko (configure.ac-early): Likewise.
66632         * modules/ftello (configure.ac-early): Likewise.
66633         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66634         AC_FUNC_FSEEKO for this.
66635         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66636         (gl_CHECK_FSEEKO): Remove macro.
66637
66638 2007-04-26  Bruno Haible  <bruno@clisp.org>
66639
66640         * tests/test-fflush.c (main): Also check the ftell result after
66641         fflush and fseek/fseeko.
66642         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66643         file descriptor position cache in the stream.
66644         * lib/fseeko.c (rpl_fseeko): Likewise.
66645
66646 2007-04-26  Bruno Haible  <bruno@clisp.org>
66647
66648         * modules/fflush-tests (Depends-on): Add fseeko.
66649
66650 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66651             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66652
66653         * lib/argz_.h: ensure error_t definition is obtained in same
66654         mechanism system argz.h would have.
66655         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66656         argz facilities are known bad.  Err on the side of caution if
66657         cross-compiling.
66658
66659 2007-04-25  Eric Blake  <ebb9@byu.net>
66660
66661         * lib/fpurge.c (includes): Use stdlib.h for free.
66662         * tests/test-fflush.c (main): Also test fflush-fseeko.
66663
66664 2007-04-25  Bruno Haible  <bruno@clisp.org>
66665
66666         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66667         * lib/fseeko.c: New file.
66668         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66669         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66670         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66671         gl_FUNC_FSEEKO.
66672         (gl_FUNC_FSEEKO): Invoke it.
66673         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66674         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66675         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66676
66677 2007-04-25  Bruno Haible  <bruno@clisp.org>
66678
66679         * modules/fflush (Depends-on): Add ftello.
66680
66681 2007-04-25  Bruno Haible  <bruno@clisp.org>
66682
66683         * modules/ftello-tests: New file.
66684         * tests/test-ftello.c: New file.
66685
66686         * modules/ftello: New file.
66687         * m4/ftello.m4: New file.
66688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66689         HAVE_FTELLO.
66690         * lib/stdio_.h (ftello): New declaration.
66691         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66692         HAVE_FTELLO.
66693
66694 2007-04-25  Bruno Haible  <bruno@clisp.org>
66695
66696         * modules/fseeko-tests: New file.
66697         * tests/test-fseeko.c: New file.
66698
66699         * modules/fseeko: New file.
66700         * m4/fseeko.m4: New file.
66701         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66702         HAVE_FSEEKO.
66703         * lib/stdio_.h (fseeko): New declaration.
66704         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66705         HAVE_FSEEKO.
66706
66707 2007-04-25  Bruno Haible  <bruno@clisp.org>
66708
66709         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66710
66711 2007-04-25  Bruno Haible  <bruno@clisp.org>
66712
66713         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66714         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66715         * tests/test-unistd.c: Likewise.
66716         * tests/test-fcntl.c: Likewise.
66717
66718 2007-04-23  Eric Blake  <ebb9@byu.net>
66719
66720         * lib/fflush.c: Fix missing include.
66721         Reported by Bruno Haible.
66722
66723 2007-04-23  Bruno Haible  <bruno@clisp.org>
66724
66725         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66726         Reported by Eric Blake.
66727
66728 2007-04-23  Bruno Haible  <bruno@clisp.org>
66729
66730         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66731
66732 2007-04-23  Bruno Haible  <bruno@clisp.org>
66733
66734         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66735
66736 2007-04-23  Bruno Haible  <bruno@clisp.org>
66737
66738         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66739         Needed on HP-UX 11.
66740
66741 2007-04-16  Eric Blake  <ebb9@byu.net>
66742
66743         Make fflush rely on fpurge.
66744         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66745         open coding all variants.
66746         * modules/fflush (Depends-on): Add fpurge and unistd.
66747         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66748         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66749
66750         Fix --with-tests compilation on cygwin.
66751         * modules/argmatch-tests (Makefile.am): List gnulib library first
66752         in LDADD.
66753         * modules/argp-tests (Makefile.am): Likewise.
66754         * modules/array-list-tests (Makefile.am): Likewise.
66755         * modules/array-oset-tests (Makefile.am): Likewise.
66756         * modules/avltree-list-tests (Makefile.am): Likewise.
66757         * modules/avltree-oset-tests (Makefile.am): Likewise.
66758         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66759         * modules/carray-list-tests (Makefile.am): Likewise.
66760         * modules/dirname-tests (Makefile.am): Likewise.
66761         * modules/frexp-tests (Makefile.am): Likewise.
66762         * modules/isnanl-tests (Makefile.am): Likewise.
66763         * modules/linked-list-tests (Makefile.am): Likewise.
66764         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66765         * modules/lock-tests (Makefile.am): Likewise.
66766         * modules/rbtree-list-tests (Makefile.am): Likewise.
66767         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66768         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66769         * modules/tls-tests (Makefile.am): Likewise.
66770         * modules/tsearch-tests (Makefile.am): Likewise.
66771         * modules/xvasprintf-tests (Makefile.am): Likewise.
66772
66773         Fix fpurge for cygwin.
66774         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66775         value.
66776         * modules/fpurge-tests (Depends-on): Clean up trash.
66777
66778 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66779
66780         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66781
66782         * m4/autobuild.m4: Re-indent.
66783
66784 2007-04-13  Bruno Haible  <bruno@clisp.org>
66785
66786         * modules/fpurge-tests: New file.
66787         * tests/test-fpurge.c: New file.
66788
66789         * modules/fpurge: New file.
66790         * lib/fpurge.h: New file.
66791         * lib/fpurge.c: New file.
66792         * m4/fpurge.m4: New file.
66793
66794 2007-04-13  Bruno Haible  <bruno@clisp.org>
66795
66796         * modules/fbufmode-tests: New file.
66797         * tests/test-fbufmode.c: New file.
66798
66799         * modules/fbufmode: New file.
66800         * lib/fbufmode.h: New file.
66801         * lib/fbufmode.c: New file.
66802         * m4/fbufmode.m4: New file.
66803
66804 2007-04-13  Bruno Haible  <bruno@clisp.org>
66805
66806         * modules/fwritable-tests: New file.
66807         * tests/test-fwritable.c: New file.
66808
66809         * modules/fwritable: New file.
66810         * lib/fwritable.h: New file.
66811         * lib/fwritable.c: New file.
66812         * m4/fwritable.m4: New file.
66813
66814 2007-04-13  Bruno Haible  <bruno@clisp.org>
66815
66816         * modules/freadable-tests: New file.
66817         * tests/test-freadable.c: New file.
66818
66819         * modules/freadable: New file.
66820         * lib/freadable.h: New file.
66821         * lib/freadable.c: New file.
66822         * m4/freadable.m4: New file.
66823
66824 2007-04-13  Bruno Haible  <bruno@clisp.org>
66825
66826         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66827         MOSTLYCLEANFILES.
66828
66829 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66830
66831         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66832         gzip bootstrap.conf to avoid dragging in i18n machinery.
66833         (gnulib_tool_option): Use it.
66834
66835 2007-04-13  Bruno Haible  <bruno@clisp.org>
66836
66837         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66838         %F directives.
66839         * tests/test-vasprintf-posix.c (test_function): Likewise.
66840         * tests/test-snprintf-posix.h (test_function): Likewise.
66841         * tests/test-sprintf-posix.h (test_function): Likewise.
66842         * tests/test-fprintf-posix.h (test_function): Likewise.
66843         * tests/test-printf-posix.h (test_function): Likewise.
66844         * tests/test-fprintf-posix.out: Likewise.
66845
66846 2007-04-13  Bruno Haible  <bruno@clisp.org>
66847
66848         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66849         * modules/tls-tests (configure.ac): Likewise.
66850         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66851
66852 2007-04-13  Bruno Haible  <bruno@clisp.org>
66853
66854         * lib/tls.c (glthread_tls_get): Fix return type.
66855         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66856
66857 2007-04-12  Eric Blake  <ebb9@byu.net>
66858
66859         * modules/gettime (Depends-on): Remove gettime.
66860         Reported by Dmitry V. Levin.
66861
66862 2007-04-12  Bruno Haible  <bruno@clisp.org>
66863
66864         * modules/fflush (Include): Mention <stdio.h>.
66865         * modules/strtoimax (Include): Mention <inttypes.h>.
66866         * modules/strtoumax (Include): Likewise.
66867
66868 2007-04-12  Eric Blake  <ebb9@byu.net>
66869
66870         * .cvsignore: New file.
66871         * .gitignore: Likewise.
66872
66873 2007-04-12  Bruno Haible  <bruno@clisp.org>
66874
66875         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66876         not before, since $(LDADD) often contains libgnu.a.
66877         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66878         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66879         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66880         Needed on Cygwin.
66881
66882 2007-04-12  Eric Blake  <ebb9@byu.net>
66883
66884         Work around glibc's failure to flush stdin on fclose.
66885         * lib/closein.c (close_stdin): Flush stdin before closing.
66886
66887         Work around glibc's failure to reset seekable stdin on exit.
66888         * modules/closein: New module.
66889         * lib/closein.c: New file.
66890         * lib/closein.h: Likewise.
66891         * m4/closein.m4: Likewise.
66892         * MODULES.html.sh (File stream based Input/Output): Document it.
66893
66894 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66895
66896         * gnulib-tool: Rename generated 'autobuild' script to
66897         'do-autobuild' in --create-megatestdir output.
66898
66899         * doc/gnulib.texi (Build robot for gnulib): Fix.
66900
66901 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66902
66903         * modules/sysexits (Depends-on): Add absolute-header.
66904
66905 2007-04-12  Eric Blake  <ebb9@byu.net>
66906
66907         No need to preserve errno on success.
66908         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66909         Reported by Bruno Haible.
66910
66911 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66912
66913         * MODULES.html.sh (Support for maintaining and releasing
66914         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66915
66916 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66917
66918         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66919
66920 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66921
66922         * modules/autobuild: New module.
66923
66924         * m4/autobuild.m4: New file.
66925
66926 2007-04-11  Bruno Haible  <bruno@clisp.org>
66927
66928         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66929         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66930         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66932         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66933         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66934         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66935         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66936         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66937         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66938         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66939         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66940         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66941         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66942         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66943         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66944         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66945         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66946         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66947         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66948         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66949         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66950         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66951         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66952         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66953         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66954         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66955         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66956         Reported by Eric Blake.
66957
66958 2007-04-11  Bruno Haible  <bruno@clisp.org>
66959
66960         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66961
66962 2007-04-10  Bruno Haible  <bruno@clisp.org>
66963
66964         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66965         for NaN and Infinity. Needed on FreeBSD 6.1.
66966         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66967         regarding results for "%010a" of Infinity and NaN.
66968         * tests/test-vasprintf-posix.c (test_function): Likewise.
66969         * tests/test-snprintf-posix.h (test_function): Likewise.
66970         * tests/test-sprintf-posix.h (test_function): Likewise.
66971         * tests/test-fprintf-posix.h (test_function): Likewise.
66972         * tests/test-printf-posix.h (test_function): Likewise.
66973         * tests/test-fprintf-posix.out: Likewise.
66974
66975 2007-04-10  Bruno Haible  <bruno@clisp.org>
66976
66977         * modules/locale-tests: New file.
66978         * tests/test-locale.c: New file.
66979
66980         * modules/locale: New file.
66981         * lib/locale_.h: New file.
66982         * m4/locale_h.m4: New file.
66983
66984 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66985             Bruno Haible  <bruno@clisp.org>
66986
66987         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66988         be determined, test for availability of the copysignf, copysign,
66989         copysignl functions.
66990         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66991         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66992         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66993
66994 2007-04-09  Eric Blake  <ebb9@byu.net>
66995
66996         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66997         * modules/stdio (Makefile.am): Support fflush.
66998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66999         * modules/fflush: New file.
67000         * lib/fflush.c: Likewise.
67001         * m4/fflush.m4: Likewise.
67002         * modules/fflush-tests: New test.
67003         * tests/test-fflush.c: Likewise.
67004         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67005
67006 2007-04-06  Bruno Haible  <bruno@clisp.org>
67007
67008         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67009         (VASNPRINTF): Use signbit for faster determination whether to print a
67010         minus sign.
67011         * modules/vasnprintf (Files): Remove lib/float+.h.
67012         * modules/fprintf-posix (Depends-on): Add signbit.
67013         * modules/snprintf-posix (Depends-on): Likewise.
67014         * modules/sprintf-posix (Depends-on): Likewise.
67015         * modules/vasnprintf-posix (Depends-on): Likewise.
67016         * modules/vasprintf-posix (Depends-on): Likewise.
67017         * modules/vfprintf-posix (Depends-on): Likewise.
67018         * modules/vsnprintf-posix (Depends-on): Likewise.
67019         * modules/vsprintf-posix (Depends-on): Likewise.
67020
67021 2007-04-06  Bruno Haible  <bruno@clisp.org>
67022
67023         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67024         * tests/test-frexpl.c (main): Likewise.
67025         * tests/test-ldexpl.c (main): Likewise.
67026         * modules/frexp-tests (Depends-on): Add signbit.
67027         * modules/frexpl-tests (Depdends-on): Likewise.
67028         * modules/ldexpl-tests (Depdends-on): Likewise.
67029
67030 2007-04-06  Bruno Haible  <bruno@clisp.org>
67031
67032         * modules/signbit-tests: New file.
67033         * tests/test-signbit.c: New file.
67034
67035         * modules/signbit: New file.
67036         * lib/signbitf.c: New file.
67037         * lib/signbitd.c: New file.
67038         * lib/signbitl.c: New file.
67039         * m4/signbit.m4: New file.
67040         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67041         (signbit): New macro.
67042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67043         REPLACE_SIGNBIT.
67044         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67045         REPLACE_FREXPL into math.h.
67046
67047 2007-04-06  Bruno Haible  <bruno@clisp.org>
67048
67049         * modules/isnanf-nolibm-tests: New file.
67050         * tests/test-isnanf.c: New file.
67051
67052         * modules/isnanf-nolibm: New file.
67053         * lib/isnanf.h: New file.
67054         * lib/isnanf.c: New file.
67055         * lib/isnan.c: Consider the USE_FLOAT macro.
67056         * m4/isnanf.m4: New file.
67057
67058 2007-04-06  Bruno Haible  <bruno@clisp.org>
67059
67060         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67061         (Link): New section.
67062
67063         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67064
67065 2007-04-06  Bruno Haible  <bruno@clisp.org>
67066
67067         Assume the 'long double' type.
67068         * m4/longdouble.m4: Remove file.
67069         * config/srclist.txt: Don't mention longdouble.m4.
67070         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67071         * lib/float+.h: Likewise.
67072         * lib/frexp.c: Likewise.
67073         * lib/printf-args.h: Likewise.
67074         * lib/printf-args.c: Likewise.
67075         * lib/printf-frexp.c: Likewise.
67076         * lib/printf-parse.c: Likewise.
67077         * lib/vasnprintf.c: Likewise.
67078         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67079         * m4/intl.m4: Likewise.
67080         * m4/isnanl.m4: Likewise.
67081         * m4/printf.m4: Likewise.
67082         * m4/printf-frexpl.m4: Likewise.
67083         * m4/vasnprintf.m4: Likewise.
67084         * modules/allocsa (Files): Remove m4/longdouble.m4.
67085         * modules/gettext (Files): Likewise.
67086         * modules/relocatable-prog-wrapper (Files): Likewise.
67087         * modules/vasnprintf (Files): Likewise.
67088         * modules/isnanl (Files): Likewise.
67089         (Include): Simplify.
67090         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67091         (Include): Simplify.
67092         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67093         (Include): Simplify.
67094         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67095         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67096         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67097         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67098         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67099         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67100         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67101         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67102         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67103         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67104         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67105         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67106         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67107         * tests/test-isnanl.c: Likewise.
67108         * tests/test-snprintf-posix.h: Likewise.
67109         * tests/test-sprintf-posix.h: Likewise.
67110         * tests/test-vasnprintf-posix.c: Likewise.
67111         * tests/test-vasnprintf-posix2.c: Likewise.
67112         * tests/test-vasprintf-posix.c: Likewise.
67113
67114 2007-04-06  Bruno Haible  <bruno@clisp.org>
67115
67116         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67117         * lib/math_.h [__DECC]: Include the overridden include file through
67118         #include_next, outside the double-inclusion guard.
67119         * lib/stdio_.h [__DECC]: Likewise.
67120         * lib/stdlib_.h [__DECC]: Likewise.
67121         * lib/string_.h [__DECC]: Likewise.
67122         * lib/time_.h [__DECC]: Likewise.
67123         * lib/wchar_.h [__DECC]: Likewise.
67124         * lib/wctype_.h [__DECC]: Likewise.
67125         * lib/inttypes_.h [__DECC]: Likewise.
67126         Reported by Albert Chin <china@thewrittenword.com> in
67127         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67128
67129 2007-04-04  Eric Blake  <ebb9@byu.net>
67130
67131         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67132         1.5.x.
67133
67134 2007-04-04  Bruno Haible  <bruno@clisp.org>
67135
67136         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67137         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67138
67139 2007-04-04  Bruno Haible  <bruno@clisp.org>
67140
67141         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67142         results for "%010a" of Infinity and NaN.
67143         * tests/test-vasprintf-posix.c (test_function): Likewise.
67144         * tests/test-snprintf-posix.h (test_function): Likewise.
67145         * tests/test-sprintf-posix.h (test_function): Likewise.
67146         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67147         * tests/test-printf-posix.h (test_function): Likewise.
67148         * tests/test-fprintf-posix.out: Update.
67149         Needed for FreeBSD 6.1.
67150
67151 2007-04-04  Bruno Haible  <bruno@clisp.org>
67152
67153         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67154         directly used by the gnulib modules nor by gnulib-tool.
67155
67156 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67157
67158         * DEPENDENCIES: Give overall description of version dependency
67159         desirability.  Use more-typical names for apps.
67160         Add shell, coreutils, diffutils, grep, tar, gzip.
67161
67162 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67163
67164         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67165
67166 2007-04-04  Karl Berry  <karl@gnu.org>
67167
67168         * MODULES.html.sh (func_module): missing '.
67169
67170 2007-04-03  Bruno Haible  <bruno@clisp.org>
67171
67172         * modules/argmatch-tests (Makefile.am): New variable
67173         test_argmatch_LDADD.
67174         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67175         * modules/array-list-tests (Makefile.am): New variable
67176         test_array_list_LDADD.
67177         * modules/array-oset-tests (Makefile.am): New variable
67178         test_array_oset_LDADD.
67179         * modules/avltree-list-tests (Makefile.am): New variable
67180         test_avltree_list_LDADD.
67181         * modules/avltree-oset-tests (Makefile.am): New variable
67182         test_avltree_oset_LDADD.
67183         * modules/avltreehash-list-tests (Makefile.am): New variable
67184         test_avltreehash_list_LDADD.
67185         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67186         test_canonicalize_lgpl_LDADD.
67187         * modules/carray-list-tests (Makefile.am): New variable
67188         test_carray_list_LDADD.
67189         * modules/dirname-tests (Makefile.am): New variable
67190         test_dirname_LDADD.
67191         * modules/linked-list-tests (Makefile.am): New variable
67192         test_linked_list_LDADD.
67193         * modules/linkedhash-list-tests (Makefile.am): New variable
67194         test_linkedhash_list_LDADD.
67195         * modules/rbtree-list-tests (Makefile.am): New variable
67196         test_rbtree_list_LDADD.
67197         * modules/rbtree-oset-tests (Makefile.am): New variable
67198         test_rbtree_oset_LDADD.
67199         * modules/rbtreehash-list-tests (Makefile.am): New variable
67200         test_rbtreehash_list_LDADD.
67201         * modules/xvasprintf-tests (Makefile.am): New variable
67202         test_xvasprintf_LDADD.
67203         Reported by Eric Blake.
67204
67205 2007-04-03  Eric Blake  <ebb9@byu.net>
67206
67207         * DEPENDENCIES: Weaken m4 requirements.
67208
67209 2007-04-03  Bruno Haible  <bruno@clisp.org>
67210
67211         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67212         * modules/isnanl-tests (configure.ac): Likewise.
67213
67214 2007-04-03  Ben Pfaff  <blp@gnu.org>
67215
67216         * modules/iconv_open: Add $(srcdir)/ to source directory
67217         references in Makefile fragments that call gperf, to fix VPATH
67218         builds.
67219
67220 2007-04-03  Bruno Haible  <bruno@clisp.org>
67221
67222         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67223         * lib/ldexpl.c: Undo last change.
67224
67225 2007-04-03  Bruno Haible  <bruno@clisp.org>
67226
67227         * modules/printf-frexpl (Depends-on): Undo last change.
67228         (Files): Add m4/ldexpl.m4.
67229
67230 2007-04-03  Bruno Haible  <bruno@clisp.org>
67231
67232         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67233         * modules/isnanl (Link): New section.
67234
67235         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67236         * modules/frexp (Link): New section.
67237
67238         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67239         * modules/frexpl (Link): New section.
67240
67241         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67242         * modules/ldexpl (Link): New section.
67243
67244 2007-04-03  Bruno Haible  <bruno@clisp.org>
67245
67246         * modules/TEMPLATE-EXTENDED: New file.
67247         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67248
67249 2007-04-03  Bruno Haible  <bruno@clisp.org>
67250
67251         * DEPENDENCIES: New file.
67252         Suggested by Simon Josefsson.
67253
67254 2007-04-03  Bruno Haible  <bruno@clisp.org>
67255
67256         * doc/gnulib.texi: Escape @.
67257
67258 2007-04-03  James Youngman  <jay@gnu.org>
67259         and Paul Eggert  <eggert@cs.ucla.edu>
67260
67261         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
67262         birthtime on all systems that have birthtime, not just those which
67263         use st_birthtimensec rather than st_birthtim.  Putting zero in
67264         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
67265         that the birth time is not available for files on an NFS mount.
67266
67267 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67268
67269         * modules/memxor: Move back from crypto/, suggested by Bruno.
67270         * modules/crypto/hmac-sha1: Fix memxor dependency.
67271
67272         * modules/crypto/gc: Moved from ../.
67273
67274 2007-04-02  Eric Blake  <ebb9@byu.net>
67275
67276         * lib/ldexpl.c (includes): Avoid libm.
67277
67278         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67279
67280 2007-04-02  Bruno Haible  <bruno@clisp.org>
67281
67282         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67283         on IRIX.
67284
67285 2007-04-02  Bruno Haible  <bruno@clisp.org>
67286
67287         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67288         x86 or x86_64 platforms running MacOS X.
67289         Reported by Ryan Schmidt <@ryandesign.com>.
67290
67291 2007-04-02  Bruno Haible  <bruno@clisp.org>
67292
67293         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67294         i386.
67295
67296 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67297
67298         * modules/crypto/arcfour: Moved from ../.
67299         * modules/crypto/arcfour-tests: Moved from ../.
67300         * modules/crypto/arctwo: Moved from ../.
67301         * modules/crypto/arctwo-tests: Moved from ../.
67302         * modules/crypto/des: Moved from ../.
67303         * modules/crypto/des-tests: Moved from ../.
67304         * modules/crypto/gc-arcfour: Moved from ../.
67305         * modules/crypto/gc-arcfour-tests: Moved from ../.
67306         * modules/crypto/gc-arctwo: Moved from ../.
67307         * modules/crypto/gc-arctwo-tests: Moved from ../.
67308         * modules/crypto/gc-des: Moved from ../.
67309         * modules/crypto/gc-des-tests: Moved from ../.
67310         * modules/crypto/gc-hmac-md5: Moved from ../.
67311         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67312         * modules/crypto/gc-hmac-sha1: Moved from ../.
67313         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67314         * modules/crypto/gc-md2: Moved from ../.
67315         * modules/crypto/gc-md2-tests: Moved from ../.
67316         * modules/crypto/gc-md4: Moved from ../.
67317         * modules/crypto/gc-md4-tests: Moved from ../.
67318         * modules/crypto/gc-md5: Moved from ../.
67319         * modules/crypto/gc-md5-tests: Moved from ../.
67320         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67321         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67322         * modules/crypto/gc-random: Moved from ../.
67323         * modules/crypto/gc-rijndael: Moved from ../.
67324         * modules/crypto/gc-rijndael-tests: Moved from ../.
67325         * modules/crypto/gc-sha1: Moved from ../.
67326         * modules/crypto/gc-sha1-tests: Moved from ../.
67327         * modules/crypto/gc-tests: Moved from ../.
67328         * modules/crypto/hmac-md5: Moved from ../.
67329         * modules/crypto/hmac-md5-tests: Moved from ../.
67330         * modules/crypto/hmac-sha1: Moved from ../.
67331         * modules/crypto/hmac-sha1-tests: Moved from ../.
67332         * modules/crypto/md2: Moved from ../.
67333         * modules/crypto/md2-tests: Moved from ../.
67334         * modules/crypto/md4: Moved from ../.
67335         * modules/crypto/md4-tests: Moved from ../.
67336         * modules/crypto/md5: Moved from ../.
67337         * modules/crypto/md5-tests: Moved from ../.
67338         * modules/crypto/memxor: Moved from ../.
67339         * modules/crypto/rijndael: Moved from ../.
67340         * modules/crypto/rijndael-tests: Moved from ../.
67341         * modules/crypto/sha1: Moved from ../.
67342
67343 2007-03-30  James Youngman  <jay@gnu.org>
67344
67345         * tests/test-stat-time.c (prepare_test): use chmod() rather than
67346         rename() to change the ctime of a file (because ctime is unaffected
67347         by rename on jfs2 on AIX 5.1).
67348         (main): Start by doing cleanup, in case a previous run failed leaving
67349         test files behind.
67350
67351 2007-03-31  Bruno Haible  <bruno@clisp.org>
67352
67353         Support old proprietary implementations of iconv.
67354         * modules/iconv_open: New file.
67355         * lib/iconv_.h: New file.
67356         * m4/iconv_h.m4: New file.
67357         * lib/iconv_open.c: New file.
67358         * lib/iconv_open-aix.gperf: New file.
67359         * lib/iconv_open-hpux.gperf: New file.
67360         * lib/iconv_open-irix.gperf: New file.
67361         * lib/iconv_open-osf.gperf: New file.
67362         * m4/iconv_open.m4: New file.
67363         * modules/linebreak (Depends-on): Add iconv_open.
67364         * modules/striconv (Depends-on): Likewise.
67365         * modules/striconveh (Depends-on): Likewise.
67366         * modules/unicodeio (Depends-on): Likewise.
67367         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
67368         (iconv_t)(-1).
67369         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
67370         conversion if cd is (iconv_t)(-1).
67371         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
67372         is not possible.
67373
67374 2007-03-31  Bruno Haible  <bruno@clisp.org>
67375
67376         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67377         work on Solaris either. Protect also second use of "autodetect_jp".
67378
67379 2007-03-31  Bruno Haible  <bruno@clisp.org>
67380
67381         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
67382         the function is not present.
67383
67384 2007-03-31  Bruno Haible  <bruno@clisp.org>
67385
67386         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67387         the function is not present.
67388
67389 2007-03-31  Bruno Haible  <bruno@clisp.org>
67390
67391         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67392         a bug in HP-UX iconv_open().
67393
67394 2007-03-31  Bruno Haible  <bruno@clisp.org>
67395
67396         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67397         (Mathematics <math.h>): New section, add fpieee.
67398         (Input/output <stdio.h>): Add fseterr.
67399         (Mathematics <math.h>): New section, add printf-frexp.
67400         (Container data structures): Add sublist.
67401         (Core language properties): Add fpucw, inline.
67402         (Functions for greatest-width integer types <inttypes.h>): Add
67403         imaxabs, imaxdiv, inttypes.
67404         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67405         isnanl-nolibm, ldexp.
67406         (Mathematics <math.h>): New section, add printf-frexpl.
67407         (Support for systems lacking POSIX:2001): Add fprintf-posix,
67408         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
67409         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
67410         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
67411         (Unicode string functions): Add unistr/u*-mbtoucr.
67412         (Java): Add javacomp-script, javaexec-script.
67413         (C#): Add csharpcomp-script, csharpexec-script.
67414         (Support for building libraries and executables): Add havelib,
67415         relocatable-*.
67416         (Support for maintaining and releasing projects): Renamed from
67417         'Support for maintaining and release projects'. Add announce-gen.
67418
67419 2007-03-31  Bruno Haible  <bruno@clisp.org>
67420
67421         * README: Talk primarily about git.
67422         (git and CVS): Renamed from CVS.
67423         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
67424         gnulib is available through git.
67425         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
67426
67427 2007-03-30  Bruno Haible  <bruno@clisp.org>
67428
67429         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67430         * lib/poll_.h: Likewise.
67431         * lib/stat_.h: Likewise.
67432         * lib/sys_time_.h: Likewise.
67433         * lib/sysexit_.h: Likewise.
67434         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67435         * lib/stdbool_.h: Likewise.
67436         * lib/byteswap_.h: Add double-inclusion guard.
67437
67438 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
67439
67440         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
67441
67442 2007-03-30  Karl Berry  <karl@gnu.org>
67443
67444         * config/srclist-update: double space after USA in the license
67445         substitution, since that's how it's usually (?) written.
67446
67447 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
67448
67449         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
67450         reported by Bruno Haible.
67451
67452 2007-03-29  Bruno Haible  <bruno@clisp.org>
67453
67454         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
67455         a bug in AIX iconv().
67456
67457 2007-03-29  Bruno Haible  <bruno@clisp.org>
67458
67459         * modules/ldexpl-tests: New file.
67460         * tests/test-ldexpl.c: New file.
67461
67462 2007-03-29  Bruno Haible  <bruno@clisp.org>
67463
67464         * lib/ldexpl.c: Include fpucw.h.
67465         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
67466         multiplication.
67467         * modules/ldexpl (Depends-on): Add fpucw.
67468
67469 2007-03-29  Bruno Haible  <bruno@clisp.org>
67470
67471         * modules/ldexpl: New file.
67472         * m4/ldexpl.m4: New file.
67473         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
67474         set.
67475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
67476         REPLACE_LDEXPL.
67477         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
67478         REPLACE_LDEXPL.
67479         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67480         gl_FUNC_LDEXPL_WORKS.
67481         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67482         * modules/mathl (Files): Remove lib/ldexpl.c.
67483         (Depends-on): Add ldexpl.
67484
67485 2007-03-29  Bruno Haible  <bruno@clisp.org>
67486
67487         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67488
67489 2007-03-29  Bruno Haible  <bruno@clisp.org>
67490
67491         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67492         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67493         and possibly also HP-UX.
67494         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67495         work on AIX, IRIX, HP-UX, OSF/1.
67496         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67497         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67498         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67499         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67500         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67501         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67502
67503 2007-03-29  Bruno Haible  <bruno@clisp.org>
67504
67505         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67506
67507 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67508
67509         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67510         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67511
67512 2007-03-29  Eric Blake  <ebb9@byu.net>
67513
67514         * lib/acl-internal.h: Remove redundant include.
67515         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67516         Cygwin when a file is locked.
67517
67518 2007-03-29  Bruno Haible  <bruno@clisp.org>
67519
67520         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67521         file.
67522         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67523
67524 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67525
67526         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67527         try to remove a parent directory if the child couldn't be removed
67528         (except for the first rmdir, which could fail because the child
67529         doesn't exist).  Problem reported by Jeff Blaine in
67530         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67531
67532 2007-03-28  Bruno Haible  <bruno@clisp.org>
67533
67534         * lib/striconveh.c (utf8conv_carefully): New function.
67535         (mem_cd_iconveh_internal): Invoke it.
67536
67537 2007-03-28  Bruno Haible  <bruno@clisp.org>
67538
67539         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67540         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67541         input.
67542         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67543         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67544         unistr/u8-uctomb.
67545
67546 2007-03-28  Bruno Haible  <bruno@clisp.org>
67547
67548         * modules/unistr/u8-mbtoucr: New file.
67549         * lib/unistr/u8-mbtoucr.c: New file.
67550         * modules/unistr/u16-mbtoucr: New file.
67551         * lib/unistr/u16-mbtoucr.c: New file.
67552         * modules/unistr/u16-mbtoucr: New file.
67553         * lib/unistr/u16-mbtoucr.c: New file.
67554         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67555
67556 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67557             Bruno Haible  <bruno@clisp.org>
67558
67559         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67560         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67561         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67562
67563         * m4/stdio_h.m4: Add stubs for vasprintf too.
67564
67565         * modules/stdio: Support vasprintf in sed command.
67566
67567         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67568         vasprintf.h.  Add stdio module indicator.
67569
67570         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67571         vasprintf.h.
67572
67573         * lib/vasprintf.h: File removed.
67574
67575         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67576         * lib/vasprintf.c: Ditto.
67577         * lib/xvasprintf.c: Ditto.
67578         * tests/test-vasprintf-posix.c: Ditto.
67579         * tests/test-vasprintf.c: Ditto.
67580
67581 2007-03-27  Bruno Haible  <bruno@clisp.org>
67582
67583         Make vasnprintf multithread-safe.
67584         * lib/vasnprintf.c (decimal_point_char): New function.
67585         (VASNPRINTF): Use it.
67586         Suggested by Simon Josefsson.
67587
67588 2007-03-27  Eric Blake  <ebb9@byu.net>
67589
67590         Support sub-second birthtime on cygwin.
67591         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67592         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67593         (get_stat_birthtime): Also work with st_birthtim.
67594
67595 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67596
67597         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67598         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67599         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67600         (get_stat_birthtime_ns): Simplify compile-time tests.
67601         (get_stat_birthtime): Change the API to look like
67602         get_stat_mtime etc., except return a negative tv_nsec on error.
67603         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67604         Don't check for "spare" fields.
67605         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67606         or for struct stat.st_birthtime, as these tests aren't used.
67607         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67608
67609 2007-03-27  Bruno Haible  <bruno@clisp.org>
67610
67611         * lib/stat-time.h: Include <sys/stat.h>.
67612
67613 2007-03-27  James Youngman  <jay@gnu.org>
67614
67615         * lib/stat-time.h (get_stat_birthtime): New function for
67616           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67617         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67618           and its variants.
67619         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67620         * modules/stat-time-test: New file.
67621         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67622
67623 2007-03-26  Bruno Haible  <bruno@clisp.org>
67624
67625         Better support of signalling NaNs.
67626         * lib/atanl.c: Include isnanl.h.
67627         (atanl): Perform test for NaN at the beginning of the function and
67628         through a call to isnanl.
67629         * lib/cosl.c: Include isnanl.h.
67630         (cosl): Perform test for NaN at the beginning of the function and
67631         through a call to isnanl.
67632         * lib/ldexpl.c: Include isnanl.h.
67633         (ldexpl): Perform test for NaN through a call to isnanl.
67634         * lib/logl.c: Include isnanl.h.
67635         (logl): Perform test for NaN at the beginning of the function and
67636         through a call to isnanl.
67637         * lib/sinl.c: Include isnanl.h.
67638         (sinl): Perform test for NaN at the beginning of the function and
67639         through a call to isnanl.
67640         * lib/sqrtl.c: Include isnanl.h.
67641         (sqrtl): Perform test for NaN at the beginning of the function and
67642         through a call to isnanl.
67643         * lib/tanl.c: Include isnanl.h.
67644         (tanl): Perform test for NaN at the beginning of the function and
67645         through a call to isnanl.
67646         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67647         * modules/mathl (Depends-on): Add isnanl.
67648
67649 2007-03-26  Eric Blake  <ebb9@byu.net>
67650
67651         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67652         regression in logic sense of previous patch.
67653
67654 2007-03-26  Bruno Haible  <bruno@clisp.org>
67655
67656         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67657         unportable shell command "if ! ...".
67658         Reported by Ralf Wildenhues.
67659
67660 2007-03-25  Bruno Haible  <bruno@clisp.org>
67661
67662         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67663         <sysexits.h> file, and only add EX_CONFIG.
67664         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67665         absolute file name and whether it is sufficient. Substitute also
67666         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67667         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67668         ABSOLUTE_SYSEXITS_H into sysexits.h.
67669
67670 2007-03-25  Bruno Haible  <bruno@clisp.org>
67671
67672         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67673         hints is NULL.
67674
67675 2007-03-25  Bruno Haible  <bruno@clisp.org>
67676
67677         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67678         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67679
67680 2007-03-25  Bruno Haible  <bruno@clisp.org>
67681
67682         * lib/vasnprintf.c: Include langinfo.h.
67683         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67684         multithread-safe.
67685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67686         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67687         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67688         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67689         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67690         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67691         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67692         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67693         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67694         Reported by Simon Josefsson.
67695
67696 2007-03-25  Bruno Haible  <bruno@clisp.org>
67697
67698         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67699         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67700         * modules/vasnprintf (Depends-on): Add stdint.
67701
67702 2007-03-25  Bruno Haible  <bruno@clisp.org>
67703
67704         * modules/fpieee: New file.
67705         * m4/fpieee.m4: New file.
67706         * modules/isnan-nolibm (Depends-on): Add fpieee.
67707         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67708         * modules/isnanl (Depends-on): Add fpieee.
67709
67710 2007-03-25  Bruno Haible  <bruno@clisp.org>
67711
67712         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67713
67714 2007-03-25  Bruno Haible  <bruno@clisp.org>
67715
67716         Avoid test failures on IRIX 6.5.
67717         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67718         (main): Use it.
67719         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67720         macros.
67721         (main): Use them.
67722
67723 2007-03-25  Bruno Haible  <bruno@clisp.org>
67724
67725         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67726         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67727         exists but doesn't work.
67728         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67729         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67731         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67732         math.h.
67733
67734 2007-03-25  Bruno Haible  <bruno@clisp.org>
67735
67736         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67737         returns inf. Needed on IRIX 6.5.
67738
67739 2007-03-25  Bruno Haible  <bruno@clisp.org>
67740
67741         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67742         (main): Use isnanl instead of x != x idiom.
67743         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67744
67745         * tests/test-frexp.c: Include isnan.h.
67746         (main): Use isnan instead of x != x idiom.
67747         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67748
67749 2007-03-25  Bruno Haible  <bruno@clisp.org>
67750
67751         * tests/test-frexp.c (NaN): New function/macro.
67752         (main): Use it instead of 0.0 / 0.0.
67753         * tests/test-isnan.c (NaN): New function/macro.
67754         (main): Use it instead of 0.0 / 0.0.
67755         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67756         (test_function): Use it instead of 0.0 / 0.0.
67757         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67758         (test_function): Use it instead of 0.0 / 0.0.
67759         * tests/test-snprintf-posix.h (NaN): New function/macro.
67760         (test_function): Use it instead of 0.0 / 0.0.
67761         * tests/test-sprintf-posix.h (NaN): New function/macro.
67762         (test_function): Use it instead of 0.0 / 0.0.
67763         * tests/test-fprintf-posix.h (NaN): New function/macro.
67764         (test_function): Use it instead of 0.0 / 0.0.
67765         * tests/test-printf-posix.h (NaN): New function/macro.
67766         (test_function): Use it instead of 0.0 / 0.0.
67767
67768         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67769
67770 2007-03-25  Bruno Haible  <bruno@clisp.org>
67771
67772         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67773
67774 2007-03-25  Bruno Haible  <bruno@clisp.org>
67775
67776         * lib/regexec.c (merge_state_with_log): Make static.
67777
67778 2007-03-25  Bruno Haible  <bruno@clisp.org>
67779
67780         * lib/trigl.c (kernel_rem_pio2): Make static.
67781
67782 2007-03-25  Bruno Haible  <bruno@clisp.org>
67783
67784         * lib/sincosl.c (sincosl_table): Make static.
67785
67786 2007-03-25  Bruno Haible  <bruno@clisp.org>
67787
67788         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67789         if the compiler does not support C99.
67790
67791 2007-03-25  Bruno Haible  <bruno@clisp.org>
67792
67793         * modules/time (Makefile.am): Ensure all rule action lines start with a
67794         tab.
67795
67796 2007-03-24  Bruno Haible  <bruno@clisp.org>
67797
67798         * modules/tsearch-tests: New file.
67799         * tests/test-tsearch.sh: New file.
67800         * tests/test-tsearch.c: New file, mostly copied from glibc.
67801
67802         * modules/search-tests: New file.
67803         * tests/test-search.c: New file.
67804
67805         * modules/search: New file.
67806         * lib/search_.h: New file, incorporating lib/tsearch.h.
67807         * m4/search_h.m4: New file.
67808         * lib/tsearch.h: Remove file.
67809         * lib/tsearch.c: Include search.h instead of tsearch.h.
67810         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67811         HAVE_TSEARCH.
67812         * modules/tsearch (Files): Remove lib/tsearch.h.
67813         (Depends-on): Add search.
67814         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67815         (Include): Change tsearch.h into search.h.
67816
67817 2007-03-24  Bruno Haible  <bruno@clisp.org>
67818
67819         * modules/fpucw: New file.
67820         * lib/fpucw.h: New file.
67821         * lib/frexp.c: Include fpucw.h.
67822         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67823         (FUNC): Use them.
67824         * lib/printf-frexp.c: Include fpucw.h.
67825         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67826         (FUNC): Use them.
67827         * lib/vasnprintf.c: Include fpucw.h.
67828         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67829         'long double' calculations.
67830         * tests/test-frexpl.c: Include fpucw.h.
67831         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67832         * tests/test-printf-frexpl.c: Include fpucw.h.
67833         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67834         * modules/frexpl (Depends-on): Add fpucw.
67835         * modules/printf-frexpl (Depends-on): Likewise.
67836         * modules/fprintf-posix (Depends-on): Likewise.
67837         * modules/snprintf-posix (Depends-on): Likewise.
67838         * modules/sprintf-posix (Depends-on): Likewise.
67839         * modules/vasnprintf-posix (Depends-on): Likewise.
67840         * modules/vasprintf-posix (Depends-on): Likewise.
67841         * modules/vfprintf-posix (Depends-on): Likewise.
67842         * modules/vsnprintf-posix (Depends-on): Likewise.
67843         * modules/vsprintf-posix (Depends-on): Likewise.
67844         * modules/frexpl-tests (Depends-on): Likewise.
67845         * modules/printf-frexpl-tests (Depends-on): Likewise.
67846
67847 2007-03-24  Bruno Haible  <bruno@clisp.org>
67848
67849         * lib/float+.h: New file.
67850         * lib/isnan.c: Include float+.h.
67851         (SIZE): New macro.
67852         (FUNC): Compare only SIZE bytes of the value.
67853         * lib/vasnprintf.c: Include float+.h.
67854         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
67855         SIZEOF_LDBL or SIZEOF_DBL bytes.
67856         * modules/isnan-nolibm (Files): Add lib/float+.h.
67857         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67858         * modules/isnanl (Files): Add lib/float+.h.
67859         * modules/vasnprintf (Files): Add lib/float+.h.
67860
67861 2007-03-24  Bruno Haible  <bruno@clisp.org>
67862
67863         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67864         include isnanl-nolibm.h.
67865
67866 2007-03-24  Bruno Haible  <bruno@clisp.org>
67867
67868         * tests/test-read-file.c (main): Don't produce spurious output for
67869         expected situations. Make the test fail if it encountered unexpected
67870         results.
67871
67872 2007-03-24  Bruno Haible  <bruno@clisp.org>
67873
67874         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67875         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67876
67877 2007-03-24  Bruno Haible  <bruno@clisp.org>
67878
67879         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67880
67881 2007-03-24  Bruno Haible  <bruno@clisp.org>
67882
67883         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67884         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67885
67886         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67887         * modules/utf8-ucs4: Turn into a symbolic link to module
67888         unistr/u8-mbtouc.
67889
67890         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67891         utf8-ucs4-unsafe.
67892         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67893         unistr/u8-mbtouc-unsafe.
67894
67895         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67896         * modules/utf16-ucs4: Turn into a symbolic link to module
67897         unistr/u16-mbtouc.
67898
67899         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67900         utf16-ucs4-unsafe.
67901         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67902         unistr/u16-mbtouc-unsafe.
67903
67904         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67905         * modules/ucs4-utf8: Turn into a symbolic link to module
67906         unistr/u8-ubtomb.
67907
67908         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67909         * modules/ucs4-utf16: Turn into a symbolic link to module
67910         unistr/u16-ubtomb.
67911
67912 2007-03-24  Bruno Haible  <bruno@clisp.org>
67913
67914         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67915         Enable the function only if HAVE_INLINE.
67916         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67917         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67918         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67919         Enable the function only if HAVE_INLINE.
67920         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67921         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67922         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67923         Enable the function only if HAVE_INLINE.
67924         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67925         Enable the function only if HAVE_INLINE.
67926         * modules/utf8-ucs4: Update.
67927         * modules/utf8-ucs4-unsafe: Update.
67928         * modules/utf16-ucs4: Update.
67929         * modules/utf16-ucs4-unsafe: Update.
67930         * modules/ucs4-utf8: Update.
67931         * modules/ucs4-utf16: Update.
67932
67933 2007-03-24  Bruno Haible  <bruno@clisp.org>
67934
67935         * lib/utf8-ucs4.h: Remove file.
67936         * lib/utf8-ucs4-unsafe.h: Remove file.
67937         * lib/utf16-ucs4.h: Remove file.
67938         * lib/utf16-ucs4-unsafe.h: Remove file.
67939         * lib/ucs4-utf8.h: Remove file.
67940         * lib/ucs4-utf16.h: Remove file.
67941         * lib/unistr.h: Include their previous contents.
67942         * m4/utf-ucs4.m4: Remove file.
67943         * m4/ucs4-utf.m4: Remove file.
67944         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67945         (Depends-on): Add unistr/base.
67946         (configure.ac): Remove gl_UTF_UCS4.
67947         (Makefile.am): Update.
67948         (Include): Change to unistr.h.
67949         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67950         (Depends-on): Add unistr/base.
67951         (configure.ac): Remove gl_UTF_UCS4.
67952         (Makefile.am): Update.
67953         (Include): Change to unistr.h.
67954         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67955         (Depends-on): Add unistr/base.
67956         (configure.ac): Remove gl_UTF_UCS4.
67957         (Makefile.am): Update.
67958         (Include): Change to unistr.h.
67959         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67960         (Depends-on): Add unistr/base.
67961         (configure.ac): Remove gl_UTF_UCS4.
67962         (Makefile.am): Update.
67963         (Include): Change to unistr.h.
67964         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67965         (Depends-on): Add unistr/base.
67966         (configure.ac): Remove gl_UCS4_UTF.
67967         (Makefile.am): Update.
67968         (Include): Change to unistr.h.
67969         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67970         (Depends-on): Add unistr/base.
67971         (configure.ac): Remove gl_UCS4_UTF.
67972         (Makefile.am): Update.
67973         (Include): Change to unistr.h.
67974         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67975         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67976         utf8-ucs4-unsafe.h.
67977         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67978         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67979         utf16-ucs4-unsafe.h.
67980         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67981         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67982         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67983         * lib/unistr/u8-strchr.c: Likewise.
67984         * lib/unistr/u8-strrchr.c: Likewise.
67985         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67986         * lib/unistr/u16-strchr.c: Likewise.
67987         * lib/unistr/u16-strrchr.c: Likewise.
67988         * lib/striconveh.c: Update.
67989         * lib/linebreak.c: Update.
67990
67991 2007-03-24  Bruno Haible  <bruno@clisp.org>
67992
67993         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67994         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67995
67996 2007-03-22  Bruno Haible  <bruno@clisp.org>
67997
67998         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67999
68000 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68001
68002         * MODULES.html.sh (File system functions): New module write-any-file.
68003         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68004         * m4/write-any-file.m4: New files.
68005
68006 2007-03-23  Eric Blake  <ebb9@byu.net>
68007
68008         * gnulib-tool: Rearrange space-tab sequences, since some editors
68009         like to eat them.
68010
68011 2007-03-23  Eric Blake  <ebb9@byu.net>
68012
68013         * lib/version-etc.c (version_etc_va): Update license wording to
68014         be more concise.  Recommended by Richard Stallman.
68015
68016 2007-03-22  Bruno Haible  <bruno@clisp.org>
68017
68018         * lib/poll.c (MSG_PEEK): New fallback definition.
68019
68020 2007-03-22  Bruno Haible  <bruno@clisp.org>
68021
68022         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68023         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68024         (main): Update.
68025         Fixes a compilation error on BeOS.
68026
68027 2007-03-22  Bruno Haible  <bruno@clisp.org>
68028
68029         * modules/frexpl-tests: New file.
68030         * tests/test-frexpl.c: New file.
68031
68032         * modules/frexpl: New file.
68033         * m4/frexpl.m4: New file.
68034         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68035         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68037         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68038         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68039         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68040
68041 2007-03-22  Bruno Haible  <bruno@clisp.org>
68042
68043         * lib/frexpl.c: Share code with lib/frexp.c.
68044         * modules/mathl (Files): Add lib/frexp.c.
68045         (Depends-on): Add isnanl-nolibm.
68046
68047 2007-03-22  Bruno Haible  <bruno@clisp.org>
68048
68049         * modules/printf-frexp (Files): Add m4/frexp.m4.
68050         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68051         only if the found frexp function actually works.
68052
68053 2007-03-22  Bruno Haible  <bruno@clisp.org>
68054
68055         * lib/frexp.c: Remove older implementation that uses divisions.
68056
68057 2007-03-21  Bruno Haible  <bruno@clisp.org>
68058
68059         * modules/frexp-tests: New file.
68060         * tests/test-frexp.c: New file.
68061
68062         * modules/frexp: New file.
68063         * lib/frexp.c: New file.
68064         * m4/frexp.m4: New file.
68065         * lib/math_.h (frexp): New declaration.
68066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68067         REPLACE_FREXP.
68068         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68069
68070 2007-03-21  Bruno Haible  <bruno@clisp.org>
68071
68072         * modules/isnanl-tests: New file.
68073         * tests/test-isnanl.c: New file.
68074
68075         * modules/isnanl: New file.
68076         * lib/isnanl.h: New file.
68077         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68078         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68079         gl_FUNC_ISNANL_WORKS.
68080         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68081         New macros.
68082
68083 2007-03-21  Bruno Haible  <bruno@clisp.org>
68084
68085         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68086         lib/isnanl.h.
68087         (Include): Update.
68088         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68089         * lib/vasnprintf.c: Update.
68090         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68091         tests/test-isnanl.h, remove tests/test-isnanl.c.
68092         (Makefile.am): Update.
68093         * tests/test-isnanl-nolibm.c: New file.
68094         * tests/test-isnanl.h: New file.
68095         * tests/test-isnanl.c: Remove file.
68096
68097 2007-03-21  Jim Meyering  <jim@meyering.net>
68098
68099         When trying to open ".", treat ESTALE like EACCES.
68100         * lib/savewd.c (savewd_save): Resort to forking not just upon
68101         failure with EACCES, but also when errno is ESTALE.
68102
68103 2007-03-20  Bruno Haible  <bruno@clisp.org>
68104
68105         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68106         Needed on AIX 5.1. Reported by Matthew Woehlke.
68107
68108 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68109
68110         Suggestions by Bruno Haible:
68111         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68112         our own.
68113         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68114         * modules/acl (Depends-on): Add gettext.
68115
68116 2007-03-19  Bruno Haible  <bruno@clisp.org>
68117
68118         * modules/iconvme: Remove file.
68119         * lib/iconvme.h: Remove file.
68120         * lib/iconvme.c: Remove file.
68121         * m4/iconvme.m4: Remove file.
68122
68123 2007-03-19  Bruno Haible  <bruno@clisp.org>
68124
68125         * doc/relocatable-maint.texi: Break long shell script line.
68126         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68127
68128 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68129
68130         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68131         handle file_has_acl.
68132         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68133         * lib/acl.c: Move header inclusions and related macro defns into
68134         lib/acl-internal.h.
68135         (S_ISLNK): Remove defn, since that's now done for us.
68136         (file_has_acl): Move to lib/file-has-acl.c.
68137         Call acl_trivial if available.  This is the crucial part of the fix.
68138         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68139         shared within the library.  Rewrite a bit, partly to make it compatible
68140         with the GNU coding style.
68141         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68142         Remove unnecessary double-quotes.
68143         Don't test for acl_to_text; the build will catch that.
68144         Replace acl_entries if it doesn't exist and it is needed.
68145         Check for -lsec and acl_trivial (as used on Solaris 10).
68146         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68147         lib/file-has-acl.c.
68148         (Depends-on): Add sys_stat, for S_ISLNK.
68149
68150 2007-03-19  Ben Pfaff  <blp@gnu.org>
68151
68152         * doc/gnulib.texi: Fix typos.
68153         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68154
68155 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68156
68157         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68158         If size is zero here, buf must be zero.
68159
68160 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68161
68162         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68163         <bruno@clisp.org>.
68164
68165 2007-03-18  Bruno Haible  <bruno@clisp.org>
68166
68167         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68168         Suggested by Eric Blake.
68169
68170 2007-03-18  Ben Pfaff  <blp@gnu.org>
68171
68172         * doc/relocatable.texi: Recommend using as prefix a directory
68173         that does not exist and will never be created.  Based on
68174         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68175         and others.
68176
68177 2007-03-17  Bruno Haible  <bruno@clisp.org>
68178
68179         * lib/fchownat.c: Include lchown.h.
68180
68181 2007-03-17  Bruno Haible  <bruno@clisp.org>
68182
68183         Fix endless loop when the given allocated size was > INT_MAX.
68184         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68185         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68186         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68187         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68188         * lib/sprintf.c (sprintf): Likewise.
68189
68190 2007-03-17  Bruno Haible  <bruno@clisp.org>
68191
68192         * tests/test-argp-2.sh (func_compare): Output a context diff.
68193
68194 2007-03-17  Bruno Haible  <bruno@clisp.org>
68195
68196         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68197         locale's decimal-point character.
68198
68199 2007-03-17  Bruno Haible  <bruno@clisp.org>
68200
68201         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68202         before comparing it. Needed because on some platforms (e.g. x86) a
68203         'long double' occupies less bytes than sizeof (long double).
68204
68205 2007-03-17  Bruno Haible  <bruno@clisp.org>
68206
68207         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68208         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68209         * tests/test-getaddrinfo.c (simple): Likewise.
68210         * tests/test-read-file.c (main): Likewise.
68211
68212 2007-03-17  Bruno Haible  <bruno@clisp.org>
68213
68214         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68215
68216 2007-03-17  Bruno Haible  <bruno@clisp.org>
68217
68218         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68219         unused variable.
68220
68221 2007-03-17  Bruno Haible  <bruno@clisp.org>
68222
68223         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68224         * tests/test-c-strncasecmp.c: Likewise.
68225
68226 2007-03-17  Bruno Haible  <bruno@clisp.org>
68227
68228         * modules/stdlib (Depends-on): Add unistd.
68229         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68230         Needed for MacOS X 10.3.
68231
68232 2007-03-17  Bruno Haible  <bruno@clisp.org>
68233
68234         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68235
68236 2007-03-17  Bruno Haible  <bruno@clisp.org>
68237
68238         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68239
68240 2007-03-17  Bruno Haible  <bruno@clisp.org>
68241
68242         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68243         to reflect files copied from gnulib (with or without modifications).
68244         Suggested by Jim Meyering.
68245
68246 2007-03-17  Eric Blake  <ebb9@byu.net>
68247
68248         * NEWS: Document stdlib change from 2007-02-18.
68249
68250 2007-03-17  Jim Meyering  <jim@meyering.net>
68251
68252         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68253         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68254         someone uses a name containing shell meta-characters.
68255         Reported by Alfred M. Szmidt.
68256
68257         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
68258
68259 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68260
68261         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
68262         and copy gettext configuration files only if configure.ac contains
68263         a use of AM_GNU_GETTEXT_VERSION.
68264
68265 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68266
68267         * build-aux/bootstrap (gnulib_name): New variable.
68268         (gnulib_tool_options): Use it.
68269
68270 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68271
68272         * tests/test-des.c: Use new namespace.
68273
68274 2007-03-15  Bruno Haible  <bruno@clisp.org>
68275
68276         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68277         Reported by James Youngman <jay@gnu.org>.
68278
68279 2007-03-15  Bruno Haible  <bruno@clisp.org>
68280
68281         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68282         declared prototype. Needed with cc on OSF/1 5.1.
68283
68284 2007-03-15  Bruno Haible  <bruno@clisp.org>
68285
68286         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68287         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68288         (struct gl_list_implementation): Add dispose_fn argument to the
68289         'create_empty', 'create' methods.
68290         (struct gl_list_impl_base): Add field 'dispose_fn'.
68291         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68292         argument.
68293         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68294         dispose_fn argument.
68295         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68296         dispose_fn on the dropped values.
68297         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68298         dispose_fn argument.
68299         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68300         dropped values.
68301         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68302         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68303         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68304         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68305         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68306         argument.
68307         (gl_tree_list_free): Call dispose_fn on the dropped values.
68308         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68309         the dropped values.
68310         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68311         Add dispose_fn argument.
68312         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68313         Call dispose_fn on the dropped values.
68314         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68315         Add dispose_fn argument.
68316         (gl_sublist_create): Initialize the 'dispose_fn' field.
68317         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68318         * tests/test-array_list.c (main): Update.
68319         * tests/test-carray_list.c (main): Update.
68320         * tests/test-avltree_list.c (main): Update.
68321         * tests/test-rbtree_list.c (main): Update.
68322         * tests/test-avltreehash_list.c (main): Update.
68323         * tests/test-rbtreehash_list.c (main): Update.
68324         * tests/test-linked_list.c (main): Update.
68325         * tests/test-linkedhash_list.c (main): Update.
68326         * tests/test-array_oset.c (main): Update.
68327
68328 2007-03-15  Bruno Haible  <bruno@clisp.org>
68329
68330         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
68331         (gl_oset_create_empty): Add dispose_fn argument.
68332         (struct gl_oset_implementation): Add dispose_fn argument to
68333         'create_empty' method.
68334         (struct gl_oset_impl_base): Add dispose_fn field.
68335         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
68336         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
68337         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
68338         values.
68339         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
68340         (gl_tree_oset_free): Call dispose_fn on the dropped values.
68341         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68342         dropped value.
68343         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68344         dropped value.
68345         * tests/test-array_oset.c (main): Update.
68346         * tests/test-avltree_oset.c (main): Update.
68347         * tests/test-rbtree_oset.c (main): Update.
68348         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
68349
68350 2007-03-13  Bruno Haible  <bruno@clisp.org>
68351
68352         * tests/test-stdbool.c (i): Update after last patch.
68353
68354 2007-03-12  Bruno Haible  <bruno@clisp.org>
68355
68356         * lib/quotearg.c: Include <wctype.h> early, before the definition of
68357         the iswprint macro. Needed on Solaris 2.5.1.
68358
68359 2007-03-12  Bruno Haible  <bruno@clisp.org>
68360
68361         * tests/test-printf-frexp.c (main): Declare x as volatile.
68362
68363 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68364
68365         * doc/gnulib.texi (Build robot for gnulib): New section.
68366
68367 2007-03-12  Jim Meyering  <jim@meyering.net>
68368
68369         * build-aux/bootstrap: New file.
68370         * build-aux/bootstrap.conf: New file, from coreutils.
68371
68372 2007-03-11  Bruno Haible  <bruno@clisp.org>
68373
68374         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
68375
68376 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68377
68378         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
68379         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
68380         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
68381
68382 2007-03-11  Bruno Haible  <bruno@clisp.org>
68383
68384         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
68385         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68386
68387 2007-03-11  Bruno Haible  <bruno@clisp.org>
68388
68389         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68390         formula. Needed for SunPRO C 5.0.
68391
68392 2007-03-11  Bruno Haible  <bruno@clisp.org>
68393
68394         * modules/long-options (Depends-on): Add getopt.
68395
68396 2007-03-11  Bruno Haible  <bruno@clisp.org>
68397
68398         * modules/modechange (Depends-on): Add stdbool.
68399
68400 2007-03-11  Bruno Haible  <bruno@clisp.org>
68401
68402         * modules/i-ring (Depends-on): Add stdbool.
68403
68404 2007-03-11  Bruno Haible  <bruno@clisp.org>
68405
68406         * modules/gc-des (Depends-on): Add stdbool.
68407
68408 2007-03-11  Bruno Haible  <bruno@clisp.org>
68409
68410         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
68411
68412 2007-03-11  Bruno Haible  <bruno@clisp.org>
68413
68414         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
68415
68416 2007-03-11  Bruno Haible  <bruno@clisp.org>
68417
68418         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
68419
68420 2007-03-11  Bruno Haible  <bruno@clisp.org>
68421
68422         * lib/vasnprintf.c (sprintf): Undefine.
68423
68424 2007-03-11  Bruno Haible  <bruno@clisp.org>
68425
68426         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68427         initializers in SunPRO C and Compaq C compilers.
68428
68429 2007-03-11  Bruno Haible  <bruno@clisp.org>
68430
68431         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68432         decrementing code ANSI C compliant.
68433
68434 2007-03-11  Bruno Haible  <bruno@clisp.org>
68435
68436         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
68437         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
68438
68439 2007-03-11  Bruno Haible  <bruno@clisp.org>
68440
68441         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
68442         <stdbool.h> substitute doesn't pass.
68443
68444 2007-03-11  Bruno Haible  <bruno@clisp.org>
68445
68446         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
68447
68448 2007-03-11  Bruno Haible  <bruno@clisp.org>
68449
68450         * gnulib-tool (func_create_megatestdir): Create also an autobuild
68451         script, for submission to autobuild.josefsson.org.
68452
68453 2007-03-10  Bruno Haible  <bruno@clisp.org>
68454
68455         * modules/canonicalize-lgpl-tests: New file.
68456         * tests/test-canonicalize-lgpl.sh: New file.
68457         * tests/test-canonicalize-lgpl.c: New file.
68458
68459         * modules/c-strcase-tests: New file.
68460         * tests/test-c-strcase.sh: New file.
68461         * tests/test-c-strcasecmp.c: New file.
68462         * tests/test-c-strncasecmp.c: New file.
68463
68464         * modules/atexit-tests: New file.
68465         * tests/test-atexit.sh: New file.
68466         * tests/test-atexit.c: New file.
68467
68468 2007-03-10  Bruno Haible  <bruno@clisp.org>
68469
68470         * tests/test-binary-io.sh: Use temporary filenames that are not so
68471         likely to clash with those of other tests (in a parallel make).
68472         * tests/test-binary-io.c: Likewise.
68473
68474 2007-03-10  Bruno Haible  <bruno@clisp.org>
68475
68476         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
68477         fallback; use #error instead.
68478         Suggested by Simon Josefsson.
68479
68480 2007-03-10  Bruno Haible  <bruno@clisp.org>
68481
68482         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68483         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68484         first and the last.
68485
68486 2007-03-10  Bruno Haible  <bruno@clisp.org>
68487
68488         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68489
68490 2007-03-10  Bruno Haible  <bruno@clisp.org>
68491
68492         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68493         "make distcheck".
68494         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68495         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68496         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68497
68498 2007-03-10  Bruno Haible  <bruno@clisp.org>
68499
68500         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68501         variable.
68502         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68503         variable.
68504
68505 2007-03-09  Eric Blake  <ebb9@byu.net>
68506         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68507
68508         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68509         types are not being provided by gnulib.
68510         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68511         types are supported.
68512
68513 2007-03-10  Bruno Haible  <bruno@clisp.org>
68514
68515         * lib/stdio_.h (__attribute__): New macro.
68516         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68517         vsprintf): Specify __attribute__ __format__ for GCC.
68518         Suggested by Eric Blake.
68519
68520 2007-03-09  Bruno Haible  <bruno@clisp.org>
68521
68522         * modules/printf-posix-tests: New file.
68523         * tests/test-printf-posix.sh: New file.
68524         * tests/test-printf-posix.c: New file.
68525
68526         * modules/printf-posix: New file.
68527         * lib/printf.c: New file.
68528         * m4/printf-posix-rpl.m4: New file.
68529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68530         REPLACE_PRINTF.
68531         * lib/stdio_.h (printf): New declaration.
68532         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68533         ____strfmon____): New macros.
68534         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68535         REPLACE_PRINTF.
68536
68537 2007-03-09  Bruno Haible  <bruno@clisp.org>
68538
68539         * tests/test-vasnprintf-posix2.sh: New file.
68540         * tests/test-vasnprintf-posix2.c: New file.
68541         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68542         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68543         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68544
68545         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68546         a locale dependent decimal point, rather than always '.'.
68547
68548 2007-03-09  Eric Blake  <ebb9@byu.net>
68549
68550         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68551         spite of platforms like Tandem/NSK that define it to -1.
68552
68553 2007-03-08  Bruno Haible  <bruno@clisp.org>
68554
68555         * modules/vprintf-posix-tests: New file.
68556         * tests/test-vprintf-posix.sh: New file.
68557         * tests/test-vprintf-posix.c: New file.
68558         * tests/test-printf-posix.h: New file.
68559
68560         * modules/vprintf-posix: New file.
68561         * lib/vprintf.c: New file.
68562         * m4/vprintf-posix.m4: New file.
68563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68564         REPLACE_VPRINTF.
68565         * lib/stdio_.h (vprintf): New declaration.
68566         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68567         REPLACE_VPRINTF.
68568
68569 2007-03-08  Bruno Haible  <bruno@clisp.org>
68570
68571         * modules/fprintf-posix-tests: New file.
68572         * tests/test-fprintf-posix.sh: New file.
68573         * tests/test-fprintf-posix.c: New file.
68574
68575         * modules/fprintf-posix: New file.
68576         * lib/fprintf.c: New file.
68577         * m4/fprintf-posix.m4: New file.
68578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68579         REPLACE_FPRINTF.
68580         * lib/stdio_.h (fprintf): New declaration.
68581         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68582         REPLACE_FPRINTF.
68583
68584 2007-03-08  Bruno Haible  <bruno@clisp.org>
68585
68586         * modules/vfprintf-posix-tests: New file.
68587         * tests/test-vfprintf-posix.sh: New file.
68588         * tests/test-vfprintf-posix.c: New file.
68589         * tests/test-fprintf-posix.h: New file.
68590         * tests/test-fprintf-posix.out: New file.
68591
68592         * modules/vfprintf-posix: New file.
68593         * lib/vfprintf.c: New file.
68594         * m4/vfprintf-posix.m4: New file.
68595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68596         REPLACE_VFPRINTF.
68597         * lib/stdio_.h (vfprintf): New declaration.
68598         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68599         REPLACE_VFPRINTF.
68600
68601 2007-03-08  Bruno Haible  <bruno@clisp.org>
68602
68603         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68604
68605 2007-03-08  Bruno Haible  <bruno@clisp.org>
68606
68607         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68608         instead of 'expr' invocations.
68609         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68610         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68611         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68612         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68613         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68614         Suggested by Paul Eggert.
68615
68616 2007-03-08  Bruno Haible  <bruno@clisp.org>
68617
68618         * modules/fseterr-tests: New file.
68619         * tests/test-fseterr.c: New file.
68620
68621         * modules/fseterr: New file.
68622         * lib/fseterr.h: New file.
68623         * lib/fseterr.c: New file.
68624
68625 2007-03-08  Bruno Haible  <bruno@clisp.org>
68626
68627         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68628         * lib/getopt_.h: Likewise.
68629         * lib/mbswidth.h: Likewise.
68630         * lib/setenv.h: Likewise.
68631         * lib/vasnprintf.h: Likewise.
68632         * lib/vasprintf.h: Likewise.
68633         * lib/verror.h: Likewise.
68634         * lib/xsetenv.h: Likewise.
68635         * lib/xvasprintf.h: Likewise.
68636
68637 2007-03-08  Jim Meyering  <jim@meyering.net>
68638
68639         * users.txt: Add parted.
68640
68641         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68642
68643 2007-03-07  Bruno Haible  <bruno@clisp.org>
68644
68645         * m4/printf.m4: Make the shell script snippets copy&pastable.
68646
68647 2007-03-02  Bruno Haible  <bruno@clisp.org>
68648
68649         * lib/netinet_in_.h: New file.
68650         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68651         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68652         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68653         (Depends-on): Add absolute-header.
68654         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68655         into netinet/in.h.
68656
68657 2007-03-03  Bruno Haible  <bruno@clisp.org>
68658
68659         * lib/sys_select_.h: New file.
68660         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68661         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68662         * modules/sys_select (Files): Add lib/sys_select_.h.
68663         (Depends-on): Add absolute-header.
68664         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68665         into sys/select.h.
68666
68667 2007-03-02  Bruno Haible  <bruno@clisp.org>
68668
68669         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68670         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68671         values.
68672         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68673         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68674         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68675         * modules/sys_socket (Depends-on): Add absolute-header.
68676         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68677         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68678         (Include): Remove requirement of inclusion of <sys/types.h>.
68679
68680 2007-03-02  Bruno Haible  <bruno@clisp.org>
68681
68682         * lib/byteswap_.h (bswap_32): Fix formula.
68683
68684 2007-03-06  Bruno Haible  <bruno@clisp.org>
68685
68686         * modules/sprintf-posix-tests: New file.
68687         * tests/test-sprintf-posix.c: New file.
68688
68689         * modules/sprintf-posix: New file.
68690         * lib/sprintf.c: New file.
68691         * m4/sprintf-posix.m4: New file.
68692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68693         REPLACE_SPRINTF.
68694         * lib/stdio_.h (sprintf): New declaration.
68695         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68696         REPLACE_SPRINTF.
68697
68698 2007-03-06  Bruno Haible  <bruno@clisp.org>
68699
68700         * modules/vsprintf-posix-tests: New file.
68701         * tests/test-vsprintf-posix.c: New file.
68702         * tests/test-sprintf-posix.h: New file.
68703
68704         * modules/vsprintf-posix: New file.
68705         * lib/vsprintf.c: New file.
68706         * m4/vsprintf-posix.m4: New file.
68707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68708         REPLACE_VSPRINTF.
68709         * lib/stdio_.h (vsprintf): New declaration.
68710         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68711         REPLACE_VSPRINTF.
68712
68713 2007-03-06  Bruno Haible  <bruno@clisp.org>
68714
68715         * modules/vsnprintf (Depend-on): Remove minmax.
68716
68717 2007-03-06  Bruno Haible  <bruno@clisp.org>
68718
68719         * modules/snprintf-posix-tests: New file.
68720         * tests/test-snprintf-posix.c: New file.
68721
68722         * modules/snprintf-posix: New file.
68723         * m4/snprintf-posix.m4: New file.
68724         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68725         gl_FUNC_SNPRINTF.
68726         (gl_FUNC_SNPRINTF): Invoke it.
68727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68728         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68729         is set.
68730         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68731
68732 2007-03-06  Bruno Haible  <bruno@clisp.org>
68733
68734         * modules/vsnprintf-posix-tests: New file.
68735         * tests/test-vsnprintf-posix.c: New file.
68736         * tests/test-snprintf-posix.h: New file.
68737
68738         * modules/vsnprintf-posix: New file.
68739         * m4/vsnprintf-posix.m4: New file.
68740         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68741         gl_FUNC_VSNPRINTF.
68742         (gl_FUNC_VSNPRINTF): Invoke it.
68743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68744         * lib/stdio_.h (vsnprintf): Define as a replacement if
68745         REPLACE_VSNPRINTF is set.
68746         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68747
68748 2007-03-06  Bruno Haible  <bruno@clisp.org>
68749
68750         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68751         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68752
68753 2007-03-06  Bruno Haible  <bruno@clisp.org>
68754
68755         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68756         (asinl): Declare also if HAVE_DECL_ASINL is set.
68757         (atanl): Declare also if HAVE_DECL_ATANL is set.
68758         (ceill): Declare also if HAVE_DECL_CEILL is set.
68759         (cosl): Declare also if HAVE_DECL_COSL is set.
68760         (expl): Declare also if HAVE_DECL_EXPL is set.
68761         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68762         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68763         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68764         (logl): Declare also if HAVE_DECL_LOGL is set.
68765         (sinl): Declare also if HAVE_DECL_SINL is set.
68766         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68767         (tanl): Declare also if HAVE_DECL_TANL is set.
68768         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68769         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68770         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68771         declaration of frexpl, ldexpl.
68772         * modules/printf-frexpl (Depends-on): Add math.
68773         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68774
68775 2007-03-05  Bruno Haible  <bruno@clisp.org>
68776
68777         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68778         frexpl and ldexpl are declared.
68779         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68780
68781 2007-03-05  Bruno Haible  <bruno@clisp.org>
68782
68783         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68784         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68785
68786 2007-03-05  Bruno Haible  <bruno@clisp.org>
68787
68788         * lib/stdio_.h: Include <stddef.h>.
68789
68790 2007-03-05  Bruno Haible  <bruno@clisp.org>
68791
68792         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68793
68794 2007-03-05  Bruno Haible  <bruno@clisp.org>
68795
68796         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68797         NetBSD 4, from Ralf Wildenhues.
68798
68799 2007-03-04  Bruno Haible  <bruno@clisp.org>
68800
68801         * lib/vasprintf.h: Update #if logic for the case when the functions
68802         exist but are overridden.
68803
68804 2007-03-04  Bruno Haible  <bruno@clisp.org>
68805
68806         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68807         implementations: glibc-2.4 and MacOS X 10.3.
68808         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68809         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68810         * tests/test-vasprintf-posix.c (test_function): Likewise.
68811
68812 2007-03-04  Bruno Haible  <bruno@clisp.org>
68813
68814         * modules/vasprintf-posix-tests: New file.
68815         * tests/test-vasprintf-posix.c: New file.
68816
68817         * modules/vasprintf-posix: New file.
68818         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68819         defined.
68820         * m4/vasprintf-posix.m4: New file.
68821         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68822         gl_FUNC_VASPRINTF.
68823         (gl_FUNC_VASPRINTF): Invoke it.
68824         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68825         here.
68826         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68827
68828 2007-03-04  Bruno Haible  <bruno@clisp.org>
68829
68830         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68831         REPLACE_GETTIMEOFDAY.
68832         * modules/sys_time (Makefile.am): Likewise.
68833         * m4/sys_time_h.m4: Likewise.
68834         * m4/gettimeofday.m4: Likewise.
68835
68836 2007-03-04  Bruno Haible  <bruno@clisp.org>
68837
68838         * modules/vasnprintf-posix-tests: New file.
68839         * tests/test-vasnprintf-posix.c: New file.
68840
68841         * modules/vasnprintf-posix: New file.
68842         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68843         printf-frexpl.h.
68844         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68845         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68846         REPLACE_VASNPRINTF is defined.
68847         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68848         gl_FUNC_VASNPRINTF.
68849         (gl_FUNC_VASNPRINTF): Invoke it.
68850         * m4/vasnprintf-posix.m4: New file.
68851         * m4/printf.m4: New file.
68852
68853 2007-03-04  Bruno Haible  <bruno@clisp.org>
68854
68855         Compile progreloc.c only if --enable-relocatable is specified.
68856         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68857         if --enable-relocatable was specified.
68858         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68859         lib_SOURCES.
68860
68861 2007-03-04  Jim Meyering  <jim@meyering.net>
68862
68863         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68864         Use it consistently, rather than enumerating errno constants.
68865
68866 2007-03-04  Bruno Haible  <bruno@clisp.org>
68867
68868         * modules/xvasprintf-tests: New file.
68869         * tests/test-xvasprintf.c: New file.
68870
68871         * modules/vasprintf-tests: New file.
68872         * tests/test-vasprintf.c: New file.
68873
68874         * modules/vasnprintf-tests: New file.
68875         * tests/test-vasnprintf.c: New file.
68876
68877         * modules/vsnprintf-tests: New file.
68878         * tests/test-vsnprintf.c: New file.
68879
68880         * modules/snprintf-tests: New file.
68881         * tests/test-snprintf.c: New file.
68882
68883 2007-03-04  Bruno Haible  <bruno@clisp.org>
68884
68885         Compile relocatable.c only if --enable-relocatable is specified.
68886         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68887         gl_RELOCATABLE_LIBRARY.
68888         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68889         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68890         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68891         gl_RELOCATABLE_LIBRARY.
68892         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68893         (Makefile.am): Remove lib_SOURCES.
68894         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68895         gl_RELOCATABLE_LIBRARY.
68896         (Makefile.am): Remove lib_SOURCES.
68897         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68898         always.
68899         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68900         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68901
68902 2007-03-04  Bruno Haible  <bruno@clisp.org>
68903
68904         * modules/argmatch-tests: New file.
68905         * tests/test-argmatch.c: New file.
68906
68907         * tests/test-allocsa.c (main): Halve the number of loop runs.
68908
68909         * modules/alloca-opt-tests: New file.
68910         * tests/test-alloca-opt.c: New file.
68911
68912 2007-03-04  Jim Meyering  <jim@meyering.net>
68913
68914         Work around difference between Linux ACLs and Solaris 10 ZFS.
68915         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68916         for EINVAL.
68917
68918 2007-03-03  Bruno Haible  <bruno@clisp.org>
68919
68920         * modules/relocatable-prog (Depends-on): Add back progreloc's
68921         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68922
68923 2007-03-03  Bruno Haible  <bruno@clisp.org>
68924
68925         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68926         * modules/relocatable-lib: New file.
68927
68928 2007-03-03  Bruno Haible  <bruno@clisp.org>
68929
68930         * modules/relocatable-prog: Renamed from modules/relocatable.
68931         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68932
68933 2007-03-03  Bruno Haible  <bruno@clisp.org>
68934
68935         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68936         m4/relocatable-lib.m4.
68937         (Depends-on): Remove 'relocatable'.
68938         (configure.ac): Add gl_RELOCATABLE_NOP.
68939
68940 2007-03-03  Bruno Haible  <bruno@clisp.org>
68941
68942         * modules/relocatable-prog-wrapper: New file.
68943         * modules/relocatable (Depends-on): Add it. Remove all other
68944         dependencies except progname.
68945         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68946
68947         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68948         (gl_FUNC_STRERROR): Nop.
68949         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68950
68951         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68952         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68953
68954         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68955         (gl_FUNC_READLINK): Update.
68956
68957         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68958
68959 2007-03-03  Bruno Haible  <bruno@clisp.org>
68960
68961         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68962         * modules/xreadlink (Depends-on): Add unistd.
68963         * modules/xreadlink-with-size (Depends-on): Likewise.
68964
68965 2007-03-03  Bruno Haible  <bruno@clisp.org>
68966
68967         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68968         extracted from gt_FUNC_SETENV.
68969         (gt_FUNC_SETENV): Remove macro.
68970         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68971         remove gt_FUNC_SETENV.
68972
68973 2007-03-03  Bruno Haible  <bruno@clisp.org>
68974
68975         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68976         ENABLE_RELOCATABLE here.
68977         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68978
68979 2007-03-03  Bruno Haible  <bruno@clisp.org>
68980
68981         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68982         * tests/test-rbtreehash_list.c: Include progname.h.
68983         (main): Call set_program_name.
68984
68985         * modules/rbtree-oset-tests (Depends-on): Add progname.
68986         * tests/test-rbtree_oset.c: Include progname.h.
68987         (main): Call set_program_name.
68988
68989         * modules/rbtree-list-tests (Depends-on): Add progname.
68990         * tests/test-rbtree_list.c: Include progname.h.
68991         (main): Call set_program_name.
68992
68993         * modules/linked-list-tests (Depends-on): Add progname.
68994         * tests/test-linked_list.c: Include progname.h.
68995         (main): Call set_program_name.
68996
68997 2007-03-03  Bruno Haible  <bruno@clisp.org>
68998
68999         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69000         All uses of __restrict changed to _Restrict_.
69001         * lib/glob_.h (__restrict): Remove macro.
69002
69003 2007-03-02  Bruno Haible  <bruno@clisp.org>
69004
69005         * modules/gettext (configure.ac): Require gettext infrastructure
69006         from version 0.16.1.
69007
69008 2007-03-02  Bruno Haible  <bruno@clisp.org>
69009
69010         * modules/linkedhash-list-tests (Depends-on): Add progname.
69011         * tests/test-linkedhash_list.c: Include progname.h.
69012         (main): Call set_program_name.
69013
69014         * modules/carray-list-tests (Depends-on): Add progname.
69015         * tests/test-carray_list.c: Include progname.h.
69016         (main): Call set_program_name.
69017
69018         * modules/avltreehash-list-tests (Depends-on): Add progname.
69019         * tests/test-avltreehash_list.c: Include progname.h.
69020         (main): Call set_program_name.
69021
69022         * modules/avltree-oset-tests (Depends-on): Add progname.
69023         * tests/test-avltree_oset.c: Include progname.h.
69024         (main): Call set_program_name.
69025
69026         * modules/avltree-list-tests (Depends-on): Add progname.
69027         * tests/test-avltree_list.c: Include progname.h.
69028         (main): Call set_program_name.
69029
69030         * modules/array-oset-tests (Depends-on): Add progname.
69031         * tests/test-array_oset.c: Include progname.h.
69032         (main): Call set_program_name.
69033
69034         * modules/array-list-tests (Depends-on): Add progname.
69035         * tests/test-array_list.c: Include progname.h.
69036         (main): Call set_program_name.
69037
69038         * modules/argp-tests (Depends-on): Add progname.
69039         * tests/test-argp.c: Include argp.h first. Include progname.h.
69040         (main): Call set_program_name.
69041
69042 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69043
69044         * doc/gnulib-tool.texi (Initial import): Reword description of
69045         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69046         limited effect even if defined after the first system include.
69047
69048 2007-03-01  Bruno Haible  <bruno@clisp.org>
69049
69050         * build-aux/config.libpath: Update to libtool-1.5.22.
69051         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69052
69053 2007-03-01  Bruno Haible  <bruno@clisp.org>
69054
69055         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69056         foo_CFLAGS.
69057         Reported by Ralf Wildenhues.
69058
69059 2007-03-01  Bruno Haible  <bruno@clisp.org>
69060
69061         * build-aux/install-reloc: Remove object files left over by some
69062         compilers.
69063         Reported by Ralf Wildenhues.
69064
69065 2007-03-01  Bruno Haible  <bruno@clisp.org>
69066
69067         * build-aux/install-reloc: Break long lines.
69068
69069 2007-03-01  Bruno Haible  <bruno@clisp.org>
69070
69071         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69072         Reported by Ralf Wildenhues.
69073
69074 2007-03-01  Bruno Haible  <bruno@clisp.org>
69075
69076         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69077         include ordering constraints.
69078
69079 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69080
69081         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69082         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69083         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69084         as another example.
69085         * lib/time_.h: Fix misspelling.
69086         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69087         Require gl_HEADER_TIME_H_DEFAULTS.
69088         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69089         * m4/time_r.m4 (gl_TIME_R): Likewise.
69090         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69091
69092 2007-03-01  Bruno Haible  <bruno@clisp.org>
69093
69094         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69095         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69096
69097 2007-03-01  Jim Meyering  <jim@meyering.net>
69098
69099         * modules/xreadlink (Maintainer): Add my name.
69100         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69101
69102 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69103             Bruno Haible  <bruno@clisp.org>
69104
69105         * build-aux/install-reloc: Compile also c-ctype.c.
69106         * build-aux/relocatable.sh.in: New file.
69107         * doc/relocatable.texi: New file.
69108         * doc/relocatable-maint.texi: New file.
69109         * doc/gnulib.texi: Include relocatable-maint.texi.
69110         * lib/progreloc.c: Include unistd.h unconditionally.
69111         * lib/relocwrapper.c: Include unistd.h unconditionally.
69112         Include c-ctype.h.
69113         (add_dotbin): Use c_tolower.
69114         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69115         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69116         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69117         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69118         to m4/relocatable-lib.m4.
69119         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69120         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69121         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69122         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69123         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69124         * modules/relocatable: New file.
69125         * modules/relocatable-lib: New file.
69126         * modules/relocatable-script: New file.
69127
69128 2007-02-28  Bruno Haible  <bruno@clisp.org>
69129
69130         Import --enable-relocatable infrastructure.
69131         * build-aux/config.libpath: New file, from GNU gettext.
69132         * build-aux/install-reloc: New file, from GNU gettext.
69133         * build-aux/reloc-ldflags: New file, from GNU gettext.
69134         * lib/relocatable.h: New file, from GNU gettext.
69135         * lib/relocatable.c: New file, from GNU gettext.
69136         * lib/relocwrapper.c: New file, from GNU gettext.
69137         * m4/relocatable.m4: New file, from GNU gettext.
69138
69139 2007-02-28  Bruno Haible  <bruno@clisp.org>
69140
69141         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69142
69143         * modules/xreadlink: New file, from GNU gettext with modifications.
69144         * lib/xreadlink.c: New file, from GNU gettext.
69145         * lib/xreadlink.h: Add comments.
69146         (xreadlink): New declaration.
69147
69148         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69149         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69150         lib/xreadlink-with-size.c.
69151         (configure.ac): Remove gl_XREADLINK invocation.
69152         (Makefile.am): Augment lib_SOURCES.
69153         * m4/xreadlink.m4: Remove file.
69154         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69155         (xreadlink_with_size): Renamed from xreadink.
69156         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69157         * modules/canonicalize (Depends-on): Replace xreadlink with
69158         xreadlink-with-size.
69159         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69160
69161 2007-02-25  Jim Meyering  <jim@meyering.net>
69162
69163         * build-aux/announce-gen: When complaining about excess arguments,
69164         list them.
69165
69166 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69167
69168         * README: Document signed integer overflow situation more
69169         accurately.
69170
69171 2007-02-25  Bruno Haible  <bruno@clisp.org>
69172
69173         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69174         'a' or 'A' conversion.
69175
69176 2007-02-25  Bruno Haible  <bruno@clisp.org>
69177
69178         * modules/filename: Renamed from modules/pathname.
69179         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69180         lib/concatpath.c with lib/concat-filename.c.
69181         (Makefile.am): Update.
69182         (Include): Replace pathname.h with filename.h.
69183         * lib/filename.h: Renamed from lib/pathname.h.
69184         (concatenated_filename): Renamed from concatenated_pathname.
69185         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69186         (concatenated_filename): Renamed from concatenated_pathname.
69187         * lib/findprog.c: Include filename.h instead of pathname.h.
69188         (find_in_path): Update.
69189         * lib/javacomp.c: Include filename.h instead of pathname.h.
69190         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69191         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69192         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69193         is_oldgcj_14_13_usable, is_javac_usable): Update.
69194         * lib/javaexec.c: Include filename.h instead of pathname.h.
69195         (execute_java_class): Update.
69196         * modules/findprog: Update.
69197         * modules/javacomp: Update.
69198         * modules/javaexec: Update.
69199         * MODULES.html.sh (File system functions): Add 'filename', remove
69200         'pathname'.
69201
69202 2007-02-25  Bruno Haible  <bruno@clisp.org>
69203
69204         * modules/printf-frexpl-tests: New file.
69205         * tests/test-printf-frexpl.c: New file.
69206
69207         * modules/printf-frexpl: New file.
69208         * lib/printf-frexpl.h: New file.
69209         * lib/printf-frexpl.c: New file.
69210         * m4/printf-frexpl.m4: New file.
69211
69212 2007-02-25  Bruno Haible  <bruno@clisp.org>
69213
69214         * modules/printf-frexp-tests: New file.
69215         * tests/test-printf-frexp.c: New file.
69216
69217         * modules/printf-frexp: New file.
69218         * lib/printf-frexp.h: New file.
69219         * lib/printf-frexp.c: New file.
69220         * m4/printf-frexp.m4: New file.
69221
69222 2007-02-25  Bruno Haible  <bruno@clisp.org>
69223
69224         Assume automake >= 1.10 for the tests.
69225         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69226         * modules/arctwo-tests: Likewise.
69227         * modules/argp-tests: Likewise.
69228         * modules/avltree-list-tests: Likewise.
69229         * modules/avltree-oset-tests: Likewise.
69230         * modules/avltreehash-list-tests: Likewise.
69231         * modules/carray-list-tests: Likewise.
69232         * modules/crc-tests: Likewise.
69233         * modules/des-tests: Likewise.
69234         * modules/gc-arcfour-tests: Likewise.
69235         * modules/gc-arctwo-tests: Likewise.
69236         * modules/gc-des-tests: Likewise.
69237         * modules/gc-hmac-md5-tests: Likewise.
69238         * modules/gc-hmac-sha1-tests: Likewise.
69239         * modules/gc-md2-tests: Likewise.
69240         * modules/gc-md4-tests: Likewise.
69241         * modules/gc-md5-tests: Likewise.
69242         * modules/gc-pbkdf2-sha1-tests: Likewise.
69243         * modules/gc-rijndael-tests: Likewise.
69244         * modules/gc-sha1-tests: Likewise.
69245         * modules/gc-tests: Likewise.
69246         * modules/getaddrinfo-tests: Likewise.
69247         * modules/hmac-md5-tests: Likewise.
69248         * modules/hmac-sha1-tests: Likewise.
69249         * modules/linked-list-tests: Likewise.
69250         * modules/linkedhash-list-tests: Likewise.
69251         * modules/lock-tests: Likewise.
69252         * modules/md2-tests: Likewise.
69253         * modules/md4-tests: Likewise.
69254         * modules/md5-tests: Likewise.
69255         * modules/rbtree-list-tests: Likewise.
69256         * modules/rbtree-oset-tests: Likewise.
69257         * modules/rbtreehash-list-tests: Likewise.
69258         * modules/read-file-tests: Likewise.
69259         * modules/rijndael-tests: Likewise.
69260         * modules/stdint-tests: Likewise.
69261         * modules/tls-tests: Likewise.
69262
69263 2007-02-24  Bruno Haible  <bruno@clisp.org>
69264
69265         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69266         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69267         function; instead check whether isnan with a double argument links.
69268         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69269         function; instead check whether isnan with a 'long double' argument
69270         links.
69271         Reported by Eric Blake <ebb9@byu.net>.
69272
69273 2007-02-24  Bruno Haible  <bruno@clisp.org>
69274
69275         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69276         defined.
69277         * lib/isnanl.c: Remove all code. Just include isnan.c.
69278         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69279
69280 2007-02-25  Jim Meyering  <jim@meyering.net>
69281
69282         Avoid conflicting types for 'unsetenv' on FreeBSD.
69283         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69284         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69285         in stdlib.h.
69286
69287 2007-02-24  Bruno Haible  <bruno@clisp.org>
69288
69289         * modules/isnanl-nolibm-tests: New file.
69290         * tests/test-isnanl.c: New file.
69291
69292         * modules/isnanl-nolibm: New file.
69293         * lib/isnanl.h: New file.
69294         * lib/isnanl.c: New file.
69295         * m4/isnanl.m4: New file.
69296
69297 2007-02-24  Bruno Haible  <bruno@clisp.org>
69298
69299         * modules/isnan-nolibm-tests: New file.
69300         * tests/test-isnan.c: New file.
69301
69302         * modules/isnan-nolibm: New file.
69303         * lib/isnan.h: New file.
69304         * lib/isnan.c: New file.
69305         * m4/isnan.m4: New file.
69306
69307 2007-02-24  Bruno Haible  <bruno@clisp.org>
69308
69309         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69310         assume that an exponent fits in 20 bits.
69311
69312 2007-02-24  Jim Meyering  <jim@meyering.net>
69313
69314         * m4/regex.m4: Update the description of the configure-time option,
69315         --without-included-regex, to state accurately what the defaults are,
69316         and perhaps to give people an idea why using this option is risky.
69317
69318 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69319
69320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69321         loops on small arguments.  This attempts to avoid the problem
69322         Bruno Haible reported for AIX 4.3.2 in
69323         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69324
69325 2007-02-23  Bruno Haible  <bruno@clisp.org>
69326
69327         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69328         Needed for help2man.
69329
69330 2007-02-23  Karl Berry  <karl@gnu.org>
69331
69332         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
69333         exists, foo.h should be cvs-ignored, not committed.
69334
69335 2007-02-23  Eric Blake  <ebb9@byu.net>
69336
69337         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
69338         * lib/stat-time.h (includes): Likewise.
69339         * lib/utimecmp.c (includes): Likewise.
69340         * lib/utimens.h (includes): Likewise.
69341         * lib/getdate.y (includes): Also include "timespec.h" for use
69342         internal to the module.
69343         * modules/utimens (Depends-on): Revert yesterday's patch.
69344         * modules/nanosleep (Depends-on): Add missing dependency.
69345
69346 2007-02-22  Bruno Haible  <bruno@clisp.org>
69347
69348         * lib/glob.c: Don't include getlogin_r.h.
69349
69350 2007-02-22  Jim Meyering  <jim@meyering.net>
69351
69352         * modules/utimens (Depends-on): Add timespec, required for
69353         utimens.h's inclusion of timespec.h.
69354
69355 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
69356
69357         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
69358         long unreadable paths in GNU/Linux.  Problem reported by Andreas
69359         Schwab in
69360         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
69361         I'll try to think of a better way to fix the Solaris problem.
69362
69363         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
69364         like glibc; on Solaris 10, it fails with errno == EINVAL.
69365         POSIX says the behavior is unspecified if the first argument is NULL,
69366         so play it safe and never pass NULL to the system getcwd.
69367
69368 2007-02-21  Jim Meyering  <jim@meyering.net>
69369
69370         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
69371         of gettimeofday.  It would conflict with the one now always
69372         provided via sys_time_.h.  Reported by Matthew Woehlke, as
69373         an IRIX 6.5 build failure.
69374
69375 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69376
69377         Minor fixups to port to Solaris 10 with Sun C 5.8.
69378         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
69379         * modules/getcwd (Depends-on): Add dirfd.
69380         * lib/putenv.c (putenv): #undef it.
69381         (rpl_putenv): New decl.
69382         (malloc, free): Include <stdlib.h> rather than prototyping separately.
69383
69384 2007-02-20  Bruno Haible  <bruno@clisp.org>
69385
69386         * modules/stdio-tests: New file.
69387         * tests/test-stdio.c: New file.
69388
69389         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69390         (Depends-on): Add stdio.
69391         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69392         (Include): Use <stdio.h> instead of vsnprintf.h.
69393         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69394         HAVE_DECL_VSNPRINTF.
69395         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69396
69397         * modules/snprintf (Files): Remove lib/snprintf.h.
69398         (Depends-on): Add stdio.
69399         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69400         (Include): Use <stdio.h> instead of snprintf.h.
69401         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69402         HAVE_DECL_SNPRINTF.
69403         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69404         * lib/getaddrinfo.c: Likewise.
69405
69406         * modules/stdio: New file.
69407         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
69408         * lib/snprintf.h: Remove file.
69409         * lib/vsnprintf.h: Remove file.
69410         * lib/.cppi-disable: Remove snprintf.h.
69411         * m4/stdio_h.m4: New file.
69412         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
69413
69414 2007-02-20  Jim Meyering  <jim@meyering.net>
69415
69416         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
69417         used by e.g., mingw.  From Bruno Haible.
69418
69419 2007-02-19  Bruno Haible  <bruno@clisp.org>
69420
69421         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
69422         warnings.
69423         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69424
69425 2007-02-19  Bruno Haible  <bruno@clisp.org>
69426
69427         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69428         from mingw users.
69429
69430 2007-02-19  Bruno Haible  <bruno@clisp.org>
69431
69432         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69433         warnings.
69434         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69435
69436 2007-02-19  Jim Meyering  <jim@meyering.net>
69437
69438         Don't use FD after a successful "fdopendir (fd)".
69439         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
69440         Reset it by calling dirfd on the just-obtained DIR*.
69441
69442         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
69443         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
69444
69445 2007-02-18  Bruno Haible  <bruno@clisp.org>
69446
69447         * lib/readlink.c: Include <unistd.h>.
69448         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
69449         HAVE_READLINK.
69450         * modules/readlink (Depends-on): Add unistd.
69451         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69452         (Include): Add <unistd.h>.
69453
69454         * lib/getlogin_r.h: Remove file.
69455         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
69456         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
69457         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
69458         HAVE_DECL_GETLOGIN_R.
69459         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
69460         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69461         (Include): Use <unistd.h> instead of getlogin_r.h.
69462
69463         * lib/getcwd.h: Remove file.
69464         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
69465         * lib/xgetcwd.c: Likewise.
69466         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
69467         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
69468         * modules/getcwd (Files): Remove lib/getcwd.h.
69469         (Depends-on): Add unistd.
69470         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69471         (Include): Use <unistd.h> instad of getcwd.h.
69472
69473         * lib/ftruncate.c: Include <unistd.h> first.
69474         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
69475         Set HAVE_FTRUNCATE.
69476         * modules/ftruncate (Depends-on): Add unistd.
69477         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69478
69479         * lib/fchdir.c: Include <unistd.h> first.
69480         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
69481         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69482         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69483         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69484         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69485
69486         * lib/dup2.c: Include <unistd.h> first.
69487         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69488         HAVE_DUP2.
69489         * modules/dup2 (Depends-on): Add unistd.
69490         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69491
69492         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69493         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69494         REPLACE_CHOWN. Don't define chown as a macro here.
69495         * modules/chown (Depends-on): Add unistd.
69496         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69497
69498         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69499         Add definition for GL_LINK_WARNING.
69500         (chown, dup2): New declarations.
69501         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69502         link warning.
69503         (ftruncate): New declaration.
69504         (getcwd): New declaration, taken from old getcwd.h.
69505         (getlogin_r): New declaration, taken from old getlogin_r.h.
69506         (readlink): New declaration.
69507         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69508         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69509         (gl_PREREQ_UNISTD): Remove macro.
69510         (gl_UNISTD_MODULE_INDICATOR): New macro.
69511         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69512         many new variables. Don't set UNISTD_H.
69513         * modules/unistd (Description): Change.
69514         (Depends-on): Add link-warning.
69515         (configure.ac): Update.
69516         (Makefile.am): Create unistd.h always. Substitute many new variables
69517         into it.
69518
69519 2007-02-18  Bruno Haible  <bruno@clisp.org>
69520
69521         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69522         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69523         HAVE_GETSUBOPT.
69524         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69525         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69526         * lib/getsubopt.h: Remove file.
69527         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69528         (Depends-on): Add stdlib.
69529         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69530         (Includes): Use <stdlib.h> instead of getsubopt.h.
69531         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69532         Set HAVE_GETSUBOPT.
69533         * lib/getsubopt.c: Don't include getsubopt.h.
69534
69535 2007-02-18  Bruno Haible  <bruno@clisp.org>
69536
69537         * modules/fchdir (Depends-on): Add dup2.
69538
69539 2007-02-18  Bruno Haible  <bruno@clisp.org>
69540
69541         * lib/stdlib_.h: Handle glibc's special invocation convention
69542         specially.
69543
69544 2007-02-18  Bruno Haible  <bruno@clisp.org>
69545
69546         * modules/stdlib-tests: New file.
69547         * tests/test-stdlib.c: New file.
69548
69549         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69550         (Depends-on): Add stdlib.
69551         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69552         (Includes): Use <stdlib.h> instead of mkstemp.h.
69553         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69554         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69555         * lib/mkstemp.c: Don't include mkstemp.h.
69556         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69557         * lib/stdlib--.h: Don't include mkstemp.h.
69558
69559         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69560         (Depends-on): Add stdlib.
69561         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69562         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69563         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69564         HAVE_MKDTEMP.
69565         * lib/mkdtemp.c: Don't include mkdtemp.h.
69566         * lib/clean-temp.c: Don't include mkdtemp.h.
69567
69568         * modules/exit (Files): Remove lib/exit.h.
69569         (Depends-on): Add stdlib.
69570         (Makefile.am): Remove lib_SOURCES.
69571         (Include): Use <stdlib.h> instead of exit.h.
69572         * lib/argmatch.c: Don't include exit.h.
69573         * lib/execute.c: Likewise.
69574         * lib/pagealign_alloc.c: Likewise.
69575         * lib/pipe.c: Likewise.
69576         * lib/wait-process.c: Likewise.
69577         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69578         * lib/exitfail.c: Likewise.
69579         * lib/savewd.c: Likewise.
69580         * lib/xsetenv.c: Likewise.
69581
69582         * modules/stdlib: New file.
69583         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69584         and extra comments about mkstemp().
69585         * lib/exit.h: Remove file.
69586         * lib/mkdtemp.h: Remove file.
69587         * lib/mkstemp.h: Remove file.
69588         * m4/stdlib_h.m4: New file.
69589         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69590
69591 2007-02-18  Bruno Haible  <bruno@clisp.org>
69592
69593         * modules/math-tests: New file.
69594         * tests/test-math.c: New file.
69595
69596         * modules/math: New file.
69597         * modules/mathl (Files): Remove lib/mathl.h.
69598         (Depends-on): Add math.
69599         (Makefile.am): Don't mention mathl.h.
69600         (Include): Use <math.h> instead of mathl.h.
69601         * lib/math_.h: New file.
69602         * lib/mathl.h: Remove file.
69603         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69604         mathl.h.
69605         * lib/asinl.c: Likewise.
69606         * lib/atanl.c: Likewise.
69607         * lib/ceill.c: Likewise.
69608         * lib/cosl.c: Likewise.
69609         * lib/expl.c: Likewise.
69610         * lib/floorl.c: Likewise.
69611         * lib/frexpl.c: Likewise.
69612         * lib/ldexpl.c: Likewise.
69613         * lib/logl.c: Likewise.
69614         * lib/sincosl.c: Likewise.
69615         * lib/sinl.c: Likewise.
69616         * lib/sqrtl.c: Likewise.
69617         * lib/tanl.c: Likewise.
69618         * lib/trigl.c: Likewise.
69619         * m4/math_h.m4: New file.
69620         * MODULES.html.sh (Mathematics): Add math.
69621
69622 2007-02-17  Bruno Haible  <bruno@clisp.org>
69623
69624         * modules/wctype-tests: New file.
69625         * tests/test-wctype.c: New file.
69626
69627         * modules/wchar-tests: New file.
69628         * tests/test-wchar.c: New file.
69629
69630         * modules/unistd-tests: New file.
69631         * tests/test-unistd.c: New file.
69632
69633         * modules/time-tests: New file.
69634         * tests/test-time.c: New file.
69635
69636         * modules/sysexits-tests: New file.
69637         * tests/test-sysexits.c: New file.
69638
69639         * modules/sys_time-tests: New file.
69640         * tests/test-sys_time.c: New file.
69641
69642         * modules/sys_stat-tests: New file.
69643         * tests/test-sys_stat.c: New file.
69644
69645         * modules/sys_socket-tests: New file.
69646         * tests/test-sys_socket.c: New file.
69647
69648         * modules/sys_select-tests: New file.
69649         * tests/test-sys_select.c: New file.
69650
69651         * modules/string-tests: New file.
69652         * tests/test-string.c: New file.
69653
69654         * modules/stdbool-tests: New file.
69655         * tests/test-stdbool.c: New file.
69656
69657         * modules/netinet_in-tests: New file.
69658         * tests/test-netinet_in.c: New file.
69659
69660         * modules/inttypes-tests: New file.
69661         * tests/test-inttypes.c: New file.
69662
69663         * modules/fcntl-tests: New file.
69664         * tests/test-fcntl.c: New file.
69665
69666         * modules/byteswap-tests: New file.
69667         * tests/test-byteswap.c: New file.
69668
69669         * modules/arpa_inet-tests: New file.
69670         * tests/test-arpa_inet.c: New file.
69671
69672 2007-02-17  Bruno Haible  <bruno@clisp.org>
69673
69674         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69675         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69676         if the corresponding module is not enabled. Emit link warnings if
69677         the function is used nevertheless.
69678         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69679         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69680         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69681         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69682         * modules/inttypes (Depends-on): Add link-warning.
69683         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69684         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69685         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69686         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69687         * modules/imaxdiv (configure.ac): Likewise.
69688         * modules/strtoimax (configure.ac): Likewise.
69689         * modules/strtoumax (configure.ac): Likewise.
69690
69691 2007-02-17  Bruno Haible  <bruno@clisp.org>
69692
69693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69694         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69695         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69696         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69697
69698 2007-02-17  Bruno Haible  <bruno@clisp.org>
69699
69700         * modules/link-warning: New file.
69701         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69702         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69703         * modules/string (Depends-on): Add link-warning.
69704         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69705         string.h.
69706         * MODULES.html.sh (Support for building libraries and executables): Add
69707         link-warning.
69708
69709 2007-02-17  Bruno Haible  <bruno@clisp.org>
69710
69711         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69712         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69713         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69714         long lines.
69715
69716 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69717             Bruno Haible  <bruno@clisp.org>
69718
69719         * modules/tmpfile: New file.
69720         * lib/tmpfile.c: New file.
69721         * m4/tmpfile.m4: New file.
69722         * MODULES.html.sh (func_all_modules): New section "Input/output".
69723
69724 2007-02-15  Bruno Haible  <bruno@clisp.org>
69725
69726         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69727         (supports_delete_on_close): New function.
69728         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69729
69730 2007-02-14  Bruno Haible  <bruno@clisp.org>
69731
69732         * modules/mbspcasecmp-tests: New file.
69733         * tests/test-mbspcasecmp.sh: New file.
69734         * tests/test-mbspcasecmp.c: New file.
69735
69736         New module mbspcasecmp.
69737         * modules/mbspcasecmp: New file.
69738         * lib/mbspcasecmp.c: New file.
69739         * lib/string_.h (strncasecmp): Change warning message.
69740         (mbspcasecmp): New declaration.
69741         * m4/mbspcasecmp.m4: New file.
69742         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69743         GNULIB_MBSPCASECMP.
69744         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69745         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69746
69747 2007-02-14  Bruno Haible  <bruno@clisp.org>
69748
69749         * modules/mbsncasecmp-tests: New file.
69750         * tests/test-mbsncasecmp.sh: New file.
69751         * tests/test-mbsncasecmp.c: New file.
69752
69753         New module mbsncasecmp.
69754         * modules/mbsncasecmp: New file.
69755         * lib/mbsncasecmp.c: New file.
69756         * lib/string_.h (mbsncasecmp): New declaration.
69757         * m4/mbsncasecmp.m4: New file.
69758         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69759         GNULIB_MBSNCASECMP.
69760         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69761         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69762
69763 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69764
69765         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69766         Verify that it doesn't overlap with our flags.
69767         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69768         do not have the desired effect in multibyte locales; instead, use
69769         mbscasecmp.
69770         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69771         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69772         we don't require GNU fnmatch ourselves (if our users require it, they
69773         should do so explicitly).
69774
69775         Fix regex code so it doesn't rely on strcasecmp.
69776         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69777         Otherwise, include gnulib's langinfo.h.
69778         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69779         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69780         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69781         * modules/regex (FILES): Remove m4/codeset.m4.
69782         (Depends-on): Add localcharset.  Remove strcase.
69783
69784 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69785
69786         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69787         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69788
69789 2007-02-13  Bruno Haible  <bruno@clisp.org>
69790
69791         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69792         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69793
69794 2007-02-12  Bruno Haible  <bruno@clisp.org>
69795
69796         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69797         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69798         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69799         time warning rather than a link error.
69800
69801 2007-02-12  Bruno Haible  <bruno@clisp.org>
69802
69803         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69804         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69805         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69806
69807 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69808
69809         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69810         args, not 2.
69811
69812 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69813
69814         New module 'time', so that apps can include <time.h> as per
69815         POSIX and GNU instead of separate include files like time_r.h
69816         and timegm.h.  This implementation tries out a simpler approach
69817         for replacing decls in standard include files (as compared to
69818         the string module), somewhat as an experiment.
69819
69820         * config/srclist.txt: Comment out mktime.c for now.
69821         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69822         since it doesn't apply any more.  Use generic wording instead.
69823         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69824         'time'.
69825         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69826         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69827         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69828         Don't include <sys/types.h>; no longer needed since we assume C89.
69829         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69830         * lib/strftime.c: Likewise.
69831         * lib/time_r.c: Likewise.
69832         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69833         * lib/nanosleep.c: Include <time.h> first, to check interface.
69834         * lib/strptime.c: Likewise.
69835         * lib/time_r.c: Likewise.
69836         * lib/timegm.c: Likewise.
69837         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69838         needed.
69839         * lib/timegm.c: Don't include timegm.h; no longer needed.
69840         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69841         time.h now handles any problems in that area.
69842         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69843         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69844         that time.h defines struct timespec.
69845         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69846         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69847         handles that.
69848         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69849         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69850         needed.  Set REPLACE_LOCALTIME.
69851         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69852         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69853         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69854         nanosleep; time_h.m4 now does that.  Don't require
69855         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69856         module handles this now.
69857         * modules/getdate (Depends-on): Remove timespec.  Add time.
69858         * modules/nanosleep (Depends-on): Likewise.
69859         * modules/stat-time (Depends-on): Likewise.
69860         * modules/nanosleep (Include): Include time.h, not timespec.h.
69861         * modules/strptime (Files): Remove lib/strptime.h.
69862         (Depends-on): Add extensions, time.
69863         (Include): Include time.h, not strptime.h.
69864         * modules/time_r (Files): Remove lib/time_r.h.
69865         (Depends-on): Add time.
69866         (Include): Include time.h, not time_r.h.
69867         * modules/timegm: Likewise.
69868         * modules/timespec (Description): Now does timespec-related decls
69869         of our own, instead of struct timespec itself.
69870         (Depends-on): Add time; remove extensions.
69871         (Maintainer): Add self.
69872         * modules/utimecmp (Depends-on): Add time; remove timespec.
69873         * modules/utimens (Depends-on): Likewise.
69874         * modules/xnanosleep (Depends-on): Likewise.
69875
69876 2007-02-11  Bruno Haible  <bruno@clisp.org>
69877
69878         * lib/c-strstr.c: Include allocsa.h.
69879         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69880         * lib/c-strcasestr.c: Include allocsa.h.
69881         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69882         * lib/strcasestr.c: Include allocsa.h.
69883         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69884         * lib/mbsstr.c: Include allocsa.h.
69885         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69886         allocsa/freesa instead of malloc/free.
69887         * lib/mbscasestr.c: Include allocsa.h.
69888         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69889         allocsa/freesa instead of malloc/free.
69890         * modules/c-strstr (Depends-on): Add allocsa.
69891         * modules/c-strcasestr (Depends-on): Likewise.
69892         * modules/strcasestr (Depends-on): Likewise.
69893         * modules/mbsstr (Depends-on): Likewise.
69894         * modules/mbscasestr (Depends-on): Likewise.
69895
69896 2007-02-11  Bruno Haible  <bruno@clisp.org>
69897
69898         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69899
69900         * modules/mbsspn-tests: New file.
69901         * tests/test-mbsspn.sh: New file.
69902         * tests/test-mbsspn.c: New file.
69903
69904 2007-02-11  Bruno Haible  <bruno@clisp.org>
69905
69906         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69907
69908         * modules/mbspbrk-tests: New file.
69909         * tests/test-mbspbrk.sh: New file.
69910         * tests/test-mbspbrk.c: New file.
69911
69912 2007-02-11  Bruno Haible  <bruno@clisp.org>
69913
69914         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69915         unneeded cast.
69916
69917         * modules/mbscspn-tests: New file.
69918         * tests/test-mbscspn.sh: New file.
69919         * tests/test-mbscspn.c: New file.
69920
69921 2007-02-11  Bruno Haible  <bruno@clisp.org>
69922
69923         * modules/mbscasecmp-tests: New file.
69924         * tests/test-mbscasecmp.sh: New file.
69925         * tests/test-mbscasecmp.c: New file.
69926
69927 2007-02-11  Bruno Haible  <bruno@clisp.org>
69928
69929         Ensure O(n) worst-case complexity of mbscasestr.
69930         * lib/mbscasestr.c: Include stdbool.h.
69931         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69932         functions.
69933         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69934         the bookkeeping indicates that it's worth it.
69935         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69936
69937         * modules/mbscasestr-tests: New file.
69938         * tests/test-mbscasestr1.c: New file.
69939         * tests/test-mbscasestr2.sh: New file.
69940         * tests/test-mbscasestr2.c: New file.
69941         * tests/test-mbscasestr3.sh: New file.
69942         * tests/test-mbscasestr3.c: New file.
69943         * tests/test-mbscasestr4.sh: New file.
69944         * tests/test-mbscasestr4.c: New file.
69945         * m4/locale-tr.m4: New file.
69946
69947 2007-02-11  Bruno Haible  <bruno@clisp.org>
69948
69949         Ensure O(n) worst-case complexity of mbsstr.
69950         * lib/mbsstr.c: Include stdbool.h.
69951         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69952         functions.
69953         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69954         bookkeeping indicates that it's worth it.
69955         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69956
69957         * modules/mbsstr-tests: New file.
69958         * tests/test-mbsstr1.c: New file.
69959         * tests/test-mbsstr2.sh: New file.
69960         * tests/test-mbsstr2.c: New file.
69961         * tests/test-mbsstr3.sh: New file.
69962         * tests/test-mbsstr3.c: New file.
69963         * m4/locale-fr.m4: New file.
69964
69965 2007-02-11  Bruno Haible  <bruno@clisp.org>
69966
69967         * lib/mbsrchr.c (mbsrchr): Fix bug.
69968
69969         * modules/mbsrchr-tests: New file.
69970         * tests/test-mbsrchr.sh: New file.
69971         * tests/test-mbsrchr.c: New file.
69972
69973 2007-02-11  Bruno Haible  <bruno@clisp.org>
69974
69975         * lib/mbschr.c (mbschr): Fix bug.
69976
69977         * modules/mbschr-tests: New file.
69978         * tests/test-mbschr.sh: New file.
69979         * tests/test-mbschr.c: New file.
69980         * m4/locale-zh.m4: New file.
69981
69982 2007-02-11  Bruno Haible  <bruno@clisp.org>
69983
69984         Support for copying multibyte string iterators.
69985         * lib/mbiter.h: Include <string.h>.
69986         (mbiter_multi_copy): New function.
69987         (mbi_copy): New macro.
69988         * lib/mbuiter.h: Include <string.h>.
69989         (mbuiter_multi_copy): New function.
69990         (mbui_copy): New macro.
69991
69992 2007-02-11  Bruno Haible  <bruno@clisp.org>
69993
69994         New module mbslen.
69995         * modules/mbslen: New file.
69996         * lib/mbslen.c: New file.
69997         * lib/string_.h (mbslen): New declaration.
69998         * m4/mbslen.m4: New file.
69999         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70000         GNULIB_MBSLEN.
70001         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70002         * MODULES.html.sh (Internationalization functions): Add mbslen.
70003
70004 2007-02-11  Bruno Haible  <bruno@clisp.org>
70005
70006         Ensure O(n) worst-case complexity of strcasestr substitute.
70007         * lib/strcasestr.c: Include stdbool.h.
70008         (knuth_morris_pratt): New function.
70009         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70010         bookkeeping indicates that it's worth it.
70011         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70012
70013         * modules/strcasestr-tests: New file.
70014         * tests/test-strcasestr.c: New file.
70015
70016 2007-02-11  Bruno Haible  <bruno@clisp.org>
70017
70018         Ensure O(n) worst-case complexity of c_strcasestr.
70019         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70020         (knuth_morris_pratt): New function.
70021         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70022         the bookkeeping indicates that it's worth it.
70023         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70024
70025         * modules/c-strcasestr-tests: New file.
70026         * tests/test-c-strcasestr.c: New file.
70027
70028 2007-02-11  Bruno Haible  <bruno@clisp.org>
70029
70030         Ensure O(n) worst-case complexity of c_strstr.
70031         * lib/c-strstr.c: Include stdbool.h, string.h.
70032         (knuth_morris_pratt): New function.
70033         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70034         bookkeeping indicates that it's worth it.
70035         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70036
70037         * lib/c-strstr.c: Complete rewrite for maintainability.
70038
70039         * modules/c-strstr-tests: New file.
70040         * tests/test-c-strstr.c: New file.
70041
70042 2007-02-11  Bruno Haible  <bruno@clisp.org>
70043
70044         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70045         5.2.1 and earlier, whereby \055 was treated just like the range
70046         delimiter '-'.
70047         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70048
70049 2007-02-08  Bruno Haible  <bruno@clisp.org>
70050
70051         * modules/regex (Depends-on): Add stdbool.
70052         Reported by Dalibor Topic <robilad@kaffe.org>.
70053
70054 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70055
70056         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70057         Prefer returning from main to exiting from it.
70058         Remove unnecessary parens after sizeof.
70059
70060 2007-02-05  Bruno Haible  <bruno@clisp.org>
70061
70062         New module mbssep.
70063         * modules/mbssep: New file.
70064         * lib/mbssep.c: New file.
70065         * lib/string_.h (strsep): Add a conditional link warning.
70066         (mbssep): New declaration.
70067         * m4/mbssep.m4: New file.
70068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70069         GNULIB_MBSSEP.
70070         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70071         * MODULES.html.sh (Internationalization functions): Add mbssep.
70072
70073 2007-02-05  Bruno Haible  <bruno@clisp.org>
70074
70075         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70076         Optimize search in case of 1 delimiter.
70077
70078 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70079
70080         * lib/acl.h: Include sys/types.h before sys/acl.h.
70081
70082 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70083
70084         Merge upstream fix for glibc bugzilla #3957:
70085
70086         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70087
70088         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70089         bit for RE_HAT_LISTS_NOT_NEWLINE.
70090         (build_charclass_op): Remove bogus comment.
70091
70092 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70093
70094         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70095
70096 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70097
70098         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70099         * lib/memmem.c [!defined _LIBC]: Include config.h.
70100
70101 2007-02-04  Bruno Haible  <bruno@clisp.org>
70102
70103         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70104         warning message.
70105
70106 2007-02-04  Bruno Haible  <bruno@clisp.org>
70107
70108         New module mbstok_r.
70109         * modules/mbstok_r: New file.
70110         * lib/mbstok_r.c: New file.
70111         * lib/string_.h (strtok_r): Change argument names to match the
70112         comments. Add a conditional link warning.
70113         (mbstok_r): New declaration.
70114         * m4/mbstok_r.m4: New file.
70115         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70116         GNULIB_MBSTOK_R.
70117         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70118         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70119
70120 2007-02-04  Bruno Haible  <bruno@clisp.org>
70121
70122         New module mbsspn.
70123         * modules/mbsspn: New file.
70124         * lib/mbsspn.c: New file.
70125         * lib/string_.h (strspn): Add a conditional link warning.
70126         (mbsspn): New declaration.
70127         * m4/mbsspn.m4: New file.
70128         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70129         GNULIB_MBSSPN.
70130         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70131         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70132
70133 2007-02-04  Bruno Haible  <bruno@clisp.org>
70134
70135         New module mbspbrk.
70136         * modules/mbspbrk: New file.
70137         * lib/mbspbrk.c: New file.
70138         * lib/string_.h (strpbrk): Add a conditional link warning.
70139         (mbspbrk): New declaration.
70140         * m4/mbspbrk.m4: New file.
70141         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70142         GNULIB_MBSPBRK.
70143         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70144         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70145
70146 2007-02-04  Bruno Haible  <bruno@clisp.org>
70147
70148         New module mbscspn.
70149         * modules/mbscspn: New file.
70150         * lib/mbscspn.c: New file.
70151         * lib/string_.h (strcspn): Add a conditional link warning.
70152         (mbscspn): New declaration.
70153         * m4/mbscspn.m4: New file.
70154         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70155         GNULIB_MBSCSPN.
70156         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70157         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70158
70159 2007-02-04  Bruno Haible  <bruno@clisp.org>
70160
70161         New module mbscasestr, reduced goal of strcasestr.
70162         * modules/mbscasestr: New file.
70163         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70164         (mbscasestr): Renamed from strcasestr.
70165         * lib/strcasestr.c: Don't include mbuiter.h.
70166         (strcasestr): Remove support for multibyte locales.
70167         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70168         Change the conditional link warning.
70169         (mbscasestr): New declaration.
70170         * m4/mbscasestr.m4: New file.
70171         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70172         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70173         REPLACE_STRCASESTR.
70174         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70175         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70176         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70177         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70178         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70179         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70180         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70181         (Depends-on): Remove mbuiter.
70182         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70183
70184 2007-02-04  Bruno Haible  <bruno@clisp.org>
70185
70186         Simplify handling of strncasecmp.
70187         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70188         the conditional link warning.
70189         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70190         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70191         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70192         * modules/strcase (configure.ac): Don't invoke
70193         gl_STRING_MODULE_INDICATOR.
70194         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70195
70196 2007-02-04  Bruno Haible  <bruno@clisp.org>
70197
70198         New module mbscasecmp, reduced goal of strcasecmp.
70199         * modules/mbscasecmp: New file.
70200         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70201         (mbscasecmp): Renamed from strcasecmp.
70202         * lib/strcasecmp.c: Don't include mbuiter.h.
70203         (strcasecmp): Remove support for multibyte locales.
70204         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70205         Change the conditional link warning.
70206         (mbscasecmp): New declaration.
70207         * m4/mbscasecmp.m4: New file.
70208         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70209         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70210         REPLACE_STRCASECMP.
70211         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70212         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70213         GNULIB_MBSCASECMP.
70214         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70215         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70216         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70217         (Depends-on): Remove mbuiter.
70218         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70219
70220 2007-02-04  Bruno Haible  <bruno@clisp.org>
70221
70222         New module mbsstr. Remove module strstr.
70223         * modules/mbsstr: New file.
70224         * modules/strstr: Remove file.
70225         * lib/mbsstr.c: Renamed from lib/strstr.c.
70226         (mbsstr): Renamed from strstr.
70227         * lib/string_.h (strstr): Remove declaration. Change the conditional
70228         link warning.
70229         (mbsstr): New declaration.
70230         * m4/mbsstr.m4: New file.
70231         * m4/strstr.m4: Remove file.
70232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70233         REPLACE_STRSTR.
70234         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70235         Don't initialize GNULIB_STRSTR.
70236         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70237         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70238         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70239         (Support for systems lacking ANSI C 89): Remove strstr.
70240
70241 2007-02-04  Bruno Haible  <bruno@clisp.org>
70242
70243         New module mbsrchr.
70244         * modules/mbsrchr: New file.
70245         * lib/mbsrchr.c: New file.
70246         * lib/string_.h (strrchr): Add a conditional link warning.
70247         (mbsrchr): New declaration.
70248         * m4/mbsrchr.m4: New file.
70249         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70250         GNULIB_MBSRCHR.
70251         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70252         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70253
70254 2007-02-04  Bruno Haible  <bruno@clisp.org>
70255
70256         New module mbschr.
70257         * modules/mbschr: New file.
70258         * lib/mbschr.c: New file.
70259         * lib/string_.h (strchr): Add a conditional link warning.
70260         (mbschr): New declaration.
70261         * m4/mbschr.m4: New file.
70262         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70263         GNULIB_MBSCHR.
70264         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
70265         * MODULES.html.sh (Internationalization functions): Add mbschr.
70266
70267 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70268
70269         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70270
70271         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70272
70273 2007-02-04  Bruno Haible  <bruno@clisp.org>
70274
70275         New module description section 'configure.ac-early'.
70276         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70277         (func_get_autoconf_early_snippet): New function.
70278         (func_import, func_create_testdir): Use it. Remove special cases for
70279         modules 'extensions' and 'lock'.
70280         * modules/extensions (configure.ac-early): Require
70281         gl_USE_SYSTEM_EXTENSIONS.
70282         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70283
70284 2007-02-04  Bruno Haible  <bruno@clisp.org>
70285
70286         Make use of gcj-4.3's -fsource and -ftarget option.
70287         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70288         and if so try the options -fsource and -ftarget.
70289         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70290         source_version, ftarget_option, target_version arguments.
70291         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70292         (is_envjavac_oldgcj_14_14_usable): Renamed from
70293         is_envjavac_gcj_14_14_usable.
70294         (is_envjavac_oldgcj_14_13_usable): Renamed from
70295         is_envjavac_gcj_14_13_usable.
70296         (is_gcj_present): Update.
70297         (is_gcj_43, is_gcj43_usable): New functions.
70298         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70299         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70300         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70301         try the options -fsource and -ftarget.
70302
70303 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70304
70305         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70306         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70307         larger value.
70308
70309 2007-02-03  Jim Meyering  <jim@meyering.net>
70310
70311         Give tools a better chance to allocate space for very large buffers.
70312         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70313
70314         Make pwd and readlink work also when run with an unreadable parent dir
70315         on systems with openat support.
70316         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70317         provided getcwd function, even when we have openat support.
70318         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70319
70320 2007-02-02  Bruno Haible  <bruno@clisp.org>
70321
70322         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70323         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70324         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70325         portability problems if one of these functions is only used on specific
70326         platforms.
70327         Reported by Paul Eggert.
70328
70329 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
70330
70331         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
70332         is causing more trouble than it's curing.
70333         * lib/regex_internal.h (__mempcpy): Remove.
70334         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
70335         (and make the code a tad smaller to boot).
70336         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
70337
70338 2007-02-02  Jim Meyering  <jim@meyering.net>
70339
70340         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
70341         section, not in the Makefile.am: one.
70342
70343 2007-02-02  Eric Blake  <ebb9@byu.net>
70344
70345         * lib/strchrnul.c: Always include config.h first.
70346
70347         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
70348         gnulib strstr is not necessary here.
70349
70350 2007-02-02  Simon Josefsson  <simon@josefsson.org>
70351
70352         * m4/socklen.m4: Fix typo.
70353
70354 2007-02-02  Eric Blake  <ebb9@byu.net>
70355
70356         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
70357         * modules/netinet_in (Makefile.am): Likewise.
70358
70359 2007-02-01  Bruno Haible  <bruno@clisp.org>
70360
70361         * lib/string_.h (GL_LINK_WARNING): New macro.
70362         (strcasecmp, strstr, strcasestr): If provided by the system,
70363         conditionally define as a macro that leads to a warning instead of to
70364         an error.
70365         (strncasecmp): Conditionally define as a macro that leads to a warning.
70366
70367 2007-02-01  Karl Berry  <karl@gnu.org>
70368
70369         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
70370
70371 2007-02-01  Bruno Haible  <bruno@clisp.org>
70372
70373         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
70374         renamings.
70375
70376 2007-02-01  Eric Blake  <ebb9@byu.net>
70377
70378         * modules/regex (Depends-on): Revert dependence on mempcpy.
70379         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
70380         module's definition of mempcpy.
70381         Reported by Paul Eggert.
70382
70383 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70384
70385         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70386         the symbol XYZ before redefining it.  This fixes a problem with
70387         programs that don't use XYZ, when compiled on systems that define
70388         XYZ to something else.
70389
70390 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70391
70392         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70393         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70394         writeable to group or other and (2) is intended to have a special
70395         mode bit that is set or cleared.  In such a case, the directory
70396         should be neither group- nor other-writeable until the special
70397         mode bits are right.
70398
70399 2007-01-31  Eric Blake  <ebb9@byu.net>
70400
70401         * modules/mountlist (Depends-on): Add strstr.
70402
70403         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70404         bug.
70405         * modules/string (Makefile.am): Remove redundant replacement.
70406         * modules/regex (Depends-on): Add mempcpy.
70407
70408 2007-01-31  Bruno Haible  <bruno@clisp.org>
70409
70410         New module description field 'Link'.
70411         * gnulib-tool (func_usage): Document --extract-link-directive.
70412         (sed_extract_prog): Recognize 'Link' directive.
70413         (func_get_link_directive): New function.
70414         (func_import): Show summary of link directives.
70415         Handle --extract-link-directive option.
70416         * modules/acl (Link): New section.
70417         * modules/clock-time (Link): New section.
70418         * modules/euidaccess (Link): New section.
70419         * modules/gettext (Link): New section.
70420         * modules/iconv (Link): New section.
70421         * modules/lock (Link): New section.
70422         * modules/nanosleep (Link): New section.
70423         * modules/readline (Link): New section.
70424
70425 2007-01-27  Bruno Haible  <bruno@clisp.org>
70426
70427         Enforce the use of gnulib modules for unportable <string.h> functions.
70428         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70429         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70430         (gl_HEADER_STRING_H_BODY): Require it.
70431         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70432         the symbol XYZ to one that gives a link error.
70433         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70434         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70435         * modules/mempcpy (configure.ac): Likewise.
70436         * modules/memrchr (configure.ac): Likewise.
70437         * modules/stpcpy (configure.ac): Likewise.
70438         * modules/stpncpy (configure.ac): Likewise.
70439         * modules/strcase (configure.ac): Likewise.
70440         * modules/strcasestr (configure.ac): Likewise.
70441         * modules/strchrnul (configure.ac): Likewise.
70442         * modules/strdup (configure.ac): Likewise.
70443         * modules/strndup (configure.ac): Likewise.
70444         * modules/strnlen (configure.ac): Likewise.
70445         * modules/strpbrk (configure.ac): Likewise.
70446         * modules/strsep (configure.ac): Likewise.
70447         * modules/strstr (configure.ac): Likewise.
70448         * modules/strtok_r (configure.ac): Likewise.
70449
70450 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
70451
70452         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
70453
70454 2007-01-30  Jim Meyering  <jim@meyering.net>
70455
70456         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
70457
70458 2007-01-29  Bruno Haible  <bruno@clisp.org>
70459
70460         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
70461         * lib/execute.c: Likewise.
70462         * lib/pipe.c: Likewise.
70463         * lib/printf-args.h: Likewise.
70464         * lib/printf-args.c: Likewise.
70465         * lib/printf-parse.c: Likewise.
70466         * lib/vasnprintf.c: Likewise.
70467
70468 2007-01-29  Eric Blake  <ebb9@byu.net>
70469
70470         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
70471         declaration.
70472
70473 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
70474
70475         * lib/strptime.h (strptime): Use 'restrict' for args where
70476         POSIX requires this.
70477         * lib/strptime.c (strptime): Likewise.
70478         Change license notice from LGPL to GPL, since gnulib-tool will
70479         change this as needed.
70480         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
70481         defined.
70482         Include "strptime.h" first, to check interface.
70483         Do not #undef _LIBC and _NL_CURRENT.
70484         Do not include <stdlib.h>; no longer needed.
70485         Include "time_r.h" and declare ptime_locale_status
70486         only if _LIBC is not defined.
70487         (__P): Remove unused macro.
70488         (match_string): Bring back glibc version, but use it only if _LIBC
70489         is defined.
70490         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70491         Remove unnecessary assertion and abort() call.
70492         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70493         * m4/strptime.m4: Fix serial number comment.
70494         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70495         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70496         (Depends-on): Add time_r.
70497
70498 2007-01-29  Bruno Haible  <bruno@clisp.org>
70499
70500         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70501         strptime.
70502         * modules/strptime (Depends-on): Add stdbool.
70503         * lib/strptime.h: Include <time.h> always. Add comments.
70504
70505 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70506
70507         * modules/strptime: New file.
70508         * lib/strptime.h: New file.
70509         * lib/strptime.c: New file.
70510         * m4/strptime.m4: New file.
70511
70512 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70513
70514         * MODULES.html.sh: New module mpsort.
70515         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70516
70517         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70518         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70519         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70520         All uses changed.
70521         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70522         All uses changed.
70523         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70524         to _Restrict_.
70525         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70526         the parameter matches the prototype.
70527
70528 2007-01-28  Jim Meyering  <jim@meyering.net>
70529
70530         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70531         sys/time.h here, reverting that part of the previous patch:
70532         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70533
70534 2007-01-28  Bruno Haible  <bruno@clisp.org>
70535
70536         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70537         value of $(SYS_TIME_H).
70538         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70539         remove it conditionally, too. [added by Jim Meyering]
70540         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70541         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70542         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70543         GETTIMEOFDAY_REPLACEMENT to 1.
70544
70545 2007-01-28  Bruno Haible  <bruno@clisp.org>
70546
70547         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70548         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70549         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70550         Set UNISTD_H instead of UNISTD_H2.
70551         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70552
70553 2007-01-28  Bruno Haible  <bruno@clisp.org>
70554
70555         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70556         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70557
70558 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70559
70560         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70561         (func_create_testdir): Ensure C locale for `grep' and `tr'
70562         character ranges.
70563         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70564         ACLOCAL_AMFLAGS parsing state machine.
70565
70566 2007-01-27  Bruno Haible  <bruno@clisp.org>
70567
70568         * modules/unistr/base: Update.
70569
70570 2007-01-27  Bruno Haible  <bruno@clisp.org>
70571
70572         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70573         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70574         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70575         modules/unistr/u32-mbtouc.
70576         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70577         * lib/unistr.h: Update.
70578         * lib/linebreak.c: Update.
70579         * modules/unistr/u32-mbtouc: Renamed from
70580         modules/unistr/u32-mbtouc-safe.
70581         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70582         * lib/unistr.h: Update.
70583         * lib/unistr/u32-to-u8.c: Update.
70584         * lib/unistr/u32-to-u16.c: Update.
70585
70586 2007-01-27  Bruno Haible  <bruno@clisp.org>
70587
70588         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70589         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70590         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70591         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70592         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70593         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70594         modules/unistr/u16-mbtouc.
70595         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70596         * lib/unistr.h: Update.
70597         * lib/linebreak.c: Update.
70598         * modules/linebreak: Update.
70599         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70600         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70601         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70602         * modules/unistr/u16-mbtouc: Renamed from
70603         modules/unistr/u16-mbtouc-safe.
70604         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70605         * lib/unistr.h: Update.
70606         * lib/unistr/u16-to-u8.c: Update.
70607         * modules/unistr/u16-to-u8: Update.
70608         * lib/unistr/u16-to-u32.c: Update.
70609         * modules/unistr/u16-to-u32: Update.
70610
70611 2007-01-27  Bruno Haible  <bruno@clisp.org>
70612
70613         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70614         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70615         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70616         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70617         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70618         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70619         modules/unistr/u8-mbtouc.
70620         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70621         * lib/unistr.h: Update.
70622         * lib/striconveh.c: Update.
70623         * modules/striconveh: Update.
70624         * lib/linebreak.c: Update.
70625         * modules/linebreak: Update.
70626         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70627         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70628         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70629         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70630         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70631         * lib/unistr.h: Update.
70632         * lib/striconveh.c: Update.
70633         * modules/striconveh: Update.
70634         * lib/unistr/u8-to-u16.c: Update.
70635         * modules/unistr/u8-to-u16: Update.
70636         * lib/unistr/u8-to-u32.c: Update.
70637         * modules/unistr/u8-to-u32: Update.
70638
70639 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70640
70641         Sync from Libtool.
70642         * lib/argz.c: Do not include strings.h nor memory.h, include
70643         string.h unconditionally.  Patch by Simon Josefsson.
70644
70645 2007-01-27  Bruno Haible  <bruno@clisp.org>
70646
70647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70648         from gl_HEADER_STRING_H_BODY.
70649         (gl_HEADER_STRING_H_BODY): Require it.
70650         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70651         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70652         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70653         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70654         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70655         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70656         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70657         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70658         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70659         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70660         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70661         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70662         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70663         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70664         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70665
70666 2007-01-27  Bruno Haible  <bruno@clisp.org>
70667
70668         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70669         check_PROGRAMS into noinst_PROGRAMS.
70670         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70671         check_PROGRAMS in this case.
70672         (func_import): Set for_test to false.
70673         (func_create_testdir): Set for_test to true.
70674
70675 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70676             Bruno Haible  <bruno@clisp.org>
70677
70678         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70679         (Depends-on): Add string.
70680         (Includes): Use <string.h> instead of strcasestr.h.
70681         * modules/string (Makefile.am): Also substitute the value of
70682         REPLACE_STRCASESTR.
70683         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70684         assume strcasestr is declared in <string.h> not <strings.h>. Also
70685         set REPLACE_STRCASESTR.
70686         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70687         REPLACE_STRCASESTR.
70688         * lib/strcasestr.h: Remove file.
70689         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70690         * lib/string_.h (strcasestr): New declaration.
70691
70692 2007-01-27  Bruno Haible  <bruno@clisp.org>
70693
70694         * lib/string_.h: Use 'extern'.
70695
70696 2007-01-27  Jim Meyering  <jim@meyering.net>
70697
70698         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70699         of set-but-not-used local, "q".
70700
70701         * lib/mempcpy.c: Include <config.h> before <string.h>.
70702         This fixes a compilation error on HP-UX, due to the system's
70703         "restrict"-using mempcpy prototype.
70704
70705 2007-01-26  Bruno Haible  <bruno@clisp.org>
70706
70707         Small optimization.
70708         * lib/javacomp.c: Include c-strstr.h.
70709          (is_envjavac_gcj): Use c_strstr instead of strstr.
70710         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70711
70712 2007-01-26  Bruno Haible  <bruno@clisp.org>
70713
70714         * MODULES.html.sh (Unicode string functions): Add the new modules.
70715
70716         * modules/uniconv/u32-strconv-to-locale: New file.
70717         * lib/uniconv/u32-strconv-to-locale.c: New file.
70718
70719         * modules/uniconv/u16-strconv-to-locale: New file.
70720         * lib/uniconv/u16-strconv-to-locale.c: New file.
70721
70722         * modules/uniconv/u8-strconv-to-locale: New file.
70723         * lib/uniconv/u8-strconv-to-locale.c: New file.
70724
70725         * modules/uniconv/u32-strconv-from-locale: New file.
70726         * lib/uniconv/u32-strconv-from-locale.c: New file.
70727
70728         * modules/uniconv/u16-strconv-from-locale: New file.
70729         * lib/uniconv/u16-strconv-from-locale.c: New file.
70730
70731         * modules/uniconv/u8-strconv-from-locale: New file.
70732         * lib/uniconv/u8-strconv-from-locale.c: New file.
70733
70734         * modules/uniconv/u32-strconv-to-enc: New file.
70735         * lib/uniconv/u32-strconv-to-enc.c: New file.
70736         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70737         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70738
70739         * modules/uniconv/u16-strconv-to-enc: New file.
70740         * lib/uniconv/u16-strconv-to-enc.c: New file.
70741         * lib/uniconv/u-strconv-to-enc.h: New file.
70742         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70743         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70744
70745         * modules/uniconv/u8-strconv-to-enc: New file.
70746         * lib/uniconv/u8-strconv-to-enc.c: New file.
70747         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70748         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70749
70750         * modules/uniconv/u32-strconv-from-enc: New file.
70751         * lib/uniconv/u32-strconv-from-enc.c: New file.
70752         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70753         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70754
70755         * modules/uniconv/u16-strconv-from-enc: New file.
70756         * lib/uniconv/u16-strconv-from-enc.c: New file.
70757         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70758         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70759
70760         * modules/uniconv/u8-strconv-from-enc: New file.
70761         * lib/uniconv/u8-strconv-from-enc.c: New file.
70762         * lib/uniconv/u-strconv-from-enc.h: New file.
70763         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70764         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70765
70766         * modules/uniconv/u32-conv-from-enc: New file.
70767         * lib/uniconv/u32-conv-from-enc.c: New file.
70768         * modules/uniconv/u32-conv-from-enc-tests: New file.
70769         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70770
70771         * modules/uniconv/u16-conv-from-enc: New file.
70772         * lib/uniconv/u16-conv-from-enc.c: New file.
70773         * lib/uniconv/u-conv-from-enc.h: New file.
70774         * modules/uniconv/u16-conv-from-enc-tests: New file.
70775         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70776
70777         * modules/uniconv/u8-conv-from-enc: New file.
70778         * lib/uniconv/u8-conv-from-enc.c: New file.
70779         * modules/uniconv/u8-conv-from-enc-tests: New file.
70780         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70781
70782         * modules/uniconv/base: New file.
70783         * lib/uniconv.h: New file.
70784
70785 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70786
70787         * doc/gnulib-tool.texi (Initial import): Update to match current
70788         behavior with strdup module.
70789         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70790         * lib/memmem.h: Remove; all uses removed.  This is now done
70791         by <string.h>.
70792         * lib/mempcpy.h: Likewise.
70793         * lib/memrchr.h: Likewise.
70794         * lib/stpcpy.h: Likewise.
70795         * lib/stpncpy.h: Likewise.
70796         * lib/strcase.h: Likewise.
70797         * lib/strchrnul.h: Likewise.
70798         * lib/strdup.h: Likewise.
70799         * lib/strndup.h: Likewise.
70800         * lib/strnlen.h: Likewise.
70801         * lib/strpbrk.h: Likewise.
70802         * lib/strsep.h: Likewise.
70803         * lib/strstr.h: Likewise.
70804         * lib/strtok_r.h: Likewise.
70805         * lib/string_.h: New file.
70806         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70807         Rely on <string.h> instead.
70808         * lib/canon-host.c: Likewise.
70809         * lib/chdir-long.c: Likewise.
70810         * lib/concatpath.c: Likewise.
70811         * lib/exclude.c: Likewise.
70812         * lib/fchdir.c: Likewise.
70813         * lib/getaddrinfo.c: Likewise.
70814         * lib/getcwd.c: Likewise.
70815         * lib/getsubopt.c: Likewise.
70816         * lib/glob.c: Likewise.
70817         * lib/hard-locale.c: Likewise.
70818         * lib/iconvme.c: Likewise.
70819         * lib/javacomp.c: Likewise.
70820         * lib/mempcpy.c: Likewise.
70821         * lib/memrchr.c: Likewise.
70822         * lib/regex_internal.h: Likewise.
70823         * lib/stpncpy.c: Likewise.
70824         * lib/strcasecmp.c: Likewise.
70825         * lib/strchrnul.c: Likewise.
70826         * lib/strdup.c: Likewise.
70827         * lib/striconv.c: Likewise.
70828         * lib/striconveh.c: Likewise.
70829         * lib/striconveha.c: Likewise.
70830         * lib/strncasecmp.c: Likewise.
70831         * lib/strndup.c: Likewise.
70832         * lib/strnlen.c: Likewise.
70833         * lib/strsep.c: Likewise.
70834         * lib/strstr.c: Likewise.
70835         * lib/strtok_r.c: Likewise.
70836         * lib/userspec.c: Likewise.
70837         * lib/w32spawn.h: Likewise.
70838         * lib/xstrndup.c: Likewise.
70839         * lib/mountlist.c (strstr): Remove decl.
70840         * m4/string_h.m4: New file.
70841         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70842         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70843         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70844         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70845         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70846         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70847         Set REPLACE_STRCASECMP if necessary.
70848         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70849         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70850         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70851         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70852         HAVE_DECL_STRDUP if necessary.
70853         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70854         since gl_FUNC_STRNDUP does that now.
70855         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70856         Check for decl here...
70857         (gl_PREREQ_STRNLEN): ... not here.
70858         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70859         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70860         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70861         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70862         necessary.
70863         * modules/string: New file.
70864         * modules/memmem (Files): Remove special-purpose include file.
70865         (Depends-on): Add string.
70866         (Include): Include <string.h>, not the removed file.
70867         * modules/mempcpy: Likewise.
70868         * modules/memrchr: Likewise.
70869         * modules/stpcpy: Likewise.
70870         * modules/stpncpy: Likewise.
70871         * modules/strcase: Likewise.
70872         * modules/strchrnul: Likewise.
70873         * modules/strdup: Likewise.
70874         * modules/strndup: Likewise.
70875         * modules/strnlen: Likewise.
70876         * modules/strpbrk: Likewise.
70877         * modules/strsep: Likewise.
70878         * modules/strstr: Likewise.
70879         * modules/strtok_r: Likewise.
70880         * tests/test-dirname.c: Don't include "strdup.h", since
70881         <string.h> now suffices.
70882         * tests/test-memmem.c: Don't include "memmem.h", since
70883         <string.h> now suffices.
70884
70885 2007-01-25  Bruno Haible  <bruno@clisp.org>
70886
70887         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70888         *resultp is 0.
70889
70890         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70891         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70892         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70893         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70894
70895         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70896         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70897         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70898         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70899         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70900         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70901
70902 2007-01-24  Bruno Haible  <bruno@clisp.org>
70903
70904         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70906         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70907         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70908         gl_FUNC_FTS_CORE.
70909         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70910         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70911         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70912         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70913         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70914         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70915         gl_FUNC_FCHOWNAT.
70916         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70917         gl_FUNC_STRFTIME.
70918         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70919         Reported by Ralf Wildenhues.
70920
70921 2007-01-24  Bruno Haible  <bruno@clisp.org>
70922
70923         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70924         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70925         gl_GETADDRINFO.
70926         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70927         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70928         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70929
70930 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70931
70932         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70933         Don't use 'exit'; just return from 'main'.
70934         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70935
70936         * lib/fnmatch_.h: Readjust white space and comments to match
70937         glibc, to avoid spurious diffs.
70938
70939 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70940
70941         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70942         2004-12-01 change by Jakub Jelinek, since this code won't compile
70943         if !LIBC.  Problem reported by Bob Proulx.
70944
70945 2007-01-23  Bruno Haible  <bruno@clisp.org>
70946
70947         * lib/striconveh.c: Include c-strcaseeq.h.
70948         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70949         * modules/striconveh (Depends-on): Add c-strcaseeq.
70950
70951 2007-01-23  Bruno Haible  <bruno@clisp.org>
70952
70953         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70954
70955         * modules/c-strcaseeq: New file.
70956         * lib/c-strcaseeq.h: New file.
70957
70958         * modules/streq: New file.
70959         * lib/streq.h: New file.
70960
70961 2007-01-23  Bruno Haible  <bruno@clisp.org>
70962
70963         * modules/striconveha-tests: New file.
70964         * tests/test-striconveha.c: New file.
70965
70966         * lib/striconveha.h: Include <stdbool.h>.
70967         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70968         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70969         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70970         (mem_iconveha): New function.
70971         (str_iconveha_notranslit): Renamed from str_iconveha.
70972         (str_iconveha): New function.
70973         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70974         c-strcase.
70975
70976 2007-01-23  Bruno Haible  <bruno@clisp.org>
70977
70978         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70979         encodings without forgiving before trying any encoding with handler.
70980         (str_iconveha): Try all encodings without forgiving before trying any
70981         encoding with handler.
70982
70983 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70984
70985         Import the following changes from libc.
70986
70987         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70988
70989         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70990
70991         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70992
70993         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70994         normal_bracket label.
70995
70996         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70997
70998         [BZ #361]
70999         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71000         to normal_bracket after fetching the next character.
71001
71002 2007-01-22  Bruno Haible  <bruno@clisp.org>
71003
71004         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71005         argument.
71006         * lib/striconveh.c (iconv_carefully_1): New function.
71007         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71008         argument.
71009         (str_cd_iconveh): Update.
71010         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71011         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71012         * tests/test-striconveh.c (MAGIC): New macro.
71013         (new_offsets): New function.
71014         (main): Test call with and without offsets.
71015
71016 2007-01-22  Bruno Haible  <bruno@clisp.org>
71017
71018         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71019         * modules/sys_select (Makefile.am): Likewise.
71020         * modules/sys_socket (Makefile.am): Likewise.
71021         * modules/sys_time (Makefile.am): Likewise.
71022
71023 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71024
71025         * modules/gettimeofday (License): Change from GPL to LGPL, since
71026         gettimeofday is a library function.
71027
71028 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71029
71030         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71031
71032 2007-01-21  Bruno Haible  <bruno@clisp.org>
71033
71034         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71035
71036 2007-01-21  Bruno Haible  <bruno@clisp.org>
71037
71038         * modules/striconveha: New file.
71039         * lib/striconveha.h: New file.
71040         * lib/striconveha.c: New file.
71041         * MODULES.html.sh (Internationalization functions): Add striconveha.
71042         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71043         string.
71044         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71045
71046 2007-01-21  Bruno Haible  <bruno@clisp.org>
71047
71048         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71049         * lib/striconveh.c (str_iconveh): Likewise.
71050
71051 2007-01-21  Bruno Haible  <bruno@clisp.org>
71052
71053         * lib/striconveh.h (mem_iconveh): New declaration.
71054         * lib/striconveh.c (mem_iconveh): New function.
71055         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71056
71057 2007-01-21  Bruno Haible  <bruno@clisp.org>
71058
71059         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71060
71061         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71062         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71063         original result buffer.
71064         (str_cd_iconveh): Update.
71065         * tests/test-striconveh.c (main): Update.
71066
71067         * lib/striconv.h (mem_cd_iconv): Change specification.
71068         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71069         result buffer.
71070         (str_cd_iconv): Update.
71071         * tests/test-striconv.c (main): Update.
71072
71073 2007-01-21  Bruno Haible  <bruno@clisp.org>
71074
71075         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71076
71077 2007-01-20  Jim Meyering  <jim@meyering.net>
71078
71079         * lib/userspec.c (parse_with_separator): If a user or group string
71080         starts with "+", skip the corresponding name-to-ID look-up, since
71081         such a look-up must fail: user and group names may not include "+".
71082
71083 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71084
71085         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71086         since we now assume the sys_time module.
71087         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71088         check for sys/time.h; no longer needed.
71089         * modules/poll (Depends-on): Depend on sys_time.
71090
71091 2007-01-18  Bruno Haible  <bruno@clisp.org>
71092
71093         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71094         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71095
71096         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71097         gettimeofday.
71098
71099         * tests/test-gettimeofday.c: Include <time.h>.
71100         (dummy): Remove variable.
71101
71102         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71103         gl_HEADER_SYS_TIME_H.
71104         (gl_HEADER_SYS_TIME_H): New macro.
71105
71106         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71107         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71108         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71109         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71110         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71111         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71112         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71113         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71114         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71115         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71116         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71117
71118         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71119         last change; it caused a compilation error when cross-compiling to
71120         Cygwin.
71121
71122 2007-01-18  Jim Meyering  <jim@meyering.net>
71123
71124         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71125         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71126         than the race-prone "test -d sys || mkdir sys".
71127         (configure.ac): Use AC_PROG_MKDIR_P.
71128         * modules/sys_select: Likewise.
71129         * modules/sys_socket: Likewise.
71130         * modules/sys_time: Likewise.
71131
71132 2007-01-18  Eric Blake  <ebb9@byu.net>
71133
71134         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71135         replace gettimeofday.
71136         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71137         name, to avoid infinite recursion.
71138
71139 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71140
71141         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71142         module sys_time.
71143         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71144         assume timespec.h defines struct timeval.
71145         * lib/settime.c: Likewise.
71146         * lib/utimens.c: Likewise.
71147         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71148         since we now assume the gettimeofday module.
71149         * lib/tempname.c (__gen_tempname): Likewise.
71150         * lib/gettimeofday.h: Remove.
71151         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71152         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71153         Include <time.h>, for 'time()'.
71154         (localtime_buffer_addr): Also use this workaround if
71155         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71156         to simplify the uses.  All uses changed.
71157         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71158         that #undef is inside {}, and 'const' follows type name consistently.
71159         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71160         (gettimeofday): Do not use the maximum possible value for
71161         tv->tv_usec, since that might break usages other than ls.c.
71162         Instead, we'll leave ls.c alone.  This undoes today's patch
71163         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71164         we've never observed the problem but might as well keep the
71165         canary.
71166         * lib/nanosleep.c: Include timespec.h first, for interface check.
71167         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71168         now assume the sys_time module.
71169         * lib/tempname.c: Likewise.
71170         * lib/timespec.h: Likewise.
71171         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71172         needed.
71173         * lib/strftime.c: Likewise.
71174         * lib/timespec.h: Likewise.
71175         * lib/posixtm.c: Include posixtm.h first, for interface check.
71176         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71177         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71178         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71179         * lib/sys_time_.h: New file.
71180         * lib/timespec.h (struct timespec): Use long int, not long.
71181         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71182         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71183         Remove obsolescent call to AC_HEADER_TIME.
71184         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71185         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71186         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71187         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71188         Likewise.
71189         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71190         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71191         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71192         into the sys_time module.  Check for gettimeofday just once.
71193         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71194         for gettimeofday signature to just check the signature.  Merely
71195         compile it, since linking doesn't test signature.  Improve test for
71196         whether gettimeofday.o is actually needed.
71197         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71198         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71199         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71200         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71201         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71202         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71203         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71204         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71205         than worrying about sys/time.h.
71206         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71207         Don't bother worrying about TIME_WITH_SYS_TIME.
71208         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71209         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71210         * m4/sys_time_h.m4: New file.
71211         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71212         Don't include sys/time.h.  Return from main rather than exiting.
71213         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71214         all uses changed.
71215         * modules/gethrxtime (Depends-on): Add sys_time.
71216         * modules/gettime (Depends-on): Likewise.
71217         * modules/gettimeofday (Depends-on): Likewise.
71218         * modules/nanosleep (Depends-on): Likewise.
71219         * modules/settime (Depends-on): Likewise.
71220         * modules/tempname (Depends-on): Likewise.
71221         * modules/utimens (Depends-on): Likewise.
71222         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71223         (Include): Change back to <sys/time.h>.
71224         (Maintainer): Add self.
71225         * modules/sys_time: New file.
71226         * modules/tempname (Depends-on): Add gettimeofday.
71227         * tests/test-gettimeofday.c: Include <sys/time.h>
71228         rather than gettimeofday.h.
71229
71230 2007-01-17  Bruno Haible  <bruno@clisp.org>
71231
71232         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71233         the license default to GPL.
71234         (func_create_testdir): Don't complain if a module is LGPL and its
71235         tests module depends on GPLed modules.
71236
71237 2007-01-17  Bruno Haible  <bruno@clisp.org>
71238
71239         * lib/gettimeofday.c (gettimeofday): Add code for the case
71240         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71241         maximum possible value for tv->tv_usec, rather than the minimum one.
71242
71243 2005-10-08  Martin Lambers  <marlam@marlam.de>
71244 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71245 2007-01-16  Bruno Haible  <bruno@clisp.org>
71246
71247         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71248         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71249         gl_FUNC_GETTIMEOFDAY.
71250         (Include): Add gettimeofday.h.
71251         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71252         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71253         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71254         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
71255         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
71256         * lib/gettimeofday.h: New file.
71257         * lib/gettimeofday.c: Include <sys/timeb.h>.
71258         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
71259         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71260         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
71261         fall back on time().
71262
71263         * tests/test-gettimeofday.c: New file.
71264         * modules/gettimeofday-tests: New file.
71265
71266 2007-01-16  Eric Blake  <ebb9@byu.net>
71267
71268         * modules/fnmatch (Depends-on): Depend on wchar.
71269         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71270         * m4/fnmatch.m4: Likewise.
71271         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71272         * m4/mbchar.m4: Likewise.
71273         * modules/mbswidth (Depends-on): Depend on wchar.
71274         * lib/mbswidth.c: Assume <wchar.h>.
71275         * m4/mbswidth.m4: Likewise.
71276         * modules/quotearg (Depends-on): Depend on wchar.
71277         * lib/quotearg.c: Assume <wchar.h>.
71278         * m4/quotearg.m4: Likewise.
71279         * modules/regex (Depends-on): Depend on wchar.
71280         * lib/regex_internal.h: Assume <wchar.h>.
71281         * m4/regex.m4: Likewise.
71282         * modules/stdint (Depends-on): Depend on wchar.
71283         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71284         * m4/stdint.m4: Likewise.
71285         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71286         * modules/strftime (Depends-on): Depend on wchar.
71287         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71288         * modules/strtol (Depends-on): Depend on wchar.
71289         * lib/strtol.c: Assume <wchar.h>.
71290         * modules/wcwidth (Depends-on): Depend on wchar.
71291         * lib/wcwidth.h: Assume <wchar.h>.
71292         * m4/wcwidth.m4: Likewise.
71293
71294 2007-01-16  Bruno Haible  <bruno@clisp.org>
71295
71296         * modules/csharpexec-script: New, created from...
71297         * modules/csharpexec: ... this.
71298
71299 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71300
71301         * modules/javaexec-script: New, created from...
71302         * modules/javaexec: ... this.
71303
71304 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71305
71306         * modules/poll (Dependencies): Add sys_select.
71307
71308 2007-01-15  Jim Meyering  <jim@meyering.net>
71309
71310         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71311         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71312         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71313         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71314
71315 2007-01-15  Bruno Haible  <bruno@clisp.org>
71316
71317         * modules/striconveh: New file.
71318         * lib/striconveh.h: New file.
71319         * lib/striconveh.c: New file.
71320         * MODULES.html.sh (Internationalization functions): Add striconveh.
71321
71322         * modules/striconveh-tests: New file.
71323         * tests/test-striconveh.c: New file.
71324
71325 2007-01-15  Bruno Haible  <bruno@clisp.org>
71326
71327         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71328         not from GNU libiconv or GNU libc.
71329
71330 2007-01-15  Bruno Haible  <bruno@clisp.org>
71331
71332         * doc/gnulib-intro.texi (Copyright): Explain the different license
71333         terms for module descriptions, autoconf macros, tests, documentation.
71334
71335 2007-01-14  Bruno Haible  <bruno@clisp.org>
71336
71337         * modules/striconv-tests: New file.
71338         * tests/test-striconv.c: New file.
71339
71340 2007-01-14  Bruno Haible  <bruno@clisp.org>
71341
71342         * modules/iconv-tests: New file.
71343         * tests/test-iconv.c: New file.
71344
71345 2007-01-14  Bruno Haible  <bruno@clisp.org>
71346
71347         * gnulib-tool (func_get_license): For test modules, use the license of
71348         the main module.
71349
71350 2007-01-14  Bruno Haible  <bruno@clisp.org>
71351
71352         * modules/iconv (Include): Clarify that <iconv.h> can only be included
71353         if iconv is found to exist.
71354
71355 2007-01-14  Bruno Haible  <bruno@clisp.org>
71356
71357         * modules/c-ctype-tests: New file.
71358         * tests/test-c-ctype.c: New file.
71359
71360 2007-01-14  Bruno Haible  <bruno@clisp.org>
71361
71362         * modules/binary-io-tests: New file.
71363         * tests/test-binary-io.sh: New file.
71364         * tests/test-binary-io.c: New file.
71365
71366 2007-01-14  Bruno Haible  <bruno@clisp.org>
71367
71368         * modules/array-oset-tests: New file.
71369         * tests/test-array_oset.c: New file.
71370
71371 2007-01-14  Bruno Haible  <bruno@clisp.org>
71372
71373         * modules/array-list-tests: New file.
71374         * tests/test-array_list.c: New file.
71375
71376 2007-01-14  Bruno Haible  <bruno@clisp.org>
71377
71378         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
71379         and make.
71380         Reported by Simon Josefsson in
71381         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
71382
71383 2007-01-14  Bruno Haible  <bruno@clisp.org>
71384
71385         * modules/allocsa-tests: New file.
71386         * tests/test-allocsa.c: New file.
71387
71388 2007-01-14  Bruno Haible  <bruno@clisp.org>
71389
71390         * modules/fchdir (Depends-on): Add absolute-header.
71391         * modules/unistd (Depends-on): Likewise.
71392
71393 2006-12-30  Bruno Haible  <bruno@clisp.org>
71394
71395         * modules/fchdir: New file.
71396         * modules/unistd (Files): Add lib/unistd_.h.
71397         (Makefile.am): Generate unistd.h from unistd_.h.
71398         * lib/fchdir.c: New file.
71399         * lib/dirent_.h: New file.
71400         * lib/unistd_.h: New file.
71401         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71402         * m4/fchdir.m4: New file.
71403         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71404         (gl_HEADER_UNISTD): Invoke it.
71405         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
71406         function.
71407         * lib/backupfile.c (opendir, closedir): Undefine.
71408         * lib/chown.c (open, close): Undefine.
71409         * lib/clean-temp.c (open, close): Undefine.
71410         * lib/copy-file.c (open, close): Undefine.
71411         * lib/execute.c (open, close): Undefine.
71412         * lib/fsusage.c (open, close): Undefine.
71413         * lib/gc-gnulib.c (open, close): Undefine.
71414         * lib/getcwd.c (opendir, closedir): Undefine.
71415         * lib/glob.c (opendir, closedir): Undefine.
71416         * lib/javacomp.c (open, close): Undefine.
71417         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
71418         * lib/openat-proc.c (open, close): Undefine.
71419         * lib/pagealign_alloc.c (open, close): Undefine.
71420         * lib/pipe.c (open, close): Undefine.
71421         * lib/progreloc.c (open, close): Undefine.
71422         * lib/savedir.c (opendir, closedir): Undefine.
71423         * lib/utime.c (open, close): Undefine.
71424         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
71425
71426 2007-01-10  Bruno Haible  <bruno@clisp.org>
71427
71428         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71429
71430 2007-01-12  Eric Blake  <ebb9@byu.net>
71431
71432         Provide a robust <wchar.h>.  Further simplifications are now
71433         possible in other modules, but not included here.
71434         * modules/wchar: New module.
71435         * m4/wchar.m4: New file.
71436         * lib/wchar_.h: Likewise.
71437         * modules/mbchar (Depends-on): Depend on wchar, as the first use
71438         of the new module.
71439         * MODULES.html.sh (Extended multibyte and wide character utilities):
71440         New section.
71441
71442 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
71443
71444         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
71445         to a reasonable default for memory allocation.
71446         (xreadlink): Don't allocate a huge buffer, to work around a buggy
71447         file system that reports garbage st_size values for symlinks.
71448         Problem reported by Liyang Hu.
71449
71450 2007-01-11  Simon Josefsson  <simon@josefsson.org>
71451
71452         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
71453         Emacs .#* auto-save files).
71454
71455 2007-01-11  Bruno Haible  <bruno@clisp.org>
71456
71457         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
71458         directory.
71459
71460 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71461
71462         Use @...@ consistently in lib/wctype_.h.
71463         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
71464         on it being set to 1 or 0.
71465         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
71466         go back to AC_SUBSTing it.
71467         * modules/wctype (Makefile.am): Undo previous change.
71468
71469 2007-01-10  Eric Blake  <ebb9@byu.net>
71470
71471         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
71472         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
71473         * modules/wctype (Makefile.am): Likewise.
71474         Reported by Chris McGuire.
71475
71476 2007-01-10  Jim Meyering  <jim@meyering.net>
71477
71478         fts.c: a small readability/maintainability improvement
71479         * lib/fts.c (fts_read): Make this code slightly more readable and
71480         maintainable by hoisting the "sp->fts_cur = p" assignments to
71481         immediately follow the statements that set P.  Derived from
71482         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71483
71484 2007-01-10  Eric Blake  <ebb9@byu.net>
71485
71486         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71487         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71488         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71489         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71490         Reported by Chris McGuire.
71491
71492 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71493
71494         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71495         in sed script.
71496
71497 2007-01-09  Bruno Haible  <bruno@clisp.org>
71498
71499         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71500         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71501         variables.
71502         (func_module): Use them.
71503
71504 2007-01-09  Bruno Haible  <bruno@clisp.org>
71505
71506         * modules/unistr/base: New file.
71507         * lib/unistr.h: New file.
71508
71509         * modules/unistr/u8-to-u16: New file.
71510         * lib/unistr/u8-to-u16.c: New file.
71511
71512         * modules/unistr/u8-to-u32: New file.
71513         * lib/unistr/u8-to-u32.c: New file.
71514
71515         * modules/unistr/u16-to-u8: New file.
71516         * lib/unistr/u16-to-u8.c: New file.
71517
71518         * modules/unistr/u16-to-u32: New file.
71519         * lib/unistr/u16-to-u32.c: New file.
71520
71521         * modules/unistr/u32-to-u8: New file.
71522         * lib/unistr/u32-to-u8.c: New file.
71523
71524         * modules/unistr/u32-to-u16: New file.
71525         * lib/unistr/u32-to-u16.c: New file.
71526
71527         * modules/unistr/u8-check: New file.
71528         * modules/unistr/u16-check: New file.
71529         * modules/unistr/u32-check: New file.
71530         * lib/unistr/u8-check.c: New file.
71531         * lib/unistr/u16-check.c: New file.
71532         * lib/unistr/u32-check.c: New file.
71533
71534         * modules/unistr/u8-chr: New file.
71535         * modules/unistr/u16-chr: New file.
71536         * modules/unistr/u32-chr: New file.
71537         * lib/unistr/u8-chr.c: New file.
71538         * lib/unistr/u16-chr.c: New file.
71539         * lib/unistr/u32-chr.c: New file.
71540
71541         * modules/unistr/u8-cmp: New file.
71542         * modules/unistr/u16-cmp: New file.
71543         * modules/unistr/u32-cmp: New file.
71544         * lib/unistr/u8-cmp.c: New file.
71545         * lib/unistr/u16-cmp.c: New file.
71546         * lib/unistr/u32-cmp.c: New file.
71547
71548         * modules/unistr/u8-cpy: New file.
71549         * modules/unistr/u16-cpy: New file.
71550         * modules/unistr/u32-cpy: New file.
71551         * lib/unistr/u8-cpy.c: New file.
71552         * lib/unistr/u16-cpy.c: New file.
71553         * lib/unistr/u32-cpy.c: New file.
71554         * lib/unistr/u-cpy.h: New file.
71555
71556         * modules/unistr/u8-cpy-alloc: New file.
71557         * modules/unistr/u16-cpy-alloc: New file.
71558         * modules/unistr/u32-cpy-alloc: New file.
71559         * lib/unistr/u8-cpy-alloc.c: New file.
71560         * lib/unistr/u16-cpy-alloc.c: New file.
71561         * lib/unistr/u32-cpy-alloc.c: New file.
71562         * lib/unistr/u-cpy-alloc.h: New file.
71563
71564         * modules/unistr/u8-endswith: New file.
71565         * modules/unistr/u16-endswith: New file.
71566         * modules/unistr/u32-endswith: New file.
71567         * lib/unistr/u8-endswith.c: New file.
71568         * lib/unistr/u16-endswith.c: New file.
71569         * lib/unistr/u32-endswith.c: New file.
71570         * lib/unistr/u-endswith.h: New file.
71571
71572         * modules/unistr/u8-mblen: New file.
71573         * modules/unistr/u16-mblen: New file.
71574         * modules/unistr/u32-mblen: New file.
71575         * lib/unistr/u8-mblen.c: New file.
71576         * lib/unistr/u16-mblen.c: New file.
71577         * lib/unistr/u32-mblen.c: New file.
71578
71579         * modules/unistr/u8-mbtouc: New file.
71580         * modules/unistr/u16-mbtouc: New file.
71581         * modules/unistr/u32-mbtouc: New file.
71582         * lib/unistr/u8-mbtouc.c: New file.
71583         * lib/unistr/u16-mbtouc.c: New file.
71584         * lib/unistr/u32-mbtouc.c: New file.
71585
71586         * modules/unistr/u8-mbtouc-safe: New file.
71587         * modules/unistr/u16-mbtouc-safe: New file.
71588         * modules/unistr/u32-mbtouc-safe: New file.
71589         * lib/unistr/u8-mbtouc-safe.c: New file.
71590         * lib/unistr/u16-mbtouc-safe.c: New file.
71591         * lib/unistr/u32-mbtouc-safe.c: New file.
71592
71593         * modules/unistr/u8-move: New file.
71594         * modules/unistr/u16-move: New file.
71595         * modules/unistr/u32-move: New file.
71596         * lib/unistr/u8-move.c: New file.
71597         * lib/unistr/u16-move.c: New file.
71598         * lib/unistr/u32-move.c: New file.
71599         * lib/unistr/u-move.h: New file.
71600
71601         * modules/unistr/u8-next: New file.
71602         * modules/unistr/u16-next: New file.
71603         * modules/unistr/u32-next: New file.
71604         * lib/unistr/u8-next.c: New file.
71605         * lib/unistr/u16-next.c: New file.
71606         * lib/unistr/u32-next.c: New file.
71607
71608         * modules/unistr/u8-prev: New file.
71609         * modules/unistr/u16-prev: New file.
71610         * modules/unistr/u32-prev: New file.
71611         * lib/unistr/u8-prev.c: New file.
71612         * lib/unistr/u16-prev.c: New file.
71613         * lib/unistr/u32-prev.c: New file.
71614
71615         * modules/unistr/u8-set: New file.
71616         * modules/unistr/u16-set: New file.
71617         * modules/unistr/u32-set: New file.
71618         * lib/unistr/u8-set.c: New file.
71619         * lib/unistr/u16-set.c: New file.
71620         * lib/unistr/u32-set.c: New file.
71621         * lib/unistr/u-set.h: New file.
71622
71623         * modules/unistr/u8-startswith: New file.
71624         * modules/unistr/u16-startswith: New file.
71625         * modules/unistr/u32-startswith: New file.
71626         * lib/unistr/u8-startswith.c: New file.
71627         * lib/unistr/u16-startswith.c: New file.
71628         * lib/unistr/u32-startswith.c: New file.
71629         * lib/unistr/u-startswith.h: New file.
71630
71631         * modules/unistr/u8-stpcpy: New file.
71632         * modules/unistr/u16-stpcpy: New file.
71633         * modules/unistr/u32-stpcpy: New file.
71634         * lib/unistr/u8-stpcpy.c: New file.
71635         * lib/unistr/u16-stpcpy.c: New file.
71636         * lib/unistr/u32-stpcpy.c: New file.
71637         * lib/unistr/u-stpcpy.h: New file.
71638
71639         * modules/unistr/u8-stpncpy: New file.
71640         * modules/unistr/u16-stpncpy: New file.
71641         * modules/unistr/u32-stpncpy: New file.
71642         * lib/unistr/u8-stpncpy.c: New file.
71643         * lib/unistr/u16-stpncpy.c: New file.
71644         * lib/unistr/u32-stpncpy.c: New file.
71645         * lib/unistr/u-stpncpy.h: New file.
71646
71647         * modules/unistr/u8-strcat: New file.
71648         * modules/unistr/u16-strcat: New file.
71649         * modules/unistr/u32-strcat: New file.
71650         * lib/unistr/u8-strcat.c: New file.
71651         * lib/unistr/u16-strcat.c: New file.
71652         * lib/unistr/u32-strcat.c: New file.
71653         * lib/unistr/u-strcat.h: New file.
71654
71655         * modules/unistr/u8-strchr: New file.
71656         * modules/unistr/u16-strchr: New file.
71657         * modules/unistr/u32-strchr: New file.
71658         * lib/unistr/u8-strchr.c: New file.
71659         * lib/unistr/u16-strchr.c: New file.
71660         * lib/unistr/u32-strchr.c: New file.
71661
71662         * modules/unistr/u8-strcmp: New file.
71663         * modules/unistr/u16-strcmp: New file.
71664         * modules/unistr/u32-strcmp: New file.
71665         * lib/unistr/u8-strcmp.c: New file.
71666         * lib/unistr/u16-strcmp.c: New file.
71667         * lib/unistr/u32-strcmp.c: New file.
71668
71669         * modules/unistr/u8-strcpy: New file.
71670         * modules/unistr/u16-strcpy: New file.
71671         * modules/unistr/u32-strcpy: New file.
71672         * lib/unistr/u8-strcpy.c: New file.
71673         * lib/unistr/u16-strcpy.c: New file.
71674         * lib/unistr/u32-strcpy.c: New file.
71675         * lib/unistr/u-strcpy.h: New file.
71676
71677         * modules/unistr/u8-strcspn: New file.
71678         * modules/unistr/u16-strcspn: New file.
71679         * modules/unistr/u32-strcspn: New file.
71680         * lib/unistr/u8-strcspn.c: New file.
71681         * lib/unistr/u16-strcspn.c: New file.
71682         * lib/unistr/u32-strcspn.c: New file.
71683         * lib/unistr/u-strcspn.h: New file.
71684
71685         * modules/unistr/u8-strdup: New file.
71686         * modules/unistr/u16-strdup: New file.
71687         * modules/unistr/u32-strdup: New file.
71688         * lib/unistr/u8-strdup.c: New file.
71689         * lib/unistr/u16-strdup.c: New file.
71690         * lib/unistr/u32-strdup.c: New file.
71691         * lib/unistr/u-strdup.h: New file.
71692
71693         * modules/unistr/u8-strlen: New file.
71694         * modules/unistr/u16-strlen: New file.
71695         * modules/unistr/u32-strlen: New file.
71696         * lib/unistr/u8-strlen.c: New file.
71697         * lib/unistr/u16-strlen.c: New file.
71698         * lib/unistr/u32-strlen.c: New file.
71699         * lib/unistr/u-strlen.h: New file.
71700
71701         * modules/unistr/u8-strmblen: New file.
71702         * modules/unistr/u16-strmblen: New file.
71703         * modules/unistr/u32-strmblen: New file.
71704         * lib/unistr/u8-strmblen.c: New file.
71705         * lib/unistr/u16-strmblen.c: New file.
71706         * lib/unistr/u32-strmblen.c: New file.
71707
71708         * modules/unistr/u8-strmbtouc: New file.
71709         * modules/unistr/u16-strmbtouc: New file.
71710         * modules/unistr/u32-strmbtouc: New file.
71711         * lib/unistr/u8-strmbtouc.c: New file.
71712         * lib/unistr/u16-strmbtouc.c: New file.
71713         * lib/unistr/u32-strmbtouc.c: New file.
71714
71715         * modules/unistr/u8-strncat: New file.
71716         * modules/unistr/u16-strncat: New file.
71717         * modules/unistr/u32-strncat: New file.
71718         * lib/unistr/u8-strncat.c: New file.
71719         * lib/unistr/u16-strncat.c: New file.
71720         * lib/unistr/u32-strncat.c: New file.
71721         * lib/unistr/u-strncat.h: New file.
71722
71723         * modules/unistr/u8-strncmp: New file.
71724         * modules/unistr/u16-strncmp: New file.
71725         * modules/unistr/u32-strncmp: New file.
71726         * lib/unistr/u8-strncmp.c: New file.
71727         * lib/unistr/u16-strncmp.c: New file.
71728         * lib/unistr/u32-strncmp.c: New file.
71729
71730         * modules/unistr/u8-strncpy: New file.
71731         * modules/unistr/u16-strncpy: New file.
71732         * modules/unistr/u32-strncpy: New file.
71733         * lib/unistr/u8-strncpy.c: New file.
71734         * lib/unistr/u16-strncpy.c: New file.
71735         * lib/unistr/u32-strncpy.c: New file.
71736         * lib/unistr/u-strncpy.h: New file.
71737
71738         * modules/unistr/u8-strnlen: New file.
71739         * modules/unistr/u16-strnlen: New file.
71740         * modules/unistr/u32-strnlen: New file.
71741         * lib/unistr/u8-strnlen.c: New file.
71742         * lib/unistr/u16-strnlen.c: New file.
71743         * lib/unistr/u32-strnlen.c: New file.
71744         * lib/unistr/u-strnlen.h: New file.
71745
71746         * modules/unistr/u8-strpbrk: New file.
71747         * modules/unistr/u16-strpbrk: New file.
71748         * modules/unistr/u32-strpbrk: New file.
71749         * lib/unistr/u8-strpbrk.c: New file.
71750         * lib/unistr/u16-strpbrk.c: New file.
71751         * lib/unistr/u32-strpbrk.c: New file.
71752         * lib/unistr/u-strpbrk.h: New file.
71753
71754         * modules/unistr/u8-strrchr: New file.
71755         * modules/unistr/u16-strrchr: New file.
71756         * modules/unistr/u32-strrchr: New file.
71757         * lib/unistr/u8-strrchr.c: New file.
71758         * lib/unistr/u16-strrchr.c: New file.
71759         * lib/unistr/u32-strrchr.c: New file.
71760
71761         * modules/unistr/u8-strspn: New file.
71762         * modules/unistr/u16-strspn: New file.
71763         * modules/unistr/u32-strspn: New file.
71764         * lib/unistr/u8-strspn.c: New file.
71765         * lib/unistr/u16-strspn.c: New file.
71766         * lib/unistr/u32-strspn.c: New file.
71767         * lib/unistr/u-strspn.h: New file.
71768
71769         * modules/unistr/u8-strstr: New file.
71770         * modules/unistr/u16-strstr: New file.
71771         * modules/unistr/u32-strstr: New file.
71772         * lib/unistr/u8-strstr.c: New file.
71773         * lib/unistr/u16-strstr.c: New file.
71774         * lib/unistr/u32-strstr.c: New file.
71775         * lib/unistr/u-strstr.h: New file.
71776
71777         * modules/unistr/u8-strtok: New file.
71778         * modules/unistr/u16-strtok: New file.
71779         * modules/unistr/u32-strtok: New file.
71780         * lib/unistr/u8-strtok.c: New file.
71781         * lib/unistr/u16-strtok.c: New file.
71782         * lib/unistr/u32-strtok.c: New file.
71783         * lib/unistr/u-strtok.h: New file.
71784
71785         * modules/unistr/u8-uctomb: New file.
71786         * modules/unistr/u16-uctomb: New file.
71787         * modules/unistr/u32-uctomb: New file.
71788         * lib/unistr/u8-uctomb.c: New file.
71789         * lib/unistr/u16-uctomb.c: New file.
71790         * lib/unistr/u32-uctomb.c: New file.
71791
71792         * MODULES.html.sh (Unicode string functions): Add the new modules.
71793
71794 2007-01-08  Bruno Haible  <bruno@clisp.org>
71795
71796         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71797         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71798         subdirectories.
71799
71800 2007-01-08  Karl Berry  <karl@gnu.org>
71801
71802         * doc/error.texi: mention that main() fns must set program_name
71803         when progname is used.
71804
71805 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71806
71807         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71808         WCTYPE_H is empty, for the benefit of builds from non-distclean
71809         directories.  Problem reported by Eric Blake in
71810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71811
71812 2007-01-08  Bruno Haible  <bruno@clisp.org>
71813
71814         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71815         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71816         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71817         PROVIDE_CANONICALIZE_FILENAME_MODE.
71818         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71819
71820 2007-01-08  Bruno Haible  <bruno@clisp.org>
71821
71822         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71823         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71824         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71825         * lib/fts.c: Likewise.
71826         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71827
71828 2006-12-25  Bruno Haible  <bruno@clisp.org>
71829
71830         * modules/utf8-ucs4-safe: New file.
71831         * lib/utf8-ucs4-safe.h: New file.
71832         * lib/unistr/utf8-ucs4-safe.c: New file.
71833
71834         * modules/utf16-ucs4-safe: New file.
71835         * lib/utf16-ucs4-safe.h: New file.
71836         * lib/unistr/utf16-ucs4-safe.c: New file.
71837
71838         * MODULES.html.sh (Unicode string functions): Add the new modules.
71839
71840 2007-01-08  Bruno Haible  <bruno@clisp.org>
71841
71842         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71843         (Depends-on): Add unitypes.
71844         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71845         (u8_mbtouc_aux): Move out to separate file.
71846         (u8_mbtouc): Use ucs4_t, uint8_t types.
71847         * lib/unistr/utf8-ucs4.c: New file.
71848
71849         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71850         (Depends-on): Add unitypes.
71851         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71852         (u16_mbtouc_aux): Move out to separate file.
71853         (u16_mbtouc): Use ucs4_t, uint16_t types.
71854         * lib/unistr/utf16-ucs4.c: New file.
71855
71856         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71857         (Depends-on): Add unitypes.
71858         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71859         (u8_uctomb_aux): Move out to separate file.
71860         (u8_uctomb): Use ucs4_t, uint8_t types.
71861         * lib/unistr/ucs4-utf8.c: New file.
71862
71863         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71864         (Depends-on): Add unitypes.
71865         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71866         (u16_uctomb_aux): Move out to separate file.
71867         (u16_uctomb): Use ucs4_t, uint16_t types.
71868         * lib/unistr/ucs4-utf16.c: New file.
71869
71870 2006-12-25  Bruno Haible  <bruno@clisp.org>
71871
71872         * modules/unitypes: New file.
71873         * lib/unitypes.h: New file.
71874         * MODULES.html.sh (func_all_modules): New section "Unicode string
71875         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71876         this section. Add unitypes.
71877
71878 2007-01-08  Bruno Haible  <bruno@clisp.org>
71879
71880         Avoid variable names that conflict with those from libtool.
71881         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71882         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71883         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71884         library_names_spec to acl_library_names_spec, hardcode_* to
71885         acl_hardcode_*.
71886         Reported by Ralf Wildenhues.
71887
71888 2007-01-08  Bruno Haible  <bruno@clisp.org>
71889
71890         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71891         definition.
71892         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71893         definition.
71894         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71895         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71896         definition.
71897         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71898         definition.
71899         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71900         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71901         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71902         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71903         definition.
71904         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71905         definition.
71906         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71907         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71908         GC_USE_<algorithm>.
71909         * lib/gc-libgcrypt.c: Likewise.
71910         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71911         * modules/gc-arctwo (configure.ac): Likewise.
71912         * modules/gc-des (configure.ac): Likewise.
71913         * modules/gc-hmac-md5 (configure.ac): Likewise.
71914         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71915         * modules/gc-md2 (configure.ac): Likewise.
71916         * modules/gc-md4 (configure.ac): Likewise.
71917         * modules/gc-md5 (configure.ac): Likewise.
71918         * modules/gc-random (configure.ac): Likewise.
71919         * modules/gc-rijndael (configure.ac): Likewise.
71920         * modules/gc-sha1 (configure.ac): Likewise.
71921
71922 2007-01-08  Bruno Haible  <bruno@clisp.org>
71923
71924         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71925         macro definition.
71926         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71927         definition.
71928         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71929         definition.
71930         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71931         * modules/fcntl-safer (configure.ac): Likewise.
71932         * modules/fopen-safer (configure.ac): Likewise.
71933         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71934         GNULIB_FWRITEERROR macro definition.
71935
71936 2007-01-08  Bruno Haible  <bruno@clisp.org>
71937
71938         * m4/gnulib-common.m4: New file.
71939         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71940         (func_get_filelist): Add m4/gnulib-common.m4.
71941
71942 2007-01-08  Bruno Haible  <bruno@clisp.org>
71943
71944         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71945         command.
71946
71947 2007-01-08  Jim Meyering  <jim@meyering.net>
71948
71949         Use a more robust test for a "can't happen" condition.
71950         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71951         narrowed the st_size value.  Presuming the "can't happen" condition
71952         is true, that narrowing could conceivably convert an invalid st_size
71953         value into a valid one.  Instead, use a change based on Matthew
71954         Woehlke's original patch.
71955
71956         Slight readability improvement: use an assert-like macro
71957         in place of literal "abort ()" uses.
71958         * lib/fts.c (fts_assert): Define.
71959         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71960         Use this macro instead of a bare 'abort'.
71961
71962 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71963
71964         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71965         simply work around them.
71966         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71967         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71968         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71969         declaring.
71970         Don't bother to define as macros, since the standard doesn't require it.
71971         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71972         longer worry about IRIX 5.3.
71973         (HAVE_WCTYPE_CTMP_BUG): Remove.
71974
71975 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71976
71977         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71978         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71979         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71980         Problems reported by Georg Schwarz for IRIX 5.3.
71981
71982         * gnulib-tool (autoconf_minversion): Take the maximum version number
71983         found, not the minimum.  Problem reported by James Youngman.
71984
71985 2007-01-03  Karl Berry  <karl@gnu.org>
71986
71987         * doc/error.texi: new file, explaining interaction with progname.
71988         * doc/gnulib.texi: include it.  Update copyright.
71989
71990 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71991
71992         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71993         AC_CANONICAL_HOST, to improve autobuild outputs.
71994
71995 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71996             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71997
71998         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71999         sockets, server sockets, and other file descriptors.  Count errors
72000         to compute the return value.  Reorder the code a bit to be easier
72001         to follow.  Don't set event bits that were not requested (except
72002         POLLERR and POLLHUP).
72003
72004 2007-01-01  Bruno Haible  <bruno@clisp.org>
72005
72006         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72007
72008 2007-01-03  Jim Meyering  <jim@meyering.net>
72009
72010         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72011
72012 2007-01-02  Bruno Haible  <bruno@clisp.org>
72013
72014         * modules/settime (Include): Require timespec.h.
72015         * modules/nanosleep (Include): Likewise.
72016
72017 2007-01-01  Bruno Haible  <bruno@clisp.org>
72018
72019         * gnulib-tool (func_emit_copyright_notice): Bump year.
72020         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72021
72022 2007-01-01  Bruno Haible  <bruno@clisp.org>
72023
72024         Improve support for OpenBSD.
72025         * build-aux/config.rpath (libname_spec): Export.
72026         (library_names_spec): New variable. Export.
72027         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72028         library_names_spec from the config.rpath output. Locate shared library
72029         through the name pattern in library_names_spec.
72030
72031 2007-01-01  Eric Blake  <ebb9@byu.net>
72032
72033         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72034
72035 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72036
72037         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72038         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72039         assume the C locale, and avoid an "eval" that could cause trouble.
72040         Problem with SORT reported by Bob Proulx.
72041
72042         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72043         Define.  Trivial patch from Henning Nielsen Lund, originally
72044         sent to bug-grep@gnu.org today.
72045
72046 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72047
72048         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72049         struct stat.  Problem reported by Henning Nielsen Lund.
72050         * lib/acl.c: Include acl.h first, to check interface.  Don't
72051         bother to include sys/types.h and sys/stat.h again.
72052
72053 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72054
72055         Import the following change from libc; problem reported by
72056         Sven Verdoolaege.
72057
72058         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72059
72060         [BZ #1373]
72061         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72062
72063 2006-12-28  Jim Meyering  <jim@meyering.net>
72064
72065         * build-aux/announce-gen: Do not assume that the package
72066         builds any of tar.gz, tar.bz2, and .xdelta files.
72067         Suggestion from Simon Josefsson.
72068
72069 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72070
72071         * modules/announce-gen: New file.
72072
72073 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72074
72075         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72076         handles its gotchas now.
72077         * lib/mbswidth.c: Likewise.
72078         * lib/wcwidth.h: Likewise.
72079         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72080         and iswcntrl; the wctype module does this stuff now.
72081         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72082         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72083         * modules/mbchar (Depends-on): Add wctype.
72084         * modules/mbswidth (Depends-on): Likewise.
72085         * modules/wcwidth (Depends-on): Likewise.
72086
72087 2006-12-27  Eric Blake  <ebb9@byu.net>
72088
72089         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72090         module uses more than what <wctype.h> is required to provide.
72091
72092 2006-12-26  Eric Blake  <ebb9@byu.net>
72093
72094         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72095
72096 2006-12-26  Eric Blake  <ebb9@byu.net>
72097
72098         * modules/absolute-header: New module.
72099         * modules/fcntl (Depends-on): Depend on it.
72100         * modules/inttypes (Depends-on): Likewise.
72101         * modules/stdint (Depends-on): Likewise.
72102         * modules/sys_stat (Depends-on): Likewise.
72103         * modules/wctype (Depends-on): Likewise.
72104         * MODULES.html.sh (Support for building libraries and
72105         executables): Document it.
72106
72107 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72108
72109         * gnulib-tool (SED): Remove, undoing previous change.
72110         The problem was that it broke coreutils on Solaris, because
72111         "sed --posix" leaked into a makefile.
72112         (sed): New alias, if 'alias' and GNU sed.
72113
72114 2006-12-24  Jim Meyering  <jim@meyering.net>
72115
72116         Work around an fchownat bug in glibc-2.4:
72117         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72118         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72119         in spite of the -P option.
72120         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72121         New macros.
72122         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72123         * modules/openat (Files): Add lib/fchownat.c.
72124         * lib/openat.c (fchownat): Don't define here.  Move to...
72125         * lib/fchownat.c: ...this new file.
72126
72127 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72128
72129         Fix bug reported by Bruno Haible in
72130         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72131         where quotearg.c didn't compile on Mac OS X 10.2 because it
72132         lacks <wchar.h> and wint_t.
72133         * lib/wctype_.h (__wctype_wint_t): New type.
72134         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72135         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72136         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72137         Arg is now of type __wctype_wint_t, not wint_t.
72138         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72139         substitute HAVE_WINT_T.
72140         * modules/wctype (Files): Add m4/wint_t.m4.
72141         (wctype.h): Substitute HAVE_WINT_T.
72142
72143 2006-12-23  Bruno Haible  <bruno@clisp.org>
72144
72145         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72146
72147 2006-12-23  Bruno Haible  <bruno@clisp.org>
72148
72149         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72150         S_ISLNK.
72151         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72152         mingw.
72153
72154 2006-12-22  Bruno Haible  <bruno@clisp.org>
72155
72156         * lib/copy-file.c: Include acl.h.
72157         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72158         Close the file descriptors only after being done with copy_acl.
72159         * modules/copy-file (Depends-on): Add acl.
72160
72161 2006-12-22  Bruno Haible  <bruno@clisp.org>
72162
72163         * gnulib-tool (SED): New variable.
72164         Use $SED instead of sed everywhere.
72165
72166 2006-12-22  Bruno Haible  <bruno@clisp.org>
72167
72168         * modules/no-c++: New file.
72169         * m4/no-c++.m4: New file.
72170         * MODULES.html.sh (Support for building libraries and executables):
72171         Add no-c++.
72172
72173 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72174
72175         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72176         Include <limits.h>, and use its INT_MAX to rewrite the
72177         j loop so that it does not overflow 'int'.  Problem reported by
72178         Ralf Wildenhues in
72179         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72180         Play it safe by shifting left by 1 rather than multiplying by 2,
72181         as GCC is less likely to optimize this away when the value
72182         is signed (when it assumes overflow leads to undefined behavior).
72183         Also, don't assume time_t uses two's complement.
72184
72185 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72186
72187         * MODULES.html.sh: New module wctype.
72188         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72189         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72190         <wctype.h>, since the new wctype module should fix this.
72191         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72192         the wctype module should arrange for it.
72193         * lib/regex_internal.h: Likewise.
72194         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72195         since the wctype module should handle this now.
72196         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72197         * modules/fnmatch (Depends-on): Add wctype.
72198         * modules/quotearg (Depends-on): Likewise.
72199         * modules/regex (Depends-on): Likewise.
72200
72201 2006-12-19  Bruno Haible  <bruno@clisp.org>
72202
72203         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72204         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72205
72206 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72207
72208         * modules/savewd (Depends-on): Fix dependency on fcntl.
72209
72210 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72211
72212         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72213         conforms to C99, rather than relying on the user's environment
72214         setting of STDINT_H.
72215
72216 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72217         and Eric Blake  <ebb9@byu.net>
72218
72219         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72220         This is more consistent with the other defines here.
72221         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72222         Port to z/OS.  Problem reported by Paul Gilmartin.
72223         Change local vars to use gl_ prefix rather than ac_.
72224         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72225         with other defines.
72226         * modules/double-slash-root: New module.
72227         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72228         (Depends-on): Add double-slash-root.
72229         * MODULES.html.sh (File system functions): Mention new module.
72230
72231 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72232
72233         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72234         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72235         This is for the benefit of gzip, which doesn't do i18n.
72236
72237 2006-12-12  Jim Meyering  <jim@meyering.net>
72238
72239         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72240         Reported by Andreas Schwab <schwab@suse.de>.
72241
72242 2006-12-12  Bruno Haible  <bruno@clisp.org>
72243
72244         Merge these changes.
72245         2006-09-05  Bruno Haible  <bruno@clisp.org>
72246         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72247         iconv_alloc succeeded.
72248         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72249         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72250         test for " && dest " at the end - dest is always != NULL there. Call
72251         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72252         with 2xNULL arguments, also to flush the state storage. Handle the
72253         IRIX iconv behaviour. Realloc the final result, to throw away unused
72254         memory.
72255
72256 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
72257
72258         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
72259         and fchmodat unconditionally, since glibc 2.4 has them.
72260         Problem reported by Arkadiusz Miskiewicz.
72261
72262 2006-12-10  Bruno Haible  <bruno@clisp.org>
72263
72264         * gnulib-tool (func_import): Show the include files only for those
72265         modules that are copied and specified.
72266         Reported by Karl Berry.
72267
72268 2006-12-08  Jim Meyering  <jim@meyering.net>
72269
72270         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72271         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72272
72273         * build-aux/announce-gen: Add two new options, both optional:
72274         --bootstrap-tools=TOOL_LIST
72275               a comma-separated list of tools, e.g.,
72276               autoconf,automake,bison,gnulib
72277         --gnulib-snapshot-date=DATE
72278               if gnulib is in the bootstrap tool list,
72279               then report this as the snapshot date.
72280               If not specified, use the current date/time.
72281               If you specify a date here, be sure it's UTC.
72282
72283 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72284
72285         * tests/test-argp-2.sh: Fix test to match actual output.
72286         (func_compare): Fix sed script to be portable.
72287
72288 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72289
72290         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72291         workaround for this case.  It is not autoconfigured now; offhand
72292         it's hard to see how to autoconfigure it.
72293
72294 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72295
72296         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72297         a directory that is about to be chowned.  Such a directory's
72298         initial file permissions should permit the owner only and this
72299         should not be changed until after the chown, since the group and
72300         other bits would be incorrect if they granted permission before
72301         the chown.
72302
72303         Fix porting problem for iswctype reported by Georg Schwarz in:
72304         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72305         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72306         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72307         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72308         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72309
72310 2006-12-03  Jim Meyering  <jim@meyering.net>
72311
72312         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72313         p->fts_statp may not yet be defined.
72314         (fts_read): Instead, set it in the caller, once p->fts_statp is
72315         sure to be defined, and corresponds to a top-level directory.
72316         This bug made du -x fail.  Here's the coreutils test case:
72317         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72318         Reported by Mike Frysinger.
72319
72320 2006-12-01  Jim Meyering  <jim@meyering.net>
72321
72322         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72323         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72324         Reported by Simon Josefsson.
72325
72326 2006-11-30  Jim Meyering  <jim@meyering.net>
72327
72328         * m4/warning.m4: Use the all-permissive copyright notice
72329         recommended by RMS (rather than LGPL).
72330         * m4/vararrays.m4: Likewise.
72331         * m4/flexmember.m4: Likewise.
72332
72333 2006-11-29  Bruno Haible  <bruno@clisp.org>
72334
72335         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72336         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
72337         using +=.
72338         Reported by Simon Josefsson <simon@josefsson.org>.
72339
72340 2006-11-28  James Youngman <jay@gnu.org>
72341
72342         * README: Advise users that they might find the bug-gnulib@gnu.org
72343         and autotools-announce@gnu.org mailing lists useful.
72344
72345 2006-11-28  Bruno Haible  <bruno@clisp.org>
72346
72347         * m4/ptrdiff_max.m4: Remove file.
72348
72349 2006-11-21  Bruno Haible  <bruno@clisp.org>
72350
72351         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
72352         _AC_COMPUTE_INT.
72353         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72354         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
72355         _AC_COMPUTE_INT.
72356         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72357         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
72358         _AC_COMPUTE_INT.
72359         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72360
72361 2006-11-28  Jim Meyering  <jim@meyering.net>
72362
72363         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
72364         warning from "gcc -Wshadow" about shadowing the builtin.
72365
72366 2006-11-27  Bruno Haible  <bruno@clisp.org>
72367
72368         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
72369         _AC_COMPUTE_INT.
72370         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72371
72372 2006-11-27  Bruno Haible  <bruno@clisp.org>
72373             Paul Eggert  <eggert@cs.ucla.edu>
72374
72375         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
72376
72377 2006-11-26  Bruno Haible  <bruno@clisp.org>
72378
72379         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72380         noinst_LTLIBRARIES.
72381
72382 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72383             Bruno Haible  <bruno@clisp.org>
72384
72385         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72386         if compiling with "gcc -ansi".
72387
72388 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72389
72390         Fix some incompatibilities with gcc -ansi -pedantic.
72391         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72392         if compiling pedantically with GCC, unless it's C99 or later.
72393         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72394         it mishandles gcc -ansi -pedantic as well.
72395         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72396         if gcc -pedantic.
72397         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72398         initializers for struct if -pedantic, unless it's C99 or later.
72399
72400 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72401
72402         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72403         Don't close an fd more than once. Identical atimes indicate
72404         success, not failure.
72405
72406 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
72407
72408         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
72409
72410 2006-11-23  Jim Meyering  <jim@meyering.net>
72411
72412         * build-aux/announce-gen: New file.  From coreutils.
72413
72414 2006-11-22  Jim Meyering  <jim@meyering.net>
72415
72416         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
72417         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
72418         (fts_read): Use a temporary to narrow the overused st_size member
72419         before using it in a switch statement.  Reported by Matthew Woehlke.
72420
72421         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
72422         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72423
72424 2006-11-20  Bruno Haible  <bruno@clisp.org>
72425
72426         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72427         changequote instead of pairs of brackets.
72428         Reported by Andreas Schwab <schwab@suse.de>.
72429
72430 2006-11-21  Jim Meyering  <jim@meyering.net>
72431
72432         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72433         so as to remain compatible with older compilers.
72434         Patch from Michael Deutschmann.
72435
72436 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72437
72438         * MODULES.html.sh (File system functions): Add openat.
72439
72440         * lib/openat.h (rpl_fstatat): New macro, if
72441         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
72442         (fstatat): Define to rpl_fstatat under the same conditions,
72443         unless COMPILING_FSTATAT.
72444         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
72445         seems to have the bug.
72446         * lib/fstatat.c: New file.
72447         * modules/openat (Files): Add it.
72448
72449 2006-11-20  Bruno Haible  <bruno@clisp.org>
72450
72451         * Makefile: New file.
72452
72453 2006-11-20  Jim Meyering  <jim@meyering.net>
72454
72455         The beginnings of syntax-related checks for gnulib.
72456         * lib/Makefile: New file.
72457         * lib/t-idcache: New script.  Ensure that the two halves of
72458         idcache.c stay in sync.
72459
72460         * lib/idcache.c: Adjust comments in user- and group- portions to
72461         be more accurate, and to be consistent with one another.
72462
72463 2006-11-20  Jim Meyering  <jim@meyering.net>
72464
72465         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
72466         continue using the flexible array member (thus, this module performs
72467         half as many malloc calls), with the addition that...
72468         (getgroup, getuser): Consistently record a non-match via an empty
72469         "name" string, and map an empty string match to a NULL return value.
72470         * modules/idcache (Depends-on): Re-add flexmember.
72471
72472         * lib/idcache.c (getuser): Remove all uses of the register keyword.
72473         (getuidbyname, getgroup, getgidbyname): Likewise.
72474
72475         Use cleaner syntax: NULL rather than 0.
72476         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
72477
72478 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72479
72480         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
72481         It mishandled the case where the group was missing.
72482         Problem reported by Greg Schafer.
72483         * modules/idcache: Likewise.
72484
72485 2006-11-18  Jim Meyering  <jim@meyering.net>
72486
72487         * check-module (%exempt_header): Add exception for some
72488         conditionally-included headers.
72489
72490         * modules/i-ring (Depends-on): Add verify.
72491         (License): Change to LGPL.
72492
72493 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72494
72495         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72496         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72497         and inttostr.h.  Use snprintf rather than uinttostr, so that
72498         LGPLed code doesn't depend on GPLed.
72499
72500 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72501
72502         * modules/inline (License): Change from GPL to LGPL.
72503
72504 2006-11-17  Jim Meyering  <jim@meyering.net>
72505
72506         * modules/d-type (License): Switch to LGPL.
72507
72508 2006-11-15  Bruno Haible  <bruno@clisp.org>
72509
72510         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72511
72512 2006-11-15  Eric Blake  <ebb9@byu.net>
72513
72514         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72515         the module dependency.
72516
72517 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72518             Bruno Haible  <bruno@clisp.org>
72519
72520         * gnulib-tool (func_create_testdir): Add license consistency check.
72521
72522 2006-11-15  Eric Blake  <ebb9@byu.net>
72523
72524         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72525         random "(cached)" in configure output.
72526
72527 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72528
72529         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72530         test for conforming inttypes.h is both announced and cached.
72531
72532         * MODULES.html.sh (seen_modules, seen_files): New variables.
72533         (func_module): Rewrite to use a few less gnulib-tool and sed
72534         invocations.  Avoid a couple of quadratic algorithms for ...
72535         (missed_modules, missed_files): ... these, with ...
72536         (func_append, func_tmpdir): ... these new functions, from
72537         gnulib-tool.  Analogously, install traps for cleanup.
72538
72539         * tests/test-gc.c (main): Remove unused variables.
72540         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72541
72542 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72543
72544         * modules/inttostr (License): Change to LGPL.
72545
72546 2006-11-14  Eric Blake  <ebb9@byu.net>
72547
72548         * modules/tempname (License): Change to LGPL.
72549
72550 2006-11-14  Eric Blake  <ebb9@byu.net>
72551
72552         * doc/functions.texi (Function Portability): *printf functions on
72553         Cygwin now understand all POSIX size specifiers.
72554
72555 2006-11-14  Bruno Haible  <bruno@clisp.org>
72556
72557         * modules/c-ctype (License): Change to LGPL.
72558
72559 2006-11-12  Bruno Haible  <bruno@clisp.org>
72560
72561         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72562         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72563         for GNOME libraries, for which the include files are installed in
72564         subdirectories of $prefix/include.
72565
72566 2006-11-12  Bruno Haible  <bruno@clisp.org>
72567
72568         * m4/lib-link.m4: Require at least autoconf-2.54.
72569         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72570         name to underscores for the --with option.
72571
72572 2006-11-13  Bruno Haible  <bruno@clisp.org>
72573
72574         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72575         the tests directory.
72576         Reported by Ralf Wildenhues.
72577
72578 2006-11-13  Bruno Haible  <bruno@clisp.org>
72579
72580         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72581         (func_emit_initmacro_end): Undo the override here.
72582         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72583         Works around the famous automake error in coreutils.
72584
72585 2006-11-13  Eric Blake  <ebb9@byu.net>
72586
72587         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72588         element, not its node.
72589
72590 2006-11-12  Bruno Haible  <bruno@clisp.org>
72591
72592         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72593         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72594
72595 2006-11-12  Bruno Haible  <bruno@clisp.org>
72596
72597         * gnulib-tool: New option --local-symlink.
72598         (func_usage): Document it.
72599         (lsymbolic): New variable.
72600         (func_import, func_create_testdir): If --symlink was not specified,
72601         test whether --local-symlink was specified and the file comes from
72602         the local_gnulib_dir.
72603
72604 2006-11-12  Bruno Haible  <bruno@clisp.org>
72605
72606         * gnulib-tool (func_ln): New function.
72607         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72608
72609 2006-11-12  Bruno Haible  <bruno@clisp.org>
72610
72611         Finish support for source files in subdirectories.
72612         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72613         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72614         AUTOMAKE_OPTIONS.
72615         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72616
72617 2006-11-12  Bruno Haible  <bruno@clisp.org>
72618
72619         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72620         EXTRA_lib_SOURCES augmentation.
72621         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72622
72623 2006-11-12  Jim Meyering  <jim@meyering.net>
72624
72625         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72626         file descriptors.  This also averts a failure on systems with
72627         native openat support when a traversed directory lacks "x" access.
72628         * lib/fts_.h: Include "i-ring.h"
72629         (struct FTS) [fts_fd_ring]: New member.
72630         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72631         (FCHDIR): Add parentheses.
72632         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72633         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72634         When descending, rather than simply closing the previous
72635         fts_cwd_fd value, push that file descriptor onto the ring.
72636         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72637         (fts_open): Initialize the new fd_ring member.
72638         (fts_close): Clear the ring.
72639         (fts_safe_changedir): When possible, use our new fd_ring to skip
72640         the diropen and fstat and dev/ino comparison that would normally
72641         accompany a virtual `chdir ("..")'.
72642
72643         * modules/fts (Depends-on): Add i-ring.
72644         * modules/i-ring: New module.
72645         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72646         * m4/i-ring.m4: New file.
72647
72648 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72649
72650         * gnulib-tool (func_create_testdir): Fix replacement of
72651         `build-aux' in configure.ac.  Run autotools in gltests
72652         subdirectory.
72653         (func_create_testdir, func_create_megatestdir, test): There is
72654         no need for '--force' in most autotool invocations in a new
72655         tree.  Actually fail the whole test if any of the tools, or the
72656         configure or make stages fail.
72657
72658         Sync from Automake.
72659         * build-aux/gnupload: Revert last change.  Add pointer to upload
72660         instructions of the GNU Maintenance Instructions.
72661         Suggestion by Karl Berry.
72662
72663 2006-11-10  Jim Meyering  <jim@meyering.net>
72664
72665         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72666
72667 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72668
72669         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72670         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72671         (bind_textdomain_codeset) [! ENABLE_NLS]:
72672         Evaluate all the arguments.  That way, callers get compatible behavior
72673         if the arguments have side effects.  Also, it avoids some GCC
72674         diagnostics in some cases; Joel E. Denny reported problems when Bison
72675         was configured with --enable-gcc-warnigs.
72676
72677 2006-11-10  Jim Meyering  <jim@meyering.net>
72678
72679         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72680         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72681         account.
72682
72683 2006-11-10  Jim Meyering  <jim@meyering.net>
72684
72685         * modules/inline: New file/module.
72686         * modules/xalloc (Files): Remove m4/inline.m4.
72687         (Depends-on): Add inline, instead.
72688         * modules/oset: Likewise.
72689         * modules/list: Likewise.
72690
72691 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72692
72693         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72694         Problem reported by Matthew Woehlke.
72695
72696 2006-11-09  Bruno Haible  <bruno@clisp.org>
72697
72698         * lib/tempname.c (gen_tempname): Remove variant that invokes
72699         __gen_tempname.
72700         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72701         __gen_tempname.
72702
72703 2006-11-08  Bruno Haible  <bruno@clisp.org>
72704
72705         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72706         to 'yes' instead of 'cross-compiling'.
72707
72708 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72709
72710         * lib/quotearg.h (quotearg_free): New decl.
72711         * lib/quotearg.c (quotearg_free): New function.
72712         (slot0, nslots, slotvec0, slotvec):
72713         Now file-scope so that quotearg_free can get at them.
72714
72715 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72716
72717         Sync from Automake.
72718         * build-aux/gnupload: Add missing 'gnu' to example URL.
72719         Report by Karl Berry.
72720
72721 2006-11-08  Bruno Haible  <bruno@clisp.org>
72722
72723         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72724         Suggested by Paul Eggert.
72725
72726 2006-11-08  Jim Meyering  <jim@meyering.net>
72727
72728         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72729         It's already included if !_LIBC.
72730         (fts_safe_changedir): Add a comment.
72731
72732 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72733
72734         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72735         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72736         Matthew Woehlke.
72737
72738         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72739         definitions up, to avoid colliding with change below.
72740         (static_inline) [HAVE_INLINE]: New macro.
72741         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72742         Provide extern decls when !HAVE_INLINE.  Do not define unless
72743         static_inline is defined, either by us or by xmalloc.c.  Use
72744         static_inline rather than static inline.
72745         (XCALLOC): Optimize sizeof(T) = 1 case.
72746         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72747
72748 2006-11-07  Bruno Haible  <bruno@clisp.org>
72749
72750         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72751         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72752         AC_C_INLINE.
72753         * modules/xalloc (Files): Add m4/inline.m4.
72754
72755 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72756
72757         * README: Fix typo.
72758         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72759         (Miscellanous Notes): ...from this.
72760
72761 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72762
72763         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72764         Mention that offsetof should be used instead of sizeof.
72765         From Bruno Haible.
72766
72767 2006-11-07  Bruno Haible  <bruno@clisp.org>
72768
72769         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72770
72771 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72772
72773         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72774         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72775         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72776         (gl_tree_add_before, gl_tree_add_after):
72777         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72778         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72779         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72780         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72781         (gl_linked_add_after, gl_linked_add_at): Likewise.
72782         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72783         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72784         (gl_tree_add_before, gl_tree_add_after): Likewise.
72785         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72786         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72787         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72788
72789 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72790
72791         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72792
72793 2006-11-06  Bruno Haible  <bruno@clisp.org>
72794
72795         * m4/inline.m4: New file.
72796         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72797         * modules/list (Files): Add m4/inline.m4.
72798         * modules/oset (Files): Likewise.
72799
72800 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72801
72802         * lib/idcache.c: Include <stddef.h>, for offsetof.
72803         (struct userid.name): Change from char * to a flexible array member.
72804         All uses changed.
72805         * modules/idcache (Depends-on): Add flexmember.
72806
72807         * MODULES.html.sh (Core language properties): New module flexmember.
72808         * modules/flexmember, m4/flexmember.m4: New files.
72809
72810         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72811         inline functions that are identical with the old xnmalloc_inline,
72812         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72813         that we can avoid some unnecessary integer multiplications and
72814         divisions in the common case where the element size is known at
72815         compile time.
72816         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72817         needed.
72818         (xnboundedmalloc): Remove.
72819         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72820         arguments, for consistency with rest of this header.
72821         (xcharalloc): Rewrite using XNMALLOC.
72822         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72823         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72824         versions have been moved to lib/xalloc.h and renamed to be the
72825         non-*_inline versions.
72826         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72827         and xnrealloc functions, since those functions are now inline and
72828         now call us.
72829         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72830         renaming described above.
72831         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72832         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72833         captures the dependency in AC_C_INLINE.
72834
72835         New module canonicalize-lgpl, proposed by Charles Wilson in
72836         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72837         with a few small changes afterwards.
72838         * MODULES.html.sh (File system functions): New module
72839         canonicalize-lgpl.
72840         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72841         and canonicalize_file_name.
72842         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72843         * modules/canonicalize-lgpl: New files.
72844
72845 2006-11-05  Bruno Haible  <bruno@clisp.org>
72846
72847         * gnulib-tool (func_import, func_create_testdir): Create directories
72848         also for files in subdirectories of lib/.
72849
72850 2006-11-05  Bruno Haible  <bruno@clisp.org>
72851
72852         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72853         ANSI C compliant.
72854
72855 2006-11-03  Bruno Haible  <bruno@clisp.org>
72856
72857         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72858         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72859         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72860         (xnboundedmalloc): New inline function.
72861         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72862         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72863         xmalloc.
72864         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72865         xmalloc.
72866         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72867         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72868         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72869         xmalloc.
72870         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72871         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72872         xmalloc.
72873         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72874         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72875         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72876         xmalloc.
72877         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72878         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72879         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72880         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72881         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72882         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72883         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72884
72885 2006-11-03  Bruno Haible  <bruno@clisp.org>
72886
72887         * lib/c-ctype.h [C++]: Define functions without name mangling.
72888         * lib/fwriteerror.h [C++]: Likewise.
72889         * lib/gcd.h [C++]: Likewise.
72890         * lib/linebreak.h [C++]: Likewise.
72891
72892 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72893
72894         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72895         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72896         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72897         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72898         Check for functions and headers just once.
72899         Check for declaration of canonicalize_file_name.
72900         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72901
72902 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72903
72904         * gnulib-tool (func_import): Fix typo in actioncmd.
72905
72906 2006-11-02  Bruno Haible  <bruno@clisp.org>
72907
72908         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72909         newline sequence in the Makefile.am snippet as a space, like "make"
72910         does.
72911         Reported by Roger Persson <perrog@gmail.com>.
72912
72913 2006-11-01  Bruno Haible  <bruno@clisp.org>
72914
72915         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72916         already declared in <string.h>.
72917         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72918
72919 2006-11-01  Bruno Haible  <bruno@clisp.org>
72920
72921         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72922         * lib/strcase.h: Include <string.h>.
72923         (strcasecmp): Define to rpl_strcasecmp here.
72924
72925 2006-11-01  Bruno Haible  <bruno@clisp.org>
72926
72927         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72928
72929 2006-11-01  Eric Blake  <ebb9@byu.net>
72930
72931         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72932
72933         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72934
72935 2006-10-29  Bruno Haible  <bruno@clisp.org>
72936
72937         Make it compile in C++ mode.
72938         * lib/full-write.c (full_rw): Add a cast.
72939
72940 2006-11-01  Bruno Haible  <bruno@clisp.org>
72941
72942         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72943         be POSIX compliant.
72944         Reported by Roger Persson <perrog@gmail.com>.
72945
72946 2006-11-01  Eric Blake  <ebb9@byu.net>
72947
72948         * lib/getopt_.h: Fix comments.
72949
72950 2006-10-31  Eric Blake  <ebb9@byu.net>
72951
72952         * modules/tmpdir (Depends-on): Add sys_stat.
72953         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72954         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72955         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72956         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72957         tempname.
72958
72959 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72960
72961         Avoid some C++ diagnostics reported by Bruno Haible.
72962         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72963         xmalloc.
72964         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72965         (struct slotvec): Move to top level.
72966         (quotearg_n_options): Rewrite to avoid xmalloc.
72967         * lib/xalloc.h (xcharalloc): New function.
72968         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72969         [defined __cplusplus]: Add function template that provides result
72970         type propagation.  This part of the change is from Bruno Haible.
72971
72972 2006-10-29  Bruno Haible  <bruno@clisp.org>
72973
72974         Make it compile in C++ mode.
72975         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72976         * lib/strnlen1.c (strnlen1): Cast memchr result.
72977         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72978         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72979         (create_temp_dir): Rename local variable 'template'.
72980         (compile_csharp_using_sscli): Add cast.
72981         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72982         * lib/findprog.c (find_in_path): Likewise.
72983         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72984         * lib/wait-process.c (register_slave_subprocess): Likewise.
72985
72986 2006-10-22  Bruno Haible  <bruno@clisp.org>
72987
72988         * modules/tsearch: New file.
72989         * lib/tsearch.h: New file.
72990         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72991         * m4/tsearch.m4: New file.
72992         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72993
72994 2006-10-29  Eric Blake  <ebb9@byu.net>
72995
72996         * lib/arcfour.c: Assume config.h.
72997         * lib/arctwo.c: Likewise.
72998         * lib/base64.c: Likewise.
72999         * lib/check-version.c: Likewise.
73000         * lib/crc.c: Likewise.
73001         * lib/des.c: Likewise.
73002         * lib/gc-gnulib.c: Likewise.
73003         * lib/gc-libgcrypt.c: Likewise.
73004         * lib/gc-pbkdf2-sha1.c: Likewise.
73005         * lib/getaddrinfo.c: Likewise.
73006         * lib/getdelim.c: Likewise.
73007         * lib/getline.c: Likewise.
73008         * lib/hmac-md5.c: Likewise.
73009         * lib/hmac-sha1.c: Likewise.
73010         * lib/iconvme.c: Likewise.
73011         * lib/md2.c: Likewise.
73012         * lib/md4.c: Likewise.
73013         * lib/memxor.c: Likewise.
73014         * lib/read-file.c: Likewise.
73015         * lib/readline.c: Likewise.
73016         * lib/rijndael-alg-fst.c: Likewise.
73017         * lib/rijndael-api-fst.c: Likewise.
73018         * lib/xgetdomainname.c: Likewise.
73019
73020 2006-10-28  Eric Blake  <ebb9@byu.net>
73021
73022         * lib/xstrndup.c: Assume config.h.
73023
73024 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73025
73026         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73027         stat-macros.h is now for our own macros, whereas stat_h is for
73028         macros in the <sys/stat.h> name space.
73029         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73030         (STAT_MACROS_H): Remove.
73031         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73032         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73033         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73034         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73035         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73036         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73037         Move these macros to ...
73038         * lib/stat_.h: here.  Don't include stat-macros.h.
73039         * lib/canonicalize.c: Don't include stat-macros.h.
73040         * lib/chown.c: Likewise.
73041         * lib/euidaccess.c: Likewise.
73042         * lib/file-type.c: Likewise.
73043         * lib/filemode.c: Likewise.
73044         * lib/glob.c: Likewise.
73045         * lib/isapipe.c: Likewise.
73046         * lib/lchown.c: Likewise.
73047         * lib/lstat.c: Likewise.
73048         * lib/mkdir-p.c: Likewise.
73049         * lib/rmdir.c: Likewise.
73050         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73051         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73052         unless mkdir isn't declared, to speed up 'configure'.
73053         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73054         would define all the S_* symbols.
73055         * modules/canonicalize (Depends-on):
73056         Depend on sys_stat, not stat-macros.
73057         * modules/chown: Likewise.
73058         * modules/euidaccess: Likewise.
73059         * modules/filemode: Likewise.
73060         * modules/file-type: Likewise.
73061         * modules/glob: Likewise.
73062         * modules/isapipe: Likewise.
73063         * modules/lchown: Likewise.
73064         * modules/lstat: Likewise.
73065         * modules/mkancesdirs: Likewise.
73066         * modules/rmdir: Likewise.
73067         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73068         * modules/modechange: Likewise.
73069         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73070         (configure.ac): Remove gl_STAT_MACROS.
73071         * modules/sys_stat (Depends-on): Remove stat-macros.
73072
73073 2006-10-27  Bruno Haible  <bruno@clisp.org>
73074
73075         * m4/signed.m4: Remove file.
73076         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73077         invocation.
73078         * modules/vasnprintf (Files): Remove m4/signed.m4.
73079
73080 2006-10-27  Bruno Haible  <bruno@clisp.org>
73081
73082         Update to GNU gettext 0.16.
73083         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73084         m4/inttypes-h.m4, m4/signed.m4.
73085         * m4/gettext.m4: Update to GNU gettext 0.16.
73086         * m4/intl.m4: New file, from GNU gettext.
73087         * m4/intldir.m4: New file, from GNU gettext.
73088         * config/srclist.txt: Update
73089
73090 2006-10-27  Eric Blake  <ebb9@byu.net>
73091
73092         * MODULES.html.sh: Document tempname.
73093         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73094         dependencies.
73095         (Files): Move lib/tempname.c...
73096         * modules/tempname: ...to this new module.
73097         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73098         (gl_PREREQ_TEMPNAME): Move...
73099         * m4/tempname.m4: ...to this new file.
73100         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73101         * modules/sys_stat (Depends-on): Add stat-macros.
73102         * lib/stat_.h (includes): Pick up stat macros.
73103         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73104         if stat macros are broken.
73105         * lib/tempname.c (includes): No need to include "stat-macros.h".
73106         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73107         (direxists, __path_search) [!_LIBC]: Don't compile these in
73108         gnulib; the tmpdir module covers that.
73109         * lib/tempname.h: New file.
73110
73111 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73112
73113         * COPYING: Explain how gnulib-tool converts licence headers.
73114         Almost all wording by Eric Blake.
73115
73116 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73117
73118         * lib/mbchar.h (is_basic_table): Make read-only.
73119         * lib/mbchar.c (is_basic_table): Likewise.
73120         Reported by John Darrington.
73121
73122 2006-10-25  Bruno Haible  <bruno@clisp.org>
73123
73124         * lib/progname.h (set_program_name): Undefine before defining.
73125
73126 2006-10-25  Bruno Haible  <bruno@clisp.org>
73127
73128         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73129         false for non-gcc C++ compilers.
73130         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73131
73132 2006-10-24  Bruno Haible  <bruno@clisp.org>
73133
73134         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73135         iconv implementations like Irix iconv.
73136
73137 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73138
73139         * modules/vararrays: New file.
73140         * m4/vararrays.m4: New file, taken from diffutils.
73141         * MODULES.html.sh: New module vararrays.
73142
73143 2006-10-24  Karl Berry  <karl@gnu.org>
73144
73145         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73146         Don't call GNU Unix.
73147
73148 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73149
73150         * users.txt: Add Libtool.
73151
73152         Sync from Libtool:
73153
73154         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73155
73156         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73157         to gnulib's policy of including config.h unconditionally.
73158
73159 2006-10-24  Bruno Haible  <bruno@clisp.org>
73160
73161         * modules/wcwidth (Files): Add m4/wint_t.m4.
73162         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73163         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73164
73165 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73166
73167         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73168         to pacify GCC with some -W flags enabled.  Problem reported by
73169         Bruno Haible.
73170
73171 2006-10-24  Jim Meyering  <jim@meyering.net>
73172
73173         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73174         Reported by Karl Berry.
73175
73176 2006-10-23  Bruno Haible  <bruno@clisp.org>
73177
73178         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73179
73180 2006-10-24  Bruno Haible  <bruno@clisp.org>
73181
73182         * lib/gl_list.h: Use C comment style, not C++ comment style.
73183
73184 2006-10-23  Eric Blake  <ebb9@byu.net>
73185
73186         * lib/getaddrinfo.c (includes): Add missing include.
73187
73188 2006-10-23  Bruno Haible  <bruno@clisp.org>
73189             Paul Eggert  <eggert@cs.ucla.edu>
73190
73191         Ability to rename obstack_free.
73192         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73193         obstack_free.
73194         (obstack_free): Invoke the __obstack_free macro.
73195         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73196
73197 2006-10-23  Bruno Haible  <bruno@clisp.org>
73198             Paul Eggert  <eggert@cs.ucla.edu>
73199
73200         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73201         __argc, __argv from the declaration. (They are defined as macros on
73202         mingw.)
73203
73204 2006-10-22  Bruno Haible  <bruno@clisp.org>
73205
73206         * doc/gnulib-intro.texi: New file.
73207         * doc/gnulib.texi: Include it.
73208
73209 2006-10-21  Bruno Haible  <bruno@clisp.org>
73210
73211         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73212         "Introduction", "Miscellanous Notes", "Particular Modules".
73213
73214 2006-10-21  Bruno Haible  <bruno@clisp.org>
73215
73216         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73217         Change mostlyclean-local rule to avoid sh syntax error from bash
73218         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73219
73220 2006-10-23  Jim Meyering  <jim@meyering.net>
73221
73222         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73223         in place of snprintf.
73224
73225         * modules/inttostr (Files): Add lib/uinttostr.c.
73226         * lib/uinttostr.c (inttostr): New file/function.
73227         * lib/inttostr.h (uinttostr): Declare.
73228         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73229         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73230         Add uinttostr.
73231         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73232
73233 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73234
73235         * lib/canonicalize.c (ELOOP): Define if not already defined.
73236         Problem reported by Bruno Haible in
73237         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73238
73239 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73240
73241         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73242         Problem reported by Perry Smith and Ville Laurikari.
73243
73244         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73245         uses.
73246
73247 2006-10-19  Bruno Haible  <bruno@clisp.org>
73248
73249         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73250         for mingw.
73251
73252 2006-10-19  Bruno Haible  <bruno@clisp.org>
73253
73254         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
73255         Needed for mingw.
73256
73257 2006-10-19  Bruno Haible  <bruno@clisp.org>
73258
73259         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
73260
73261 2006-10-19  Bruno Haible  <bruno@clisp.org>
73262
73263         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
73264         it.
73265
73266 2006-10-19  Bruno Haible  <bruno@clisp.org>
73267
73268         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73269         invocation.
73270
73271 2006-10-19  Bruno Haible  <bruno@clisp.org>
73272
73273         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73274         mountlist by default.
73275
73276 2006-10-16  Bruno Haible  <bruno@clisp.org>
73277
73278         * lib/c-strstr.c: Include c-strstr.h.
73279
73280 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73281
73282         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73283         in a slash.
73284
73285 2006-10-18  Bruno Haible  <bruno@clisp.org>
73286
73287         * lib/lock.h [C++]: Wrap definitions in extern "C".
73288
73289 2006-10-18  Bruno Haible  <bruno@clisp.org>
73290
73291         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73292         gl_LIBOBJS list.
73293
73294 2006-10-18  Bruno Haible  <bruno@clisp.org>
73295
73296         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73297
73298 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73299
73300         * lib/xstrtol.h: Include gettext.h.
73301         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73302         Problem reported by Eric Blake.
73303         * modules/xstrtol (Depends-on): Add gettext-h.
73304
73305 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73306
73307         * lib/strftime.c (advance): New macro.
73308         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73309         incomplete type, so you can't add 0 to it.  Problem and patch
73310         reported by Eelco Dolstra for dietlibc.
73311
73312 2006-10-18  Jim Meyering  <jim@meyering.net>
73313
73314         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73315         type for a local, and rename it: s/up/user_proc/.
73316
73317 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73318
73319         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73320         READ_UTMP_USER_PROCESS.
73321         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73322
73323 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73324
73325         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73326         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73327
73328 2006-10-17  Eric Blake  <ebb9@byu.net>
73329
73330         * lib/sigprocmask.c (sigprocmask): Fix typo.
73331
73332         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
73333
73334         * modules/clean-temp (Makefile.am): Don't add to make output...
73335         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
73336         config.h.
73337
73338 2006-10-17  Bruno Haible  <bruno@clisp.org>
73339
73340         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
73341         differently if DEFAULT_TEXT_DOMAIN is set.
73342
73343 2006-10-16  Bruno Haible  <bruno@clisp.org>
73344
73345         * lib/clean-temp.c: Include fwriteerror.h.
73346
73347 2006-10-16  Bruno Haible  <bruno@clisp.org>
73348
73349         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
73350
73351 2006-10-16  Bruno Haible  <bruno@clisp.org>
73352
73353         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
73354         * lib/sigprocmask.h: Include <sys/types.h>.
73355         (sigset_t): Use the system's definition if present.
73356
73357 2006-10-17  Eric Blake  <ebb9@byu.net>
73358
73359         * lib/xvasprintf.c (includes): Assume config.h.
73360         * lib/xasprintf.c (includes): Likewise.
73361
73362 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73363
73364         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
73365         at least as wide as intmax_t.
73366
73367 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
73368
73369         (Imported from Automake.)
73370         * build-aux/gnupload: Update to version 1.1 of directive file.
73371
73372 2006-10-16  Eric Blake  <ebb9@byu.net>
73373
73374         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
73375         match Automake 1.10a.
73376
73377 2006-10-14  Bruno Haible  <bruno@clisp.org>
73378
73379         * modules/sigprocmask: New file.
73380         * lib/sigprocmask.h: New file.
73381         * lib/sigprocmask.c: New file.
73382         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
73383         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
73384         request sigprocmask.o.
73385         (gl_PREREQ_SIGPROCMASK): New macro.
73386         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73387         (Depends-on): Add sigprocmask.
73388         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73389         gt_SIGNALBLOCKING. Test for 'raise' only once.
73390         * lib/fatal-signal.c: Include sigprocmask.h.
73391         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73392         unblock_fatal_signals): Define always.
73393         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73394         sigprocmask.
73395
73396 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73397
73398         Sync from Automake.
73399         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73400         which incorrectly sets the mode of an existing destination
73401         directory.  In some cases the unpatched install-sh could do the
73402         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73403         system.  We hope this is rare in practice, but it's clearly worth
73404         fixing.  Problem reported by Alex Unleashed in
73405         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
73406         Also, don't bother to check for -m bugs unless we're using -m;
73407         suggested by Stepan Kasal.
73408
73409 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73410
73411         Sync from Automake.
73412         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
73413         `-c' flag, so they appear at the same position as in %FASTDEP%
73414         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
73415         which ignores unknown options only after the first non-option.
73416         Bug report against M4 by Nelson H. F. Beebe.
73417
73418 2006-10-13  Jim Meyering  <jim@meyering.net>
73419
73420         Fix a bug in yesterday's change.
73421         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
73422         p->fts_statp->st_dev would be used uninitialized.
73423         Ensures that we always call fts_stat on the very first entry.
73424         Miklos Szeredi reported that find -xdev stopped working.
73425
73426 2006-10-12  Bruno Haible  <bruno@clisp.org>
73427
73428         * gnulib-tool (func_get_automake_snippet): Append an automatically
73429         computed EXTRA_DIST augmentation.
73430         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73431         * modules/alloca-opt (Makefile.am): Likewise.
73432         * modules/allocsa (Makefile.am): Likewise.
73433         * modules/arcfour (Makefile.am): Likewise.
73434         * modules/arctwo (Makefile.am): Likewise.
73435         * modules/argmatch (Makefile.am): Likewise.
73436         * modules/argz (Makefile.am): Likewise.
73437         * modules/atexit (Makefile.am): Likewise.
73438         * modules/backupfile (Makefile.am): Likewise.
73439         * modules/byteswap (Makefile.am): Likewise.
73440         * modules/c-strtod (Makefile.am): Likewise.
73441         * modules/c-strtold (Makefile.am): Likewise.
73442         * modules/calloc (Makefile.am): Likewise.
73443         * modules/canon-host (Makefile.am): Likewise.
73444         * modules/canonicalize (Makefile.am): Likewise.
73445         * modules/chdir-long (Makefile.am): Likewise.
73446         * modules/chdir-safer (Makefile.am): Likewise.
73447         * modules/check-version (Makefile.am): Likewise.
73448         * modules/chown (Makefile.am): Likewise.
73449         * modules/cloexec (Makefile.am): Likewise.
73450         * modules/close-stream (Makefile.am): Likewise.
73451         * modules/closeout (Makefile.am): Likewise.
73452         * modules/crc (Makefile.am): Likewise.
73453         * modules/csharpexec (Makefile.am): Likewise.
73454         * modules/cycle-check (Makefile.am): Likewise.
73455         * modules/des (Makefile.am): Likewise.
73456         * modules/dev-ino (Makefile.am): Likewise.
73457         * modules/dirfd (Makefile.am): Likewise.
73458         * modules/dirname (Makefile.am): Likewise.
73459         * modules/dup2 (Makefile.am): Likewise.
73460         * modules/eealloc (Makefile.am): Likewise.
73461         * modules/error (Makefile.am): Likewise.
73462         * modules/euidaccess (Makefile.am): Likewise.
73463         * modules/exclude (Makefile.am): Likewise.
73464         * modules/exitfail (Makefile.am): Likewise.
73465         * modules/fcntl-safer (Makefile.am): Likewise.
73466         * modules/fcntl (Makefile.am): Likewise.
73467         * modules/file-type (Makefile.am): Likewise.
73468         * modules/fileblocks (Makefile.am): Likewise.
73469         * modules/filemode (Makefile.am): Likewise.
73470         * modules/filenamecat (Makefile.am): Likewise.
73471         * modules/fnmatch (Makefile.am): Likewise.
73472         * modules/fopen-safer (Makefile.am): Likewise.
73473         * modules/fpending (Makefile.am): Likewise.
73474         * modules/fprintftime (Makefile.am): Likewise.
73475         * modules/free (Makefile.am): Likewise.
73476         * modules/fsusage (Makefile.am): Likewise.
73477         * modules/ftruncate (Makefile.am): Likewise.
73478         * modules/fts (Makefile.am): Likewise.
73479         * modules/gc-arcfour (Makefile.am): Likewise.
73480         * modules/gc-des (Makefile.am): Likewise.
73481         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73482         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73483         * modules/gc-md4 (Makefile.am): Likewise.
73484         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73485         * modules/gc-sha1 (Makefile.am): Likewise.
73486         * modules/gc (Makefile.am): Likewise.
73487         * modules/getaddrinfo (Makefile.am): Likewise.
73488         * modules/getcwd (Makefile.am): Likewise.
73489         * modules/getdelim (Makefile.am): Likewise.
73490         * modules/getdomainname (Makefile.am): Likewise.
73491         * modules/getgroups (Makefile.am): Likewise.
73492         * modules/gethostname (Makefile.am): Likewise.
73493         * modules/gethrxtime (Makefile.am): Likewise.
73494         * modules/getline (Makefile.am): Likewise.
73495         * modules/getloadavg (Makefile.am): Likewise.
73496         * modules/getlogin_r (Makefile.am): Likewise.
73497         * modules/getndelim2 (Makefile.am): Likewise.
73498         * modules/getopt (Makefile.am): Likewise.
73499         * modules/getpagesize (Makefile.am): Likewise.
73500         * modules/getpass-gnu (Makefile.am): Likewise.
73501         * modules/getpass (Makefile.am): Likewise.
73502         * modules/getsubopt (Makefile.am): Likewise.
73503         * modules/gettime (Makefile.am): Likewise.
73504         * modules/gettimeofday (Makefile.am): Likewise.
73505         * modules/getugroups (Makefile.am): Likewise.
73506         * modules/getusershell (Makefile.am): Likewise.
73507         * modules/glob (Makefile.am): Likewise.
73508         * modules/group-member (Makefile.am): Likewise.
73509         * modules/hard-locale (Makefile.am): Likewise.
73510         * modules/hash (Makefile.am): Likewise.
73511         * modules/hmac-md5 (Makefile.am): Likewise.
73512         * modules/hmac-sha1 (Makefile.am): Likewise.
73513         * modules/human (Makefile.am): Likewise.
73514         * modules/idcache (Makefile.am): Likewise.
73515         * modules/imaxabs (Makefile.am): Likewise.
73516         * modules/imaxdiv (Makefile.am): Likewise.
73517         * modules/inet_ntop (Makefile.am): Likewise.
73518         * modules/inet_pton (Makefile.am): Likewise.
73519         * modules/intprops (Makefile.am): Likewise.
73520         * modules/inttostr (Makefile.am): Likewise.
73521         * modules/inttypes (Makefile.am): Likewise.
73522         * modules/isapipe (Makefile.am): Likewise.
73523         * modules/javaversion (Makefile.am): Likewise.
73524         * modules/lchmod (Makefile.am): Likewise.
73525         * modules/lchown (Makefile.am): Likewise.
73526         * modules/localcharset (Makefile.am): Likewise.
73527         * modules/long-options (Makefile.am): Likewise.
73528         * modules/lstat (Makefile.am): Likewise.
73529         * modules/malloc (Makefile.am): Likewise.
73530         * modules/mathl (Makefile.am): Likewise.
73531         * modules/mbchar (Makefile.am): Likewise.
73532         * modules/md2 (Makefile.am): Likewise.
73533         * modules/md4 (Makefile.am): Likewise.
73534         * modules/md5 (Makefile.am): Likewise.
73535         * modules/memcasecmp (Makefile.am): Likewise.
73536         * modules/memchr (Makefile.am): Likewise.
73537         * modules/memcmp (Makefile.am): Likewise.
73538         * modules/memcoll (Makefile.am): Likewise.
73539         * modules/memcpy (Makefile.am): Likewise.
73540         * modules/memmem (Makefile.am): Likewise.
73541         * modules/memmove (Makefile.am): Likewise.
73542         * modules/mempcpy (Makefile.am): Likewise.
73543         * modules/memrchr (Makefile.am): Likewise.
73544         * modules/memset (Makefile.am): Likewise.
73545         * modules/memxor (Makefile.am): Likewise.
73546         * modules/mkancesdirs (Makefile.am): Likewise.
73547         * modules/mkdir-p (Makefile.am): Likewise.
73548         * modules/mkdir (Makefile.am): Likewise.
73549         * modules/mkdtemp (Makefile.am): Likewise.
73550         * modules/mkstemp (Makefile.am): Likewise.
73551         * modules/mktime (Makefile.am): Likewise.
73552         * modules/modechange (Makefile.am): Likewise.
73553         * modules/mountlist (Makefile.am): Likewise.
73554         * modules/nanosleep (Makefile.am): Likewise.
73555         * modules/obstack (Makefile.am): Likewise.
73556         * modules/openat (Makefile.am): Likewise.
73557         * modules/pagealign_alloc (Makefile.am): Likewise.
73558         * modules/pathmax (Makefile.am): Likewise.
73559         * modules/physmem (Makefile.am): Likewise.
73560         * modules/poll (Makefile.am): Likewise.
73561         * modules/posixtm (Makefile.am): Likewise.
73562         * modules/posixver (Makefile.am): Likewise.
73563         * modules/putenv (Makefile.am): Likewise.
73564         * modules/quote (Makefile.am): Likewise.
73565         * modules/quotearg (Makefile.am): Likewise.
73566         * modules/raise (Makefile.am): Likewise.
73567         * modules/read-file (Makefile.am): Likewise.
73568         * modules/readline (Makefile.am): Likewise.
73569         * modules/readlink (Makefile.am): Likewise.
73570         * modules/readtokens (Makefile.am): Likewise.
73571         * modules/readutmp (Makefile.am): Likewise.
73572         * modules/realloc (Makefile.am): Likewise.
73573         * modules/regex (Makefile.am): Likewise.
73574         * modules/rename-dest-slash (Makefile.am): Likewise.
73575         * modules/rename (Makefile.am): Likewise.
73576         * modules/rijndael (Makefile.am): Likewise.
73577         * modules/rmdir (Makefile.am): Likewise.
73578         * modules/rpmatch (Makefile.am): Likewise.
73579         * modules/safe-read (Makefile.am): Likewise.
73580         * modules/safe-write (Makefile.am): Likewise.
73581         * modules/same-inode (Makefile.am): Likewise.
73582         * modules/same (Makefile.am): Likewise.
73583         * modules/save-cwd (Makefile.am): Likewise.
73584         * modules/savedir (Makefile.am): Likewise.
73585         * modules/setenv (Makefile.am): Likewise.
73586         * modules/settime (Makefile.am): Likewise.
73587         * modules/sha1 (Makefile.am): Likewise.
73588         * modules/sig2str (Makefile.am): Likewise.
73589         * modules/snprintf (Makefile.am): Likewise.
73590         * modules/stat-macros (Makefile.am): Likewise.
73591         * modules/stat-time (Makefile.am): Likewise.
73592         * modules/stdbool (Makefile.am): Likewise.
73593         * modules/stdint (Makefile.am): Likewise.
73594         * modules/stdlib-safer (Makefile.am): Likewise.
73595         * modules/stpcpy (Makefile.am): Likewise.
73596         * modules/stpncpy (Makefile.am): Likewise.
73597         * modules/strcase (Makefile.am): Likewise.
73598         * modules/strcasestr (Makefile.am): Likewise.
73599         * modules/strchrnul (Makefile.am): Likewise.
73600         * modules/strcspn (Makefile.am): Likewise.
73601         * modules/strdup (Makefile.am): Likewise.
73602         * modules/strerror (Makefile.am): Likewise.
73603         * modules/strftime (Makefile.am): Likewise.
73604         * modules/strndup (Makefile.am): Likewise.
73605         * modules/strnlen (Makefile.am): Likewise.
73606         * modules/strpbrk (Makefile.am): Likewise.
73607         * modules/strsep (Makefile.am): Likewise.
73608         * modules/strstr (Makefile.am): Likewise.
73609         * modules/strtod (Makefile.am): Likewise.
73610         * modules/strtoimax (Makefile.am): Likewise.
73611         * modules/strtok_r (Makefile.am): Likewise.
73612         * modules/strtol (Makefile.am): Likewise.
73613         * modules/strtoll (Makefile.am): Likewise.
73614         * modules/strtoul (Makefile.am): Likewise.
73615         * modules/strtoull (Makefile.am): Likewise.
73616         * modules/strtoumax (Makefile.am): Likewise.
73617         * modules/strverscmp (Makefile.am): Likewise.
73618         * modules/sys_socket (Makefile.am): Likewise.
73619         * modules/sys_stat (Makefile.am): Likewise.
73620         * modules/sysexits (Makefile.am): Likewise.
73621         * modules/time_r (Makefile.am): Likewise.
73622         * modules/timegm (Makefile.am): Likewise.
73623         * modules/timespec (Makefile.am): Likewise.
73624         * modules/tmpfile-safer (Makefile.am): Likewise.
73625         * modules/trim (Makefile.am): Likewise.
73626         * modules/unistd-safer (Makefile.am): Likewise.
73627         * modules/unlinkdir (Makefile.am): Likewise.
73628         * modules/unlocked-io (Makefile.am): Likewise.
73629         * modules/userspec (Makefile.am): Likewise.
73630         * modules/utime (Makefile.am): Likewise.
73631         * modules/utimecmp (Makefile.am): Likewise.
73632         * modules/utimens (Makefile.am): Likewise.
73633         * modules/vasnprintf (Makefile.am): Likewise.
73634         * modules/vasprintf (Makefile.am): Likewise.
73635         * modules/vsnprintf (Makefile.am): Likewise.
73636         * modules/xalloc (Makefile.am): Likewise.
73637         * modules/xgetcwd (Makefile.am): Likewise.
73638         * modules/xnanosleep (Makefile.am): Likewise.
73639         * modules/xreadlink (Makefile.am): Likewise.
73640         * modules/xstrtod (Makefile.am): Likewise.
73641         * modules/xstrtol (Makefile.am): Likewise.
73642         * modules/xstrtold (Makefile.am): Likewise.
73643         * modules/yesno (Makefile.am): Likewise.
73644         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73645
73646 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73647
73648         * modules/error (Makefile.am): Distribute files through
73649         EXTRA_DIST, not lib_SOURCES.
73650
73651 2006-10-12  Eric Blake  <ebb9@byu.net>
73652
73653         * modules/error (Makefile.am): Distribute files in /lib.
73654         * modules/obstack (Makefile.am): Likewise.
73655
73656 2006-10-12  Bruno Haible  <bruno@clisp.org>
73657
73658         * modules/acl (Makefile.am): Distribute all files in lib/ through
73659         EXTRA_DIST.
73660         * modules/arcfour (Makefile.am): Likewise.
73661         * modules/arctwo (Makefile.am): Likewise.
73662         * modules/argmatch (Makefile.am): Likewise.
73663         * modules/argz (Makefile.am): Likewise.
73664         * modules/atexit (Makefile.am): Likewise.
73665         * modules/backupfile (Makefile.am): Likewise.
73666         * modules/c-strtod (Makefile.am): Likewise.
73667         * modules/c-strtold (Makefile.am): Likewise.
73668         * modules/calloc (Makefile.am): Likewise.
73669         * modules/canon-host (Makefile.am): Likewise.
73670         * modules/canonicalize (Makefile.am): Likewise.
73671         * modules/chdir-long (Makefile.am): Likewise.
73672         * modules/chdir-safer (Makefile.am): Likewise.
73673         * modules/check-version (Makefile.am): Likewise.
73674         * modules/chown (Makefile.am): Likewise.
73675         * modules/cloexec (Makefile.am): Likewise.
73676         * modules/close-stream (Makefile.am): Likewise.
73677         * modules/closeout (Makefile.am): Likewise.
73678         * modules/crc (Makefile.am): Likewise.
73679         * modules/cycle-check (Makefile.am): Likewise.
73680         * modules/des (Makefile.am): Likewise.
73681         * modules/dirfd (Makefile.am): Likewise.
73682         * modules/dirname (Makefile.am): Likewise.
73683         * modules/dup2 (Makefile.am): Likewise.
73684         * modules/euidaccess (Makefile.am): Likewise.
73685         * modules/exclude (Makefile.am): Likewise.
73686         * modules/exitfail (Makefile.am): Likewise.
73687         * modules/fcntl-safer (Makefile.am): Likewise.
73688         * modules/file-type (Makefile.am): Likewise.
73689         * modules/fileblocks (Makefile.am): Likewise.
73690         * modules/filemode (Makefile.am): Likewise.
73691         * modules/filenamecat (Makefile.am): Likewise.
73692         * modules/fnmatch (Makefile.am): Likewise.
73693         * modules/fopen-safer (Makefile.am): Likewise.
73694         * modules/fpending (Makefile.am): Likewise.
73695         * modules/fprintftime (Makefile.am): Likewise.
73696         * modules/free (Makefile.am): Likewise.
73697         * modules/fsusage (Makefile.am): Likewise.
73698         * modules/ftruncate (Makefile.am): Likewise.
73699         * modules/fts (Makefile.am): Likewise.
73700         * modules/gc (Makefile.am): Likewise.
73701         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73702         * modules/getaddrinfo (Makefile.am): Likewise.
73703         * modules/getcwd (Makefile.am): Likewise.
73704         * modules/getdelim (Makefile.am): Likewise.
73705         * modules/getdomainname (Makefile.am): Likewise.
73706         * modules/getgroups (Makefile.am): Likewise.
73707         * modules/gethostname (Makefile.am): Likewise.
73708         * modules/gethrxtime (Makefile.am): Likewise.
73709         * modules/getline (Makefile.am): Likewise.
73710         * modules/getloadavg (Makefile.am): Likewise.
73711         * modules/getlogin_r (Makefile.am): Likewise.
73712         * modules/getopt (Makefile.am): Likewise.
73713         * modules/getpass (Makefile.am): Likewise.
73714         * modules/getpass-gnu (Makefile.am): Likewise.
73715         * modules/getsubopt (Makefile.am): Likewise.
73716         * modules/gettime (Makefile.am): Likewise.
73717         * modules/gettimeofday (Makefile.am): Likewise.
73718         * modules/getugroups (Makefile.am): Likewise.
73719         * modules/getusershell (Makefile.am): Likewise.
73720         * modules/glob (Makefile.am): Likewise.
73721         * modules/group-member (Makefile.am): Likewise.
73722         * modules/hard-locale (Makefile.am): Likewise.
73723         * modules/hash (Makefile.am): Likewise.
73724         * modules/hmac-md5 (Makefile.am): Likewise.
73725         * modules/hmac-sha1 (Makefile.am): Likewise.
73726         * modules/human (Makefile.am): Likewise.
73727         * modules/idcache (Makefile.am): Likewise.
73728         * modules/imaxabs (Makefile.am): Likewise.
73729         * modules/imaxdiv (Makefile.am): Likewise.
73730         * modules/inet_ntop (Makefile.am): Likewise.
73731         * modules/inet_pton (Makefile.am): Likewise.
73732         * modules/inttostr (Makefile.am): Likewise.
73733         * modules/isapipe (Makefile.am): Likewise.
73734         * modules/lchown (Makefile.am): Likewise.
73735         * modules/long-options (Makefile.am): Likewise.
73736         * modules/lstat (Makefile.am): Likewise.
73737         * modules/malloc (Makefile.am): Likewise.
73738         * modules/mathl (Makefile.am): Likewise.
73739         * modules/mbchar (Makefile.am): Likewise.
73740         * modules/md2 (Makefile.am): Likewise.
73741         * modules/md4 (Makefile.am): Likewise.
73742         * modules/md5 (Makefile.am): Likewise.
73743         * modules/memcasecmp (Makefile.am): Likewise.
73744         * modules/memchr (Makefile.am): Likewise.
73745         * modules/memcmp (Makefile.am): Likewise.
73746         * modules/memcoll (Makefile.am): Likewise.
73747         * modules/memcpy (Makefile.am): Likewise.
73748         * modules/memmem (Makefile.am): Likewise.
73749         * modules/memmove (Makefile.am): Likewise.
73750         * modules/mempcpy (Makefile.am): Likewise.
73751         * modules/memrchr (Makefile.am): Likewise.
73752         * modules/memset (Makefile.am): Likewise.
73753         * modules/memxor (Makefile.am): Likewise.
73754         * modules/mkancesdirs (Makefile.am): Likewise.
73755         * modules/mkdir (Makefile.am): Likewise.
73756         * modules/mkdir-p (Makefile.am): Likewise.
73757         * modules/mkdtemp (Makefile.am): Likewise.
73758         * modules/mkstemp (Makefile.am): Likewise.
73759         * modules/mktime (Makefile.am): Likewise.
73760         * modules/modechange (Makefile.am): Likewise.
73761         * modules/mountlist (Makefile.am): Likewise.
73762         * modules/nanosleep (Makefile.am): Likewise.
73763         * modules/openat (Makefile.am): Likewise.
73764         * modules/pagealign_alloc (Makefile.am): Likewise.
73765         * modules/physmem (Makefile.am): Likewise.
73766         * modules/poll (Makefile.am): Likewise.
73767         * modules/posixtm (Makefile.am): Likewise.
73768         * modules/posixver (Makefile.am): Likewise.
73769         * modules/putenv (Makefile.am): Likewise.
73770         * modules/quote (Makefile.am): Likewise.
73771         * modules/quotearg (Makefile.am): Likewise.
73772         * modules/raise (Makefile.am): Likewise.
73773         * modules/read-file (Makefile.am): Likewise.
73774         * modules/readline (Makefile.am): Likewise.
73775         * modules/readlink (Makefile.am): Likewise.
73776         * modules/readtokens (Makefile.am): Likewise.
73777         * modules/readutmp (Makefile.am): Likewise.
73778         * modules/realloc (Makefile.am): Likewise.
73779         * modules/regex (Makefile.am): Likewise.
73780         * modules/rename (Makefile.am): Likewise.
73781         * modules/rename-dest-slash (Makefile.am): Likewise.
73782         * modules/rijndael (Makefile.am): Likewise.
73783         * modules/rmdir (Makefile.am): Likewise.
73784         * modules/rpmatch (Makefile.am): Likewise.
73785         * modules/safe-read (Makefile.am): Likewise.
73786         * modules/safe-write (Makefile.am): Likewise.
73787         * modules/same (Makefile.am): Likewise.
73788         * modules/save-cwd (Makefile.am): Likewise.
73789         * modules/savedir (Makefile.am): Likewise.
73790         * modules/setenv (Makefile.am): Likewise.
73791         * modules/settime (Makefile.am): Likewise.
73792         * modules/sha1 (Makefile.am): Likewise.
73793         * modules/sig2str (Makefile.am): Likewise.
73794         * modules/snprintf (Makefile.am): Likewise.
73795         * modules/stdlib-safer (Makefile.am): Likewise.
73796         * modules/stpcpy (Makefile.am): Likewise.
73797         * modules/stpncpy (Makefile.am): Likewise.
73798         * modules/strcase (Makefile.am): Likewise.
73799         * modules/strcasestr (Makefile.am): Likewise.
73800         * modules/strchrnul (Makefile.am): Likewise.
73801         * modules/strcspn (Makefile.am): Likewise.
73802         * modules/strdup (Makefile.am): Likewise.
73803         * modules/strerror (Makefile.am): Likewise.
73804         * modules/strftime (Makefile.am): Likewise.
73805         * modules/strndup (Makefile.am): Likewise.
73806         * modules/strnlen (Makefile.am): Likewise.
73807         * modules/strpbrk (Makefile.am): Likewise.
73808         * modules/strsep (Makefile.am): Likewise.
73809         * modules/strstr (Makefile.am): Likewise.
73810         * modules/strtod (Makefile.am): Likewise.
73811         * modules/strtoimax (Makefile.am): Likewise.
73812         * modules/strtok_r (Makefile.am): Likewise.
73813         * modules/strtol (Makefile.am): Likewise.
73814         * modules/strtoll (Makefile.am): Likewise.
73815         * modules/strtoul (Makefile.am): Likewise.
73816         * modules/strtoull (Makefile.am): Likewise.
73817         * modules/strtoumax (Makefile.am): Likewise.
73818         * modules/strverscmp (Makefile.am): Likewise.
73819         * modules/time_r (Makefile.am): Likewise.
73820         * modules/timegm (Makefile.am): Likewise.
73821         * modules/tmpfile-safer (Makefile.am): Likewise.
73822         * modules/unistd-safer (Makefile.am): Likewise.
73823         * modules/unlinkdir (Makefile.am): Likewise.
73824         * modules/userspec (Makefile.am): Likewise.
73825         * modules/utime (Makefile.am): Likewise.
73826         * modules/utimecmp (Makefile.am): Likewise.
73827         * modules/utimens (Makefile.am): Likewise.
73828         * modules/vasnprintf (Makefile.am): Likewise.
73829         * modules/vasprintf (Makefile.am): Likewise.
73830         * modules/vsnprintf (Makefile.am): Likewise.
73831         * modules/xalloc (Makefile.am): Likewise.
73832         * modules/xgetcwd (Makefile.am): Likewise.
73833         * modules/xnanosleep (Makefile.am): Likewise.
73834         * modules/xreadlink (Makefile.am): Likewise.
73835         * modules/xstrtod (Makefile.am): Likewise.
73836         * modules/xstrtol (Makefile.am): Likewise.
73837         * modules/xstrtold (Makefile.am): Likewise.
73838         * modules/yesno (Makefile.am): Likewise.
73839
73840 2006-10-12  Jim Meyering  <jim@meyering.net>
73841
73842         * m4/getloadavg.m4: Revert the change below.
73843
73844         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73845         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73846         fail with a symlink, which is what coreutils' ./bootstrap now
73847         creates by default.
73848
73849 2006-10-12  Bruno Haible  <bruno@clisp.org>
73850
73851         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73852         mingw.
73853         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73854         MSVC and mingw explicitly.
73855
73856 2006-10-11  Simon Josefsson  <jas@extundo.com>
73857             Bruno Haible  <bruno@clisp.org>
73858
73859         Add support for multiple gnulib-tool invocations in the scope of a
73860         single configure.ac file.
73861         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73862         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73863         with the same contents as the _LIBADD variable.
73864         (func_emit_initmacro_start, func_emit_initmacro_end,
73865         func_emit_initmacro_done): New functions.
73866         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73867         gl_LIBOBJS and gl_LTLIBOBJS.
73868
73869 2006-10-11  Bruno Haible  <bruno@clisp.org>
73870
73871         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73872         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73873         autoreconf. Instead, invoke autopoint explicitly but move back the
73874         *.m4 files from gnulib.
73875
73876 2006-10-11  Bruno Haible  <bruno@clisp.org>
73877
73878         * gnulib-tool (func_usage): Make module names after --create-testdir
73879         optional.
73880         (func_create_testdir): If no module was specified, use nearly all
73881         modules.
73882
73883 2006-10-12  Jim Meyering  <jim@meyering.net>
73884
73885         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73886         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73887         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73888         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73889         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73890         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73891         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73892         (fts_set_stat_required): New function.
73893         (fts_open): Defer the calls to fts_stat, if possible or requested.
73894         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73895         into fts_stat itself.
73896         (fts_read): Perform any required (deferred) fts_stat call.
73897         (fts_build): Likewise, for the directory we're about to open and read.
73898         In the readdir loop, carefully decide whether each entry will require
73899         an eventual call to fts_stat, using dirent.d_type info if available.
73900         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73901         a command line argument into this function.  Update all callers.
73902         Map a return value of FTS_DOT to FTS_D for a command line argument.
73903         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73904         Thanks to Miklos Szeredi for his tenacity and for the initial
73905         bug report about "find" failing on a FUSE-based file system.
73906
73907         * lib/fts.c (fts_open): Use consistent indentation.
73908
73909 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73910
73911         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73912         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73913         reported by Jim Meyering.  All uses of cache variables renamed
73914         to match Autoconf's.
73915         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73916         the other one.
73917
73918         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73919         Fix misspelling in diagnostic.
73920
73921 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73922
73923         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73924         defined.  Problem reported by Matthew Woehlke.
73925
73926         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73927         Add support for Tandem NonStop R series.
73928         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73929         Use new macro.
73930
73931         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73932         (has_trailing_slash): Omit size arg; all callers changed.
73933         Omit 'inline', since it doesn't help performance and we'd
73934         need to configure it.
73935         Don't count //, ///, etc. as having a trailing slash.
73936         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73937         (rpl_rename_dest_slash): On failure, use rename's errno rather
73938         than (in some cases) an incorrect or junk errno.
73939         Simplify code by removing need to compute length; this does
73940         cause it to make two passes instead of one over the file name,
73941         but it's worth it.
73942
73943         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73944         change, since Autoconf's version may no longer be appropriate now
73945         that we are using CVS Autoconf's version.  Add support for Tandem.
73946
73947 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73948             Bruno Haible  <bruno@clisp.org>
73949
73950         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73951         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73952         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73953         gl_AC_TYPE_LONG_LONG.
73954
73955         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73956         instead of HAVE_LONG_LONG.
73957         * lib/printf-args.c (printf_fetchargs): Likewise.
73958         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73959         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73960         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73961         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73962         gl_AC_TYPE_LONG_LONG.
73963
73964 2006-10-11  Bruno Haible  <bruno@clisp.org>
73965
73966         * m4/longlong.m4: Add comments.
73967         * m4/ulonglong.m4: Likewise.
73968
73969 2006-10-10  Bruno Haible  <bruno@clisp.org>
73970
73971         Make it possible to #define stpcpy, strdup to aliases.
73972         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73973         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73974
73975 2006-10-10  Bruno Haible  <bruno@clisp.org>
73976
73977         Make it possible to #define gcd to an alias.
73978         * lib/gcd.c: Include config.h.
73979
73980 2006-10-10  Bruno Haible  <bruno@clisp.org>
73981
73982         Make it possible to #define c_isascii to an alias.
73983         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73984         defined. Undefine the macros before defining them, to avoid gcc
73985         warnings.
73986         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73987         define NO_C_CTYPE_MACROS early.
73988
73989 2006-10-10  Bruno Haible  <bruno@clisp.org>
73990
73991         Make it possible to #define set_program_name to an alias.
73992         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73993         ENABLE_RELOCATABLE early.
73994
73995 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73996
73997         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73998         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73999         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74000         More generally, don't assume that 64-bit signed int is available
74001         if unsigned int is, and vice versa.
74002         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74003         unsigned symbols, not on their signed counterparts.
74004         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74005         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74006         (UINT64_C, UINTMAX_C):
74007         Likewise.
74008         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74009         unsigned counterparts.
74010         (Have_long_long, Unsigned): New macros.
74011         (Int): Renamed from INT.
74012         (strtoimax): Use the new macros.
74013         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74014         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74015         * modules/inttypes (inttypes.h): Substitute
74016         HAVE_UNSIGNED_LONG_LONG_INT.
74017         * modules/stdint (stdint.h): Likewise.
74018         (Files): Add m4/ulonglong.m4.
74019
74020 2006-10-10  Bruno Haible  <bruno@clisp.org>
74021
74022         Fix a gcc -Wshadow warning.
74023         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74024         to 'bucket'.
74025         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74026         gl_linked_indexof_from_to): Likewise.
74027         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74028         Likewise.
74029         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74030         Likewise.
74031         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74032         Reported by Eric Blake.
74033
74034 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74035
74036         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74037         for NetBSD.  Problem reported by Bruno Haible.
74038
74039 2006-10-09  Jim Meyering  <jim@meyering.net>
74040
74041         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74042         Patch from Bruno Haible.
74043
74044 2006-10-09  Jim Meyering  <jim@meyering.net>
74045
74046         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74047         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74048         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74049
74050 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74051
74052         Don't include <config.h> twice; this doesn't work in some cases,
74053         e.g., when config.h has "#define intmax_t long long int" and
74054         we include <config.h>, <inttypes.h>, <config.h> in that order.
74055         Problem reported by Matthew Woehlke in:
74056         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74057         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74058         * lib/fts-cycle.c: Don't include config.h.
74059         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74060         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74061         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74062         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74063         inttypes.h.
74064         * lib/xstrtoumax.c: Likewise.
74065         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74066         __strtol and the like, so that this module is more like its siblings.
74067         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74068         Remove; no longer needed now that we assume gnulib inttypes.h.
74069
74070 2006-10-08  Bruno Haible  <bruno@clisp.org>
74071
74072         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74073         option.
74074
74075 2006-10-07  Jim Meyering  <jim@meyering.net>
74076
74077         * modules/inttypes (inttypes.h): Revert what seems to have been
74078         an inadvertent part of today's change: use "|", not "/" in the
74079         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74080
74081 2006-10-07  Bruno Haible  <bruno@clisp.org>
74082
74083         * modules/sublist: New file.
74084
74085 2006-10-07  Bruno Haible  <bruno@clisp.org>
74086
74087         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74088         * modules/argz (argz.h): Likewise.
74089         * modules/arpa_inet (arpa/inet.h): Likewise.
74090         * modules/byteswap (byteswap.h): Likewise.
74091         * modules/configmake (configmake.h): Likewise.
74092         * modules/fcntl (fcntl.h): Likewise.
74093         * modules/fnmatch (fnmatch.h): Likewise.
74094         * modules/getopt (getopt.h): Likewise.
74095         * modules/glob (glob.h): Likewise.
74096         * modules/inttypes (inttypes.h): Likewise.
74097         * modules/netinet_in (netinet/in.h): Likewise.
74098         * modules/poll (poll.h): Likewise.
74099         * modules/stdbool (stdbool.h): Likewise.
74100         * modules/stdint (stdint.h): Likewise.
74101         * modules/sys_select (sys/select.h): Likewise.
74102         * modules/sys_socket (sys/socket.h): Likewise.
74103         * modules/sys_stat (sys/stat.h): Likewise.
74104         * modules/sysexits (sysexits.h): Likewise.
74105         * modules/unistd (unistd.h): Likewise.
74106         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74107         Add a "DO NOT EDIT" comment to the generated file.
74108         (func_import): Likewise for gnulib-comp.m4.
74109
74110 2006-10-07  Bruno Haible  <bruno@clisp.org>
74111
74112         * lib/gl_sublist.h: New file.
74113         * lib/gl_sublist.c: New file.
74114
74115 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74116
74117         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74118         name (relative to the original working directory) and the file
74119         name component (relative to the temporary working directory).  All
74120         callers changed.
74121         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74122         * lib/mkdir-p.c (make_dir_parents): Likewise.
74123         * lib/mkdir-p.h (make_dir_parents): Likewise.
74124
74125 2006-10-06  Eric Blake  <ebb9@byu.net>
74126
74127         Define several macros for use by the clean-temp module.
74128         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74129         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74130         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74131
74132         * lib/clean-temp.h (close_stream_temp): New declaration.
74133         * lib/clean-temp.c (includes): Pull in headers according to what
74134         other modules are in use.
74135         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74136
74137 2006-10-06  Bruno Haible  <bruno@clisp.org>
74138
74139         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74140         instead of fopen, fwriteerror.
74141
74142 2006-10-06  Bruno Haible  <bruno@clisp.org>
74143
74144         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74145         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74146         int.
74147         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74148         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74149         Return an error indicator.
74150         Suggested by Eric Blake.
74151
74152 2006-10-06  Bruno Haible  <bruno@clisp.org>
74153
74154         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74155         Reported by Eric Blake.
74156
74157 2006-10-06  Bruno Haible  <bruno@clisp.org>
74158
74159         * modules/closeout (Description): Mention stderr too.
74160
74161 2006-10-06  Bruno Haible  <bruno@clisp.org>
74162         and Paul Eggert  <eggert@cs.ucla.edu>
74163
74164         * lib/closeout.c (close_stdout): Also close stderr.
74165         * lib/closeout.h: Update comment.
74166
74167 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74168
74169         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74170         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74171         * lib/dirchownmod.c: Include lchown.h.
74172         * lib/lchown.c: Don't include files that lchown.h now includes.
74173         Don't declare chown, since lchown.h now does that.
74174         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74175         (lchown): Define to rpl_chown if lchown is declared but
74176         does not exist.  Declare using a prototype if lchown is not
74177         declared.  Add a copyright notice.
74178         * lib/mkstemp.h: Include <unistd.h>.
74179         * lib/openat.c: Include lchown.h.
74180
74181         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74182         we now test for that separately.
74183         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74184         rather than O_NOFOLLOW, when testing whether it's possible to
74185         avoid a race condition reliably.
74186         * lib/savewd.c (savewd_chdir): Likewise.
74187
74188         Remove macros that are no longer needed now that stdint.h is
74189         reliable.
74190         * lib/fsusage.c (UINTMAX_MAX): Remove.
74191         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74192         * lib/utimecmp.c (SIZE_MAX): Remove.
74193
74194         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74195
74196         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74197         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74198         O_NOATIME works.
74199
74200 2006-10-05  Bruno Haible  <bruno@clisp.org>
74201
74202         * lib/gl_list.h (gl_sortedlist_search_from_to,
74203         gl_sortedlist_indexof_from_to): New declarations.
74204         (gl_list_implementation): New fields sortedlist_search_from_to,
74205         sortedlist_indexof_from_to.
74206         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74207         inline functions.
74208         * lib/gl_list.c (gl_sortedlist_search_from_to,
74209         gl_sortedlist_indexof_from_to): New functions.
74210         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74211         function.
74212         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74213         (gl_array_sortedlist_search_from_to): New function.
74214         (gl_array_list_implementation): Update.
74215         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74216         function.
74217         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74218         (gl_carray_sortedlist_search_from_to): New function.
74219         (gl_carray_list_implementation): Update.
74220         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74221         gl_linked_sortedlist_indexof_from_to): New functions.
74222         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74223         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74224         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74225         gl_tree_sortedlist_indexof_from_to): New functions.
74226         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74227         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74228         Update.
74229         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74230         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74231         Update.
74232
74233 2006-10-05  Bruno Haible  <bruno@clisp.org>
74234
74235         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74236         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74237         (struct gl_list_implementation): Add fields search_from_to,
74238         indexof_from_to. Remove fields search, indexof.
74239         (gl_list_search): Use the search_from_to method.
74240         (gl_list_search_from, gl_list_search_from_to): New functions.
74241         (gl_list_indexof): Use the indexof_from_to method.
74242         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74243         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74244         (gl_list_search_from, gl_list_search_from_to): New functions.
74245         (gl_list_indexof): Use the indexof_from_to method.
74246         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74247         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74248         gl_array_indexof. Add start_index, end_index arguments.
74249         (gl_array_search_from_to): Renamed from gl_array_search. Add
74250         start_index, end_index arguments.
74251         (gl_array_remove, gl_array_list_implementation): Update.
74252         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74253         gl_carray_indexof. Add start_index, end_index arguments.
74254         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
74255         start_index, end_index arguments.
74256         (gl_carray_remove, gl_carray_list_implementation): Update.
74257         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
74258         gl_linked_search. Add start_index, end_index arguments.
74259         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
74260         start_index, end_index arguments.
74261         (gl_linked_remove): Update.
74262         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74263         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74264         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
74265         field to 'size_t'.
74266         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74267         gl_tree_search. Add start_index, end_index arguments.
74268         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74269         start_index, end_index arguments.
74270         (gl_tree_remove): Update.
74271         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74272         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74273         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74274         function.
74275         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74276         gl_tree_search. Add start_index, end_index arguments.
74277         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74278         start_index, end_index arguments.
74279         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74280         Update.
74281         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74282
74283 2006-10-05  Bruno Haible  <bruno@clisp.org>
74284
74285         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74286
74287         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74288         fwriteerror_temp): New declarations.
74289         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74290         (descriptors): New variable.
74291         (cleanup): First, close the descriptors.
74292         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74293         fclose_temp, fwriteerror_temp): New functions.
74294
74295 2006-10-04  Jim Meyering  <jim@meyering.net>
74296
74297         * lib/fts.c (fts_open): Tiny comment change.
74298
74299 2006-10-04  Bruno Haible  <bruno@clisp.org>
74300
74301         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74302         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74303         gl_LOCK_BODY.
74304         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74305         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74306         gl_LOCK_EARLY_BODY.
74307         (gl_LOCK): Require gl_LOCK_BODY.
74308
74309 2006-10-04  Bruno Haible  <bruno@clisp.org>
74310
74311         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74312         (gl_oset_search_atleast): New declaration.
74313         (struct gl_oset_implementation): Add field 'search_atleast'.
74314         (gl_oset_search_atleast): New inline function.
74315         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74316         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74317         (gl_array_oset_implementation): Update.
74318         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74319         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74320         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74321
74322 2006-10-04  Bruno Haible  <bruno@clisp.org>
74323
74324         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74325
74326 2006-10-03  Bruno Haible  <bruno@clisp.org>
74327
74328         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
74329         from gl_avltreehash_list_implementation.
74330
74331 2006-10-03  Bruno Haible  <bruno@clisp.org>
74332
74333         * lib/gl_oset.c (gl_oset_add): Fix return type.
74334
74335 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
74336
74337         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
74338
74339 2006-10-02  Eric Blake  <ebb9@byu.net>
74340
74341         * modules/strnlen (Depends-on): Add extensions.
74342
74343 2006-10-02  Eric Blake  <ebb9@byu.net>
74344
74345         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
74346         definition in 2.60+.
74347
74348 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74349
74350         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
74351         checks.
74352
74353 2006-10-02  Bruno Haible  <bruno@clisp.org>
74354
74355         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
74356         to the AUTOMAKE_OPTIONS.
74357         Reported by Jim Meyering.
74358
74359 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74360
74361         Work around bug in Solaris 10 /proc file system:
74362         /proc/self/fd/NNN/.. isn't the parent directory of
74363         the directory whose file descriptor is NNN.  This needs to
74364         be worked around at run time, not compile time, since a
74365         program might be built on Solaris 8, where things work, and
74366         run on Solaris 10.
74367         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
74368         to use the following interface instead:
74369         (OPENAT_BUFFER_SIZE): New macro.
74370         (openat_proc_name): New function.
74371         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
74372         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
74373         Likewise.
74374         * lib/openat-proc.c: New file.
74375         * modules/openat (Files): Add lib/openat-proc.c.
74376         (Depends-on): Add same-inode, stdbool.
74377         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
74378
74379 2006-09-29  Bruno Haible  <bruno@clisp.org>
74380
74381         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
74382         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
74383         argument. Set stdout_closed before testing for ferror, not after.
74384         (fwriteerror, fwriteerror_no_ebadf): New functions.
74385
74386 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74387
74388         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74389
74390 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74391
74392         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74393         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74394
74395 2006-09-28  Jim Meyering  <jim@meyering.net>
74396
74397         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74398         Include <unistd.h>.
74399
74400 2006-09-28  Bruno Haible  <bruno@clisp.org>
74401
74402         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74403         * modules/linkedhash-list (Depends-on): Likewise.
74404         * modules/rbtreehash-list (Depends-on): Likewise.
74405
74406 2006-09-28  Bruno Haible  <bruno@clisp.org>
74407
74408         * lib/strndup.h: Simplify the redefinition of strndup.
74409         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
74410         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
74411
74412 2006-09-28  Bruno Haible  <bruno@clisp.org>
74413
74414         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
74415         * lib/gl_linkedhash_list.c: Likewise.
74416         * lib/gl_rbtreehash_list.c: Likewise.
74417
74418 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74419
74420         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
74421         getaddrinfo.
74422
74423         * lib/__fpending.h: Don't include <stdio_ext.h> unless
74424         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
74425         it causes <stdio_ext.h> to cause a compile-time error.
74426         Problem reported by Nelson H. F. Beebe.
74427         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74428         of HAVE_DECL___PENDING.
74429
74430         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74431         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74432         declaration.
74433
74434 2006-09-27  Jim Meyering  <jim@meyering.net>
74435
74436         This file could end up with a definition for a function
74437         named __strndup, rather than rpl_strndup on a system with
74438         incomplete weak_alias support.
74439         * lib/strndup.c (strndup): Rename from __strndup.
74440         Remove #defines that used to map __strndup to strndup.
74441         Don't use K&R prototypes.
74442         Remove LIBC-related code, since this file is not sync'd with glibc.
74443         * lib/strndup.h: Revamp, accordingly.
74444         * m4/strndup.m4: Modernize.
74445
74446 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74447
74448         * modules/savewd (Depends-on): Add 'raise'.
74449         * lib/savewd.c: Include <signal.h>, for 'raise'.
74450
74451 2006-09-26  Jim Meyering  <jim@meyering.net>
74452
74453         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
74454         when we detect Darwin 8.7.0's acl_get_file bug.
74455         Rearrange to perform the new (below) run-test while $LIBS
74456         contains any acl-related library.  Set USE_ACL at the end.
74457         (gl_ACL_GET_FILE): New function.
74458
74459 2006-09-26  Eric Blake  <ebb9@byu.net>
74460
74461         * lib/verror.c: Include <config.h> unconditionally.
74462
74463 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
74464
74465         * modules/clock-time (Maintainer): Add self.
74466         * modules/getlogin_r (Depends-on): Add extensions.
74467
74468 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74469
74470         * modules/clock-time: New module.
74471         * modules/nanosleep (Depends-on): Add clock-time.
74472         * modules/gethrxtime (Depends-on): Likewise.
74473         * modules/gettime (Depends-on): Likewise.
74474         * modules/settime (Depends-on): Likewise.
74475
74476         * modules/fts-lgpl: Depend on openat.
74477         * modules/mkancesdirs: Depend on savewd.
74478         * modules/mkdir-p: Likewise.
74479
74480 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74481
74482         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74483
74484         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74485         `gl_have_arbitrary_file_name_length_limit' to
74486         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74487         actually works between configure runs.
74488
74489 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74490             Bruno Haible  <bruno@clisp.org>
74491
74492         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74493
74494 2006-09-25  Jim Meyering  <jim@meyering.net>
74495
74496         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74497         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74498
74499 2006-09-25  Eric Blake  <ebb9@byu.net>
74500
74501         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74502         exec's in 2006-09-18 patch when shuffling fds.
74503
74504 2006-09-25  Bruno Haible  <bruno@clisp.org>
74505
74506         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74507         Reported by Jim Meyering.
74508
74509 2006-09-24  Jim Meyering  <jim@meyering.net>
74510
74511         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74512         compare a pointer against a literal "0".  That caused failures with
74513         at least HP-UX's hpcc.
74514
74515 2006-09-22  Simon Josefsson  <jas@extundo.com>
74516
74517         * modules/gc-sha1:
74518         * modules/gc-md4:
74519         * modules/gc-hmac-sha1:
74520         * modules/gc-hmac-md5:
74521         * modules/gc-des:
74522         * modules/gc-arcfour: Distribute more files.
74523
74524 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74525
74526         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74527         (gl_linked_iterator_from_to): Initialize struct completely.
74528         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74529         (gl_tree_iterator_from_to): Likewise
74530         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74531         * lib/gl_array_list.c [lint] (gl_array_iterator)
74532         (gl_array_iterator_from_to): Likewise.
74533         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74534         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74535         (gl_carray_iterator_from_to): Likewise.
74536
74537         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74538         * lib/md4.c (md4_process_block): Remove unused variable.
74539         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74540         parentheses for clarity.
74541
74542 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74543
74544         * modules/bison-i18n (Depends-on): Add gettext.
74545
74546 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74547
74548         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74549         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74550         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74551         also add missing comma that caused broken test.
74552         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74553         stdlib.h, for `abort'.
74554         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74555         variables.
74556         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74557         include unistd.h if present, for `rmdir'.
74558         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74559         variables.
74560         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74561         in the process include standard headers for prototypes.
74562         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74563         gets declared on GNU/Linux.
74564         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74565         unistd.h, for `rmdir'.
74566         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74567
74568         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74569         always true.
74570         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74571
74572         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74573
74574 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74575
74576         * gnulib-tool (func_version): Create output all at once.  This
74577         may help avoid triggering unnecessary SIGPIPEs, and at any
74578         rate it doesn't hurt.
74579
74580 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74581             Bruno Haible  <bruno@clisp.org>
74582
74583         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74584         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74585         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74586
74587         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74588         (gl_FUNC_VASPRINTF): Invoke it.
74589
74590 2006-09-22  Bruno Haible  <bruno@clisp.org>
74591
74592         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74593         getloadavg.c as first argument.
74594
74595 2006-09-22  Bruno Haible  <bruno@clisp.org>
74596
74597         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74598         at the beginning of the gl_INIT macro.
74599         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74600         gl_GETLOADAVG.
74601
74602 2006-09-22  Bruno Haible  <bruno@clisp.org>
74603
74604         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74605         module.
74606         Suggested by Ralf Wildenhues.
74607
74608 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74609
74610         Import this patch from libc:
74611
74612         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74613
74614         * lib/regex_internal.c (re_string_reconstruct): Handle
74615         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74616         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74617         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74618         re_string_context_at.
74619
74620         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74621         now requires it.
74622         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74623         gl_REGEX now does it for us.
74624         (gl_REGEX): Add test taken from
74625         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74626
74627         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74628         Check that large offsets work.  Modernize Autoconf usages.
74629         Prefer "yes" to mean a good thing rather than a bad.
74630         Don't put "#define mkstemp" in config.h, as this might interfere
74631         with standard system headers that "#define mkstemp mkstemp64".
74632
74633         * modules/mkstemp (Depends-on): Add extensions, so that
74634         mkstemp is visible on some platforms.
74635         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74636         (Include): Change to "mkstemp.h" from <stdlib.h>.
74637         (Files): Add mkstemp.h.
74638
74639         * lib/mkstemp.h: New file, since some standard headers
74640         #define mkstemp.
74641         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74642         Include "mkstemp.h".
74643         Make the _LIBC code resemble glibc original more,
74644         e.g., use K&R style.
74645         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74646         (mkstemp): Remove, since mkstemp.h does this for us.
74647         * lib/stdlib--.h: Include mkstemp.h.
74648
74649         Import this patch from libc:
74650
74651         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74652
74653         * lib/tempname.c (__gen_tempname): Change attempts_min
74654         into a macro.  Use preprocessor to decide how to initialize
74655         attempts [Coverity CID 67].
74656
74657 2006-09-20  Bruno Haible  <bruno@clisp.org>
74658
74659         * lib/mkdtemp.c: Import from libc.
74660         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74661                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74662                 attempts_min into a macro.  Use preprocessor to decide how to
74663                 initialize attempts [Coverity CID 67].
74664         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74665                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74666                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74667
74668 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74669
74670         * gnulib-tool (func_exit): New function, to allow to pass the
74671         exit status portably through the trap.  Use everywhere.
74672         (--help, --version): Signal a write error.
74673         (trap): catch SIGPIPE, for write errors.
74674         Exit at the end of the trap, with the correct exit status.
74675
74676 2006-09-19  Karl Berry  <karl@gnu.org>
74677
74678         * doc/gnulib.texi: note about the license texinfo files.
74679
74680 2006-09-19  Eric Blake  <ebb9@byu.net>
74681
74682         * gnulib-tool: Avoid space-tab.
74683
74684 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74685
74686         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74687         that prevented coreutils 6.1 from building.  Problem reported
74688         by Petter Reinholdtsen.
74689
74690 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74691
74692         * gnulib-tool (avoidlist): Fix typo that broke options like
74693         --avoid=lock that are used by coreutils bootstrap.
74694
74695 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74696
74697         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74698         more systematically.
74699
74700 2006-09-18  Jim Meyering  <jim@meyering.net>
74701
74702         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74703
74704 2006-09-18  Bruno Haible  <bruno@clisp.org>
74705
74706         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74707
74708 2006-09-18  Bruno Haible  <bruno@clisp.org>
74709
74710         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74711         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74712         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74713         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74714         * m4/gettext.m4: Require autoconf >= 2.52.
74715         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74716         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74717         of gl_cv_header_inttypes_h.
74718
74719 2006-09-18  Bruno Haible  <bruno@clisp.org>
74720
74721         * lib/javaversion.c: Include configmake.h.
74722
74723 2006-09-18  Bruno Haible  <bruno@clisp.org>
74724
74725         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74726         avoid that the while loops be executed in a subshell.
74727
74728 2006-09-18  Bruno Haible  <bruno@clisp.org>
74729
74730         * MODULES.html.sh (func_module): Break long lines.
74731         Suggested by Bruce Korb <bkorb@gnu.org>.
74732
74733 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74734
74735         Speed up by a factor of 1.12.
74736         * gnulib-tool (nl): New variable.
74737         (func_import): Rewrite include directive extraction to only read each
74738         directive once.
74739
74740 2006-09-17  Bruno Haible  <bruno@clisp.org>
74741
74742         * modules/javaversion (Makefile.am): Remove DEFS setting.
74743         (Depends-on): Add configmake, for PKGDATADIR definition.
74744
74745 2006-09-17  Bruno Haible  <bruno@clisp.org>
74746
74747         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74748
74749 2006-09-17  Bruno Haible  <bruno@clisp.org>
74750
74751         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74752         (func_modules_transitive_closure, func_modules_add_dummy,
74753         func_modules_to_filelist, func_import, func_create_testdir,
74754         func_create_megatestdir, ...): Use it wherever possible.
74755         Suggested by Ralf Wildenhues.
74756
74757 2006-09-16  Karl Berry  <karl@gnu.org>
74758
74759         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74760         to avoid sectioning errors.
74761         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74762         [ifinfo]: blank line after @center-ed titles.
74763         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74764         Spell FSF address consistently with others.
74765         (These changes approved by rms.)
74766
74767 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74768
74769         Speed up by a factor of 1.61.
74770         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74771         already checked module names again.
74772
74773 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74774
74775         Speed up by a factor of 1.13.
74776         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74777         for new_files, and the input to func_add_or_update.
74778
74779 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74780
74781         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74782         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74783
74784 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74785
74786         * modules/mkancesdirs (Depends-on): Add fcntl.
74787         * modules/savewd: New file.
74788         * MODULES.html.sh (File system functions): Add savewd.
74789
74790         * modules/configmake (Makefile.am): Add support for the
74791         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74792
74793 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74794
74795         * m4/savewd.m4: New file.
74796
74797 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74798
74799         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74800         (dirchownmod): New arg FD.  All callers changed.
74801         Use FD rather than opening the directory ourself, as opening is
74802         now the caller's responsibility.
74803         * lib/dirchownmod.h: Likewise.
74804         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74805         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74806         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74807         (test_dir): Remove.
74808         (mkancesdirs): Return length of prefix of FILE that has already
74809         been made, or -2 if there is a child doing the work.  Redo
74810         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74811         ".", and treat ".." specially since it might stray back into
74812         already-created areas.  Use a subprocess if necessary.  New arg
74813         WD; all users changed.  MAKE_DIR function should now return 1
74814         if it creates a directory that is not readable.  Return -2 if
74815         a child process is spun off.
74816         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74817         Adjust signature to match code.
74818         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74819         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74820         all users changed.
74821         * lib/savewd.c, lib/savewd.h: New files.
74822
74823 2006-09-15  Jim Meyering  <jim@meyering.net>
74824
74825         * modules/rename-dest-slash: New module.
74826         * MODULES.html.sh (posix_compat): Add it here.
74827
74828         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74829
74830 2006-09-15  Jim Meyering  <jim@meyering.net>
74831
74832         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74833         file.
74834
74835         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74836
74837 2006-09-15  Jim Meyering  <jim@meyering.net>
74838
74839         * lib/rename-dest-slash.c (has_trailing_slash): Use
74840         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74841         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74842         test before testing whether SRC is a directory.
74843         Suggestions from Bruno Haible.
74844
74845         Avoid a warning about an unused variable.
74846         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74847         into the #ifdef block where it's used.
74848
74849         * lib/rename-dest-slash.c: New file.
74850
74851 2006-09-14  Bruno Haible  <bruno@clisp.org>
74852
74853         * lib/allocsa.c: Include <config.h> unconditionally.
74854         * lib/asnprintf.c: Likewise.
74855         * lib/asprintf.c: Likewise.
74856         * lib/c-strcasecmp.c: Likewise.
74857         * lib/c-strcasestr.c: Likewise.
74858         * lib/c-strncasecmp.c: Likewise.
74859         * lib/c-strstr.c: Likewise.
74860         * lib/classpath.c: Likewise.
74861         * lib/clean-temp.c: Likewise.
74862         * lib/concatpath.c: Likewise.
74863         * lib/copy-file.c: Likewise.
74864         * lib/csharpcomp.c: Likewise.
74865         * lib/csharpexec.c: Likewise.
74866         * lib/execute.c: Likewise.
74867         * lib/fatal-signal.c: Likewise.
74868         * lib/findprog.c: Likewise.
74869         * lib/fwriteerror.c: Likewise.
74870         * lib/gl_array_list.c: Likewise.
74871         * lib/gl_array_oset.c: Likewise.
74872         * lib/gl_avltree_list.c: Likewise.
74873         * lib/gl_avltree_oset.c: Likewise.
74874         * lib/gl_avltreehash_list.c: Likewise.
74875         * lib/gl_carray_list.c: Likewise.
74876         * lib/gl_linked_list.c: Likewise.
74877         * lib/gl_linkedhash_list.c: Likewise.
74878         * lib/gl_list.c: Likewise.
74879         * lib/gl_oset.c: Likewise.
74880         * lib/gl_rbtree_list.c: Likewise.
74881         * lib/gl_rbtree_oset.c: Likewise.
74882         * lib/gl_rbtreehash_list.c: Likewise.
74883         * lib/imaxabs.c: Likewise.
74884         * lib/imaxdiv.c: Likewise.
74885         * lib/javacomp.c: Likewise.
74886         * lib/javaexec.c: Likewise.
74887         * lib/javaversion.c: Likewise.
74888         * lib/linebreak.c: Likewise.
74889         * lib/localcharset.c: Likewise.
74890         * lib/lock.c: Likewise.
74891         * lib/mbchar.c: Likewise.
74892         * lib/mbswidth.c: Likewise.
74893         * lib/mkdtemp.c: Likewise.
74894         * lib/pipe.c: Likewise.
74895         * lib/printf-args.c: Likewise.
74896         * lib/printf-parse.c: Likewise.
74897         * lib/progname.c: Likewise.
74898         * lib/progreloc.c: Likewise.
74899         * lib/readlink.c: Likewise.
74900         * lib/sh-quote.c: Likewise.
74901         * lib/stpcpy.c: Likewise.
74902         * lib/stpncpy.c: Likewise.
74903         * lib/strcasecmp.c: Likewise.
74904         * lib/strcasestr.c: Likewise.
74905         * lib/strcspn.c: Likewise.
74906         * lib/striconv.c: Likewise.
74907         * lib/strncasecmp.c: Likewise.
74908         * lib/strnlen1.c: Likewise.
74909         * lib/strstr.c: Likewise.
74910         * lib/strtok_r.c: Likewise.
74911         * lib/tls.c: Likewise.
74912         * lib/tmpdir.c: Likewise.
74913         * lib/unicodeio.c: Likewise.
74914         * lib/unsetenv.c: Likewise.
74915         * lib/vasnprintf.c: Likewise.
74916         * lib/vasprintf.c: Likewise.
74917         * lib/wait-process.c: Likewise.
74918         * lib/xallocsa.c: Likewise.
74919         * lib/xsetenv.c: Likewise.
74920         * lib/xstriconv.c: Likewise.
74921
74922 2006-09-13  Simon Josefsson  <jas@extundo.com>
74923
74924         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74925         that internally, suggested by Ralf Wildenhues
74926         <Ralf.Wildenhues@gmx.de>.
74927
74928 2006-09-13  Simon Josefsson  <jas@extundo.com>
74929
74930         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74931         @LIBOBJS@.
74932         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74933
74934 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74935
74936         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74937         longer worry about uses that don't define HAVE_CONFIG_H.
74938         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74939         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74940         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74941         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74942         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74943         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74944         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74945         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74946         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74947         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74948         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74949         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74950         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74951         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74952         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74953         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74954         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74955         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74956         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74957         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74958         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74959         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74960         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74961         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74962         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74963         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74964         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74965         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74966         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74967         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74968         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74969         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74970         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74971         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74972         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74973         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74974         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74975         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74976         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74977         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74978         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74979         Likewise.
74980
74981 2006-09-13  Eric Blake  <ebb9@byu.net>
74982
74983         * lib/getopt.c: Fix typo in last commit.
74984
74985 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74986
74987         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74988         dgettext.
74989
74990 2006-09-12  Jim Meyering  <jim@meyering.net>
74991
74992         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74993         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74994         Reported by Nelson H. F. Beebe.
74995
74996 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74997
74998         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74999         program_invocation_name and program_invocation_short_name are
75000         initialized.
75001         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75002         and program_invocation_short_name to argp.h, so they are visible
75003         to user programs.
75004         * lib/argp.h: Likewise
75005
75006 2006-09-10  Bruno Haible  <bruno@clisp.org>
75007
75008         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75009         m4/inttypes_h.m4, m4/uintmax_t.m4.
75010
75011 2006-09-10  Bruno Haible  <bruno@clisp.org>
75012
75013         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75014         gl_AC_TYPE_UINTMAX_T.
75015
75016 2006-09-10  Bruno Haible  <bruno@clisp.org>
75017
75018         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75019
75020 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75021
75022         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75023         convention.  Text proposed by Bruno Haible.
75024         (struct argp_option): Document the use of N_() wrappers.
75025
75026         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75027         '\v', and translate the two parts separately, instead of feeding
75028         the whole string to gettext.  This allows to exclude
75029         '\v' from the strings visible to the translator by writing doc
75030         strings as N_("..") "\v" N_("..").
75031
75032 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75033
75034         * config/srclist.txt: Undo latest change; the bug was fixed.
75035
75036 2006-09-09  Bruno Haible  <bruno@clisp.org>
75037
75038         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75039         assignments if building a library without libtool.
75040         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75041         in func_emit_lib_Makefile_am.
75042         (func_import): When building a static library libfoo.a, arrange to
75043         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75044         (func_create_testdir): Likewise.
75045         * modules/gc (configure.ac, Makefile.am): If building statically,
75046         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75047         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75048         * modules/striconv (configure.ac, Makefile.am): Likewise.
75049         Based on a suggestion by Ralf Wildenhues.
75050
75051 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75052
75053         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75054         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75055         Also:
75056
75057         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75058         Add year_2050_test to catch glibc bug 2821
75059         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75060
75061         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75062         Prefer #ifdef to #if.
75063
75064         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75065         Return from 'main' instead of calling 'exit'.
75066
75067 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75068
75069         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75070         returned the maximum time_t value rather than (time_t) -1.
75071         Problem originally reported by William Bardwell
75072         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75073
75074         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75075         Moved to here ...
75076         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75077         ... from here.
75078
75079 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75080
75081         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75082         2821 is fixed.
75083
75084 2006-09-08  Jim Meyering  <jim@meyering.net>
75085
75086         Don't make generated files read-only.  That would bother too many
75087         people.  However, do retain the ability to work when targets are
75088         read-only: remove the destination and temporary files before writing
75089         them (when generated via sed or echo), or by using the -f option for
75090         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75091         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75092         * modules/byteswap, modules/configmake, modules/fcntl:
75093         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75094         * modules/localcharset, modules/netinet_in, modules/poll:
75095         * modules/stdbool, modules/stdint, modules/sys_select:
75096         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75097
75098 2006-09-08  Jim Meyering  <jim@meyering.net>
75099
75100         Avoid new build failure on FreeBSD 6.0.
75101         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75102         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75103         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75104
75105 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75106
75107         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75108
75109 2006-09-07  Jim Meyering  <jim@meyering.net>
75110
75111         Fix global typo in last change: use chmod u-w, not chmod u-x.
75112         Spotted by Paul Eggert and Bruce Korb.
75113         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75114         * modules/byteswap, modules/configmake, modules/fcntl:
75115         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75116         * modules/localcharset, modules/netinet_in, modules/poll:
75117         * modules/stdbool, modules/stdint, modules/sys_select:
75118         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75119
75120 2006-09-06  Jim Meyering  <jim@meyering.net>
75121
75122         Make generated files be read-only.
75123         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75124         Ensure that each generated file is now read-only.
75125         * modules/argz: Likewise.
75126         * modules/arpa_inet: Likewise.
75127         * modules/byteswap: Likewise.
75128         * modules/configmake: Likewise.
75129         * modules/fcntl: Likewise.
75130         * modules/fnmatch: Likewise.
75131         * modules/getopt: Likewise.
75132         * modules/glob: Likewise.
75133         * modules/inttypes: Likewise.
75134         * modules/netinet_in: Likewise.
75135         * modules/poll: Likewise.
75136         * modules/stdbool: Likewise.
75137         * modules/stdint: Likewise.
75138         * modules/sys_select: Likewise.
75139         * modules/sys_socket: Likewise.
75140         * modules/sys_stat: Likewise.
75141         * modules/sysexits: Likewise.
75142         * modules/localcharset: Same as above, but continue using temporary
75143         file named "t-$@" (why different?) rather than the "$@-t" used
75144         everywhere else.
75145
75146         * modules/sysexits (Makefile.am): Replace literal occurrences
75147         of "sysexit.h" more readable, and more consistent, "$@".
75148
75149 2006-09-06  Bruno Haible  <bruno@clisp.org>
75150
75151         * modules/striconv: New file.
75152         * modules/xstriconv: New file.
75153         * MODULES.html.sh (Internationalization functions): Add striconv,
75154         xstriconv.
75155
75156 2006-09-06  Bruno Haible  <bruno@clisp.org>
75157
75158         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75159         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75160         not using libtool correctly.
75161
75162 2006-09-06  Bruno Haible  <bruno@clisp.org>
75163
75164         * lib/striconv.h: New file.
75165         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75166         iconvstring.c.
75167         * lib/xstriconv.h: New file.
75168         * lib/xstriconv.c: New file.
75169
75170 2006-09-06  Bruno Haible  <bruno@clisp.org>
75171
75172         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75173         lib_..._LDFLAGS.
75174
75175 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75176
75177         * lib/argz_.h: Sync from Libtool.
75178
75179         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75180                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75181
75182         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75183
75184 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75185
75186         * modules/trim: New file.
75187
75188 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75189
75190         * lib/trim.h: New file.
75191         * lib/trim.c: New file.
75192
75193 2006-09-05  Bruno Haible  <bruno@clisp.org>
75194
75195         * MODULES.html.sh (String handling): Add trim.
75196
75197 2006-09-04  Karl Berry  <karl@gnu.org>
75198
75199         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75200         until next release.
75201
75202 2006-09-03  Bruno Haible  <bruno@clisp.org>
75203
75204         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75205         correctly.
75206
75207 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75208
75209         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75210         not gl_GETLOADAVG.  Omit unneeded semicolons.
75211         Problems reported by Ralf Wildenhues in
75212         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75213         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75214         at the end, which is the usual gnulib style.
75215
75216         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75217         of doing all the work ourselves.
75218         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75219         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75220
75221 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75222
75223         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75224         Problem reported by Ralf Wildenhues in
75225         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75226
75227         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75228         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75229
75230 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75231
75232         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75233         yesterday's patch by changing test -n to test -z.
75234
75235 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75236
75237         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75238         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75239         the former is now obsolescent.
75240
75241         * modules/chdir-long (Depends-on): Add fcntl.
75242
75243 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75244
75245         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75246         obsolescent, and programs should use gnulib instead.
75247         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75248         but with prefixes changed.
75249
75250 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75251
75252         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75253         or stdbool.h, because they might not exist while configuring.
75254
75255         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
75256         Don't include unistd.h or limits.h; not needed, since chdir-long.h
75257         does that for us.
75258         (O_DIRECTORY): Remove.
75259
75260 2006-08-31  Eric Blake  <ebb9@byu.net>
75261
75262         * gnulib-tool: Don't let emacs change spaces to TAB.
75263
75264 2006-08-31  Bruno Haible  <bruno@clisp.org>
75265
75266         * gnulib-tool: When calling func_import more than once, do it in a
75267         subshell.
75268         Reported by Eric Blake <ebb9@byu.net>.
75269
75270 2006-08-31  Bruno Haible  <bruno@clisp.org>
75271
75272         * gnulib-tool (nl): Remove variable.
75273         (sed_transform_lib_file): Use more robust test for config-h module.
75274         (func_import): Fix typo in 2006-08-25 patch.
75275
75276 2006-08-31  Bruno Haible  <bruno@clisp.org>
75277
75278         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75279         specified, augment Makefile.am variables instead of assigning them.
75280
75281 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75282
75283         Work around a bug in both the Linux and SunOS 64-bit kernels:
75284         nanosleep mishandles sleeps for longer than 2**31 seconds.
75285         Problem reported by Frank v Waveren in
75286         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75287         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75288         Check for nanosleep bug.
75289         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75290
75291 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75292
75293         Work around a bug in both the Linux and SunOS 64-bit kernels:
75294         nanosleep mishandles sleeps for longer than 2**31 seconds.
75295         Problem reported by Frank v Waveren in
75296         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75297         * lib/nanosleep.c (BILLION): New constant.
75298         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75299         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75300         implementation.
75301
75302 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75303
75304         * modules/nanosleep (Depends-on): Add gettime.
75305
75306 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75307         and Simon Josefsson  <jas@extundo.com>
75308         and Oskar Liljeblad  <oskar@osk.mine.nu>
75309
75310         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75311         * gnulib-tool (func_import): New license type 'unmodifiable license
75312         text'.
75313         * modules/fdl: Use it.  Longer description.
75314         * module/gpl, module/lgpl: New files.
75315
75316 2006-08-30  Jim Meyering  <jim@meyering.net>
75317
75318         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75319         shadowing the parameter.
75320
75321 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75322
75323         Sync from Libtool:
75324
75325         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75326
75327         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75328         sharing with gnulib.  Report by Eric Blake.
75329
75330 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75331
75332         * modules/isapipe: New file.
75333         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
75334
75335 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75336
75337         * modules/configmake (Makefile.am): Add a comment, and omit
75338         the CONFIGMAKE_ prefix from generated macro names.  Suggested
75339         by Bruno Haible.
75340
75341 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75342
75343         * m4/isapipe.m4: New file.
75344
75345 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75346
75347         * lib/isapipe.c, lib/isapipe.h: New files.
75348
75349 2006-08-29  Jim Meyering  <jim@meyering.net>
75350
75351         * modules/configmake (Makefile.am): Make configmake.h depend on
75352         Makefile.  Otherwise, a stale configmake.h could hang around.
75353
75354 2006-08-29  Eric Blake  <ebb9@byu.net>
75355
75356         * lib/error.c (error_at_line, print_errno_message): Match libc, after
75357         resolution of upstream bug 3044.
75358
75359 2006-08-29  Bruno Haible  <bruno@clisp.org>
75360
75361         * modules/localcharset (Depends-on): Add configmake.
75362         (Makefile.am): Remove setting of LIBDIR through DEFS.
75363
75364 2006-08-29  Bruno Haible  <bruno@clisp.org>
75365
75366         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
75367         defined.
75368
75369 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75370
75371         * modules/fcntl: New file.
75372         * modules/chdir-safer (Depends-on): Add fcntl.
75373         * modules/fts: Likewise.
75374         * modules/mkdir-p: Likewise.
75375
75376         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
75377         This undoes the most recent change, since we're now addressing the
75378         problem in a different way.
75379
75380         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
75381         into output, since the output might be called Makefile.am even
75382         if $makefile_name is something different.
75383         (func_import): Use $makefile_am rather than
75384         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
75385         empty.
75386
75387         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75388
75389 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75390
75391         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75392         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75393         recent change to stdint.m4, since we're now addressing the problem in a
75394         different way.
75395
75396 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75397
75398         * m4/fcntl_h.m4: New file.
75399
75400 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75401
75402         * lib/fcntl_.h: New file.
75403         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75404         the fcntl module.
75405         * lib/dirchownmod.c: Likewise.
75406         * lib/fts.c: Likewise.
75407
75408         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
75409         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
75410         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
75411         just before including <inttypes.h>, to avoid circular inclusion.
75412
75413 2006-08-28  Jim Meyering  <jim@meyering.net>
75414
75415         * doc/visibility.texi: Actually read and correct the grammar of the
75416         sentence affected by yesterday's change.
75417
75418 2006-08-28  Eric Blake  <ebb9@byu.net>
75419
75420         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
75421         needs wrapper.
75422
75423 2006-08-28  Eric Blake  <ebb9@byu.net>
75424
75425         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
75426
75427 2006-08-28  Eric Blake  <ebb9@byu.net>
75428
75429         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75430
75431 2006-08-28  Bruno Haible  <bruno@clisp.org>
75432
75433         * modules/c-strstr: New file, from GNU gettext.
75434         * MODULES.html.sh (String handling): Add c-strstr.
75435
75436 2006-08-28  Bruno Haible  <bruno@clisp.org>
75437
75438         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
75439         macros.
75440         Reported by Eric Blake.
75441
75442 2006-08-28  Bruno Haible  <bruno@clisp.org>
75443
75444         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
75445         (VASNPRINTF): Return a string of length > INT_MAX without failing.
75446         * lib/vasprintf.c: Include errno.h, limits.h.
75447         (EOVERFLOW): New fallback definition.
75448         (vasprintf): Test here whether the string length is > INT_MAX.
75449         * lib/vsnprintf.c: Include errno.h, limits.h.
75450         (EOVERFLOW): New fallback definition.
75451         (vsnprintf): Fix bug when generated string was too long for the buffer.
75452         Test here whether the string length is > INT_MAX.
75453
75454 2006-08-28  Bruno Haible  <bruno@clisp.org>
75455
75456         * lib/inttypes_.h (SCNX*): Remove definitions.
75457         Reported by Eric Blake.
75458
75459 2006-08-28  Bruno Haible  <bruno@clisp.org>
75460
75461         * lib/c-strstr.h: New file, from GNU gettext.
75462         * lib/c-strstr.c: New file, from GNU gettext.
75463
75464 2006-08-28  Bruno Haible  <bruno@clisp.org>
75465
75466         * gnulib-tool: Reorder some statements.
75467
75468 2006-08-28  Bruno Haible  <bruno@clisp.org>
75469
75470         * gnulib-tool: New option --makefile-name.
75471         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
75472         $makefile_name.
75473         (func_import): Write $makefile_name to the cache file, and read it from
75474         there unless explicitly specified. Use $makefile_name as file name
75475         instead of Makefile.am. Adjust the recommendations accordingly.
75476
75477 2006-08-28  Bruno Haible  <bruno@clisp.org>
75478
75479         * gnulib-tool (func_verify_module): Check against misapplying patch.
75480
75481 2006-08-28  Bruno Haible  <bruno@clisp.org>
75482
75483         * gnulib-tool (func_relativize, func_relconcat): New functions.
75484         Give an error if --local-dir is given with --update.
75485         Remove trailing slashes from $local_gnulib_dir.
75486         (func_import): Store the relativized $local_gnulib_dir in
75487         gnulib-cache.m4, and read it from there if not specified explicitly.
75488
75489 2006-08-28  Bruno Haible  <bruno@clisp.org>
75490
75491         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75492         is the current directory. Respect also $local_gnulib_dir.
75493
75494 2006-08-28  Bruno Haible  <bruno@clisp.org>
75495             Simon Josefsson  <jas@extundo.com>
75496
75497         BeOS portability.
75498         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75499
75500 2006-08-27  Jim Meyering  <jim@meyering.net>
75501
75502         * doc/visibility.texi: Remove duplicate word: "pointer".
75503
75504 2006-08-26  Bruno Haible  <bruno@clisp.org>
75505
75506         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75507         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75508         (Makefile.am): Create inttypes.h from inttypes_.h.
75509         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75510
75511         * modules/imaxabs: New file.
75512
75513         * modules/imaxdiv: New file.
75514
75515 2006-08-26  Bruno Haible  <bruno@clisp.org>
75516
75517         * m4/inttypes.m4: New file.
75518         * m4/_inttypes_h.m4: Remove file.
75519         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75520         PRI_MACROS_BROKEN.
75521         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75522
75523         * m4/imaxabs.m4: New file.
75524
75525         * m4/imaxdiv.m4: New file.
75526
75527 2006-08-26  Bruno Haible  <bruno@clisp.org>
75528
75529         * lib/inttypes_.h: New file.
75530         * lib/inttypes.h: Remove file.
75531         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75532
75533         * lib/imaxabs.c: New file.
75534
75535         * lib/imaxdiv.c: New file.
75536
75537 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75538
75539         New config-h module, so that "make" output needn't be cluttered
75540         by -DHAVE_CONFIG_H.
75541         * MODULES.html.sh (Support for building libraries and executables):
75542         Add config-h.
75543         * modules/config-h: New file.
75544         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75545         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75546         the config-h module is used.
75547
75548         New configmake module, so that "make" output needn't be cluttered
75549         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75550         * MODULES.html.sh (Support for building libraries and executables):
75551         Add configmake.
75552         * modules/configmake: New file.
75553
75554 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75555
75556         * m4/config-h.m4: New file.
75557
75558 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75559
75560         * config/srclist.txt: Add elisp-comp.
75561
75562 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75563
75564         * MODULES.html.sh (Support for building libraries and executables):
75565         Add elisp-comp.
75566         * build-aux/elisp-comp: New file.
75567         * modules/elisp-comp: New file.
75568
75569 2006-08-24  Bruno Haible  <bruno@clisp.org>
75570
75571         * gnulib-tool (func_create_testdir): Use non-default values of
75572         sourcebase and m4base.
75573
75574 2006-08-24  Bruno Haible  <bruno@clisp.org>
75575
75576         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75577         HTML structure.
75578
75579 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75580
75581         * modules/openat (Depends-on): Add lchown.
75582
75583 2006-08-23  Bruno Haible  <bruno@clisp.org>
75584
75585         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75586         of gl_LOCK_EARLY instead of gl_LOCK.
75587
75588 2006-08-23  Bruno Haible  <bruno@clisp.org>
75589
75590         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75591         on OSF/1 to no.
75592         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75593
75594 2006-08-23  Bruno Haible  <bruno@clisp.org>
75595
75596         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75597         as unusable.
75598
75599         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75600         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75601         (gl_LOCK): New macro.
75602
75603 2006-08-22  Simon Josefsson  <jas@extundo.com>
75604
75605         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75606         to md5 module.
75607
75608 2006-08-22  Simon Josefsson  <jas@extundo.com>
75609
75610         * MODULES.html.sh: Add "Support for maintaining and release
75611         projects".
75612
75613         * build-aux/gnupload: New file, from coreutils.
75614
75615 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75616
75617         Avoid the need for AC_LIBSOURCES in m4 macros.
75618         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75619         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75620         * modules/check-version (EXTRA_DIST): Add check-version.h.
75621         * modules/crc (EXTRA_DIST): Add crc.h.
75622         * modules/des (EXTRA_DIST): Add des.h.
75623         * modules/gc (EXTRA_DIST): Add gc.h.
75624         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75625         * modules/getline (EXTRA_DIST): Add getline.h.
75626         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75627         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75628         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75629         * modules/md2 (EXTRA_DIST): Add md2.h.
75630         * modules/md4 (EXTRA_DIST): Add md4.h.
75631         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75632         * modules/read-file (EXTRA_DIST): Add read-file.h.
75633         * modules/readline (EXTRA_DIST): Add readline.h.
75634         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75635         rijndael-api-fst.h.
75636
75637 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75638
75639         * m4/rijndael.m4 (gl_ARCFOUR):
75640         * m4/arctwo.m4 (gl_ARCTWO):
75641         * m4/check-version.m4 (gl_CHECK_VERSION):
75642         * m4/crc.m4 (gl_CRC):
75643         * m4/des.m4 (gl_DES):
75644         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75645         * m4/gc.m4 (gl_GC):
75646         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75647         * m4/getline.m4 (gl_FUNC_GETLINE):
75648         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75649         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75650         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75651         * m4/md2.m4 (gl_MD2):
75652         * m4/md4.m4 (gl_MD4):
75653         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75654         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75655         * m4/readline.m4 (gl_FUNC_READLINE):
75656         * m4/rijndael.m4 (gl_RIJNDAEL):
75657         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75658         to get the necessary .h files and whatnot.
75659
75660 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75661
75662         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75663         gnulib rather than the other way around.
75664         * config/srclistvars.sh (COREUTILS): Remove.
75665
75666 2006-08-22  Jim Meyering  <jim@meyering.net>
75667
75668         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75669
75670         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75671
75672 2006-08-22  Eric Blake  <ebb9@byu.net>
75673
75674         * modules/regexprops-generic: New file.
75675         * MODULES.html.sh (Support for building documentation): List it.
75676
75677 2006-08-22  Eric Blake  <ebb9@byu.net>
75678
75679         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75680         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75681         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75682         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75683
75684 2006-08-22  Bruno Haible  <bruno@clisp.org>
75685
75686         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75687         and lib_LTLIBRARIES like the other lib_* variables.
75688
75689 2006-08-22  Bruno Haible  <bruno@clisp.org>
75690
75691         * build-aux/x-to-1.in: New file, from GNU gettext.
75692
75693 2006-08-22  Bruno Haible  <bruno@clisp.org>
75694
75695         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75696         <utmpx.h> exists.
75697
75698 2006-08-22  Bruno Haible  <bruno@clisp.org>
75699
75700         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75701         <utmpx.h> exists.
75702
75703 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75704
75705         BeOS portability.
75706         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75707         exist.
75708         Problem reported by Bruno Haible.
75709
75710 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         Avoid the need for AC_LIBSOURCES in m4 macros.
75713         * modules/acl (EXTRA_DIST): Add acl.h.
75714         * modules/argmatch (Files): Add m4/argmatch.m4.
75715         (configure.ac): Add gl_ARGMATCH.
75716         (EXTRA_DIST): Renamed from lib_SOURCES, for
75717         consistency with the other modules.  Remove argmatch.c.
75718         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75719         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75720         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75721         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75722         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75723         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75724         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75725         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75726         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75727         * modules/closeout (EXTRA_DIST): Add closeout.h.
75728         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75729         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75730         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75731         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75732         dirname.h; remove basename.c and stripslash.c.
75733         * modules/exclude (EXTRA_DIST): Add exclude.h.
75734         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75735         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75736         * modules/file-type (EXTRA_DIST): Add file-type.h.
75737         * modules/filemode (EXTRA_DIST): Add filemode.h.
75738         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75739         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75740         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75741         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75742         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75743         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75744         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75745         * modules/getdate (EXTRA_DIST): Add getdate.c.
75746         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75747         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75748         * modules/getpass (EXTRA_DIST): Add getpass.h.
75749         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75750         * modules/group-member (EXTRA_DIST): Add group-member.h.
75751         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75752         * modules/hash (EXTRA_DIST): Add hash.h.
75753         * modules/human (EXTRA_DIST): Add human.h.
75754         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75755         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75756         * modules/lchown (EXTRA_DIST): Add lchown.h.
75757         * modules/long-options (EXTRA_DIST): Add long-options.h.
75758         * modules/lstat (EXTRA_DIST): Add lstat.h.
75759         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75760         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75761         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75762         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75763         * modules/memxor (EXTRA_DIST): Add memxor.h.
75764         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75765         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75766         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75767         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75768         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75769         * modules/physmem (EXTRA_DIST): Add physmem.h.
75770         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75771         * modules/posixver (EXTRA_DIST): Add posixver.h.
75772         * modules/quote (EXTRA_DIST): Add quote.h.
75773         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75774         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75775         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75776         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75777         regex_internal.h regexec.c.
75778         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75779         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75780         * modules/same (EXTRA_DIST): Add same.h.
75781         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75782         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75783         * modules/savedir (EXTRA_DIST): Add savedir.h.
75784         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75785         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75786         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75787         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75788         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75789         * modules/strdup (EXTRA_DIST): Add strdup.h.
75790         * modules/strftime (EXTRA_DIST): Add strftime.h.
75791         * modules/strndup (EXTRA_DIST): Add strndup.h.
75792         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75793         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75794         * modules/time_r (EXTRA_DIST): Add time_r.h.
75795         * modules/timespec (EXTRA_DIST): Add timespec.h.
75796         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75797         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75798         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75799         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75800         * modules/userspec (EXTRA_DIST): Add userspec.h.
75801         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75802         * modules/utimens (EXTRA_DIST): Add utimens.h.
75803         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75804         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75805         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75806         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75807         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75808         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75809         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75810         * modules/yesno (EXTRA_DIST): Add yesno.h.
75811
75812 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75813
75814         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75815
75816         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75817         * m4/dev-ino.m4, same-inode.m4: Remove.
75818
75819         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75820         * m4/acl.m4 (AC_FUNC_ACL):
75821         * m4/backupfile.m4 (gl_BACKUPFILE):
75822         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75823         * m4/canon-host.m4 (gl_CANON_HOST):
75824         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75825         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75826         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75827         * m4/cloexec.m4 (gl_CLOEXEC):
75828         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75829         * m4/closeout.m4 (gl_CLOSEOUT):
75830         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75831         * m4/dirname.m4 (gl_DIRNAME):
75832         * m4/exclude.m4 (gl_EXCLUDE):
75833         * m4/exitfail.m4 (gl_EXITFAIL):
75834         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75835         * m4/file-type.m4 (gl_FILE_TYPE):
75836         * m4/filemode.m4 (gl_FILEMODE):
75837         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75838         * m4/fpending.m4 (gl_FUNC_FPENDING):
75839         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75840         * m4/fts.m4 (gl_FUNC_FTS):
75841         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75842         * m4/getdate.m4 (gl_GETDATE):
75843         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75844         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75845         * m4/getpass.m4 (gl_FUNC_GETPASS):
75846         * m4/gettime.m4 (gl_GETTIME):
75847         * m4/getugroups.m4 (gl_GETUGROUPS):
75848         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75849         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75850         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75851         * m4/hash.m4 (gl_HASH):
75852         * m4/idcache.m4 (gl_IDCACHE):
75853         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75854         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75855         * m4/long-options.m4 (gl_LONG_OPTIONS):
75856         * m4/lstat.m4 (gl_FUNC_LSTAT):
75857         * m4/md5.m4 (gl_MD5):
75858         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75859         * m4/memcoll.m4 (gl_MEMCOLL):
75860         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75861         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75862         * m4/memxor.m4 (gl_MEMXOR):
75863         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75864         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75865         * m4/modechange.m4 (gl_MODECHANGE):
75866         * m4/mountlist.m4 (gl_MOUNTLIST):
75867         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75868         * m4/openat.m4 (gl_FUNC_OPENAT):
75869         * m4/pathmax.m4 (gl_PATHMAX):
75870         * m4/physmem.m4 (gl_PHYSMEM):
75871         * m4/posixtm.m4 (gl_POSIXTM):
75872         * m4/posixver.m4 (gl_POSIXVER):
75873         * m4/quote.m4 (gl_QUOTE):
75874         * m4/quotearg.m4 (gl_QUOTEARG):
75875         * m4/readtokens.m4 (gl_READTOKENS):
75876         * m4/readutmp.m4 (gl_READUTMP):
75877         * m4/regex.m4 (gl_REGEX):
75878         * m4/safe-read.m4 (gl_SAFE_READ):
75879         * m4/safe-write.m4 (gl_SAFE_WRITE):
75880         * m4/same.m4 (gl_SAME):
75881         * m4/save-cwd.m4 (gl_SAVE_CWD):
75882         * m4/savedir.m4 (gl_SAVEDIR):
75883         * m4/settime.m4 (gl_SETTIME):
75884         * m4/sha1.m4 (gl_SHA1):
75885         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75886         * m4/stat-macros.m4 (gl_STAT_MACROS):
75887         * m4/stat-time.m4 (gl_STAT_TIME):
75888         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75889         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75890         * m4/strdup.m4 (gl_FUNC_STRDUP):
75891         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75892         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75893         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75894         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75895         * m4/time_r.m4 (gl_TIME_R):
75896         * m4/timespec.m4 (gl_TIMESPEC):
75897         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75898         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75899         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75900         * m4/userspec.m4 (gl_USERSPEC):
75901         * m4/utimecmp.m4 (gl_UTIMECMP):
75902         * m4/utimens.m4 (gl_UTIMENS):
75903         * m4/xalloc.m4 (gl_XALLOC):
75904         * m4/xgetcwd.m4 (gl_XGETCWD):
75905         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75906         * m4/xreadlink.m4 (gl_XREADLINK):
75907         * m4/xstrtod.m4 (gl_XSTRTOD):
75908         * m4/yesno.m4 (gl_YESNO):
75909         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75910         to get the necessary .h files and whatnot.
75911
75912 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75913             Bruno Haible  <bruno@clisp.org>
75914
75915         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75916         /bin/sh understanding of '!' conditional negation.
75917
75918 2006-08-21  Jim Meyering  <jim@meyering.net>
75919
75920         * modules/openat (Depends-on): Really alphabetize.
75921
75922         * modules/acl (Depends-on): Add error and quote.
75923
75924         * check-module (find_included_lib_files): Add at-func.c to the
75925         ok-to-include-more-than-once white list.
75926
75927         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75928
75929 2006-08-21  Bruno Haible  <bruno@clisp.org>
75930
75931         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75932         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75933         Reported by Martin Lambers <marlam@marlam.de>.
75934
75935 2006-08-21  Bruno Haible  <bruno@clisp.org>
75936
75937         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75938         specify an installation location, don't emit a noinst_LIBRARIES or
75939         noinst_LTLIBRARIES assignment.
75940
75941 2006-08-21  Bruno Haible  <bruno@clisp.org>
75942
75943         BeOS portability.
75944         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75945         BeOS has mbrtowc() but no <wctype.h>.
75946
75947 2006-08-21  Bruno Haible  <bruno@clisp.org>
75948
75949         BeOS portability.
75950         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75951         exist.
75952
75953 2006-08-21  Bruno Haible  <bruno@clisp.org>
75954
75955         BeOS portability.
75956         * lib/mbchar.h: Include <wctype.h> only if it exists.
75957
75958 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75959
75960         Remove files that are no longer needed by their respective modules.
75961         * m4/obstack.m4: Remove.
75962         * m4/strerror_r.m4: Remove.
75963         * m4/uint32_t.m4: Remove.
75964         * m4/uintptr_t.m4: Remove.
75965         * m4/ullong_max.m4: Remove.
75966         * m4/xstrtoimax.m4: Remove.
75967         * m4/xstrtoumax.m4: Remove.
75968
75969         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75970         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75971         dependencies now capture this.
75972
75973         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75974         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75975         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75976         * m4/human.m4 (gl_HUMAN): Likewise.
75977         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75978         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75979
75980         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75981
75982         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75983         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75984         stdint.
75985         * m4/human.m4 (gl_HUMAN): Likewise.
75986         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75987         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75988         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75989         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75990         * m4/xstrtol (gl_XSTRTOL): Likewise.
75991
75992         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75993         AC_TYPE_LONG_LONG_INT.
75994         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75995         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75996         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75997         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75998
75999         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76000         on stdbool.
76001
76002         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76003         (gl_PREREQ_XSTRTOUL): Remove.
76004
76005         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76006
76007         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76008         mode.
76009
76010 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76011
76012         Add and change modules to make it easier for coreutils to use
76013         gnulib-tool.
76014         * modules/backupfile (Files): Remove m4/d-ino.m4.
76015         (Depends-on): Add d-ino.
76016         * modules/cycle-check (Depends-on): Add stdint.
76017         (lib_SOURCES): Add cycle-check.h.
76018         * modules/d-ino: New module.
76019         * modules/d-type: New module.
76020         * modules/error (Files): Remove m4/strerror_r.m4.
76021         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76022         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76023         m4/inttypes_h.m4, m4/uintmax_t.m4.
76024         (Depends-on): Add stdint.
76025         (lib_SOURCES): Add fsusage.h.
76026         * modules/getcwd (Files): Remove d-ino.m4.
76027         (Depends-on): Add d-ino.
76028         * modules/getndelim2 (Depends-on): Add stdint.
76029         * modules/glob (Files): Remove m4/d-type.m4.
76030         (Depends-on): Add d-type.
76031         * modules/host-os: New module.
76032         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76033         m4/inttypes_h.m4, m4/uintmax_t.m4.
76034         * Depends-on: Add stdint.
76035         (lib_SOURCES): Add human.h.
76036         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76037         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76038         m4/uintmax_t.m4, m4/ulonglong.m4.
76039         (Depends-on): Add stdint.
76040         (EXTRA_DIST): Add inttostr.h.
76041         * modules/lchmod: New module.
76042         * modules/link-follow: New module.
76043         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76044         (Depends-on): Add lchmod.
76045         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76046         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76047         (Depends-on): Add stdint.
76048         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76049         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76050         (Depends-on): Add stdint.
76051         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76052         * modules/perl: New module.
76053         * modules/regex (Depends-on): Add stdint.
76054         * modules/rmdir-errno: New module.
76055         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76056         m4/intmax_t.m4.
76057         (Depends-on): Add stdint.
76058         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76059         m4/uintmax_t.m4.
76060         (Depends-on): Add stdint.
76061         * modules/unlink-busy: New module.
76062         * modules/utimecmp (Depends-on): Add stdint.
76063         * modules/uptime: New module.
76064         * modules/winsz-ioctl: New module.
76065         * modules/winsz-termios: New module.
76066         * modules/xnanosleep (Depends-on): Add nanosleep.
76067         * modules/ullong_max: Remove.
76068         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76069         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76070         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76071         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76072         (Depends-on): Add inttypes.
76073         (lib_SOURCES): Add xstrtol.h.
76074         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76075         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76076         * MODULES.html.sh: Move 'assert' into the assert section.
76077         Move 'dummy' into the linking section.
76078         Remove ullong_max.
76079         Add section for compatibility checks for POSIX:2001 functions,
76080         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76081         winsz-ioctl, and winsz-termios into it.
76082         Add lchmod.
76083         Add top-level Misc section and put host-os, perl, and uptime
76084         into it.
76085
76086 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76087
76088         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76089         now assume the stdint module.  Do not include inttypes.h.
76090         * lib/fsusage.h: Likewise.
76091         * lib/getndelim2.c: Likewise.
76092         * lib/human.h: Likewise.
76093         * lib/inttostr.h: Likewise.
76094         * lib/obstack.c: Likewise.
76095         * lib/regex_internal.h: Likewise.
76096         * lib/tempname.c: Likewise.
76097         * lib/utimecmp.c: Likewise.
76098         * lib/xstrtol.h: Likewise.
76099
76100         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76101
76102         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76103         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76104         * lib/xtime.h: Likewise.
76105
76106 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76107
76108         * modules/openat (Files): Add lib/fchmodat.c.
76109         Fixes problem reported by Jay Youngman.
76110
76111 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76112
76113         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76114         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76115
76116 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76117             Bruno Haible  <bruno@clisp.org>
76118
76119         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76120         and is a script that invokes bison. Tighten the code. Add comments.
76121
76122 2006-08-18  Jim Meyering  <jim@meyering.net>
76123
76124         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76125         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76126         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76127         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76128
76129 2006-08-18  Bruno Haible  <bruno@clisp.org>
76130
76131         * modules/bison-i18n: New file.
76132         * MODULES.html.sh (Internationalization functions): Add it.
76133
76134 2006-08-18  Bruno Haible  <bruno@clisp.org>
76135
76136         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76137         sys/statvfs.h. When getmntinfo was found, check its declaration and
76138         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76139
76140 2006-08-18  Bruno Haible  <bruno@clisp.org>
76141
76142         * m4/bison-i18n.m4: New file, from bison.
76143
76144 2006-08-18  Bruno Haible  <bruno@clisp.org>
76145
76146         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76147         (ME_DUMMY): Treat "kernfs" as a dummy.
76148         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76149
76150 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76151
76152         Update from coreutils.
76153
76154         2006-08-15  Jim Meyering  <jim@meyering.net>
76155
76156         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76157
76158         2006-01-17  Jim Meyering  <jim@meyering.net>
76159
76160         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76161
76162         2006-01-11  Jim Meyering  <jim@meyering.net>
76163
76164         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76165         Check for the lchmod function.
76166
76167 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76168
76169         Update from coreutils.
76170
76171         * lib/__fpending.h: Add copyright notice.
76172         * lib/fprintftime.h: Likewise.
76173         * lib/savedir.c: Use (C) in copyright notice.
76174         * lib/savedir.h: Likewise.
76175
76176         2006-08-15  Jim Meyering  <jim@meyering.net>
76177
76178         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76179         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76180         in support of the EXPECTED_ERRNO macro.
76181         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76182         definitions.  Instead, define the appropriate symbols and include
76183         "at-func.c".
76184         * lib/mkdirat.c (mkdirat): Likewise.
76185         * lib/fchmodat.c (fchmodat): Likewise.
76186         (ENOSYS): Remove definition.
76187         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76188         it.  Don't include "unistd--.h" -- it wasn't ever used.
76189
76190         2006-01-17  Jim Meyering  <jim@meyering.net>
76191
76192         Rewrite fts.c not to change the current working directory,
76193         by using openat, fstatat, fdopendir, etc..
76194
76195         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76196         (HAVE_OPENAT_SUPPORT): Define.
76197         [_LIBC] (fchdir): Don't undef or define; no longer used.
76198         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76199         Now, this `function' always succeeds, and consumes its file descriptor
76200         parameter -- so callers must not close such FDs.  Update callers.
76201         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76202         (diropen): Add parameter, SP.  Adjust all callers.
76203         Implement using diropen_fd, rather than open.
76204         (fts_open): Initialize new member, fts_cwd_fd.
76205         Remove fts_rft-setting code.
76206         (fts_close): Close fts_cwd_fd, if necessary.
76207         (__opendir2): Define in terms of opendir or opendirat,
76208         depending on whether the FST_NOCHDIR flag is set.
76209         (fts_build): Since fts_safe_changedir consumes its FD, and since
76210         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76211         and close the dup'd file descriptor upon failure.
76212         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76213         (fts_safe_changedir): Tweak semantics to reflect that this function
76214         now calls cwd_advance_fd and hence consumes its FD argument.
76215         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76216         [struct FTS] (fts_rft): Remove now-unused member.
76217         [struct FTS] (fts_cycle.state): Improve comment.
76218
76219         * lib/openat.c (openat_needs_fchdir): New function.
76220         * lib/openat.h (openat_needs_fchdir): Declare it.
76221
76222 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76223
76224         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76225         Problem and fix reported by Pádraig Brady in
76226         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76227
76228 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76229
76230         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76231
76232 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76233
76234         * lib/memcoll.c (memcoll): Optimize for the common case where the
76235         arguments are bytewise equal.
76236
76237 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76238
76239         * doc/regexprops-generic.texi: Add a copyright notice.
76240
76241 2006-08-15  Bruno Haible  <bruno@clisp.org>
76242
76243         * modules/tmpdir (License): Change to LGPL.
76244
76245 2006-08-15  Bruno Haible  <bruno@clisp.org>
76246
76247         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76248         module.
76249
76250 2006-08-14  Simon Josefsson  <jas@extundo.com>
76251
76252         * config/srclist.txt: Add gnupload.
76253
76254 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76255
76256         Change copyright notice from LGPL 2 to GPL 2, since that's the
76257         standard form used in the gnulib repository.
76258         * tests/test-lock.c: Likewise.
76259         * tests/test-stdint.c: Likewise.
76260         * tests/test-tls.c: Likewise.
76261
76262         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
76263         prelude-manager.  User shorter URLs for GNU projects, without '?'.
76264         Add copyright notice.
76265
76266         * check-module: Add copyright notice.  Output a copyright
76267         notice if "--version" is specified.
76268         * modules/COPYING: New file.
76269         * tests/test-getaddrinfo.c: Add copyright notice.
76270         * tests/test-verify.c: Likewise.
76271
76272 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76273
76274         Change copyright notice from LGPL 2 to GPL 2, since that's the
76275         standard form used in the gnulib repository.
76276         * lib/lock.c: LGPL -> GPL.
76277         * lib/lock.h: Likewise.
76278         * lib/strnlen1.c: Likewise.
76279         * lib/strnlen1.h: Likewise.
76280         * lib/tls.c: Likewise.
76281         * lib/tls.h: Likewise.
76282         * lib/tmpdir.c: Likewise.
76283
76284         * lib/TODO: Remove; this belongs only in coreutils.
76285
76286 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76287
76288         Add copyright notices to long-enough files that lack them, since
76289         otherwise the files aren't clearly free.  Use the same notice that
76290         getdate.texi already uses.
76291         * doc/alloca-opt.texi: Add copyright notice.
76292         * doc/alloca.texi: Likewise.
76293         * doc/ctime.texi: Likewise.
76294         * doc/functions.texi: Likewise.
76295         * doc/gcd.texi: Likewise.
76296         * doc/gnulib-tool.texi: Likewise.
76297         * doc/inet_ntoa.texi: Likewise.
76298         * doc/visibility.texi: Likewise.
76299
76300         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76301         * doc/quote.texi: Add copyright notice.
76302
76303         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76304         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76305         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76306         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76307         is now obsolete, and give a pointer to the Sun list.
76308         Add copyright notice.
76309
76310 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76311
76312         * config/srclistvars.sh: Add copyright notice.
76313
76314 2006-08-14  Eric Blake  <ebb9@byu.net>
76315
76316         Import the following change from libc:
76317
76318         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76319
76320         Upstream bug 2997.
76321         * lib/misc/error.c: Add space between program name and message if file
76322         name is missing.
76323
76324 2006-08-12  Karl Berry  <karl@gnu.org>
76325
76326         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76327         remove, these originate in gnulib now.
76328
76329 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76330
76331         * doc/Makefile (standards.info standards.html standards.dvi):
76332         Also depend on make-stds.texi.
76333
76334 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76335
76336         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
76337         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
76338
76339         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
76340         in wchar_t.  Problem reported by Eric Blake.
76341
76342         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
76343         LEN is smaller than SIZE.  Suggested by Bruno Haible.
76344         Also, help the compiler to keep LEN in a register.
76345
76346 2006-08-11  Eric Blake  <ebb9@byu.net>
76347
76348         * users.txt: Sort.  Add tar.
76349
76350 2006-08-11  Bruno Haible  <bruno@clisp.org>
76351
76352         * users.txt: New file.
76353
76354 2006-08-11  Bruno Haible  <bruno@clisp.org>
76355
76356         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
76357         before <wchar.h>. Needed for OSF/1 and BSD/OS.
76358
76359 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76360
76361         * modules/snprintf (Depends-on): Remove minmax.
76362         (Maintainer): Add self and Bruno.
76363
76364 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76365
76366         * lib/.cppi-disable: Add snprintf.h, socket_.h.
76367         * lib/snprintf.c: Include <errno.h> and <limits.h>.
76368         (EOVERFLOW): Define if the system does not.
76369         Do not include "minmax.h"; it wasn't used.
76370         (snprintf): Don't assume size_t promotes to an unsigned type.
76371         Fix bug when generated string was too long for the buffer: the
76372         buffer's contents are supposed to be the initial prefix of the
76373         output.  Don't assume vasnprintf returns EOVERFLOW if the size
76374         exceeds INT_MAX; do the check ourselves.
76375
76376         Import the following changes from libc:
76377
76378         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
76379
76380         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
76381         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
76382         set wc to the byte which couldn't be converted.
76383         (re_string_reconstruct): Don't clear valid_raw_len before calling
76384         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
76385         tip_context using re_string_context_at.
76386
76387         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76388
76389         * lib/posix/regex.h: g++ still cannot handled [restrict].
76390
76391         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76392
76393         * lib/posix/regex.h: Remove special handling for VMS.
76394
76395 2006-08-10  Jim Meyering  <jim@meyering.net>
76396
76397         * modules/same-inode: New module.
76398         * modules/dev-ino: New module.
76399         * modules/cycle-check: Depend on these modules, rather than simply
76400         including their .h files.
76401         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76402         required via m4/cycle-check.m4.
76403         * modules/same: Depend on new same-inode module, rather than
76404         including same-inode.h.
76405         * modules/chdir-safer: New file.
76406
76407         * modules/chown (Depends-on): Add stat-macros.
76408
76409 2006-08-10  Jim Meyering  <jim@meyering.net>
76410
76411         * m4/cycle-check.m4: New file.
76412         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
76413         * m4/dev-ino.m4, m4/same-inode.m4: New files.
76414
76415 2006-08-10  Eric Blake  <ebb9@byu.net>
76416
76417         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
76418         in from original proposal.
76419
76420 2006-08-10  Eric Blake  <ebb9@byu.net>
76421         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76422
76423         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
76424         namespace.
76425
76426 2006-08-10  Bruno Haible  <bruno@clisp.org>
76427
76428         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76429         as well.
76430
76431 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76432
76433         Sync from coreutils.
76434
76435         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76436
76437         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
76438         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
76439
76440 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76441
76442         * modules/restrict: Remove; no longer needed now that we assume
76443         Autoconf 2.59 or later.
76444         * MODULES.html.sh: Remove 'restrict'.
76445         * modules/argp (Depends-on): Remove 'restrict'.
76446         * modules/base64 (Depends-on): Likewise.
76447         * modules/gc (Depends-on): Likewise.
76448         * modules/getaddrinfo (Depends-on): Likewise.
76449         * modules/glob (Depends-on): Likewise.
76450         * modules/inet_ntop (Depends-on): Likewise.
76451         * modules/inet_pton (Depends-on): Likewise.
76452         * modules/memxor (Depends-on): Likewise.
76453         * modules/regex (Depends-on): Likewise.
76454         * modules/strtok_r (Depends-on): Likewise.
76455         * modules/time_r (Depends-on): Likewise.
76456
76457 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76458
76459         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
76460         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
76461         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76462         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
76463         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
76464         * m4/memxor.m4 (gl_MEMXOR): Likewise.
76465         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
76466         gl_C_RESTRICT replaced by AC_C_RESTRICT.
76467
76468         Merge from coreutils.
76469         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
76470         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
76471         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
76472         * m4/time_r.m4 (gl_TIME_R): Likewise.
76473
76474 2006-08-09  Karl Berry  <karl@gnu.org>
76475
76476         * config/srclist.txt: no more gettext-tools, per Bruno.
76477
76478 2006-08-08  Eric Blake  <ebb9@byu.net>
76479
76480         * modules/verror: New module.
76481         * MODULES.html.sh: Document it.
76482
76483 2006-08-08  Eric Blake  <ebb9@byu.net>
76484
76485         * lib/verror.h, lib/verror.c: New files.
76486
76487 2006-08-08  Eric Blake  <ebb9@byu.net>
76488
76489         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76490         verror_at_line output complies with GNU Coding Standards even when
76491         file is NULL.
76492
76493 2006-08-07  Bruno Haible  <bruno@clisp.org>
76494
76495         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76496         versions of AIX.
76497         Reported by Ralf Wildenhues.
76498
76499 2006-08-07  Bruno Haible  <bruno@clisp.org>
76500
76501         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76502         in an AC_DEFUN. Needed so that the autoconf snippets can use
76503         AC_REQUIRE.
76504
76505 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76506
76507         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76508         Initialize pkgdata_DATA.
76509         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76510         overriding it.
76511
76512 2006-08-06  Eric Blake  <ebb9@byu.net>
76513
76514         * lib/error.h: Fold in some upstream changes from glibc.
76515         * lib/error.c: Likewise.
76516
76517 2006-08-04  Bruno Haible  <bruno@clisp.org>
76518
76519         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76520         Make the mostlyclean-local rule depend on mostlyclean-generic.
76521         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76522
76523 2006-07-31  Bruno Haible  <bruno@clisp.org>
76524
76525         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76526         <stdlib.h>, <string.h>.
76527
76528 2006-07-30  Bruno Haible  <bruno@clisp.org>
76529
76530         * modules/readlink (License): Change to LGPL.
76531
76532 2006-07-30  Bruno Haible  <bruno@clisp.org>
76533
76534         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76535         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76536         set PKGDATADIR to point to it.
76537
76538 2006-07-30  Bruno Haible  <bruno@clisp.org>
76539
76540         * modules/csharpexec (configure.ac): Comment out macro invocation.
76541         * modules/javaexec (configure.ac): Likewise.
76542         * modules/javacomp-script (configure.ac): Likewise.
76543
76544         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76545
76546 2006-07-30  Bruno Haible  <bruno@clisp.org>
76547
76548         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76549         linked-list.
76550
76551 2006-07-30  Bruno Haible  <bruno@clisp.org>
76552
76553         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76554
76555 2006-07-30  Bruno Haible  <bruno@clisp.org>
76556
76557         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76558         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76559         get removed.
76560
76561 2006-07-29  Bruno Haible  <bruno@clisp.org>
76562
76563         Make it possible for gnulib-tool to work with locally modified or
76564         augmented gnulib repositories.
76565         * gnulib-tool (func_usage): Document --local-dir option.
76566         (local_gnulib_dir): New variable.
76567         Handle --local-dir option.
76568         (func_lookup_file): New function.
76569         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76570         (func_get_description, func_get_filelist, func_get_description,
76571         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76572         func_get_automake_snippet, func_get_include_directive,
76573         func_get_license, func_get_maintainer): Use func_lookup_file.
76574         (func_import, func_create_testdir): Use func_lookup_file.
76575
76576 2006-07-29  Bruno Haible  <bruno@clisp.org>
76577
76578         * modules/setenv (Depends-on): Add unistd.
76579
76580 2006-07-29  Bruno Haible  <bruno@clisp.org>
76581
76582         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76583
76584 2006-07-29  Bruno Haible  <bruno@clisp.org>
76585
76586         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76587
76588 2006-07-29  Bruno Haible  <bruno@clisp.org>
76589
76590         * gnulib-tool (import, update): If there is no Makefile.am, look at
76591         aclocal.m4, instead of bailing out.
76592
76593 2006-07-29  Bruno Haible  <bruno@clisp.org>
76594
76595         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76596         Categorize the options by when they are useful.
76597
76598 2006-07-29  Bruno Haible  <bruno@clisp.org>
76599
76600         * gnulib-tool (func_usage): Document option --no-libtool.
76601         Handle option --no-libtool.
76602         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76603         for changed semantics of $libtool variable.
76604         (func_import): Likewise. If libtool is not used, show this through
76605         an option --no-libtool.
76606         (func_create_testdir): Update.
76607
76608 2006-07-29  Bruno Haible  <bruno@clisp.org>
76609
76610         * gnulib-tool (func_import): Extend error message about missing
76611         --doc-base.
76612
76613 2006-07-29  Bruno Haible  <bruno@clisp.org>
76614
76615         * gnulib-tool (func_import): Don't create the $docbase directory if
76616         there is no file to store there.
76617
76618 2006-07-29  Bruno Haible  <bruno@clisp.org>
76619
76620         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76621         relevant, look for configure.ac there, not in the current directory.
76622         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76623
76624 2006-07-29  Bruno Haible  <bruno@clisp.org>
76625
76626         * gnulib-tool (SORT): New variable.
76627         (func_usage): Undocument --assume-autoconf option.
76628         Remove --assume-autoconf option handling.
76629         (autoconf_minversion): Determine from the contents of configure.ac.
76630         (func_import): Remove autoconf_minversion handling.
76631         Suggested by Eric Blake.
76632
76633 2006-07-29  Bruno Haible  <bruno@clisp.org>
76634
76635         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76636
76637 2006-07-29  Bruno Haible  <bruno@clisp.org>
76638
76639         * config/srclist.txt (*setenv.[ch]): Remove rules.
76640
76641 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76642
76643         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76644
76645 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76646
76647         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76648         arpa/inet.h.
76649
76650 2006-07-28  Simon Josefsson  <jas@extundo.com>
76651
76652         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76653         * modules/inet_pton (Depends-on): Likewise.
76654
76655 2006-07-28  Simon Josefsson  <jas@extundo.com>
76656
76657         * m4/netinet_in_h.m4: New file.
76658
76659 2006-07-28  Simon Josefsson  <jas@extundo.com>
76660
76661         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76662         #include's.
76663
76664 2006-07-28  Simon Josefsson  <jas@extundo.com>
76665
76666         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76667         #include's.
76668
76669 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76670
76671         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76672         setgid on directories only if they set these bits.
76673         * lib/modechange.h: Remove obsolete comment about masks.
76674
76675 2006-07-28  Eric Blake  <ebb9@byu.net>
76676
76677         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76678         macro expansion.
76679
76680 2006-07-28  Bruno Haible  <bruno@clisp.org>
76681
76682         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76683
76684 2006-07-28  Bruno Haible  <bruno@clisp.org>
76685
76686         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76687
76688 2006-07-28  Bruno Haible  <bruno@clisp.org>
76689
76690         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76691         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76692         Define fallbacks.
76693         Avoids link error on FreeBSD 4.x.
76694         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76695
76696         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76697         encoding.
76698         * lib/mbswidth.c (iswcntrl): Likewise.
76699
76700 2006-07-27  Bruno Haible  <bruno@clisp.org>
76701
76702         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76703         test.
76704
76705 2006-07-27  Bruno Haible  <bruno@clisp.org>
76706
76707         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76708         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76709         defined.
76710
76711 2006-07-26  Eric Blake  <ebb9@byu.net>
76712
76713         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76714
76715 2006-07-26  Eric Blake  <ebb9@byu.net>
76716
76717         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76718         like mingw that lack mkstemp.
76719         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76720         avoid compilation warning on mingw.
76721
76722 2006-07-26  Bruno Haible  <bruno@clisp.org>
76723
76724         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76725         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76726         INT_FAST*_MIN, INTPTR_MIN.
76727
76728 2006-07-25  Bruno Haible  <bruno@clisp.org>
76729
76730         * modules/version-etc (Depends-on): Add stdarg.
76731
76732 2006-07-25  Bruno Haible  <bruno@clisp.org>
76733
76734         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76735         complex commands.
76736
76737 2006-07-25  Bruno Haible  <bruno@clisp.org>
76738
76739         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76740         defined in <stdarg.h> or config.h.
76741
76742 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76743
76744         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76745         (gl_STDIO_SAFER): Remove.
76746
76747 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76748
76749         * MODULES.html.sh (File stream based Input/Output):
76750         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76751         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76752         * modules/fopen-safer, modules/tmpfile-safer: New files.
76753         * modules/stdio-safer: Remove.
76754
76755 2006-07-24  Bruno Haible  <bruno@clisp.org>
76756
76757         * modules/tmpdir: New file.
76758         * MODULES.html.sh (File system functions): Add it.
76759
76760 2006-07-24  Bruno Haible  <bruno@clisp.org>
76761
76762         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76763         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76764
76765 2006-07-24  Bruno Haible  <bruno@clisp.org>
76766
76767         * modules/clean-temp: New file.
76768
76769 2006-07-24  Bruno Haible  <bruno@clisp.org>
76770
76771         * m4/tmpdir.m4: New file, from GNU gettext.
76772
76773 2006-07-24  Bruno Haible  <bruno@clisp.org>
76774
76775         * lib/tmpdir.h: New file, from GNU gettext.
76776         * lib/tmpdir.c: New file, from GNU gettext.
76777
76778 2006-07-24  Bruno Haible  <bruno@clisp.org>
76779
76780         * lib/clean-temp.h: New file, from GNU gettext.
76781         * lib/clean-temp.c: New file, from GNU gettext.
76782
76783 2006-07-23  Eric Blake  <ebb9@byu.net>
76784
76785         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76786         (Depends-on): Add binary-io.
76787
76788 2006-07-23  Eric Blake  <ebb9@byu.net>
76789
76790         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76791
76792 2006-07-23  Eric Blake  <ebb9@byu.net>
76793
76794         * lib/tmpfile-safer.c: New file.
76795         * lib/stdio-safer.h (fopen_safer): Add prototype.
76796         * lib/stdio--.h (tmpfile): Make safer.
76797
76798 2006-07-23  Bruno Haible  <bruno@clisp.org>
76799
76800         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76801         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76802         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76803         gl_linked_remove_at): Use it.
76804
76805 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76806         and Simon Josefsson <jas@extundo.com>
76807
76808         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76809
76810         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76811
76812 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76813
76814         * modules/close-stream: New file.
76815         * modules/closeout (Description): Make it clear that it exits
76816         with a diagnostic on error.
76817         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76818         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76819
76820 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76821
76822         * m4/close-stream.m4: New file.
76823
76824 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76825
76826         * lib/close-stream.c, lib/close-stream.h: New files.
76827
76828 2006-07-22  Bruno Haible  <bruno@clisp.org>
76829
76830         Merge from GNU gettext 0.15.
76831
76832         2006-05-01  Bruno Haible  <bruno@clisp.org>
76833
76834                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76835
76836         2006-07-22  Bruno Haible  <bruno@clisp.org>
76837
76838                 * modules/javaversion: New file.
76839                 * MODULES.html.sh (Java): Add javaversion.
76840
76841         2006-03-12  Bruno Haible  <bruno@clisp.org>
76842
76843                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76844
76845         2005-12-04  Bruno Haible  <bruno@clisp.org>
76846
76847                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76848                 (untested).
76849
76850         2006-06-21  Bruno Haible  <bruno@clisp.org>
76851
76852                 Avoid warnings from recent versions of mcs.
76853                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76854                 -o, -L, -r any more. Use options documented since mcs-1.0
76855                 instead. Similarly for -g.
76856
76857         2005-12-04  Bruno Haible  <bruno@clisp.org>
76858
76859                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76860                 .resources, not .resource.
76861
76862         2005-07-09  Bruno Haible  <bruno@clisp.org>
76863
76864                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76865                 add a .dll suffix.
76866                 Reported by Mark Junker <mjscod@gmx.de>.
76867
76868         2006-07-22  Bruno Haible  <bruno@clisp.org>
76869
76870                 * modules/gettext: Upgrade to gettext-0.15.
76871                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76872                 m4/visibility.m4.
76873                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76874
76875 2006-07-22  Bruno Haible  <bruno@clisp.org>
76876
76877         Merge from GNU gettext 0.15.
76878
76879         2006-03-25  Bruno Haible  <bruno@clisp.org>
76880
76881                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76882
76883         2006-07-21  Bruno Haible  <bruno@clisp.org>
76884
76885                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76886                 "1.1".
76887
76888         2006-05-09  Bruno Haible  <bruno@clisp.org>
76889
76890                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76891                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76892                 for the conftestver execution.
76893
76894         2006-05-01  Bruno Haible  <bruno@clisp.org>
76895
76896                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76897                 optional target-version argument. Verify that the compiler
76898                 groks source of the specified source-version, or add -source
76899                 option as necessary. Verify that the compiler produces
76900                 bytecode in the specified target-version, or add -target and
76901                 -source options as necessary. Make the result of the test
76902                 available as variable CONF_JAVAC. Also log error output in
76903                 config.log.
76904
76905         2006-03-11  Bruno Haible  <bruno@clisp.org>
76906
76907                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76908
76909         2006-05-09  Bruno Haible  <bruno@clisp.org>
76910
76911                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76912                 CLASSPATH_SEPARATOR to a semicolon.
76913
76914         2006-03-12  Bruno Haible  <bruno@clisp.org>
76915
76916                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76917                 available as variable CONF_JAVA, for subsequent autoconf
76918                 tests. Also log error output in config.log.
76919
76920         2006-07-19  Bruno Haible  <bruno@clisp.org>
76921
76922                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76923                 that getline works on glibc2 systems. Needed to avoid trouble
76924                 in relocatable.c.
76925                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76926
76927         2005-12-04  Bruno Haible  <bruno@clisp.org>
76928
76929                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76930                 launcher (untested).
76931
76932         2005-12-04  Bruno Haible  <bruno@clisp.org>
76933
76934                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76935
76936         2006-07-22  Bruno Haible  <bruno@clisp.org>
76937
76938                 * gettext.m4: Update from GNU gettext-0.15.
76939                 * nls.m4: Likewise.
76940                 * po.m4: Likewise.
76941                 * inttypes-pri.m4: Likewise.
76942                 * inttypes-h.m4: Renamed from inttypes.m4.
76943                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76944
76945 2006-07-22  Bruno Haible  <bruno@clisp.org>
76946
76947         Merge from GNU gettext 0.15.
76948
76949         2005-07-05  Bruno Haible  <bruno@clisp.org>
76950
76951                 * printf-args.c (printf_fetchargs): Work around broken
76952                 definition of wint_t on mingw.
76953
76954         2005-02-12  Bruno Haible  <bruno@clisp.org>
76955
76956                 * xallocsa.h: Add extern "C" for C++.
76957
76958         2006-05-17  Bruno Haible  <bruno@clisp.org>
76959
76960                 Cygwin portability.
76961                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76962
76963         2006-04-30  Bruno Haible  <bruno@clisp.org>
76964
76965                 * progreloc.c: Include <mach-o/dyld.h> if available.
76966                 (find_executable): Use _NSGetExecutablePath when possible.
76967
76968         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76969
76970                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76971                 function.
76972
76973         2005-12-29  Bruno Haible  <bruno@clisp.org>
76974
76975                 * progreloc.c (set_program_name_and_installdir): Fix
76976                 compilation error.
76977
76978         2005-12-04  Bruno Haible  <bruno@clisp.org>
76979
76980                 Cygwin portability.
76981                 * progreloc.c: Include <windows.h> also on Cygwin.
76982                 (find_executable): Add support for Cygwin.
76983                 (set_program_name_and_installdir): Handle also platforms with
76984                 nonempty EXEEXT.
76985
76986         2006-07-11  Bruno Haible  <bruno@clisp.org>
76987
76988                 * javacomp.c: Fix a comment.
76989                 Reported by Jim Meyering.
76990
76991         2006-04-30  Bruno Haible  <bruno@clisp.org>
76992
76993                 * javacomp.h (compile_java_class): Add source_version,
76994                 target_version arguments.
76995                 * javacomp.c: Rewritten to choose only a compiler that
76996                 respects the specified source_version and target_version.
76997
76998         2006-06-27  Bruno Haible  <bruno@clisp.org>
76999
77000                 Assume correct S_ISDIR macro.
77001                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77002
77003         2006-07-22  Bruno Haible  <bruno@clisp.org>
77004
77005                 * javaversion.h: New file, from GNU gettext.
77006                 * javaversion.c: New file, from GNU gettext.
77007                 * javaversion.java: New file, from GNU gettext.
77008                 * javaversion.class: New file, from GNU gettext.
77009
77010         2006-05-17  Bruno Haible  <bruno@clisp.org>
77011
77012                 Cygwin portability.
77013                 * javaexec.c (execute_java_class): Test for jview program
77014                 also on Cygwin.
77015
77016         2006-04-09  Bruno Haible  <bruno@clisp.org>
77017
77018                 * fatal-signal.c: Don't include string.h.
77019                 (at_fatal_signal): Use a copying loop instead of memcpy.
77020
77021         2005-12-04  Bruno Haible  <bruno@clisp.org>
77022
77023                 * csharpexec.c: Add support for 'clix' launcher (untested).
77024                 (execute_csharp_using_sscli): New function.
77025                 (execute_csharp_program): Call it.
77026
77027         2006-06-21  Bruno Haible  <bruno@clisp.org>
77028
77029                 Avoid warnings from recent versions of mcs.
77030                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77031                 -o, -L, -r any more. Use options documented since mcs-1.0
77032                 instead. Similarly for -g.
77033
77034         2005-07-09  Bruno Haible  <bruno@clisp.org>
77035
77036                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77037                 add a .dll suffix.
77038                 Reported by Mark Junker <mjscod@gmx.de>.
77039
77040         2006-06-17  Bruno Haible  <bruno@clisp.org>
77041
77042                 * config.charset: Update for NetBSD 3.0.
77043
77044         2006-05-17  Bruno Haible  <bruno@clisp.org>
77045
77046                 Cygwin portability.
77047                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77048
77049         2006-05-16  Bruno Haible  <bruno@clisp.org>
77050
77051                 * localcharset.c [CYGWIN]: Include <windows.h>.
77052                 (get_charset_aliases): For Cygwin, return the same CPxxx
77053                 aliases list as under WIN32.
77054                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77055                 the environment variables. Fall back to GetACP().
77056
77057         2006-04-05  Bruno Haible  <bruno@clisp.org>
77058
77059                 * config.charset: Update Juan Manuel Guerrero's address.
77060
77061         2005-02-12  Bruno Haible  <bruno@clisp.org>
77062
77063                 * allocsa.h: Add extern "C" for C++.
77064
77065         2005-02-10  Bruno Haible  <bruno@clisp.org>
77066
77067                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77068                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77069
77070         2006-07-22  Bruno Haible  <bruno@clisp.org>
77071
77072                 * gettext.h: Update to GNU gettext-0.15.
77073
77074 2006-07-22  Bruno Haible  <bruno@clisp.org>
77075
77076         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77077         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77078         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77079
77080 2006-07-21  Eric Blake  <ebb9@byu.net>
77081
77082         * modules/stdlib-safer: New file.
77083         * MODULES.html.sh (File stream based Input/Output): Add
77084         stdlib-safer.
77085
77086 2006-07-21  Eric Blake  <ebb9@byu.net>
77087
77088         * lib/stdlib-safer.h: New file from coreutils, required by
77089         stdlib--.h.
77090
77091 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77092
77093         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77094
77095 2006-07-20  Bruno Haible  <bruno@clisp.org>
77096
77097         * gnulib-tool: Recognize new option --assume-autoconf.
77098         (autoconf_minversion): New variable.
77099         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77100
77101 2006-07-20  Bruno Haible  <bruno@clisp.org>
77102
77103         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77104
77105 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77106
77107         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77108         Reindent and repaginate.
77109
77110 2006-07-19  Derek Price  <derek@ximbiot.com>
77111
77112         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77113         Correct grammar.
77114
77115 2006-07-17  Bruno Haible  <bruno@clisp.org>
77116
77117         * modules/list: New file.
77118         * modules/array-list: New file.
77119         * modules/carray-list, modules/carray-list-tests: New files.
77120         * modules/linked-list, modules/linked-list-tests: New files.
77121         * modules/avltree-list, modules/avltree-list-tests: New files.
77122         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77123         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77124         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77125         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77126         * modules/oset: New file.
77127         * modules/array-oset: New file.
77128         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77129         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77130         * tests/test-carray_list.c: New file.
77131         * tests/test-linked_list.c: New file.
77132         * tests/test-avltree_list.c: New file.
77133         * tests/test-rbtree_list.c: New file.
77134         * tests/test-linkedhash_list.c: New file.
77135         * tests/test-avltreehash_list.c: New file.
77136         * tests/test-rbtreehash_list.c: New file.
77137         * tests/test-avltree_oset.c: New file.
77138         * tests/test-rbtree_oset.c: New file.
77139         * MODULES.html.sh (Container data structures): New section.
77140
77141 2006-07-17  Bruno Haible  <bruno@clisp.org>
77142
77143         * m4/gl_list.m4: New file.
77144
77145 2006-07-17  Bruno Haible  <bruno@clisp.org>
77146
77147         * lib/gl_list.h: New file.
77148         * lib/gl_list.c: New file.
77149         * lib/gl_array_list.h: New file.
77150         * lib/gl_array_list.c: New file.
77151         * lib/gl_carray_list.h: New file.
77152         * lib/gl_carray_list.c: New file.
77153         * lib/gl_linked_list.h: New file.
77154         * lib/gl_linked_list.c: New file.
77155         * lib/gl_anylinked_list1.h: New file.
77156         * lib/gl_anylinked_list2.h: New file.
77157         * lib/gl_avltree_list.h: New file.
77158         * lib/gl_avltree_list.c: New file.
77159         * lib/gl_anyavltree_list1.h: New file.
77160         * lib/gl_anyavltree_list2.h: New file.
77161         * lib/gl_rbtree_list.h: New file.
77162         * lib/gl_rbtree_list.c: New file.
77163         * lib/gl_anyrbtree_list1.h: New file.
77164         * lib/gl_anyrbtree_list2.h: New file.
77165         * lib/gl_anytree_list1.h: New file.
77166         * lib/gl_anytree_list2.h: New file.
77167         * lib/gl_linkedhash_list.h: New file.
77168         * lib/gl_linkedhash_list.c: New file.
77169         * lib/gl_anyhash_list1.h: New file.
77170         * lib/gl_anyhash_list2.h: New file.
77171         * lib/gl_avltreehash_list.h: New file.
77172         * lib/gl_avltreehash_list.c: New file.
77173         * lib/gl_rbtreehash_list.h: New file.
77174         * lib/gl_rbtreehash_list.c: New file.
77175         * lib/gl_anytreehash_list1.h: New file.
77176         * lib/gl_anytreehash_list2.h: New file.
77177
77178         * lib/gl_oset.h: New file.
77179         * lib/gl_oset.c: New file.
77180         * lib/gl_array_oset.h: New file.
77181         * lib/gl_array_oset.c: New file.
77182         * lib/gl_avltree_oset.h: New file.
77183         * lib/gl_avltree_oset.c: New file.
77184         * lib/gl_rbtree_oset.h: New file.
77185         * lib/gl_rbtree_oset.c: New file.
77186         * lib/gl_anytree_oset.h: New file.
77187
77188 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77189
77190         * m4/mkancesdirs.m4: New file.
77191         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77192         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77193         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77194         it.
77195
77196 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77197
77198         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77199         * lib/mkancesdirs.h: New files.
77200         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77201         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77202         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77203         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77204         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77205         callers changed.  Revamp internals significantly, by not
77206         attempting to create directories that are temporarily more
77207         permissive than the final results.  Do not attempt to use
77208         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77209         This removes some race conditions, fixes some bugs, and simplifies
77210         things.  Use new dirchownmod function to do owner and mode changes.
77211         * lib/mkdir-p.h: Likewise.
77212         * lib/modechange.c (octal_to_mode): New function.
77213         (struct mode_change): New member mentioned.
77214         (make_node_op_equals): New arg mentioned.  All callers changed.
77215         (mode_compile): Keep track of which mode bits the user has explicitly
77216         mentioned.
77217         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77218         New arg PMODE_BITS, to keep track of which mode bits the user
77219         mentioned; it treats S_ISUID and S_ISGID speciall.
77220         All callers changed.
77221         * lib/modechange.h: Likewise.
77222
77223 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77224
77225         * MODULES.html.sh: Add mkancestors.
77226         * modules/mkancesdirs: New module.
77227         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77228         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77229         The chdir-safer and afs files are now orphans; I'll remove them
77230         unless someone speaks up.
77231         Add lib/dirchownmod.c, lib/dirchownmod.h.
77232         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77233         Add lchown, mkancesdirs.
77234         (Maintainer): Add self.
77235
77236 2006-07-15  Karl Berry  <karl@gnu.org>
77237
77238         * gnulib-tool: help message wording/arrangement.
77239
77240 2006-07-14  Simon Josefsson  <jas@extundo.com>
77241
77242         * doc/gnulib.texi (Libtool and Windows): New section.
77243
77244 2006-07-12  Simon Josefsson  <jas@extundo.com>
77245
77246         * modules/gendocs (License): Fix license, approved by Karl.
77247
77248 2006-07-12  Eric Blake  <ebb9@byu.net>
77249
77250         * MODULES.html.sh: Add gendocs.
77251
77252 2006-07-11  Eric Blake  <ebb9@byu.net>
77253
77254         * modules/fdl: New module, to install doc/fdl.texi.
77255         * MODULES.html.sh: Add new section for documentation modules.
77256         * gnulib-tool: Avoid space-tab.
77257         (--doc-base): New option, to manage files from doc.
77258
77259 2006-07-11  Eric Blake  <ebb9@byu.net>
77260
77261         * m4/absolute-header.m4: Fix comments to match recent change.
77262
77263 2006-07-11  Eric Blake  <ebb9@byu.net>
77264
77265         * gnulib-tool: List --doc-base before --tests-base.
77266
77267 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77268
77269         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77270
77271 2006-07-11  Bruno Haible  <bruno@clisp.org>
77272
77273         * README: Mention where to put documentation.
77274
77275 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77276
77277         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77278
77279 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77280
77281         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77282         to stdint.m4.
77283
77284 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77285
77286         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77287         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77288         "no/such/file/stdint.h" when there is no such file, so that
77289         the resulting C code can be parsed by dodgy compilers.
77290         Problems reported by Bob Proulx.
77291
77292 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77293
77294         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77295         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77296         macros into the GNU _D_EXACT_NAMLEN.
77297         * lib/savedir.c:  Likewise.
77298         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77299
77300 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77301         and Paul Eggert  <eggert@cs.ucla.edu>
77302
77303         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77304         * m4/savedir.m4:
77305         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77306         macros into the GNU _D_EXACT_NAMLEN.
77307
77308 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77309
77310         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77311         around the absolute name, to work around a problem with the HP-UX
77312         11.23 native C compiler, reported by Bob Proulx.
77313
77314 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77315
77316         * doc/maintain.texi, make-stds.texi: Sync from
77317         <http://savannah.gnu.org/projects/gnustandards>.
77318
77319 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77320
77321         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77322
77323 2006-07-09  Jim Meyering  <jim@meyering.net>
77324
77325         * m4/glob.m4: Remove a doubled word in a comment.
77326
77327 2006-07-09  Jim Meyering  <jim@meyering.net>
77328
77329         * lib/argp-pv.c: Remove a doubled word in a comment.
77330         * lib/check-version.c (check_version): Likewise.
77331         * lib/javacomp.c (compile_java_class): Likewise.
77332
77333 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77334
77335         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
77336         for the benefit of people using Autoconf 2.60.  If you want to
77337         support older Autoconf versions you can copy m4/onceonly_2_57.m4
77338         (or m4/onceonly.m4, if pre-2.57) manually.
77339
77340 2006-07-08  Jim Meyering  <jim@meyering.net>
77341
77342         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
77343         comment.
77344         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
77345         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
77346         comment.
77347
77348 2006-07-08  Jim Meyering  <jim@meyering.net>
77349
77350         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
77351
77352 2006-07-07  Simon Josefsson  <jas@extundo.com>
77353
77354         * tests/test-crc.c: Change expected crc value, the test vector
77355         were probably computed using the old broken crc.c?
77356
77357 2006-07-06  Simon Josefsson  <jas@extundo.com>
77358
77359         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
77360         now the canonical place for the M4 file).
77361
77362         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
77363         from the sys_socket dependency now.
77364
77365         * modules/inet_pton (Files): Ditto.
77366
77367         * modules/inet_ntop (Files): Ditto.
77368
77369 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77370
77371         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
77372         not gl_PREREQ_GETUSERSHELL.
77373
77374 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77375
77376         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
77377         with only one argument, for Autoconf 2.60.
77378         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
77379         expand to nothing, so add a shell command to avoid syntax error.
77380         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77381
77382 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77383
77384         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
77385
77386 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77387
77388         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77389         no longer needed.  Check for isblank decl.
77390         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77391         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77392         of existence.
77393
77394 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77395
77396         * lib/getloadavg.c: Use __VMS, not VMS.
77397         * lib/getopt.c: Likewise.
77398         * lib/getpagesize.h: Likewise.
77399         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77400         and probably does not work.
77401
77402 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77403
77404         * lib/.cppi-disable: Add wcwidth.
77405         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
77406         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
77407         (ISGRAPH): Remove.  All uses changed to isgraph.
77408         (FOLD) [!defined _LIBC]: Remove special case.
77409         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
77410         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
77411         HAVE_ISBLANK.
77412         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
77413         case.
77414
77415 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77416
77417         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
77418         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
77419         brackets.  Other minor changes to suppress some compiler
77420         warnings.
77421
77422 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77423         and Paul Eggert  <eggert@cs.ucla.edu>
77424
77425         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
77426         of invoking obsolescent AC_HEADER_DIRENT macro.
77427         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77428         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77429         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77430         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77431         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77432         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77433         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77434         * m4/readdir.m4: Remove; no longer needed.
77435
77436 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77437         and Paul Eggert  <eggert@cs.ucla.edu>
77438
77439         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
77440         Don't worry about this obsolete case any more.
77441         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
77442         directories.
77443         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
77444         worry about this obsolete case any more.
77445         * lib/fts.c: Likewise.
77446         * lib/getcwd.c: Likewise.
77447         * lib/glob.h: Likewise.
77448         * lib/savedir.c: Likewise.
77449
77450 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77451
77452         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
77453         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
77454         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
77455         needed.
77456         All uses removed.
77457         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77458         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77459         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
77460         needed.
77461         * m4/getdate.m4 (gl_GETDATE): Likewise.
77462         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77463         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77464         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77465         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77466         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77467         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77468         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
77469         needed.
77470
77471 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77472
77473         * lib/memcasecmp.c: Include <limits.h>.
77474         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
77475         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
77476         Don't assume isdigit succeeds only on '0' through '9'.
77477
77478 2006-07-05  Eric Blake  <ebb9@byu.net>
77479
77480         * modules/getaddrinfo (Depends-on): Add snprintf.
77481
77482 2006-07-05  Eric Blake  <ebb9@byu.net>
77483
77484         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77485         to avoid 'header present but could not be compiled' on cygwin.
77486
77487 2006-07-05  Eric Blake  <ebb9@byu.net>
77488
77489         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77490         missing from netdb.h.
77491         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77492
77493 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77494
77495         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77496         no longer needed.
77497         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77498         * m4/getdate.m4 (gl_GETDATE): Likewise.
77499         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77500         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77501         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77502         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77503         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77504
77505 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77506
77507         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77508         All uses of is_space replaced by isspace.
77509         * lib/exit.h: Don't talk about STDC_HEADERS.
77510         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77511         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77512         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77513         replaced by isprint etc.
77514         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77515         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77516         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77517         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77518         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77519         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77520
77521 2006-07-05  Bruno Haible  <bruno@clisp.org>
77522
77523         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77524         the function exists, before testing against AIX.
77525         Reported by Martin Lambers <marlam@marlam.de>.
77526
77527 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77528
77529         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77530         From Mark D. Baushke.
77531
77532 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77533
77534         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77535         to the absolute name, not just one, to bypass Sun C 5.8's
77536         "warning: #include of /usr/include/... may be non-portable".
77537
77538 2006-07-04  Eric Blake  <ebb9@byu.net>
77539
77540         * modules/dirname-tests: New test module.
77541         * tests/test-dirname.c: New file, replacing dirname.c
77542         TEST_DIRNAME section that was recently deleted.
77543
77544 2006-07-04  Bruno Haible  <bruno@clisp.org>
77545
77546         Assume ANSI C header files and <ctype.h> functions.
77547         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77548         (mbsnwidth): Use isprint, iscntrl instead.
77549
77550 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77551
77552         Merge from coreutils.
77553         * MODULES.html.sh: Add xstrtold.
77554         * modules/xstrtold: New file.
77555         * modules/cycle-check (Files): Add lib/same-inode.h.
77556         * modules/dirname (Files): Add m4/double-slash-root.m4.
77557         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77558         * modules/mkdir-p (Files): Add lib/same-inode.h.
77559         * modules/same (Files): Add lib/same-inode.h.
77560
77561 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77562
77563         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77564         This is to keep the terminology clean; POSIX talks about
77565         "absolute pathnames", not "full pathnames", but the GNU
77566         Coding Standards say to use "path" for something else;
77567         so use "absolute" to keep both sides happy.
77568         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77569         Set gl_absolute_header, not gl_full_header_path.
77570         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77571         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77572         All uses changed.
77573
77574         Merge from coreutils.
77575
77576         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77577
77578         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77579         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77580         want to require the building of c-strtod.o.
77581         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77582         needs -lm directly.
77583         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77584
77585         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77586
77587         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77588         --as-needed option if available.  Problem reported by Albert Chin in
77589         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77590         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77591         cc merely issues a bunch of annoying warnings for --as-needed
77592         (this problem was reported by Bob Proulx).  Also, try linking with
77593         -lm to detect a bug in binutils 2.16 (this problem was reported
77594         by Ralf Wildenhues).
77595
77596         2006-06-18  Jim Meyering  <jim@meyering.net>
77597
77598         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77599         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77600         macro.
77601         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77602         also check for glibc-2.4's abort-inducing bug.
77603
77604         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77605         Low-probability clean-up should be to use rmdir to get rid of
77606         the just-created directory, not unlink.
77607
77608         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77609         configure fail, and request a bug report to inform us about it.
77610         Add a comment that, barring reports to the contrary, in 2007 we'll
77611         assume ftruncate is universally available.
77612
77613         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77614
77615         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77616
77617         2006-03-12  Jim Meyering  <jim@meyering.net>
77618
77619         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77620         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77621         * m4/same.m4 (gl_SAME): Likewise.
77622         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77623
77624         2006-03-11  Eric Blake  <ebb9@byu.net>
77625
77626         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77627         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77628         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77629         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77630
77631 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77632
77633         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77634         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77635         reported by Mark D. Baushke, one in
77636         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77637
77638         Merge from coreutils.
77639
77640         * lib/.cppi-disable: Add stdint_.h.
77641         * lib/.cvsignore: Add stdint.h.
77642
77643         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77644
77645         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77646         both double and long double versions.
77647         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77648         * lib/xstrtold.c: New file.
77649         * lib/xstrtod.h (xstrtold): New decl.
77650
77651         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77652
77653         * lib/filemode.c (setst): Remove.
77654         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77655         (arguably) clearer, and the generated code is a bit smaller on my
77656         Debian GNU/Linux stable x86 host.
77657
77658         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77659
77660         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77661         Assume that filemode.h includes sys/types.h and sys/stat.h.
77662         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77663         (ftypelet): Reorder to put common cases first, for efficiency.
77664         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77665         to do 'M'.
77666         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77667         of 10, for compatibility with FreeBSD.  All callers changed.
77668         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77669         types that can't be deduced solely from st_mode.  First arg is now a
77670         const pointer.
77671         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77672         (strmode): Renamed from mode_string.
77673         (filemodestring): New decl.
77674         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77675         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77676         needed.
77677         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77678
77679         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77680
77681         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77682         fsusage.h now does that.  Include fsusage.h first, to test interface.
77683         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77684         at most one method (the old code could have generated decls that
77685         didn't conform to C89, not that this was ever exercised).
77686         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77687
77688         2006-03-19  Jim Meyering  <jim@meyering.net>
77689
77690         Work even in a chroot where d_ino values for entries in "/"
77691         don't match the stat.st_ino values for the same names.
77692         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77693         number, iterate through all entries again, using lstat instead.
77694         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77695         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77696
77697         * lib/getcwd.c (__getcwd): Clarify a comment.
77698         Use memcpy in place of a call to strcpy.
77699
77700         2006-03-12  Jim Meyering  <jim@meyering.net>
77701
77702         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77703         matches that of the current directory (which we're about to chdir ".."
77704         out of), then save the dev-ino of the parent, instead.
77705
77706         * lib/same-inode.h (SAME_INODE): New file/macro.
77707         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77708         Include "same-inode.h", instead.
77709         * lib/same.c: Likewise.
77710         * lib/cycle-check.h: Include "same-inode.h".
77711         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77712         * lib/cycle-check.c (SAME_INODE): Remove definition.
77713         * lib/root-dev-ino.h: Include "same-inode.h".
77714
77715         2006-03-11  Eric Blake  <ebb9@byu.net>
77716
77717         * lib/same.c (same_name): s/base_name/last_component/
77718         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77719         * lib/filenamecat.c (file_name_concat): Likewise.
77720
77721         2006-03-11  Eric Blake  <ebb9@byu.net>,
77722                     Paul Eggert  <eggert@cs.ucla.edu>
77723
77724         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77725         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77726         drive prefix.
77727         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77728         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77729         (last_component): New method.
77730         * lib/dirname.c (dir_len): Determine when drive letters need a
77731         subsequent slash.  Preserve // when it is special.
77732         (dir_name): Don't append dot when drive letter is absolute.
77733         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77734         * lib/basename.c (base_name): New semantics - malloc the result.
77735         Preserve // when it is special.  Preserve relative files that look
77736         like drive letters.
77737         (base_len): Preserve // when it is special.
77738         (last_component): New method, similar to old base_name semantics.
77739         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77740         base_name.  Strip redundant slashes from ///.
77741
77742 2006-07-03  Jim Meyering  <jim@meyering.net>
77743
77744         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77745         macro is used before the first cycle_check call.
77746
77747 2006-07-03  Eric Blake  <ebb9@byu.net>
77748
77749         * modules/dirname (Depends-on): Add xstrndup.
77750
77751 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77752
77753         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77754         test cases, so that config.log is a bit easier to follow.
77755
77756 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77757
77758         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77759         both are 64 bits, since this seems to be the tradition, and this
77760         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77761         we ever run into a host that prefers long long to long in this
77762         case, we'll need another configure-time test.  Problem reported by
77763         Jim Meyering.
77764
77765 2006-07-02  Eric Blake  <ebb9@byu.net>
77766
77767         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77768
77769 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77770
77771         * modules/inttypes (Depends-on): No longer depends on stdint.
77772         * modules/stdint (Description): Say more about assumptions.
77773         Say that the fast types might differ.  Say macros are used.
77774         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77775         (Makefile.am): Revise list of substituted symbols to match
77776         new stdint.m4.
77777         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77778         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77779         * tests/test-stdint.c (verify_same_types)
77780         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77781         the code conforms to C99/C89.
77782         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77783         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77784
77785 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77786
77787         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77788         but fix a bug, by requiring at least 64 bits.
77789         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77790         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77791         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77792         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77793
77794         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77795         changes.  Make 2.59 a prerequisite.  Check and substitute for
77796         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77797         inttypes.h.  Do not use special include files; just use the
77798         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77799         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77800         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77801         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77802         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77803         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77804         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77805         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77806         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77807         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77808         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77809         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77810         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77811         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77812         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77813         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77814         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77815         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77816         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77817         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77818         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77819         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77820         not check for things that C99 does not require, e.g., int8_t.  If
77821         a test isn't needed unless <stdint.h> isn't working, and is
77822         unlikely to be needed for any other reason, then don't do it
77823         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77824         size_t, since we assume C89 freestanding at least.  Do not check
77825         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77826         the right thing even if the types are not defined.  Instead use:
77827         (gl_STDINT_TYPE_PROPERTIES): New macro.
77828         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77829         testing whether <sys/types.h> clashes, as Autoconf does this for
77830         us now.  All uses removed.
77831         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77832         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77833         (gl_CHECK_TYPE_SAME):
77834         Remove; no longer needed.
77835         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77836         exists, since we'll return 0 anyway in that case.
77837         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77838
77839 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77840
77841         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77842         possible collision with system files.
77843         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77844         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77845         WCHAR_MIN and WCHAR_MAX in this case.
77846         (<stddef.h>): Do not include; no longer needed.
77847         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77848         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77849         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77850         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77851         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77852         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77853         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77854         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77855         !defined(__c99))]: Include in this case too, since it's harmless
77856         now.
77857         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77858         dangerous to do so.
77859         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77860         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77861         (_STDINT_MIN, _STDINT_MAX): New macros.
77862         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77863         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77864         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77865         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77866         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77867         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77868         macros, not typedefs; this simplifies things quite a bit.
77869         Use long int for all types narrower than int64_t.
77870         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77871         Define in terms of long long int or int64_t or long int,
77872         not int64_t or int32_t.  This saves some compile-time testing.
77873         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77874         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77875         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77876         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77877         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77878         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77879         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77880         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77881         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77882         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77883         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77884         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77885         undef any previous version and define our own version, for
77886         simplicity and consistency with the new macros for types.
77887         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77888         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77889         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77890         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77891         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77892         @WINT_T_SUFFIX@ to keep things simple here.
77893         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77894         Simplify by assuming typical 8/16/32/64 host, since we're
77895         already doing that elsewhere anyway.
77896         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77897         and assume long long int is 64 bits if available.  This
77898         speeds up 'configure'.
77899
77900 2006-07-01  Eric Blake  <ebb9@byu.net>
77901
77902         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77903         Reported by Andreas Buening.
77904
77905 2006-07-01  Eric Blake  <ebb9@byu.net>
77906
77907         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77908
77909 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77910
77911         * lib/getaddrinfo.c: fixed typo
77912
77913 2006-06-29  Jim Meyering  <jim@meyering.net>
77914
77915         * modules/strftime (Maintainer): Add my name, since with the
77916         FPRINTFTIME changes strftime.c has forked from glibc.
77917
77918 2006-06-29  Eric Blake  <ebb9@byu.net>
77919
77920         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77921
77922 2006-06-29  Eric Blake  <ebb9@byu.net>
77923
77924         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77925
77926 2006-06-29  Eric Blake  <ebb9@byu.net>
77927
77928         * lib/stat_.h: New file.
77929
77930 2006-06-29  Eric Blake  <ebb9@byu.net>
77931
77932         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77933         unused static function.
77934
77935 2006-06-29  Eric Blake  <ebb9@byu.net>
77936
77937         * doc/functions.texi (Function Portability): Document missing lstat
77938         on mingw.
77939
77940 2006-06-29  Eric Blake  <ebb9@byu.net>
77941
77942         * MODULES.html.sh: Add sys_stat.
77943         * modules/sys_stat: New module.
77944         * modules/mkstemp (Depends-on): Add sys_stat.
77945
77946 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77947
77948         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77949
77950 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77951
77952         * m4/c-bs-a.m4: Removed.
77953
77954 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77955
77956         * lib/strftime.c: Assume strftime() exists.
77957
77958 2006-06-29  Derek Price  <derek@ximbiot.com>
77959
77960         * modules/c-bs-a: Removed - \a is C89.
77961         * MODULES.html.sh: Remove c-bs-a.
77962
77963 2006-06-29  Bruno Haible  <bruno@clisp.org>
77964
77965         * modules/wcwidth (License): Change to LGPL.
77966
77967 2006-06-28  Simon Josefsson  <jas@extundo.com>
77968
77969         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77970         on _WIN32.
77971
77972         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77973         getnameinfo.
77974
77975 2006-06-28  Simon Josefsson  <jas@extundo.com>
77976
77977         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77978
77979 2006-06-28  Simon Josefsson  <jas@extundo.com>
77980
77981         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77982         functions there.  It will succeed on Windows XP, but on Windows
77983         2000 and (presumably) earlier, it will fail, and use the internal
77984         re-implementation.
77985         (use_win32_p): New function.
77986         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77987         Support AI_NUMERICSERV to disable getservbyname.
77988         (getnameinfo): New function, only supports
77989         NI_NUMERICHOST|NI_NUMERICSERV for now.
77990
77991         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77992         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77993         getnameinfo.
77994
77995 2006-06-28  Eric Blake  <ebb9@byu.net>
77996
77997         * modules/wcwidth: New file.
77998         * modules/mbchar (Depends-on): Add wcwidth.
77999         * modules/mbswidth (Depends-on): Add wcwidth.
78000         * MODULES.html.sh: Add wcwidth.
78001
78002 2006-06-28  Eric Blake  <ebb9@byu.net>
78003
78004         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78006
78007 2006-06-28  Eric Blake  <ebb9@byu.net>
78008
78009         * lib/xvasprintf.h: Fix comments.
78010
78011 2006-06-28  Eric Blake  <ebb9@byu.net>
78012
78013         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78014         * lib/mbswidth.c (wcwidth): Move from here...
78015         * lib/wcwidth.h: ...to this new file.
78016
78017 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78018
78019         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78020
78021         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78022         it's obsolete.
78023         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78024
78025 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78026
78027         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78028         Autoconf 2.60 says this stuff was obsolete.
78029
78030 2006-06-28  Bruno Haible  <bruno@clisp.org>
78031
78032         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78033
78034 2006-06-28  Bruno Haible  <bruno@clisp.org>
78035
78036         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78037         gt_TYPE_WCHAR_T.
78038
78039 2006-06-28  Bruno Haible  <bruno@clisp.org>
78040
78041         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78042         declaration for wcwidth.
78043         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78044
78045 2006-06-28  Bruno Haible  <bruno@clisp.org>
78046
78047         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78048         (mkdir): Define using _mkdir.
78049
78050 2006-06-28  Bruno Haible  <bruno@clisp.org>
78051
78052         * lib/getaddrinfo.h: Fix POSIX URL.
78053         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78054         _WIN32.
78055         (use_win32_p): Make static.
78056         (getaddrinfo): Reject service name if it is empty or does not consist
78057         solely of decimal digits, or if its value is > 65535.
78058         (getnameinfo): Remove useless casts.
78059
78060 2006-06-27  Simon Josefsson  <jas@extundo.com>
78061
78062         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78063         Eggert and Martin Lambers.
78064
78065 2006-06-27  Simon Josefsson  <jas@extundo.com>
78066
78067         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78068         Eggert and Martin Lambers.
78069
78070 2006-06-27  Bruno Haible  <bruno@clisp.org>
78071
78072         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78073         result to 0, not to empty.
78074         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78075
78076 2006-06-27  Bruno Haible  <bruno@clisp.org>
78077
78078         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78079
78080 2006-06-26  Simon Josefsson  <jas@extundo.com>
78081
78082         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78083         present.
78084
78085 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78086
78087         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78088         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78089         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78090
78091 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78092
78093         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78094
78095 2006-06-26  Bruno Haible  <bruno@clisp.org>
78096
78097         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78098
78099 2006-06-26  Bruno Haible  <bruno@clisp.org>
78100
78101         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78102
78103 2006-06-26  Bruno Haible  <bruno@clisp.org>
78104
78105         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78106         SGI C compiler in pre-C99 mode.
78107         Suggested by Mark D. Baushke and Larry Jones.
78108
78109 2006-06-26  Bruno Haible  <bruno@clisp.org>
78110
78111         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78112         WCHAR_MAX.
78113         Reported by Mark D. Baushke and Larry Jones.
78114
78115 2006-06-26  Bruno Haible  <bruno@clisp.org>
78116
78117         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78118         in pre-C99 mode.
78119         Suggested by Mark D. Baushke and Larry Jones.
78120
78121 2006-06-23  Simon Josefsson  <jas@extundo.com>
78122             Bruno Haible  <bruno@clisp.org>
78123
78124         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78125         Emit mostlyclean-local rule.
78126         (func_emit_tests_Makefile_am): Likewise.
78127         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78128
78129 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78130
78131         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78132
78133 2006-06-23  Bruno Haible  <bruno@clisp.org>
78134
78135         * tests/test-stdint.c: Update to match ISO C 99 Technical
78136         Corrigendum 1.
78137
78138 2006-06-23  Bruno Haible  <bruno@clisp.org>
78139
78140         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78141
78142 2006-06-23  Bruno Haible  <bruno@clisp.org>
78143
78144         * lib/stdint_.h: Treat IRIX like OpenBSD.
78145
78146 2006-06-23  Bruno Haible  <bruno@clisp.org>
78147
78148         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78149         ISO C 99 Technical Corrigendum 1.
78150
78151 2006-06-22  Simon Josefsson  <jas@extundo.com>
78152
78153         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78154         MinGW.
78155
78156 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78157
78158         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78159         needed.  Some compiler complained about some of them.  Problem reported
78160         by Larry Jones in
78161         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78162
78163 2006-06-21  Simon Josefsson  <jas@extundo.com>
78164
78165         * tests/test-getaddrinfo.c: New file.
78166
78167         * modules/getaddrinfo-tests: New file.
78168
78169         * MODULES.html.sh: Add inet_pton.
78170
78171         * modules/inet_pton: New file.
78172
78173 2006-06-21  Simon Josefsson  <jas@extundo.com>
78174
78175         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78176         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78177         of using the (limited) gnulib implementation on Windows XP.
78178
78179         * m4/inet_pton.m4: New file.
78180
78181 2006-06-21  Simon Josefsson  <jas@extundo.com>
78182
78183         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78184         variable.
78185
78186         * lib/socket_.h: Don't define WINVER.
78187
78188         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78189         slightly modified to work in gnulib.
78190
78191 2006-06-21  Simon Josefsson  <jas@extundo.com>
78192
78193         * doc/gnulib.texi (Windows sockets): Add.
78194
78195 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78196
78197         * lib/read-file.c (fread_file): Start with buffer allocation of
78198         0 bytes rather than 1 byte; this simplifies the code.
78199         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78200         code to free buffer and save/restore errno.
78201         (internal_read_file): Remove unused local.
78202
78203 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78204
78205         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78206         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78207         Problem reported by Denis Excoffier in
78208         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78209
78210 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78211
78212         * modules/sys_socket, modules/socklen: Include sys/types since
78213         FreeBSD 4.x's sys/socket.h needs it.
78214
78215 2006-06-19  Simon Josefsson  <jas@extundo.com>
78216
78217         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78218
78219 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78220
78221         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78222
78223 2006-06-19  Bruno Haible  <bruno@clisp.org>
78224
78225         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78226         and FULL_PATH_INTTYPES_H in angle brackets.
78227         Reported by Mark D. Baushke <mdb@gnu.org>.
78228
78229 2006-06-17  Eric Blake  <ebb9@byu.net>
78230
78231         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78232         errno.
78233
78234 2006-06-17  Bruno Haible  <bruno@clisp.org>
78235
78236         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78237         <sys/inttypes.h>.
78238
78239 2006-06-17  Bruno Haible  <bruno@clisp.org>
78240
78241         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78242         whether errno is declared. Assume <errno.h> declares errno.
78243
78244 2006-06-17  Bruno Haible  <bruno@clisp.org>
78245
78246         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78247
78248 2006-06-17  Bruno Haible  <bruno@clisp.org>
78249
78250         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78251         problem on Solaris 2.5.1.
78252
78253 2006-06-16  Eric Blake  <ebb9@byu.net>
78254
78255         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
78256         * lib/unicodeio.c [!defined errno]: Likewise.
78257         * lib/strtol.c [!defined errno]: Likewise.
78258         * lib/strtod.c [!defined errno]: Likewise.
78259
78260 2006-06-15  Eric Blake  <ebb9@byu.net>
78261
78262         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
78263
78264 2006-06-15  Eric Blake  <ebb9@byu.net>
78265
78266         * config/srclist.txt (ssize_t.m4): Lose sync.
78267
78268 2006-06-15  Bruno Haible  <bruno@clisp.org>
78269
78270         * modules/stdint (Files): Include m4/full-header-path.m4,
78271         m4/size_max.m4, m4/wchar_t.m4.
78272         (Makefile.am): Many more substitutions.
78273         * modules/stdint-tests: New file.
78274         * tests/test-stdint.c: New file.
78275
78276 2006-06-15  Bruno Haible  <bruno@clisp.org>
78277
78278         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78279         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78280         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78281         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78282         gl_CHECK_TYPE_SAME): New macros.
78283
78284 2006-06-15  Bruno Haible  <bruno@clisp.org>
78285
78286         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78287
78288 2006-06-15  Bruno Haible  <bruno@clisp.org>
78289
78290         * lib/stdint_.h: Rewritten to be fully auto-configured.
78291         Fixes bug on HP-UX/IA64.
78292
78293 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78294
78295         * lib/getdate.y (__attribute__): Don't define if already defined.
78296         Problem reported by Larry Jones.
78297         * lib/utimens.c (__attribute__): Likewise.
78298
78299 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78300
78301         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78302         reported by Andreas Schwab.
78303
78304 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78305             Bruno Haible  <bruno@clisp.org>
78306
78307         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78308         check for the declaration of strnlen and a run test that exposes the
78309         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78310         rpl_strndup.
78311
78312 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78313             Bruno Haible  <bruno@clisp.org>
78314
78315         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78316
78317 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78318
78319         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78320         compile test, for Tru64 4.0D.
78321
78322 2006-05-28  Karl Berry  <karl@gnu.org>
78323
78324         * config/srclist.txt (printf-args.c): lose sync.
78325
78326 2006-05-26  Martin Lambers  <marlam@marlam.de>
78327
78328         * lib/getpass.c: Updates the test for the native W32 API, and adds
78329         missing includes, thus fixing compilation warnings.
78330
78331 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78332
78333         * lib/exclude.c (exclude_fnmatch): New function.
78334         (excluded_file_name): Call exclude_fnmatch.
78335         * lib/exclude.h (excluded_file_name): New prototype
78336
78337 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
78338
78339         * lib/tempname.c (small_open, large_open): New macros.
78340         (__open, __open64) [!_LIBC]: Remove.
78341         (__gen_tempname): Use small_open and large_open instead of __open
78342         and __open64.  This fixes a portability bug on HP-UX 11.11i
78343         reported by Simon Wing-Tang in
78344         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
78345
78346 2006-05-24  Bruno Haible  <bruno@clisp.org>
78347
78348         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
78349         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
78350         Reported by Thorsten Maerz <torte@netztorte.de> via
78351         Aaron Stone <aaron@serendipity.cx>.
78352
78353 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78354
78355         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
78356         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
78357         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
78358         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
78359         not really conditional on the cache.
78360         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
78361
78362 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78363
78364         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
78365         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
78366         (my_usleep): Don't mishandle maximum value.
78367
78368 2006-05-19  Jim Meyering  <jim@meyering.net>
78369
78370         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
78371
78372 2006-05-17  Bruno Haible  <bruno@clisp.org>
78373
78374         Cygwin portability.
78375         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
78376
78377 2006-05-17  Bruno Haible  <bruno@clisp.org>
78378
78379         * lib/stdint_.h: Fix recognition of Cygwin.
78380
78381 2006-05-15  Bruno Haible  <bruno@clisp.org>
78382
78383         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
78384         on libtool patch by Ralf Wildenhues.
78385
78386 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78387
78388         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78389         test for C99 conformance; (bool) 0.5 is an integer constant
78390         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78391         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78392
78393 2006-05-11  Simon Josefsson  <jas@extundo.com>
78394
78395         * m4/xvasprintf.m4: Fix obvious typo.
78396
78397 2006-05-11  Jim Meyering  <jim@meyering.net>
78398
78399         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78400         James Lemley.
78401
78402 2006-05-10  Simon Josefsson  <jas@extundo.com>
78403
78404         * lib/md4.c: Typo fix, update copyright years.
78405         (K1, K2): Don't use L because it turn computations into 64-bit on
78406         64-bit platforms.
78407
78408 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
78409
78410         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
78411         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
78412         unwanted sign propagation, e.g., on hosts with 64-bit int.
78413         There still are some problems with reeelly weird theoretical hosts
78414         (e.g., 33-bit int) but it's not worth worrying about now.
78415         * lib/sha1.c (rol): Likewise.
78416         (K1, K2, K3, K4): Remove unnecessary L suffix.
78417
78418 2006-05-10  Bruno Haible  <bruno@clisp.org>
78419
78420         * lib/des.c: Cast to avoid warnings.
78421
78422 2006-05-09  Bruno Haible  <bruno@clisp.org>
78423
78424         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
78425         (Depends-on): Depend also on xsize, stdarg.
78426         (configure.ac): Add gl_XVASPRINTF.
78427
78428 2006-05-09  Bruno Haible  <bruno@clisp.org>
78429
78430         * m4/xvasprintf.m4: New file.
78431
78432 2006-05-09  Bruno Haible  <bruno@clisp.org>
78433
78434         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78435         (EOVERFLOW): Define fallback value.
78436         (xstrcat): New function.
78437         (xvasprintf): Recognize the special case of a string concatenation.
78438
78439 2006-05-08  Eric Blake  <ebb9@byu.net>
78440
78441         * gnulib-tool (func_version): Base copyright year on CVS date.
78442         (func_emit_copyright_notice): New function.
78443         (func_emit_lib_Makefile_am): Use it.
78444         (func_emit_tests_Makefile_am): Likewise.
78445         (func_import): Likewise.
78446
78447 2006-05-08  Bruno Haible  <bruno@clisp.org>
78448
78449         * modules/stdarg: New file.
78450         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
78451
78452 2006-05-08  Bruno Haible  <bruno@clisp.org>
78453
78454         * m4/stdarg.m4: New file, from GNU gettext.
78455
78456 2006-05-08  Bruno Haible  <bruno@clisp.org>
78457
78458         * config/srclist.txt (build-aux/config.rpath): different from latest
78459         release.
78460
78461 2006-05-08  Bruno Haible  <bruno@clisp.org>
78462
78463         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
78464
78465 2006-05-05  Jim Meyering  <jim@meyering.net>
78466
78467         * m4/warning.m4: New file, derived from bison's file by the same name.
78468
78469 2006-05-03  Bruno Haible  <bruno@clisp.org>
78470
78471         * lib/stdint_.h: Shorter URL.
78472         * lib/inttypes.h: Likewise.
78473
78474 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78475
78476         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
78477
78478 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78479
78480         * lib/verify.h: Document the internals better.  Most of this change
78481         was written by Bruno Haible.
78482
78483 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78484
78485         * doc/verify.texi: New file, partly based on a proposal by
78486         Bruno Haible.
78487
78488 2006-05-02  Bruno Haible  <bruno@clisp.org>
78489
78490         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78491         test from here...
78492         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78493
78494 2006-04-29  Bruno Haible  <bruno@clisp.org>
78495
78496         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78497         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78498
78499 2006-04-29  Bruno Haible  <bruno@clisp.org>
78500
78501         * gnulib-tool: Make --update option actually work.
78502
78503 2006-04-29  Bruno Haible  <bruno@clisp.org>
78504
78505         * doc/gcd.texi: New file.
78506         * doc/gnulib.texi: Include it.
78507
78508 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78509
78510         * lib/getdate.y (get_date): When adding relative date, start with the
78511         initial time, not with the result of the first mktime call.
78512
78513 2006-04-25  Bruno Haible  <bruno@clisp.org>
78514
78515         * gnulib-tool (func_import): Output the include directives in three
78516         blocks, sorted separately.
78517         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78518
78519 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78520
78521         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78522         to define main with arguments, for C++.  Reported by Eric Blake.
78523         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78524         Prefer 'int main ()' to 'int main (void)', for C++.
78525         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78526         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78527         for 'main', for C99 and C++.
78528
78529 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78530
78531         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78532         Don't assume that exit status -1 is valid.
78533         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78534         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78535         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78536         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78537         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78538         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78539         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78540         functions can be used without declaring them, or that you can
78541         exit with status -1.
78542         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78543
78544 2006-04-24  Karl Berry  <karl@gnu.org>
78545
78546         * config/srclist.txt (longdouble.m4): sync lost.
78547
78548 2006-04-24  Eric Blake  <ebb9@byu.net>
78549
78550         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78551
78552 2006-04-24  Bruno Haible  <bruno@clisp.org>
78553
78554         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78555         poll() implementation in AIX.
78556         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78557
78558 2006-04-24  Bruno Haible  <bruno@clisp.org>
78559
78560         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78561         assigned exactly once.
78562
78563 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78564             Bruno Haible  <bruno@clisp.org>
78565
78566         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78567         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78568         for AM_CPPFLAGS.
78569
78570 2006-04-23  Bruno Haible  <bruno@clisp.org>
78571
78572         * modules/copy-file: Depend on unistd.
78573         * modules/execute: Likewise.
78574         * modules/fatal-signal: Likewise.
78575         * modules/findprog: Likewise.
78576         * modules/mkdtemp : Likewise.
78577         * modules/pipe: Likewise.
78578         * modules/wait-process: Likewise.
78579
78580 2006-04-23  Bruno Haible  <bruno@clisp.org>
78581
78582         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78583         condition was already detected.
78584         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78585
78586 2006-04-23  Bruno Haible  <bruno@clisp.org>
78587
78588         * lib/copy-file.c: Include <unistd.h> unconditionally.
78589         * lib/execute.c: Likewise.
78590         * lib/fatal-signal.c: Likewise.
78591         * lib/findprog.c: Likewise.
78592         * lib/mkdtemp.c: Likewise.
78593         * lib/pipe.h: Likewise.
78594         * lib/pipe.c: Likewise.
78595         * lib/wait-process.h: Likewise.
78596
78597 2006-04-23  Bruno Haible  <bruno@clisp.org>
78598
78599         * gnulib-tool (func_usage): Fix --import description. Document
78600         --update.
78601         (func_import): Create temporary file in a temporary directory, if
78602         --dry-run is specified. Silence errors from 'grep' when there are no
78603         m4 files in $m4dir.
78604         (func_create_testdir): Silence errors from 'grep' when there are no
78605         m4 files in $m4dir.
78606         Reported by Karl Berry <karl@freefriends.org>.
78607
78608 2006-04-20  Bruno Haible  <bruno@clisp.org>
78609
78610         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78611         one argument, so that the code will be portable to Autoconf 2.60.
78612         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78613         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78614         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78615
78616 2006-04-19  Derek Price  <derek@ximbiot.com>
78617             Eric Blake  <ebb9@byu.net>
78618
78619         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78620         rather than "/full/path.h".  Update comment to match.  Shorten &
78621         generalize m4_translit call via AS_TR_CPP.
78622
78623 2006-04-19  Derek Price  <derek@ximbiot.com>
78624             Eric Blake  <ebb9@byu.net>
78625
78626         * lib/inttypes.h: Correct grammar in comment.
78627
78628 2006-04-18  Derek Price  <derek@ximbiot.com>
78629             Paul Eggert  <eggert@cs.ucla.edu>
78630
78631         * modules/inttypes: New file.
78632         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78633
78634 2006-04-18  Derek Price  <derek@ximbiot.com>
78635             Paul Eggert  <eggert@cs.ucla.edu>
78636
78637         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78638         New files.
78639
78640 2006-04-18  Derek Price  <derek@ximbiot.com>
78641             Paul Eggert  <eggert@cs.ucla.edu>
78642
78643         * lib/inttypes.h: New file.
78644         * lib/strtoimax.c: Assume <inttypes.h>.
78645
78646 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78647
78648         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78649         isn't mounted.  Problem reported by Kir Kolyshkin.
78650
78651 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78652
78653         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78654         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78655         Derek R. Price.
78656         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78657         implementation.
78658
78659 2006-04-12  Eric Blake  <ebb9@byu.net>
78660
78661         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78662         is now done automatically by the corresponding Autoconf macro.
78663
78664 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78665
78666         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78667         time_r.h.
78668
78669 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78670
78671         Merge regex changes from libc, removing some of our
78672         POSIX-conformance changes that were rejected and redoing them in a
78673         less-intrusive way.
78674
78675         * lib/regcomp.c (re_compile_internal, init_dfa):
78676         Length arg is now size_t, not Idx.  All uses changed.
78677         (peek_token): Forward decl now says internal_function.
78678         (__re_error_msgid, __re_error_msgid_idx):
78679         Now static rather than extern with attribute_hidden.
78680         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78681         For some reason libc prefers K&R style defns for external functions.
78682         (regerror) [!defined _LIBC]: Likewise.
78683         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78684         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78685         (build_range_exp, build_collating_symbol):
78686         Use K&R-style defn.
78687         (re_compile_fastmap): Use '\0' to memset, not 0.
78688         (utf8_sb_map): Make the calculations more obvious.
78689         (init_dfa, parse_bracket_exp, build_charclass_op):
78690         Call calloc and cast result, as glibc does.
78691         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78692         (build_range_exp, build_collating_symbol):
78693         Now internal functions.
78694
78695         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78696
78697         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78698         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78699         Don't depend on VMS; depend on __VMS instead, for POSIX
78700         namespace cleanness.
78701         (regoff_t): Define to ssize_t, not long int.
78702
78703         Remove the REG_ macros named below.  Instead, make the old names
78704         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78705         __USE_GNU_REGEX.
78706         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78707         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78708         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78709         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78710         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78711         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78712         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78713         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78714         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78715         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78716         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78717         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78718         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78719         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78720         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78721         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78722         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78723         (REG_NREGS):
78724         Remove.  All uses replaced by the old RE_* names.
78725         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78726         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78727         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78728         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78729         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78730         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78731         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78732         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78733         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78734         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78735         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78736         Don't bother having these macros be independent of each others'
78737         values, since they no longer exist in the POSIX name space.
78738
78739         Rename the following member names back to their old names,
78740         unless !__USE_GNU_REGEX.  All uses changed back.
78741         (buffer): Renamed from re_buffer.
78742         (allocated): Renamed from re_allocated.
78743         (used): Renamed from re_used.
78744         (syntax): Renamed from re_syntax.
78745         (fastmap): Renamed from re_fastmap.
78746         (translate): Renamed from re_translate.
78747         (can_be_null): Renamed from re_can_be_null.
78748         (regs_allocated): Renamed from re_regs_allocated.
78749         (fastmap_accurate): Renamed from re_fastmap_accurate.
78750         (no_sub): Renamed from re_no_sub.
78751         (not_bol): Renamed from re_not_bol.
78752         (not_eol): Renamed from re_not_eol.
78753         (newline_anchor): Renamed from re_newline_anchor.
78754         (num_regs): Renamed from rm_num_regs.
78755         (start): Renamed from rm_start.
78756         (end): Renamed from rm_end.
78757
78758         (free_state): Move up a bit.
78759
78760         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78761         #define to be empty.
78762         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78763         when that is what is intended.
78764         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78765         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78766         (MAX): New macro.
78767         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78768         All uses changed back to re_malloc, etc.  It's now the caller's
78769         responsibility to check for overflow; all callers changed.
78770         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78771         (re_x2nrealloc): Remove.
78772         (free_state): Remove decl.
78773
78774         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78775         (re_set_registers, re_exec):
78776         Use K&R-style defn.
78777
78778         2006-01-31  Roland McGrath  <roland@redhat.com>
78779
78780         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78781         Reported by Mike Frysinger <vapier@gentoo.org>.
78782
78783         2006-01-15  Andreas Jaeger  <aj@suse.de>
78784
78785         [BZ #1950]
78786         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78787         build_wcs_upper_buffer change.
78788         (build_wcs_upper_buffer): Change return type.
78789
78790         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78791
78792         * lib/regex_internal.h: Include <stdint.h> if available.
78793
78794         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78795
78796         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78797
78798         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78799
78800         * lib/regcomp.c: Adjust for changed secondary hash function.
78801
78802         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78803
78804         * lib/regex.h: Pretty printing.
78805         Clean up namespace a bit.
78806
78807         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78808
78809         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78810         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78811
78812         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78813                     Ulrich Drepper  <drepper@redhat.com>
78814
78815         [BZ #1302]
78816         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78817         changed.
78818         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78819
78820         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78821
78822         [BZ #281]
78823         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78824         * lib/regcomp.c: Remove unnecessary uses of
78825         unsigned RE_TRANSLATE_TYPE.
78826         * lib/regex_internal.h: Likewise.
78827         * lib/regex_internal.c: Likewise.
78828         * lib/regexec.c: Likewise.
78829         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78830
78831         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78832
78833         * lib/regexec.c (find_recover_state): Remove unnecessary
78834         initialization.
78835         (transit_state_bkref): Make DFA a const pointer.
78836         (get_subexp): Likewise.
78837         (check_arrival): Likewise.
78838         (update_cur_sifted_state): Likewise.
78839         (re_search_internal): Likewise.
78840         (prune_impossible_nodes): Likewise.
78841         (acquire_init_state_context): Likewise.
78842         (proceed_next_node): Likewise.
78843         (set_regs): Likewise.
78844         (free_fail_stack_return): Likewise.
78845         (check_arrival_expand_ecl): Mark DFA parameter as const.
78846         (check_arrival_expand_ecl_sub): Likewise.
78847         (check_subexp_limits): Likewise.
78848         (sub_epsilon_src_nodes):  Likewise.
78849         (add_epsilon_src_nodes):  Likewise.
78850         (merge_state_array): Likewise.
78851         (update_regs): Likewise.
78852         (build_trtable): Likewise.
78853         (sift_states_backward): Mark MCTX parameter as const.
78854         (build_sifted_states): Likewise.
78855         (update_cur_sifted_state): Likewise.
78856         (sift_states_mkref): Likewise.
78857         (check_arrival_expand_ecl): Mark eclosure as const.
78858         (check_dst_limits_calc_pos_1): Likewise.
78859         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78860         pointer.
78861
78862         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78863
78864         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78865         (transit_state_sb): Likewise.
78866         (transit_state_mb): Likewise.
78867         (sift_states_iter_mb): Likewise.
78868         (check_arrival_add_next_nodes): Likewise.
78869         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78870         [_LIBC] (re_search_2_stub): Use mempcpy.
78871
78872         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78873         mbrtowc for very simple UTF-8 case.
78874
78875         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78876         a pointer-to-const.
78877         (re_acquire_state_context): Likewise.
78878         * lib/regex_internal.h: Adjust prototypes.
78879
78880         * lib/regex.c: Prevent using C++ compilers.
78881
78882         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78883         (re_acquire_state_context): Likewise.
78884
78885 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78886
78887         * modules/regex (Depends-on): Add ssize_t.
78888
78889 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78890
78891         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78892         translation table.
78893
78894 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78895
78896         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78897
78898 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78899             Bruno Haible  <bruno@clisp.org>
78900
78901         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78902         <sys/types.h> and <inttypes.h>.
78903
78904 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78905
78906         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78907         `__error_t_defined', so argp.h will not typedef the former.
78908
78909 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78910
78911         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78912         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78913         glibc names.  Even if glibc is changed to conform to POSIX, the
78914         traditional names will be available anyway, since regex depends on
78915         the extensions module.  Also, fix a longstanding typo in the
78916         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78917         reported by Emanuele Giaquinta.  Also, change sense of cached
78918         variable, so that the message makes sense.
78919
78920 2006-03-24  Simon Josefsson  <jas@extundo.com>
78921
78922         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78923         including some doc fixes.
78924         (base64_encode_alloc): Fix +1 bug on allocation failures.
78925
78926 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78927
78928         * lib/base64.c (base64_encode): Do not read past end of array with
78929         unsanitized input on systems with CHAR_BIT > 8.
78930
78931 2006-03-24  Eric Blake  <ebb9@byu.net>
78932
78933         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78934
78935 2006-03-22  Karl Berry  <karl@gnu.org>
78936
78937         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78938         * config/srclistvars.sh (COREUTILS): new var.
78939
78940 2006-03-17  Jim Meyering  <jim@meyering.net>
78941
78942         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78943         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78944
78945 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78946
78947         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78948         no longer needs it.  Instead, check that regoff_t is as least
78949         as wide as ptrdiff_t.
78950
78951         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78952         so that our regex.h stays compatible with the installed regex.
78953         This is helpful for installers who configure --without-included-regex.
78954         Problem reported by Emanuele Giaquinta.
78955
78956 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78957
78958         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78959         Typedef to long int, not to off_, as POSIX will likely change
78960         in that direction.
78961
78962 2006-03-15  Eric Blake  <ebb9@byu.net>
78963
78964         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78965
78966 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78967
78968         * lib/argp-help.c (validate_uparams): Fix typo
78969         * lib/argp-parse.c (argp_default_options): Consistently begin help
78970         messages with a lowercase letter.
78971
78972 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78973
78974         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78975         overrun buffers and shouldn't be used (much as gets shouldn't be
78976         used).
78977         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78978
78979 2006-03-08  Simon Josefsson  <jas@extundo.com>
78980
78981         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78982         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78983
78984 2006-03-08  Simon Josefsson  <jas@extundo.com>
78985
78986         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78987         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78988
78989 2006-03-08  Simon Josefsson  <jas@extundo.com>
78990
78991         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78992         signal that configure disabled the device.
78993
78994 2006-03-08  Simon Josefsson  <jas@extundo.com>
78995
78996         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78997         languages.
78998
78999 2006-03-07  Simon Josefsson  <jas@extundo.com>
79000
79001         * modules/getopt (Depends-on): Add unistd.
79002
79003         * modules/unistd: New file.
79004
79005 2006-03-07  Simon Josefsson  <jas@extundo.com>
79006
79007         * modules/gc-random: New file.
79008
79009 2006-03-07  Simon Josefsson  <jas@extundo.com>
79010
79011         * m4/unistd_h.m4: New file.
79012
79013 2006-03-07  Simon Josefsson  <jas@extundo.com>
79014
79015         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79016         test to be side-effect free by storing the result in the cache
79017         variable gl_cv_lib_readline, and moving the assignment of
79018         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79019         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79020
79021 2006-03-07  Simon Josefsson  <jas@extundo.com>
79022
79023         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79024         error on missing devices (the functions will return an error).
79025
79026         * m4/gc.m4: Move random stuff to gc-random.m4
79027
79028 2006-03-07  Simon Josefsson  <jas@extundo.com>
79029
79030         * lib/unistd_.h: New file.
79031
79032 2006-03-07  Simon Josefsson  <jas@extundo.com>
79033
79034         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79035
79036 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79037
79038         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79039         Problem reported by Juan Manuel Guerrero.
79040
79041 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79042
79043         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79044         the unistd module.
79045         * lib/getlogin_r.c: Likewise.
79046         * lib/getlogin_r.h: Likewise.
79047         * lib/glob.c: Likewise.
79048         * lib/pagealign_alloc.c: Likewise.
79049         * lib/unistd_.h: Remove; no longer needed.
79050
79051 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79052
79053         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79054         Add unistd.
79055         * modules/c-stack (Depends-on): Add unistd.
79056         * modules/getlogin_r: Likewise.
79057         * modules/glob: Likewise.
79058         * modules/pagealign_alloc: Likewise.
79059         * modules/unistd (Files): Remove lib/unistd_.h.
79060         (EXTRA_DIST): Remove.
79061         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79062         need unistd_.h.
79063         (MOSTLYCLEANFILES): Remove unistd.h-t.
79064
79065 2006-03-03  Simon Josefsson  <jas@extundo.com>
79066
79067         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79068
79069 2006-03-03  Simon Josefsson  <jas@extundo.com>
79070
79071         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79072         libidn and bison.
79073
79074 2006-03-03  Simon Josefsson  <jas@extundo.com>
79075
79076         * build-aux/maint.mk: Add indent target.
79077
79078 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79079
79080         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79081         our replacement poll.h in any case, to avoid a differing
79082         declaration from a system header.  Seen on AIX.
79083
79084 2006-03-01  Simon Josefsson  <jas@extundo.com>
79085
79086         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79087         <kasal@ucw.cz>.
79088
79089 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79090
79091         * modules/gettime (Depends-on): Add extensions module.
79092         * modules/nanosleep (Depends-on): Likewise.
79093         * modules/settime (Depends-on): Likewise.
79094
79095 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79096
79097         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79098         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79099         pedantically.
79100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79101         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79102
79103         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79104         not "==".  Reported by Ralf Wildenhues.
79105
79106 2006-03-01  Karl Berry  <karl@gnu.org>
79107
79108         * doc/Copyright/request-*: new files, synced from gnuorg.
79109
79110 2006-03-01  Karl Berry  <karl@gnu.org>
79111
79112         * config/srclist.txt (Copyright/*): new entries.
79113
79114 2006-02-28  Simon Josefsson  <jas@extundo.com>
79115
79116         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79117
79118 2006-02-27  Simon Josefsson  <jas@extundo.com>
79119
79120         * lib/base64.h: Indent #define's.  From Jim Meyering
79121         <jim@meyering.net>.
79122
79123 2006-02-27  Jim Meyering  <jim@meyering.net>
79124
79125         Revert the change of 2006-02-24, so these files can continue
79126         to be sync'd from gettext.
79127         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79128         of `config.h'.
79129
79130 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79131
79132         * modules/intprops: New file.
79133         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79134         Add intprops.
79135         * modules/getloadavg (Files): Remove lib/intprops.h.
79136         (Depends-on): Add intprops.
79137         * modules/human: Likewise.
79138         * modules/inttostr: Likewise.
79139         * modules/openat: Likewise.
79140         * modules/sig2str: Likewise.
79141         * modules/userspec: Likewise.
79142         * modules/utimecmp: Likewise.
79143         * modules/xnanosleep: Likewise.
79144         * modules/xstrtol: Likewise.
79145
79146 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79147
79148         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79149         * modules/lock-tests (TESTS): Use $(EXEEXT).
79150         * modules/tls-tests: Likewise.
79151         * modules/argp-tests: Likewise.
79152         (check_PROGRAMS): New var, replacing...
79153         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79154
79155 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79156
79157         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79158         `config.h'.
79159
79160 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79161
79162         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79163
79164 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79165
79166         Sync from coreutils.
79167         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79168         gl_CHDIR_SAFER.
79169
79170 2006-02-22  Jim Meyering  <jim@meyering.net>
79171
79172         Sync from coreutils.
79173         * m4/chdir-safer.m4: New file.
79174
79175 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79176
79177         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79178         AT_FDCWD exceeds INT_MAX.
79179         * lib/openat.h (AT_FDCWD): Likewise.
79180
79181 2006-02-17  Eric Blake  <address@hidden>
79182
79183         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79184
79185 2006-02-16  Simon Josefsson  <jas@extundo.com>
79186
79187         * modules/getaddrinfo (Depends-on): Add sys_socket.
79188
79189 2006-02-15  Simon Josefsson  <jas@extundo.com>
79190
79191         * build-aux/maint.mk: Add dsyntax-check rule.
79192
79193 2006-02-15  Eric Blake  <ebb9@byu.net>
79194
79195         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79196         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79197         'present but cannot compile' warnings on cygwin.
79198         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79199         use ws2tcpip.h if sys/socket.h works.
79200         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79201         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79202
79203 2006-02-14  Simon Josefsson  <jas@extundo.com>
79204
79205         * modules/maintainer-makefile (Files): Rename.
79206
79207         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79208         and (the local) Makefile.cfg to maint-cfg.mk.
79209
79210         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79211         to the latter.
79212
79213         * modules/maintainer-makefile: New module.
79214
79215         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79216         severaly stripped to make it possible to build it up from scratch
79217         with reliable tests.
79218
79219         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79220         fixes to permit overriding the default actions when configure and
79221         makefile are not available.
79222
79223 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79224
79225         Sync from coreutils.
79226         * modules/lstat (Depends-on): Don't depend on xalloc.
79227         (License): Change from GPL to LGPL, since this is now simply a
79228         replacement for a libc function.
79229
79230 2006-02-14  Jim Meyering  <jim@meyering.net>
79231
79232         Sync from coreutils.
79233
79234         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79235         failure on deficient systems, and simplify gnulib lgpl dependencies.
79236         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79237         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79238
79239         * lib/xalloc-die.c: Remove unused definition of N_.
79240
79241 2006-02-14  Jim Meyering  <jim@meyering.net>
79242
79243         Sync from coreutils.
79244         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79245         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79246         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79247         double-quote uses of that variable, to accommodate the rare case in
79248         which getmntent is available in none of the libraries checked.  This
79249         happens at least on FreeBSD 5.0.
79250
79251 2006-02-13  Simon Josefsson  <jas@extundo.com>
79252
79253         * gnulib-tool (Usage): Fix --import, from
79254         karl@freefriends.org (Karl Berry).
79255
79256 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79257
79258         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
79259
79260 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
79261
79262         * lib/argp-namefrob.h: Restore changes accidentally lost during the
79263         "autoupdate" on 2005-12-12.
79264
79265 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79266
79267         * modules/closeout (Depends-on): Remove atexit.
79268
79269 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79270
79271         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79272         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79273
79274 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79275
79276         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79277         __EXTENSIONS__ if this causes compilation to fail.  Problem
79278         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79279         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79280
79281 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79282
79283         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79284         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79285         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79286         All uses changed.
79287
79288 2006-01-26  Simon Josefsson  <jas@extundo.com>
79289
79290         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79291         prototype is visible on mingw32.
79292
79293         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79294         for mingw32.
79295
79296         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79297         mingw32).
79298
79299 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79300
79301         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79302         attempt to open for write; this always fails, at least on POSIX
79303         hosts.  This reinstates the 2006-01-09 change, which was
79304         inadvertently removed.
79305
79306 2006-01-26  Bruno Haible  <bruno@clisp.org>
79307
79308         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79309         Reported by Paul Eggert.
79310
79311 2006-01-26  Bruno Haible  <bruno@clisp.org>
79312             Paul Eggert  <eggert@cs.ucla.edu>
79313
79314         * lib/stdbool_.h (_Bool)
79315         [(! (defined __cplusplus || defined __BEOS__)
79316           && !defined __GNUC__
79317           && !(defined __HP_cc || defined __xlc__
79318                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79319                || defined __sgi))]:
79320         #define to signed char in these cases too; this simplifies
79321         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79322         etc., separately) and makes it more conservative.
79323
79324 2006-01-25  Simon Josefsson  <jas@extundo.com>
79325
79326         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79327         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79328         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
79329
79330 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79331
79332         * lib/argp-namefrob.h: Bugfix. Remove stray #
79333
79334 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79335
79336         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
79337         so that we test the test.
79338         Check for yet another HP-UX cc bug involving *bool |= bool.
79339
79340 2006-01-25  Karl Berry  <karl@gnu.org>
79341
79342         * config/srclist.txt (vasnprintf.c): sync lost.
79343
79344 2006-01-25  Jim Meyering  <jim@meyering.net>
79345
79346         Sync from the stable (b5) branch of coreutils:
79347
79348         * lib/fts.c (fts_children): Don't let close() clobber errno from
79349         failed fchdir().
79350
79351         * lib/fts.c (fts_stat): When following a symlink-to-directory,
79352         don't necessarily interpret stat-fails+lstat-succeeds as indicating
79353         a dangling symlink.  That can also happen at least for ELOOP.
79354         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
79355         FYI, this bug predates the inclusion of fts.c in coreutils.
79356
79357         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
79358         in their own block, so pre-c99 compilers don't object.
79359
79360         Avoid the double-free (first in fts_read, second in fts_close) that
79361         would occur when an `active' directory is made inaccessible (e.g.,
79362         via chmod a-x) during a traversal.
79363         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79364         before returning.  Reproduce this failure by
79365         mkdir -p a/b; cd a; chmod a-x . b
79366         Reported by Stavros Passas.
79367
79368 2006-01-25  Jim Meyering  <jim@meyering.net>
79369
79370         * lib/fileblocks.c: Remove more useless parentheses.
79371         * lib/readutmp.h: Likewise.
79372
79373 2006-01-25  Bruno Haible  <bruno@clisp.org>
79374
79375         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
79376         warnings.
79377         Reported by Paul Eggert.
79378
79379 2006-01-25  Bruno Haible  <bruno@clisp.org>
79380
79381         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
79382         rid of a trap command. For Solaris sh.
79383         Reported by Mark D. Baushke <mdb@gnu.org>.
79384
79385 2006-01-24  Simon Josefsson  <jas@extundo.com>
79386
79387         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79388         Bruno.
79389
79390 2006-01-24  Karl Berry  <karl@gnu.org>
79391
79392         * config/srclist.txt (argp-namefrob.h): sync lost.
79393
79394 2006-01-24  Jim Meyering  <jim@meyering.net>
79395
79396         * modules/openat (Files): Add lib/intprops.h.
79397         From Mark D. Baushke.
79398
79399 2006-01-24  Jim Meyering  <jim@meyering.net>
79400
79401         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79402         Reported by Mark D. Baushke.
79403
79404 2006-01-24  Jim Meyering  <jim@meyering.net>
79405
79406         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
79407
79408 2006-01-24  Bruno Haible  <bruno@clisp.org>
79409
79410         * modules/strnlen (Maintainer): Change from glibc to all.
79411
79412 2006-01-24  Bruno Haible  <bruno@clisp.org>
79413
79414         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
79415         Patch by Paul Eggert.
79416
79417 2006-01-24  Bruno Haible  <bruno@clisp.org>
79418
79419         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
79420         already has it.
79421         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
79422         2005-11-26.
79423
79424         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
79425         'signed char' to avoid problems with the built-in _Bool type.
79426         Reported by Paul Eggert on 2005-11-26.
79427
79428 2006-01-24  Bruno Haible  <bruno@clisp.org>
79429
79430         * gnulib-tool (func_import): Avoid constructing complicated sed
79431         expressions inside backquote.
79432         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79433
79434 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79435
79436         These changes imported from libc.
79437         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
79438         test and two separate function calls.
79439         * lib/strndup.c (__strndup): Add libc_hidden_def.
79440
79441 2006-01-23  Simon Josefsson  <jas@extundo.com>
79442
79443         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
79444         Remove the test_*_SOURCES variable: automake infers it by default.
79445         * modules/tls-tests: Likewise.
79446
79447 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79448
79449         Work around porting bugs reported by Dieter in
79450         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
79451         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
79452         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
79453         Include "getopt.h" first, to check interface.
79454         (getenv): Declare only if defined HAVE_DECL_GETENV &&
79455         !HAVE_DECL_GETENV.
79456         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
79457         (__strndup): Revert to K&R-style function dfns, the glibc style.
79458         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
79459         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
79460         Include strnlen.h first, to get prototype properly.
79461         (strnlen): Renamed from __strnlen.
79462         Remove weak alias.
79463
79464 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79465
79466         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
79467
79468 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79469
79470         * config/srclist.txt: Adjust to reflect glibc reorganization.
79471         This affects only comments.
79472
79473 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79474
79475          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
79476          Reported by Bruce Korb <bkorb@gnu.org>.
79477
79478 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
79479
79480         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
79481         to pacify gcc -Wswitch-default.
79482
79483 2006-01-22  Bruno Haible  <bruno@clisp.org>
79484
79485         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79486         temporary buffer for sprintf, take into account the precision also
79487         for 'd', 'i', 'u', 'o', 'x', 'X'.
79488
79489 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79490
79491         * modules/argp-tests: New module
79492         * tests/test-argp.c: New file
79493         * tests/test-argp-2.sh: New file
79494
79495 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79496
79497         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79498         (__argp_base_name): Removed
79499         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79500         typo.
79501         (__argp_base_name): Provide macro definition or extern declaration
79502         depending on the configuration
79503
79504 2006-01-20  Simon Josefsson  <jas@extundo.com>
79505
79506         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79507
79508 2006-01-20  Simon Josefsson  <jas@extundo.com>
79509
79510         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79511
79512 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79513
79514         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79515         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79516         Suggested by Bruno Haible.
79517
79518 2006-01-20  Karl Berry  <karl@gnu.org>
79519
79520         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79521         until changes propagate, I guess.
79522
79523 2006-01-19  Simon Josefsson  <jas@extundo.com>
79524
79525         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79526
79527 2006-01-19  Simon Josefsson  <jas@extundo.com>
79528
79529         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79530
79531 2006-01-19  Simon Josefsson  <jas@extundo.com>
79532
79533         * gnulib-tool: Set check_PROGRAMS.
79534
79535         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79536         modules/des-tests, modules/gc-arcfour-tests,
79537         modules/gc-arctwo-tests, modules/gc-des-tests,
79538         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79539         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79540         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79541         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79542         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79543         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79544         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79545         test_*_SOURCES.
79546
79547 2006-01-18  Simon Josefsson  <jas@extundo.com>
79548
79549         * modules/socklen (Depends-on): Depend on sys_socket.
79550
79551 2006-01-18  Simon Josefsson  <jas@extundo.com>
79552
79553         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79554         modules/des-tests, modules/gc-arcfour-tests,
79555         modules/gc-arctwo-tests, modules/gc-des-tests,
79556         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79557         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79558         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79559         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79560         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79561         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79562         $(EXEEXT) to automake TESTS variable, for mingw32.
79563
79564 2006-01-17  Simon Josefsson  <jas@extundo.com>
79565
79566         * modules/socklen (Include): Need sys/socket.h.
79567
79568 2006-01-17  Bruno Haible  <bruno@clisp.org>
79569
79570         * modules/ssize_t (Include): Add <sys/types.h>.
79571
79572 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79573
79574         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79575         it's not portable and it doesn't work with cross-compiles.
79576         Problem reported by Bruno Haible.  Fix missing-$ typo in
79577         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79578         -zignore from being used with Sun's C compiler.
79579
79580 2006-01-12  Simon Josefsson  <jas@extundo.com>
79581
79582         * lib/base64.c: Fix warning, reported by Bruno Haible
79583         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79584
79585 2006-01-12  Bruno Haible  <bruno@clisp.org>
79586
79587         * modules/ldd: New file.
79588         * build-aux/ldd.sh.in: New file.
79589         * MODULES.html.sh (Support for building libraries and executables): Add
79590         ldd.
79591
79592 2006-01-12  Bruno Haible  <bruno@clisp.org>
79593
79594         * m4/ldd.m4: New file.
79595
79596 2006-01-12  Bruno Haible  <bruno@clisp.org>
79597
79598         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79599         endless loop while replacing $auxdir with build-aux.
79600
79601 2006-01-11  Simon Josefsson  <jas@extundo.com>
79602
79603         * lib/stdint_.h (SIZE_MAX): Add missing (.
79604
79605 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79606
79607         Sync from coreutils.
79608         * lib/md5.c: Fix commentary typos.
79609         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79610         * lib/md5.h (__attribute__): Remove; unused.
79611         * lib/sha1.c: Fix commentary to match md5 better.
79612         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79613         so that we don't need to worry about alignment.  All uses changed.
79614         This merges the 2005-10-28 md5 change into sha1.
79615
79616 2006-01-11  Jim Meyering  <jim@meyering.net>
79617
79618         Sync from coreutils.
79619         * lib/md5.c (OP): Fix spacing.
79620
79621 2006-01-11  Bruno Haible  <bruno@clisp.org>
79622
79623         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79624         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79625         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79626
79627 2006-01-11  Bruno Haible  <bruno@clisp.org>
79628
79629         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79630         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79631         the "early" section as well.
79632
79633 2006-01-11  Bruno Haible  <bruno@clisp.org>
79634
79635         Avoid "ar: no archive members specified" error on MacOS X.
79636         * gnulib-tool (func_modules_add_dummy): New function.
79637         (func_import, func_create_testdir): Invoke it.
79638
79639 2006-01-11  Bruno Haible  <bruno@clisp.org>
79640
79641         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79642         with $auxdir in AC_CONFIG_FILES statements.
79643
79644 2006-01-11  Bruno Haible  <bruno@clisp.org>
79645
79646         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79647         Initialize also noinst_HEADERS to empty.
79648
79649 2006-01-11  Bruno Haible  <bruno@clisp.org>
79650
79651         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79652         variables.
79653         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79654         autoreconf.
79655
79656 2006-01-11  Bruno Haible  <bruno@clisp.org>
79657
79658         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79659         overridable by the user.
79660         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79661
79662 2006-01-10  Simon Josefsson  <jas@extundo.com>
79663
79664         * modules/sys_socket: New file.
79665
79666 2006-01-10  Simon Josefsson  <jas@extundo.com>
79667
79668         * m4/sys_socket_h.m4: New file.
79669
79670 2006-01-10  Simon Josefsson  <jas@extundo.com>
79671
79672         * lib/socket_.h: New file.
79673
79674 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79675
79676         * modules/readutmp (Maintainer): Add myself.
79677
79678 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79679
79680         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79681         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79682         People who are still concerned with buggy memcmp implementations
79683         can invoke gl_FUNC_MEMCMP themselves.
79684
79685 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79686
79687         * lib/regex_internal.h (BITSET_WORD_BITS):
79688         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79689         preprocessor mishandles large unsigned values as if they were signed.
79690         Problem reported by Claudio Fontana in
79691         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79692
79693 2006-01-10  Jim Meyering  <jim@meyering.net>
79694
79695         Avoid the double-free (first in fts_read, second in fts_close) that
79696         would occur when an `active' directory is made inaccessible (e.g.,
79697         via chmod a-x) during a traversal.
79698         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79699         before returning.  Reproduce this failure by
79700         mkdir -p a/b; cd a; chmod a-x . b
79701         Reported by Stavros Passas.
79702
79703         Sync from coreutils.
79704         * lib/sha1.c: Tweak grammar in a comment.
79705
79706 2006-01-10  Jim Meyering  <jim@meyering.net>
79707
79708         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79709         Patch by Joerg Sonnenberger.
79710
79711 2006-01-10  Bruno Haible  <bruno@clisp.org>
79712
79713         * modules/readutmp: Depend on module free.
79714         * modules/strtok_r: Depend on module restrict.
79715
79716 2006-01-10  Bruno Haible  <bruno@clisp.org>
79717
79718         * modules/gettext (configure.ac): Add an invocation of
79719         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79720
79721 2006-01-10  Bruno Haible  <bruno@clisp.org>
79722
79723         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79724         Reported by Werner Lemberg <wl@gnu.org>.
79725
79726 2006-01-10  Bruno Haible  <bruno@clisp.org>
79727
79728         * lib/localcharset.c: Update from GNU gettext.
79729
79730 2006-01-10  Bruno Haible  <bruno@clisp.org>
79731
79732         * lib/argp.h (__const): Remove macro. Use const instead.
79733         * lib/argp-fmtstream.h (__const): Likewise.
79734         * lib/glob_.h (__const): Remove macro.
79735         * lib/glob-libc.h: Use const instead of __const.
79736
79737 2006-01-10  Bruno Haible  <bruno@clisp.org>
79738
79739         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79740         variable.
79741         Needed to avoid an automake error regarding the 'gettext' module.
79742
79743 2006-01-09  Simon Josefsson  <jas@extundo.com>
79744
79745         * modules/inet_ntop (Depends-on): Add restrict.
79746
79747 2006-01-09  Simon Josefsson  <jas@extundo.com>
79748
79749         * modules/gc-rijndael-tests (License): Put under LGPL.
79750
79751         * modules/gc-des-tests (License): Likewise.
79752
79753         * modules/gc-arcfour-tests (License): Likewise.
79754
79755         * modules/gc-arctwo-tests (License): Likewise.
79756
79757         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79758
79759         * modules/gc-hmac-sha1-tests (Files): Likewise.
79760
79761         * modules/gc-hmac-md5-tests (License): Likewise.
79762
79763         * modules/gc-sha1-tests (License): Likewise.
79764
79765         * modules/gc-md5-tests (License): Likewise.
79766
79767         * modules/gc-md4-tests (License): Likewise.
79768
79769         * modules/gc-md2-tests (License): Likewise.
79770
79771         * modules/gc-tests (License): Likewise.
79772
79773         * modules/des-tests (License): Likewise.
79774
79775         * modules/md4-tests (License): Likewise.
79776
79777         * modules/md2-tests (License): Likewise.
79778
79779 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79780
79781         Sync from coreutils:
79782
79783         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79784         * modules/lib-ignore: New file.
79785         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79786         chdir-safer.m4, lchmod.m4.
79787         * modules/openat: Add mkdirat.c, openat-priv.h.
79788
79789 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79790
79791         Sync from coreutils.
79792         * m4/lib-ignore.m4: New file.
79793         * m4/lchmod.m4: New file.
79794
79795 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79796
79797         Sync from coreutils.
79798         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79799         for write access: POSIX says that must fail.
79800         * lib/fts.c (diropen): Likewise.
79801         * lib/save-cwd.c (save_cwd): Likewise.
79802         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79803         well, for minor improvements on hosts that lack O_DIRECTORY.
79804         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79805         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79806         Fall back on chown if open failed with EACCES.
79807
79808         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79809         Report an error at compile-time if only a 1-second nominal clock
79810         resolution is found.
79811
79812         * lib/lchmod.h: New file.
79813         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79814         (make_dir_parents): Use lchown rather than chown, and
79815         lchmod rather than chmod.
79816
79817         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79818         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79819         "proc" reported by n0dalus.
79820
79821         * lib/mountlist.c: Include <limits.h>.
79822         (dev_from_mount_options)
79823         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79824         New function.  It no longer assumes "dev=" has the System V meaning
79825         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79826         (read_file_system_list)
79827         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79828         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79829         dev= in that case.
79830
79831         * lib/posixtm.h (PDS_PRE_2000): New macro.
79832         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79833         allow_century.  All usages changed.  Reject dates outside the range
79834         1969-1999 if PDS_PRE_2000 is used.
79835
79836 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79837
79838         Sync from coreutils.
79839         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79840         (Time of day items): Mention the possibility of leap seconds.
79841         Problem reported by Dr. David Alan Gilbert.
79842
79843 2006-01-09  Jim Meyering  <jim@meyering.net>
79844
79845         Sync from coreutils.
79846
79847         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79848
79849         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79850
79851         * lib/modechange.c (mode_compile): Reject an invalid mode string
79852         that starts with an octal digit.  From Andreas Gruenbacher.
79853
79854         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79855         and dup to open_safer and dup_safer, respectively.
79856         (openat_permissive): Fix typo in comment.
79857
79858         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79859         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79860         (_): Remove; no longer needed.
79861         (openat): Renamed from rpl_openat; no need for rpl_openat
79862         since openat.h renames openat for us.
79863         Replace most of the body with a call to openat_permissive,
79864         to avoid duplicate code.
79865         Port to (probably hypothetical) environments were mode_t is
79866         wider than int.
79867         (openat_permissive): Require mode arg, so that we can check
79868         types better.  Put it just after flags.  Change cwd failure
79869         indicator from pointer-to-bool to pointer-to-errno-value.
79870         All callers changed.
79871         Invoke openat_save_fail and/or openat_restore_fail if
79872         cwd_errno is null, so that openat can call us.
79873         (openat_permissive, fdopendir, fstatat, unlinkat):
79874         Simplify errno handling to avoid some duplicate code,
79875         as it's OK to set errno on success.
79876         * lib/openat.h: Revamp code so that function macros depend on
79877         __OPENAT_PREFIX only, not also on AT_FDCWD.
79878         (openat_ro): Remove.  Caller changed to use openat_permissive.
79879         (openat_permissive): Now a macro, if not a function.
79880         (openat_restore_fail, openat_save_fail): Now always functions,
79881         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79882
79883         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79884         and openat.c.
79885         * lib/mkdirat.c: Include openat-priv.h.
79886         Remove definitions of macros defined therein.
79887         * lib/openat.c: Likewise.
79888
79889         * lib/mkdirat.c (mkdirat): New file and function.
79890         * lib/openat.h (mkdirat): Declare.
79891
79892         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79893
79894         * lib/openat.h (openat_permissive): Declare.
79895         (openat_ro): Define.
79896
79897         * lib/openat.c (EXPECTED_ERRNO): New macro.
79898         (openat_permissive): New function -- used in remove.c rewrite.
79899         (all functions): Set errno just before returning, only if there
79900         was an actual failure.
79901         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79902
79903         Emulate openat-family functions using Linux's procfs, if possible.
79904         Idea and some code based on Ulrich Drepper's glibc changes.
79905
79906         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79907         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79908         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79909         before falling back on save_cwd and restore_cwd.
79910         (fdopendir, fstatat, unlinkat): Likewise.
79911
79912         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79913         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79914
79915         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79916         as second argument to va_arg.  Otherwise, some versions of gcc
79917         warn that `if this code is reached, the program will abort'.
79918
79919 2006-01-09  Jim Meyering  <jim@meyering.net>
79920
79921         Sync from coreutils.
79922         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79923         Require openat-priv.h.
79924
79925 2006-01-09  Bruno Haible  <bruno@clisp.org>
79926
79927         * modules/strnlen (Include): Use strnlen.h.
79928
79929 2006-01-09  Bruno Haible  <bruno@clisp.org>
79930
79931         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79932
79933 2006-01-09  Bruno Haible  <bruno@clisp.org>
79934
79935         * lib/sysexit_.h (EX_OK): New macro.
79936         Suggested by Martin Lambers <marlam@marlam.de>.
79937
79938 2006-01-09  Bruno Haible  <bruno@clisp.org>
79939
79940         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79941         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79942
79943 2006-01-09  Bruno Haible  <bruno@clisp.org>
79944
79945         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79946         numbers.
79947
79948 2006-01-09  Bruno Haible  <bruno@clisp.org>
79949
79950         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79951         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79952         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79953         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79954
79955 2006-01-09  Bruno Haible  <bruno@clisp.org>
79956
79957         * build-aux/javacomp.sh.in: New file, moved from lib/.
79958         * modules/javacomp-script (Files): Update.
79959         (configure.ac): Add AC_CONFIG_FILES invocation.
79960         (EXTRA_DIST): Remove variable.
79961
79962         * build-aux/javaexec.sh.in: New file, moved from lib/.
79963         * modules/javaexec (Files): Update.
79964         (configure.ac): Add AC_CONFIG_FILES invocation.
79965         (EXTRA_DIST): Remove javaexec.sh.in.
79966
79967         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79968         * modules/csharpcomp-script (Files): Update.
79969         (configure.ac): Add AC_CONFIG_FILES invocation.
79970         (EXTRA_DIST): Remove variable.
79971
79972         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79973         * modules/csharpexec (Files): Update.
79974         (configure.ac): Add AC_CONFIG_FILES invocation.
79975         (EXTRA_DIST): Remove csharpexec.sh.in.
79976
79977 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79978
79979         Sync from coreutils.
79980
79981         Add POSIX ACL support
79982         * lib/acl.h (copy_acl, set_acl): Add declarations.
79983         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79984         systems other than Linux.
79985         (chmod_or_fchmod): New function: use fchmod when possible,
79986         and chmod otherwise.
79987         (file_has_acl): Add a POSIX ACL implementation, with a
79988         Linux-specific subcase.
79989         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79990         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79991         acls are unsupported.
79992         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79993         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79994         are unsupported.
79995
79996 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79997
79998         Sync from coreutils.
79999         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80000
80001 2006-01-07  Bruno Haible  <bruno@clisp.org>
80002
80003         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80004         gl_EARLY.
80005
80006 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80007
80008         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80009         Problem reported for Mingw by Mark Junker.
80010
80011 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80012
80013         * README: Gnulib normally doesn't generate a tarball.
80014
80015 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80016
80017         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80018         long int, not int, for nanosecond counts, so that people who are
80019         used to POSIX struct timespec won't be surprised.  Reported by Jim
80020         Meyering.
80021
80022 2005-12-28  Bruno Haible  <bruno@clisp.org>
80023
80024         * build-aux/config.rpath: Update from GNU gettext.
80025
80026 2005-12-16  Jim Meyering  <jim@meyering.net>
80027
80028         * modules/fprintftime: New module.
80029         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80030
80031 2005-12-16  Jim Meyering  <jim@meyering.net>
80032
80033         * m4/fprintftime.m4: New file.
80034
80035 2005-12-16  Jim Meyering  <jim@meyering.net>
80036
80037         * lib/fprintftime.c, lib/fprintftime.h: New files.
80038
80039 2005-12-15  Simon Josefsson  <jas@extundo.com>
80040
80041         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80042         new m4/socklen.m4.
80043
80044 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80045
80046         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80047         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80048
80049 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80050
80051         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80052         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80053         struct uparams is valid. Fall back to the default values if it is
80054         not.
80055
80056 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80057
80058         * modules/argp (Files): Add argp-pin.c
80059         (Depends-on): dirname
80060         (lib_SOURCES): Add argp-pin.c
80061
80062 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80063
80064         * m4/argp.m4:  Check if program_invocation_name and
80065         program_invocation_short_name are declared and define appropriate
80066         macros if they are not.
80067
80068 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80069
80070         * lib/argp-help.c (__argp_base_name): New function
80071         (__argp_short_program_name): Rewrite using __argp_base_name
80072         * lib/argp-namefrob.h: Define program_invocation_name and
80073         program_invocation_short_name if requested
80074         (__argp_base_name): Add prototype
80075         * lib/argp-parse.c (argp_def): Use gettext wrappers
80076         (argp_default_parser): Use __argp_base_name
80077         * lib/argp-pin.c: New file. Defines program_invocation_name and
80078         program_invocation_short_name on systems that lack them.
80079
80080 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80081
80082         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80083         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80084         porting problem reported by Georg Schwarz in
80085         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80086
80087 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80088
80089         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80090         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80091         porting problem reported by Georg Schwarz in
80092         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80093
80094 2005-12-05  Bruno Haible  <bruno@clisp.org>
80095
80096         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80097         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80098         Reported by Mark Junker <mjscod@gmx.de>.
80099
80100 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80101
80102         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80103         Use implementation from Albert Chin, with some
80104         comments/corrections by Stepan Kasal and myself.
80105
80106 2005-12-02  Bruno Haible  <bruno@clisp.org>
80107
80108         * gnulib-tool (func_import): Accept GPLed build tool modules when
80109         --lgpl is given.
80110         * modules/csharpcomp-script: New file.
80111         * modules/csharpcomp: Depend on it.
80112         * modules/javacomp-script: New file.
80113         * modules/javacomp: Depend on it.
80114         Suggested by Simon Josefsson.
80115
80116 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80117
80118         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80119         statement, to work around an HP-UX 10.20 compiler bug reported by
80120         Peter O'Gorman.
80121
80122 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80123
80124         * modules/savedir (Depends-on): Add openat.
80125
80126 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80127
80128         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80129         (uintmax_t) [defined uintmax_t]: Do not declare.
80130         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80131         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80132         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80133         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80134         sake of portability to weird hosts that C allows (though we don't
80135         know of any practical examples).
80136
80137         * lib/savedir.h (fdsavedir): New decl.
80138         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80139         contains most of the former guts of savedir.
80140         (savedir): Use savedirstream.
80141         Include "openat.h".
80142
80143 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80144
80145         * modules/obstack (Files): Add m4/ulonglong.m4.
80146         Problem reported by Davide Angelocola.
80147
80148 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80149
80150         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80151         coreutils no longer futzes with rounding modes.
80152
80153 2005-11-14  Jim Meyering  <jim@meyering.net>
80154
80155         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80156         replacement of mkstemp.
80157
80158 2005-11-10  Simon Josefsson  <jas@extundo.com>
80159
80160         * lib/readline.c: Remove EOL.
80161
80162 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80163
80164         * modules/gethrxtime (Depends-on): Add gettime.
80165
80166 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80167
80168         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80169         or gettimeofday; no longer needed.
80170
80171 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80172
80173         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80174         time business.
80175         (gethrxtime) [! (HAVE_NANOUPTIME
80176         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80177         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80178         our own approximation.
80179
80180 2005-11-08  Eric Blake  <ebb9@byu.net>
80181
80182         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80183
80184 2005-11-08  Eric Blake  <ebb9@byu.net>
80185
80186         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80187
80188 2005-11-04  Bruno Haible  <bruno@clisp.org>
80189
80190         * gnulib-tool: Implement --update mode.
80191
80192 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80193
80194         Fix porting problem reported by Theodoros V. Kalamatianos.
80195         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80196         Don't assume that futimes failing means we must fail.
80197
80198 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80199
80200         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80201         variables to suggest the intended function of the PATH_MAX check.
80202
80203 2005-10-30  Kean Johnston  <jkj@sco.com>
80204
80205         Trivial changes to support SCO systems.
80206         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80207         as PATH_MAX.
80208         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80209         where __ptr is null when no I/O is pending.
80210
80211 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80212
80213         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80214         leave errno alone.  Problem reported by Dmitry V. Levin.
80215
80216 2005-10-28  Simon Josefsson  <jas@extundo.com>
80217
80218         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80219         Test more.
80220
80221         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80222
80223         * modules/md2, modules/md2-tests: New files.
80224
80225 2005-10-28  Simon Josefsson  <jas@extundo.com>
80226
80227         * m4/inet_ntop.m4: More tests.
80228
80229         * m4/gc-md2.m4, md2.m4: New file.
80230
80231 2005-10-28  Simon Josefsson  <jas@extundo.com>
80232
80233         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80234         "restrict" keywords, as per POSIX.  Protect the function
80235         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80236         Don't use K&R prototypes.  Check the sprintf return values.
80237         Re-define EAFNOSUPPORT if not present.  Indent.
80238
80239         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80240         suggested by Bruno Haible <bruno@clisp.org>.
80241
80242         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80243
80244         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80245
80246         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80247         libgcrypt).
80248
80249         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80250
80251         * lib/md2.h, lib/md2.c: New files.
80252
80253 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80254
80255         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
80256         errno alone.  Problem reported by Frederic Jolliton.
80257
80258 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
80259
80260         * modules/verify (License): Change from GPL to LGPL.  This is a
80261         tiny module and there are apparently near-equivalents that are
80262         under the BSD license.
80263
80264 2005-10-24  Simon Josefsson  <jas@extundo.com>
80265
80266         * modules/sha1: Relicense to LGPL.
80267
80268 2005-10-24  Simon Josefsson  <jas@extundo.com>
80269
80270         * lib/md4.h: Shrink buffer size, now that we changed the type.
80271
80272 2005-10-23  Simon Josefsson  <jas@extundo.com>
80273
80274         * gnulib-tool (func_import): Fix --tests-base.
80275
80276 2005-10-22  Simon Josefsson  <jas@extundo.com>
80277
80278         * modules/arcfour (Depends-on): Need stdint.
80279
80280 2005-10-22  Simon Josefsson  <jas@extundo.com>
80281
80282         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80283         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80284
80285 2005-10-22  Simon Josefsson  <jas@extundo.com>
80286
80287         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80288         suggested by Bruno Haible <bruno@clisp.org>.
80289
80290 2005-10-22  Simon Josefsson  <jas@extundo.com>
80291
80292         * lib/crc.h: Include stddef.h, for size_t.
80293
80294 2005-10-22  Simon Josefsson  <jas@extundo.com>
80295
80296         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80297         arcfour_context struct (simplify test vector testing in GNU
80298         Shishi).
80299
80300 2005-10-21  Simon Josefsson  <jas@extundo.com>
80301
80302         * modules/des, modules/des-tests: New files.
80303
80304         * modules/gc-des, modules/gc-des-tests: New files.
80305
80306         * tests/test-des.c, tests/test-gc-des.c: New file.
80307
80308 2005-10-21  Simon Josefsson  <jas@extundo.com>
80309
80310         * modules/arctwo, modules/arctwo-tests: New files.
80311
80312         * tests/test-arctwo.c: New file.
80313
80314         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80315
80316         * tests/test-gc-arctwo.c: New file.
80317
80318 2005-10-21  Simon Josefsson  <jas@extundo.com>
80319
80320         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80321         Bruno Haible <bruno@clisp.org>.
80322
80323         * m4/gc-des.m4: New file.
80324
80325 2005-10-21  Simon Josefsson  <jas@extundo.com>
80326
80327         * m4/arctwo.m4: New file.
80328
80329         * m4/gc-arctwo.m4: New file.
80330
80331 2005-10-21  Simon Josefsson  <jas@extundo.com>
80332
80333         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
80334         block.
80335
80336 2005-10-21  Simon Josefsson  <jas@extundo.com>
80337
80338         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
80339         <bruno@clisp.org>.
80340
80341         * lib/hmac-sha1.c (hmac_sha1): Likewise.
80342
80343         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
80344         Bruno Haible <bruno@clisp.org>.
80345
80346         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
80347         <bruno@clisp.org>.
80348
80349 2005-10-21  Simon Josefsson  <jas@extundo.com>
80350
80351         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
80352
80353 2005-10-21  Simon Josefsson  <jas@extundo.com>
80354
80355         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
80356
80357 2005-10-21  Simon Josefsson  <jas@extundo.com>
80358
80359         * lib/des.h, lib/des.c: New files.
80360
80361         * lib/gc-gnulib.c: Support DES.c
80362
80363 2005-10-21  Simon Josefsson  <jas@extundo.com>
80364
80365         * lib/arctwo.h, lib/arctwo.c: New files.
80366
80367         * lib/gc-gnulib.c: Support ARCTWO.
80368
80369 2005-10-21  Simon Josefsson  <jas@extundo.com>
80370
80371         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
80372         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80373
80374 2005-10-21  Simon Josefsson  <jas@extundo.com>
80375
80376         * gnulib-tool (func_import, func_create_testdir): Define automake
80377         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
80378         Makefile.am snippet),
80379         suggested by Bruno Haible <bruno@clisp.org>.
80380
80381         * modules/gc (Makefile.am): Use it.
80382
80383 2005-10-21  Bruno Haible  <bruno@clisp.org>
80384
80385         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80386         patch.
80387
80388 2005-10-19  Simon Josefsson  <jas@extundo.com>
80389
80390         * tests/test-gc-rijndael.c: New file.
80391
80392         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80393
80394 2005-10-19  Simon Josefsson  <jas@extundo.com>
80395
80396         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80397         interface too.
80398
80399 2005-10-19  Simon Josefsson  <jas@extundo.com>
80400
80401         * tests/test-gc-arcfour.c: New file.
80402
80403         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80404
80405 2005-10-19  Simon Josefsson  <jas@extundo.com>
80406
80407         * modules/gc-md4, modules/gc-md4-tests: New file.
80408
80409         * tests/test-gc-md4.c: New file.
80410
80411 2005-10-19  Simon Josefsson  <jas@extundo.com>
80412
80413         * m4/gc-md4.m4: New file.
80414
80415 2005-10-19  Simon Josefsson  <jas@extundo.com>
80416
80417         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
80418         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
80419         <kasal@ucw.cz>.
80420
80421 2005-10-19  Simon Josefsson  <jas@extundo.com>
80422
80423         * m4/gc-arcfour.m4: New file.
80424
80425         * m4/gc-rijndael.m4: New file.
80426
80427 2005-10-19  Simon Josefsson  <jas@extundo.com>
80428
80429         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80430
80431 2005-10-19  Simon Josefsson  <jas@extundo.com>
80432
80433         * lib/gc-gnulib.c: Support ARCFOUR.
80434
80435 2005-10-19  Simon Josefsson  <jas@extundo.com>
80436
80437         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
80438         support.
80439
80440         * lib/gc.h: Add ECB enum type.
80441
80442         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
80443
80444 2005-10-18  Simon Josefsson  <jas@extundo.com>
80445
80446         * tests/test-md5.c: New file.
80447
80448         * modules/md5-tests: New file.
80449
80450 2005-10-18  Simon Josefsson  <jas@extundo.com>
80451
80452         * tests/test-md4.c: New file.
80453
80454         * modules/md4, modules/md4-tests: New files.
80455
80456 2005-10-18  Simon Josefsson  <jas@extundo.com>
80457
80458         * m4/md4.m4: New file.
80459
80460 2005-10-18  Simon Josefsson  <jas@extundo.com>
80461
80462         * lib/md4.h, lib/md4.c: New files, based on md5.?.
80463
80464 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
80465
80466         * gnulib-tool (func_create_testdir): Omit the second check whether
80467         BUILT_SOURCES in nonempty.
80468
80469 2005-10-17  Simon Josefsson  <jas@extundo.com>
80470
80471         * tests/test-rijndael.c: New file.
80472
80473 2005-10-17  Simon Josefsson  <jas@extundo.com>
80474
80475         * modules/sha1: Depend on stdint instead of md5.
80476
80477         * modules/md5: Depend on stdint, remove uint32_t.
80478
80479 2005-10-17  Simon Josefsson  <jas@extundo.com>
80480
80481         * modules/gc-sha1-tests: New file.
80482
80483         * tests/test-gc-sha1.c: New file.
80484
80485 2005-10-17  Simon Josefsson  <jas@extundo.com>
80486
80487         * m4/md5.m4: Remove call to uint32_t.m4.
80488
80489 2005-10-17  Simon Josefsson  <jas@extundo.com>
80490
80491         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80492
80493         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80494         md5.h.
80495
80496         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80497
80498         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80499
80500 2005-10-17  Simon Josefsson  <jas@extundo.com>
80501
80502         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80503
80504 2005-10-17  Simon Josefsson  <jas@extundo.com>
80505
80506         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80507
80508 2005-10-17  Simon Josefsson  <jas@extundo.com>
80509
80510         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80511
80512         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80513
80514 2005-10-17  Bruno Haible  <bruno@clisp.org>
80515
80516         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80517         that it can also be used in a test.
80518
80519 2005-10-16  Bruno Haible  <bruno@clisp.org>
80520
80521         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80522         TESTS_ENVIRONMENT, so that individual tests can augment it.
80523
80524         * gnulib-tool (func_create_testdir): Use an intermediate target for
80525         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80526         macros, like $(ALLOCA_H), which cannot be passed through the command
80527         line.
80528
80529 2005-10-15  Simon Josefsson  <jas@extundo.com>
80530
80531         * modules/rijndael-tests: New file.
80532
80533         * modules/rijndael: New file.
80534
80535 2005-10-15  Simon Josefsson  <jas@extundo.com>
80536
80537         * m4/rijndael.m4: New file.
80538
80539 2005-10-15  Simon Josefsson  <jas@extundo.com>
80540
80541         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80542
80543         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80544
80545 2005-10-14  Simon Josefsson  <jas@extundo.com>
80546
80547         * tests/test-arcfour.c: New file.
80548
80549         * modules/arcfour, modules/arcfour-tests: New files.
80550
80551 2005-10-14  Simon Josefsson  <jas@extundo.com>
80552
80553         * m4/arcfour.m4: New file.
80554
80555 2005-10-14  Simon Josefsson  <jas@extundo.com>
80556
80557         * lib/arcfour.h, lib/arcfour.c: New files.
80558
80559 2005-10-14  Roland McGrath  <roland@redhat.com>
80560
80561         Import from libc.  [BZ #1331]
80562         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80563         macro argument.
80564         Reported by Matej Vela <vela@debian.org>.
80565
80566 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80567
80568         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80569         include <wchar.h>; no longer needed.
80570
80571 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80572
80573         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80574
80575 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80576         and  Ulrich Drepper  <drepper@redhat.com>
80577
80578         Import from libc.
80579         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80580         instead of inline stream orientation test and two separate
80581         function calls.  Pay no attention to USE_IN_LIBIO.
80582
80583 2005-10-13  Simon Josefsson  <jas@extundo.com>
80584
80585         * modules/gc-hmac-md5-tests: New file.
80586
80587         * tests/test-gc-hmac-sha1.c: New file.
80588
80589         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80590
80591         * modules/gc-hmac-md5-tests: New file.
80592
80593         * tests/test-gc-md5.c: New file.
80594
80595         * modules/gc-md5-tests: New file.
80596
80597 2005-10-13  Simon Josefsson  <jas@extundo.com>
80598
80599         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80600         Move memory allocation outside of loop.
80601
80602 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80603
80604         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80605         intermediate directory is in a read-only file system.  Problem
80606         reported by Eric Blake.
80607
80608 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80609
80610         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80611
80612 2005-10-12  Simon Josefsson  <jas@extundo.com>
80613
80614         * tests/test-hmac-sha1.c: New file.
80615
80616         * modules/hmac-sha1-tests: New file.
80617
80618         * modules/hmac-sha1: New file.
80619
80620 2005-10-12  Simon Josefsson  <jas@extundo.com>
80621
80622         * modules/gc-sha1: New file.
80623
80624 2005-10-12  Simon Josefsson  <jas@extundo.com>
80625
80626         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80627
80628         * tests/test-gc-pbkdf2-sha1.c: New file.
80629
80630 2005-10-12  Simon Josefsson  <jas@extundo.com>
80631
80632         * modules/gc-md5, modules/gc-hmac-md5: New files.
80633
80634         * modules/gc (Files): Remove md5, memxor and hmac files.
80635
80636 2005-10-12  Simon Josefsson  <jas@extundo.com>
80637
80638         * m4/gc-pbkdf2-sha1.m4: New file.
80639
80640         * m4/gc-hmac-sha1.m4: New file.
80641
80642         * m4/gc-sha1: New file.
80643
80644         * m4/hmac-sha1.m4: New file.
80645
80646 2005-10-12  Simon Josefsson  <jas@extundo.com>
80647
80648         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80649
80650         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80651
80652 2005-10-12  Simon Josefsson  <jas@extundo.com>
80653
80654         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80655         suggested by Bruno Haible <bruno@clisp.org>.
80656
80657 2005-10-12  Simon Josefsson  <jas@extundo.com>
80658
80659         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80660
80661 2005-10-12  Simon Josefsson  <jas@extundo.com>
80662
80663         * lib/gc-pbkdf2-sha1.c: New file.
80664
80665         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80666
80667 2005-10-12  Simon Josefsson  <jas@extundo.com>
80668
80669         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80670
80671         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80672
80673 2005-10-12  Simon Josefsson  <jas@extundo.com>
80674
80675         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80676         GC_USE_HMAC_MD5, respectively.
80677
80678         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80679         (gc_md5): Fix typo.
80680
80681         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80682
80683         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80684
80685         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80686
80687 2005-10-12  Bruno Haible  <bruno@clisp.org>
80688
80689         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80690         Reported by Stepan Kasal <kasal@ucw.cz>.
80691
80692 2005-10-11  Simon Josefsson  <jas@extundo.com>
80693
80694         * tests/test-crc.c: New file.
80695
80696         * modules/crc, modules/crc-tests: New files.
80697
80698 2005-10-11  Simon Josefsson  <jas@extundo.com>
80699
80700         * m4/crc.m4: New file.
80701
80702 2005-10-11  Simon Josefsson  <jas@extundo.com>
80703
80704         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80705
80706         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80707
80708         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80709
80710 2005-10-11  Simon Josefsson  <jas@extundo.com>
80711
80712         * lib/crc.h, lib/crc.c: New files.
80713
80714         * lib/gc.h (gc_hash_buffer): Add doc.
80715
80716 2005-10-11  Bruno Haible  <bruno@clisp.org>
80717
80718         * modules/c-strcasestr: New file.
80719         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80720
80721 2005-10-11  Bruno Haible  <bruno@clisp.org>
80722
80723         * modules/c-strcase: New file.
80724         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80725
80726 2005-10-11  Bruno Haible  <bruno@clisp.org>
80727
80728         * lib/strcasecmp.c: Include limits.h.
80729         (strcasecmp): Avoid integer overflow on exotic platforms.
80730         * lib/strncasecmp.c: Include limits.h.
80731         (strncasecmp): Avoid integer overflow on exotic platforms.
80732         Reported by Paul Eggert.
80733
80734 2005-10-11  Bruno Haible  <bruno@clisp.org>
80735
80736         * lib/c-strcasestr.h: New file, from GNU gettext.
80737         * lib/c-strcasestr.c: New file, from GNU gettext.
80738
80739 2005-10-11  Bruno Haible  <bruno@clisp.org>
80740
80741         * lib/c-strcase.h: New file, from GNU gettext.
80742         * lib/c-strcasecmp.c: New file, from GNU gettext.
80743         * lib/c-strncasecmp.c: New file, from GNU gettext.
80744
80745 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80746
80747         * modules/mempcpy (License): GPL -> LGPL.
80748         * modules/strchrnul (License): Likewise.
80749         * modules/sysexits (License): Likewise.
80750
80751 2005-10-08  Simon Josefsson  <jas@extundo.com>
80752
80753         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80754
80755 2005-10-07  Simon Josefsson  <jas@extundo.com>
80756
80757         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80758
80759 2005-10-06  Simon Josefsson  <jas@extundo.com>
80760
80761         * tests/test-hmac-md5.c: New file.
80762
80763         * modules/hmac-md5-tests: New file.
80764
80765         * modules/hmac-md5: New file.
80766
80767 2005-10-06  Simon Josefsson  <jas@extundo.com>
80768
80769         * m4/hmac-md5.m4: New file.
80770
80771         * m4/memxor.m4: Require gl_C_RESTRICT.
80772
80773 2005-10-06  Simon Josefsson  <jas@extundo.com>
80774
80775         * lib/memxor.c (memxor): Avoid casts and warnings.
80776
80777 2005-10-06  Simon Josefsson  <jas@extundo.com>
80778
80779         * lib/hmac-md5.c: New file.
80780
80781         * lib/hmac.h: New file.
80782
80783 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80784
80785         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80786         promotes to int, not unsigned int, to catch the AIX 5.3
80787         compiler bug.
80788
80789 2005-10-05  Simon Josefsson  <jas@extundo.com>
80790
80791         * modules/memxor: New file.
80792
80793         * modules/iconv (Files): Move config.rpath to havelib, it is used
80794         there.
80795
80796         * modules/havelib (Files): Add config.rpath.
80797
80798 2005-10-05  Simon Josefsson  <jas@extundo.com>
80799
80800         * m4/memxor.m4: New file.
80801
80802 2005-10-05  Simon Josefsson  <jas@extundo.com>
80803
80804         * lib/memxor.c (memxor): Fix compiler error.
80805
80806         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80807         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80808
80809         * lib/memxor.h, lib/memxor.c: New files.
80810
80811         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80812         we assume all systems have it, suggested by Jim Meyering
80813         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80814         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80815         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80816         same reasons.
80817
80818 2005-10-05  Simon Josefsson  <jas@extundo.com>
80819
80820         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80821
80822 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80823
80824         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80825         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80826         needed, since the source code now assumes these .h files.
80827
80828 2005-10-05  Derek Price  <derek@ximbiot.com>
80829
80830         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80831
80832 2005-10-05  Bruno Haible  <bruno@clisp.org>
80833
80834         * modules/stdint (License): Change to LGPL.
80835
80836 2005-10-04  Simon Josefsson  <jas@extundo.com>
80837
80838         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80839         D. Baushke" <mdb@gnu.org>.
80840
80841 2005-10-04  Bruno Haible  <bruno@clisp.org>
80842
80843         * lib/verify.h (verify_true): Provide alternative definition for C++.
80844
80845 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80846
80847         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80848         (SSIZE_MAX): New macro, if not already defined.
80849         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80850         than 2 GiB.
80851
80852 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80853
80854         Sync from coreutils.
80855         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80856         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80857         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80858         ULLONG_MAX doesn't work with 2.7.2.1.
80859
80860 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80861
80862         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80863         From Ben Pfaff.
80864
80865         * modules/exclude (Depends-on): Depend on verify.
80866         * modules/strtoimax (Depends-on): Likewise.
80867         * modules/utimecmp (Depends-on): Likewise.
80868
80869 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80870
80871         * lib/exclude.c: Include verify.h.
80872         (verify): Remove.  All callers changed to use verify.h's version.
80873         * lib/strtoimax.c: Likewise.
80874         * lib/utimecmp.c: Likewis.e
80875
80876         Sync from coreutils.
80877         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80878         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80879         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80880         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80881         bother returning ENOSYS if settimeofday or stime fails; just let
80882         them return whatever errno they want to return.
80883         * lib/utimens.c: Include unistd.h, for dup2.
80884         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80885         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80886
80887 2005-10-02  Jim Meyering  <jim@meyering.net>
80888
80889         Sync from coreutils.
80890         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80891         from glibc-2.2.5 that fails for read-only files.
80892
80893 2005-10-02  Jim Meyering  <jim@meyering.net>
80894
80895         Sync from coreutils.
80896         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80897         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80898         `#if HAVE_CONFIG_H'.
80899         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80900         Remove AT_FDCWD test.
80901         Do not consume the fd unless successful.
80902         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80903         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80904         block, so that we don't even try to compile it if settimeofday is
80905         available.  This works around a compilation failure on OSF1 V5.1,
80906         due to stime requiring a `long int*' while tv_sec is `int'.
80907
80908 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80909
80910         Sync from coreutils.
80911         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80912         against `yes', rather than just testing for nonempty.
80913
80914 2005-10-01  Simon Josefsson  <jas@extundo.com>
80915
80916         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80917         and Darwin.
80918
80919         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80920         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80921         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80922         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80923         Check if struct addrinfo is declared.
80924
80925 2005-10-01  Simon Josefsson  <jas@extundo.com>
80926
80927         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80928         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80929         AI_* and EAI_* definitions.  Protect function declarations.
80930
80931 2005-10-01  Jim Meyering  <jim@meyering.net>
80932
80933         Sync from coreutils.
80934
80935         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80936         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80937         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80938         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80939         in the inet and nsl libraries.  Required on Solaris 5.7.
80940
80941 2005-10-01  Jim Meyering  <jim@meyering.net>
80942
80943         Sync from coreutils.
80944         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80945         in the inet and nsl libraries.  Required on Solaris 5.7.
80946
80947 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80948
80949         * lib/getdelim.c (getdelim): Remove unused variables.
80950
80951 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80952
80953         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80954         so that the code works even with ancient cpp.  Portability problem
80955         with GCC 2.7.2.1 reported by Thomas M.Ott.
80956
80957 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80958
80959         * modules/regex (Depends-on): Add strcase.
80960
80961         * modules/gethostname (Licence): Change from GPL to LGPL, since
80962         gethostname.c is a trivial implementation of a standard library
80963         function.
80964         * modules/poll (License): Change from GPL to LGPL, since it's
80965         derived from LGPL code.
80966
80967 2005-09-27  Jim Meyering  <jim@meyering.net>
80968
80969         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80970         HAVE_CONFIG_H.
80971
80972         * lib/intprops.h (signed_type_or_expr__): Define.
80973         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80974         for unsigned types.
80975
80976 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80977
80978         * lib/verify.h (verify_expr): Remove, replacing with:
80979         (verify_true): New macro that returns true instead of void.
80980         (verify_type__): Remove.
80981         (verify): Use verify_true rather than verify_type__.
80982
80983 2005-09-26  Bruno Haible  <bruno@clisp.org>
80984
80985         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80986         is necessary.
80987         (lib_SOURCES): Remove mbchar.c.
80988         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80989         (Files): Add m4/mbrtowc.m4.
80990         * modules/mbiter: Likewise.
80991         * modules/mbuiter: Likewise.
80992
80993 2005-09-26  Bruno Haible  <bruno@clisp.org>
80994
80995         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80996         compile mbchar.c if they are not both present.
80997         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80998         * m4/mbiter.m4 (gl_MBITER): Likewise.
80999         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81000         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81001         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81002
81003 2005-09-25  Jim Meyering  <jim@meyering.net>
81004
81005         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81006         also uses socklen_t.
81007
81008 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81009
81010         * lib/utimens.c (ENOSYS): Define if not already defined.
81011         (futimens): Support having a null PATH if the file descriptor
81012         is nonnegative.
81013
81014         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81015         Remove.
81016         (__attribute): Define to empty unless GCC 3.1 or later.
81017         This works around a core dump on OpenBSD 3.4, which has GCC
81018         2.95.3, which dumps core when given __attribute__(()).  It also
81019         simplifies other tests, since we really don't want to bother with
81020         worrying about which ancient version of GCC supported what.
81021         Original problem reported by Yoann Vandoorselaere, with part of
81022         the fix suggested by Derek Price.
81023
81024 2005-09-24  Jim Meyering  <jim@meyering.net>
81025
81026         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81027         so we can once again use a positive bitfield width of 1 -- now we
81028         don't have to explain why we were using a bitfield width of 2.
81029
81030 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81031
81032         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81033         and similarly for the other external symbols.  Problem reported
81034         by James Gallager.
81035
81036         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81037         bug reported by Jim Meyering.
81038
81039         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81040         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81041         not needed, since socklen is a prerequisite module.
81042
81043 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81044
81045         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81046         Problem reported by Eric Blake.
81047         (getaddrinfo): Initialize se so that it's not garbage.
81048         Redo internal storage allocation so that it doesn't make unportable
81049         assumptions about alignment.
81050         Fix a memory leak.
81051
81052         * lib/utimens.c (futimens): Use futimesat if available.
81053         Prefer it to futimes since it doesn't have the futimes bug.
81054
81055         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81056         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81057         Instead, declare a function that returns a pointer to an array,
81058         and use verify_type__ to declare the size of the array.
81059         Problem and germ of a solution reported by Bruno Haible.
81060         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81061         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81062
81063 2005-09-23  Jim Meyering  <jim@meyering.net>
81064
81065         Sync from coreutils.
81066         Correct build failure (socklen_t not defined) on at least
81067         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81068         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81069
81070 2005-09-23  Jim Meyering  <jim@meyering.net>
81071
81072         * modules/getaddrinfo (Depends-on): Add socklen.
81073
81074 2005-09-23  Bruno Haible  <bruno@clisp.org>
81075
81076         * tests/test-verify.c: New file.
81077
81078 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81079
81080         Sync from coreutils.
81081
81082         * modules/argmatch (Depends-on): Add verify.
81083         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81084         unistd-safer.
81085         * modules/save-cwd (Depends-on): Likewise.
81086
81087         * modules/openat (Files): Add lib/openat-die.c.
81088         (Depends-on): Remove error, exitfail.
81089         Add dirname.
81090
81091         * modules/verify: New file.
81092         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81093         with "verify" module.
81094
81095 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81096
81097         Sync from coreutils.
81098
81099         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81100         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81101         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81102         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81103         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81104         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81105         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81106         Don't bother checking for string.h, stdlib.h, unistd.h.
81107         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81108         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81109         module's job.
81110         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81111         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81112
81113         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81114         (gl_GETDATE): Use it.
81115
81116         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81117
81118 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81119
81120         Sync from coreutils.
81121
81122         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81123         stat-time.h.
81124         * lib/argmatch.h: Include verify.h
81125         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81126         (ARGMATCH_ASSERT): Remove; unused.
81127         * lib/canonicalize.c: Assume STDC_HEADERS.
81128         * lib/exclude.c: Include "strcase.h".
81129         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81130         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81131         and stdio-safer.h.
81132         (getusershell): Call fopen, not fopen_safer.
81133         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81134         Do not include unistd-safer.h.
81135         (save_cwd): Don't call fd_safer; no longer needed
81136         now that we include fcntl--.h.
81137
81138         * lib/getdate.y (relative_time): New type.
81139         (RELATIVE_TIME_0): New constant.
81140         (parser_control): Use relative_time instead of doing it ourselves.
81141         (%union): Add new relative_time rel member.
81142         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81143         Now typeless.
81144         (relunit, relunit_snumber): Now of type rel.
81145         (zone, rel, relunit, get_date): Adjust to above changes.
81146
81147         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81148         Do not include unistd-safer.h.
81149         (getloadavg): Don't call fd_safer; no longer needed
81150         now that we include fcntl--.h.
81151
81152         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81153         (make_dir_parents): Treat ENOSYS like EEXIST.
81154
81155         Improve quality of diagnostics on restore_cwd failure.
81156         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81157         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81158         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81159         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81160         each time through the loop.  Do not diagnose restore_cwd failure;
81161         that is the caller's job (and perhaps the caller does not care).
81162
81163         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81164         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81165         If the file already exists but is not a directory, don't bother
81166         to try to make its parents.
81167         Close potential file descriptor leak if we can't chdir("/") (!).
81168         Don't always return true if chdir($PWD) fails; return true only
81169         if the requested action was done successfully (except for the
81170         chdir($PWD)).
81171         Don't log final directory unless we actually made it.
81172         Refactor to avoid duplicate code to fix up permissions.
81173         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81174
81175         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81176         to make it a bit faster and (I hope) clearer.
81177         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81178         Fix bug in formats like %2N.
81179
81180         * lib/verify.h: New file.
81181
81182 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81183
81184         Sync from coreutils.
81185         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81186
81187 2005-09-22  Jim Meyering  <jim@meyering.net>
81188
81189         Sync from coreutils.
81190
81191         * m4/lstat.m4 (gl_FUNC_LSTAT):
81192         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81193         Remove obsolete comment.
81194         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81195         * m4/xstrtod.m4: Likewise.
81196
81197         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81198
81199 2005-09-22  Jim Meyering  <jim@meyering.net>
81200
81201         Sync from coreutils.
81202
81203         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81204
81205         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81206         the .tm_year member, since otherwise gcc-4.0 would now warn about
81207         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81208
81209         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81210         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81211
81212         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81213         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81214         when run in a time zone for which daylight savings time is in effect
81215         for the starting date.
81216
81217         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81218         stop us from restricting permissions of just-created absolute-named
81219         directories.
81220         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81221         to restore initial working directory.
81222         * lib/mkdir-p.c (make_dir_parents): New parameter:
81223         different_working_dir, to tell caller if/when we change the working
81224         directory and are unable to return to the initial one.
81225         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81226         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81227         `return false'.  This fixes a bug introduced on 2004-07-30.
81228
81229         * lib/openat.c (fdopendir): Be sure to close the supplied
81230         file descriptor before returning.  This makes our replacement
81231         implementation a little closer to Solaris's, where fdopendir
81232         ties the file descriptor to the returned DIR* pointer.
81233         * lib/openat.c (unlinkat): New function.
81234         * lib/openat.h (unlinkat): Add prototype.
81235         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81236         (openat_restore_fail): Rename from openat_restore_die.
81237         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81238
81239         Provide an alternative to exiting immediately upon save_cwd or
81240         restore_cwd failure.  Now, an application can arrange e.g.,
81241         to perform a longjump in that case.
81242         * lib/openat.c: Include dirname.h.
81243         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81244         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81245         and openat_restore_die rather than calling error directly.
81246         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81247
81248         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81249         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81250         define.
81251
81252         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81253         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81254                             int utc, int nanoseconds);
81255         Background:
81256         date should not have to allocate a megabyte of virtual memory to
81257         handle a format argument like +%1048575T.  When implemented with
81258         strftime, it must allocate such a buffer, use strftime to fill it
81259         in, print it, then free it.
81260         With fprintftime, it simply prints everything and exits.
81261         With no need for memory allocation, that's one fewer way to fail.
81262         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
81263         optional field width, not before, so we accept %9:z, not %:9z.
81264         (my_strftime): Be sure to use L_('x') for literals.
81265
81266         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81267         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81268         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81269         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81270         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81271         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81272         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81273         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81274         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81275         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81276         * lib/xgethostname.c, lib/xreadlink.c:
81277         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81278
81279         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81280         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81281         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81282         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81283         and don't include <sys/file.h>).
81284
81285 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81286
81287         Sync from coreutils.
81288
81289         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81290         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81291         [!LDAV_DONE]: Avoid unused variable warning.
81292
81293 2005-09-21  Bruno Haible  <bruno@clisp.org>
81294
81295         * lib/unicodeio.h (unicode_to_mb): New declaration.
81296
81297 2005-09-20  Derek Price  <derek@ximbiot.com>
81298
81299         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81300         getaddrinfo.h.
81301
81302 2005-09-20  Bruno Haible  <bruno@clisp.org>
81303
81304         * gnulib-tool: Remove trailing slashes from the values specified for
81305         --source-base, --m4-base, --tests-base, --aux-dir.
81306         Suggested by Simon Josefsson <jas@extundo.com>.
81307
81308 2005-09-20  Bruno Haible  <bruno@clisp.org>
81309
81310         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81311         func_modules_to_filelist, func_import, func_create_testdir): Make all
81312         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81313         change when gnulib-tool is invoked in a different locale.
81314
81315 2005-09-19  Simon Josefsson  <jas@extundo.com>
81316
81317         * m4/socklen.m4: Fix typo.
81318
81319 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81320
81321         Use a consistent style for including <config.h>.
81322         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81323         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81324         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81325         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81326         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81327         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81328         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
81329         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
81330         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
81331         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
81332         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
81333         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
81334         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
81335         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
81336         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
81337         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
81338         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
81339         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
81340         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
81341         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
81342         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
81343         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
81344         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
81345         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
81346         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
81347         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
81348         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
81349         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
81350         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
81351         lib/xstrtoumax.c, lib/yesno.c:
81352         Standardize inclusion of config.h.
81353         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
81354         lib/inttostr.h:  Removed inclusion of config.h from header files.
81355         * lib/inttostr.c:  Adjusted in-tree users.
81356         * lib/timespec.h: Remove superfluous warning to include config.h.
81357         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
81358         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
81359         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
81360         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
81361         config.h with HAVE_CONFIG_H.
81362
81363 2005-09-19  Jim Meyering  <jim@meyering.net>
81364
81365         * modules/pathmax (License): Change to LGPL.
81366
81367 2005-09-19  Derek Price  <derek@ximbiot.com>
81368
81369         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
81370
81371 2005-09-19  Bruno Haible  <bruno@clisp.org>
81372
81373         * gnulib-tool (import): Provide default for --tests-base.
81374
81375 2005-09-19  Bruno Haible  <bruno@clisp.org>
81376
81377         * doc/quote.texi: New file, extracted from gnulib.texi.
81378         * doc/ctime.texi: New file, extracted from gnulib.texi.
81379         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
81380         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
81381         * doc/gnulib.texi: Include them.
81382
81383 2005-09-18  Bruno Haible  <bruno@clisp.org>
81384
81385         Portability fix.
81386         * gnulib-tool (func_readlink): New function.
81387         (func_ln_if_changed): Use it.
81388
81389 2005-09-18  Bruno Haible  <bruno@clisp.org>
81390
81391         * gnulib-tool: Support --with-tests also with --import.
81392         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81393         (func_import): Use variables $testsbase and $inctests. Emit a
81394         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81395         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81396         SUBDIRS += $testsdir.
81397         (func_create_testdir): Update.
81398
81399 2005-09-18  Bruno Haible  <bruno@clisp.org>
81400
81401         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81402         instead of $dry_run.
81403         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81404         (func_ln_if_changed): Don't handle dry-run here.
81405         (func_import): In dry-run mode, detect more precisely which actions
81406         would be performed, and don't use "...ing" verbs.
81407
81408 2005-09-18  Bruno Haible  <bruno@clisp.org>
81409
81410         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
81411         (func_import): Use join on two temporary files instead of three nested
81412         loops, in order to determine which files are new or old.
81413
81414 2005-09-18  Bruno Haible  <bruno@clisp.org>
81415
81416         * gnulib-tool (func_import): Comment out code that spits out the
81417         new files with --dry-run.
81418
81419 2005-09-18  Bruno Haible  <bruno@clisp.org>
81420
81421         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
81422
81423 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81424
81425         * lib/stat-time.h: New file.
81426         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81427         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81428         in a different way.
81429         (timespec_cmp): New function.
81430         * lib/utimecmp.c: Include stat-time.h.
81431         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81432         members exist, not on the obsolescent ST_MTIM_NSEC.
81433         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81434
81435 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81436
81437         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
81438
81439 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81440
81441         * MODULES.html.sh (File system functions): Add stat-time.
81442         * modules/stat-time: New file.
81443         * modules/timespec (Files): Remove m4/st_mtim.m4; this
81444         is now done in a different way, by the stat-time module.
81445         * modules/utimecmp (Depends-on): Add stat-time.
81446
81447 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
81448
81449         * m4/st_mtim.m4: Remove.  Superseded by...
81450         * m4/stat-time.m4: New file.
81451         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
81452         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
81453
81454 2005-09-15  Derek Price  <derek@ximbiot.com>
81455
81456         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
81457
81458 2005-09-15  Derek Price  <derek@ximbiot.com>
81459
81460         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
81461         * lib/regex_internal.c: Ditto, using this...
81462         (__GNUC_PREREQ): ...new macro.
81463         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
81464         using...
81465         (__GNUC_PREREQ): ...this new macro.
81466
81467         * lib/strstr.h: Include string.h. Define strstr as a macro here.
81468
81469 2005-09-15  Derek Price  <derek@ximbiot.com>
81470             Paul Eggert  <eggert@cs.ucla.edu>
81471
81472         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
81473         changes, consolidating in...
81474         * lib/regex_internal.h: ...this file.
81475
81476 2005-09-13  Jim Meyering  <jim@meyering.net>
81477
81478         * lib/canon-host.c: Filter through gnu indent and reword comments
81479         slightly.
81480         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
81481
81482 2005-09-13  Derek Price  <derek@ximbiot.com>
81483
81484         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81485         failure.
81486         Reported by Jim Meyering  <jim@meyering.net>.
81487
81488 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81489
81490         * lib/base64.c: Typo.
81491         (base64_encode): Put b64str in initialized data section.
81492
81493 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81494
81495         Merge glibc and coreutils changes into gnulib, plus a few
81496         extra fixes.
81497         * lib/md5.c: Use #error rather than a string.
81498         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81499         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81500         (__attribute__): Define to empty for non recent-GCC.
81501         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81502         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81503         Renamed from their non-__ counterparts, with new macros replacing
81504         them if not _LIBC.  Add __THROW attribute.
81505         (rol): Remove.
81506         (struct md5_ctx): Align buffer if using GCC.
81507         * lib/sha1.h (struct sha1_ctx): Likewise.
81508         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81509         The old name was backwards.
81510         (NOTSWAP): Remove; not used.
81511         (rol): New macro, moved here from md5.h.
81512         (sha1_process_block): Remove a FIXME that doesn't make sense.
81513
81514 2005-09-12  Derek Price  <derek@ximbiot.com>
81515
81516         Return usable errors from canon-host.
81517         * lib/canon-host.h: New file.
81518         * lib/canon-host.c (canon_host): Wrap...
81519         (canon_host_r): ...this new function, which now relies exclusively on
81520         getaddrinfo.
81521         (ch_strerror): New function.
81522         (last_cherror): New global.
81523         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81524         interface.
81525         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81526         void *.
81527         (freeaddrinfo): Free ai->ai_canonname when set.
81528
81529 2005-09-12  Derek Price  <derek@ximbiot.com>
81530
81531         Make canon-host require getaddrinfo.
81532         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81533         AC_LIBSOURCE canon-host.h.  Call...
81534         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81535         gl_GETADDRINFO.
81536         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81537
81538 2005-09-12  Derek Price  <derek@ximbiot.com>
81539
81540         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81541         LGPL.
81542         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81543
81544 2005-09-12  Derek Price  <derek@ximbiot.com>
81545
81546         * lib/gai_strerror.c: Include config.h when available.  Include
81547         getaddrinfo.h before other headers to test interface.
81548         Reported by Larry Jones <lawrence.jones@ugs.com>.
81549
81550 2005-09-12  Derek Price  <derek@ximbiot.com>
81551             Paul Eggert  <eggert@cs.ucla.edu>
81552
81553         * modules/glob (Files): Add glob-libc.h.
81554
81555 2005-09-12  Derek Price  <derek@ximbiot.com>
81556             Paul Eggert  <eggert@cs.ucla.edu>
81557
81558         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81559         glob_.h, glob-libc.h.
81560         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81561
81562 2005-09-12  Derek Price  <derek@ximbiot.com>
81563             Paul Eggert  <eggert@cs.ucla.edu>
81564
81565         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81566         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81567         protecting things that should be done only in gnulib contexts.
81568         * lib/glob_.h: New file, containing only the glob things needed for
81569         gnulib.
81570         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81571         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81572         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81573         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81574         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81575         and to respect the namespace rules better.
81576
81577 2005-09-08  Simon Josefsson  <jas@extundo.com>
81578
81579         * modules/socklen: New file.
81580
81581 2005-09-08  Simon Josefsson  <jas@extundo.com>
81582
81583         * m4/socklen.m4: New file.
81584
81585 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81586
81587         * modules/utimens (Files): Add m4/utimbuf.m4, since
81588         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81589         Reported by Sergey Poznyakoff.
81590
81591 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81592
81593         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81594         definitions, since that's the preferred style in glibc.
81595         Fix a minor spacing issue, and update copyright notice to match
81596         glibc's.
81597
81598 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81599
81600         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81601
81602 2005-09-06  Simon Josefsson  <jas@extundo.com>
81603
81604         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81605         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81606
81607 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81608
81609         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81610         warning.
81611
81612 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81613
81614         * config/srclist.txt: Add glibc bug 1302.
81615
81616 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81617
81618         Change bitset word type from unsigned int to unsigned long int,
81619         as this has better performance on typical 64-bit hosts.
81620         Port bitset code to hosts with unusual word sizes.
81621         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81622         (build_collating_symbol):
81623         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81624         argument is a bitset.  This is merely a style issue, but it makes
81625         it clearer that an entire array is expected.
81626         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81627         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81628         Port to the case where bitset_word is not the same as unsigned int.
81629         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81630         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81631         Likewise.
81632         * lib/regexec.c (check_dst_limits_calc_pos_1,
81633         check_subexp_matching_top):
81634         (build_trtable, group_nodes_into_DFAstates):
81635         Likewise.
81636         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81637         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81638         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81639         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81640         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81641         * lib/regcomp.c (optimize_subexps, lower_subexp):
81642         Work even if bitset_word has holes in its bitwise representation.
81643         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81644         * lib/regexec.c (check_dst_limits_calc_pos_1,
81645         check_subexp_matching_top):
81646         Likewise.
81647         * lib/regex_internal.c (re_string_reconstruct):
81648         Don't assume UCHAR_MAX == 255.
81649         * lib/regex_internal.h (bitset_set_all): Likewise.
81650         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81651         All uses changed.
81652         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81653         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81654         All uses changed.
81655         (BITSET_WORD_MAX): New macro.
81656         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81657         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81658         (bitset_empty, bitset_copy):
81659         Prefer sizeof (bitset) to multiplying it out ourselves.
81660         (bitset_not_merge): Remove; unused.
81661         (bitset_contain): Return bool, not unsigned int with one bit on.
81662         All callers changed.
81663         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81664         alignment than re_node_set; do this by defining a new internal
81665         type struct dests_alloc and using it to allocate memory.
81666
81667 2005-09-05  Bruno Haible  <bruno@clisp.org>
81668
81669         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81670         links.
81671
81672 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81673
81674         * modules/size_max (Makefile.am): Add size_max.h
81675
81676 2005-09-04  Derek Price  <derek@ximbiot.com>
81677
81678         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81679
81680 2005-09-03  Simon Josefsson  <jas@extundo.com>
81681
81682         * gnulib-tool: Fix typo.
81683
81684 2005-09-03  Simon Josefsson  <jas@extundo.com>
81685
81686         * config/srclist.txt: Add glibc bug 1293.
81687
81688 2005-09-03  Derek Price  <derek@ximbiot.com>
81689
81690         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81691         From Larry Jones <lawrence.jones@ugs.com>.
81692
81693 2005-09-02  Simon Josefsson  <jas@extundo.com>
81694
81695         * modules/socklen: New file.
81696
81697 2005-09-02  Simon Josefsson  <jas@extundo.com>
81698
81699         * modules/havelib: New module.
81700
81701         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81702         Use havelib.
81703
81704 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81705
81706         Check for arithmetic overflow when calculating sizes, to prevent
81707         some buffer-overflow issues.  These patches are conservative, in the
81708         sense that when I couldn't determine whether an overflow was possible,
81709         I inserted a run-time check.
81710         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81711         macros.
81712         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81713         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81714         (re_xnrealloc, re_x2nrealloc): New inline functions.
81715         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81716         parse_bracket_exp):
81717         (build_equiv_class, build_charclass): Check for arithmetic overflow
81718         in size expression calculations.
81719         * lib/regex_internal.c (re_string_realloc_buffers):
81720         (build_wcs_upper_buffer, re_node_set_add_intersect):
81721         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81722         (re_dfa_add_node, register_state): Likewise.
81723         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81724         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81725         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81726         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81727
81728 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81729
81730         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81731         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81732
81733 2005-09-02  Bruno Haible  <bruno@clisp.org>
81734
81735         Support for lib vs. lib64 distinction on biarch platforms.
81736         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81737         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81738         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81739
81740 2005-09-02  Bruno Haible  <bruno@clisp.org>
81741
81742         * gnulib-tool (import): In the other first-use case, provide defaults
81743         as well.
81744
81745 2005-09-02  Bruno Haible  <bruno@clisp.org>
81746
81747         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81748         patches not yet found in the latest gettext release.
81749
81750 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81751
81752         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81753         to avoid a collision with bits/local_lim.h in glibc.
81754         All uses changed.  Problem reported by Dmitry V. Levin in
81755         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81756
81757         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81758         bugs in int versus size_t comparisons.
81759         (re_string_context_at): Fix bug where the code assumed that
81760         Idx is signed.
81761
81762         Use bool where appropriate.
81763         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81764         All callers changed.
81765         (calc_eclosure_iter): Likewise, for ROOT arg.
81766         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81767         (build_charclass_op): Likewise, for NON_MATCH arg.
81768         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81769         (re_string_construct_common): Likewise, for ICASE arg.
81770         * lib/regexec.c (re_search_2_stub, re_search_stub):
81771         Likewise, for RET_LEN arg.
81772         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81773         (set_regs): Likewise, for FL_BACKTRACK arg.
81774         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81775         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81776         (calc_eclosure_iter, parse_bracket_exp):
81777         Use bool for internal variables that are booleans.
81778         * lib/regexec.c (re_search_internal, check_matching,
81779         proceed_next_node):
81780         (set_regs, build_sifted_states, sift_states_bkref):
81781         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81782         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81783         (find_collation_sequence_value):
81784         Likewise.
81785         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81786         (re_node_set_compare):
81787         Return bool, not int. All callers changed.
81788         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81789         (build_trtable, check_node_accept): Likewise.
81790         * lib/regex_internal.h: Include stdbool.h.
81791
81792         Fix bugs uncovered when converting to bool.
81793         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81794         failure instead of charging ahead blindly.
81795         * lib/regex_internal.c (register_state): Likewise.
81796         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81797         for freeing internal storage.
81798         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81799         bitset pieces used as boolean, to avoid undefined behavior
81800         on hosts that do int overflow checking.
81801
81802 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81803
81804         * config/srclist.txt: Add glibc bugs 1285-1287.
81805
81806 2005-09-01  Jim Meyering  <jim@meyering.net>
81807
81808         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81809         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81810         Require gl_STAT_MACROS, too.
81811
81812 2005-09-01  Bruno Haible  <bruno@clisp.org>
81813
81814         * gnulib-tool (import): In the first-use case, provide defaults.
81815
81816 2005-09-01  Bruno Haible  <bruno@clisp.org>
81817
81818         * gnulib-tool (func_import): Remove the .tmp files.
81819
81820 2005-09-01  Bruno Haible  <bruno@clisp.org>
81821
81822         * gnulib-tool (func_import): Fix handling of symbolic links.
81823
81824 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81825
81826         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81827         old glibc regex code mishandles strings longer than 2**31 bytes.
81828         This patch fixes this when the regex code is used in gnulib
81829         (i.e., outside glibc).
81830
81831         This patch should not affect the use of the regex code inside
81832         glibc.  No doubt this problem also needs to be handled for glibc
81833         as well, but the result will be an incompatible change to the
81834         glibc ABI, and the old ABI will have to be supported too.  That
81835         can be the the subject for another patch.
81836
81837         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81838         governing whether the rest of this patch is active.  By default,
81839         the macro is disabled and the patch has no effect.
81840         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81841         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81842         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81843         (re_match_2, re_set_registers): Use the new types.
81844         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81845         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81846         New macros.
81847         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81848         (re_string_context_at, bin_tree_t, re_dfastate_t):
81849         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81850         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81851         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81852         (re_string_char_size_at, re_string_wchar_at):
81853         (re_string_elem_size_at):
81854         Use the new types and macros to port to 64-bit hosts.
81855         Use unsigned types for internal values, so that the code
81856         mostly works even for arrays larger than SSIZE_MAX.
81857         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81858         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81859         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81860         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81861         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81862         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81863         (calc_inveclosure, parse_dup_op, build_range_exp):
81864         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81865         (fetch_number, create_token_tree, mark_opt_subexp):
81866         Likewise.
81867         * lib/regex_internal.c (re_string_construct_common,
81868         create_ci_newstate):
81869         (create_cd_newstate, re_string_allocate, re_string_construct):
81870         (re_string_realloc_buffers, build_wcs_upper_buffer):
81871         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81872         (re_string_reconstruct, re_string_peek_byte_case):
81873         (re_string_fetch_byte_case, re_string_context_at):
81874         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81875         (re_node_set_init_copy, re_node_set_add_intersect):
81876         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81877         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81878         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81879         (re_acquire_state, re_acquire_state_context, register_state):
81880         Likewise.
81881         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81882         search_cur_bkref_entry):
81883         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81884         (re_search_internal, re_search_2_stub, re_search_stub)
81885         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81886         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81887         (update_cur_sifted_state, check_dst_limits):
81888         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81889         (check_subexp_limits, sift_states_bkref, merge_state_array):
81890         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81891         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81892         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81893         (expand_bkref_cache, check_node_accept_bytes):
81894         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81895         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81896         (acquire_init_state_context, check_halt_node_context):
81897         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81898         (sift_states_backward, clean_state_log_if_needed):
81899         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81900         (find_recover_state, transit_state_sb, transit_state_mb):
81901         (transit_state_bkref, build_trtable, match_ctx_clean):
81902         Likewise.
81903         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81904         to work around an assumption that REG_MISSING is negative.
81905
81906         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81907         (seek_collating_symbol_entry) [defined _LIBC]:
81908         (lookup_collation_sequence_value) [defined _LIBC]:
81909         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81910         Use prototypes rather than old-style function definitions.
81911         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81912         (transit_state_sb) [0]:
81913         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81914
81915         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81916         rm_eo.
81917
81918         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81919         (optimize_subexps, lower_subexp):
81920         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81921         since the signed shift might overflow.  Use 1u<<31 instead.
81922         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81923         Likewise.
81924         * lib/regexec.c (check_dst_limits_calc_pos_1,
81925         check_subexp_matching_top): Likewise.
81926
81927         * lib/regcomp.c (optimize_subexps, lower_subexp):
81928         Use CHAR_BIT rather than 8, for clarity.
81929         * lib/regexec.c (check_dst_limits_calc_pos_1):
81930         (check_subexp_matching_top): Likewise.
81931         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81932         have to worry about portability issues when shifting it left.
81933         Remove no-longer-needed test for table_size > 0.
81934         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81935         in a word, as the resulting behavior is undefined.
81936         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81937         in one case, a <= should have been an <, and in another case the
81938         whole test was missing.
81939         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81940         the standard name CHAR_BIT.
81941         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81942         this is not true on one's complement and signed-magnitude hosts.
81943
81944         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81945         next_last_offset.
81946         (struct re_dfa_t): Remove unused member states_alloc.
81947         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81948
81949 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81950
81951         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81952         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81953         and large-file glibc and in 32-bit large-file Solaris.
81954
81955 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81956
81957         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81958         lengths fit in regoff_t; this isn't true if regoff_t is the same
81959         width as size_t.
81960         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81961         (= START + RANGE) instead of RANGE.  This avoids overflow
81962         problems when regoff_t is the same width as size_t.
81963         All callers changed.
81964         (re_search_2_stub): Check for overflow when adding the
81965         sizes of the two strings.
81966         (re_search_stub): Check for overflow when adding START
81967         to RANGE; if it occurs, substitute the extreme value.
81968
81969 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81970
81971         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81972
81973 2005-08-31  Jim Meyering  <jim@meyering.net>
81974
81975         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81976         a pointer-to-const.
81977         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81978         (register_state): Likewise.
81979         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81980         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81981         (group_nodes_into_DFAstates): Likewise.
81982
81983 2005-08-31  Jim Meyering  <jim@meyering.net>
81984
81985         * check-module: Add a FIXME comment.
81986
81987 2005-08-31  Eric Blake  <ebb9@byu.net>
81988
81989         * modules/unistd-safer (Files): Add unistd--.h.
81990         * modules/stdio-safer (Files): Add stdio--.h.
81991
81992 2005-08-31  Derek Price  <derek@ximbiot.com>
81993
81994         * lib/getdelim.c (getdelim): Return EOF on EOF.
81995         Reported by Larry Jones <lawrence.jones@ugs.com>.
81996
81997 2005-08-31  Bruno Haible  <bruno@clisp.org>
81998
81999         Avoid unnecessary diffs in the generated lib/Makefile.am.
82000         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82001         the generated files.
82002         (func_import): Don't set cmd.
82003
82004 2005-08-31  Bruno Haible  <bruno@clisp.org>
82005
82006         * lib/strstr.c: Include <stddef.h>, for NULL.
82007         * lib/strcasestr.c: Likewise.
82008         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82009
82010 2005-08-31  Bruno Haible  <bruno@clisp.org>
82011
82012         * gnulib-tool: New option --macro-prefix.
82013         (func_import): Use macro_prefix.
82014         (import): Handle option --macro-prefix.
82015
82016 2005-08-31  Bruno Haible  <bruno@clisp.org>
82017
82018         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82019         Also use new variables cached_lgpl, cached_libtool.
82020
82021 2005-08-31  Bruno Haible  <bruno@clisp.org>
82022
82023         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82024         always instantiating them.
82025
82026 2005-08-31  Bruno Haible  <bruno@clisp.org>
82027
82028         * gnulib-tool (func_import): Read the previous cached settings
82029         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82030         earlier added by gnulib but are now dropped. Warn when a gnulib file
82031         overwrites a non-gnulib file.
82032
82033 2005-08-31  Bruno Haible  <bruno@clisp.org>
82034
82035         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82036         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82037         projects that don't keep autogenerated files in CVS. Put into
82038         actioncmd only the specified modules, not the transitive closure.
82039
82040 2005-08-31  Bruno Haible  <bruno@clisp.org>
82041
82042         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82043         Create directories that shall be filled.
82044         (import): Don't look for gl_* macros in configure.ac. Recurse across
82045         all directories containing a gnulib-cache.m4 files, if meaningful.
82046
82047 2005-08-31  Bruno Haible  <bruno@clisp.org>
82048
82049         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82050         (import): Set seen_libtool when we see gl_LIBTOOL.
82051
82052 2005-08-31  Bruno Haible  <bruno@clisp.org>
82053
82054         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82055         declaration macro definitions from generated gnulib.m4.
82056
82057 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82058
82059         * lib/iconvme.h: Add prototype for iconv_alloc.
82060
82061 2005-08-29  Simon Josefsson  <jas@extundo.com>
82062
82063         * lib/iconvme.c: Fix errno.
82064
82065 2005-08-29  Bruno Haible  <bruno@clisp.org>
82066
82067         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82068         that it works when the directory contains spaces.
82069
82070 2005-08-29  Bruno Haible  <bruno@clisp.org>
82071
82072         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82073
82074 2005-08-29  Bruno Haible  <bruno@clisp.org>
82075
82076         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82077         Emit more advice.
82078
82079 2005-08-29  Bruno Haible  <bruno@clisp.org>
82080         and Stepan Kasal  <kasal@ucw.cz>
82081
82082         * check-module: If more parameters are given, check each of them
82083         separately; add more exceptions, as noted by Jim Meyering.
82084         (check_module): New procedure.
82085         (%exempt_header): Now contains all exceptions.
82086
82087 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82088
82089         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82090
82091 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82092
82093         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82094
82095 2005-08-28  Bruno Haible  <bruno@clisp.org>
82096
82097         * m4/gnulib-tool.m4: New file.
82098
82099 2005-08-27  Jim Meyering  <jim@meyering.net>
82100
82101         * modules/unistd-safer (Files): Add pipe-safer.c.
82102         * modules/fcntl-safer (Files): Add creat-safer.c.
82103
82104 2005-08-27  Jim Meyering  <jim@meyering.net>
82105
82106         * m4/stdlib-safer.m4: New file.  From coreutils.
82107         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82108         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82109         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82110         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82111         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82112
82113 2005-08-27  Jim Meyering  <jim@meyering.net>
82114
82115         * lib/fopen-safer.c: Merge minor changes from coreutils.
82116         * lib/dup-safer.c: Likewise.
82117         * lib/fd-safer.c: Likewise.
82118
82119         Merge from coreutils.
82120         * lib/stdio--.h: New file.
82121         * lib/stdlib--.h: New file.
82122         * lib/mkstemp-safer.c: New file.
82123
82124         GNU tar needs these.
82125         * lib/pipe-safer.c: New file.
82126         * lib/creat-safer.c: New file.
82127         * lib/fcntl--.h (creat): Define to creat_safer.
82128         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82129         * lib/unistd--.h (pipe): Define to pipe_safer.
82130         * lib/unistd-safer.h: Declare pipe_safer.
82131
82132 2005-08-26  Simon Josefsson  <jas@extundo.com>
82133
82134         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82135         Haible <bruno@clisp.org>.
82136
82137 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82138
82139         * lib/regex_internal.h: Remove all references to
82140         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82141         or better.
82142         (bitset_not, bitset_merge, bitset_not_merge):
82143         (bitset_mask, re_string_allocate, re_string_construct):
82144         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82145         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82146         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82147         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82148         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82149         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82150         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82151         (re_acquire_state_context):
82152         Remove unnecessary forward decls.
82153         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82154         Put __attribute at function definition,
82155         now that the function decl has been removed.
82156         * lib/regex_internal.c (re_string_peek_byte_case):
82157         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82158         Likewise.
82159
82160 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82161
82162         * m4/regex.m4: Add AC_PREREQ(2.50).
82163         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82164
82165 2005-08-25  Simon Josefsson  <jas@extundo.com>
82166
82167         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82168         __fsetlocking.
82169
82170 2005-08-25  Simon Josefsson  <jas@extundo.com>
82171
82172         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82173         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82174         GLIBC specific code.
82175
82176 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82177
82178         Make regex safe for g++.  This fixes one real bug (an "err"
82179         that should have been "*err").  g++ problem reported by
82180         Sam Steingold.
82181         * lib/regex_internal.h (re_calloc): New macro, consistent with
82182         re_malloc etc.  All callers of calloc changed to use re_calloc.
82183         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82184         not int.  All callers changed.
82185         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82186         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82187         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82188         (find_recover_state): Change "err" to "*err"; this fixes what
82189         appears to be a real bug.
82190         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82191         versus int.
82192
82193 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82194
82195         * modules/regex (Depends-on): Add malloc, since the code
82196         assumes that !malloc(0) means failure.
82197
82198 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82199
82200         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82201
82202         alloca modernization/simplification for regex.
82203         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82204         needs to be at the start of the file, and can be moved into
82205         regex_internal.h and simplified.
82206         * lib/regex_internal.h: Include <alloca.h>.
82207         (__libc_use_alloca) [!defined _LIBC]: New macro.
82208         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82209         now works outside glibc.
82210
82211 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82212
82213         * config/srclist.txt: Add glibc bugs 1241, 1245.
82214
82215 2005-08-25  Jim Meyering  <jim@meyering.net>
82216
82217         * lib/open-safer.c: Include <config.h>.
82218         Otherwise, we'd lose LARGEFILE support in any file using
82219         e.g. "fcntl--.h"
82220
82221 2005-08-25  Bruno Haible  <bruno@clisp.org>
82222
82223         * m4/minmax.m4: Require autoconf 2.52.
82224         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82225         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82226         alternatives of translit over the alphabet.
82227         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82228
82229 2005-08-24  Simon Josefsson  <jas@extundo.com>
82230
82231         * tests/test-getpass.c: New file.
82232
82233 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82234
82235         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82236         for GNU regex features.
82237
82238 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82239
82240         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82241         * lib/regex.h (regerror): Likewise.
82242
82243         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82244         requires this.  (The code never needed it.)
82245
82246         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82247         All uses of recently-renamed identifiers changed to use the new,
82248         POSIX-compliant names.  The code will build and run just fine
82249         without these changes, but it's better to eat our own dog food
82250         and use the standard-conforming names.
82251
82252         * lib/regex.h: Fix a multitude of POSIX name space violations.
82253         These changes have an effect only for programs that define
82254         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
82255         do not change anything for programs compiled in the normal way.
82256         Also, there is no effect on the ABI.
82257
82258         (_REGEX_SOURCE): New macro.
82259         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
82260         defined and _GNU_SOURCE is not; this fixes a name space violation.
82261
82262         Rename the following macros to obey POSIX requirements.
82263         The old names are still visible as macros if _REGEX_SOURCE is defined.
82264         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
82265         RE_BACKSLASH_ESCAPE_IN_LISTS.
82266         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82267         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82268         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82269         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82270         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82271         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82272         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82273         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82274         (REG_INTERVALS): renamed from RE_INTERVALS.
82275         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82276         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82277         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82278         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82279         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82280         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82281         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82282         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82283         RE_UNMATCHED_RIGHT_PAREN_ORD.
82284         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82285         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82286         (REG_DEBUG): renamed from RE_DEBUG.
82287         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82288         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82289         unusual, since we can't clash with the POSIX REG_ICASE.
82290         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82291         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82292         (REG_NO_SUB): renamed from RE_NO_SUB.
82293         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82294         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82295         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82296         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82297         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82298         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82299         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82300         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82301         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82302         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82303         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82304         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82305         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82306         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82307         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82308         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82309         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82310         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82311         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82312         (REG_FIXED): Renamed from REGS_FIXED.
82313         (REG_NREGS): Renamed from RE_NREGS.
82314
82315         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82316         of other REG_* macros, since POSIX says the user is allowed to
82317         #undef these macros selectively.
82318
82319         (reg_errcode_t): Update comment stating what other tables need
82320         to be consistent.
82321
82322         Rename the following enum values to obey POSIX requirements.
82323         The old names are still visible as macros.
82324         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82325         is not defined, since GNU is supposed to be a superset of POSIX as
82326         much as possible, and since we want reg_errcode_t to be a signed
82327         type for implementation consistency.
82328         (_REG_NOERROR): Renamed from REG_NOERROR.
82329         (_REG_NOMATCH): Renamed from REG_NOMATCH.
82330         (_REG_BADPAT): Renamed from REG_BADPAT.
82331         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
82332         (_REG_ECTYPE): Renamed from REG_ECTYPE.
82333         (_REG_EESCAPE): Renamed from REG_EESCAPE.
82334         (_REG_ESUBREG): Renamed from REG_ESUBREG.
82335         (_REG_EBRACK): Renamed from REG_EBRACK.
82336         (_REG_EPAREN): Renamed from REG_EPAREN.
82337         (_REG_EBRACE): Renamed from REG_EBRACE.
82338         (_REG_BADBR): Renamed from REG_BADBR.
82339         (_REG_ERANGE): Renamed from REG_ERANGE.
82340         (_REG_ESPACE): Renamed from REG_ESPACE.
82341         (_REG_BADRPT): Renamed from REG_BADRPT.
82342         (_REG_EEND): Renamed from REG_EEND.
82343         (_REG_ESIZE): Renamed from REG_ESIZE.
82344         (_REG_ERPAREN): Renamed from REG_ERPAREN.
82345         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
82346         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
82347         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
82348         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
82349
82350         (_REG_RE_NAME, _REG_RM_NAME): New macros.
82351         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
82352         changed.  But support the old name if the new one is not defined
82353         and if _REGEX_SOURCE.
82354
82355         Change the following member names in struct re_pattern_buffer.
82356         The old names are still supported if !_REGEX_SOURCE.
82357         The new names are always supported, regardless of _REGEX_SOURCE.
82358         (re_buffer): Renamed from buffer.
82359         (re_allocated): Renamed from allocated.
82360         (re_used): Renamed from used.
82361         (re_syntax): Renamed from syntax.
82362         (re_fastmap): Renamed from fastmap.
82363         (re_translate): Renamed from translate.
82364         (re_can_be_null): Renamed from can_be_null.
82365         (re_regs_allocated): Renamed from regs_allocated.
82366         (re_fastmap_accurate): Renamed from fastmap_accurate.
82367         (re_no_sub): Renamed from no_sub.
82368         (re_not_bol): Renamed from not_bol.
82369         (re_not_eol): Renamed from not_eol.
82370         (re_newline_anchor): Renamed from newline_anchor.
82371
82372         Change the following member names in struct re_registers.
82373         The old names are still supported if !_REGEX_SOURCE.
82374         The new names are always supported, regardless of _REGEX_SOURCE.
82375         (rm_num_regs): Renamed from num_regs.
82376         (rm_start): Renamed from start.
82377         (rm_end): Renamed from end.
82378
82379         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
82380         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
82381         Prepend __ to parameter names.
82382
82383         Undo yesterday's changes.
82384
82385 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82386
82387         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82388         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82389         lib/regex.c.
82390
82391 2005-08-24  Jim Meyering  <jim@meyering.net>
82392
82393         Sync from coreutils.
82394         * m4/fcntl-safer.m4: New file.
82395
82396         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82397         and object files for this module.
82398
82399 2005-08-24  Jim Meyering  <jim@meyering.net>
82400
82401         Sync from coreutils.
82402         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82403
82404 2005-08-24  Jim Meyering  <jim@meyering.net>
82405
82406         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
82407         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
82408
82409 2005-08-24  Jim Meyering  <jim@meyering.net>
82410
82411         * modules/fcntl-safer: New module.
82412         * modules/fts (Depends-on): Add fcntl-safer.
82413         * MODULES.html.sh (File descriptor based Input/Output):
82414         Add fcntl-safer.
82415
82416 2005-08-24  Bruno Haible  <bruno@clisp.org>
82417
82418         Support for unit test modules.
82419         * modules/README: Mention tests modules.
82420         * modules/TEMPLATE-TESTS: New file.
82421         * gnulib-tool: New options --extract-tests-module, --with-tests and
82422         --tests-base (unused for the moment).
82423         (testsbase, inctests): New variables.
82424         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
82425         (func_verify_module): Exclude TEMPLATE-TESTS.
82426         (func_verify_nontests_module, func_verify_tests_module): New functions.
82427         (func_get_dependencies): Add implicit dependency for tests modules.
82428         (func_get_tests_module): New function.
82429         (func_modules_transitive_closure): When --with-tests was specified,
82430         include the unit tests as well, unless explicitly avoided.
82431         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82432         (func_emit_tests_Makefile_am): New function.
82433         (func_create_testdir): When --with-tests was specified, emit a
82434         tests/ directory.
82435         * MODULES.html.sh (Future developments): Update.
82436
82437 2005-08-24  Bruno Haible  <bruno@clisp.org>
82438
82439         * modules/tls-tests: New file.
82440         * tests/test-tls.c: New file, from GNU gettext.
82441
82442 2005-08-24  Bruno Haible  <bruno@clisp.org>
82443
82444         * modules/lock-tests: New file.
82445         * tests/test-lock.c: New file, from GNU gettext.
82446
82447 2005-08-24  Bruno Haible  <bruno@clisp.org>
82448
82449         * lib/lock.h: Add multiple inclusion guard.
82450         * lib/tls.h: Add multiple inclusion guard.
82451
82452 2005-08-24  Bruno Haible  <bruno@clisp.org>
82453
82454         * gnulib-tool: Add support for the --aux-dir option to
82455         --create-testdir, --create-megatestdir, --test, --megatest.
82456         (func_create_testdir, func_create_megatestdir): Optionally emit a
82457         AC_CONFIG_AUX_DIR directive.
82458         (create-testdir, create-megatestdir, test, megatest): Provide a
82459         default value for $auxdir.
82460
82461 2005-08-24  Bruno Haible  <bruno@clisp.org>
82462
82463         * gnulib-tool (import): Use compound statement instead of subshell
82464         where possible.
82465
82466 2005-08-24  Bruno Haible  <bruno@clisp.org>
82467
82468         * gnulib-tool (import): Change --aux-dir default to "build-aux".
82469
82470 2005-08-24  Bruno Haible  <bruno@clisp.org>
82471
82472         * gnulib-tool (func_version): Update.
82473
82474 2005-08-24  Bruno Haible  <bruno@clisp.org>
82475
82476         * gnulib-tool (func_import, func_create_testdir,
82477         func_create_megatestdir): Quote all autoconf macro arguments.
82478
82479 2005-08-24  Bruno Haible  <bruno@clisp.org>
82480
82481         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82482         option --force, because --force causes the aclocal.m4 of each
82483         subdirectory to be newer than the corresponding config.h.in.
82484
82485 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82486
82487         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82488         All contents moved to gl_REGEX.
82489         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82490         assume that it does.
82491
82492 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82493
82494         * lib/regex.h (REG_NOSYS)
82495         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82496         Define, since POSIX requires it as of 2001.
82497         (_REG_ENOSYS)
82498         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82499         New private symbol, used to keep the enum signed in all cases.
82500         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82501         Youngman in
82502         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82503
82504         * lib/regex_internal.c (re_string_skip_chars, register_state):
82505         (calc_state_hash):
82506         Remove forward decls; no longer needed now that we use prototypes.
82507         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82508         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82509         (clean_state_log_if_needed): Likewise.
82510
82511 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82512
82513         * config/srclist.txt: Add glibc bugs 1231-1233.
82514
82515 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82516
82517         Fix problems reported by Sam Steingold in
82518         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82519         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82520         assumed that reg_errcode_t is a signed type, which is not
82521         necessarily true if _XOPEN_SOURCE is not defined.
82522         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82523         since some compilers warn about it otherwise.
82524
82525 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82526
82527         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82528         (init_word_char, create_initial_state, duplicate_node_closure):
82529         (fetch_token, peek_token_bracket, build_range_exp):
82530         (build_collating_symbol): Remove forward decls; no longer needed
82531         now that we use prototypes.
82532
82533         * lib/regcomp.c:
82534         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82535         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82536         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82537         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82538         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82539         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82540         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82541         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82542         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82543         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82544         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82545         (build_charclass, build_charclass_op, fetch_number, create_tree):
82546         (create_token_tree, mark_opt_subexp, duplicate_tree):
82547         Use prototypes rather than old-style definitions.
82548
82549         * lib/regex_internal.c:
82550         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82551         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82552         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82553         (re_string_reconstruct, re_string_peek_byte_case):
82554         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82555         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82556         (re_node_set_init_copy, re_node_set_add_intersect):
82557         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82558         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82559         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82560         (re_acquire_state, re_acquire_state_context, register_state):
82561         (create_ci_newstate, create_cd_newstate, free_state):
82562         Likewise.
82563         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82564         re_search_2):
82565         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82566         (re_search_internal, prune_impossible_nodes):
82567         (acquire_init_state_context, check_matching, static):
82568         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82569         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82570         (update_regs, sift_states_backward, build_sifted_states):
82571         (clean_state_log_if_needed, merge_state_array):
82572         (update_cur_sifted_state, add_epsilon_src_nodes):
82573         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82574         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82575         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82576         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82577         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82578         (check_arrival, check_arrival_add_next_nodes):
82579         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82580         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82581         (check_node_accept_bytes, check_node_accept, extend_buffers):
82582         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82583         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82584         (sift_ctx_init):
82585         Likewise.
82586
82587         * lib/regex_internal.h:
82588         (re_string_allocate, re_string_construct, re_string_reconstruct):
82589         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82590         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82591         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82592         (re_string_context_at, re_string_peek_byte_case):
82593         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82594         is defined, since we now use prototypes always.
82595
82596         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82597         C89 or better.  All uses removed.
82598
82599 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82600
82601         * config/srclist.txt: Add glibc bugs 1220-1227.
82602
82603 2005-08-20  Jim Meyering  <jim@meyering.net>
82604
82605         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82606         of unused local, dfa.
82607
82608 2005-08-20  Bruno Haible  <bruno@clisp.org>
82609
82610         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82611
82612 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82613
82614         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82615         (re_node_set_insert_last, re_dfa_add_node):
82616         Rename local variables to avoid GCC shadowing warnings.
82617
82618 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82619
82620         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82621         [defined lint]: Suppress bogus uninitialized-variable warnings.
82622
82623         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82624         and let the caller return REG_ESPACE if out of space.  This
82625         removes an uninitialied-variable warning with GCC 4.0.1, and also
82626         avoids taking the address of a local variable.  All callers
82627         changed.
82628
82629 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82630
82631         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82632         $LIBCSRC/posix/regexec.c.
82633         Add glibc bug 1217 for regcomp.c.
82634
82635 2005-08-19  Jim Meyering  <jim@meyering.net>
82636
82637         * lib/regexec.c (proceed_next_node): Redo local variables to
82638         avoid GCC shadowing warnings.
82639
82640 2005-08-18  Bruno Haible  <bruno@clisp.org>
82641
82642         * lib/strstr.c (strstr): Fix return value in multibyte case.
82643         * lib/strcasestr.c (strcasestr): Likewise.
82644
82645 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82646
82647         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82648
82649 2005-08-17  Jim Meyering  <jim@meyering.net>
82650
82651         Make the %s format (seconds since the epoch) work for a negative
82652         number and when used with a zero-padded field width, e.g. %015s.
82653
82654         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82655         label so that it precedes the code to set `digits'.  Otherwise,
82656         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82657         print `00-22'.  Now, it prints `-0022', as it should.
82658
82659 2005-08-17  Bruno Haible  <bruno@clisp.org>
82660
82661         * modules/strstr (Files): Add m4/mbrtowc.m4.
82662         (Depends-on): Add mbuiter.
82663
82664 2005-08-17  Bruno Haible  <bruno@clisp.org>
82665
82666         * modules/strcasestr: New file.
82667         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82668         strcasestr.
82669
82670 2005-08-17  Bruno Haible  <bruno@clisp.org>
82671
82672         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82673
82674 2005-08-17  Bruno Haible  <bruno@clisp.org>
82675
82676         * modules/mbuiter: New file.
82677         * MODULES.html.sh (Extended multibyte and wide character utilities):
82678         Add mbuiter.
82679
82680 2005-08-17  Bruno Haible  <bruno@clisp.org>
82681
82682         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82683         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82684
82685 2005-08-17  Bruno Haible  <bruno@clisp.org>
82686
82687         * m4/strcasestr.m4: New file.
82688
82689 2005-08-17  Bruno Haible  <bruno@clisp.org>
82690
82691         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82692         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82693
82694 2005-08-17  Bruno Haible  <bruno@clisp.org>
82695
82696         * lib/strcasestr.h: New file.
82697         * lib/strcasestr.c: New file.
82698
82699 2005-08-17  Bruno Haible  <bruno@clisp.org>
82700
82701         * lib/strcasecmp.c: Use mbuiter.h.
82702
82703 2005-08-17  Bruno Haible  <bruno@clisp.org>
82704
82705         * lib/mbuiter.h: New file.
82706
82707 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82708
82709         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82710         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82711         and gl_GETOPT are both invoked via different paths (as happens
82712         with GNU tar CVS because it uses both argp and getopt), the former
82713         wins.
82714
82715 2005-08-16  Bruno Haible  <bruno@clisp.org>
82716
82717         * modules/tls: New file.
82718         * MODULES.html.sh (Multithreading): Add tls.
82719
82720 2005-08-16  Bruno Haible  <bruno@clisp.org>
82721
82722         * modules/strnlen1: New file.
82723         * MODULES.html.sh (String handling): Add strnlen1.
82724
82725 2005-08-16  Bruno Haible  <bruno@clisp.org>
82726
82727         * modules/strcase (Files): Add m4/mbrtowc.m4.
82728         (Depends-on): Add strnlen1, mbchar.
82729
82730 2005-08-16  Bruno Haible  <bruno@clisp.org>
82731
82732         * modules/mbiter: New file.
82733         * MODULES.html.sh (Extended multibyte and wide character utilities):
82734         Add mbiter.
82735
82736 2005-08-16  Bruno Haible  <bruno@clisp.org>
82737
82738         * modules/mbfile: New file.
82739         * MODULES.html.sh (Extended multibyte and wide character utilities):
82740         Add mbfile.
82741
82742 2005-08-16  Bruno Haible  <bruno@clisp.org>
82743
82744         * modules/mbchar: New file.
82745         * MODULES.html.sh (Extended multibyte and wide character utilities):
82746         New section.
82747
82748 2005-08-16  Bruno Haible  <bruno@clisp.org>
82749
82750         * m4/tls.m4: New file, from GNU gettext.
82751
82752 2005-08-16  Bruno Haible  <bruno@clisp.org>
82753
82754         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82755         always.
82756         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82757
82758 2005-08-16  Bruno Haible  <bruno@clisp.org>
82759
82760         * m4/mbiter.m4: New file.
82761
82762 2005-08-16  Bruno Haible  <bruno@clisp.org>
82763
82764         * m4/mbfile.m4: New file.
82765
82766 2005-08-16  Bruno Haible  <bruno@clisp.org>
82767
82768         * m4/mbchar.m4: New file.
82769
82770 2005-08-16  Bruno Haible  <bruno@clisp.org>
82771
82772         * lib/tls.h: New file, from GNU gettext.
82773         * lib/tls.c: New file, from GNU gettext.
82774
82775 2005-08-16  Bruno Haible  <bruno@clisp.org>
82776
82777         * lib/strnlen1.h: New file.
82778         * lib/strnlen1.c: New file.
82779
82780 2005-08-16  Bruno Haible  <bruno@clisp.org>
82781
82782         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82783         (mbi_init): Update.
82784         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82785         NUL byte, not after it.
82786
82787 2005-08-16  Bruno Haible  <bruno@clisp.org>
82788
82789         * lib/strcase.h (strcasecmp): Add note in comments.
82790         * lib/strncasecmp.c: Use code from strcasecmp.c.
82791         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82792         (strcasecmp): Work correctly in multibyte locales.
82793
82794 2005-08-16  Bruno Haible  <bruno@clisp.org>
82795
82796         * lib/mbiter.h: New file.
82797
82798 2005-08-16  Bruno Haible  <bruno@clisp.org>
82799
82800         * lib/mbfile.h: New file.
82801
82802 2005-08-16  Bruno Haible  <bruno@clisp.org>
82803
82804         * lib/mbchar.h: New file.
82805         * lib/mbchar.c: New file.
82806
82807 2005-08-16  Bruno Haible  <bruno@clisp.org>
82808
82809         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82810         the valid ones. Makes the comparison operations transitive:
82811         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82812         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82813
82814 2005-08-15  Simon Josefsson  <jas@extundo.com>
82815
82816         * modules/ssize_t (License): Change to 'unlimited'.
82817
82818         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82819
82820 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82821
82822         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82823         Add comments for each pending glibc patch.
82824
82825 2005-08-15  Bruno Haible  <bruno@clisp.org>
82826
82827         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82828         __cplusplus is defined.
82829
82830 2005-08-14  Jim Meyering  <jim@meyering.net>
82831
82832         Sync from coreutils.
82833
82834         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82835         Use the hash-table-based cycle-detection code not just when
82836         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82837         Reported by James Youngman in
82838         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82839         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82840         FTS_TIGHT_CYCLE_CHECK.
82841         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82842         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82843         once again.
82844         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82845         * lib/fts.c (fd_safer): Remove decl.
82846         Include fcntl--.h rather than unistd-safer.h
82847         (fts_safe_changedir): Don't call fd_safer; no longer needed
82848         now that we include fcntl--.h.
82849
82850 2005-08-12  Simon Josefsson  <jas@extundo.com>
82851
82852         * modules/getndelim2: Use ssize_t module.
82853         * modules/getnline: Likewise.
82854         * modules/safe-read: Likewise.
82855         * modules/xreadlink: Likewise.
82856
82857         * modules/ssize_t: New file.
82858
82859 2005-08-12  Simon Josefsson  <jas@extundo.com>
82860
82861         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82862
82863 2005-08-12  Simon Josefsson  <jas@extundo.com>
82864
82865         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82866         ssize_t.
82867
82868 2005-08-12  Simon Josefsson  <jas@extundo.com>
82869
82870         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82871         readline, getdelim and check_version.
82872         (Support for systems lacking ISO C 99: Sizes of integer types):
82873         Add size_max.
82874
82875 2005-08-12  Bruno Haible  <bruno@clisp.org>
82876
82877         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82878
82879 2005-08-11  Simon Josefsson  <jas@extundo.com>
82880
82881         * modules/readline: New file.
82882
82883         * modules/strnlen (Files): Add strnlen.h.
82884
82885 2005-08-11  Simon Josefsson  <jas@extundo.com>
82886
82887         * m4/readline.m4: New file.
82888
82889 2005-08-11  Simon Josefsson  <jas@extundo.com>
82890
82891         * lib/readline.h, readline.c: New file.
82892
82893 2005-08-11  Simon Josefsson  <jas@extundo.com>
82894
82895         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82896         gl_AVOID.
82897
82898 2005-08-11  Bruno Haible  <bruno@clisp.org>
82899
82900         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82901
82902 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82903
82904         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82905
82906 2005-08-10  Simon Josefsson  <jas@extundo.com>
82907
82908         * tests/test-iconvme.c: New file.
82909
82910 2005-08-10  Simon Josefsson  <jas@extundo.com>
82911
82912         * m4/strnlen.m4: New file.
82913
82914         * m4/strndup.m4: Don't check for strnlen declaration, done in
82915         strnlen.m4.
82916
82917 2005-08-10  Simon Josefsson  <jas@extundo.com>
82918
82919         * lib/strndup.c: Use strnlen.h.
82920
82921         * lib/strnlen.h: New file.
82922
82923 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82924
82925         * README: Typos.
82926
82927 2005-08-02  Simon Josefsson  <jas@extundo.com>
82928
82929         * modules/readline: New file.
82930
82931 2005-08-02  Simon Josefsson  <jas@extundo.com>
82932
82933         * modules/getdelim: New file.
82934
82935         * modules/getline: Rewrite, don't use getndelim2.
82936
82937 2005-08-02  Simon Josefsson  <jas@extundo.com>
82938
82939         * m4/getline.m4: Separate out getdelim stuff into separate module.
82940
82941         * m4/getdelim.m4: New file.
82942
82943 2005-08-02  Simon Josefsson  <jas@extundo.com>
82944
82945         * lib/getline.h, getline.c: Rewrite.
82946
82947         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82948
82949 2005-07-31  Bruno Haible  <bruno@clisp.org>
82950
82951         * lib/lock.h (gl_lock_initializer): New macro.
82952         (gl_lock_define_initialized): Use it.
82953         (gl_rwlock_initializer): New macro.
82954         (gl_rwlock_define_initialized): Use it.
82955         (gl_recursive_lock_initializer): New macro.
82956         (gl_recursive_lock_define_initialized): Use it.
82957
82958 2005-07-30  Karl Berry  <karl@gnu.org>
82959
82960         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82961         Report from Ben Pfaff, regarding getopt.
82962
82963 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82964
82965         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82966         normal way.
82967         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82968         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82969         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82970         (gl_GETOPT): Use the new macros.  Most of the implementation
82971         is moved to the new macros.  This is for programs like Emacs
82972         that don't want all the functionality of gl_GETOPT.
82973
82974 2005-07-26  Bruno Haible  <bruno@clisp.org>
82975
82976         * m4/lock.m4: Update from GNU gettext.
82977
82978 2005-07-26  Bruno Haible  <bruno@clisp.org>
82979
82980         * lib/lock.h: Update from GNU gettext.
82981         * lib/lock.c: Update from GNU gettext.
82982
82983 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82984
82985         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82986         obsolescent AC_TRY_RUN.  Include the default includes files, for
82987         'exit'.
82988
82989 2005-07-24  Bruno Haible  <bruno@clisp.org>
82990
82991         * modules/visibility: New file.
82992         * MODULES.html.sh (Misc): Add visibility.
82993
82994 2005-07-24  Bruno Haible  <bruno@clisp.org>
82995
82996         * m4/visibility.m4: New file.
82997
82998 2005-07-24  Bruno Haible  <bruno@clisp.org>
82999
83000         * doc/visibility.texi: New file.
83001
83002 2005-07-22  Bruno Haible  <bruno@clisp.org>
83003
83004         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83005         $(ALLOCA_H), redundant through BUILT_SOURCES.
83006         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83007         redundant through BUILT_SOURCES.
83008         * modules/byteswap (Makefile.am): Remove explicit dependency on
83009         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83010         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83011         $(FNMATCH_H), redundant through BUILT_SOURCES.
83012         * modules/getopt (Makefile.am): Remove explicit dependency on
83013         $(GETOPT_H), redundant through BUILT_SOURCES.
83014         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83015         redundant through BUILT_SOURCES.
83016         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83017         redundant through BUILT_SOURCES.
83018         * modules/stdbool (Makefile.am): Remove explicit dependency on
83019         $(STDBOOL_H), redundant through BUILT_SOURCES.
83020         * modules/stdint (Makefile.am): Remove explicit dependency on
83021         $(STDINT_H), redundant through BUILT_SOURCES.
83022         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83023         Remove explicit dependency on $(SYSEXITS_H).
83024         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83025
83026 2005-07-18  Simon Josefsson  <jas@extundo.com>
83027
83028         * lib/check-version.c (check_version): Accept identical versions too.
83029
83030 2005-07-18  Bruno Haible  <bruno@clisp.org>
83031
83032         * modules/lock: New file.
83033         * MODULES.html.sh (Multithreading): New section.
83034
83035 2005-07-18  Bruno Haible  <bruno@clisp.org>
83036
83037         * m4/lock.m4: New file, from GNU gettext.
83038
83039 2005-07-18  Bruno Haible  <bruno@clisp.org>
83040
83041         * lib/lock.h: New file, from GNU gettext.
83042         * lib/lock.c: New file, from GNU gettext.
83043
83044 2005-07-18  Bruno Haible  <bruno@clisp.org>
83045
83046         * lib/lock.h (gl_once_t): New type.
83047         (gl_once_define, gl_once): New macros.
83048         * lib/lock.c (fresh_once): New variable.
83049         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83050         functions.
83051
83052 2005-07-16  Simon Josefsson  <jas@extundo.com>
83053
83054         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83055         workaround, suggested by Bruno.
83056
83057 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83058
83059         * modules/xalloc (Depends-on): Add xalloc-die.
83060         * modules/xvasprintf (Depends-on): Add xalloc-die.
83061
83062 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83063
83064         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83065         with a minor change.
83066
83067 2005-07-15  Bruno Haible  <bruno@clisp.org>
83068
83069         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83070         When using lib/poll.c, define poll as rpl_poll.
83071
83072 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83073
83074         * modules/argp (Depends-on): Remove unlocked-io.
83075
83076 2005-07-14  Derek Price  <derek@ximbiot.com>
83077
83078         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83079         for glob symlink bug.
83080
83081 2005-07-14  Bruno Haible  <bruno@clisp.org>
83082
83083         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83084         Instead, test for *_unlocked function declarations directly.
83085
83086 2005-07-11  Simon Josefsson  <jas@extundo.com>
83087
83088         * modules/size_max: New file.
83089
83090         * modules/xsize: Depend on size_max module for size_max.m4.
83091
83092 2005-07-11  Simon Josefsson  <jas@extundo.com>
83093
83094         * lib/size_max.h: New file.
83095
83096 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83097
83098         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83099         copyright symbol and the year.
83100         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83101         (version_etc_va): Use parameterized copyright notice.
83102         Reword to conform to the current GNU coding standards.
83103
83104 2005-07-11  Karl Berry  <karl@gnu.org>
83105
83106         * doc/gnulib.texi (Quoting): new node.
83107         (Initial import): more info, from Patrice.
83108
83109 2005-07-11  Bruno Haible  <bruno@clisp.org>
83110
83111         * gnulib-tool (func_usage): Document option --avoid.
83112         (Command line options): Handle --avoid.
83113         (func_acceptable): New function.
83114         (func_modules_transitive_closure): Use it.
83115
83116 2005-07-11  Bruno Haible  <bruno@clisp.org>
83117
83118         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83119         Reported by Jim Meyering.
83120
83121 2005-07-10  Bruno Haible  <bruno@clisp.org>
83122
83123         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83124         Needed when size_t is smaller than 'unsigned int'.
83125         Reported by Paul Eggert.
83126
83127 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83128
83129         * modules/argp (Depends-on): Add unlocked-io
83130
83131 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83132
83133         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83134         block of defines.
83135
83136 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83137
83138         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83139         fix now.
83140
83141 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83142         and Paul Eggert  <eggert@cs.ucla.edu>
83143
83144         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83145         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83146
83147 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83148
83149         * modules/regex (Files): Add lib/regex_internal.c,
83150         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83151         (Depends-on): Add extensions.
83152         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83153
83154 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83155
83156         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83157         pathconf.
83158         * m4/same.m4 (gl_SAME): Likewise.
83159         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83160
83161         * m4/regex.m4: Adjust to new libc regex implementation.
83162         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83163         all the .c and .h parts of (the new) regex.
83164         Quote the m4 stuff better.
83165         Check for RE_ICASE bug of old gnulib.
83166         Check for REG_STARTEND of recent libc.
83167         Rename local variables from jm_* to gl_*.
83168         Quote operand of "test -f".
83169         Say "recent enough" version of libc, not "version 2".
83170         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83171         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83172         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83173         Remove check for btowc, isascii.
83174         Require AM_LANGINFO_CODESET.
83175
83176 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83177
83178         * lib/regex.c, regex.h: Sync from libc.
83179         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83180         * lib/regexec.c:
83181         New files, synced from libc, except that regex_internal.h
83182         currently has a small porting fix.
83183
83184 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83185
83186         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83187         regex_internal.c, regexec.c.
83188         Add regex_internal.h too, but as a comment, since the libc version
83189         is currently broken in gnulib mode.
83190
83191 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83192
83193         Support programs like Emacs that use gnulib but not gettext.
83194         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83195         * modules/gettext-h: New file.
83196         * modules/gettext (Files): Remove lib/gettext.h.
83197         (Depends-on): Add gettext-h.
83198         (Makefile.am): Remove lib_SOURCES.
83199         * modules/argmatch, modules/c-stack, modules/closeout:
83200         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83201         * modules/execute, modules/file-type, modules/getaddrinfo:
83202         * modules/getopt, modules/human, modules/javacomp:
83203         * modules/javaexec, modules/mkdir-p, modules/obstack:
83204         * modules/openat, modules/pagealign_alloc, modules/pipe:
83205         * modules/quotearg, modules/regex, modules/rpmatch:
83206         * modules/unicodeio, modules/userspec, modules/version-etc:
83207         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83208         * modules/xsetenv:
83209         Depend on gettext-h, not gettext.
83210
83211 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83212
83213         * gnulib-tool (func_import): Add support for 'public domain' license.
83214         * modules/alloca, modules/atexit, modules/memmove:
83215         Now public domain, not GPL.
83216         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83217         * modules/realloc, modules/strerror, modules/strtod:
83218         Now LGPL, not GPL.
83219
83220 2005-07-05  Bruno Haible  <bruno@clisp.org>
83221
83222         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83223         autoconf CVS. Needed for mingw.
83224
83225 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83226
83227         Remove the dependency of the strftime module on the tzset module.
83228         * modules/strftime (Depends-on): Remove dependency on tzset.
83229
83230 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83231
83232         Remove the dependency of the strftime module on the tzset module.
83233         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83234         gl_FUNC_TZSET_CLOBBER.
83235
83236 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83237
83238         Remove the dependency of the strftime module on the tzset module.
83239         * lib/strftime.c (my_strftime)
83240         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83241         Copy the input structure, to work around some of the bug with
83242         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83243         Solaris releases, you should also use the tzset module, but we won't
83244         require it as a dependency any more since we don't want LGPLed code
83245         to depend on GPLed code.
83246
83247 2005-07-02  Jim Meyering  <jim@meyering.net>
83248
83249         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83250         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83251         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83252         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83253
83254 2005-07-02  Jim Meyering  <jim@meyering.net>
83255
83256         * lib/backupfile.c (backup_args): Change a `0' to NULL.
83257
83258 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
83259
83260         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
83261         declares only 'struct timespec;' (!).
83262
83263 2005-07-01  Jim Meyering  <jim@meyering.net>
83264
83265         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83266         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83267         * lib/save-cwd.c, tempname.c:
83268         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83269         and don't include <sys/file.h>).
83270
83271 2005-06-29  Jim Meyering  <jim@meyering.net>
83272
83273         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83274         type name.  Use the variable name instead.
83275         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83276         Likewise.
83277
83278 2005-06-28  Simon Josefsson  <jas@extundo.com>
83279
83280         * modules/check-version (Files): Add check-version.m4.
83281
83282 2005-06-28  Simon Josefsson  <jas@extundo.com>
83283
83284         * m4/check-version.m4: New file, suggested by Jim Meyering
83285         <jim@meyering.net>.
83286
83287 2005-06-28  Simon Josefsson  <jas@extundo.com>
83288
83289         * lib/check-version.h, lib/check-version.c: New files.
83290
83291 2005-06-28  Simon Josefsson  <jas@extundo.com>
83292
83293         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83294         collision with global variable.  Better indentation.  Don't
83295         increment buffer pointer beyond buffer end.  Based on comments
83296         from Paul Eggert <eggert@cs.ucla.edu>.
83297
83298         * lib/base64.h: Indent.
83299
83300 2005-06-28  Simon Josefsson  <jas@extundo.com>
83301
83302         * doc/gnulib.texi (Library version handling): New section.
83303
83304 2005-06-28  Jim Meyering  <jim@meyering.net>
83305
83306         * check-module (find_included_lib_files): Hard-code another
83307         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83308         but modules/fts-lgpl (correctly) does not list those files.
83309
83310         * modules/canonicalize (Files): Add lib/pathmax.h.
83311
83312 2005-06-25  Simon Josefsson  <jas@extundo.com>
83313
83314         * modules/check-version: New file.
83315
83316 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83317
83318         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83319         initializer of struct addrinfo, as an indication that we don't
83320         care how many members the structure has.
83321
83322 2005-06-24  Derek Price  <derek@ximbiot.com>
83323         and Bruno Haible  <bruno@clisp.org>
83324
83325         Remove stat module & update lstat.
83326         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83327         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83328         * m4/stat.m4: Remove this file.
83329
83330 2005-06-24  Derek Price  <derek@ximbiot.com>
83331         and Bruno Haible  <bruno@clisp.org>
83332
83333         Remove stat module & update lstat.
83334         * lib/stat.c: Remove this file...
83335         (slash_aware_lstat): ...moving this content and its support...
83336         * lib/lstat.c (rpl_lstat): ...into here.
83337         * lib/lstat.h: New file.
83338
83339 2005-06-24  Derek Price  <derek@ximbiot.com>
83340         and Bruno Haible  <bruno@clisp.org>
83341
83342         Remove stat module & update lstat.
83343         * config/srclist.txt (libc sources): Remove stat.
83344
83345 2005-06-24  Derek Price  <derek@ximbiot.com>
83346         and Bruno Haible  <bruno@clisp.org>
83347
83348         Remove stat module & update lstat.
83349         * MODULES.html.sh (stat): Remove.
83350         * MODULES.html: Regenerated.
83351         * modules/lstat (Description): Correct function name.
83352         (Files): Add "lstat.h".
83353         (Depends-on): Remove stat, add xalloc, stat-macros.
83354         * modules/stat: Remove this file.
83355         (Include): Add "lstat.h", remove <sys/stat.h>.
83356
83357 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83358
83359         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
83360         (ranged_convert): Don't save conversion in a temporary struct.
83361         This causes a warning with GCC 4.0.0, and anyway in the typical
83362         case it's not worth the extra 100 bytes or so of code.
83363         (ranged_convert, __mktime_internal): When calling a function via a
83364         pointer P, use P () rather than (*P) (), as we now assume C89 or
83365         better.
83366
83367 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83368
83369         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
83370         "who -r" failed to give output.  Problem reported by Tim Waugh.
83371
83372         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
83373         (xcalloc): Use it to avoid needless tests.
83374         Problem reported by Jim Meyering.
83375
83376 2005-06-20  Derek Price  <derek@ximbiot.com>
83377
83378         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
83379         unnecessary for Autoconfs > 2.59c.
83380
83381 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83382
83383         * lib/argp.h (__option_is_short): Check upper limit of
83384         __key. Isprint() requires its argument to have the value
83385         of an unsigned char or EOF.
83386
83387 2005-06-16  Jim Meyering  <jim@meyering.net>
83388
83389         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83390         when either N or S is zero.
83391
83392 2005-06-16  Derek Price  <derek@ximbiot.com>
83393
83394         * m4/bison.m4: Declare YACC & YFLAGS precious.
83395
83396 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83397
83398         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83399         multibyte string or pattern, fall back on unibyte matching.
83400         Problem reported by James Youngman.
83401
83402 2005-06-08  Bruno Haible  <bruno@clisp.org>
83403
83404         * modules/csharpcomp: New file.
83405         * MODULES.html.sh (C#): Add csharpcomp.
83406
83407 2005-06-08  Bruno Haible  <bruno@clisp.org>
83408
83409         * m4/csharpcomp.m4: New file, from GNU gettext.
83410
83411 2005-06-08  Bruno Haible  <bruno@clisp.org>
83412
83413         * lib/csharpcomp.h: New file, from GNU gettext.
83414         * lib/csharpcomp.c: New file, from GNU gettext.
83415         * lib/csharpcomp.sh.in: New file, from GNU gettext.
83416
83417 2005-06-08  Bruno Haible  <bruno@clisp.org>
83418
83419         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
83420         warning on mingw.
83421
83422 2005-06-07  Derek Price  <derek@ximbiot.com>
83423
83424         Sync from CVS.
83425         * lib/glob_.h: Indent nested #ifdef.
83426
83427 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83428
83429         Sync from coreutils.
83430         Use "file name" when talking about file names, instead of "filename"
83431         or "path", as per the GNU coding standards.
83432         * lib/mkdir-p.c: Renamed from makepath.c.
83433         (make_dir_parents): Renamed from make_path.  All callers changed.
83434         * lib/mkdir-p.h: Likewise.  All includers changed.
83435         * lib/filenamecat.c: Renamed from path-concat.c.
83436         (file_name_concat): Renamed from path_concat.  All callers changed.
83437         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
83438         * lib/filenamecat.h: Likewise.  All includers changed.
83439         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
83440         in comments or local variable names.
83441         * lib/basename.c: Likewise.
83442         * lib/canonicalize.c, canonicalize.h: Likewise.
83443         * lib/dirname.c, dirname.h: Likewise.
83444         * lib/euidaccess.c: Likewise.
83445         * lib/exclude.c: Likewise
83446         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
83447         * lib/fsusage.c, fsuage.h: Likewise.
83448         * lib/fts.c, fts_.h: Likewise.
83449         * lib/getcwd.c: Likewise.
83450         * lib/getloadavg.c: Likewise.
83451         * lib/mkstemp.c: Likewise.
83452         * lib/mountlist.c, mountlist.h: Likewise.
83453         * lib/openat.c, openat.h: Likewise.
83454         * lib/readlink-stub.c: Likewise.
83455         * lib/readutmp.c, readutmp.h: Likewise.
83456         * lib/rename.c: Likewise.
83457         * lib/rmdir.c: Likewise.
83458         * lib/same.c: Likewise.
83459         * lib/savedir.c: Likewise.
83460         * lib/stripslash.c: Likewise.
83461         * lib/tempname.c: Likewise.
83462         * lib/xreadlink.c: Likewise.
83463         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
83464         All uses changed.
83465         * lib/exclude.h: Likewise.
83466
83467         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
83468         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83469         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
83470         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83471         * lib/pathmax.h: Include <limits.h> unconditionally, since other
83472         files have been getting away with it for years (MORE/BSD 4.3
83473         is extinct now).
83474         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
83475         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83476
83477         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
83478         Define to 256, not 255, as per modern POSIX.
83479
83480 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83481
83482         Sync from coreutils.
83483         Use "file name" when talking about file names, instead of "filename"
83484         or "path", as per the GNU coding standards.
83485         * MODULES.html.sh: mkdir-p renamed from makepath.
83486         filenamecat renamed from path-concat.
83487         * modules/filenamecat: Renamed from modules/path-concat.
83488         (Files): filenamecat.h and filenamecat.c renamed from
83489         path-concat.h and path-concat.c.
83490         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83491         (Include): filenamecat.h, not path-concat.h.
83492         * modules/mkdir-p: Renamed from modules/makepath.
83493         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83494         makepath.c.
83495         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83496         (Include): mkdir-p.h, not makepath.h.
83497
83498 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83499
83500         Sync from coreutils.
83501         * m4/mkdir-p.m4: Renamed from makepath.m4.
83502         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83503         Rename files from makepath.c to mkdir-p.c, and from
83504         makepath.h to mkdir-p.h.
83505         * m4/filenamecat.m4: Renamed from path-concat.m4.
83506         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83507         Rename files from path-concat.c to filenamecat.c,
83508         and from path-concat.h to filenamecat.h.
83509         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83510         "file name" in local variables or comments.
83511         * m4/rename.m4: Likewise.
83512
83513 2005-06-01  Bruno Haible  <bruno@clisp.org>
83514
83515         * modules/csharpexec: New file.
83516         * MODULES.html.sh (C#): New section.
83517
83518 2005-06-01  Bruno Haible  <bruno@clisp.org>
83519
83520         * m4/csharp.m4: New file, from GNU gettext.
83521         * m4/csharpexec.m4: New file, from GNU gettext.
83522
83523 2005-06-01  Bruno Haible  <bruno@clisp.org>
83524
83525         * lib/csharpexec.h: New file, from GNU gettext.
83526         * lib/csharpexec.c: New file, from GNU gettext.
83527         * lib/csharpexec.sh.in: New file, from GNU gettext.
83528
83529 2005-05-31  Derek Price  <derek@ximbiot.com>
83530             Paul Eggert  <eggert@cs.ucla.edu>
83531
83532         Sync from cvs.
83533         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83534
83535 2005-05-31  Derek Price  <derek@ximbiot.com>
83536             Paul Eggert  <eggert@cs.ucla.edu>
83537
83538         Sync from cvs.
83539         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83540
83541 2005-05-29  Derek Price  <derek@ximbiot.com>
83542
83543         * config/srclist.txt (glob_.h, glob.c): Add these files.
83544
83545 2005-05-29  Derek Price  <derek@ximbiot.com>
83546
83547         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83548         * modules/glob: New file.
83549         * modules/getlogin_r: Add link to POSIX spec in description.
83550
83551 2005-05-29  Derek Price  <derek@ximbiot.com>
83552             Paul Eggert  <eggert@cs.ucla.edu>
83553
83554         * m4/glob.m4: New file.
83555
83556 2005-05-29  Derek Price  <derek@ximbiot.com>
83557             Paul Eggert  <eggert@cs.ucla.edu>
83558
83559         * lib/glob_.h, lib/glob.c: New files.
83560
83561 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83562
83563         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83564         * modules/fts-lgpl (Depends-on): Remove gettext.
83565
83566 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83567
83568         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83569         and don't require gt_INTTYPES_PRI.
83570
83571 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83572
83573         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83574
83575         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83576         the configuration hassle isn't worth it.
83577         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83578         (LONGEST_MODIFIER, PRIuMAX): Remove.
83579
83580 2005-05-27  Bruno Haible  <bruno@clisp.org>
83581
83582         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83583
83584 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83585
83586         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83587         _POSIX_PTHREAD_SEMANTICS for Solaris.
83588
83589 2005-05-25  Derek Price  <derek@ximbiot.com>
83590
83591         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83592
83593 2005-05-25  Derek Price  <derek@ximbiot.com>
83594             Paul Eggert  <eggert@cs.ucla.edu>
83595
83596         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83597         * lib/getlogin_r.c, getlogin_r.h: New files.
83598
83599 2005-05-25  Bruno Haible  <bruno@clisp.org>
83600             Derek Price  <derek@ximbiot.com>
83601
83602         * lib/getlogin_r.h: Simplify API documentation.
83603
83604 2005-05-23  Derek Price  <derek@ximbiot.com>
83605
83606         * modules/minmax (Files): Add m4/minmax.m4.
83607         (configure.ac): Add gl_MINMAX.
83608
83609 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83610
83611         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83612         so that unistd-safer.h (GPL'ed code) need not be included.
83613
83614 2005-05-22  Bruno Haible  <bruno@clisp.org>
83615
83616         * m4/minmax.m4: New file.
83617         Based on a patch by Derek Price <derek@ximbiot.com>.
83618
83619 2005-05-22  Bruno Haible  <bruno@clisp.org>
83620
83621         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83622         (INT64_MIN): Fix definition.
83623         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83624
83625         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83626         NEED_SIGNED_INT_TYPES.
83627
83628         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83629         HAVE_SYSTEM_INTTYPES.
83630
83631 2005-05-22  Bruno Haible  <bruno@clisp.org>
83632
83633         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83634         Also include <sys/param.h> if it defines MIN, MAX.
83635         Based on a patch by Derek Price <derek@ximbiot.com>.
83636
83637 2005-05-21  Jim Meyering  <jim@meyering.net>
83638
83639         * modules/fts (Files): Add m4/inttypes-pri.m4.
83640         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83641
83642 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83643
83644         New fts module.
83645         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83646         (setup_dir, free_dir): New functions.
83647         (enter_dir, leave_dir): Define trivial
83648         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83649         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83650         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83651         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83652         Move to fts-cycle.c.
83653         (fts_open): Use setup_dir.
83654         (fts_close): Use free_dir.
83655         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83656         This adds a label and some gotos, but the alternatives were messier.
83657         Check for memory allocation failure when entering a dir.
83658         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83659         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83660         (FTS): New member fts_cycle, that is a union that contains the
83661         old active_dir_ht and cycle_state.  All uses changed to mention
83662         fts_cycle.ht and fts_cycle.state.
83663         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83664         fts.c, with the following changes:
83665         (setup_dir, free_dir): New functions.
83666         (enter_dir): Now returns bool.  Return true if successful, false
83667         if memory exhausted.  All callers changed.
83668         Do not bother partly cleaning up on
83669         memory allocation failure; that is free_dir's job.
83670         However, free ad if hash_insert fails, to avoid memory leak.
83671         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83672         fts->fts_options to see which union member to use.
83673
83674 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83675
83676         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83677         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83678
83679 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83680
83681         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83682
83683 2005-05-20  Jim Meyering  <jim@meyering.net>
83684
83685         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83686         Now a macro, to pacify GCC.
83687
83688 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83689
83690         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83691         of -1.
83692
83693 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83694
83695         * lib/chown.c (rpl_chown): Return -1 on failure.
83696
83697 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83698
83699         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83700         Don't check for stddef.h.
83701         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83702         don't use its results.
83703         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83704         since we include them unconditionally.  Don't require
83705         AM_STDBOOL_H, since stdbool is a prerequisite.
83706         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83707         since we assume C89 or better.
83708         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83709         as we don't use their results.
83710         Don't check for fchdir, memmove, memset, strrchr, as we use
83711         them unconditionally.
83712         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83713         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83714
83715 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83716
83717         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83718         Include <stddef.h> unconditionally, since we assume C89 now.
83719         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83720         * lib/fts.c: Include fts_.h first, to check interface.
83721         Do not include intprops.h; no longer needed.
83722         Include cycle-check.h and hash.h, since fts_.h no longer does.
83723         Remove unnecessary casts of closedir to void.
83724         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83725         decide whether to decrement nlinks.
83726         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83727         (FTS): Use struct hash_table * instead of Hash_table, so that
83728         we no longer need to include hash.h here.
83729
83730 2005-05-18  Jim Meyering  <jim@meyering.net>
83731
83732         * modules/dirfd (License): Change to LGPL.  Most of the code
83733         is already in the public domain.
83734
83735 2005-05-18  Jim Meyering  <jim@meyering.net>
83736
83737         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83738         Reported by Yoann Vandoorselaere.
83739
83740 2005-05-17  Jim Meyering  <jim@meyering.net>
83741
83742         * m4/fts.m4: New file, from coreutils.
83743
83744 2005-05-17  Jim Meyering  <jim@meyering.net>
83745
83746         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83747
83748 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83749
83750         Sync from coreutils.
83751         * m4/unlinkdir.m4: New file.
83752
83753 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83754
83755         Sync from coreutils.
83756         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83757         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83758         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83759         White space changes only.
83760         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83761         special.
83762         * lib/yesno.c: Include getline.h, not ctype.h.
83763         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83764         Use getline to remove arbitrary restriction on response length.
83765
83766 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83767
83768         * config/srclist-update: Spell out "Street" in FSF postal
83769         mail address; this is the style the FSF seems to prefer.
83770
83771         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83772         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83773         this updates FSF postal mail address.
83774
83775         Sync from coreutils.
83776         * modules/unlinkdir: New file.
83777         * modules/yesno (Depends-on): Add getline.
83778         * MODULES.html.sh (File system functions): Add unlinkdir.
83779
83780 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83781
83782         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83783         lib/strsep.h:
83784         Change the initial comment to refer to GPL, not LGPL.
83785         gnulib-tool will change it to LGPL as needed.
83786
83787         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83788         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83789         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83790         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83791         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83792         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83793         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83794         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83795         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83796         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83797         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83798         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83799         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83800         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83801         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83802         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83803         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83804         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83805         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83806         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83807         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83808         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83809         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83810         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83811         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83812         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83813         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83814         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83815         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83816         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83817         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83818         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83819         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83820         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83821         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83822         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83823         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83824         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83825         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83826         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83827         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83828         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83829         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83830         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83831         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83832         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83833         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83834         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83835         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83836         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83837         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83838         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83839         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83840         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83841         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83842         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83843         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83844         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83845         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83846         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83847         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83848         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83849         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83850         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83851         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83852         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83853         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83854         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83855         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83856         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83857         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83858         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83859         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83860         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83861         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83862         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83863         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83864         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83865         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83866         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83867         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83868         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83869         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83870         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83871         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83872         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83873         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83874         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83875         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83876         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83877         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83878         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83879         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83880         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83881         lib/yesno.c, lib/yesno.h:
83882         Update FSF postal mail address.
83883
83884 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83885
83886         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83887         tests/test-memmem.c, tests/test-stpncpy.c:
83888         Update FSF postal mail address.
83889
83890 2005-05-13  Bruno Haible  <bruno@clisp.org>
83891
83892         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83893         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83894         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83895         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83896         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83897         Add support for 64-bit integers in the MSVC compiler.
83898
83899 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83900
83901         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83902
83903 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83904
83905         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83906
83907 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83908
83909         * doc/getdate.texi (General date syntax): Don't say that date
83910         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83911         Problem reported by Nic Ferrier.
83912
83913 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83914
83915         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83916         specified in ai_socktype. Fix invalid ai_protocol
83917         check. ai_protocol is usually set to 0 or depending on
83918         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83919         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83920         ai_socktype / ai_protocol in the returned addrinfo structure.
83921
83922 2005-05-10  Simon Josefsson  <jas@extundo.com>
83923
83924         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83925         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83926
83927 2005-05-10  Karl Berry  <karl@gnu.org>
83928
83929         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83930         (from http://www.gnu.org/licenses).
83931         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83932         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83933         fdl.texi suffices.
83934
83935 2005-05-10  Karl Berry  <karl@gnu.org>
83936
83937         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83938         (COPYING.DOC): remove.
83939
83940         * config/srclist-update: new FSF address.
83941
83942 2005-05-10  Derek Price  <derek@ximbiot.com>
83943
83944         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83945         possible.
83946
83947 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83948             Bruno Haible  <bruno@clisp.org>
83949
83950         * modules/inet_ntop: New file.
83951         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83952         inet_ntop.
83953
83954 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83955             Bruno Haible  <bruno@clisp.org>
83956
83957         * m4/inet_ntop.m4: New file.
83958
83959 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83960             Bruno Haible  <bruno@clisp.org>
83961
83962         * lib/inet_ntop.h: New file.
83963         * lib/inet_ntop.c: New file, from glibc with modifications.
83964
83965 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83966
83967         * modules/time_r (License): Change to LGPL.
83968         * modules/extensions (License): Change to LGPL.  Actually,
83969         the license is more permissive than that, but currently gnulib-tool
83970         doesn't know how to handle more-permissive licenses.
83971
83972         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83973         Problem reported by Dave Love.
83974
83975 2005-05-08  Jim Meyering  <jim@meyering.net>
83976
83977         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83978         blank.
83979
83980 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83981
83982         * modules/argmatch (Depends-on): Add stdbool.
83983         * modules/backupfile (Depends-on): Likewise.
83984         * modules/chdir-long (Depends-on): Likewise.
83985         * modules/closeout (Depends-on): Likewise.
83986         * modules/cycle-check (Depends-on): Likewise.
83987         * modules/dirname (Depends-on): Likewise.
83988         * modules/fnmatch (Depends-on): Likewise.
83989         * modules/fsusage (Depends-on): Likewise.
83990         * modules/fwriteerror (Depends-on): Likewise.
83991         * modules/getcwd (Depends-on): Likewise.
83992         * modules/getloadavg (Depends-on): Likewise.
83993         * modules/hard-locale (Depends-on): Likewise.
83994         * modules/makepath (Depends-on): Likewise.
83995         * modules/mountlist (Depends-on): Likewise.
83996         * modules/nanosleep (Depends-on): Likewise.
83997         * modules/posixtm (Depends-on): Likewise.
83998         * modules/quotearg (Depends-on): Likewise.
83999         * modules/readtokens (Depends-on): Likewise.
84000         * modules/readtokens0 (Depends-on): Likewise.
84001         * modules/readutmp (Depends-on): Likewise.
84002         * modules/save-cwd (Depends-on): Likewise.
84003         * modules/strftime (Depends-on): Likewise.
84004         * modules/userspec (Depends-on): Likewise.
84005         * modules/utimecmp (Depends-on): Likewise.
84006         * modules/xgetcwd (Depends-on): Likewise.
84007         * modules/xnanosleep (Depends-on): Likewise.
84008         * modules/xstrtod (Depends-on): Likewise.
84009         * modules/yesno (Depends-on): Likewise.
84010
84011 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84012
84013         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84014         needless checks.
84015
84016 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84017
84018         Merge from coreutils.  Among other things,
84019         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84020         * lib/fd-safer.c: New file.
84021         * lib/fcntl-safer.h, open-safer.c: Remove.
84022         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84023         * lib/dup-safer.c: Include unistd-safer.h first.
84024         Don't include errno.h.
84025         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84026         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84027         * lib/file-type.c: Rely on file-type.h change.
84028         * lib/getloadavg.c: Include unistd-safer.h.
84029         (getloadavg): Use safer open.
84030         * lib/getusershell.c: Include "stdio-safer.h".
84031         (getusershell): Use safer fopen.
84032         * lib/long-options.c (long_options): Use NULL rather than 0.
84033         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84034         'free'.
84035         * lib/modechange.c: Likewise.
84036         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84037         (MODE_DONE): New constant.
84038         (struct mode_change): Remove 'next' member.
84039         (make_node_op_equals): New function; like the old one of the
84040         same name, except it allocates an array.
84041         (mode_compile, mode_create_from_ref): Use it.
84042         (mode_compile): Allocate result as an array, not a linked list.
84043         Parse octal string ourself, so that we catch mistakes like "+0".
84044         (mode_adjust): Arg is an array, not a linked list.
84045         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84046         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84047         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84048         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84049         Remove.  This is now stat-macros.h's job.
84050         (talloc): Remove.  All callers replaced by xalloc, so that
84051         our invokers don't have to worry about reporting memory failures.
84052         (make_node_op_equals): Remove.
84053         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84054         New constants.
84055         (struct mode_change): Moved here from modechange.h.
84056         (mode_append_entry): Remove.
84057         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84058         apps to have incorrect behavior.  Use simpler algorithm for head
84059         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84060         Detect more invalid usages rather than having somewhat-random behavior.
84061         Don't insert an "a=" action, as that leads to incorrect behavior.
84062         (mode_compile, mode_create_from_ref): Return NULL on error instead
84063         of an enum, since now there's only one way to have an error.  All
84064         callers changed.
84065         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84066         at the correct time.  Simplify calculation of "+u" and its ilk.
84067         Don't mishandle "+X".
84068         (mode_free): Remove "register" and localize decls.
84069         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84070         (struct mode_change): Move to modechange.c; callers don't
84071         need to see this stuff.
84072         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84073         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84074         (mode_change, mode_adjust): Reflect the new signatures noted above.
84075         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84076         that might redefine system include files.
84077         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84078         (my_usleep): Use NULL rather than (void *) 0.
84079         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84080         Use siginterrupt to specify that system calls should be interrupted.
84081         (rpl_nanosleep): Move initialization of suspended closer to call of
84082         my_usleep.
84083         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84084         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84085         (desirable_utmp_entry): New function.
84086         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84087         using x2nrealloc, to simplify logic.
84088         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84089         size calculation.  Do not assume utmp file is a regular file.
84090         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84091         (READ_UTMP_CHECK_PIDS): New constant.
84092         * lib/save-cwd.c: Include unistd-safer.h.
84093         (save_cwd): Use fd_safer.
84094         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84095         [!_LIBC] Include "stat-macros.h" instead.
84096         * lib/unistd-safer.h (fd_safer): New decl.
84097
84098 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84099
84100         * modules/getloadavg (Depends-on): Add unistd-safer.
84101         * modules/getusershell (Depends-on): Add stdio-safer.
84102         * modules/lstat (Depends-on): Remove xalloc.
84103         * modules/mkstemp (Depends-on): Add stat-macros.
84104         * modules/modechange (Depends-on): Remove xstrtol.
84105         Add stat-macros, xalloc.
84106         * modules/save-cwd (Depends-on): Add unistd-safer.
84107         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84108         * modules/unistd-safer (Files): Add lib/fd-safer.c
84109         (Makefile.am): Remove lib_SOURCES.
84110
84111         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84112         Remove fcntl-safer; unistd-safer supersedes it.
84113
84114 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84115
84116         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84117         AC_HEADER_STAT.
84118         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84119         (gl_PREREQ_CHOWN): Remove.
84120         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84121         it.  Don't require AC_HEADER_STAT.
84122         (gl_PREREQ_LSTAT): Remove.
84123         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84124         Don't require AC_HEADER_STAT.
84125         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84126         (gl_PREREQ_RMDIR): Remove.
84127         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84128         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84129         the stat-macros module a prerequisite.
84130         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84131         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84132         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84133         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84134         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84135         variable names.
84136         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84137         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84138         variable prefixes.
84139         * m4/fcntl-safer.m4: Remove.
84140         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84141         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84142         Invoke gl_PREREQ_FD_SAFER.
84143         (gl_PREREQ_FD_SAFER): New macro.
84144         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84145         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84146         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84147         Remove duplicate call to AC_LIBOBJ(readutmp).
84148         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84149
84150         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84151         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84152
84153 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84154
84155         * MODULES.html.sh (Misc): Add byteswap.
84156
84157 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84158
84159         * modules/getcwd (Depends-on): Add extensions.
84160         * modules/openat (Depends-on): Likewise.
84161
84162 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84163
84164         * modules/byteswap: New file.
84165
84166 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84167
84168         * m4/byteswap.m4: New file.
84169
84170 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84171
84172         * lib/byteswap_.h: New file.
84173
84174 2005-04-25  Karl Berry  <karl@gnu.org>
84175
84176         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84177
84178 2005-04-25  Albert Chin  <china@thewrittenword.com>
84179
84180         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84181         Toolkit C bug.
84182
84183 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84184
84185         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84186         (func_ln_if_changed): Remove forcibly for no error message
84187         in case file does not exist.
84188
84189 2005-04-19  Simon Josefsson  <jas@extundo.com>
84190
84191         * gnulib-tool (Options): Make --symlink mean --symbolic.
84192
84193 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84194
84195         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84196
84197 2005-04-16  Simon Josefsson  <jas@extundo.com>
84198
84199         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84200
84201 2005-04-15  Simon Josefsson  <jas@extundo.com>
84202
84203         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84204
84205 2005-04-15  Simon Josefsson  <jas@extundo.com>
84206
84207         * gnulib-tool: Rename --symlink to --symbolic.
84208
84209 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84210
84211         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84212         symbolic links to files instead of copying/moving.  Add --aux-dir,
84213         specifying directory relative --dir where auxiliary build tools
84214         are placed.
84215
84216 2005-04-14  Bruno Haible  <bruno@clisp.org>
84217
84218         * modules/allocsa (License): Change to LGPL.
84219         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84220
84221 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84222
84223         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84224         that "UTC +1 second" continues to work.  Problem reported
84225         by Dmitry V. Levin.
84226         (relunit_snumber): New rule.
84227         (relunit): Use it.
84228
84229 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84230
84231         * lib/getdate.y (universal_time_zone_table): New constant.
84232         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84233         universal_time_zone_table.
84234         (lookup_zone): Prefer universal_time_zone_table to
84235         local_time_zone_table, so that "GMT" time stamps are allowed in
84236         London during the summer.  Problem reported by Ian Abbott.
84237
84238 2005-04-12  Jim Meyering  <jim@meyering.net>
84239
84240         * lib/human.c (humblock): Set *options even when returning due to
84241         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84242         warning from gcc-4.
84243
84244 2005-04-09  Jim Meyering  <jim@meyering.net>
84245
84246         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84247         -Wuninitialized: initialize tm0.tm_year.
84248
84249 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84250
84251         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84252         count, since there's no maximum.  All uses changed.
84253         Add member dsts_seen.
84254         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
84255         not being INT_MAX.
84256         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
84257         Use pc_rels_seen to decide whether a date is absolute.
84258
84259         * lib/getdate.y (number): Don't overwrite year.
84260         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
84261         check.
84262
84263 2005-04-02  Simon Josefsson  <jas@extundo.com>
84264
84265         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84266         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84267
84268 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84269
84270         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84271         where no absolute path name can be longer than PATH_MAX.
84272
84273 2005-03-27  Jim Meyering  <jim@meyering.net>
84274
84275         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84276
84277 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84278
84279         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84280         "one's complement" -> "ones' complement" in comment, as per Knuth.
84281         "value of type" -> "type or expression" in comment.
84282         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84283
84284 2005-03-26  Jim Meyering  <jim@meyering.net>
84285
84286         Comment nits.
84287         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84288         Correct typos: s/or/of/.
84289
84290 2005-03-26  Jim Meyering  <jim@meyering.net>
84291
84292         * modules/check-include-files: Move to ../ and rename to...
84293         * check-module: ...this.
84294
84295 2005-03-25  Jim Meyering  <jim@meyering.net>
84296
84297         * modules/xvasprintf (Files): Add xalloc.h.
84298
84299 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84300
84301         * modules/gettext (Files): config/config.rpath ->
84302         build-aux/config.rpath
84303         * modules/iconv (Files): Likewise.
84304         Problem reported by Oskar Liljeblad.
84305
84306 2005-03-23  Jim Meyering  <jim@meyering.net>
84307
84308         * modules/check-include-files: New script to check for
84309         missing dependencies, multiple includes, etc.
84310
84311         * modules/c-strtold (Depends-on): Add xalloc.
84312         * modules/c-strtod (Depends-on): Add xalloc.
84313         * modules/hash (Depends-on): Add xalloc.
84314         (Files): Remove lib/xalloc.h.
84315
84316         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84317         * modules/userspec (Files): Add lib/inttostr.h.
84318
84319 2005-03-23  Jim Meyering  <jim@meyering.net>
84320
84321         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84322
84323 2005-03-22  Jim Meyering  <jim@meyering.net>
84324
84325         * modules/stat-macros: New module.
84326         * modules/canonicalize, modules/euidaccess, modules/file-type,
84327         * modules/filemode, modules/lchown, modules/makepath,
84328         * modules/rmdir, modules/stat: Depend on new stat-macros module
84329         rather than listing lib/stat-macros.h manually.
84330         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
84331
84332 2005-03-22  Jim Meyering  <jim@meyering.net>
84333
84334         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
84335
84336 2005-03-22  Bruno Haible  <bruno@clisp.org>
84337
84338         * config/srclist.txt: Replace target directory 'config' with
84339         'build-aux'.
84340         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
84341         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
84342         ../build-aux/.
84343
84344 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
84345
84346         * modules/chdir-long (Depends-on): Add mempcpy.
84347
84348         * modules/acl, modules/backupfile, modules/c-strtod,
84349         modules/c-strtold, modules/canon-host, modules/canonicalize,
84350         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
84351         modules/exclude, modules/exitfail, modules/file-type,
84352         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
84353         modules/getdate, modules/getline, modules/getpagesize,
84354         modules/getpass, modules/getugroups, modules/group-member,
84355         modules/hard-locale, modules/hash, modules/human, modules/idcache,
84356         modules/inttostr, modules/long-options, modules/makepath,
84357         modules/md5, modules/memcasecmp, modules/memcoll,
84358         modules/modechange, modules/mountlist, modules/path-concat,
84359         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
84360         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
84361         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
84362         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
84363         modules/strftime, modules/strndup, modules/strverscmp,
84364         modules/timespec, modules/unlocked-io, modules/userspec,
84365         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
84366         modules/yesno:
84367         Remove lib_SOURCES line from Makefile.am section, as this is now
84368         done automatically by the corresponding Autoconf macro.
84369
84370 2005-03-21  Jim Meyering  <jim@meyering.net>
84371
84372         Changes imported from coreutils.
84373
84374         * lib/cycle-check.c: Don't include xalloc.h.
84375
84376         * lib/path-concat.c: Don't include assert.h.
84377         (path_concat): Remove assertion that would have triggered
84378         for ABASE starting with more than one slash.
84379         Reported by Andreas Schwab.
84380
84381         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
84382         properly when ABASE is an absolute file name.
84383         Correct the description of this function.
84384         Include <assert.h>.
84385         Add an assertion and a test driver.
84386         This fixes a bug introduced on 2004-07-02.
84387         Andreas Schwab reported the resulting failure of cp --parents:
84388         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84389
84390 2005-03-21  Jim Meyering  <jim@meyering.net>
84391
84392         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84393         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84394
84395 2005-03-21  Jim Meyering  <jim@meyering.net>
84396         and  Paul Eggert  <eggert@cs.ucla.edu>
84397
84398         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84399         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84400         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84401         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84402         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84403         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84404         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84405         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
84406         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
84407         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
84408         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
84409         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
84410         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
84411         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
84412         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
84413         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
84414         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
84415         for these modules.
84416
84417 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
84418
84419         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
84420         (which shouldn't happen), generate nothing instead of returning 0
84421         immediately, so that nstrftime (NULL, ...) doesn't return 0.
84422
84423 2005-03-16  Bruno Haible  <bruno@clisp.org>
84424
84425         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
84426         HAVE_LONGLONG_64BIT.
84427
84428 2005-03-16  Bruno Haible  <bruno@clisp.org>
84429
84430         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84431         HAVE_LONGLONG_64BIT.
84432
84433 2005-03-16  Bruno Haible  <bruno@clisp.org>
84434
84435         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84436         HAVE_LONGLONG_64BIT.
84437
84438 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84439
84440         * lib/strftime.c (my_strftime): Prepend space to format so that we can
84441         reliably distinguish strftime failure from empty output on POSIX
84442         hosts.
84443
84444 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84445
84446         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
84447         (iconv_string): Don't guess a size-zero buffer, as that might cause
84448         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
84449         result would be 'too large', where 'too large' is (heuristically)
84450         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
84451         overflow concerns.  This will prevent some unwanted malloc failures
84452         when the inputs are very large.
84453
84454 2005-03-15  Karl Berry  <karl@gnu.org>
84455
84456         * config/srclist.txt (config.rpath): from gettext.
84457         * config/config.rpath: update.
84458
84459 2005-03-15  Bruno Haible  <bruno@clisp.org>
84460
84461         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
84462         to 'negate'.
84463
84464         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
84465         variable.
84466
84467         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
84468         results.
84469
84470 2005-03-14  Simon Josefsson  <jas@extundo.com>
84471
84472         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
84473         <fx@gnu.org>.
84474
84475 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
84476
84477         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
84478         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
84479         intprops.h.
84480         * lib/strtol.c: Likewise.
84481
84482 2005-03-14  Jim Meyering  <jim@meyering.net>
84483
84484         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84485         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84486         to be nonzero so that we (and caller) can detect the difference
84487         between a valid zero-length expansion and an error return, even
84488         when the underlying strftime fails before writing anything into
84489         that location.
84490
84491 2005-03-14  Bruno Haible  <bruno@clisp.org>
84492
84493         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84494         Update from GNU gettext 0.14.3.
84495
84496 2005-03-10  Jim Meyering  <jim@meyering.net>
84497
84498         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84499
84500 2005-03-10  Jim Meyering  <jim@meyering.net>
84501
84502         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84503         so that this module works on systems without fchdir.
84504
84505 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84506
84507         Factor int-properties macros into a single file, except for
84508         glibc-related files.
84509         * lib/intprops.h: New file.
84510         * lib/getloadavg.c: Include it instead of limits.h.
84511         (INT_STRLEN_BOUND): Remove.
84512         * lib/human.c: Include intprops.h.
84513         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84514         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84515         302/1000.
84516         * lib/inttostr.h: Include intprops.h instead of limits.h.
84517         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84518         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84519         for consistency with intprops.h.
84520         (time_t_is_integer, twos_complement_arithmetic): Use them.
84521         * lib/sig2str.h: Include <signal.h>, intprops.h.
84522         (INT_STRLEN_BOUND): Remove.
84523         * lib/strftime.c (TYPE_SIGNED): Remove.
84524         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84525         * lib/strtol.c: Adjust comments to match intprops.h.
84526         * lib/userspec.c: Include intprops.h.
84527         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84528         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84529         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84530         instead of rolling our own expressions.
84531         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84532
84533         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84534         instead of int.
84535         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84536         the right thing even if adding 1900 would overflow.  Similarly
84537         for tm_mon + 1 and tm_yday + 1.
84538         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84539         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84540         (DO_SIGNED_NUMBER): New macro.
84541         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84542
84543 2005-03-07  Bruno Haible  <bruno@clisp.org>
84544
84545         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84546
84547 2005-03-07  Bruno Haible  <bruno@clisp.org>
84548
84549         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84550
84551 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84552
84553         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84554         (func_import): Only replace files via --import when they have actually
84555         changed.
84556
84557 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84558
84559         * m4/mmap-anon.m4: New file.
84560         * m4/pagealign_alloc.m4: New file.
84561
84562 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84563             Bruno Haible  <bruno@clisp.org>
84564
84565         * modules/pagealign_alloc: New file.
84566         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84567
84568 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84569             Bruno Haible  <bruno@clisp.org>
84570
84571         * lib/pagealign_alloc.h: New file.
84572         * lib/pagealign_alloc.c: New file.
84573
84574 2005-03-03  Bruno Haible  <bruno@clisp.org>
84575
84576         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84577         Use an all-permissive copyright notice, recommended by RMS.
84578
84579 2005-03-02  Bruno Haible  <bruno@clisp.org>
84580
84581         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84582         of AIX, the replacement has to be done only after <string.h> is
84583         included, therefore not in config.h. stpncpy.h does the replacement,
84584         and stpncpy.c uses it.
84585
84586 2005-03-02  Bruno Haible  <bruno@clisp.org>
84587
84588         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84589         stpncpy.c uses it.
84590
84591 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84592
84593         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84594         The workaround isn't strictly needed for POSIX conformance, and
84595         it's too much of a pain to configure and maintain.  We'll ask
84596         people to fix their kernels instead.
84597         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84598         (NANOSLEEP_BUG_WORKAROUND): Remove.
84599         (xnanosleep): Remove the workaround.
84600
84601 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84602
84603         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84604         Reported by Derek Price.
84605         (Include): Add "timespec.h".
84606
84607         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84608
84609 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84610
84611         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84612         to detect nanosleep bug.
84613
84614 2005-03-01  Bruno Haible  <bruno@clisp.org>
84615
84616         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84617
84618 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84619
84620         * modules/gethrxtime: New file.
84621         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84622         (Depends-on): Add gethrxtime.
84623         (configure.ac): Add gl_XNANOSLEEP.
84624         (Makefile.am): Remove lib_SOURCES line.
84625
84626 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84627
84628         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84629         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84630
84631 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84632
84633         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84634         * lib/timespec.h (gettime): Return void, since it always
84635         succeeds now.  All uses changed.
84636         * lib/gettime.c (gettime): Likewise.
84637         [HAVE_NANOTIME]: Prefer nanotime.
84638         Assume gettimeofday succeeds, as POSIX requires.
84639         Assime time () succeeds, since other code already does.
84640         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84641         (timespec_subtract): Remove.
84642         (NANOSLEEP_BUG_WORKAROUND): New constant.
84643         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84644         things considerably.  Use it only on GNU/Linux hosts, since the
84645         workaround shouldn't be needed elsewhere.
84646
84647 2005-02-24  Bruno Haible  <bruno@clisp.org>
84648
84649         * modules/gettext (Files): Add m4/glibc2.m4.
84650
84651 2005-02-24  Bruno Haible  <bruno@clisp.org>
84652
84653         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84654         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84655         * m4/progtest.m4:
84656         Update from GNU gettext 0.14.2.
84657         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84658
84659 2005-02-24  Bruno Haible  <bruno@clisp.org>
84660
84661         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84662         * lib/config.charset: Update from GNU gettext 0.14.2.
84663
84664 2005-02-24  Bruno Haible  <bruno@clisp.org>
84665
84666         * lib/gettext.h: Update from GNU gettext 0.14.2.
84667
84668 2005-02-23  Simon Josefsson  <jas@extundo.com>
84669
84670         * m4/iconvme.m4: New file.
84671
84672 2005-02-23  Jim Meyering  <jim@meyering.net>
84673
84674         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84675         change.
84676         Thanks to Bruno Haible for catching it.
84677
84678 2005-02-22  Simon Josefsson  <jas@extundo.com>
84679
84680         * modules/iconvme: New file.
84681
84682         * MODULES.html.sh: Add iconvme.
84683
84684 2005-02-22  Simon Josefsson  <jas@extundo.com>
84685
84686         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84687
84688 2005-02-22  Simon Josefsson  <jas@extundo.com>
84689
84690         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84691
84692 2005-02-22  Jim Meyering  <jim@meyering.net>
84693
84694         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84695         s/ifndef/ifdef/.
84696
84697 2005-02-20  Neil Conway  <neilc@samurai.com>
84698
84699         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84700         returned by OSX/Darwin if the specified buffer is not large
84701         enough for the hostname.
84702
84703 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84704
84705         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84706         pass it to _help, otherwise the latter coredumps trying to
84707         dereference state.root_argp.
84708
84709 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84710
84711         * modules/chdir-long (Depends-on): Add memrchr.
84712         * modules/memrchr (Files): Add lib/memrchr.h.
84713         (Include): "memrchr.h".
84714
84715 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84716
84717         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84718
84719 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84720
84721         * lib/memrchr.h: New file.
84722         * lib/chdir-long.c: Include it.
84723         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84724         Don't bother including stddef.h.
84725
84726 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84727
84728         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84729         inclusion.
84730         Include <sys/types.h>, for dev_t.
84731         (ME_DUMMY, ME_REMOTE): Move from here....
84732         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84733         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84734         Dmitry V. Levin.
84735         Include mountlist.h first, to test the interface.
84736
84737 2005-01-29  Bruno Haible  <bruno@clisp.org>
84738
84739         * lib/progname.c (program_name): Initialize.
84740         Needed when linking statically on MacOS X.
84741
84742 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84743
84744         Sync from coreutils.
84745         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84746         (Depends-on): Add c-strtod.
84747         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84748
84749 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84750
84751         Sync from coreutils.
84752         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84753
84754         Remove files that are specific to coreutils.
84755         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84756
84757 2005-01-28  Bruno Haible  <bruno@clisp.org>
84758
84759         * modules/javacomp: New file.
84760         * MODULES.html.sh (Java): Add javacomp.
84761
84762 2005-01-28  Bruno Haible  <bruno@clisp.org>
84763
84764         * m4/javacomp.m4: New file, from GNU gettext.
84765
84766 2005-01-28  Bruno Haible  <bruno@clisp.org>
84767
84768         * lib/javacomp.sh.in: New file, from GNU gettext.
84769         * lib/javacomp.h: New file, from GNU gettext.
84770         * lib/javacomp.c: New file, from GNU gettext.
84771
84772 2005-01-26  Simon Josefsson  <jas@extundo.com>
84773
84774         * lib/gai_strerror.c: Use GPL in header.
84775
84776 2005-01-26  Bruno Haible  <bruno@clisp.org>
84777
84778         * modules/javaexec: New file.
84779         * MODULES.html.sh (Java): Add javaexec.
84780
84781 2005-01-26  Bruno Haible  <bruno@clisp.org>
84782
84783         * m4/javaexec.m4: New file, from GNU gettext.
84784
84785 2005-01-26  Bruno Haible  <bruno@clisp.org>
84786
84787         * lib/javaexec.sh.in: New file, from GNU gettext.
84788         * lib/javaexec.h: New file, from GNU gettext.
84789         * lib/javaexec.c: New file, from GNU gettext.
84790
84791 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84792
84793         * modules/lchown (Depends-on): Remove lchown.h
84794
84795 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84796
84797         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84798         must be defined if the header file was not found, in order
84799         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84800
84801 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84802
84803         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84804         initializers for struct pentry_state.
84805         (__argp_error): Check return value of __asprintf
84806         (__argp_failure): Translate error message
84807
84808         * lib/argp-parse.c: Removed braces around the expansion of N_()
84809
84810 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84811
84812         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84813         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84814         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84815         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84816         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84817         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84818         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84819         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84820         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84821         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84822         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84823         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84824         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84825         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84826         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84827         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84828         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84829         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84830         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84831         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84832         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84833         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84834         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84835         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84836         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84837         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84838         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84839         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84840         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84841         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84842         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84843         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84844         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84845         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84846         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84847         Use an all-permissive copyright notice, recommended by RMS.
84848
84849 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84850
84851         * modules/chdir-long (Depends-on): Remove mempcpy.
84852
84853 2005-01-21  Jim Meyering  <jim@meyering.net>
84854
84855         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84856         same value as for Solaris 9.
84857
84858         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84859         component length.  This included changing the parameter to be
84860         of type `char *' rather than `char const *'.
84861         * lib/chdir-long.h (chdir_long): Update prototype.
84862
84863         * lib/openat.c (fdopendir, fstatat): New functions.
84864         * lib/openat.h: Include headers required for use of DIR and struct
84865         stat.
84866         [AT_SYMLINK_NOFOLLOW]: Define.
84867         (fdopendir, fstatat): Add prototypes.
84868
84869 2005-01-21  Bruno Haible  <bruno@clisp.org>
84870
84871         * modules/classpath: New file.
84872         * MODULES.html.sh (Java): Add classpath.
84873
84874 2005-01-21  Bruno Haible  <bruno@clisp.org>
84875
84876         * lib/classpath.h: New file, from GNU gettext.
84877         * lib/classpath.c: New file, from GNU gettext.
84878
84879 2005-01-20  Simon Josefsson  <jas@extundo.com>
84880
84881         * modules/version-etc-fsf: New file.
84882
84883 2005-01-20  Simon Josefsson  <jas@extundo.com>
84884
84885         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84886         * lib/version-etc.c: Remove version_etc_copyright.
84887         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84888         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84889
84890 2005-01-20  Simon Josefsson  <jas@extundo.com>
84891
84892         * lib/base64.h (isbase64): Add.
84893
84894         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84895         using a unsigned prototype, don't inline.
84896         (base64_decode): Use it.
84897
84898 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84899
84900         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84901         it.
84902
84903 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84904
84905         * lib/save-cwd.c (save_cwd): Remove code to support the case
84906         where fchdir is missing or flaky.
84907
84908 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84909
84910         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84911
84912 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84913
84914         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84915         AC_LIBSOURCES now does this.
84916         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84917         with new ullong_max module.
84918
84919 2005-01-19  Bruno Haible  <bruno@clisp.org>
84920
84921         * modules/sh-quote: New file.
84922         * MODULES.html.sh (Executing programs): Add sh-quote.
84923
84924 2005-01-19  Bruno Haible  <bruno@clisp.org>
84925
84926         * lib/sh-quote.h: New file, from GNU gettext.
84927         * lib/sh-quote.c: New file, from GNU gettext.
84928
84929 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84930
84931         Merge from coreutils.
84932         * m4/ullong_max.m4: New file.
84933         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84934         (gl_MACROS): Assume localeconv exists.
84935
84936 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84937
84938         Merge changes from coreutils, as described below in several
84939         changelogs dated today.
84940
84941         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84942         (O_DIRECTORY): Remove; not needed here, since "." must be
84943         a directory.  All uses removed.
84944         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84945         universal on Suns, and we also need to test for IRIX.
84946         Revamp code to use 'if' rather than '#if'.
84947         Avoid unnecessary comparison of cwd->desc to 0.
84948
84949         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84950         for known valid error numbers rather than observed invalid ones.
84951
84952 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84953
84954         * modules/ullong_max: New file.
84955
84956         * modules/chdir-long, modules/openat: New files.
84957         * modules/save-cwd (Depends-on): Depend on chdir-long.
84958         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84959
84960 2005-01-18  Jim Meyering  <jim@meyering.net>
84961
84962         Merge from coreutils.
84963         * m4/chdir-long.m4, m4/openat.m4: New files.
84964         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84965         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84966         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84967         is sane and DOES follow symlinks.  Besides, testing 20 different
84968         systems found no broken chown implementations.
84969         Prompted by a change in rsync's copy of this macro.
84970         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84971
84972         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84973
84974         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84975         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84976         NULL-means-set-to-current-time semantics.
84977         Remove temporary file immediately, rather than waiting
84978         for configure's at-exit trap code to do it.
84979
84980 2005-01-18  Jim Meyering  <jim@meyering.net>
84981
84982         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84983
84984         * lib/utimens.c (futimens): Account for the fact that futimes
84985         can also fail with errno == ENOSYS or errno == ENOENT.
84986         Patch from Dmitry V. Levin.
84987
84988         Change the name of the robust chdir function from chdir to chdir_long.
84989         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84990         (restore_cwd): Use chdir_long, not chdir.
84991         * lib/chdir-long.c: Renamed from chdir.c.
84992         * lib/chdir-long.h: Renamed from chdir.h.
84993         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84994         Hurd.
84995
84996 2005-01-18  Bruno Haible  <bruno@clisp.org>
84997
84998         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84999         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85000         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85001         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85002         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85003         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85004         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85005         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85006         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85007         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85008         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85009         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85010         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85011         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85012         Use an all-permissive copyright notice, recommended by RMS.
85013
85014 2005-01-18  Bob Proulx  <bob@proulx.com>
85015
85016         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85017         simplify offsetof() macro construct to avoid compile failure with
85018         native HP-UX 11.0 ANSI C compiler.
85019
85020 2005-01-17  Bruno Haible  <bruno@clisp.org>
85021
85022         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85023         redundant because stpncpy.m4 takes care of it.
85024
85025 2005-01-17  Bruno Haible  <bruno@clisp.org>
85026
85027         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85028
85029 2005-01-17  Bruno Haible  <bruno@clisp.org>
85030
85031         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85032         used.
85033
85034 2005-01-17  Bruno Haible  <bruno@clisp.org>
85035
85036         * lib/fwriteerror.h (fwriteerror): Change specification to include
85037         fclose.
85038         * lib/fwriteerror.c: Include <stdbool.h>.
85039         (fwriteerror): At the end, close the file stream. Record whether
85040         stdout was already closed.
85041
85042 2005-01-17  Bruno Haible  <bruno@clisp.org>
85043
85044         * lib/execute.c (environ): Declare if needed.
85045         * lib/pipe.c (environ): Likewise.
85046         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85047
85048 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85049
85050         * modules/argp: Depend on vsnprintf
85051
85052 2005-01-10  Jim Meyering  <jim@meyering.net>
85053
85054         * modules/closeout (Depends-on): Add atexit.
85055
85056 2005-01-06  Bruno Haible  <bruno@clisp.org>
85057
85058         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85059
85060 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85061
85062         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85063         definitions to be after all include files, to avoid collisions.
85064         Problem reported by Bob Proulx.
85065
85066 2005-01-04  Jim Meyering  <jim@meyering.net>
85067
85068         Changes imported from coreutils.
85069         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85070         as the mkstemp template, use a temporary directory and an
85071         8.3-friendly template to avoid trouble on systems like DJGPP.
85072         Reported by Juan M. Guerrero via Stepan Kasal.
85073         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85074         close. Remove the temporary directory right away, rather than waiting
85075         for configure's at-exit trap code to do it.
85076         Suggestion from Stepan Kasal.
85077
85078 2005-01-01  Simon Josefsson  <jas@extundo.com>
85079
85080         * gnulib-tool: Print #include directives when --import'ing.
85081
85082 2004-12-28  Simon Josefsson  <jas@extundo.com>
85083
85084         * tests/test-base64.c: Include required header files.  Remove
85085         unused variables.
85086
85087 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85088
85089         * modules/error (Depends-on): Remove gettext.
85090
85091 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85092
85093         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85094         not needed.  This removes a dependency on the gettext module.
85095         [defined _LIBC]: Do not include <libintl.h>; not needed.
85096
85097 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85098
85099         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85100         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85101
85102 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85103
85104         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85105         HAVE_DECL_STRTOLD.
85106
85107 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85108
85109         * modules/getdate (Depends-on): Remove alloca-opt.
85110
85111 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85112
85113         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85114
85115 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85116
85117         * lib/argp-parse.c: Include <stddef.h>.
85118         (alignof, alignto): New macros.
85119         (parser_init): Don't assume that void * is aligned sufficiently
85120         for struct option.
85121
85122         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85123         need to extend the stack.
85124         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85125         large.
85126
85127 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85128
85129         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85130
85131 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85132
85133         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85134         (2004-10-24) change.  Apparently this was a false alarm.
85135
85136         * modules/getdate: Depend on alloca-opt, not alloca.
85137
85138 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85139
85140         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85141         Remove now-obsolete comment about AIX.
85142         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85143         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85144         (YYMAXDEPTH): New macro.
85145
85146 2004-12-18  Simon Josefsson  <jas@extundo.com>
85147
85148         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85149
85150 2004-12-18  Bruno Haible  <bruno@clisp.org>
85151
85152         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85153
85154 2004-12-18  Bruno Haible  <bruno@clisp.org>
85155
85156         * lib/fatal-signal.c (fatal_signals): Make non-const.
85157         (init_fatal_signals): New function.
85158         (uninstall_handlers, install_handlers): Ignore signals that were set to
85159         SIG_IGN.
85160         (at_fatal_signal): Call init_fatal_signals.
85161         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85162         SIG_IGN.
85163         Reported by Paul Eggert.
85164
85165 2004-12-18  Bruno Haible  <bruno@clisp.org>
85166
85167         * doc/alloca.texi: New file.
85168         * doc/alloca-opt.texi: New file.
85169
85170 2004-12-17  Jim Meyering  <jim@meyering.net>
85171
85172         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85173         Otherwise, install-sh could exit with improper exit status when
85174         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85175
85176 2004-12-16  Simon Josefsson  <jas@extundo.com>
85177
85178         * tests/test-base64.c: Add license.
85179
85180 2004-12-15  Stepan Kasal  <address@hidden>
85181
85182         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85183
85184 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85185
85186         * modules/getcwd (Files): Add m4/d-ino.m4.
85187         Suggested by Mark D. Baushke.
85188
85189 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85190
85191         * lib/getdate.y (textint): New member "negative".
85192         (time_zone_hhmm): New function.
85193         Expect 14 shift-reduce conflicts, not 13.
85194         (o_colon_minutes): New rule.
85195         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85196         (yylex): Set the "negative" member of signed numbers.
85197
85198 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85199
85200         * doc/getdate.texi (Time of day items, Time zone items):
85201         Describe new formats +00:00, UTC+00:00.
85202
85203 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85204
85205         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85206         spurious "-l"s.  Problem reported by Stepan Kasal.
85207
85208 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85209
85210         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85211         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85212
85213 2004-12-04  Simon Josefsson  <jas@extundo.com>
85214
85215         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85216         Vandoorselaere <yoann@prelude-ids.org>.
85217
85218 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85219
85220         Changes imported from coreutils.
85221         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85222         exist.
85223         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85224
85225 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85226
85227         Changes imported from coreutils.
85228         * lib/hard-locale.c: Assume <locale.h> exists.
85229         Include "strdup.h".
85230         (GLIBC_VERSION): New macro.
85231         (hard_locale): Assume setlocale exists.
85232         Rewrite to avoid #ifdef.
85233         Use strdup rather than malloc + strcpy.
85234         * lib/human.c: Assume <locale.h> exists.
85235         (human_readable): Assume localeconv exists.
85236
85237 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85238
85239         * modules/hard-locale (Depends-on): Add strdup.
85240
85241 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85242
85243         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85244         convert T2, not T.  (Imported from libc.)
85245
85246 2004-11-30  Simon Josefsson  <jas@extundo.com>
85247
85248         * modules/restrict (License): Change to LGPL.
85249
85250 2004-11-30  Simon Josefsson  <jas@extundo.com>
85251
85252         * m4/restrict.m4: Add copyright and copying conditions.
85253
85254 2004-11-30  Simon Josefsson  <jas@extundo.com>
85255
85256         * m4/base64.m4: New file.
85257
85258 2004-11-30  Simon Josefsson  <jas@extundo.com>
85259
85260         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
85261         base64.
85262
85263         * tests/test-base64.c: New file.
85264
85265         * modules/base64: New file.
85266
85267 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85268
85269         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85270         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85271
85272         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85273
85274 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85275
85276         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85277         (__getcwd.c): Don't restore errno; glibc doesn't.
85278         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85279         first, falling back to our code only if its results look suspicious.
85280         Ensure that the resulting buffer is only as large as necessary.
85281
85282         * lib/readutmp.c: Include readutmp.h first.
85283         Include <errno.h>, since readutmp.h no longer does that.
85284         * lib/readutmp.h: Don't include <errno.h>,
85285         <sys/param.h>, <time.h>; not needed to establish interface.
85286         (errno): Remove decl.
85287         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85288         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85289         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85290
85291 2004-11-28  Simon Josefsson  <jas@extundo.com>
85292
85293         * lib/base64.h, base64.c: New file.
85294
85295 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85296
85297         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85298
85299 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85300
85301         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85302         (Depends-on): Remove pathmax, same.  Add mempcpy.
85303         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85304         (Makefile.am): Append getcwd.h to lib_SOURCES.
85305         (Include): Add getcwd.h.
85306         (Maintainer): Change from Jim Meyering to "all, glibc",
85307         since getdate now uses intended-for-glibc code.
85308         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85309         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85310
85311 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85312
85313         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85314         HP's ANSI C compiler.
85315         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85316         Declaring int functions causes warnings on some modern systems and
85317         shouldn't be needed to compile on ancient ones.
85318         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85319         defined.
85320
85321         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85322         with the following changes.
85323         (__set_errno): Parenthesize properly.
85324         Include <stdbool.h>.
85325         (MIN, MAX, MATCHING_INO): New macros.
85326         (__getcwd): Define with prototype, not K&R form.
85327         Use heuristics to allocate default buffer on stack if possible.
85328         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
85329         behavior, and to avoid the PATH_MAX limit when computing
85330         ../../../../...
85331         Use MATCHING_INO to compare inode number to file.
85332         Check for arithmetic overflow in size calculations.
85333         Fix bug in reallocation of dot array that caused getcwd to fail
85334         on directories nested deeper than 75.
85335         Be more careful about saving errno on error.
85336         Do not use realloc; use only free+malloc, as this is a bit
85337         more flexible and avoids a needless copy operation.
85338         Do not inspect st_dev and st_ino for symbolic links; POSIX
85339         doesn't specify the latter.
85340         Check for closedir errors.
85341         Avoid needless casts.
85342         Use "#ifdef weak_alias" around weak_alias, to be like other
85343         glibc code.
85344         The following changes to getcwd.c have effect only when used in
85345         gnulib; they have no effect inside glibc proper.
85346         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
85347         as alloca isn't used.
85348         (alloca, __alloca): Likewise.
85349         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
85350         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85351         unconditionally, as gnulib assumes C89 or better.
85352         Do not include <sys/param.h>.
85353         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
85354         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
85355         better.
85356         (NULL) [!defined NULL]: Remove; we assume C89 or better.
85357         Include <dirent.h> in a way that is compatible with modern Autoconf.
85358         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
85359         New macros, if not already defined.
85360         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
85361         Use "_LIBC", not "defined _LIBC", for consistency.
85362         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
85363         a mempcpy module.
85364         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
85365         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
85366         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
85367         credit only to Jim Meyering and adjust the copyright dates.
85368         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
85369         <stdlib.h>, <unistd.h>, "pathmax.h".
85370         Instead, include "xgetcwd.h" (first) and "getcwd.h".
85371         (INITIAL_BUFFER_SIZE): Remove.
85372         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
85373
85374 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85375
85376         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
85377         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
85378         Use the _ONCE methods, for efficiency.
85379         Check for fcntl.h.  In test program, include <errno.h>
85380         and <fcntl.h> if available.  Remove old K&R cruft from
85381         test program.  Check for common errors in GNU/Linux,
85382         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
85383         don't do AC_LIBOBJ, as that's getcwd.m4's job.
85384         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
85385         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85386         name accordingly.
85387         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85388         accommodate new getcwd.c.
85389         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85390         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85391         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85392         that's all we need now.
85393
85394 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85395
85396         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85397         argp-parse.c depends on getopt internals, that means we should
85398         always use our getopt, to be on the safe side.
85399         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85400         order not to spoil the result of an eventual previous invocation
85401         of gl_GETOPT_SUBSTITUTE.
85402
85403 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85404
85405         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
85406         redefinition warnings. To avoid them, include the defines
85407         in `#if !defined __need_getopt ... #endif'. The only place
85408         where __getopt_argv_const is used is in definitions
85409         of getopt_long and getopt_long_only below, which are as well
85410         protected by `#ifndef __need_getopt'.
85411         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
85412         __need_getopt after including <stdio.h> and <unistd.h> These
85413         headers might have defined it.
85414
85415 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85416
85417         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
85418
85419 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85420
85421         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
85422         (futimens): New function, which uses futimes if available.
85423         (futimens, utimens): Support timespec==NULL, with same semantics
85424         as utime and utimens.
85425         * lib/utimens.h (futimens): New decl.
85426
85427 2004-11-23  Jim Meyering  <jim@meyering.net>
85428
85429         * lib/getopt_.h: Remove trailing blanks.
85430
85431 2004-11-23  Jim Meyering  <jim@meyering.net>
85432
85433         * lib/__fpending.c: Add comment.
85434
85435 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85436
85437         * modules/canonicalize (Depends-on): Add xreadlink.
85438         Problem reported by James Youngman.
85439
85440 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85441
85442         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
85443         New macros.
85444         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
85445         optopt): Use them instead of invoking ## directly; otherwise, the
85446         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
85447
85448 2004-11-19  Bruno Haible  <bruno@clisp.org>
85449
85450         * lib/strtok_r.c: Move comments from here...
85451         * lib/strtok_r.h: ... to here.
85452
85453 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85454
85455         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
85456         implementations that mishandle size_t overflow.
85457
85458 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85459
85460         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
85461         might fail.  Problem reported by Yoann Vandoorselaere.
85462         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
85463         implementations that mishandle size_t overflow.
85464
85465 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85466
85467         * modules/canon-host (Depends-on): Add strdup.
85468
85469 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85470
85471         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
85472
85473 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85474
85475         * lib/canon-host.c: Include "strdup.h".
85476         (canon_host): Use getaddrinfo if available, so that IPv6 works.
85477         Use strdup instead of malloc/strcpy to duplicate strings.
85478
85479         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
85480         (human_space_before_unit): New constant.
85481         * lib/human.c (human_readable): Support it.
85482
85483         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85484         (xgetcwd): Set errno correctly when failing.
85485         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85486         the failure is actually due to a PATH_MAX problem.
85487
85488         Further getopt changes to make it more likely that glibc will
85489         buy the changes back.
85490         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85491         (getopt): Use it, so to preserve glibc semantic
85492         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85493         when compiling for libc.
85494         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85495         (getopt_long, getopt_long_only): Use it.
85496
85497         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85498         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85499         (getopt): Argv is now char * const *, as per standard.
85500         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85501         not char *__getopt_argv_const *.
85502         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85503         _getopt_long_only_r): Likewise.
85504         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85505         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85506         _getopt_long_r, _getopt_long_only_r): Likewise.
85507         * lib/getopt_.h (__getopt_argv_const): Remove.
85508         (getopt): Argv is now char * const *, as per standard.
85509
85510         * lib/getdate.y (tORDINAL): New token.
85511         (day, relunit): Allow it for relative times.
85512         (relative_time_table): Use tORDINAL for ordinals.
85513
85514 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85515
85516         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85517         Document that "second" isn't allowed as an ordinal number.
85518
85519 2004-11-16  Jim Meyering  <jim@meyering.net>
85520
85521         * modules/closeout (Depends-on): Add fpending.
85522
85523 2004-11-15  Jim Meyering  <jim@meyering.net>
85524
85525         * lib/closeout.c: Include "__fpending.h" once again.
85526         Include <stdbool.h>.
85527         (close_stdout): Don't fail just because stdout was closed initially,
85528         since some programs don't write to stdout in the normal course of
85529         operation (other than --version and --help), and we don't want this
85530         function to make e.g. `touch file >&-' fail.
85531         But do fail if it was closed and someone has tried to write to it.
85532         E.g., `printf foo >&-' must fail.
85533
85534 2004-11-13  Jim Meyering  <jim@meyering.net>
85535
85536         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85537
85538 2004-11-12  Simon Josefsson  <jas@extundo.com>
85539
85540         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85541         small doc fix is still pending.
85542
85543 2004-11-11  Simon Josefsson  <jas@extundo.com>
85544
85545         * modules/strtok_r: New file.
85546
85547         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85548         strtok_r.
85549
85550 2004-11-11  Simon Josefsson  <jas@extundo.com>
85551
85552         * m4/strtok_r.m4: New file.
85553
85554         * m4/getopt.m4: Replace opterr.
85555
85556 2004-11-11  Simon Josefsson  <jas@extundo.com>
85557
85558         * lib/strtok_r.h, strtok_r.c: New file.
85559
85560 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85561
85562         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85563         of replacing opterr, getopt, etc.  This should handle the
85564         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85565
85566 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85567
85568         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85569         we can stop lying to compilers about the constness of argv when we
85570         are compiled outside glibc.
85571         (getopt, getopt_long, getopt_long_only): Use it.
85572         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85573         _getopt_internal, getopt): Likewise.
85574         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85575         _getopt_long_only_r): Likewise.
85576         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85577         _getopt_long_r, _getopt_long_only_r): Likewise.
85578
85579         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85580         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85581         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85582         the other external symbols.
85583         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85584         declaration, since the above renaming now works around collisions.
85585
85586 2004-11-11  Jim Meyering  <jim@meyering.net>
85587
85588         * lib/linebreak.c: Remove trailing blanks.
85589         * lib/alloca_.h: Likewise.
85590         * lib/acosl.c: Likewise.
85591         * lib/euidaccess.c: Likewise.
85592         * lib/allocsa.h: Likewise.
85593
85594 2004-11-10  Simon Josefsson  <jas@extundo.com>
85595
85596         * m4/getaddrinfo.m4: New file.
85597
85598 2004-11-10  Simon Josefsson  <jas@extundo.com>
85599
85600         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85601
85602 2004-11-10  Simon Josefsson  <jas@extundo.com>
85603
85604         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85605         getaddrinfo.
85606
85607         * modules/getaddrinfo: New file.
85608
85609 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85610
85611         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85612
85613 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85614
85615         * lib/mktime.c (SHR): New macro, which is a portable
85616         substitute for >> that should work even on Crays.
85617         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85618         Problem reported by Mark D. Baushke in
85619         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85620         * lib/getdate.y (SHR): Likewise.
85621         (tm_diff): Use it.
85622         * lib/strftime.c (SHR): Likewise.
85623         (tm_diff): Use it.
85624         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85625         quote_these_too, so that right shifts are well defined.  All uses
85626         changed.
85627
85628 2004-11-10  Jim Meyering  <jim@meyering.net>
85629
85630         Ensure that no close failure goes unreported.
85631         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85632         return early when it seems there's nothing to flush.
85633         Don't include __fpending.h.
85634
85635 2004-11-10  Jim Meyering  <jim@meyering.net>
85636
85637         * modules/closeout (Depends-on): Remove fpending.
85638
85639 2004-11-10  Jim Meyering  <jim@meyering.net>
85640
85641         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85642
85643 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85644
85645         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85646         gl_FUNC_STRFTIME.
85647         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85648         and AC_REQUIRE when possible, to avoid duplicate checks.
85649         Check for <wchar.h>.
85650
85651 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85652
85653         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85654
85655 2004-11-09  Bruno Haible  <bruno@clisp.org>
85656
85657         * m4/sockpfaf.m4: New file.
85658
85659 2004-11-05  Bruno Haible  <bruno@clisp.org>
85660
85661         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85662         Reported by Mark D. Baushke <mdb@cvshome.org>.
85663
85664 2004-11-04  Bruno Haible  <bruno@clisp.org>
85665
85666         2004-09-11  Bruno Haible  <bruno@clisp.org>
85667                 * allocsa.valgrind: New file.
85668         2004-02-06  Bruno Haible  <bruno@clisp.org>
85669                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85670                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85671                 Reported by Christopher Seip <chris.seip@hp.com>.
85672
85673 2004-11-04  Bruno Haible  <bruno@clisp.org>
85674
85675         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85676         (Makefile.am): Distribute it.
85677
85678 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85679
85680         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85681         with errno == ERANGE if the buffer is too small.
85682         Problem reported by Mark D. Baushke.
85683
85684 2004-11-03  Albert Chin  <china@thewrittenword.com>
85685             Paul Eggert  <eggert@cs.ucla.edu>
85686
85687         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85688         equivalent, substitute $ac_type for equivalent type rather than
85689         blindly using uint32_t *always* which won't work if uint32_t is not
85690         available.  Define _UINT32_T to work around typedef of uint32_t if
85691         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85692         2.5.1.
85693
85694 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85695
85696         * m4/jm-macros.m4: Sync from coreutils.
85697         (gl_MACROS): Check for mbrlen, for pathchk.
85698         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85699
85700 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85701
85702         * lib/xreadlink.c (MAXSIZE): New macro.
85703         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85704         size does not exceed MAXSIZE.  Avoid cast.
85705         As suggested by Mark D. Baushke in
85706         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85707         if readlink fails with buffer size just under MAXSIZE, try again
85708         with MAXSIZE.
85709
85710 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85711
85712         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85713
85714 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85715         and  Paul Eggert  <eggert@cs.ucla.edu>
85716
85717         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85718         (get_date): Overparenthesize to avoid GCC warning.
85719
85720 2004-11-02  Bruno Haible  <bruno@clisp.org>
85721
85722         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85723         returns void.
85724
85725 2004-11-02  Bruno Haible  <bruno@clisp.org>
85726
85727         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85728         function returns void.
85729
85730 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85731
85732         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85733         fflush_unlocked, flockfile, funlockfile, funlockfile,
85734         fputs_unlocked, putc_unlocked.
85735
85736 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85737
85738         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85739         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85740         already declared.
85741
85742 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85743
85744         * modules/getdate (Files): Add doc/getdate.texi.
85745         (Depends-on): Add setenv, xalloc.
85746
85747 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85748
85749         * lib/getdate.y: Add support for TZ="foo" within a date string.
85750         Fix some bugs near time_t boundaries.  Reject dates with
85751         out-of-range components, e.g., "Sept 31".
85752         Include <stdlib.h>, "setenv.h", "xalloc.h".
85753         (ISDIGIT_LOCALE): Remove; unused.
85754         Note that the TZ and time functions used here are not reentrant.
85755         (mktime_ok, get_tz): New functions.
85756         (TZBUFSIZE): New constant.
85757         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85758         This requires that we sometimes generate our own TZ="XXX..." setting.
85759
85760 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85761
85762         * doc/getdate.texi: New file, from coreutils with modifications for
85763         the new TZ parsing.
85764
85765 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85766
85767         * lib/mktime.c (not_equal_tm): Remove redundant check.
85768
85769 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85770
85771         * modules/regex (lib_SOURCES): Add regex.c.
85772         Reported by James Youngman in
85773         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85774
85775 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85776
85777         * lib/getdate.y: Use Bison 1.875 features, and some minor
85778         code cleanups.  This change does not affect semantics.
85779         Don't include <stdlib.h>; no longer needed.
85780         Don't include unlocked-io.h; only the "#if TEST" code uses
85781         stdio, and performance isn't crucial there.
85782         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85783         Bison 1.875 features as described below.
85784         All uses of "PC." replaced by "pc->".
85785         (YYSTYPE): Add a forward declaration.
85786         (yylex, yyerror): Use full prototypes in forward decls.
85787         Use "%pure-parser" rather than obsolescent "%pure_parser".
85788         Use %parse-param and %lex-param instead of obsolescent
85789         YYPARSE_PARAM and YYLEX_PARAM.
85790         (meridian_table, month_and_day_table, time_units_table,
85791         relative_time_table, time_zone_table, military_table,
85792         lookup_zone, lookup_word, get_date):
85793         Use NULL instead of 0 where appropriate.
85794         (to_hour): Avoid abort (), to avoid a dependency on
85795         stdlib.h.
85796         (yyerror, yylex): Now accepts parser_control * arg.
85797         (main) [TEST]: Use '\0' rather than 0 for char.
85798
85799 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85800
85801         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85802
85803 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85804
85805         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85806         It's now the caller's responsibility to handle the case where
85807         !HAVE_GETPAGESIZE && !defined getpagesize.
85808
85809         * lib/mktime.c (leapyear): Arg is long int, not int.
85810
85811 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85812
85813         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85814
85815 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85816
85817         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85818         missing.  Problem reported by James Youngman.
85819
85820 2004-10-16  Simon Josefsson  <jas@extundo.com>
85821
85822         * gnulib-tool: Fix comments.  Fix parse problem.
85823         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85824
85825 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85826
85827         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85828         implementation of getopt_long.  Problem reported by Alexander Taler in:
85829         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85830
85831 2004-10-15  Bruno Haible  <bruno@clisp.org>
85832
85833         * gnulib-tool: Untabify. Initialize supplied_libname.
85834         (func_usage): More homogenous output.
85835         (func_modules_transitive_closure, func_modules_to_filelist,
85836         func_emit_lib_Makefile_am): New functions.
85837         (func_import): New function, extracted from big case statement. Use
85838         func_get_license, func_modules_transitive_closure,
85839         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85840         opt_lgpl. Don't use test -a, as it's not portable.
85841         (func_create_testdir): Use func_modules_transitive_closure,
85842         func_modules_to_filelist, func_emit_lib_Makefile_am.
85843
85844 2004-10-15  Bruno Haible  <bruno@clisp.org>
85845
85846         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85847
85848 2004-10-15  Bruno Haible  <bruno@clisp.org>
85849
85850         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85851         the portions belonging to each module.
85852         Suggested by Derek Robert Price <derek@ximbiot.com>.
85853
85854 2004-10-12  Simon Josefsson  <jas@extundo.com>
85855
85856         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85857         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85858         to real functions.
85859
85860 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85861
85862         * modules/vsnprintf: New file.
85863
85864 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85865
85866         * m4/vsnprintf.m4: New file.
85867
85868 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85869
85870         * lib/vsnprintf.h: New file.
85871         * lib/vsnprintf.c: New file.
85872
85873 2004-10-11  Bruno Haible  <bruno@clisp.org>
85874
85875         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85876         vsnprintf.
85877
85878 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85879
85880         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85881
85882 2004-10-07  Bruno Haible  <bruno@clisp.org>
85883
85884         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85885         fits into the provided buffer.
85886
85887 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85888
85889         * lib/diacrit.c, diacrit.h: Add GPL notice.
85890
85891         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85892         notice.
85893         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85894         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85895         This avoids a potential constant-folding bug.
85896
85897 2004-10-05  Bruno Haible  <bruno@clisp.org>
85898
85899         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85900         for the declaration of strsep.
85901
85902 2004-10-05  Bruno Haible  <bruno@clisp.org>
85903
85904         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85905
85906 2004-10-04  Simon Josefsson  <jas@extundo.com>
85907
85908         * modules/memmem: New file.
85909         * tests/test-memmem.c: New file.
85910         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85911
85912 2004-10-04  Simon Josefsson  <jas@extundo.com>
85913
85914         * m4/memmem.m4: New file.
85915
85916 2004-10-04  Simon Josefsson  <jas@extundo.com>
85917
85918         * lib/memmem.h: New file.
85919         * lib/memmem.c: New file, taken from glibc.
85920
85921 2004-10-04  Simon Josefsson  <jas@extundo.com>
85922
85923         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85924         '#ifdef USE_UNLOCKED_IO'.
85925
85926 2004-10-04  Simon Josefsson  <jas@extundo.com>
85927
85928         * config/srclist.txt: Add memmem from glibc.
85929
85930 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85931
85932         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85933
85934         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85935         modules/exclude, modules/getdate, modules/getline,
85936         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85937         modules/getusershell, modules/linebuffer, modules/md5,
85938         modules/mountlist, modules/posixtm, modules/readtokens,
85939         modules/readutmp, modules/regex, modules/sha1,
85940         modules/version-etc, modules/yesno:
85941         Remove dependency on unlocked-io.
85942
85943 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85944
85945         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85946
85947         * m4/unlocked-io.m4: Add copyright notice.
85948         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85949
85950 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85951
85952         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85953         * lib/xmalloc.c (xmemdup): Likewise.
85954         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85955         XFREE): Remove these long-obsolescent macros.
85956         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85957         * lib/xstrdup.c: Remove.
85958
85959         * lib/regex.c (re_comp): Cast gettext return value to char *,
85960         Problem reported by Martin Neitzel via Mark D. Baushke.
85961
85962 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85963
85964         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85965         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85966         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85967         regex.c, sha1.c, version-etc.c, yesno.c:
85968         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85969         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85970         the includer's responsibility.
85971
85972         Sync from coreutils.
85973
85974         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85975         points to the start of a string, as the C Standard says the
85976         resulting behavior is undefined.
85977
85978         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85979         simple -> simple_backups, numbered_existing ->
85980         numbered_existing_backups, numbered -> numbered_backups
85981         to avoid shadowing problems.  All uses changed.
85982         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85983         * lib/backupfile.c (check_extension, numbered_backup):
85984         Rename locals to avoid shadowing 'basename'.
85985         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85986         once.
85987
85988         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85989         * lib/.cvsignore: Add getopt.h.
85990
85991 2004-10-04  Bruno Haible  <bruno@clisp.org>
85992
85993         * modules/README: New file.
85994         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85995         not a module.
85996
85997 2004-10-02  Jim Meyering  <jim@meyering.net>
85998
85999         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86000
86001 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86002
86003         * modules/strsep: New file.
86004
86005 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86006
86007         * m4/strsep.m4: New file.
86008
86009 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86010
86011         * lib/strsep.h: New file.
86012         * lib/strsep.c: New file.
86013
86014 2004-10-01  Simon Josefsson  <jas@extundo.com>
86015
86016         * lib/snprintf.c (snprintf): Handle size==0.
86017
86018 2004-10-01  Simon Josefsson  <jas@extundo.com>
86019             Bruno Haible  <bruno@clisp.org>
86020
86021         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86022         (snprintf): Declare 'args'.
86023
86024 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86025
86026         * lib/snprintf.c: Remove comments as to why each header is needed.
86027
86028 2004-10-01  Bruno Haible  <bruno@clisp.org>
86029
86030         * MODULES.html.sh: Add strsep.
86031
86032 2004-09-30  Simon Josefsson  <jas@extundo.com>
86033
86034         * modules/snprintf: New file.
86035
86036 2004-09-30  Simon Josefsson  <jas@extundo.com>
86037
86038         * m4/snprintf.m4: New file.
86039
86040 2004-09-30  Simon Josefsson  <jas@extundo.com>
86041
86042         * lib/snprintf.h, lib/snprintf.c: New files.
86043
86044 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86045
86046         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86047         (hol_entry_help): Never translate an empty string.
86048         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86049         * lib/argp.h (OPTION_NO_TRANS): New option.
86050
86051 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86052
86053         * modules/argp (Maintainer): Replace Simon Josefsson
86054         by Sergey Poznyakoff.
86055
86056 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86057
86058         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86059         changes merged back into glibc.
86060
86061 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86062
86063         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86064
86065 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86066
86067         * lib/xvasprintf.c: Include xalloc.h.
86068         (xvasprintf): Use xalloc_die, not xmalloc_die.
86069
86070 2004-09-29  Bruno Haible  <bruno@clisp.org>
86071
86072         * modules/alloca-opt: New file, derived from modules/alloca.
86073         * modules/allocsa: Depend on alloca-opt instead of alloca.
86074         * modules/setenv: Likewise.
86075         * modules/vasnprintf: Likewise.
86076         * MODULES.html.sh: Add alloca-opt.
86077
86078 2004-09-28  Simon Josefsson  <jas@extundo.com>
86079
86080         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86081         LGPL, and to replace license template from GPL to LGPL.
86082
86083 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86084
86085         * modules/dummy: Change license to LGPL.
86086
86087 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86088
86089         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86090
86091 2004-09-24  Simon Josefsson  <jas@extundo.com>
86092
86093         * modules/minmax (License): Change from GPL to LGPL.
86094
86095 2004-09-23  Simon Josefsson  <jas@extundo.com>
86096
86097         * gnulib-tool (--import): Typo.
86098
86099 2004-09-23  Simon Josefsson  <jas@extundo.com>
86100
86101         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86102
86103 2004-09-22  Bruno Haible  <bruno@clisp.org>
86104
86105         * modules/*: Add 'License' field.
86106         * gnulib-tool: Accept --extract-license option.
86107         (func_get_license): New function.
86108
86109 2004-09-21  Bruno Haible  <bruno@clisp.org>
86110
86111         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86112         Reported by Simon Josefsson.
86113
86114 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86115
86116         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86117         gl_AC_TYPE_LONG_LONG.
86118
86119 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86120
86121         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86122
86123 2004-09-18  Simon Josefsson  <jas@extundo.com>
86124         and  Paul Eggert  <eggert@cs.ucla.edu>
86125
86126         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86127         calls with autoreconf.  Define GL_LIB.
86128
86129 2004-09-14  Karl Berry  <karl@gnu.org>
86130
86131         * config/srclist.txt: unsync setenv.c, sigh.
86132
86133 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86134
86135         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86136         Problem reported by Bruno Haible in:
86137         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86138
86139 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86140
86141         * config/srclist.txt: Comment out argp-pvh.c.
86142
86143 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86144
86145         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86146         in case some system header has #define'd it.  Problem reported by
86147         Soeren D. Schulze in
86148         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86149
86150 2004-09-09  Karl Berry  <karl@gnu.org>
86151
86152         * regex.[ch]: delete from the root.  These were supposed to be
86153                 synced with emacs cvs, but this has not happened for about
86154                 a year, and anyway nothing else uses emacs regex.[ch].
86155                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86156                 lib/regex[.ch] is untouched.
86157
86158 2004-09-09  Bruno Haible  <bruno@clisp.org>
86159
86160         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86161
86162 2004-09-09  Bruno Haible  <bruno@clisp.org>
86163
86164         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86165         modifications.
86166         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86167
86168 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86169
86170         * modules/xvasprintf: New file.
86171         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86172
86173 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86174
86175         * lib/xvasprintf.h: New file.
86176         * lib/xvasprintf.c: New file.
86177         * lib/xasprintf.c: New file.
86178
86179 2004-09-08  Bruno Haible  <bruno@clisp.org>
86180
86181         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86182
86183 2004-09-08  Bruno Haible  <bruno@clisp.org>
86184
86185         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86186         length is > INT_MAX.
86187         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86188         more.
86189
86190 2004-09-08  Bruno Haible  <bruno@clisp.org>
86191
86192         * lib/stdint_.h: New file, taken from GNU clisp.
86193
86194 2004-09-08  Bruno Haible  <bruno@clisp.org>
86195             Oskar Liljeblad  <oskar@osk.mine.nu>
86196
86197         * modules/stdint: New file.
86198         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86199
86200 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86201
86202         Import from coreutils.
86203         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86204         strings on unbounded length.  alloca's performance benefits aren't
86205         that important here.
86206         (V_STRDUP): Remove.
86207         (parse_with_separator): New function, with most of the internals
86208         of the old parse_user_spec.  Allow user to omit both user and group,
86209         for compatibility with FreeBSD.
86210         Clone only the user name, not the entire spec.
86211         Do not set *uid, *gid unless entirely successful.
86212         Avoid memory leak in some failing cases.
86213         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86214         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86215         (parse_user_spec): Rewrite to use parse_with_separator.
86216
86217 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86218
86219         * modules/userspec: Don't depend on alloca.
86220
86221 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86222
86223         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86224
86225 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86226
86227         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86228         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86229         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86230
86231 2004-08-16  Simon Josefsson  <jas@extundo.com>
86232
86233         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86234         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86235         Add --dry-run for --import.
86236         Let user provided command line parameters override configure.ac
86237         settings.
86238
86239 2004-08-12  Simon Josefsson  <jas@extundo.com>
86240
86241         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86242         as discussed with Paul Eggert in threads rooted at
86243         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86244         and
86245         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86246         Before, the test was empty, and relied on ELIDE_CODE in source
86247         code.)
86248         (gl_PREREQ_GETOPT): New macro.
86249         (gl_GETOPT): Use them.
86250
86251 2004-08-12  Simon Josefsson  <jas@extundo.com>
86252
86253         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86254         * lib/getopt_.h: Renamed from getopt.h.
86255
86256 2004-08-12  Simon Josefsson  <jas@extundo.com>
86257
86258         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
86259         Change default library name from libfoo to libgnu.
86260         Now, if you have a configure.ac that says:
86261                 gl_SOURCE_BASE(gl)
86262                 gl_M4_BASE(gl/m4)
86263                 gl_MODULES(error getopt etcetera)
86264                 gl_INIT
86265         you can import all you need by running:
86266                 ../gnulib/gnulib-tool --import
86267
86268         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86269         (Makefile.am): Rewrite, use logic from argz.
86270         (Include): Use <getopt.h> instead of "getopt.h".
86271
86272 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86273
86274         * modules/argp (Files): Add m4/unlocked-io.m4.
86275         (Depends-on): Add extensions.
86276
86277 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86278
86279         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86280         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86281         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86282         Check for program_invocation_name, program_invocation_short_name,
86283         flockfile, funlockfile, features.h, _getopt_long_only_r.
86284
86285 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86286
86287         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86288         its complicated substitute.
86289         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86290         and program_invocation_name.
86291         (__argp_basename) [!_LIBC]: Remove; the only use was
86292         replaced by its body.
86293         (__argp_short_program_name): Change condition from
86294         !defined __argp_short_program_name to
86295         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86296         to match argp-namefrob.h.
86297         (__argp_failure): Don't assume strerror_r returns char *.
86298         * lib/argp-parse.c (N_): Define unconditionally.
86299         (argp_default_options): Fill out initializers with 0 to avoid
86300         gcc warnings.
86301
86302 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86303
86304         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86305         getopt1.c.
86306
86307 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86308
86309         Merge from coreutils.
86310
86311         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86312
86313         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86314         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86315
86316 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86317
86318         Merge from coreutils.
86319
86320         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86321         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86322         for Reliant Unix 5.43.
86323
86324         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86325         (union fooround): Use uintmax_t, not long int.
86326         The rest is a merge from libc:
86327         [defined _LIBC]: Include <shlib-compat.h>.
86328         (_obstack) [defined _LIBC]: Remove after 2.3.4.
86329
86330         * lib/settime.c (settime): Recode to avoid warning with
86331         Sun Forte C 6U2.
86332
86333         * lib/strverscmp.c: Convert to UTF-8.
86334
86335 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86336
86337         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86338         m4/uintmax_t.m4.
86339
86340 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86341
86342         * modules/xalloc-die: New file.
86343         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
86344
86345         * modules/md5 (Files): Add m4/uint32_t.m4.
86346         * modules/sha1: Renamed from modules/sha.
86347         (Files):
86348         Rename lib/sha.h to lib/sha1.h.
86349         Rename lib/sha.c to lib/sha1.c.
86350         Rename m4/sha.m4 to m4/sha1.m4.
86351         (lib_SOURCES): Likewise.
86352         (configure.ac): Rename gl_SHA to gl_SHA1.
86353         (Include): sha.h -> sha1.h.
86354
86355 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86356
86357         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
86358         * m4/sha1.m4: Renamed from sha.m4.
86359         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
86360
86361 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86362
86363         * lib/obstack.h (obstack_empty_p):
86364         Don't assume that chunk->contents is suitably aligned.
86365         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
86366         Likewise. Problem reported by Benno in
86367         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
86368
86369         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
86370         readable.  This could be improved further but it'd take some work.
86371
86372 2004-08-08  Simon Josefsson  <jas@extundo.com>
86373
86374         * modules/xgethostname (Depends-on): Remove exit and error (not
86375         used).
86376
86377         * modules/getpass-gnu: Add getpass.h.
86378         (Depends-on): Add stdbool.
86379         * modules/getpass: Add getpass.h.
86380
86381 2004-08-08  Simon Josefsson  <jas@extundo.com>
86382
86383         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
86384         Check getpass declaration.
86385
86386 2004-08-08  Simon Josefsson  <jas@extundo.com>
86387
86388         * lib/xgethostname.c: Don't include error.h (not used).
86389
86390         * lib/getpass.h: Add.
86391         * lib/getpass.c: Include getpass.h first.
86392
86393 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86394
86395         * lib/xalloc-die.c: New file.
86396         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86397         All uses removed.
86398         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86399         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86400         xalloc-die.c.
86401         (_, N_, xalloc_die): Move to xalloc-die.c.
86402         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86403         so that we needn't mess with xalloc_msg_memory_exhausted.
86404
86405         * lib/sha1.h: Renamed from sha.h.
86406         (SHA1_H): Renamed from _SHA_H.
86407         (sha1_ctx): Renamed from sha_ctx.
86408         (sha1_init_ctx): Renamed from sha_init_ctx.
86409         (sha1_process_block): Renamed from sha_process_block.
86410         (sha1_process_bytes): Renamed from sha_process_bytes.
86411         (sha1_finish_ctx): Renamed from sha_finish_ctx.
86412         (sha1_read_ctx): Renamed from sha_read_ctx.
86413         (sha1_stream): Renamed from sha_stream.
86414         (sha1_buffer): Renamed from sha_buffer.
86415         * lib/sha1.c: Likewise; renamed from sha.c.
86416         Do not include <sys/types.h>.
86417         Include <stddef.h> rather than <stdlib.h>.
86418
86419 2004-08-08  Bruno Haible  <bruno@clisp.org>
86420
86421         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
86422         FILESYSTEM_PREFIX_LEN.
86423         * lib/progreloc.c: Likewise.
86424         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
86425
86426 2004-08-06  Simon Josefsson  <jas@extundo.com>
86427
86428         * modules/progname (Depends-on): Don't depend on stdbool.
86429
86430 2004-08-06  Simon Josefsson  <jas@extundo.com>
86431
86432         * modules/getsubopt: New file.
86433         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86434         getsubopt.
86435
86436 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86437
86438         More merge from coreutils.
86439
86440         * m4/utimens.m4, m4/utimecmp.m4: New files.
86441         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
86442         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
86443         prereq.m4, sha.m4: Import changes from coreutils.
86444
86445 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86446
86447         More merge from coreutils.
86448         * modules/raise, modules/readtokens0, modules/utimens:
86449         * modules/utimecmp, module/xnanosleep: New files.
86450         * modules/strftime: Add lib/strftime.h.
86451         Change include from <time.h> to "strftime.h".
86452         * modules/yesno: Add lib/yesno.h.
86453         * modules/backupfile: Remove lib/addext.c.
86454         * modules/euidaccess: Add stat-macros.h.
86455         * modules/canonicalize, modules/euidaccess,
86456         modules/filemode, modules/lchown, modules/makepath,
86457         modules/rmdir, modules/stat: Likewise.
86458
86459 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86460
86461         Merge from tar.
86462         * lib/argp-help.c (make_hol, hol_append): Don't assume that
86463         SIZE_MAX is a valid preprocessor constant.
86464         (__argp_basename): Change from "#ifndef _LIBC"
86465         to "#ifndef __argp_short_program_name", so that
86466         we don't compile these functions for tar.
86467
86468         More merges from coreutils.
86469         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
86470         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
86471         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
86472         * lib/addext.c: Remove; no longer needed.
86473         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
86474         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
86475         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
86476         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
86477         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
86478         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
86479         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
86480         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
86481         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86482         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86483         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86484         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86485         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86486         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86487         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86488         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86489         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86490         Import changes from coreutils.
86491
86492 2004-08-05  Simon Josefsson  <jas@extundo.com>
86493
86494         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86495
86496 2004-08-05  Simon Josefsson  <jas@extundo.com>
86497
86498         * m4/getsubopt.m4: New file.
86499
86500 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86501
86502         Merge from coreutils.
86503
86504         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86505         * m4/getcwd-path-max.m4: New files.
86506
86507         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86508         FILESYSTEM_PREFIX_LEN ->
86509         FILE_SYSTEM_PREFIX_LEN.
86510         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86511         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86512         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86513         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86514
86515         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86516         prerequisite modules now handle the DOS stuff.
86517         Don't check for unistd.h.
86518
86519 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86520
86521         Merge from coreutils.
86522
86523         * lib/.gdb-history: Remove; this doesn't belong here.
86524
86525         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86526         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86527         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86528         * lib/getcwd.c: New files.
86529
86530         * lib/dirname.h: Include <stdbool.h>.
86531         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86532         for consistency with POSIX terminology.  All uses changed.
86533         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86534         (strip_trailing_slashes): Use bool for booleans.
86535         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86536
86537         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86538         sometimes returns a positive errno value even when it succeeds.
86539         (print_errno_message) [!LIBC]: Fall back on strerror if
86540         __strerror_r fails.
86541
86542         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86543         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86544         (longest_relative_suffix): New function.
86545         (path_concat): Use it.  Assume first argument is not NULL.
86546         Port to DOS.  Omit redundant separators.
86547         Report an error instead of returning NULL.
86548         Use mempcpy instead of memcpy.
86549         (xpath_concat): Remove: not declared or used.
86550
86551         * lib/same.h: Include <stdbool.h>
86552         (same_name): Return bool, not int.
86553         * lib/same.c (same_name): Likewise.
86554         (errno): Don't declare; we assume C89 or better now.
86555
86556         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86557         if not already defined.
86558
86559         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86560         * lib/dup-safer.c (errno): Likewise.
86561
86562 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86563
86564         Merge from coreutils.
86565         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86566         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86567         * modules/path-concat: Don't depend on strdup.
86568
86569 2004-08-03  Simon Josefsson  <jas@extundo.com>
86570
86571         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86572         * lib/progname.h: Don't include stdbool.h.
86573
86574 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86575
86576         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86577         * MODULES.html.sh (func_all_modules): Remove fatal.
86578
86579 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86580
86581         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86582
86583 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86584
86585         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86586         working.
86587
86588 2004-08-02  Simon Josefsson  <jas@extundo.com>
86589
86590         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86591         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86592         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86593
86594 2004-08-01  Simon Josefsson  <jas@extundo.com>
86595
86596         * lib/xgetdomainname.c: Include stdlib.h, for free().
86597
86598 2004-07-19  Bruno Haible  <bruno@clisp.org>
86599
86600         * MODULES.html.sh (func_all_modules): Add dummy.
86601
86602 2004-07-16  Simon Josefsson  <jas@extundo.com>
86603
86604         * modules/dummy: New file.
86605
86606 2004-07-16  Simon Josefsson  <jas@extundo.com>
86607
86608         * lib/dummy.c: New file.
86609
86610 2004-07-16  Bruno Haible  <bruno@clisp.org>
86611
86612         * lib/backupfile.h: Add extern "C" for C++.
86613         * lib/closeout.h: Likewise.
86614         * lib/copy-file.h: Likewise.
86615         * lib/findprog.h: Likewise.
86616         * lib/full-write.h: Likewise.
86617         * lib/pathname.h: Likewise.
86618         * lib/progname.h: Likewise.
86619         * lib/stpcpy.h: Likewise.
86620         * lib/stpncpy.h: Likewise.
86621         * lib/strcase.h: Likewise.
86622         * lib/strstr.h: Likewise.
86623         * lib/xalloc.h: Likewise.
86624
86625         * lib/mbswidth.h: Add extern "C" for C++.
86626         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86627
86628 2004-07-13  Robert Millan  <robertmh@gnu.org>
86629
86630         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86631
86632 2004-07-09  Simon Josefsson  <jas@extundo.com>
86633
86634         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86635         failed without this.)
86636
86637 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86638
86639         * modules/chown (Files): Add lib/fchown-stub.c, since
86640         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86641
86642 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86643
86644         * lib/fchown-stub.c: New file.
86645
86646 2004-06-24  Jim Meyering  <jim@meyering.net>
86647
86648         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86649
86650 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86651
86652         * modules/argz: Omit "#include".
86653
86654         * MODULES.html.sh (func_all_modules): Add calloc, to match
86655         2004-06-01 addition of calloc module.
86656
86657 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86658
86659         * m4/argz.m4: New file, which is autoupdated from libtool.
86660
86661 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86662
86663         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86664         libtool.
86665
86666 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86667
86668         * config/srclist-update: Don't insist on "USA." before the
86669         close-comment, as libtool omits the period and puts the */ on a
86670         separate line.
86671         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86672         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86673
86674 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86675
86676         * modules/argz: New file.
86677         * MODULES.html.sh (func_all_modules): Add argz.
86678
86679 2004-06-12  Jim Meyering  <jim@meyering.net>
86680         and  Paul Eggert  <eggert@cs.ucla.edu>
86681
86682         * modules/hash (Files): Add lib/xalloc.h.
86683         * modules/pipe (Depends-on): Add wait-process.
86684         * modules/stat (Depends-on): Add xalloc.
86685         * modules/userspec (Files): Add lib/userspec.h.
86686         * modules/xstrto
86687
86688         Upgrade from gettext-0.13.
86689         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86690         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86691         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86692
86693 2004-06-10  Jim Meyering  <jim@meyering.net>
86694
86695         * lib/calloc.c: New file.
86696
86697 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86698
86699         * lib/getdate.y (yylex): Allow space between sign and number.
86700         Problem reported by Dan Jacobson.
86701
86702 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86703
86704         Merge from coreutils CVS.
86705
86706         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86707         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86708         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86709         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86710         xstrtol.m4: Fix copyright date and/or serial number.
86711
86712         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86713         See if we need an fchown replacement.
86714         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86715         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86716         and use the replacement function if we detect either defect.
86717
86718         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86719         gl_UTIMECMP.
86720
86721 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86722         and  Jim Meyering  <jim@meyering.net>
86723
86724         Merge from coreutils CVS.
86725
86726         * lib/stat-macros.h: New file, with contents from file-type.h
86727         and coreutils' system.h.
86728         * lib/file-type.c: Include "stat-macros.h".
86729         * lib/file-type.h (file_type): Move all macro definitions to new file,
86730         stat-macros.h.
86731
86732         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86733         Wrap old code with this conditional.
86734         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86735         function that does not dereference symlinks.
86736         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86737
86738         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86739         dependency problems.
86740         (xreadlink): Accept new arg SIZE, for efficiency.
86741         All decls and uses changed.
86742         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86743
86744         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86745         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86746
86747         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86748         sysexits.h.
86749
86750 2004-06-01  Jim Meyering  <jim@meyering.net>
86751
86752         * m4/calloc.m4: New file.
86753
86754 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86755
86756         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86757         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86758         Also, fix a typo in a diagnostic.
86759
86760 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86761
86762         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86763         or AC_FUNC_REALLOC.
86764
86765 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86766
86767         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86768         macros to be defined.
86769         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86770         the allocator returns NULL because the requested size is zero.
86771
86772 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86773
86774         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86775         var.  Add comment explaining why libc still defines it.  This
86776         merges the following patch from glibc:
86777         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86778
86779 2004-05-20  Andreas Schwab  <schwab@suse.de>
86780
86781         * m4/free.m4: Replace free if it not known to work, not the other
86782         way round.
86783
86784 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86785
86786         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86787         present in glibc since revision 1.1 of this file.
86788         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86789         obstack_alignment_mask, obstack_alloc, obstack_base,
86790         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86791         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86792         obstack_grow0, obstack_init, obstack_int_grow,
86793         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86794         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86795         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86796         nonexistent functions.
86797
86798 2004-05-18  Karl Berry  <karl@gnu.org>
86799
86800         * config/srclist.txt: break link for vasnprintf.c.
86801
86802 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86803
86804         Port obstack to the AS/400, where pointers are 16 bytes wide and
86805         you cannot cast an integer to a valid pointer.  This patch is
86806         currently waiting to be integrated into glibc; see
86807         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86808
86809         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86810         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86811         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86812         (struct obstack): temp member is now a union of a pointer and
86813         an integer, instead of an integer.  All integer uses changed.
86814         This does not affect the physical layout of struct obstack,
86815         except on hosts (like the AS/400) where the size or alignment of
86816         void * is greater than that of ptrdiff_t.
86817         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86818         __STDC__)]: Store temporary in pointer member of union, not
86819         integer member.
86820         * lib/obstack.c: Include <stddef.h>, for offsetof.
86821         (struct fooalign): Remove; it doesn't need a name.
86822         (union fooround): Change double to long double, and add void *.
86823         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86824         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86825         not a macro.  Hence the values are always int; so remove all
86826         casts-to-int in uses.
86827
86828 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86829
86830         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86831         we can get this patch merged into glibc.
86832
86833 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86834             Paul Eggert  <eggert@cs.ucla.edu>
86835
86836         * m4/argp: Depend on alloca.
86837
86838 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86839             Paul Eggert  <eggert@cs.ucla.edu>
86840
86841         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86842         freecoding.
86843
86844 2004-05-17  Bruno Haible  <bruno@clisp.org>
86845
86846         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86847         precision that consists of a '.' followed by an empty digit string.
86848         Patch by Tor Lillqvist <tml@iki.fi>.
86849
86850 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86851
86852         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86853         for backward compatibility with older code.  We need our own
86854         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86855         it under some other name, and our alloca.h will define it.
86856
86857 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86858             Derek Price  <derek@ximbiot.com>
86859
86860         * lib/alloca.c: Include <alloca.h>, to get our interface.
86861         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86862         include <alloca.h> first.  Use C89 prototype for alloca; this
86863         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86864         Use #elif for simplicity, since we can assume C89 now.
86865         Don't try to source the system alloca.h since it will not be found
86866         and to prevent recursively including its replacement.
86867         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86868         * lib/regex.c: Likewise.
86869
86870 2004-05-16  Derek Price  <derek@ximbiot.com>
86871             Paul Eggert  <eggert@cs.ucla.edu>
86872
86873         getline cleanup.  This changes the getndelim2 API: both order of
86874         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86875         no delimiter).
86876
86877         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86878         interface does that.
86879         (getline): Always use getdelim, so that we don't have two
86880         copies of this code.
86881         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86882         if available.
86883         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86884         (GETNDELIM2_MAXIMUM): New macro.
86885         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86886         instead of the old practice of delim2==0.  All callers changed.
86887         Return -1 on overflow, instead of returning junk.
86888         Do not set *linesize unless allocation succeeds.
86889         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86890         that we include sys/types.h.
86891         * lib/getnline.h: Likewise.
86892         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86893         (getndelim2): Reorder arguments.
86894         * lib/getnline.c (getnline, getndelim):
86895         Don't discard the NMAX argument.
86896         (getnline): Invoke getndelim, to avoid code duplication.
86897         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86898         of (size_t) -1 by callers of the getnline family.
86899
86900 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86901
86902         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86903         Check for gettimeofday.
86904         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86905         Check for settimeofday, stime.
86906
86907 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86908
86909         * lib/nanosleep.c (suspended): Change its type from int to
86910         sig_atomic_t volatile.
86911         (first_call): Make it private to rpl_nanosleep, and have it
86912         be zero initially as that's a bit faster.
86913         (my_usleep): Round up fractional times instead of truncating them,
86914         as this is the usual meaning for 'sleep'.
86915
86916         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86917         doesn't work.
86918         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86919         (ENOSYS): Define if not defined.
86920         (settime): Fall back on stime if it exists and settimeofday fails.
86921         But don't bother with fallbacks if a method fails with errno == EPERM.
86922
86923 2004-05-11  Jim Meyering  <jim@meyering.net>
86924
86925         Prior to this change, the save_cwd caller required read access to the
86926         current directory on most systems (ones with the fchdir function).
86927
86928         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86929         fails, try write-only, and finally, resort to using xgetcwd.
86930
86931 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86932
86933         * lib/obstack.c, obstack.h: Import changes from libc.
86934
86935 2004-04-28  Bruno Haible  <bruno@clisp.org>
86936
86937         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86938         also implicitly appends .exe to executables.
86939         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86940         accepts Windows pathnames.
86941         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86942         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86943         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86944         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86945         Reported by Derek Robert Price <derek@ximbiot.com>.
86946
86947 2004-04-21  Karl Berry  <karl@gnu.org>
86948
86949         * config/srclist.txt (localcharset.c): break sync.
86950
86951 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86952
86953         * m4/host-os.m4: Add a copyright notice.
86954
86955 2004-04-20  Jim Meyering  <jim@meyering.net>
86956
86957         Change UTILS_ to gl_ in AC_DEFINE'd names.
86958         Change utils_- and jm_-prefixed variables, too.
86959         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86960         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86961         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86962
86963         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86964         Don't emit trailing blanks.
86965         Also rename jm_-prefixed variables to have gl_ prefix.
86966
86967         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86968         Also rename jm_-prefixed variables to have gl_ prefix.
86969
86970         * m4/jm-macros.m4: Reflect the renamings.
86971         * m4/prereq.m4: Likewise.
86972
86973 2004-04-20  Jim Meyering  <jim@meyering.net>
86974
86975         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86976         memory.
86977
86978 2004-04-20  Jim Meyering  <jim@meyering.net>
86979             Bruno Haible  <bruno@clisp.org>
86980
86981         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86982         memory when realloc fails.
86983
86984 2004-04-19  Jim Meyering  <jim@meyering.net>
86985
86986         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86987         now that readutmp.c may call `free (0)'.
86988
86989 2004-04-19  Bruno Haible  <bruno@clisp.org>
86990
86991         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86992         * m4/inttypes_h.m4: Likewise.
86993         * m4/stdint_h.m4: Likewise.
86994         * m4/intmax_t.m4: Likewise.
86995         * m4/uintmax_t.m4: Likewise.
86996
86997 2004-04-18  Jim Meyering  <jim@meyering.net>
86998
86999         * m4/prereq.m4: Don't forbid jm_ prefix.
87000
87001         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87002         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87003         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87004         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87005         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87006         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87007         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87008         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87009         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87010         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87011         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87012         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87013         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87014         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87015         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87016         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87017         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87018         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87019         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87020
87021 2004-04-18  Jim Meyering  <jim@meyering.net>
87022
87023         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87024         failure, don't leak memory and do call END_UTMP_ENT.
87025
87026 2004-04-16  Jim Meyering  <jim@meyering.net>
87027
87028         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87029         coreutils' stat program.
87030         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87031
87032 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87033
87034         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87035         C89.
87036         (CHAR_BIT): Remove, since we assume C89.
87037         Include <stdint.h> if available, as per current Autoconf CVS advice.
87038
87039 2004-03-31  Jim Meyering  <jim@meyering.net>
87040
87041         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87042         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87043         * m4/xalloc.m4: Likewise.
87044
87045 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87046
87047         Merge from coreutils.
87048
87049         * m4/inttostr.m4: New file.
87050         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87051         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87052         Require gl_CLOCK_TIME.
87053         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87054
87055 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87056
87057         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87058         not bool, to be more consistent with Unix conventions.
87059         Suggested by Bruno Haible.
87060
87061         Merge from coreutils.
87062
87063         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87064         * lib/umaxtostr.c: New files.
87065
87066         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87067         the usual <time.h> dance.
87068         (get_date): Change signature to support fractional time stamps.
87069         All callers changed.
87070         * lib/getdate.y: Include "getdate.h" first, as we can now
87071         assume C89 and don't need to worry about 'const'.
87072         Similarly, include "unlocked-io.h" near start, not in middle.
87073         Include <limits.h>.
87074         (textint.value): Use long int rather than int.
87075         (textint.digits): Use size_t rather than int.
87076         (BILLION, LOG10_BILLION): New constants.
87077         (parser_control): New member rel_ns.  Members day_ordinal,
87078         time_zone, month, day, hour, minutes, rel_year, rel_month,
87079         rel_day, rel_hour, rel_minutes, rel_seconds
87080         are now long int, not int.  Member seconds is now struct timespec,
87081         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87082         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87083         not int.
87084         (%union.intval): Now long int, not int.
87085         New member timespec.
87086         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87087         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87088         (spec): Now is a timespec or an item list.
87089         (timespec, items): New nonterminals.
87090         (time, rel, relunit, number, get_date):
87091         Add support for fractional seconds.
87092         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87093         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87094         (to_hour): First arg is now long int, not int.
87095         (to_year): Returns long int, not int.
87096         Don't treat year -70 like 70.
87097         (tm_diff): Returns long int, not int.
87098         (lookup_word): Use bool instead of int when appropriate.
87099         (yylex): Use size_t for count, not int.
87100         Detect overflow when parsing large integer constants.
87101         Add support for fractions.
87102         (get_date): Make pointers 'const' if possible.
87103         Use more-portable code to detect integer overflow.
87104         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87105         Don't use ctime; it's not reliable if the year has >4 digits.
87106
87107         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87108         This is for compatibility with BSD.
87109
87110         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87111         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87112         From coreutils' system.h.
87113
87114         * lib/userspec.c: Don't include "posixver.h".
87115         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87116         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87117         compatible extension.  Simplify code by removing a boolean int
87118         that was always nonzero if a string was nonnull.
87119
87120 2004-03-30  Jim Meyering  <jim@meyering.net>
87121
87122         Merge from coreutils.
87123
87124         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87125         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87126         on some systems one must include <grp.h> before it.
87127         Reported by Christian Krackowizer.
87128
87129 2004-03-30  Jim Meyering  <jim@meyering.net>
87130
87131         Merge from coreutils.
87132
87133         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87134
87135         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87136         an empty input stream.
87137
87138         * lib/readtokens.c: Include <stdbool.h>.
87139         (readtoken): Use `size_t' rather than int/long.
87140         All callers adjusted.
87141         Use `bool' rather than `int' where appropriate.
87142         Use memset rather than an explicit loop.
87143         Use x2nrealloc rather than xrealloc.
87144         Allow the use of `\0' as a delimiter.
87145         (readtokens): Likewise.
87146         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87147
87148 2004-03-30  Jim Meyering  <jim@meyering.net>
87149
87150         * m4/realloc.m4: Remove file, since now it does no more than
87151         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87152         the `configure.ac' section of module/realloc.
87153         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87154
87155 2004-03-30  Bruno Haible  <bruno@clisp.org>
87156
87157         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87158         nonnull.
87159
87160 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87161
87162         Merge changes to getloadavg.c from coreutils and Emacs.
87163
87164         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87165         Define to an expression, not to the empty string.
87166         Include cloexec.h and xalloc.h.
87167         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87168         Use set_cloexec_flag rather than rolling our own.
87169         * lib/cloexec.c, lib/cloexec.h: New files.
87170
87171 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87172
87173         * m4/cloexec.m4: New file.
87174
87175 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87176
87177         * lib/getopt.h: Sync with libc CVS.
87178
87179 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87180             Bruno Haible  <bruno@clisp.org>
87181
87182         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87183         mbswidth.
87184
87185 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87186             Bruno Haible  <bruno@clisp.org>
87187
87188         * lib/mbswidth.h: Include <wchar.h> only if
87189         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87190         <wchar.h>.
87191         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87192
87193 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87194
87195         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87196         Sync with libc CVS.
87197         * lib/getopt_int.h: New file, also synced from libc.
87198
87199 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87200
87201         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87202         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87203         Bring back getopt.c, getopt.h, getopt1.c.
87204
87205 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87206
87207         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87208         All uses changed.  Check for sa_sigaction member; this fixes
87209         a bug first reported by Jason Andrade in
87210         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87211
87212 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87213
87214         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87215         '#if' expressions.  Unlike the code it replaces, it does not
87216         depend on (defined _SC_PAGESIZE).  However, it does depend on
87217         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87218         first reported by Jason Andrade in
87219         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87220
87221 2004-02-25  Simon Josefsson  <jas@extundo.com>
87222
87223         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87224
87225 2004-02-25  Simon Josefsson  <jas@extundo.com>
87226
87227         * lib/strdup.h: New file.
87228         * lib/strdup.c: Include it.
87229         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87230         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87231
87232 2004-02-23  Karl Berry  <karl@gnu.org>
87233
87234         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87235         (from fencepost.gnu.org:/gd/gnuorg).
87236
87237 2004-02-23  Karl Berry  <karl@gnu.org>
87238
87239         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87240         * config/srclist.txt: add maintain/standards documents.
87241
87242 2004-02-18  Bruno Haible  <bruno@clisp.org>
87243
87244         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87245         Reported by Derek Robert Price <derek@ximbiot.com>.
87246
87247 2004-02-16  Karl Berry  <karl@gnu.org>
87248
87249         * config/mkinstalldirs, install-sh: update from automake.
87250
87251 2004-02-06  Karl Berry  <karl@gnu.org>
87252
87253         * m4/po.m4: update from gettext 0.14.1.
87254
87255 2004-02-06  Karl Berry  <karl@gnu.org>
87256
87257         * lib/config.charset: update from gettext 0.14.1.
87258
87259 2004-02-05  Paul Eggert  <eggert@twinsun.com>
87260
87261         Add comments and code, prompted by suggestions from Bruno Haible
87262         for sh-quote.
87263         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
87264         describing the enum quoting_style values.
87265         * lib/quotearg.c (quotearg_alloc): New function.
87266         (quotearg_buffer_restyled): Treat lone { and } as special.
87267         Treat = as special.  Work around bug with older shells
87268         that "see" a '\' that is really the 2nd byte of a multibyte char.
87269         Quote empty string with shell_quoting_style.
87270
87271 2004-02-03  Bruno Haible  <bruno@clisp.org>
87272
87273         * m4/pipe.m4: New file, from GNU gettext.
87274
87275 2004-02-03  Bruno Haible  <bruno@clisp.org>
87276
87277         * lib/pipe.h: New file, from GNU gettext.
87278         * lib/pipe.c: New file, from GNU gettext.
87279
87280 2004-01-27  Bruno Haible  <bruno@clisp.org>
87281
87282         * m4/execute.m4: New file, from GNU gettext.
87283
87284 2004-01-27  Bruno Haible  <bruno@clisp.org>
87285
87286         * lib/execute.h: New file, from GNU gettext.
87287         * lib/execute.c: New file, from GNU gettext.
87288         * lib/w32spawn.h: New file, from GNU gettext.
87289
87290 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87291
87292         Merge from diffutils.
87293
87294         * lib/file-type.c (file_type): Add typed memory objects.
87295         * lib/file-type.h (S_TYPEISTMO): New macro.
87296
87297         * lib/c-stack.h (c_stack_action): Remove argv argument.
87298         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87299         (die): Don't calculate message unless segv_action returns.
87300         (get_stack_location, min_address_from_argv, max_address_from_argv,
87301         volatile stack_base, volatile_stack_size): Remove.
87302         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87303         that every segmentation violation is a stack overflow.  (Ouch!)
87304         See Debian bug 136249 (still outstanding) for more info about why
87305         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87306
87307 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87308
87309         Exit-status fix from coreutils.
87310
87311         Use exit_failure consistently in place of EXIT_FAILURE,
87312         so that program exit statuses are consistent on failure.
87313
87314         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87315         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87316         * lib/argmatch.h: Comment fix to match the above.
87317         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87318         Now a macro referring to exit_failure, instead of a separate
87319         variable.  Include "exitfail.h" to get it.
87320         * lib/xstrtol.h: Include "exitfail.h".
87321         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87322
87323         * lib/long-options.c (parse_long_options): Use prototype
87324         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87325         for clarity.
87326
87327 2004-01-21  Jim Meyering  <jim@meyering.net>
87328
87329         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
87330         so as not to conflict with a different-sized __mktime_internal
87331         function in GNU libc.
87332         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
87333         Problem building statically-linked `ls' reported by Michael Brunnbauer.
87334
87335 2004-01-20  Karl Berry  <karl@gnu.org>
87336
87337         * config/config.guess: update from config.
87338
87339         * config/srclistvars.sh: GNUWWWLICENSES for karl.
87340
87341 2004-01-20  Bruno Haible  <bruno@clisp.org>
87342
87343         Safer stack allocation.
87344         * lib/setenv.c: Include allocsa.h.
87345         (alloca): Remove fallback definition.
87346         (freea): Remove macro.
87347         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
87348         instead of freea.
87349
87350 2004-01-20  Bruno Haible  <bruno@clisp.org>
87351
87352         * m4/eealloc.m4: New file, from GNU gettext.
87353
87354 2004-01-20  Bruno Haible  <bruno@clisp.org>
87355
87356         * m4/allocsa.m4: New file, from GNU gettext.
87357
87358 2004-01-20  Bruno Haible  <bruno@clisp.org>
87359
87360         * lib/xallocsa.h: New file, from GNU gettext.
87361         * lib/xallocsa.c: New file, from GNU gettext.
87362
87363 2004-01-20  Bruno Haible  <bruno@clisp.org>
87364
87365         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
87366
87367 2004-01-20  Bruno Haible  <bruno@clisp.org>
87368
87369         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
87370         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
87371         specially.
87372
87373 2004-01-20  Bruno Haible  <bruno@clisp.org>
87374
87375         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
87376         patch.
87377
87378 2004-01-20  Bruno Haible  <bruno@clisp.org>
87379
87380         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
87381
87382 2004-01-20  Bruno Haible  <bruno@clisp.org>
87383
87384         * lib/eealloc.h: New file.
87385
87386 2004-01-20  Bruno Haible  <bruno@clisp.org>
87387
87388         * lib/binary-io.h: Avoid warnings on Cygwin.
87389
87390 2004-01-20  Bruno Haible  <bruno@clisp.org>
87391
87392         * lib/allocsa.h: New file, from GNU gettext.
87393         * lib/allocsa.c: New file, from GNU gettext.
87394
87395 2004-01-18  Karl Berry  <karl@gnu.org>
87396
87397         * doc/gpl.texi, doc/lgpl.texi: new files.
87398
87399 2004-01-18  Karl Berry  <karl@gnu.org>
87400
87401         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87402         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87403
87404 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87405
87406         Merge from coreutils.
87407
87408         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
87409         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
87410         (gl_DEFAULT_POSIX2_VERSION): Move
87411         the documentation from 'configure' into 'config.hin',
87412         so that 'configure --help' isn't burdened by it and
87413         we don't have to worry about its formatting there.
87414         Reword the documentation so that it's more succinct
87415         and can be run together into a single paragraph.
87416         * m4/same.m4 (gl_SAME): Check for pathconf.
87417
87418 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87419
87420         Merge from coreutils.
87421
87422         * lib/posixver.c: Include posixver.h.
87423
87424         * lib/same.c: Include <stdbool.h>, <limits.h>.
87425         (_POSIX_NAME_MAX): Define if not defined.
87426         (MIN): New macro.
87427         (same_name): If file names are silently truncated, report
87428         that the file names are the same if they are the same after
87429         the silent truncation.
87430
87431         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87432         conversion function.
87433         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87434         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87435         longer needed.
87436
87437 2004-01-15  Jim Meyering  <jim@meyering.net>
87438
87439         Merge from coreutils.
87440
87441         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
87442         if no library is required.
87443         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
87444         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
87445         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
87446         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
87447         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
87448         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
87449         value, $ac_cv_search_crypt, if it's "none required".
87450         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
87451         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
87452         not gl_FUNC_GETLOADAVG.
87453         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
87454         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
87455
87456 2004-01-15  Jim Meyering  <jim@meyering.net>
87457
87458         Merge from coreutils.
87459
87460         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
87461         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
87462         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
87463
87464         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
87465         optional configure-time default.
87466
87467         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87468
87469         * lib/xreadlink.c (xreadlink): Correct outdated comment.
87470
87471 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
87472
87473         Merge from coreutils.
87474
87475         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
87476         value, $ac_cv_search_nanosleep, if it's "none required".
87477
87478 2004-01-14  Paul Eggert  <eggert@twinsun.com>
87479
87480         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
87481         with like-named macro in fnmatch.c.
87482         (EXT): Use an internal constant instead.
87483
87484         Merge fnmatch patches from glibc.
87485         * lib/fnmatch.c (mbsinit): Remove define.
87486         Add libc_hidden_ver (__fnmatch, fnmatch).
87487         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87488         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87489
87490 2004-01-14  Karl Berry  <karl@gnu.org>
87491
87492         * config/install-sh: update from automake.
87493
87494 2004-01-13  Karl Berry  <karl@gnu.org>
87495
87496         * config/install-sh: update from automake.
87497
87498 2004-01-09  Karl Berry  <karl@gnu.org>
87499
87500         * config/install-sh: update from automake.
87501
87502 2004-01-05  Karl Berry  <karl@gnu.org>
87503
87504         * config/config.{sub,guess}: update from config.
87505
87506 2003-12-31  Karl Berry  <karl@gnu.org>
87507
87508         * config/depcomp: update from automake.
87509
87510 2003-12-14  Karl Berry  <karl@gnu.org>
87511
87512         * lib/config.charset: update from gettext-runtime.
87513
87514 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87515
87516         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87517         Bug reported by Alfred M. Szmidt.
87518
87519 2003-12-03  Bruno Haible  <bruno@clisp.org>
87520
87521         * m4/gettext.m4: Upgrade from gettext-0.13.
87522         * m4/po.m4: Upgrade from gettext-0.13.
87523         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87524         * m4/intmax.m4: New file, from gettext-0.13.
87525         * m4/printf-posix.m4: New file, from gettext-0.13.
87526
87527 2003-11-29  Karl Berry  <karl@gnu.org>
87528
87529         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87530
87531 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87532             Bruno Haible  <bruno@clisp.org>
87533
87534         * lib/printf-parse.h: Don't include sys/types.h.
87535         (ARG_NONE): New macro.
87536         (char_directive): Change type of *arg_index fields to size_t.
87537         * lib/printf-parse.c: Don't include sys/types.h.
87538         (SSIZE_MAX): Remove macro.
87539         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87540         Remove unnecessary overflow check.
87541         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87542         fields.
87543
87544 2003-11-25  Bruno Haible  <bruno@clisp.org>
87545
87546         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87547
87548 2003-11-25  Bruno Haible  <bruno@clisp.org>
87549
87550         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87551         gt_TYPE_SSIZE_T.
87552
87553 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87554
87555         * modules/alloca: Remove dependency on xalloc.
87556
87557 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87558
87559         * lib/alloca.c: Remove dependency on xalloc module.
87560         (xalloc_die): Remove.
87561         (memory_full) [!defined emacs]: New macro.
87562         [!defined emacs]: Don't include xalloc.h.
87563         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87564         address arithmetic overflows.  Change datatypes a bit to avoid
87565         unnecessary casts.
87566
87567 2003-11-22  Jim Meyering  <jim@meyering.net>
87568
87569         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87570         s/size/size_t/.
87571
87572 2003-11-21  Karl Berry  <karl@gnu.org>
87573
87574         * config/config.{sub,guess}: update from config.
87575
87576 2003-11-18  Karl Berry  <karl@gnu.org>
87577
87578         * config/config.{sub,guess}: update from config.
87579
87580         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87581
87582 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87583
87584         * README: Mention that S+T cannot overflow if S is the size of
87585         an existing object and T is sufficiently small.
87586
87587 2003-11-17  Jim Meyering  <jim@meyering.net>
87588
87589         On systems without utime and without a utimes function capable of
87590         dealing with a NULL struct utimbuf* argument, this utime replacement
87591         could -- in unusual circumstances -- leak a file descriptor.
87592         * lib/utime.c: Include <unistd.h> and <errno.h>.
87593         (utime_null): Be sure to close `fd' and to preserve errno.
87594         Reported by Geoff Collyer via Arnold Robbins.
87595
87596 2003-11-17  Bruno Haible  <bruno@clisp.org>
87597
87598         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87599         (Depends-on): Add xsize.
87600
87601 2003-11-17  Bruno Haible  <bruno@clisp.org>
87602
87603         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87604
87605 2003-11-17  Bruno Haible  <bruno@clisp.org>
87606
87607         * lib/vasnprintf.c (alloca): Remove fallback definition.
87608         (freea): Remove definition.
87609         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87610         Reported by Paul Eggert.
87611
87612 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87613             Bruno Haible  <bruno@clisp.org>
87614
87615         Protect against address arithmetic overflow.
87616         * lib/printf-args.h: Include stddef.h.
87617         (arguments): Change type of field 'count' to size_t.
87618         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87619         'unsigned int' where appropriate.
87620         * lib/printf-parse.h: Include sys/types.h.
87621         (char_directive): Change type of *arg_index fields to ssize_t.
87622         (char_directives): Change type of fields 'count', max_*_length to
87623         size_t.
87624         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87625         (SSIZE_MAX): Define fallback value.
87626         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87627         instead of 'int' where appropriate. Check a_allocated, d_allocated
87628         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87629         * lib/vasnprintf.c: Include xsize.h.
87630         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87631         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87632         overflow. Avoid wraparound when converting a width or precision from
87633         decimal to binary.
87634
87635 2003-11-16  Bruno Haible  <bruno@clisp.org>
87636
87637         Update from GNU gettext.
87638         * lib/printf-parse.c: Generalize to it can be compiled for wide
87639         strings.
87640         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87641         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87642         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87643         SNPRINTF): New macros.
87644         Don't include <alloca.h> if the file is used inside libintl.
87645         (local_wcslen): New function, for Solaris 2.5.1.
87646         (VASNPRINTF): Use it instead of wcslen.
87647
87648 2003-11-16  Bruno Haible  <bruno@clisp.org>
87649
87650         * lib/xsize.h (xmax): New function.
87651         (xsum, xsum3, xsum4): Declare as "pure" functions.
87652
87653 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87654
87655         * modules/xalloc (Files): Undo latest change, since xalloc.h
87656         no longer needs SIZE_MAX or PTRDIFF_MAX.
87657
87658 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87659
87660         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87661         gl_PTRDIFF_MAX.
87662
87663 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87664
87665         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87666         "return", to pacify some unknown compiler.  Problem reported
87667         by Joerg Schilling.
87668
87669 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87670
87671         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87672         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87673         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87674         heuristic is just as accurate as far as we know, and it removes a
87675         dependency on size_max.m4 and ptrdiff_max.m4.
87676
87677 2003-11-11  Bruno Haible  <bruno@clisp.org>
87678
87679         * modules/xsize (Files): Add m4/size_max.m4.
87680         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87681
87682 2003-11-11  Bruno Haible  <bruno@clisp.org>
87683
87684         * m4/size_max.m4: New file.
87685         * m4/ptrdiff_max.m4: New file.
87686         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87687         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87688         (gl_XALLOC): Invoke it.
87689
87690 2003-11-11  Bruno Haible  <bruno@clisp.org>
87691
87692         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87693         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87694         defined.
87695
87696 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87697
87698         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87699         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87700         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87701         From Bruno Haible.
87702         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87703         not (size_t) -1, since it's defined here.
87704
87705 2003-11-09  Karl Berry  <karl@gnu.org>
87706
87707         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87708
87709 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87710
87711         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87712         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87713         Reject sizes of exactly SIZE_MAX bytes.
87714         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87715         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87716
87717 2003-11-05  Bruno Haible  <bruno@clisp.org>
87718
87719         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87720         SIZE_MAX defined in <limits.h> on Solaris.
87721
87722 2003-11-04  Jim Meyering  <jim@meyering.net>
87723
87724         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87725         variable names, rather than @VAR@.
87726         * modules/poll: Likewise.
87727
87728 2003-11-04  Bruno Haible  <bruno@clisp.org>
87729
87730         * modules/xsize: New file.
87731         * modules/linebreak: Depend on xsize.
87732         * MODULES.html.sh (func_all_modules): Add xsize.
87733
87734 2003-11-04  Bruno Haible  <bruno@clisp.org>
87735
87736         * m4/xsize.m4: New file.
87737
87738 2003-11-04  Bruno Haible  <bruno@clisp.org>
87739
87740         * lib/xsize.h: New file.
87741         * lib/linebreak.c: Include xsize.h.
87742         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87743         argument for overflow.
87744         Suggested by Paul Eggert.
87745
87746 2003-11-03  Karl Berry  <karl@gnu.org>
87747
87748         * config/config.{guess,sub}: update from config.
87749
87750 2003-11-03  Jim Meyering  <jim@meyering.net>
87751
87752         * modules/userspec (lib_SOURCES): Add userspec.h.
87753         (Include): Add "userspec.h".
87754         Improve description.
87755
87756 2003-11-03  Jim Meyering  <jim@meyering.net>
87757
87758         * lib/userspec.c: Include "userspec.h".
87759         * lib/userspec.h: New file.
87760
87761 2003-11-03  Bruno Haible  <bruno@clisp.org>
87762
87763         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87764
87765 2003-11-03  Bruno Haible  <bruno@clisp.org>
87766
87767         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87768         available, to avoid (extremely rare) race condition.
87769         Suggested by Paul Eggert.
87770
87771 2003-11-02  Karl Berry  <karl@gnu.org>
87772
87773         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87774
87775 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87776
87777         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87778         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87779         (read_filesystem_list): Set and use me_type_malloced.
87780         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87781         whatever the type happens to be), for brevity and consistency.
87782         Check for size calculation overflow on Alphas running OSF/1.
87783
87784 2003-10-31  Jim Meyering  <jim@meyering.net>
87785
87786         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87787
87788         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87789
87790 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87791             Bruno Haible  <bruno@clisp.org>
87792
87793         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87794         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87795
87796 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87797
87798         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87799         netbsd*-gnu*.  Suggested by Robert Millan.
87800
87801 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87802
87803         * modules/group-member: Depend on stdbool.
87804
87805 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87806
87807         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87808
87809 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87810
87811         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87812         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87813         after the 'gnu' in these cases.  This fixes some bugs in the
87814         previous change, and is based on suggestions by Robert Millan.
87815
87816 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87817
87818         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87819         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87820         no longer needed.
87821         * lib/quotearg.c (quotearg_n_options): Use it.
87822         * lib/group-member.c: Include <stdbool.h>.
87823         (free_group_info): Arg is now const *; don't free arg.
87824         (get_group_info): Now returns bool and accepts struct group_info *,
87825         rather than returning a malloc'ed struct group_info *.
87826         All uses changed.  Check for overflow in internal size calculation.
87827
87828         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87829         rather than xmalloc/xrealloc.
87830         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87831         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87832         conformance bug: the old code used a pointer after freeing the
87833         storage that it addressed.
87834         * lib/hash.c (hash_initialize): Simplify the code by using
87835         xalloc_oversized rather than doing it by hand.
87836         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87837         the buffer preserved.  Use free and xmalloc instead.
87838         * lib/quotearg.c (quotearg_n_options): Likewise.
87839         Use a simpler test for size overflow.  Don't use xalloc_oversized
87840         because unsigned int might be wider than size_t (!); this suggests
87841         that we should switch from unsigned int to size_t for slot numbers.
87842
87843 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87844
87845         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87846         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87847         NetBSD kernels.  Requested by Richard Stallman.
87848
87849 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87850
87851         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87852         to allocate the returned structure.  Do not allocate a subarray,
87853         as x2nrealloc will do that.
87854         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87855         instead of xnrealloc.
87856         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87857
87858 2003-10-27  Bruno Haible  <bruno@clisp.org>
87859
87860         * lib/stdbool_.h: Better support for BeOS.
87861
87862 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87863
87864         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87865         now uses inline.
87866
87867 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87868
87869         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87870         callers that want to do their own size-overflow checking.  Include
87871         <stdbool.h>, since xalloc_oversized returns bool.
87872         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87873         to use xalloc_oversized.
87874
87875         Add two functions x2realloc, x2nrealloc, for programs that grow
87876         arrays dynamically by doubling their sizes.
87877         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87878         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87879         New functions.
87880
87881         Port to C99 semantics for 'inline' of external functions.
87882         Bug reported by Bruno Haible.
87883         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87884         with the old contents of xnmalloc.
87885         (xnmalloc, xmalloc): Use it.
87886         (xnrealloc_inline): New static inline function,
87887         with the old contents of xnrealloc.
87888         (xnrealloc, xrealloc): Use it.
87889
87890         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87891         that.
87892
87893 2003-10-26  Karl Berry  <karl@gnu.org>
87894
87895         * config/srclist.txt (COPYING.DOC): no longer available from
87896         /gd/gnuorg; don't know where the ultimate source is.
87897
87898 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87899
87900         Fix several address-calculation bugs in the hash modules,
87901         plus some minor code cleanup.
87902
87903         * lib/hash.h: Include <stdbool.h>, for bool.
87904         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87905         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87906         hash_get_n_entries, hash_get_max_bucket_length,
87907         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87908         hash_rehash): Use size_t rather than unsigned.
87909         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87910         hash_get_n_buckets_used, hash_get_n_entries,
87911         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87912         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87913         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87914         Likewise.
87915         (SIZE_MAX): Define if not defined.
87916         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87917         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87918         hash_print):
87919         Use const * when possible.
87920         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87921         (check_tuning): Fix bug: if tuning parameters were very close to
87922         0 or 1, rounding errors could have caused subscript violations.
87923         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87924         (hash_initialize): Add 'fail:' label
87925         to free table and return NULL, and use it to simplify code.
87926         Use calloc rather than clearing the storage ourself.
87927         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87928         buffer size calculations.
87929         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87930         Include <stddef.h>, for size_t.
87931         * lib/hash-pjw.c (hash_pjw): Likewise.
87932         Switch to method described by Bruno Haible.
87933         Include <limits.h>, for CHAR_BIT.
87934         (SIZE_BITS): New macro.
87935
87936 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87937
87938         * m4/getline.m4 (AM_FUNC_GETLINE):
87939         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87940         hosts.  Problem reported by Derek Robert Price in
87941         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87942         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87943         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87944
87945 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87946
87947         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87948         ceiling the allocation at NMAX bytes rather than silently
87949         discarding input bytes before NMAX is reached.  This makes
87950         a difference only if NMAX exceeds SIZE_MAX / 2.
87951
87952         * lib/obstack.c: Merge from glibc.
87953         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87954         Add libc_hidden_def (_obstack_newchunk).
87955         (_obstack_free) [! defined _LIBC]: Remove.
87956         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87957         a clone of the function body.
87958         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87959         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87960
87961         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87962         glibc.
87963         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87964         arg to memcpy.
87965
87966         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87967         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87968         Don't use lvalue casts, as GCC plans to remove support for them
87969         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87970         was also present in the non-GCC version, indicating that this
87971         code had always been buggy and had never been widely used.
87972         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87973         Use the fast variant of each macro, rather than copying the
87974         definiens of the fast variant; that way, we'll be more likely to
87975         catch future bugs in the fast variants.
87976
87977 2003-10-20  Bruno Haible  <bruno@clisp.org>
87978
87979         * modules/wait-process: New file.
87980         * MODULES.html.sh (func_all_modules): Add wait-process.
87981
87982 2003-10-20  Bruno Haible  <bruno@clisp.org>
87983
87984         * m4/wait-process.m4: New file.
87985
87986 2003-10-20  Bruno Haible  <bruno@clisp.org>
87987
87988         * lib/wait-process.h: New file, from GNU gettext.
87989         * lib/wait-process.c: New file, from GNU gettext.
87990
87991 2003-10-19  Jim Meyering  <jim@meyering.net>
87992
87993         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87994         HPUX 10.20.
87995
87996 2003-10-18  Karl Berry  <karl@gnu.org>
87997
87998         * config/config.guess: update from config.
87999
88000 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88001
88002         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88003         (getgroups): First arg is int, not size_t.
88004         Don't let 'free' mangle errno.
88005
88006 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88007
88008         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88009
88010 2003-10-16  Karl Berry  <karl@gnu.org>
88011
88012         * config/config.{guess,sub}: update from config.
88013
88014 2003-10-16  Jim Meyering  <jim@meyering.net>
88015
88016         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88017         memcpy.
88018
88019 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88020
88021         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88022         (SIZE_MAX): Remove.
88023         (new_exclude, add_exclude_file): Initial size no longer needs to
88024         be a power of 2.
88025         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88026         our own address arithmetic overflow checking.
88027
88028         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88029         (fnmatch): Do not alloca more than 2000 wide characters;
88030         instead, use malloc for large buffers.
88031         Check for address arithmetic overflow, and return -1
88032         with errno set to ENOMEM in that case.
88033         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88034         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88035         instead, return -1.  Check for address arithmetic overflow.
88036
88037 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88038
88039         Handle invalid suffixes and overflow independently, so that
88040         callers can treat them independently as needed.  Fix some bugs in
88041         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88042         suffix for a human-readable blocksize.  The major caller-visible
88043         change is the addition of a new
88044         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88045         that both overflow and suffix chars were found.
88046
88047         * lib/human.c (humblock): Don't check separately for invalid suffix
88048         char; that is xstrtoumax's job (now that its bug is fixed).
88049         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88050         INTMAX_MAX]: New macros.
88051         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88052         TYPE_MAXIMUM): New macros.
88053         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88054         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88055         if overflow occurs, as it's what __strtol does and it's more useful
88056         in practice.
88057         (__xstrtol): If __strtol reports some error other than ERANGE,
88058         reflect it to the caller as LONGINT_INVALID.  If it reports
88059         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88060         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88061         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88062         value.
88063         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88064         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88065         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88066         [defined UINTMAX_MAX]: New macros.
88067
88068 2003-10-14  Bruno Haible  <bruno@clisp.org>
88069
88070         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88071
88072 2003-10-14  Bruno Haible  <bruno@clisp.org>
88073
88074         * m4/sig_atomic_t: New file, from GNU gettext.
88075         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88076
88077 2003-10-14  Bruno Haible  <bruno@clisp.org>
88078
88079         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88080         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88081         Also use volatile where needed.
88082
88083 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88084
88085         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88086         Change maintainer from Bruno Haible to 'all'.
88087
88088 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88089
88090         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88091
88092 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88093
88094         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88095         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88096         and define in terms of the other primitives.
88097         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88098         (SIZE_MAX): Define if not already defined.
88099         (array_size_overflow): New function.
88100         (xalloc_die): Abort instead of exiting if 'error' returns.
88101         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88102         (xmalloc, xrealloc): Use them.
88103         (xcalloc): Check for address arithmetic overflow.
88104         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88105         a bit faster than strcpy.
88106
88107 2003-10-10  Simon Josefsson  <jas@extundo.com>
88108
88109         * modules/argp (Depends-on): Add restrict and strcase.
88110
88111 2003-10-10  Simon Josefsson  <jas@extundo.com>
88112
88113         * m4/argp.m4: Add AC_C_INLINE.
88114
88115 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88116
88117         Merge getpass from libc, plus a few fixes.
88118
88119         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88120         Include <stdbool.h>.
88121         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88122         __fsetlocking to empty.
88123         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88124         do include <bits/libc-lock.h>.
88125         Do not include <fcntl.h>; not needed.
88126         [_LIBC]: Include <wchar.h>.
88127         (NOTCANCEL_MODE): New macro.
88128         (flockfile, funlockfile) [_LIBC]: New macros.
88129         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88130         [!_LIBC]: New macros.
88131         (call_fclose): New function.
88132         (getpass): Use it.  Save tty stream separately; this simplifies the
88133         code and makes it more reliable if stdin happens to equal stdout.
88134         Invoke __fsetlocking on tty.
88135         Handle thread cancellation if needed.
88136         Namespace cleanup (use __tcgetattr, __getline).
88137         Use bool for Booleans.
88138         [USE_IN_LIBIO]: Handle wide streams.
88139         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88140         stream might go where.
88141
88142         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88143         doesn't have to include <stdio.h> before us.
88144         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88145         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88146         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88147         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88148         if not declared, so that we can use getpass.c code from libc without
88149         rewriting it.
88150         (flockfile, ftrylockfile, funlockfile): New macros.
88151
88152 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88153
88154         * modules/getpass: Depend on stdbool.
88155
88156 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88157
88158         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88159
88160 2003-10-07  Karl Berry  <karl@gnu.org>
88161
88162         * config/config.{guess,sub}: update from config.
88163
88164 2003-10-06  Jim Meyering  <jim@meyering.net>
88165             Bruno Haible  <bruno@clisp.org>
88166
88167         This lets translators provide better translations for the
88168         "Written by ..." part of --version output.
88169         * lib/version-etc.h: Include stdarg.h.
88170         (version_etc_copyright): Declare as readonly.
88171         (version_etc): Make this function variadic with a NULL-terminated list
88172         of author name strings.
88173         (version_etc_va): New declaration.
88174         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88175         (version_etc_copyright): Declare as readonly.
88176         (version_etc_va): New function. Provide a different translatable string
88177         for each possible number of authors < 10. Abbreviate when there are 10
88178         authors or more.
88179         (version_etc): Make this function variadic. Call version_etc_va.
88180         Suggestion from Gary V. Vaughan.
88181
88182         * lib/long-options.h (parse_long_options): Change prototype: the
88183         authors string is moved to the end and becomes variadic.
88184         * lib/long-options.c: Include stdarg.h.
88185         (parse_long_options): Make this function variadic, too.
88186         Call version_etc_va, not version_etc.
88187
88188 2003-10-06  Bruno Haible  <bruno@clisp.org>
88189
88190         * modules/version-etc-2: Remove file.
88191         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88192
88193 2003-10-06  Bruno Haible  <bruno@clisp.org>
88194
88195         * modules/fatal-signal: New file.
88196         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88197
88198 2003-10-06  Bruno Haible  <bruno@clisp.org>
88199
88200         * m4/fatal-signal.m4: New file.
88201         * m4/signalblocking.m4: New file, from GNU gettext.
88202
88203 2003-10-06  Bruno Haible  <bruno@clisp.org>
88204
88205         * lib/version-etc-2.h: Remove file.
88206         * lib/version-etc-2.c: Remove file.
88207
88208 2003-10-06  Bruno Haible  <bruno@clisp.org>
88209
88210         * lib/fatal-signal.h: New file, from GNU gettext.
88211         * lib/fatal-signal.c: New file, from GNU gettext.
88212
88213 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88214
88215         * README: Rework advice for preventing empty .o files.
88216         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88217         not <sys/types.h>.
88218
88219 2003-10-04  Karl Berry  <karl@gnu.org>
88220
88221         * lib/argp*: update from libc.
88222
88223 2003-10-04  Karl Berry  <karl@gnu.org>
88224
88225         * config/config.{guess,sub}: update from config.
88226
88227 2003-10-02  Bruno Haible  <bruno@clisp.org>
88228
88229         * modules/lchown (Include): Add lchown.h.
88230         * modules/time_r (Include): Use "..." syntax.
88231         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88232
88233 2003-10-01  Simon Josefsson  <jas@extundo.com>
88234
88235         * MODULES.html.sh (func_all_modules): Move gethostname from section
88236         'based on' to section 'lacking' POSIX:2001.
88237
88238 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88239
88240         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88241         to output mode on the same stream.
88242
88243 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88244
88245         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88246         Fix arg typo in previous patch.
88247
88248 2003-09-28  Jim Meyering  <jim@meyering.net>
88249
88250         * lib/error.c: Correct cpp indentation.
88251
88252 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88253
88254         * modules/free: New file.
88255
88256 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88257
88258         * m4/free.m4: New file.
88259
88260 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88261
88262         * lib/minmax.h (MIN, MAX)
88263         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
88264         Omit the special code that used __typeof__, since we worry that
88265         it could be more trouble than it's worth.  See:
88266         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88267         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88268
88269         * lib/free.c: New file.
88270
88271 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88272
88273         Trivial fixes to Makefile.am parts of module listings.
88274         * modules/strstr: Append strstr.h to lib_SOURCES.
88275         * modules/strcase: Likewise, for strcase.h.
88276
88277 2003-09-27  Karl Berry  <karl@gnu.org>
88278
88279         * config/mkinstalldirs: update from automake.
88280
88281 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88282
88283         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88284         (error_tail): Do not loop, reallocating temporary buffer, since
88285         the output cannot contain more wide characters than the input
88286         contains bytes, the size must be big enough already.  This avoids
88287         one potential size overflow calculation.  Check for size overflow
88288         when calculating temporary buffer size.  Free temporary buffer
88289         when done, if it was allocated with malloc; this plugs a memory
88290         leak.  Remove casts from void * to pointers, that are no longer
88291         needed now that we're assuming C89 or better.
88292
88293         Merge error changes from glibc.
88294
88295         * lib/error.c, error.h: Update copyright notice header to match glibc.
88296         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88297         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88298         Disable cancellation while printing error.
88299         * lib/error.h: Prepend __ to parameter names.
88300
88301 2003-09-26  Jim Meyering  <jim@meyering.net>
88302
88303         * lib/error.c (error_tail): Move some declarations
88304         into inner scope where the local variables are used.
88305
88306 2003-09-26  Bruno Haible  <bruno@clisp.org>
88307
88308         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88309         stpncpy().
88310         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88311
88312 2003-09-26  Bruno Haible  <bruno@clisp.org>
88313
88314         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88315         (stpncpy): Define as alias for gnu_stpncpy.
88316         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88317
88318 2003-09-25  Simon Josefsson  <jas@extundo.com>
88319
88320         * lib/xgetdomainname.h: New file.
88321         * lib/xgetdomainname.c: New file.
88322
88323 2003-09-25  Simon Josefsson  <jas@extundo.com>
88324             Bruno Haible  <bruno@clisp.org>
88325
88326         * modules/getdomainname: New file.
88327         * modules/xgetdomainname: New file.
88328         * MODULES.html.sh (func_all_modules): Add getdomainname,
88329         xgetdomainname.
88330
88331 2003-09-25  Simon Josefsson  <jas@extundo.com>
88332             Bruno Haible  <bruno@clisp.org>
88333
88334         * m4/getdomainname.m4: New file.
88335
88336 2003-09-25  Simon Josefsson  <jas@extundo.com>
88337             Bruno Haible  <bruno@clisp.org>
88338
88339         * lib/getdomainname.h: New file.
88340         * lib/getdomainname.c: New file.
88341
88342 2003-09-25  Karl Berry  <karl@gnu.org>
88343
88344         * lib/argp-fmtstream.c, argp-help.c: update from libc.
88345
88346 2003-09-25  Karl Berry  <karl@gnu.org>
88347
88348         * config/install-sh: update from automake.
88349
88350 2003-09-25  Bruno Haible  <bruno@clisp.org>
88351
88352         * modules/version-etc-2: New file, from modules/version-etc with
88353         modifications.
88354         * MODULES.html.sh (func_all_modules): Add version-etc-2.
88355
88356 2003-09-25  Bruno Haible  <bruno@clisp.org>
88357
88358         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
88359         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
88360
88361 2003-09-24  Simon Josefsson  <jas@extundo.com>
88362
88363         * modules/xgethostname: Add xgethostname.h.
88364
88365 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88366
88367         * lib/linebuffer.c (freebuffer): Don't free the argument, just
88368         the buffer associated with the argument.  Bug reported by
88369         Simon Josefsson.
88370
88371 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88372
88373         * README: Document assumptions that 'int' is at least 32 bits
88374         wide, that integer arithmetic is 2's complement without overflow,
88375         that there are no holes in integer values, that adding sizes of
88376         two nonoverlapping objects can't overflow, and that all-bits-zero
88377         yields scalar zero.  Fix spelling and capitalization typos.
88378
88379 2003-09-19  Karl Berry  <karl@gnu.org>
88380
88381         * lib/argp.h: update from libc.
88382
88383 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88384
88385         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88386         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88387         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88388
88389 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88390
88391         * gnulib-tool: Use "test -h", not "test -L", for portability
88392         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88393         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88394         (sed_extract_prog): Issue s commands one-by-one, rather than
88395         using \| in one s command.
88396
88397 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88398
88399         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88400         input error, instead of returning NULL the next time we are called
88401         (and therefore losing track of errno).
88402
88403 2003-09-16  Bruno Haible  <bruno@clisp.org>
88404
88405         * gnulib-tool (func_create_testdir): Warn about duplicated
88406         dependencies.
88407
88408 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88409
88410         * modules/argmatch, modules/fatal, modules/obstack,
88411         modules/xalloc, modules/xgethostname: Sort dependencies by
88412         importance, not alphabetically.
88413
88414 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88415
88416         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
88417         fails, so that the caller gets the proper errno.
88418
88419         * lib/readutmp.c (read_utmp): Likewise.
88420         Check for fstat error.  Close stream and free storage
88421         when failing.
88422
88423 2003-09-14  Karl Berry  <karl@gnu.org>
88424
88425         * config/srclist.txt (strdup.c): disable for c89 changes.
88426
88427 2003-09-14  Jim Meyering  <jim@meyering.net>
88428
88429         * lib/getloadavg.c: Correct cpp indentation.
88430         * lib/strdup.c: Likewise.
88431         * lib/vasnprintf.c: Likewise.
88432
88433 2003-09-14  Bruno Haible  <bruno@clisp.org>
88434
88435         * modules/fwriteerror: New file.
88436         * MODULES.html.sh (func_all_modules): Add fwriteerror.
88437
88438 2003-09-14  Bruno Haible  <bruno@clisp.org>
88439
88440         * lib/fwriteerror.h: New file.
88441         * lib/fwriteerror.c: New file.
88442
88443 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88444
88445         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
88446         modules/xgethostname, modules/xalloc: Depend on exit.
88447
88448 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88449
88450         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
88451
88452         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
88453         and AC_MINIX, too, so that their extensions are available.
88454
88455         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
88456         This macro has been superseded by gl_BACKUPFILE.
88457
88458         More patches to assume C89 or better.
88459
88460         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
88461
88462         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
88463         unconditionally.
88464         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
88465         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
88466         Include <string.h>, <stdlib.h> unconditionally.
88467         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
88468         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
88469         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
88470         headers or for string.h.
88471         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
88472         or strtoul.
88473
88474         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
88475         headers.
88476         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
88477         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88478         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
88479         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
88480         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88481         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88482         memcpy, memset.
88483         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88484         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88485         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88486         strtol.
88487         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88488         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88489         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88490         strtoul.
88491
88492 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88493
88494         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88495         * lib/obstack.c [!defined _LIBC]: Likewise.
88496         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88497         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88498         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88499
88500         More changes to assume C89 or better.
88501
88502         * lib/error.c (error_tail): Assume vprintf.
88503
88504         * lib/argmatch.c (getenv): Remove decl.
88505         * lib/progreloc.c (get_full_program_name): Define via prototype.
88506         * lib/setenv.c (clearenv): Likewise.
88507         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88508         needed.
88509         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88510         (malloc, memcpy): Remove decls.
88511         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88512         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88513         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88514         (memcpy): Remove macro.
88515         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88516         (__P): Remove.  All uses removed.
88517         (PTR): Remove.  All uses changed to void *.
88518         (CHAR_BIT, NULL): Remove.
88519         (spaces, zeros, memset_space, memset_zero)
88520         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88521         Remove.
88522         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88523         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88524         Define with prototype.
88525         Remove now-unnecessary prototype decl.
88526         (extra_args_spec): Assume ANSI C.  All uses changed.
88527         (extra_args_spec_iso): Remove.
88528         (my_strftime, emacs_strftimeu): Define via prototype.
88529         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88530         unconditionally.
88531         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88532         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88533         (strtoul, strtol): Remove decls.
88534         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88535         LONG_MAX): Remove.
88536         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88537         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88538         (LOCALE_PARAM_PROTO): New macro.
88539         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88540         (INTERNAL (strtol), strtol): Define with a prototype.
88541         (PARAMS): Remove.  All uses removed.
88542         * lib/tempname.c: Include <string.h> unconditionally.
88543         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88544         * lib/xgethostname.c (main): Define with a prototype.
88545         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88546         Include <stdlib.h> unconditionally.
88547         (calloc, malloc, realloc, free): Remove decls.
88548         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88549         Include <stdlib.h> unconditionally.  Sort include file names.
88550         (strtod): Remove.
88551         (xstrtod): Define with a prototype.
88552         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88553         (strtol, strtoul): Remove decls.
88554
88555 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88556
88557         More patches to assume C89 or better.
88558         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88559         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88560         string.h, memchr, STDC_HEADERS.
88561
88562 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88563
88564         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88565         Include <stdlib.h>, <string.h> unconditionally.
88566         Remove now-unnecessary cast to char *.
88567         * lib/strnlen.c: Include <string.h> unconditionally.
88568         * lib/yesno.c (yesno): Define with a prototype.
88569
88570 2003-09-11  Bruno Haible  <bruno@clisp.org>
88571
88572         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88573
88574 2003-09-10  Jim Meyering  <jim@meyering.net>
88575
88576         * lib/error.c: Correct indentation of cpp directives.
88577
88578 2003-09-10  Bruno Haible  <bruno@clisp.org>
88579
88580         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88581         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88582         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88583         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88584         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88585         <stdlib.h> and <string.h> checks.
88586         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88587         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88588
88589 2003-09-10  Bruno Haible  <bruno@clisp.org>
88590
88591         * lib/strcspn.c: Include <string.h> unconditionally.
88592         * lib/strpbrk.c: Include <string.h> unconditionally.
88593         * lib/strstr.c: Include <string.h> unconditionally.
88594         * lib/unicodeio.c: Include <string.h> unconditionally.
88595         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88596         * lib/unsetenv.c: Likewise.
88597         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88598         * lib/yesno.c: Include <stdlib.h> unconditionally.
88599         (rpmatch): Add prototype.
88600
88601 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88602
88603         More patches to assume C89 or better.
88604         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88605         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88606         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88607         or for string.h.
88608         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88609         stdlib.h.
88610         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88611         C headers.
88612         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88613         string.h.
88614         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88615         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88616         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88617         or for string.h.
88618         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88619         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88620         C headers.
88621         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88622         memcpy.
88623         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88624         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88625         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88626         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88627         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88628         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88629         string.h, free.
88630         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88631         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88632         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88633         C headers, or for string.h.
88634         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88635         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88636         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88637         headers, memory.h, stdlib.h, string.h, strings.h.
88638         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88639         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88640         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88641         strchr.
88642         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88643         headers, memory.h, string.h.
88644         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88645         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88646         free.
88647         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88648         headers.
88649         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88650         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88651         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88652         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88653         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88654
88655 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88656
88657         More K&R removal.
88658
88659         * lib/acosl.c (main): Use a prototype.
88660         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88661         tanl.c: Likewise.
88662
88663         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88664
88665         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88666         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88667         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88668         with a prototype.
88669         * lib/getopt.c (const): Remove macro.
88670         Include <string.h> unconditionally.
88671         (my_index): Remove; all uses changed to strchr.
88672         (strlen): Remove decl.
88673         (exchange): Remove forward decl; no longer needed.
88674         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88675         Define with prototype.
88676         * lib/getopt1.c (const): Remove macro.
88677         (getopt_long, getopt_long_only, main): Define with prototype.
88678
88679         * lib/getugroups.c: Include <string.h> unconditionally.
88680
88681         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88682         (getusershell, setusershell, endusershell, readname, main):
88683         Define with prototypes.
88684
88685         * lib/group-member.c: Include group-member.h first.
88686         Include <stdlib.h> unconditionally.
88687
88688         * lib/hard-locale.c: Include hard-locale.h first.
88689         Include <stdlib.h>, <string.h> unconditionally.
88690
88691         * lib/hash.c (free, malloc): Remove decls.
88692         Include <stdlib.h> unconditionally.
88693
88694         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88695         (getenv): Do not declare.
88696
88697         * lib/idcache.c: Include <string.h> unconditionally.
88698
88699         * lib/long-options.c: Include long-options.h first, to test interface.
88700         Include <stdlib.h> unconditionally.
88701
88702         * lib/makepath.c: Include makepath.h first, to test interface.
88703         Include <stdlib.h> and <string.h> unconditionally.
88704
88705         * lib/linebuffer.c: Include <stdlib.h>.
88706         (free): Remove decl.
88707
88708         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88709         stddef.h. rpl_malloc returns void *, not char *.
88710         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88711         prototype.
88712
88713         * lib/md5.h: Include <limits.h> unconditionally.
88714         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88715         (__P): Remove; all uses removed.
88716         * lib/md5.c: Include "md5.h" first.
88717         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88718         md5_buffer, md5_process_bytes, md5_process_block):
88719         Define with prototypes.
88720         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88721         * lib/sha.c: Include "sha.h" first.
88722         Include <stdlib.h>, <string.h> unconditionally.
88723
88724         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88725         * lib/memcmp.c (__ptr_t): Likewise.
88726         * lib/memrchr.c (__ptr_t): Likewise.
88727         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88728         Include <string.h> unconditionally.
88729         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88730         * lib/memchr.c: Include <stdlib.h> unconditionally.
88731         * lib/memchr.c (LONG_MAX): Remove.
88732         * lib/memrchr.c (LONG_MAX): Likewise.
88733         * lib/memchr.c (__memchr): Define via a prototype.
88734         * lib/memrchr.c (__memrchr): Likewise.
88735         * lib/memcmp.c (__P): Remove, and remove all uses.
88736         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88737         Remove forward decls; no longer needed.
88738         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88739         Use types required by C89 in prototype.
88740
88741         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88742         * lib/savedir.c: Likewise.
88743         * lib/mkdir.c (free): Remove decl.
88744         * lib/rmdir.c (rmdir): Define with a prototype.
88745         * lib/savedir.c: Include savedir.h first, to test interface.
88746
88747         * lib/mktime.c (STDC_HEADERS): Remove.
88748         Include <stdlib.h>, <string.h> unconditionally.
88749
88750         * lib/modechange.c: Include <stdlib.h> unconditionally.
88751         (malloc): Remove decl.
88752
88753         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88754         (free): Remove decl.
88755
88756         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88757         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88758         (This type really should be intptr_t, but that's a C99ism.)
88759         (_obstack_memcpy): Remove: all uses changed to memcpy.
88760         Include <string.h> unconditionally.
88761         (struct obstack): Assume __STDC__ for types of members
88762         chunkfun, freefun, extra_arg.
88763         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88764         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88765         obstack_begin, obstack_specify_allocation,
88766         obstack_specify_allocation_with_arg, obstack_chunkfun,
88767         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88768         Remove unprototyped decls and the macros that use them.
88769         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88770         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88771         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88772         (defined __STDC__ && __STDC__)]:
88773         Remove nonprototyped code.
88774         Include <stdlib.h> unconditionally.
88775         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88776         _obstack_allocated_p, _obstack_free, obstack_free,
88777         _obstack_memory_used, print_and_abort):
88778         Define using prototypes.
88779         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88780         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88781         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88782         obstack_next_free, obstack_object_size, obstack_room) [0]:
88783         Remove unused, unprototyped code.
88784
88785         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88786
88787         * lib/physmem.c (physmem_total, physmem_available, main): Define
88788         with prototypes.
88789
88790         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88791         (main): Define with a prototype.
88792
88793         * lib/posixver.c (getenv): Remove decl.
88794
88795         * lib/putenv.c (malloc): Returns void *, not char *.
88796         Include <string.h> unconditionally.
88797         (strchr, memcpy, NULL): Do not define.
88798
88799         * lib/readtokens.c: Include readtokens.h first, to test interface.
88800         Include <stdlib.h>, <string.h> unconditionally.
88801         (init_tokenbuffer): Define with a prototype.
88802
88803         * lib/regex.c (PARAMS): Remove.  All uses removed.
88804         All uses of _RE_ARGS removed, too.
88805         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88806         unconditionally.
88807         (bzero): Assume memset exists.
88808         (memcmp, memcpy, NULL): Remove.
88809         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88810         char, or assignments to local vars of type signed char.
88811         (init_syntax_once, PREFIX(extract_number_and_incr),
88812         PREFIX(print_partial_compiled_pattern),
88813         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88814         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88815         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88816         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88817         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88818         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88819         wcs_compile_range, byte_compile_range, truncate_wchar,
88820         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88821         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88822         count_mbs_length, wcs_re_match_2_internal,
88823         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88824         PREFIX(alt_match_null_string_p),
88825         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88826         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88827         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88828         now-unnecessary declaration, if any.
88829         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88830         regcomp, regexec):
88831         Remove now-unnecessary casts among pointer types.
88832         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88833
88834         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88835         (free): Remove decl.
88836
88837         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88838
88839         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88840         (free): Remove decl.
88841
88842         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88843         * lib/xgetcwd.c: Likewise.
88844
88845         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88846         (free): Remove decl.
88847
88848         * lib/strchrnul.c (strchrnul): Define with a prototype.
88849         Fix bug: c_in was not converted to char before searching.
88850
88851         The following changes are not K&R related:
88852
88853         * lib/group-member.h: Include <sys/types.h>, so that this file is
88854         self-contained.
88855         * lib/makepath.h: Likewise.
88856
88857         * lib/getusershell.c (readname, default_index, line_size, readname):
88858         Use size_t, not int, for sizes.
88859         (readname): If the size overflows, report an error instead of
88860         looping forever.
88861
88862 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88863
88864         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88865         libc.
88866
88867 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88868
88869         * README: New section: portability guidelines.
88870
88871 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88872
88873         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88874         C89 spec.
88875
88876 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88877
88878         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88879
88880 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88881
88882         Assume C89 or better; remove K&R cruft.
88883         A few of these changes were first proposed by Derek Robert Price
88884         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88885
88886         * lib/addext.c: Include <string.h> unconditionally.
88887         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88888         Don't declare getenv or malloc.
88889
88890         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88891         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88892         (NULL): Remove.
88893         (find_stack_direction, alloca): Use prototypes.
88894
88895         * lib/atexit.c (atexit): Define using a prototype.
88896
88897         * lib/basename.c, dirname.c, stripslash.c:
88898         Include <string.h> unconditionally.
88899
88900         * lib/bcopy.c: Include <stddef.h>.
88901         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88902
88903         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88904
88905         * lib/error.h (error, error_at_line, error_print_progname)
88906         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88907         * lib/error.c: Include error.h first, to check interface.
88908         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88909         (VA_START): Remove; all uses changeed to va_start.
88910         (exit, strerror): Remove decls.
88911         (error_print_progname): Prototype uncondionally.
88912         Don't include <errno.h>; no longer needed.
88913         (private_strerror): Remove.
88914         (error_tail): Always define.
88915         (error, error_at_line): Assume C89 or better; always use prototypes.
88916         * lib/fatal.c: Include "fatal.h" first, to test interface.
88917         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88918         (VA_START): Remove; all uses changed to va_start.
88919         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88920         this case.
88921         (exit): Remove decl.
88922         (fatal): Prototype unconditionally.  Assume va_start works.
88923         Abort at end, to pacify gcc.
88924
88925         * lib/euidaccess.c (main): Define with a prototype.
88926
88927         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88928
88929         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88930
88931         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88932         prototypes.
88933         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88934         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88935         (getenv): Remove decl.
88936         (fnmatch): Define using a prototype.
88937         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88938         (FCT): Define using a prototype.
88939
88940         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88941
88942         * lib/gethostname.c: Include <stddef.h>.
88943         (gethostname): Define with prototype.  Length is size_t, not int.
88944
88945 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88946
88947         Assume C89 or better; remove K&R cruft.
88948         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88949         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88950         string.h, getenv, malloc.
88951         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88952         headers.
88953         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88954         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88955         do not check for strerror.
88956         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88957         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88958         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88959         do not check for doprnt or vprintf.
88960         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88961         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88962
88963 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88964
88965         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88966         getversion.c should have been removed then, but was accidentally
88967         preserved.
88968
88969         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88970         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88971
88972 2003-09-08  Karl Berry  <karl@gnu.org>
88973
88974         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88975                 config, forget about prep.
88976
88977         * config/depcomp, missing: update from automake.
88978
88979 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88980
88981         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88982         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88983
88984 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88985
88986         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88987         copy_tm_result.  Bug reported by Simon Josefsson in
88988         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88989
88990 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88991
88992         * m4/time_r.m4: New file.
88993         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88994         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88995         is. Check for timegm declaration.
88996         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88997         Do not check for gmtime_r.
88998         Replace mktime if __mktime_internal does not exist and if mktime
88999         hasn't been replaced already.
89000
89001 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89002
89003         * lib/time_r.c, lib/time_r.h: New files.
89004
89005         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89006         __localtime_r.
89007         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89008         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89009
89010         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89011         __gmtime_r.
89012         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89013         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89014         Include <time_r.h>.
89015
89016         * lib/timegm.c: Switch to glibc implementation, with the following
89017         changes:
89018         [defined HAVE_CONFIG_H]: Include <config.h>.
89019         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89020         (__mktime_internal) [!defined _LIBC]: New decl.
89021         (__gmtime_r) [!defined _LIBC]: New macro and function.
89022         (timegm): Use a prototype, since gnulib assumes C89.
89023         Do not bother declaring tmp to be const, as it's not really usefu.
89024         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89025         (timegm): Declare only if HAVE_DECL_TIMEGM.
89026
89027 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89028
89029         * MODULES.html.sh (func_all_modules): Add time_r.
89030         * modules/time_r: New file.
89031         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89032         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89033
89034 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89035
89036         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89037         Bug reported by Lute Kamstra in
89038         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89039
89040         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89041         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89042         course with correspondingly smaller numbers for tomorrow and
89043         yesterday.  From Tadayoshi Funaba.  Originally installed into
89044         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89045         coreutils merge?).
89046
89047 2003-08-31  Simon Josefsson  <jas@extundo.com>
89048
89049         * modules/timegm: New file.
89050         * MODULES.html.sh (func_all_modules): Add timegm.
89051
89052 2003-08-31  Simon Josefsson  <jas@extundo.com>
89053
89054         * m4/timegm.m4: New file.
89055
89056 2003-08-31  Simon Josefsson  <jas@extundo.com>
89057
89058         * lib/timegm.h: New file.
89059         * lib/timegm.c: New file.  Based on
89060         wget-1.8.2/src/http.c:mktime_from_utc.
89061
89062 2003-08-31  Karl Berry  <karl@gnu.org>
89063
89064         * lib/argp.h: update from libc.
89065
89066 2003-08-28  Bruno Haible  <bruno@clisp.org>
89067
89068         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89069         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89070         followed by '#define fnmatch fnmatch_posix' gives an error.
89071
89072 2003-08-28  Bruno Haible  <bruno@clisp.org>
89073
89074         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89075         warning on QNX, which defines O_BINARY to 000000.
89076
89077 2003-08-27  Jim Meyering  <jim@meyering.net>
89078
89079         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89080         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89081         would fail after 32.  Reported by Danny Levinson.  Details here:
89082         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89083
89084 2003-08-24  Bruno Haible  <bruno@clisp.org>
89085
89086         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89087         MSVC7 <stdio.h> is included later.
89088
89089 2003-08-22  Simon Josefsson  <jas@extundo.com>
89090
89091         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89092
89093 2003-08-20  Karl Berry  <karl@gnu.org>
89094
89095         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89096
89097 2003-08-20  Bruno Haible  <bruno@clisp.org>
89098
89099         * modules/progname: New file.
89100         * MODULES.html.sh (func_all_modules): Add progname.
89101
89102 2003-08-20  Bruno Haible  <bruno@clisp.org>
89103
89104         * lib/progname.h: New file, from GNU gettext.
89105         * lib/progname.c: New file, from GNU gettext.
89106         * lib/progreloc.c: New file, from GNU gettext.
89107
89108 2003-08-19  Jim Meyering  <jim@meyering.net>
89109
89110         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89111         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89112
89113 2003-08-19  Bruno Haible  <bruno@clisp.org>
89114
89115         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89116         more.
89117
89118 2003-08-19  Bruno Haible  <bruno@clisp.org>
89119
89120         * lib/xstrdup.c: Assume <string.h> exists.
89121
89122 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89123
89124         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89125         in makefile rules.
89126
89127 2003-08-18  Jim Meyering  <jim@meyering.net>
89128
89129         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89130         * m4/lib-ld.m4: Likewise.
89131
89132 2003-08-18  Jim Meyering  <jim@meyering.net>
89133
89134         * lib/setenv.h: Indent nested cpp directive.
89135         * lib/vasnprintf.c: Remove trailing blanks.
89136
89137 2003-08-17  Simon Josefsson  <jas@extundo.com>
89138
89139         * modules/xstrndup: New file.
89140         * MODULES.html.sh (func_all_modules): Add xstrndup.
89141
89142 2003-08-17  Simon Josefsson  <jas@extundo.com>
89143
89144         * modules/argp: Fix autoconf macro name. Add more dependencies.
89145
89146 2003-08-17  Simon Josefsson  <jas@extundo.com>
89147
89148         * m4/xstrndup.m4: New file.
89149
89150 2003-08-17  Simon Josefsson  <jas@extundo.com>
89151
89152         * m4/argp.m4: New file.
89153
89154 2003-08-17  Simon Josefsson  <jas@extundo.com>
89155             Bruno Haible  <bruno@clisp.org>
89156
89157         * lib/xstrndup.h: New file.
89158         * lib/xstrndup.c: New file.
89159
89160 2003-08-17  Bruno Haible  <bruno@clisp.org>
89161
89162         * modules/strndup (Files, Include): Add lib/strndup.h.
89163
89164 2003-08-17  Bruno Haible  <bruno@clisp.org>
89165
89166         * modules/euidaccess (Files): Add lib/euidaccess.h.
89167
89168 2003-08-17  Bruno Haible  <bruno@clisp.org>
89169
89170         * lib/strndup.h: New file.
89171
89172 2003-08-17  Bruno Haible  <bruno@clisp.org>
89173
89174         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89175         like AC_GNU_SOURCE.
89176         * modules/extensions (configure.ac): Comment out the invocation of
89177         gl_USE_SYSTEM_EXTENSIONS.
89178
89179 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89180
89181         Merges from coreutils, etc.
89182         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89183         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89184         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89185         fixing a typo.
89186         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89187         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89188
89189 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89190
89191         Document merge from coreutils.
89192         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89193         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89194         * modules/utime: Add m4/utimes-null.m4.
89195
89196 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89197
89198         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89199         space, undoing this 2003-08-12 change:
89200         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89201
89202 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89203
89204         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89205         strtoul.c from libc, undoing this 2003-08-12 change:
89206         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89207
89208 2003-08-16  Jim Meyering  <jim@meyering.net>
89209
89210         Merges from coreutils.
89211         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89212         prefix.  Adjust cache variables similarly.  Create 500 rather than
89213         just 300 files, to exercise bug on Darwin6.5, too.
89214         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89215         $missing_dir.
89216         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89217         AM_SYS_POSIX_TERMIOS.
89218         Reported by mkc@mathdogs.com.
89219         Also change use of $am_cv_sys_posix_termios
89220         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89221         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89222         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89223         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89224         in /proc/mounts until it finds one with matching device number.  This
89225         is unnecessary when the FILE argument *is* a mount point.  No stat call
89226         is necessary in that case.  So, disable the statvfs-testing code on
89227         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89228         as RedHat bug# 84846.
89229         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89230         to 1MB, so as not to render systems with no stack size limit (e.g.,
89231         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89232         Include <unistd.h>.  On some systems,
89233         it is required for the definition of _SC_PAGESIZE.
89234
89235 2003-08-16  Jim Meyering  <jim@meyering.net>
89236
89237         Merge from coreutils.
89238         * lib/xstrtoimax.c: #else #if -> #elif.
89239         * lib/xstrtoumax.c: Likewise.
89240
89241 2003-08-16  Jim Meyering  <jim@meyering.net>
89242
89243         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89244         * m4/utimes.m4: Removed.
89245         * m4/utimes-null.m4: Renamed from utimes.m4.
89246
89247         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89248         to 1MB, so as not to render systems with no stack size limit (e.g.,
89249         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89250         Include <unistd.h>.  On some systems,
89251         it is required for the definition of _SC_PAGESIZE.
89252
89253 2003-08-16  Jim Meyering  <jim@meyering.net>
89254         and Paul Eggert  <eggert@cs.ucla.edu>
89255
89256         Merges from coreutils, etc.
89257
89258         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
89259         using the latest version from cvs.  This avoids problems with #line
89260         directives using a vendor (Sun) compiler.
89261         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
89262         Don't set GETGROUPS_LIB here; now it's
89263         done via getgroups.m4's wrapper function.
89264         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
89265         rather than just in sh-util/configure.in, so that the
89266         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89267         same.
89268         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89269         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89270         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89271         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89272         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89273         Remove code that is now done by the newly-required macros.
89274         Append $(EXEEXT) to DF_PROG.
89275         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89276         Do not invoke or require the following here,
89277         since prereq.m4 or some gnulib .m4 now does this for us:
89278         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89279         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89280         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89281         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89282         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89283         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89284         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89285         AC_FUNC_OBSTACK.
89286         Do not replace the following functions, as this is now the job
89287         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89288         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89289         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89290         atexit getpass, strdup, getpagesize.
89291         Replace 'raise'.
89292         Do not check for the following functions, as this is now the job
89293         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89294         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89295         setregid.
89296         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89297         Check for sys/sysctl.h.
89298         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89299         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89300         of checking for ssize_t ourselves.
89301
89302         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89303         Require every macro that gnulib/modules/* suggests for us.
89304         (jm_PREREQ_ADDEXT): New macro.
89305         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89306         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89307
89308         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89309         (gl_PHYSMEM): Use it.
89310         Also check for `table' function.
89311         Check for new headers and functions.
89312         Add check for sys/sysmp.h.
89313         With suggestions from Kaveh Ghazi.
89314         Ignore headers that are present but cannot be compiled.  This
89315         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89316         C 5.4.
89317
89318 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89319
89320         Document merge from coreutils.
89321         * modules/userspec: Depend on posixver.
89322         * modules/strftime: Depend on tzset.
89323
89324 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89325
89326         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89327         rather than tab, after '#' in shell-script copyright notices.
89328         Suggested by Bruno Haible.
89329
89330 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89331
89332         * config/srclist-update: Use three spaces, rather than tab, after '#'
89333         in shell-script copyright notices.  Suggested by Bruno Haible.
89334         Remove unnecessary parenthesization in regular expression.
89335
89336 2003-08-15  Jim Meyering  <jim@meyering.net>
89337
89338         Merge from coreutils.
89339         * lib/xgethostname.c: Include <stdlib.h>.
89340         (xghostname): Don't exit for anything other than memory-related
89341         failure; just return NULL.
89342         * lib/userspec.c: Include "posixver.h".
89343         (parse_user_spec): Accept `.' as a separator only
89344         in pre-POSIX-200112 mode.
89345         * lib/strtoimax.c: Use #elif rather than #else #if.
89346         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
89347         Remove function, now that we can rely on a working tzset function.
89348         [!_LIBC]: Ensure that the required autoconf test has been run.
89349         [!defined _NL_CURRENT && HAVE_STRFTIME]:
89350         Use underlying_strftime for %r.
89351         * lib/sha.c: Merge in some clean-up and optimization changes from
89352         glibc.
89353         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
89354         Ensure that it is a multiple of 64.
89355         Rearrange loop exit tests so as to avoid performing an
89356         additional fread after encountering an error or EOF.
89357         * lib/realloc.c: Update copyright date.
89358
89359 2003-08-15  Jim Meyering  <jim@meyering.net>
89360         and Paul Eggert  <eggert@twinsun.com>
89361
89362         Merge from coreutils.
89363         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
89364         member but strut utmpx does not.  Needed for AIX 4.3.3.
89365         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
89366
89367 2003-08-15  Jim Meyering  <jim@meyering.net>
89368         and Paul Eggert  <eggert@cs.ucla.edu>
89369
89370         Merges from coreutils, etc.
89371         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
89372         Require gl_FUNC_TZSET_CLOBBER.
89373         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
89374         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
89375         members.
89376
89377 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89378
89379         Help the merge from coreutils.
89380         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
89381         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
89382         * m4/tzset.m4: Use it too.
89383
89384 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89385
89386         * modules/tzset: New file.
89387
89388 2003-08-14  Jim Meyering  <jim@meyering.net>
89389
89390         Merges from coreutils.
89391         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89392         variable names, rather than @FNMATCH_H@.
89393         * modules/alloca: Likewise for $(ALLOCA_H).
89394
89395         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89396         the three copies of the literal target, `fnmatch.h'.
89397         * modules/alloca (alloca.h): Likewise.
89398
89399 2003-08-14  Jim Meyering  <jim@meyering.net>
89400
89401         Merge from coreutils.
89402         * m4/tzset.m4: New file.
89403         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89404         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89405         otherwise, AIX 5.1 systems would end up using the latter.
89406         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
89407         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
89408         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
89409         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
89410
89411 2003-08-14  Jim Meyering  <jim@meyering.net>
89412
89413         Merge from coreutils.
89414         * lib/obstack.h: Whitespace changes.
89415         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
89416         and xcalloc return values.
89417         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
89418         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
89419         hang on OSF/1 5.1 for DIR on both local and remote file systems.
89420         Reported by (and fix confirmed by) Nelson H. F. Beebe.
89421         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89422         error from mntctl.
89423         Use mntctl's return value to drive the entry-processing loop, since
89424         we can't rely on the value of the vmt_length member in the last
89425         entry.  On some systems doing so could result in exhausting
89426         virtual memory.  Based in part on a patch from Mike Jetzer.
89427
89428 2003-08-14  Jim Meyering  <jim@meyering.net>
89429         and Paul Eggert  <eggert@twinsun.com>
89430
89431         Merges from coreutils, plus other fixes.
89432         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89433         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89434         for credits and details.  Thanks to Kaveh Ghazi for helping
89435         to keep these files in sync.
89436         (ARRAY_SIZE): Define it.
89437         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
89438         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
89439         (memcasecmp): Don't assume size_t fits in unsigned int.
89440         Remove casts and duplicate code.
89441         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
89442         (memcpy): Remove definition.
89443         Merge in some clean-up and optimization changes from glibc.
89444         [BLOCKSIZE]: Move definition to top of file.
89445         Ensure that it is a multiple of 64.
89446         Rearrange loop exit tests so as to avoid performing an
89447         additional fread after encountering an error or EOF.
89448         * lib/md5.h (md5_uintptr): Define.
89449         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
89450         return to the initial working directory.  Preserve errno
89451         for caller.
89452         * lib/idcache.c: Include "xalloc.h".
89453         (xmalloc, xrealloc): Remove decls.
89454         (getuser): Remove casts no longer required in C89.
89455         * lib/human.c: Include stdio.h, for sprintf.
89456         * lib/group-member.c: Include "xalloc.h".
89457         (xmalloc, xrealloc): Remove decls.
89458         (get_group_info): Remove casts no longer required in C89.
89459         * lib/getusershell.c (readname): Remove casts no longer required in
89460         C89.
89461         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
89462         * lib/getline.c: Whitespace fix, from coreutils.
89463
89464 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89465
89466         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
89467         Check for isascii.
89468
89469         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89470         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89471         Undo previous (whitespace-only) change.
89472
89473 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89474
89475         * lib/exclude.c: Include <ctype.h>
89476         (IN_CTYPE_DOMAIN): New macro.
89477         (is_space): New fn.
89478         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
89479         and empty lines.
89480
89481         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89482         Undo previous (whitespace-only) change.
89483
89484 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89485
89486         * config/srclist-update: Change update back to the old behavior,
89487         leaving whitespace alone.  Use one 'sed' command rather than a
89488         pipeline.
89489         (fixlicense): Now a variable, not a function.
89490         (remove_trailing_blanks): Remove.
89491         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89492         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89493         Undo previous (whitespace-only) change.
89494
89495 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89496
89497         Merge from coreutils.
89498         * modules/euidaccess: Add lib_SOURCES, include for new
89499         file euidaccess.h
89500
89501 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89502
89503         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89504         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89505         Normalize leading white space and remove trailing white space.
89506
89507         Merge from coreutils
89508         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89509
89510         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89511         0.12.1.  These files are now being upgraded automatically by
89512         ../config/srclist-update.
89513
89514 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89515
89516         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89517         Normalize leading white space and remove trailing white space.
89518         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89519         notice, as per ../config/srclist-update.
89520
89521         Merge from coreutils.
89522         * lib/euidaccess.h: New file.
89523         * lib/euidaccess.c: Include it.
89524         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89525         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89526         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89527
89528 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89529
89530         * config/srclist-update: Add copyright notice.
89531         (remove_id_lines, remove_trailing_blanks): New constants.
89532         (fixfile): Use them to normalize spacing a bit in copied files.
89533         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89534         Normalize leading white space and remove trailing white space.
89535
89536         * config/texinfo.tex: Sync with texinfo.
89537
89538         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89539         strtoul.c from libc, to merge coreutils whitespace changes.
89540
89541         * config/srclist.txt: Get the following m4 files from gettext:
89542         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89543         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89544         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89545         wint_t.m4.
89546
89547 2003-08-12  Karl Berry  <karl@gnu.org>
89548
89549         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89550         been made.
89551
89552 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89553
89554         * modules/gnu-source, m4/gnu-source.m4:
89555         Remove; we're assuming Autoconf 2.54 or later now.
89556         Suggested by Bruno Haible.
89557         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89558
89559 2003-08-11  Bruno Haible  <bruno@clisp.org>
89560
89561         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89562
89563 2003-08-11  Bruno Haible  <bruno@clisp.org>
89564
89565         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89566         (vasnprintf): Use it instead of wcslen.
89567
89568 2003-08-11  Bruno Haible  <bruno@clisp.org>
89569
89570         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89571         value to ensure that _Bool promotes to int. Use #define for _Bool when
89572         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89573
89574 2003-08-10  Karl Berry  <karl@gnu.org>
89575
89576         * lib/regex.h: update from libc (whitespace fix).
89577
89578 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89579
89580         Merge some files from coreutils.  These changes were
89581         originally made by Jim Meyering.
89582         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89583         many older Unixes require this.
89584         * lib/alloca.c (alloca): Remove cast to argument of free;
89585         no longer needed in C89.
89586         * lib/alloca_.h, regex.h: Fix white space to match
89587         what GNU indent does.
89588
89589 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89590
89591         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89592         apparently Emacs's Unicode mode got confused before my 2003-08-05
89593         checkin.
89594
89595 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89596
89597         * m4/extensions.m4: New file.
89598         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89599         Require gl_USE_SYSTEM_EXTENSIONS.
89600         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89601         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89602
89603 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89604
89605         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89606         * modules/extensions, modules/gnu-source: New files.
89607         * modules/timespec, modules/unlocked-io: Depend on extensions.
89608
89609 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89610
89611         * modules/restrict: New file.
89612         * MODULES.html.sh (func_all_modules): Add restrict.
89613         * modules/regex: Depend on restrict.
89614
89615 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89616
89617         * m4/restrict.m4: New file.
89618         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89619
89620 2003-08-07  Bruno Haible  <bruno@clisp.org>
89621
89622         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89623         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89624
89625 2003-08-07  Bruno Haible  <bruno@clisp.org>
89626
89627         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89628         makes the module 'getndelim2' compatible with the module 'getline'.
89629
89630 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89631
89632         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89633         byte with "\201" to avoid glitches when editing that source file
89634         with multi-gnome-terminal.
89635
89636 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89637
89638         * lib/bumpalloc.h: Remove.
89639
89640 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89641
89642         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89643         * modules/bumpalloc: Remove.
89644
89645 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89646
89647         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89648         GNU coding style.
89649
89650         Merge from coreutils.
89651         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89652         1. From glibc.
89653         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89654         from Karl Berry, implemented by Jim Meyering.
89655         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89656         from Dmitry V. Levin.
89657         Remove anachronistic cast of xrealloc.
89658         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89659         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89660         type. Otherwise, it wouldn't compile with at least /bin/cc on
89661         ymp-cray-unicos9.0.2.X.
89662         Combine two mostly-identical uses of alloca into one.
89663         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89664
89665 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89666
89667         [From Emacs.]
89668
89669         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89670         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89671         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89672         obsolete NLIST_NAME_UNION.
89673         [__GNU__]: Undef BSD and FSCALE.
89674         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89675
89676 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89677
89678         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89679         an enum type, so that it's guaranteed to promote to int.  See:
89680         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89681
89682 2003-08-03  Karl Berry  <karl@gnu.org>
89683
89684         * config/depcomp: update from automake.
89685
89686 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89687
89688         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89689         (strerror): Don't assume that a printable int fits in 14 bytes.
89690
89691 2003-07-31  Bruno Haible  <bruno@clisp.org>
89692
89693         * modules/getpass-gnu: New file.
89694         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89695
89696 2003-07-31  Bruno Haible  <bruno@clisp.org>
89697
89698         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89699
89700 2003-07-24  Karl Berry  <karl@gnu.org>
89701
89702         * config/missing: update from automake.
89703
89704 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89705             Bruno Haible  <bruno@clisp.org>
89706
89707         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89708         * lib/getline.c (getline, getdelim): Likewise.
89709         Remove _GNU_SOURCE define; now it's defined in config.h through
89710         m4/getline.m4.
89711
89712 2003-07-23  Karl Berry  <karl@gnu.org>
89713
89714         * config/config.sub: update from prep.
89715
89716 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89717
89718         * modules/xalloc (Depends-on): Add exitfail.
89719         * modules/xmemcoll: Likewise.
89720
89721 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89722
89723         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89724         over-parenthesization in macros.
89725
89726         Sync with coreutils.
89727
89728         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89729         required by C99.
89730
89731         Use `exit_failure' for xalloc and xmemcoll instead of their own
89732         private exit-failure variables.
89733         * lib/xalloc.h (xalloc_exit_failure): Remove.
89734         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89735         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89736         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89737         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89738         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89739
89740 2003-07-20  Jim Meyering  <jim@meyering.net>
89741
89742         * modules/closeout (Depends-on): Add exitfail.
89743         Suggestion from Bruno Haible.
89744
89745 2003-07-19  Karl Berry  <karl@gnu.org>
89746
89747         * config/config.sub: update from prep.
89748
89749 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89750
89751         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89752         Remove.
89753         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89754         to test that it can stand by itself.  Include "exitfail.h".
89755         Clients should set exit_failure instead.
89756         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89757
89758 2003-07-18  Bruno Haible  <bruno@clisp.org>
89759
89760         * modules/getndelim2: New file.
89761         * modules/getline: Share files with module getndelim2.
89762         * modules/getnline: Depend on getndelim2 instead of sharing files with
89763         it. Add getnline.c to lib_SOURCES.
89764         * MODULES.html.sh (func_all_modules): Add getndelim2.
89765
89766 2003-07-18  Bruno Haible  <bruno@clisp.org>
89767
89768         * m4/getndelim2.m4: New file.
89769         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89770         invoke gl_PREREQ_GETNDELIM2.
89771         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89772         gl_PREREQ_GETNDELIM2.
89773         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89774         gl_GETNDELIM2.
89775
89776 2003-07-18  Bruno Haible  <bruno@clisp.org>
89777
89778         * lib/getndelim2.h: New file.
89779         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89780         getndelim2.h.
89781         (getndelim2): Make non-static. Change return type to ssize_t.
89782         * lib/getline.h: Change argument names.
89783         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89784         * lib/getnline.c: Include getndelim2.h.
89785
89786 2003-07-18  Andreas Schwab  <schwab@suse.de>
89787
89788         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89789
89790 2003-07-17  Karl Berry  <karl@gnu.org>
89791
89792         * config/config.sub: update from prep.
89793
89794 2003-07-17  Bruno Haible  <bruno@clisp.org>
89795
89796         * modules/getnline: New file.
89797         * modules/getline: Add lib/getndelim2.c to source file list.
89798         * MODULES.html.sh (func_all_modules): Add getnline.
89799
89800 2003-07-17  Bruno Haible  <bruno@clisp.org>
89801
89802         * m4/getnline.m4: New file.
89803
89804 2003-07-17  Bruno Haible  <bruno@clisp.org>
89805
89806         * m4/Makefile.am.in: Remove file.
89807         * m4/Makefile.am: Remove file.
89808         * m4/Makefile.in: Remove file.
89809
89810 2003-07-17  Bruno Haible  <bruno@clisp.org>
89811
89812         * lib/getnline.h: New file.
89813         * lib/getnline.c: New file.
89814         * lib/getndelim2.c: New file, extracted from getline.c.
89815         (getndelim2): Renamed from getdelim2, with added nmax argument.
89816         * lib/getline.c: Include getndelim2.c.
89817         (getdelim2): Moved out to getndelim2.c.
89818         (getline, getdelim): Update.
89819
89820 2003-07-17  Bruno Haible  <bruno@clisp.org>
89821
89822         * lib/Makefile.am: Remove file.
89823         * lib/Makefile.in: Remove file.
89824
89825 2003-07-17  Bruno Haible  <bruno@clisp.org>
89826
89827         * configure.in: Remove file.
89828         * Makefile.in: Remove file.
89829
89830 2003-07-17  Bruno Haible  <bruno@clisp.org>
89831
89832         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89833
89834 2003-07-16  Karl Berry  <karl@gnu.org>
89835
89836         * config/srclist-update: was running fixlicense twice, which caused
89837                 texinfo.tex to be nullified for some reason.  Simplify,
89838                 $gplsrc is no longer needed as far as I can see?
89839
89840 2003-07-16  Jim Meyering  <jim@meyering.net>
89841
89842         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89843
89844 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89845
89846         * config/srclist.txt: Get the following files from gettext-runtime/intl
89847         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89848         ref-del.sin.  From Bruno Haible.
89849         * config/srclist-update (fixfile): Change grep pattern again, since the
89850         previous fix didn't work (there was another trailing $).  Use
89851         '[$]' to escape the $s.
89852
89853 2003-07-15  Karl Berry  <karl@gnu.org>
89854
89855         * lib/vasnprintf.c: update from gettext.
89856
89857 2003-07-15  Karl Berry  <karl@gnu.org>
89858
89859         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89860         gets expanded when surrounded by '$'.
89861
89862 2003-07-15  Jim Meyering  <jim@meyering.net>
89863
89864         * modules/save-cwd: Don't depend on error.  From Derek Price.
89865
89866 2003-07-15  Jim Meyering  <jim@meyering.net>
89867
89868         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89869
89870 2003-07-14  Simon Josefsson  <jas@extundo.com>
89871
89872         * modules/mempcpy: New file.
89873         * MODULES.html.sh (func_all_modules): Add mempcpy.
89874
89875 2003-07-14  Simon Josefsson  <jas@extundo.com>
89876
89877         * m4/mempcpy.m4: New file.
89878
89879 2003-07-14  Simon Josefsson  <jas@extundo.com>
89880
89881         * lib/mempcpy.h: New file.
89882         * lib/mempcpy.c: New file.
89883
89884 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89885
89886         * modules/getdate, modules/posixtm: Depend on mktime.
89887
89888 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89889
89890         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89891         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89892         unicodeio.c, unicodeio.h, unlocked-io.h:
89893         Switch from LGPL to GPL.
89894
89895 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89896
89897         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89898         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89899         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89900         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89901         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89902         updated automatically by ../config/srclist-update.  This changes
89903         their license from LPGL to GPL.
89904
89905 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89906
89907         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89908         assumed to refer to the root of the most recent stable gettext version.
89909         * config/srclistvars.sh: Add defaults for eggert.
89910         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89911         Match "This program" as well as "The program".  This is needed
89912         for gettext.
89913
89914 2003-07-14  Jim Meyering  <jim@meyering.net>
89915
89916         Don't emit diagnostics.  Let callers do that.
89917         * lib/save-cwd.c: Don't include "error.h".
89918         (save_cwd): Don't call error.  Ensure that errno is valid
89919         when returning nonzero.
89920
89921         * lib/save-cwd.h (restore_cwd): Update prototype.
89922         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89923         Simplify.  Don't call error upon failure.  Let callers do that.
89924         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89925         when auditing is enabled.  But don't bother updating the #if.
89926
89927 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89928
89929         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89930         it breaks C++ compilation.
89931         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89932
89933 2003-07-10  Simon Josefsson  <jas@extundo.com>
89934
89935         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89936
89937 2003-07-10  Jim Meyering  <jim@meyering.net>
89938
89939         * m4/clock_time.m4: Remove trailing blank.
89940         * m4/intmax_t.m4: Likewise.
89941
89942 2003-07-10  Jim Meyering  <jim@meyering.net>
89943
89944         * lib/vasnprintf.c: Remove trailing blanks.
89945         Make cpp indentation consistent.
89946
89947 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89948
89949         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89950         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89951         Switch from LGPL to GPL.
89952
89953 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89954
89955         * config/srclist.txt: Sort sublists.  Add
89956         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89957         that differ from gnulib for one reason or another; we'd like this list
89958         to be smaller but for now let's document what we have.
89959
89960 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89961
89962         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89963         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89964         and sweeter "eval x=$x".
89965         * config/srclist.txt: Get lib/argp* from glibc.
89966
89967 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89968
89969         * lib/mktime.c: Fix some boundary cases and remove need for floating
89970         point.
89971
89972         Issue a compile-time diagnostic if time_t is floating point, or if
89973         two's complement arithmetic is not in effect, or if arithmetic
89974         right shift does not propagate the sign.  These assumptions were
89975         all in the original code but they weren't checked.
89976
89977         (TIME_T_MIDPOINT, verify): New macros.
89978         (__isleap): Remove; it has integer overflow problems.
89979         (leapyear): New function, without those problems.
89980         (ydhms_tm_diff): Remove; splitting into two parts.
89981         (ydhms_diff): New function, containing the arithmetic part of
89982         the old ydhms_tm_diff function.  Issue a compile-time
89983         diagnostic if we are not using C99 integer division.
89984         Avoid casts when possible.
89985         (guess_time_tm): New function, containing the checking part of
89986         the old ydhms_tm_diff function.  Return the new value, rather than
89987         the difference between it and the old.  Accept a new argument T
89988         so that *T specifies the old value.  Check for overflow in the result.
89989
89990         (__mktime_internal): Use a time_t offset, not a long int offset.
89991         This undoes the 2003-06-04 change, which is no longer needed now
89992         that we have better overflow checking.
89993         (localtime_offset): Likewise.
89994
89995         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89996         and long are 64-bit but int is only 32-bit.
89997         (ydhms_diff): Use long int to store year1 and yday1.
89998         Issue a compile-time diagnostic if long int is not wide enough.
89999
90000         (__mktime_internal): Use long int to store adjusted year and yday.
90001         Use plain C rather than preprocessor commands, if that doesn't
90002         affect efficiency.
90003         Check for overflow (and try to repair) after each probe
90004         rather than checking only at the very end.  This avoids some bugs
90005         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90006         does not equal GMT offset at maximum time).
90007         Use integer to check for overflow rather than floating point; this
90008         is more portable to non-IEEE hosts, and is a tad faster.
90009         When we detect that we are oscillating between two values,
90010         don't check whether tm_isdst has the requested value, since
90011         we already know the answer.  When tm_isdst has the wrong value,
90012         use a different heuristic to find the right one, based on the
90013         extreme values actually observed in practice in tz2003a,
90014         rather than the (overly optimistic) "previous 3 calendar quarters".
90015
90016         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90017         "T const" to accommodate glibc style.
90018         (check_result): Use less-confusing report format.  "long" -> "long int.
90019         (main): Likewise.
90020         Don't loop if the iteration overflows time_t.
90021         Allow a negative step in the iteration.
90022
90023 2003-07-06  Karl Berry  <karl@gnu.org>
90024
90025         * config/depcomp: update from automake.
90026         * config/config.sub: update from prep.
90027
90028 2003-07-03  Karl Berry  <karl@gnu.org>
90029
90030         * config/config.guess: update from prep.
90031
90032 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90033
90034         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90035         xreadlink.c now includes it unconditionally.
90036
90037 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90038
90039         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90040         having it depend on HAVE_SYS_TYPES_H.
90041
90042 2003-07-01  Bruno Haible  <bruno@clisp.org>
90043
90044         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90045         <sys/types.h> should be sufficient.
90046         Reported by Paul Eggert.
90047
90048 2003-06-26  Karl Berry  <karl@gnu.org>
90049
90050         * config/depcomp: update from automake.
90051
90052 2003-06-26  Bruno Haible  <bruno@clisp.org>
90053
90054         * modules/human: Depend on module stdbool.
90055
90056 2003-06-25  Bruno Haible  <bruno@clisp.org>
90057
90058         * modules/readlink: New file.
90059         * modules/xreadlink: Depend on it.
90060         * MODULES.html.sh (func_all_modules): Add readlink.
90061
90062 2003-06-25  Bruno Haible  <bruno@clisp.org>
90063
90064         * m4/readlink.m4: New file.
90065
90066 2003-06-25  Bruno Haible  <bruno@clisp.org>
90067
90068         * lib/readlink.c: New file.
90069
90070 2003-06-22  Karl Berry  <karl@gnu.org>
90071
90072         * config/srclist.txt: update mkinstalldirs from automake.
90073         * config/mkinstalldirs: update.
90074
90075 2003-06-22  Bruno Haible  <bruno@clisp.org>
90076
90077         Portability to mingw32.
90078         * m4/ssize_t.m4: New file, from GNU gettext.
90079         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90080         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90081
90082 2003-06-22  Bruno Haible  <bruno@clisp.org>
90083
90084         * modules/safe-read: Add m4/ssize_t.m4.
90085         * modules/xreadlink: Add m4/ssize_t.m4.
90086
90087 2003-06-20  Bruno Haible  <bruno@clisp.org>
90088
90089         Assume C89, so PARAMS isn't needed.
90090         * lib/unicodeio.h (PARAMS): Remove.
90091         * lib/unicodeio.c: Don't use PARAMS.
90092
90093 2003-06-18  Karl Berry  <karl@gnu.org>
90094
90095         * config/config.{guess,sub}: update from prep.
90096
90097 2003-06-18  Jim Meyering  <jim@meyering.net>
90098
90099         Merge changes from coreutils.
90100         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90101         Remove explicit declarations of xmalloc and realloc.
90102         Include xalloc.h.
90103         (read_utmp): Remove anachronistic cast of xmalloc.
90104
90105 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90106
90107         Assume C89, so PARAMS isn't needed.
90108         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90109         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90110         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90111         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90112         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90113         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90114         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90115         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90116         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90117         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90118         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90119         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90120         no longer needed. Anyway, config.h should always be included before any
90121         other file.
90122
90123 2003-06-11  Simon Josefsson  <jas@extundo.com>
90124
90125         * modules/sysexits: New file.
90126         * MODULES.html.sh (func_all_modules): Add sysexits.
90127
90128 2003-06-11  Simon Josefsson  <jas@extundo.com>
90129
90130         * lib/sysexit_.h: New file.
90131
90132 2003-06-11  Derek Price  <derek@ximbiot.com>
90133
90134         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90135         necessary.
90136
90137 2003-06-11  Bruno Haible  <bruno@clisp.org>
90138
90139         * m4/sysexits.m4: New file.
90140
90141 2003-06-10  Simon Josefsson  <jas@extundo.com>
90142
90143         * lib/argp.h: New file, from glibc.
90144         * lib/argp-ba.c: New file, from glibc.
90145         * lib/argp-eexst.c: New file, from glibc.
90146         * lib/argp-fmtstream.c: New file, from glibc.
90147         * lib/argp-fmtstream.h: New file, from glibc.
90148         * lib/argp-fs-xinl.c: New file, from glibc.
90149         * lib/argp-help.c: New file, from glibc.
90150         * lib/argp-namefrob.h: New file, from glibc.
90151         * lib/argp-parse.c: New file, from glibc.
90152         * lib/argp-pv.c: New file, from glibc.
90153         * lib/argp-pvh.c: New file, from glibc.
90154         * lib/argp-xinl.c: New file, from glibc.
90155
90156 2003-06-10  Simon Josefsson  <jas@extundo.com>
90157
90158         * modules/strchrnul: New file.
90159
90160 2003-06-10  Simon Josefsson  <jas@extundo.com>
90161
90162         * modules/argp: New file.
90163
90164 2003-06-10  Simon Josefsson  <jas@extundo.com>
90165
90166         * m4/strchrnul.m4: New file.
90167
90168 2003-06-10  Simon Josefsson  <jas@extundo.com>
90169
90170         * lib/strchrnul.h: New file.
90171         * lib/strchrnul.c: New file.
90172
90173 2003-06-10  Bruno Haible  <bruno@clisp.org>
90174
90175         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90176
90177 2003-06-07  Karl Berry  <karl@gnu.org>
90178
90179         * config/config.{guess,sub}: update from prep.
90180
90181 2003-06-07  Jim Meyering  <jim@meyering.net>
90182
90183         * modules/strtod: Use $(...) notation, not @...@ for
90184         AC_REPLACE'd variables.
90185         * modules/localcharset: Likewise.
90186
90187 2003-06-07  Jim Meyering  <jim@meyering.net>
90188
90189         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90190         in place of my name in the copyright comment.
90191         Remove definition and uses of __P.
90192
90193         From coreutils.
90194         * lib/stat.c: Don't declare xmalloc explicitly.
90195         Instead, include "xalloc.h".
90196         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90197         xrealloc, and xcalloc return values.
90198         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90199         Improve comment.
90200         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90201
90202 2003-06-07  Bruno Haible  <bruno@clisp.org>
90203
90204         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90205         avoid AC_CONFIG_LINKS.
90206         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90207         fnmatch.h, to avoid AC_CONFIG_LINKS.
90208         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90209
90210 2003-06-07  Bruno Haible  <bruno@clisp.org>
90211
90212         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90213         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90214         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90215         directory.
90216         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90217         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90218         directory.
90219
90220 2003-06-06  Jim Meyering  <jim@meyering.net>
90221
90222         Merge from coreutils.
90223         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90224         Consolidate declarations and initializations of *_base* locals.
90225
90226         Merge from coreutils.
90227         This avoids a core dump on systems without GNU putenv,
90228         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90229         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90230         (unsetenv): New static function, from GNU libc.
90231         (rpl_putenv): Use it.
90232
90233         * lib/modechange.c: Remove trailing blanks.
90234
90235         Merge from coreutils.
90236         * lib/fsusage.c: Remove declaration of statfs.
90237         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90238
90239         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90240
90241 2003-06-06  Jim Meyering  <jim@meyering.net>
90242
90243         * lib/stdbool_.h: Renamed from stdbool.h.in.
90244
90245 2003-06-06  Jim Meyering  <jim@meyering.net>
90246             Bruno Haible  <bruno@clisp.org>
90247
90248         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90249         Adjust Makefile.am snippet not to redirect directly to target.
90250         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90251
90252 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90253
90254         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
90255         mismatch, look in future quarters as well as past.  This fixes a
90256         bug when processing fall-backwards gaps immediately after a long
90257         period of daylight-saving time.
90258
90259         * lib/mktime.c: Assume freestanding C89 or better.
90260         (HAVE_LIMITS_H): Remove.  Assume it's 1.
90261         (__P): Remove; not used.
90262         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
90263         (mktime, not_equal_tm, print_tm, check_result,
90264         main): Use prototypes.  Use const * where appropriate.
90265         (main): Fix typo in testing code that uncovered by above changes.
90266         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90267
90268 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90269
90270         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90271         locale.h, localeconv.  This merges changes from coreutils.
90272
90273         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90274         It can be removed after the next Autoconf is released.
90275         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90276         needed.
90277
90278 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90279
90280         * lib/mktime.c: Fix Debian bug 177940
90281         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90282         (localtime_offset): Now long int, not time_t, because we want it
90283         to be guaranteed to be signed.  All uses changed.
90284         (__mktime_internal): If overflow would occur when adding offset,
90285         don't add it.
90286
90287         Merge 'human' changes from coreutils.  Rewrite to support
90288         locale-specific notations like thousands separators.
90289         * lib/human.c: Simplify authorship notice.
90290         Include human.h immediately after config.h.
90291         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90292         <limits.h>: Do not include, since human.h does.
90293         (SIZE_MAX, UINTMAX_MAX): New macros.
90294         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90295         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90296         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90297         (power_letter): Renamed from suffixes.
90298         (generate_suffix_backwards): Remove.
90299         (adjust_value): Now takes int style (because of human.h changes)
90300         and long double value (for greater precision on some platforms).
90301         (group_number): New function.
90302         (human_readable): Use it.  Use integer options, not enum.
90303         Put the options before the sizes in the arg list.
90304         Support all the new options.
90305         The old human_readable function has been removed;
90306         use inttostr.h instead.
90307         (human_readable, default_block_size, humblock):
90308         Use uintmax_t, not int, for block sizes.
90309         (human_readable_inexact, block_size_types): Remove.
90310         (block_size_opts): New constant.
90311         (human_options): Renamed from human_block_size, with new signature
90312         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90313         * lib/human.h: Add copyright and authorship notice.
90314         Include <limits.h> and <stdbool.h> unconditionally.
90315         (PARAMS): Remove.  All uses removed.
90316         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90317         (enum human_inexact_style): Remove tag; now a nameless enum.
90318         (human_floor, human_ceiling, human_round_to_even): Now have
90319         values 2, 0, 1 rather than -1, 1, 0.
90320         (human_group_digits, human_suppress_point_zero, human_autoscale,
90321         human_base_1024, human_SI, human_B): New constants.
90322         (human_readable_inexact, human_block_size): Remove.
90323         (human_readable): Size args are now uintmax_t, not int.
90324         (human_options): New decl.
90325
90326         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90327         unnecessary now that we assume C89 or better.  This change
90328         imported from coreutils.
90329
90330         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90331         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
90332         in the 2003-05-30 sync from glibc.
90333
90334         .h files should stand alone, but we shouldn't include <sys/types.h>
90335         if we can get away with just <stddef.h>.
90336
90337         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
90338         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
90339         rather than <sys/types.h>, as we merely need size_t.
90340         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
90341         to get size_t.
90342         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
90343         Include <stdio.h>, to get FILE.
90344         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
90345         memcasecmp.h has included <stddef.h> and all we need is size_t.
90346         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
90347         our interface, instead of including <sys/types.h>
90348
90349 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90350
90351         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
90352         now, as glibc mktime is buggy on non-glibc systems.
90353
90354 2003-06-03  Karl Berry  <karl@gnu.org>
90355
90356         * config/config.sub: update from prep.
90357
90358 2003-06-02  Paul Eggert  <eggert@twinsun.com>
90359
90360         [from coreutils]
90361         Fix some minor time-related bugs with POSIX time arguments.
90362         Some valid time stamps were being rejected (notably -1, and
90363         time stamps before 1900 on 64-bit hosts).  And some invalid
90364         time stamps were being accepted, e.g. September 31.
90365
90366         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
90367         that we can return (time_t) -1 successfully.
90368         * lib/posixtm.c: Likewise.
90369         [HAVE_STDBOOL_H]: Include <stdbool.h>.
90370         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
90371         (t): Remove static var.
90372         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
90373         of static var.  All uses changed.
90374         (year): Do not reject years before 1900; they can occur with
90375         64-bit time_t.
90376         (posix_time_parse): Do not check for out-of-range components;
90377         that is now the caller's responsibility, since our checks were
90378         only approximations.
90379         (posixtime): Use mktime to check for out-of-range components,
90380         since it knows them exactly.
90381         If mktime returns (time_t) -1, check whether an error actually occurred
90382         by invoking localtime on -1.
90383         (main) [TEST_POSIXTIME]: Check for input data errors, and report
90384         posixtime failures better.
90385         Improve the test data (in comments only).
90386
90387 2003-06-02  Karl Berry  <karl@gnu.org>
90388
90389         * config/mkinstalldirs (version): new variable.
90390         (--version): new option.
90391         (usage): improve message.
90392
90393 2003-05-30  Karl Berry  <karl@gnu.org>
90394
90395         * lib/mktime.c: update from libc.
90396
90397 2003-05-30  Bruno Haible  <bruno@clisp.org>
90398
90399         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90400         * config/config.rpath: Upgrade to gettext-0.12.1.
90401
90402 2003-05-30  Bruno Haible  <bruno@clisp.org>
90403
90404         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90405         * m4/nls.m4: New file, from gettext-0.12.1.
90406         * m4/po.m4: New file, from gettext-0.12.1.
90407         * m4/progtest.m4: Upgrade to gettext-0.12.1.
90408
90409 2003-05-30  Bruno Haible  <bruno@clisp.org>
90410
90411         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
90412         * lib/localcharset.h: Likewise.
90413         * lib/localcharset.c: Likewise.
90414
90415 2003-05-29  Karl Berry  <karl@gnu.org>
90416
90417         * config/config.rpath: update from gettext.
90418
90419 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90420
90421         Assume the headers required for C89 freestanding compilers.
90422         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
90423         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
90424         * m4/human.m4 (gl_HUMAN): Likewise.
90425         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
90426         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90427         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90428         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90429         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90430         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90431
90432 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90433
90434         Assume the headers required for C89 freestanding compilers.
90435         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90436         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
90437         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
90438         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
90439         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
90440         define, since <limits.h> is guaranteed to do that.
90441         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
90442         * lib/exclude.c: Include <stdbool.h> unconditionally.
90443         * lib/tempname.c: Include <stddef.h> unconditionally.
90444         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
90445         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
90446         <stddef.h> does that.
90447         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
90448         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
90449         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
90450         needed.
90451         * lib/xstrtol.c: Likewise.
90452         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
90453         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
90454
90455         * lib/addext.c (addext): Use assignment rather than cast, to avoid
90456         warnings on some platforms.
90457
90458         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90459         arbitrarily.
90460
90461 2003-05-26  Jim Meyering  <jim@meyering.net>
90462
90463         Merge in a change from coreutils:
90464         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
90465         that is guaranteed to be `no'.  Use `no_such_member' to indicate
90466         that condition, rather than `-1' which is slightly misleading.
90467         Change the name of the cache variable to have the gl_ prefix.
90468         Prompted by a patch from Richard Dawe for DJGPP.
90469
90470 2003-05-24  Karl Berry  <karl@gnu.org>
90471
90472         * config/config.guess: update from prep.
90473
90474 2003-05-22  Karl Berry  <karl@gnu.org>
90475
90476         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
90477
90478 2003-05-20  Karl Berry  <karl@gnu.org>
90479
90480         * config/config.guess: update from prep.
90481
90482 2003-05-18  Karl Berry  <karl@gnu.org>
90483
90484         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90485         might actually be set by the user.
90486
90487         * config/depcomp, install-sh, mdate-sh: update from automake.
90488
90489 2003-05-17  Bruno Haible  <bruno@clisp.org>
90490
90491         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90492         invalid expansion for AC_EGREP_CPP.
90493         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90494         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90495         Suggested by Akim Demaille <akim@epita.fr> in
90496         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90497
90498 2003-05-12  Jim Meyering  <jim@meyering.net>
90499
90500         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90501         the space-padded-by-default conversion specifiers, %e, %k, %l.
90502
90503 2003-05-12  Bruno Haible  <bruno@clisp.org>
90504
90505         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90506         the string is longer than 4 KB.
90507
90508 2003-05-11  Karl Berry  <karl@gnu.org>
90509
90510         * config/config.{guess,sub}: update from prep.
90511
90512 2003-05-09  Bruno Haible  <bruno@clisp.org>
90513
90514         * modules/error: Add m4/strerror_r.m4 to file list.
90515
90516 2003-05-03  Bruno Haible  <bruno@clisp.org>
90517
90518         Upgrade to Unicode-4.0.
90519         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90520         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90521         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90522         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90523         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90524         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90525         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90526         Change width of U+E0100..U+E01EF from 1 to 0.
90527
90528 2003-04-25  Jim Meyering  <jim@meyering.net>
90529
90530         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90531         of type size_t, not int.
90532
90533 2003-04-25  Bruno Haible  <bruno@clisp.org>
90534
90535         * lib/copy-file.c: Include <stddef.h>, for size_t.
90536
90537 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90538
90539         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90540         code which expansion is under static control.  Patch imported from
90541         Akim Demaille's patch to Bison; see
90542         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90543
90544 2003-04-14  Bruno Haible  <bruno@clisp.org>
90545
90546         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90547
90548 2003-04-11  Jim Meyering  <jim@meyering.net>
90549
90550         Merge changes from Coreutils.
90551
90552         2003-03-22  Jim Meyering  <jim@meyering.net>
90553
90554         * lib/strftime.c (widen): Cast alloca return value to proper type.
90555
90556         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90557
90558         From GNU libc.
90559         * lib/strftime.c (my_strftime): Handle very large width
90560         specifications for numeric values correctly.  Improve checks for
90561         overflow.
90562
90563         2003-01-19  Jim Meyering  <jim@meyering.net>
90564
90565         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90566         definitions.
90567         (nl_get_alt_digit) [! defined my_strftime]: Define.
90568         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90569         _nl_get_alt_digit and _nl_get_walt_digit.
90570
90571         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90572         libc. These changes have no effect outside of _LIBC.
90573
90574 2003-04-10  Bruno Haible  <bruno@clisp.org>
90575
90576         * modules/findprog: New file.
90577         * MODULES.html.sh (func_all_modules): Add it.
90578
90579 2003-04-10  Bruno Haible  <bruno@clisp.org>
90580
90581         * m4/findprog.m4: New file.
90582         * m4/eaccess.m4: New file.
90583
90584 2003-04-10  Bruno Haible  <bruno@clisp.org>
90585
90586         * lib/findprog.h: New file, from GNU gettext.
90587         * lib/findprog.c: New file, from GNU gettext.
90588
90589 2003-04-05  Jim Meyering  <jim@meyering.net>
90590
90591         Merge changes from Coreutils.
90592
90593         * lib/exclude.h (PARAMS): Remove definition and uses.
90594         * lib/exclude.c: Remove uses of `PARAMS'.
90595
90596         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90597         Add test-cases for DOS filenames. Declare program_name.
90598         (main): Set up program_name.  Patch by Rich Dawe.
90599
90600         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90601         error from mntctl.
90602         Use mntctl's return value to drive the entry-processing loop, since
90603         we can't rely on the value of the vmt_length member in the last
90604         entry.  On some systems doing so could result in exhausting
90605         virtual memory.  Based in part on a patch from Mike Jetzer.
90606
90607 2003-04-04  Bruno Haible  <bruno@clisp.org>
90608
90609         * modules/linebreak: New file.
90610         * MODULES.html.sh (func_all_modules): Add it.
90611
90612 2003-04-04  Bruno Haible  <bruno@clisp.org>
90613
90614         * m4/linebreak.m4: New file.
90615
90616 2003-04-04  Bruno Haible  <bruno@clisp.org>
90617
90618         * lib/linebreak.h: New file, from GNU gettext.
90619         * lib/linebreak.c: New file, from GNU gettext with slight
90620         modifications.
90621         * lib/lbrkprop.h: New file, from GNU gettext.
90622
90623 2003-04-03  Bruno Haible  <bruno@clisp.org>
90624
90625         * modules/utf8-ucs4: New file.
90626         * modules/utf16-ucs4: New file.
90627         * modules/ucs4-utf8: New file.
90628         * modules/ucs4-utf16: New file.
90629         * MODULES.html.sh (func_all_modules): Add them.
90630
90631 2003-04-03  Bruno Haible  <bruno@clisp.org>
90632
90633         * m4/utf-ucs4.m4: New file.
90634         * m4/ucs4-utf.m4: New file.
90635
90636 2003-04-03  Bruno Haible  <bruno@clisp.org>
90637
90638         * lib/utf8-ucs4.h: New file, from GNU gettext.
90639         * lib/utf16-ucs4.h: New file, from GNU gettext.
90640         * lib/ucs4-utf8.h: New file, from GNU gettext.
90641         * lib/ucs4-utf16.h: New file, from GNU gettext.
90642
90643 2003-04-02  Bruno Haible  <bruno@clisp.org>
90644
90645         * modules/binary-io: New file.
90646         * MODULES.html.sh (func_all_modules): Add it.
90647
90648 2003-04-02  Bruno Haible  <bruno@clisp.org>
90649
90650         * lib/binary-io.h: New file, from GNU gettext.
90651
90652 2003-04-01  Bruno Haible  <bruno@clisp.org>
90653
90654         * modules/pathname: New file.
90655         * MODULES.html.sh (func_all_modules): Add it.
90656
90657 2003-04-01  Bruno Haible  <bruno@clisp.org>
90658
90659         * lib/pathname.h: New file, from GNU gettext.
90660         * lib/concatpath.c: New file, from GNU gettext.
90661
90662 2003-03-30  Bruno Haible  <bruno@clisp.org>
90663
90664         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90665
90666 2003-03-30  Bruno Haible  <bruno@clisp.org>
90667
90668         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90669         function chown() doesn't exist.
90670
90671 2003-03-28  Bruno Haible  <bruno@clisp.org>
90672
90673         * modules/copy-file: New file.
90674         * MODULES.html.sh (func_all_modules): Add it.
90675
90676 2003-03-28  Bruno Haible  <bruno@clisp.org>
90677
90678         * m4/copy-file.m4: New file.
90679
90680 2003-03-28  Bruno Haible  <bruno@clisp.org>
90681
90682         * lib/copy-file.h: New file, from GNU gettext.
90683         * lib/copy-file.c: New file, from GNU gettext.
90684
90685 2003-03-18  Jim Meyering  <jim@meyering.net>
90686
90687         * lib/quote.c (quote_n): Fix typo in comment.
90688
90689 2003-03-18  Bruno Haible  <bruno@clisp.org>
90690
90691         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90692         checking.
90693         * m4/onceonly_2_57.m4: Likewise.
90694
90695 2003-03-17  Bruno Haible  <bruno@clisp.org>
90696
90697         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90698         (m4_quote): Remove macro.
90699         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90700
90701 2003-03-14  Jim Meyering  <jim@meyering.net>
90702
90703         Merge changes from Coreutils.
90704         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90705         to be const, in order to avoid warnings.
90706         (obstack_room): Likewise.
90707         (obstack_empty_p): Likewise.
90708
90709 2003-03-14  Bruno Haible  <bruno@clisp.org>
90710
90711         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90712         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90713
90714 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90715
90716         Merge changes from Bison.
90717         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90718         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90719         when compiling Bison 1.875's `bitset bset = obstack_alloc
90720         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90721         * lib/hash.c: Include <stdbool.h> unconditionally.
90722
90723 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90724
90725         * m4/onceonly.m4 (m4_quote): New macro.
90726         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90727         Quote AC_FOREACH variable-expansions properly.
90728
90729 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90730
90731         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90732
90733 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90734
90735         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90736         Reported by Bruce Becker; see:
90737         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90738
90739 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90740             Bruno Haible  <bruno@clisp.org>
90741
90742         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90743         Reported by John Hughes, see
90744         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90745
90746 2003-02-20  Bruno Haible  <bruno@clisp.org>
90747
90748         * MODULES.html.sh (func_all_modules): Add poll.
90749
90750 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90751
90752         * modules/poll: New file.
90753
90754 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90755
90756         * lib/poll_.h: New file.
90757         * lib/poll.c: New file.
90758
90759 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90760
90761         * m4/poll.m4: New file.
90762
90763 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90764
90765         * modules/mathl: New file.
90766
90767 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90768
90769         * lib/mathl.h: New file.
90770         * lib/acosl.c: New file.
90771         * lib/asinl.c: New file.
90772         * lib/atanl.c: New file.
90773         * lib/ceill.c: New file.
90774         * lib/cosl.c: New file.
90775         * lib/expl.c: New file.
90776         * lib/floorl.c: New file.
90777         * lib/frexpl.c: New file.
90778         * lib/ldexpl.c: New file.
90779         * lib/logl.c: New file.
90780         * lib/sincosl.c: New file.
90781         * lib/sinl.c: New file.
90782         * lib/sqrtl.c: New file.
90783         * lib/tanl.c: New file.
90784         * lib/trigl.c: New file.
90785         * lib/trigl.h: New file.
90786
90787 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90788
90789         * m4/mathl.m4: New file.
90790
90791 2003-02-18  Bruno Haible  <bruno@clisp.org>
90792
90793         * MODULES.html.sh (func_all_modules): Add mathl.
90794
90795 2003-02-17  Bruno Haible  <bruno@clisp.org>
90796
90797         * modules/mkdtemp: New module.
90798         * MODULES.html.sh (func_all_modules): Add it.
90799
90800 2003-02-17  Bruno Haible  <bruno@clisp.org>
90801
90802         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90803
90804 2003-02-17  Bruno Haible  <bruno@clisp.org>
90805
90806         * lib/mkdtemp.h: New file, from GNU gettext.
90807         * lib/mkdtemp.c: New file, from GNU gettext.
90808
90809 2003-02-02  Jim Meyering  <jim@meyering.net>
90810
90811         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90812         e.g. glibc-2.2.93.
90813
90814 2003-01-31  Bruno Haible  <bruno@clisp.org>
90815
90816         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90817         'rpl_rename'.
90818         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90819         'rpl_strnlen'.
90820         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90821         'rpl_strtod'.
90822         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90823         'rpl_utime'.
90824
90825 2003-01-31  Bruno Haible  <bruno@clisp.org>
90826
90827         * lib/rename.c: #undef rename before defining rpl_rename.
90828         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90829
90830 2003-01-30  Bruno Haible  <bruno@clisp.org>
90831
90832         * modules/vasnprintf, modules/vasprintf: New modules.
90833         * MODULES.html.sh (func_all_modules): Add them.
90834
90835 2003-01-30  Bruno Haible  <bruno@clisp.org>
90836
90837         * m4/signed.m4: New file, from GNU gettext.
90838         * m4/longdouble.m4: New file, from GNU gettext.
90839         * m4/wchar_t.m4: New file, from GNU gettext.
90840         * m4/wint_t.m4: New file, from GNU gettext.
90841         * m4/vasnprintf.m4: New file.
90842         * m4/vasprintf.m4: New file.
90843
90844 2003-01-30  Bruno Haible  <bruno@clisp.org>
90845
90846         * lib/printf-args.h: New file, from GNU gettext.
90847         * lib/printf-args.c: New file, from GNU gettext.
90848         * lib/printf-parse.h: New file, from GNU gettext.
90849         * lib/printf-parse.c: New file, from GNU gettext.
90850         * lib/vasnprintf.h: New file, from GNU gettext.
90851         * lib/vasnprintf.c: New file, from GNU gettext.
90852         * lib/asnprintf.c: New file, from GNU gettext.
90853         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90854         * lib/vasprintf.c: New file, from GNU gettext.
90855         * lib/asprintf.c: New file, from GNU gettext.
90856
90857 2003-01-29  Bruno Haible  <bruno@clisp.org>
90858
90859         * modules/stpncpy: New module.
90860         * MODULES.html.sh (func_all_modules): Add it.
90861
90862 2003-01-29  Bruno Haible  <bruno@clisp.org>
90863
90864         * m4/stpncpy.m4: New file.
90865
90866 2003-01-29  Bruno Haible  <bruno@clisp.org>
90867
90868         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90869         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90870
90871 2003-01-28  Bruno Haible  <bruno@clisp.org>
90872
90873         * modules/c-ctype: New module.
90874         * MODULES.html.sh (func_all_modules): Add it.
90875
90876 2003-01-28  Bruno Haible  <bruno@clisp.org>
90877
90878         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90879         Paul Eggert.
90880         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90881         Paul Eggert.
90882
90883 2003-01-27  Bruno Haible  <bruno@clisp.org>
90884
90885         * modules/xsetenv: New module.
90886         * MODULES.html.sh (func_all_modules): Add it.
90887
90888 2003-01-27  Bruno Haible  <bruno@clisp.org>
90889
90890         * lib/xsetenv.h: New file, from GNU gettext.
90891         * lib/xsetenv.c: New file, from GNU gettext.
90892
90893 2003-01-23  Jim Meyering  <jim@meyering.net>
90894
90895         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90896         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90897
90898 2003-01-23  Bruno Haible  <bruno@clisp.org>
90899
90900         * modules/minmax: New module.
90901         * MODULES.html.sh (func_all_modules): Add it.
90902
90903 2003-01-23  Bruno Haible  <bruno@clisp.org>
90904
90905         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90906         Eggert.
90907
90908 2003-01-22  Bruno Haible  <bruno@clisp.org>
90909
90910         * modules/exit: New module.
90911         * MODULES.html.sh (func_all_modules): Add it.
90912
90913 2003-01-22  Bruno Haible  <bruno@clisp.org>
90914
90915         * lib/exit.h: New file, from GNU gettext.
90916
90917 2003-01-19  Bruno Haible  <bruno@clisp.org>
90918
90919         * gnulib-tool: Recognize option --extract-maintainer.
90920         (func_get_maintainer): New function.
90921         * modules/*: Add Maintainer entry.
90922
90923 2003-01-16  Jim Meyering  <jim@meyering.net>
90924
90925         * m4/regex.m4: The `regex' struct is both input and output.
90926         Initialize it before each use.  Patch by Tim Waugh.
90927
90928 2003-01-16  Bruno Haible  <bruno@clisp.org>
90929
90930         * MODULES.html.sh: Add a table of contents. Add the module name as
90931         leftmost column. Add hyperlinks.
90932
90933 2003-01-15  Bruno Haible  <bruno@clisp.org>
90934
90935         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90936
90937 2003-01-15  Bruno Haible  <bruno@clisp.org>
90938
90939         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90940         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90941         suffix.
90942
90943 2003-01-15  Bruno Haible  <bruno@clisp.org>
90944
90945         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90946
90947 2003-01-15  Bruno Haible  <bruno@clisp.org>
90948
90949         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90950         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90951
90952 2003-01-14  Jim Meyering  <jim@meyering.net>
90953
90954         * lib/same.c (same_name): Tweak a comment.
90955
90956 2003-01-14  Bruno Haible  <bruno@clisp.org>
90957
90958         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90959         when a string comparison is sufficient.
90960
90961 2003-01-14  Bruno Haible  <bruno@clisp.org>
90962
90963         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90964         'unsigned int'.
90965
90966 2003-01-14  Bruno Haible  <bruno@clisp.org>
90967
90968         * lib/hash-pjw.c: Add comment about low quality of this function.
90969
90970 2003-01-13  Bruno Haible  <bruno@clisp.org>
90971
90972         * modules/stpcpy: Distribute lib/stpcpy.h.
90973         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90974
90975 2003-01-13  Bruno Haible  <bruno@clisp.org>
90976
90977         * modules/*: Add a description.
90978         * modules/strpbrk: Fix Makefile.am snippet.
90979         * modules/strtoimax: Fix dependencies.
90980         * modules/strtoumax: Likewise.
90981
90982 2003-01-13  Bruno Haible  <bruno@clisp.org>
90983
90984         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90985         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90986         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90987
90988 2003-01-13  Bruno Haible  <bruno@clisp.org>
90989
90990         * gnulib-tool (func_create_testdir): Store config/* files in the main
90991         directory.
90992         * config.rpath: Move to ...
90993         * config/config.rpath: ... here.
90994         * modules/gettext: Contains config/config.rpath, not config.rpath.
90995         * modules/iconv: Likewise.
90996
90997 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90998
90999         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91000         to avoid collisions with libcurses and libreadline.
91001
91002         * m4/getstr.m4: Remove.
91003         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91004
91005 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91006
91007         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91008         to avoid collisions with libcurses and libreadline.
91009
91010         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91011         * lib/getstr.h, getstr.c: Remove.
91012         * lib/getline.c: Include "getline.h", to check interface.
91013         Move body of old getstr.c here: this defines MIN_CHUNK and
91014         declares getdelim2, which is renamed from getstr.
91015         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91016
91017         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91018         All uses changed.
91019         * lib/linebuffer.h: Likewise.
91020         (readline): Remove backward-compatibility macro.
91021
91022 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91023
91024         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91025         to avoid collisions with libcurses and libreadline.
91026         * getstr: Remove.
91027         * MODULES.html.sh: Remove getstr.
91028         * modules/getline: Depend on unlocked-io, not getstr.
91029
91030 2003-01-12  Jim Meyering  <jim@meyering.net>
91031
91032         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91033
91034 2003-01-10  Bruno Haible  <bruno@clisp.org>
91035
91036         * modules/alloca: Change Makefile.am requirements. Simplify Include
91037         requirements. Add lib/alloca_.h to file list.
91038
91039 2003-01-10  Bruno Haible  <bruno@clisp.org>
91040
91041         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91042
91043 2003-01-10  Bruno Haible  <bruno@clisp.org>
91044
91045         * lib/alloca_.h: New file.
91046         * lib/getdate.y: Unconditionally include alloca.h.
91047         * lib/makepath.c: Likewise.
91048         * lib/setenv.c: Likewise.
91049         * lib/userspec.c: Likewise.
91050
91051 2003-01-09  Karl Berry  <karl@gnu.org>
91052
91053         * MODULES.html.sh: include `dirname $0` in PATH, to find
91054         gnulib-tool.
91055
91056 2003-01-09  Bruno Haible  <bruno@clisp.org>
91057
91058         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91059         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91060
91061 2003-01-09  Bruno Haible  <bruno@clisp.org>
91062
91063         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91064
91065 2003-01-09  Bruno Haible  <bruno@clisp.org>
91066
91067         * lib/stdbool.h.in: New file.
91068
91069 2003-01-09  Bruno Haible  <bruno@clisp.org>
91070
91071         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91072         * MODULES.html.sh: Likewise.
91073
91074 2003-01-08  Jim Meyering  <jim@meyering.net>
91075
91076         * lib/full-write.c: Undefine and define-away `const' after inclusion
91077         of errno.h, not before.  Suggestion from Bruno Haible.
91078
91079 2003-01-08  Bruno Haible  <bruno@clisp.org>
91080
91081         * modules/full-read: Depend on full-write.
91082
91083 2003-01-08  Bruno Haible  <bruno@clisp.org>
91084
91085         * lib/safe-read.c: Include specification header first, to ensure its
91086         selfcontainedness.
91087         * lib/full-write.c: Likewise.
91088
91089 2003-01-07  Jim Meyering  <jim@meyering.net>
91090
91091         * lib/full-write.c: Rework so that it may serve to define full_read,
91092         too.
91093         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91094
91095 2003-01-07  Bruno Haible  <bruno@clisp.org>
91096
91097         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91098         <inttypes.h>.
91099         * lib/xstrtol.h: Likewise.
91100         * lib/xstrtoimax.c: Likewise.
91101         * lib/xstrtoumax.c: Likewise.
91102         * lib/human.h: Likewise.
91103
91104         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91105         on systems that have <inttypes.h> but not <stdint.h>.
91106
91107 2003-01-07  Bruno Haible  <bruno@clisp.org>
91108
91109         * MODULES.html.sh: Add copyright notice.
91110         (missed_files): Omit CVS directory entries.
91111         (func_module): Make it work with sed-3.02.
91112         * MODULES.txt: Remove file.
91113
91114 2003-01-06  Jim Meyering  <jim@meyering.net>
91115
91116         * lib/version-etc.c: Update year in translatable copyright string.
91117
91118 2003-01-03  Karl Berry  <karl@gnu.org>
91119
91120         * config/config.{guess,sub}: update from prep.
91121
91122 2003-01-02  Karl Berry  <karl@gnu.org>
91123
91124         * doc/COPYING.DOC: belatedly updated to 1.2.
91125
91126 2003-01-01  Karl Berry  <karl@gnu.org>
91127
91128         * gnulib-tool (func_verify_module): report module name $module in
91129         error message, not $1.
91130         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91131         be created, only if it doesn't exist.
91132         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91133
91134 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91135
91136         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91137
91138 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91139
91140         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91141         memcmp if strcoll doesn't work.
91142
91143 2002-12-31  Bruno Haible  <bruno@clisp.org>
91144
91145         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91146         nonempty.
91147
91148 2002-12-31  Bruno Haible  <bruno@clisp.org>
91149
91150         * lib/memcoll.c (STRCOLL): New macro.
91151         (memcoll): Use it.
91152
91153 2002-12-31  Bruno Haible  <bruno@clisp.org>
91154
91155         * lib/localcharset.h: New file.
91156         * lib/localcharset.c: Include it.
91157         * lib/unicodeio.c: Likewise.
91158
91159 2002-12-31  Bruno Haible  <bruno@clisp.org>
91160
91161         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91162         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91163
91164 2002-12-31  Bruno Haible  <bruno@clisp.org>
91165
91166         * lib/getline.h: Include <stddef.h>, for size_t.
91167
91168         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91169         * lib/unicodeio.c: Don't include <stddef.h>.
91170
91171 2002-12-31  Bruno Haible  <bruno@clisp.org>
91172
91173         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91174         HAVE_TM_ZONE.
91175
91176 2002-12-24  Karl Berry  <karl@gnu.org>
91177
91178         * config/config.guess: update from prep.
91179
91180 2002-12-24  Bruno Haible  <bruno@clisp.org>
91181
91182         General infrasructure.
91183         * m4/README: Rewritten.
91184         * m4/onceonly.m4: New file.
91185         * m4/onceonly_2_57.m4: New file.
91186
91187         Module atexit.
91188         * m4/atexit.m4: New file.
91189
91190         Module strtod.
91191         * m4/strtod.m4: New file.
91192
91193         Module strtol.
91194         * m4/strtol.m4: New file.
91195
91196         Module strtoul.
91197         * m4/strtoul.m4: New file.
91198
91199         Module memchr.
91200         * m4/memchr.m4: New file.
91201
91202         Module memcmp.
91203         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91204         (jm_FUNC_MEMCMP): Invoke it.
91205
91206         Module memcpy.
91207         * m4/memcpy.m4: New file.
91208
91209         Module memmove.
91210         * m4/memmove.m4: New file.
91211
91212         Module memset.
91213         * m4/memset.m4: New file.
91214
91215         Module strcspn.
91216         * m4/strcspn.m4: New file.
91217
91218         Module strpbrk.
91219         * m4/strpbrk.m4: New file.
91220
91221         Module strstr.
91222         * m4/strstr.m4: New file.
91223
91224         Module strerror.
91225         * m4/strerror.m4: New file.
91226
91227         Module mktime.
91228         * m4/mktime.m4: Renamed from jm-mktime.m4.
91229         (gl_PREREQ_MKTIME): New macro.
91230         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91231
91232         Module malloc.
91233         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91234         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91235         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91236
91237         Module realloc.
91238         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91239         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91240         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91241
91242         Module strftime.
91243         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91244         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91245         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91246         gl_TM_GMTOFF.
91247         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91248
91249         Module xalloc.
91250         * m4/xalloc.m4: New file.
91251
91252         Module alloca.
91253         * m4/alloca.m4: New file.
91254
91255         Module putenv.
91256         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
91257         (jm_FUNC_PUTENV): Invoke it.
91258
91259         Module setenv.
91260         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
91261         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
91262         when invoked twice.
91263         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
91264         gt_FUNC_SETENV.
91265
91266         Module memrchr.
91267         * m4/memrchr.m4: New file.
91268
91269         Module stpcpy.
91270         * m4/stpcpy.m4: New file.
91271
91272         Module strcase.
91273         * m4/strcase.m4: New file.
91274
91275         Module strdup.
91276         * m4/strdup.m4: New file.
91277
91278         Module strnlen.
91279         * m4/strnlen.m4: New file.
91280
91281         Module strndup.
91282         * m4/strndup.m4: New file.
91283
91284         Module xstrtod.
91285         * m4/xstrtod.m4: New file.
91286
91287         Module xstrtol.
91288         * m4/xstrtol.m4: New file.
91289
91290         Module getdate.
91291         * m4/getdate.m4: New file.
91292
91293         Module unlocked-io.
91294         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91295         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91296         * m4/jm-glibc-io.m4n: Remove file.
91297
91298         Module long-options.
91299         * m4/long-options.m4: New file.
91300
91301         Module md5.
91302         * m4/md5.m4: New file.
91303
91304         Module sha.
91305         * m4/sha.m4: New file.
91306
91307         Module getstr.
91308         * m4/getstr.m4: New file.
91309
91310         Module getline.
91311         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91312         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91313         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91314         simply getline. Infoke gl_PREREQ_GETLINE.
91315
91316         Module obstack.
91317         * m4/obstack.m4: New file.
91318
91319         Module hash.
91320         * m4/hash.m4: New file.
91321
91322         Module readtokens.
91323         * m4/readtokens.m4: New file.
91324
91325         Module strverscmp.
91326         * m4/strverscmp.m4: New file.
91327
91328         Module stdbool.
91329         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
91330         OSF/1.
91331
91332         Module strtoll.
91333         * m4/strtoll.m4: New file.
91334
91335         Module strtoull.
91336         * m4/strtoull.m4: New file.
91337
91338         Module strtoimax.
91339         * m4/strtoimax.m4: New file.
91340
91341         Module strtoumax.
91342         * m4/strtoumax.m4: New file.
91343
91344         Module xstrtoimax.
91345         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
91346         jm_AC_PREREQ_XSTRTOIMAX.
91347         Moved the strtol prerequisites to strtol.m4.
91348         Moved the strtoll prerequisites to strtoll.m4.
91349         Moved the strtoimax prerequisites to strtoimax.m4.
91350
91351         Module xstrtoumax.
91352         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
91353         jm_AC_PREREQ_XSTRTOUMAX.
91354         Moved the strtoul prerequisites to strtoul.m4.
91355         Moved the strtoull prerequisites to strtoull.m4.
91356         Moved the strtoumax prerequisites to strtoumax.m4.
91357
91358         Module chown.
91359         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
91360         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
91361
91362         Module dup2.
91363         * m4/dup2.m4: New file.
91364
91365         Module ftruncate.
91366         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
91367         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
91368
91369         Module getgroups.
91370         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
91371         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
91372
91373         Module gettimeofday.
91374         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
91375         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
91376         gl_PREREQ_GETTIMEOFDAY.
91377
91378         Module mkdir.
91379         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
91380         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
91381
91382         Module mkstemp.
91383         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
91384         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
91385         jm_AC_TYPE_UINTMAX_T.
91386         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91387
91388         Module stat.
91389         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91390         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91391
91392         Module lstat.
91393         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91394         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91395
91396         Module timespec.
91397         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91398         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91399         * m4/st_mtim.m4: Indentation.
91400
91401         Module nanosleep.
91402         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91403         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91404         gl_PREREQ_NANOSLEEP.
91405
91406         Module regex.
91407         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
91408         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
91409         (gl_REGEX): New macro.
91410
91411         Module rename.
91412         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
91413         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
91414
91415         Module rmdir.
91416         * m4/rmdir.m4: New file.
91417
91418         Module utime.
91419         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
91420         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
91421         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
91422
91423         Module dirname.
91424         * m4/dirname.m4: New file.
91425
91426         Module getopt.
91427         * m4/getopt.m4: New file.
91428
91429         Module unistd-safer.
91430         * m4/unistd-safer.m4: New file.
91431
91432         Module fnmatch.
91433         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91434         declaration.
91435         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91436         (gl_FUNC_FNMATCH_POSIX): New macro.
91437         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
91438         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
91439         simply fnmatch.
91440
91441         Module exclude.
91442         * m4/exclude.m4: New file.
91443
91444         Module human.
91445         * m4/human.m4: New file.
91446
91447         Module acl.
91448         * m4/acl.m4: Nop.
91449
91450         Module backupfile.
91451         * m4/backupfile.m4: New file.
91452         * m4/d-ino.m4: Indentation.
91453
91454         Module fsusage.
91455         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
91456         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
91457         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
91458
91459         Module dirfd.
91460         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
91461         requirements.
91462
91463         Module euidaccess.
91464         * m4/euidaccess.m4: New file.
91465
91466         Module file-type.
91467         * m4/file-type.m4: New file.
91468
91469         Module fileblocks.
91470         * m4/fileblocks.m4: New file.
91471
91472         Module filemode.
91473         * m4/filemode.m4: New file.
91474
91475         Module isdir.
91476         * m4/isdir.m4: New file.
91477
91478         Module lchown.
91479         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
91480         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
91481
91482         Module makepath.
91483         * m4/makepath.m4: New file.
91484
91485         Module modechange.
91486         * m4/modechange.m4: New file.
91487
91488         Module mountlist.
91489         * m4/mountlist.m4: New file.
91490         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91491         Indentation.
91492
91493         Module path-concat.
91494         * m4/path-concat.m4: New file.
91495
91496         Module pathmax.
91497         * m4/pathmax.m4: New file.
91498
91499         Module same.
91500         * m4/same.m4: New file.
91501
91502         Module save-cwd.
91503         * m4/save-cwd.m4: New file.
91504
91505         Module savedir.
91506         * m4/savedir.m4: New file.
91507
91508         Module xgetcwd.
91509         * m4/xgetcwd.m4: New file.
91510         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91511
91512         Module xreadlink.
91513         * m4/xreadlink.m4: New file.
91514
91515         Module safe-read.
91516         * m4/safe-read.m4: New file.
91517
91518         Module safe-write.
91519         * m4/safe-write.m4: New file.
91520
91521         Module closeout.
91522         * m4/closeout.m4: New file.
91523
91524         Module stdio-safer.
91525         * m4/stdio-safer.m4: New file.
91526
91527         Module getpass.
91528         * m4/getpass.m4: New file.
91529
91530         Module getugroups.
91531         * m4/getugroups.m4: New file.
91532
91533         Module group-member.
91534         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91535         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91536
91537         Module idcache.
91538         * m4/idcache.m4: New file.
91539
91540         Module userspec.
91541         * m4/userspec.m4: New file.
91542
91543         Module gettime.
91544         * m4/clock_time.m4: New file.
91545         * m4/gettime.m4: New file.
91546
91547         Module settime.
91548         * m4/settime.m4: New file.
91549
91550         Module posixtm.
91551         * m4/posixtm.m4: New file.
91552
91553         Module gethostname.
91554         * m4/gethostname.m4: New file.
91555
91556         Module canon-host.
91557         * m4/canon-host.m4: New file.
91558
91559         Module gettext.
91560         * m4/codeset.m4: New file, from gettext-0.11.5.
91561         * m4/gettext.m4: New file, from gettext-0.11.5.
91562         * m4/glibc21.m4: New file, from gettext-0.11.5.
91563         * m4/iconv.m4: New file, from gettext-0.11.5.
91564         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91565         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91566         * m4/inttypes.m4: New file, from gettext-0.11.5.
91567         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91568         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91569         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91570         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91571         * m4/lib-link.m4: New file, from gettext-0.11.5.
91572         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91573         * m4/progtest.m4: New file, from gettext-0.11.5.
91574         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91575         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91576         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91577
91578         Module localcharset.
91579         * m4/localcharset.m4: New file.
91580
91581         Module hard-locale.
91582         * m4/hard-locale.m4: New file.
91583
91584         Module mbswidth.
91585         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91586         onceonly macros.
91587         * m4/mbrtowc.m4: Add comment.
91588
91589         Module memcasecmp.
91590         * m4/memcasecmp.m4: New file.
91591
91592         Module memcoll.
91593         * m4/memcoll.m4: New file.
91594
91595         Module unicodeio.
91596         * m4/unicodeio.m4: New file.
91597
91598         Module rpmatch.
91599         * m4/rpmatch.m4: New file.
91600
91601         Module yesno.
91602         * m4/yesno.m4: New file.
91603
91604         Module exitfail.
91605         * m4/exitfail.m4: New file.
91606
91607         Module c-stack.
91608         * m4/c-stack.m4 (gl_C_STACK): New macro.
91609         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91610
91611         Module error.
91612         * m4/error.m4 (gl_ERROR): New macro.
91613         (jm_PREREQ_ERROR): Use onceonly macros.
91614
91615         Module fatal.
91616         * m4/fatal.m4: New file.
91617
91618         Module getloadavg.
91619         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91620         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91621
91622         Module getpagesize.
91623         * m4/getpagesize.m4: New file.
91624
91625         Module getusershell.
91626         * m4/getusershell.m4: New file.
91627
91628         Module physmem.
91629         * m4/physmem.m4: New file.
91630
91631         Module posixver.
91632         * m4/posixver.m4: New file.
91633
91634         Module quotearg.
91635         * m4/quotearg.m4: New file.
91636
91637         Module quote.
91638         * m4/quote.m4: New file.
91639
91640         Module readutmp.
91641         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91642
91643         Module sig2str.
91644         * m4/sig2str.m4: New file.
91645
91646         Other.
91647         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91648         ulonglong.m4.
91649         * m4/intmax_t.m4: New file.
91650         * m4/d-type.m4: Indentation.
91651         * m4/jm-macros.m4: Update.
91652         * m4/prereq.m4 (jm_PREREQ): Update.
91653         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91654         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91655         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91656         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91657         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91658         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91659         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91660         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91661         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91662         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91663         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91664         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91665         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91666         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91667         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91668         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91669         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91670         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91671         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91672
91673 2002-12-24  Bruno Haible  <bruno@clisp.org>
91674
91675         * MODULES.txt: Update according to m4/ changes.
91676
91677         Module gettext.
91678         * config.rpath: New file, from gettext-0.11.5.
91679
91680         * modules/*: New module descriptions.
91681         * gnulib-tool: New file.
91682         * MODULES.html.sh: New file.
91683
91684 2002-12-21  Karl Berry  <karl@gnu.org>
91685
91686         * doc/fdl.texi: update to version 1.2.
91687
91688 2002-12-19  Karl Berry  <karl@gnu.org>
91689
91690         * config/config.guess: update from prep.
91691
91692 2002-12-18  Bruno Haible  <bruno@clisp.org>
91693
91694         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91695         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91696
91697 2002-12-17  Bruno Haible  <bruno@clisp.org>
91698
91699         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91700         stdlib.h, string.h.
91701
91702 2002-12-17  Bruno Haible  <bruno@clisp.org>
91703
91704         * lib/canon-host.c (strdup): Remove unused declaration.
91705
91706         * lib/fsusage.c: Include full_read.h.
91707         (get_fs_usage): Use full_read instead of safe_read.
91708
91709         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91710
91711 2002-12-12  Karl Berry  <karl@gnu.org>
91712
91713         * config/config.guess: update from prep.
91714
91715 2002-12-11  Bruno Haible  <bruno@clisp.org>
91716
91717         * m4/setenv.m4: New file, from gettext-0.11.5.
91718
91719 2002-12-11  Bruno Haible  <bruno@clisp.org>
91720
91721         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91722         not unsetenv().
91723         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91724         modifications:
91725
91726         2002-12-11  Bruno Haible  <bruno@clisp.org>
91727
91728                 * setenv.c (alloca): Fall back to malloc.
91729                 (freea): New macro.
91730                 (setenv): Use freea() to free memory allocated with alloca().
91731
91732         2002-11-13  Bruno Haible  <bruno@clisp.org>
91733
91734                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91735                 function declarations.
91736                 * unsetenv.c (unsetenv): Likewise.
91737
91738         2002-03-04  Bruno Haible  <bruno@clisp.org>
91739
91740                 Portability to AIX 4.3.3.
91741                 * unsetenv.c: New file, extracted from setenv.c.
91742                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91743
91744         2001-12-20  Bruno Haible  <bruno@clisp.org>
91745
91746                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91747                 use malloc instead. For SunOS 4.
91748
91749         2001-12-11  Bruno Haible  <bruno@clisp.org>
91750
91751                 * setenv.c: Declare alloca.
91752                 (compar_fn_t): New typedef.
91753                 (KNOWN_VALUE, STORE_VALUE): Use it.
91754
91755         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91756         setenv.h.
91757
91758 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91759
91760         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91761         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91762         Choose values that are less likely to collide with system fnmatch
91763         options.
91764         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91765         defined (e.g., a pure POSIX system).
91766         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91767         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91768
91769 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91770
91771         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91772         a pain in practice to deal with generated m4 files.  This change
91773         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91774
91775         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91776         and jm-glibc-io.m4, as they are no longer a special case.
91777         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91778         kludge and the auto-generation stuff.  Check only whether the
91779         functions are declared, not whether they exist, since older hosts
91780         that don't declare the functions can't use the optimization anyway.
91781
91782 2002-12-06  Jim Meyering  <jim@meyering.net>
91783
91784         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91785
91786         Merge in changes from libc's misc/error.c, in preparation
91787         for the merge of gnulib's changes back into libc.
91788
91789         * lib/error.c (_): Define only if not already defined.
91790         Move definition to follow all #include directives.
91791         Include unlocked-io.h only if !_LIBC.
91792         [_LIBC]: Include <libio/libioP.h>.
91793         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91794         (fflush): Tweak definition to use INTUSE.
91795         (putc): Define.
91796
91797 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91798
91799         * lib/alloca.c [defined emacs]: Include "lisp.h".
91800         (xalloc_die) [defined emacs]: New macro.
91801         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91802         [! defined emacs]: Include <xalloc.h>.
91803         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91804         (pointer): Typedef to POINTER_TYPE *.
91805         (malloc): Remove decl; we now always use xmalloc.
91806         (alloca): Use old-style definition, since Emacs needs this.
91807         Check for arithmetic overflow when computing combined size.
91808
91809 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91810
91811         Do not generate unlocked-io.h automatically, since it's easier to
91812         maintain it by hand.
91813
91814         * lib/unlocked-io.h: New file, from GNU diffutils,
91815         but with proper copyright notice and attribution.
91816         * lib/gen-uio: Remove.
91817         * lib/Makefile.am: Add copyright notice.
91818         (libfetish_a_SOURCES): Add unlocked-io.h.
91819         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91820         (DISTCLEANFILES, io_functions): Remove macros.
91821         (EXTRA_DIST): Remove gen_uio.
91822         (unlocked-io.h): Remove rule.
91823
91824 2002-12-04  Jim Meyering  <jim@meyering.net>
91825
91826         Reflect the fact that stat.c and lstat.c are no longer generated.
91827         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91828         (DISTCLEANFILES): Likewise.
91829         (EXTRA_DIST): Likewise.
91830         (all_local): Don't depend on stat.c or lstat.c.
91831         (stat.c, lstat.c): Remove rules.
91832         (EXTRA_DIST): Remove xstat.in.
91833
91834         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91835         * lib/stat.c: New file.  Contents mostly from xstat.in.
91836         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91837         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91838
91839         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91840         too.
91841         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91842
91843 2002-12-03  Jim Meyering  <jim@meyering.net>
91844
91845         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91846         but not semantics, to minimize the differences between these two files.
91847         (safe_read): Change comment to mention SAFE_READ_ERROR.
91848
91849         * lib/safe-read.c (IS_EINTR): Define.
91850         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91851
91852 2002-12-02  Jim Meyering  <jim@meyering.net>
91853
91854         * lib/safe-read.c (EINTR): Define.
91855         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91856         (INT_MAX): Provide fallback.
91857         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91858
91859         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91860
91861 2002-12-02  Bruno Haible  <bruno@clisp.org>
91862
91863         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91864         Define, taken from safe-read.c.
91865         (INT_MAX): Provide fallback.
91866         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91867         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91868
91869         * lib/safe-read.c (EINTR): Remove definition.
91870         (safe_read): Don't use EINTR if it is absent.
91871
91872 2002-12-01  Jim Meyering  <jim@meyering.net>
91873
91874         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91875         zero.
91876         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91877
91878 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91879
91880         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91881         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91882         with `if (! (value < limit)) abort ();', for readability.
91883
91884 2002-11-26  Karl Berry  <karl@gnu.org>
91885
91886         * lib/strdup.c: copy from libc again, with jim's ok.
91887         * lib/.cppi-disable: re-add strdup.c
91888
91889 2002-11-25  Karl Berry  <karl@gnu.org>
91890
91891         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91892         instead of "strtol.c".
91893
91894 2002-11-25  Karl Berry  <karl@gnu.org>
91895
91896         * config/install-sh: update from automake for variable quoting, $0 in
91897         error msgs, etc.
91898
91899         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91900         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91901         entry.
91902
91903 2002-11-25  Jim Meyering  <jim@meyering.net>
91904
91905         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91906
91907 2002-11-24  Karl Berry  <karl@gnu.org>
91908
91909         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91910         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91911
91912 2002-11-24  Jim Meyering  <jim@meyering.net>
91913
91914         Update from coreutils:
91915
91916         * lib/mktime.c: Merge in changes from libc.
91917
91918         Avoid a link-time failure on some Linux systems.
91919         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91920         (otherwise).
91921         (__mon_yday): Declare with the STATIC attribute.
91922         (__mktime_internal): Likewise.
91923         Based on a report from Greg Schafer.
91924
91925 2002-11-23  Jim Meyering  <jim@meyering.net>
91926
91927         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91928         Use `unsigned', not `int', as type of index.
91929
91930         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91931
91932         * lib/fsusage.c: Remove unneeded parentheses around operands of
91933         `defined'.
91934
91935 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91936
91937         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91938         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91939         so that we can be included first.
91940         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91941         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91942         No need to include stddef.h or sys/types.h any more.
91943         Surround local include files with "", not "<>".
91944         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91945         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91946         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91947         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91948         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91949         (ISPRINT): Remove; no longer needed now that we assume C89.
91950
91951         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91952         Preserve errno.
91953
91954         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91955         quotearg_char): Use SIZE_MAX rather than
91956         (size_t) -1 when we are talking about "infinity".
91957
91958         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91959
91960 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91961
91962         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91963         hint that one should use `if (! x) abort ();' rather than `assert
91964         (x);', and anyway it's one less thing to worry about configuring.
91965         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91966         hash_rehash, hash_insert): Use abort rather than assert.
91967
91968 2002-11-22  Bruno Haible  <bruno@clisp.org>
91969
91970         * lib/safe-read.h: Assume C89. Add comments.
91971         (safe_read): Change return type to size_t.
91972         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91973         byte counts > SSIZE_MAX correctly.
91974         * lib/safe-write.h: New file.
91975         * lib/safe-write.c: New file.
91976         * lib/full-read.h: New file.
91977         * lib/full-read.c: New file.
91978         * lib/full-write.h: Assume C89. Add comments.
91979         * lib/full-write.c: Include safe-write.h.
91980         (full_write): Rewritten to use safe_write.
91981         Suggested by Jim Meyering and Paul Eggert.
91982
91983 2002-11-21  Jim Meyering  <jim@meyering.net>
91984
91985         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91986
91987         Merge in changes from the coreutils.
91988
91989         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91990         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91991         <stdint.h>.
91992         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91993         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91994         int.  Work more efficiently if X is the same width as uintmax_t.
91995         Do not compare X to -1, to avoid bogus compiler warning.
91996         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91997         Don't assume that f_frsize and f_bsize are the same type.
91998
91999         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92000         warning on FreeBSD.
92001
92002         * lib/makepath.c (make_path): Restore umask *before* creating the final
92003         component.
92004         (make_path): Minor reformatting.
92005
92006         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92007         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92008         HAVE_MALLOC/HAVE_REALLOC.
92009
92010         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92011         dummy ones.  At least on GNU/Linux systems, `auto' means something
92012         else.
92013         From Michael Stone.
92014
92015 2002-11-21  Bruno Haible  <bruno@clisp.org>
92016
92017         Remove case insensitive option matching.
92018         * lib/argmatch.h (argcasematch): Remove declaration.
92019         (ARGCASEMATCH): Remove macro.
92020         (__xargmatch_internal): Remove case_sensitive argument.
92021         (XARGMATCH): Update.
92022         (XARGCASEMATCH): Remove macro.
92023         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92024         case_sensitive argument.
92025         (argcasematch): Remove function.
92026         (__xargmatch_internal): Remove case_sensitive argument.
92027         (main): Use XARGMATCH instead of XARGCASEMATCH.
92028
92029         * lib/xmalloc.c: Change compile-time error message. Add comment about
92030         required autoconf version.
92031
92032 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92033
92034         Merge argmatch cleanups from Bison.  Assume C89.
92035
92036         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92037         Include stdlib.h, for EXIT_FAILURE.
92038         Always include <string.h>, since we assume C89.
92039         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92040         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92041         Include <stddef.h> instead, since it's all we need for size_t.
92042         (PARAMS): Remove.  All uses removed.
92043         (ARRAY_CARDINALITY): Do not bother to #undef.
92044         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92045         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92046         Remove unnecessary parentheses.
92047         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92048         Insert necessary parentheses.
92049         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92050         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92051
92052 2002-11-19  Bruno Haible  <bruno@clisp.org>
92053
92054         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92055         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92056
92057         * lib/mbswidth.h (PARAMS): Remove macro.
92058         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92059         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92060
92061         * lib/gcd.h (PARAMS): Remove macro.
92062         (gcd): Use ANSI C function declarations.
92063         * lib/gcd.c (gcd): Likewise.
92064
92065 2002-11-15  Bruno Haible  <bruno@clisp.org>
92066
92067         * lib/strcspn.c: Include <stddef.h>.
92068         (strcspn): Use ANSI C function declaration. Change return type to
92069         size_t. Use NULL.
92070         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92071         (strpbrk): Use NULL.
92072         * lib/strpbrk.h (PARAMS): Remove macro.
92073         (strpbrk): Use ANSI C function declaration.
92074         * lib/strstr.c: Don't include <sys/types.h>.
92075         * lib/strstr.h (PARAMS): Remove macro.
92076         (strstr): Use ANSI C function declarations.
92077
92078 2002-11-14  Karl Berry  <karl@gnu.org>
92079
92080         * config/mkinstalldirs: `do' on separate line, instead of
92081         `for var; do'.
92082
92083 2002-11-06  Bruno Haible  <bruno@clisp.org>
92084
92085         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92086         * lib/gcd.c (gcd): Likewise.
92087
92088 2002-11-05  Bruno Haible  <bruno@clisp.org>
92089
92090         * lib/gcd.h: New file, from gettext-0.11.5.
92091         * lib/gcd.c: New file, from gettext-0.11.5.
92092
92093 2002-11-05  Bruno Haible  <bruno@clisp.org>
92094
92095         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92096         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92097         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92098         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92099
92100         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92101         <libintl.h>.
92102         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92103         <libintl.h>.
92104
92105         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92106         * lib/human.c: Include gettext.h instead of <libintl.h>.
92107         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92108         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92109         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92110         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92111         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92112         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92113         (textdomain): Remove definition.
92114         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92115
92116         * lib/long-options.c: Remove include of <libintl.h> and definition of
92117         _.
92118         * lib/same.c: Remove include of <libintl.h> and definition of _.
92119
92120 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92121
92122         * lib/config.charset: A few additions for Solaris.
92123
92124 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92125
92126         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92127         * lib/localcharset.c (locale_charset): Declare as extern "C".
92128
92129 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92130
92131         * lib/config.charset: msdos in uk_UA uses CP1125.
92132
92133 2002-11-04  Bruno Haible  <bruno@clisp.org>
92134
92135         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92136         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92137         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92138         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92139         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92140
92141 2002-11-04  Bruno Haible  <bruno@clisp.org>
92142
92143         * lib/localcharset.c (locale_charset): Don't return an empty string.
92144
92145 2002-11-04  Bruno Haible  <bruno@clisp.org>
92146
92147         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92148         aliases.
92149
92150 2002-11-04  Bruno Haible  <bruno@clisp.org>
92151
92152         * lib/config.charset: Update for newest glibc. Add canonical names
92153         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92154
92155 2002-11-04  Bruno Haible  <bruno@clisp.org>
92156
92157         * lib/config.charset: Add support for NetBSD.
92158
92159 2002-11-04  Bruno Haible  <bruno@clisp.org>
92160
92161         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92162
92163 2002-11-01  Bruno Haible  <bruno@clisp.org>
92164
92165         * configure.in: Add AC_CONFIG_AUX_DIR call.
92166         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92167         test/Makefile.
92168         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92169
92170 2002-09-28  Karl Berry  <karl@gnu.org>
92171
92172         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92173         installed automake until the next release, since changes have been
92174         made.
92175
92176 2002-09-25  Karl Berry  <karl@gnu.org>
92177
92178         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92179         * lib/getopt*: copy from libc/posix.
92180         * lib/gettext.h: copy from gettext.
92181         * lib/.cppi-disable: add strdup.c, gettext.h.
92182
92183 2002-09-25  Karl Berry  <karl@gnu.org>
92184
92185         * config/srclist.txt: enable gettext.h check.
92186         * config/config.{guess,sub}: update from prep.
92187         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92188                 from automake 1.6.3.
92189         See srclist*.
92190
92191 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92192
92193         * regex.c (PATFETCH): Remove the translating fetch.
92194         (PATFETCH_RAW): Rename to PATFETCH.
92195         (set_image_of_range): New fun.
92196         (SET_RANGE_TABLE_WORK_AREA): Use it.
92197         (regex_compile): Don't translate the pattern chars so eagerly.
92198         Only do it when inserting an `exactn' bytecode or when handling
92199         a char-range.
92200         (mutually_exclusive_p): Avoid empty statement.
92201
92202 2002-07-06  Jim Meyering  <meyering@lucent.com>
92203
92204         * m4/README: Don't mention Makefile.am.in.
92205         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92206
92207 2002-07-01  Jim Meyering  <meyering@lucent.com>
92208
92209         * lib/c-stack.c: Include sys/time.h.
92210         From Volker Borchert.
92211
92212 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92213
92214         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92215
92216 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92217
92218         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92219         New macro.  Use it uniformly instead of
92220         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92221         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92222         reported by Vin Shelton.
92223
92224 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92225
92226         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92227         Do not assume SA_SIGINFO behavior.
92228         Bug reported by Jim Meyering on NetBSD 1.5.2.
92229
92230 2002-06-22  Jim Meyering  <meyering@lucent.com>
92231
92232         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92233         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92234
92235         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92236         now that configure.ac uses AC_GNU_SOURCE.
92237         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92238         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92239
92240         Update to latest tools.  Suggestions from Paul Eggert.
92241         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92242         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92243         * m4/fnmatch.m4: Likewise.
92244         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92245         to AC_HEADER_STDBOOL
92246
92247 2002-06-22  Jim Meyering  <meyering@lucent.com>
92248
92249         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92250         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92251
92252 2002-06-22  Jim Meyering  <meyering@lucent.com>
92253
92254         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
92255
92256         * lib/exitfail.c, exitfail.h: Likewise.
92257         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
92258
92259         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
92260         of fnmatch.h.
92261         (EXTRA_DIST): Add fnmatch_loop.c.
92262         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
92263
92264         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
92265         * lib/fnmatch.c: Update from diffutils-2.8.2.
92266         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92267         * lib/fnmatch.h: Remove file.
92268
92269 2002-06-21  Jim Meyering  <meyering@lucent.com>
92270
92271         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92272         * m4/mbrtowc.m4: Likewise.
92273
92274         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92275         * m4/mbswidth.m4: Reflect name change:
92276         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92277         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92278
92279         * m4/lib-link.m4: Update from gettext-0.11.2.
92280         * m4/gettext.m4: Likewise.
92281
92282         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92283         From Alfred M. Szmidt.
92284
92285 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92286
92287         * lib/file-type.h: Report an error if neither S_ISREG nor
92288         S_IFREG is defined, instead of using a test specific to glibc
92289         2.2.  This should be safe, since POSIX requires S_ISREG and
92290         Unix Version 7 had S_IFREG.  We don't need to check for
92291         <sys/types.h> since we don't use any symbols that it defines.
92292
92293 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92294
92295         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92296         $@-t, so that each temporary file name is unique and valid in the first
92297         8 characters, for operation under DOS.
92298
92299 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92300
92301         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92302
92303 2002-06-15  Jim Meyering  <meyering@lucent.com>
92304
92305         Work even with DJGPP 2.03, which lacks support for symlinks.
92306         From Richard Dawe.
92307         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92308         is defined.
92309         * lib/lchown.c (S_ISLNK): Likewise.
92310
92311 2002-06-15  Jim Meyering  <meyering@lucent.com>
92312
92313         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92314         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92315         have been included before this file.
92316
92317 2002-06-14  Jim Meyering  <meyering@lucent.com>
92318
92319         * lib/file-type.h: Use the version from diffutils-2.8.2.
92320         * lib/file-type.c: Likewise.
92321
92322 2002-06-07  Jim Meyering  <meyering@lucent.com>
92323
92324         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92325         They're needed at least for NetBSD 1.5.2.
92326         ($statxfs_includes): Include those same headers.
92327         ($statxfs_includes): Include sys/vfs.h if available.
92328         ($statxfs_includes): Likewise for sys/statvfs.h.
92329         Check for the following members in both structs statfs and statvfs:
92330         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
92331
92332 2002-06-01  Jim Meyering  <meyering@lucent.com>
92333
92334         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
92335         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
92336
92337 2002-05-28  Jim Meyering  <meyering@lucent.com>
92338
92339         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
92340         Reported by Volker Borchert.
92341
92342 2002-05-27  Jim Meyering  <meyering@lucent.com>
92343
92344         Fix a problem seen only on nonconforming systems whereby ls.c's
92345         use of localtime, and then of gettimeofday would cause trouble:
92346         the localtime call used to initialize rpl_gettimeofday's save
92347         mechanism would clobber ls's current local time information so
92348         that in any long listing the first file would always be listed
92349         with date 1970-01-01.  Analysis by Volker Borchert.
92350
92351         * lib/gettimeofday.c (localtime): Undefine.
92352         (rpl_localtime): New function.
92353
92354 2002-05-27  Jim Meyering  <meyering@lucent.com>
92355
92356         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
92357         localtime.
92358
92359         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
92360         use the replacement function; it wouldn't resolve at link time.
92361         Reported by Volker Borchert.
92362
92363 2002-05-22  Jim Meyering  <meyering@lucent.com>
92364
92365         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
92366         file-type.h.
92367         * lib/file-type.h: New file.
92368         * lib/file-type.c (file_type): New file/function.  Extracted from
92369         diffutils.
92370
92371 2002-04-30  Jim Meyering  <meyering@lucent.com>
92372
92373         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
92374
92375 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92376
92377         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
92378
92379 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92380
92381         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
92382         Do not check for alloca.h (no longer used) or stdbool.h (was never
92383         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
92384
92385 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92386
92387         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92388
92389 2002-04-29  Jim Meyering  <meyering@lucent.com>
92390
92391         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92392         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92393         Use AC_FUNC_STRNLEN here instead.
92394
92395         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92396         With autoconf-2.53a, it's part of AC_PROG_CC.
92397
92398 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92399
92400         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92401         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92402
92403 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92404
92405         * lib/sig2str.h, lib/sig2str.c: New files.
92406         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
92407
92408 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92409
92410         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
92411         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
92412         of 127, since 64 is the largest conceivable number for ancient
92413         nonstandard hosts.
92414         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
92415
92416 2002-04-28  Jim Meyering  <meyering@lucent.com>
92417
92418         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
92419
92420 2002-04-24  Jim Meyering  <meyering@lucent.com>
92421
92422         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
92423         (jm_PREREQ): Use it.
92424
92425         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
92426         mach/mach.h fcntl.h.
92427         Check for this function: setlocale.
92428
92429 2002-04-24  Jim Meyering  <meyering@lucent.com>
92430
92431         * lib/gettext.h: New file, from Gettext.
92432         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92433         (libfetish_a_SOURCES): Add gettext.h.
92434
92435 2002-04-16  Jim Meyering  <meyering@lucent.com>
92436
92437         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
92438         ut_pid, ut_id, ut_exit.
92439
92440 2002-04-16  Jim Meyering  <meyering@lucent.com>
92441
92442         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
92443         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
92444         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
92445
92446 2002-04-12  Jim Meyering  <meyering@lucent.com>
92447
92448         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
92449         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
92450         existence of the getmntinfo function.  Needed for Darwin 5.3.
92451
92452         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
92453         This is necessary at least on Darwin 5.3.
92454
92455         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
92456         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
92457         strnlen.o in the library, and that makes some versions of ranlib
92458         object.
92459
92460 2002-04-12  Jim Meyering  <meyering@lucent.com>
92461
92462         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
92463
92464 2002-04-09  Jim Meyering  <meyering@lucent.com>
92465
92466         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
92467         to be more precise.  Rather than saying we're checking whether the
92468         function `works', say what we're testing.
92469         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
92470         Reported by Bruno Haible.
92471
92472 2002-03-10  Jim Meyering  <meyering@lucent.com>
92473
92474         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
92475         Suggestion from Santiago Vila.
92476
92477 2002-03-08  Jim Meyering  <meyering@lucent.com>
92478
92479         * lib/rename.c: Mention that this wrapper is needed also on
92480         mips-dec-ultrix4.4 systems.
92481
92482 2002-03-02  Jim Meyering  <meyering@lucent.com>
92483
92484         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92485         not HAVE_CLOCK_SETTIME.
92486
92487 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92488
92489         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92490         Check for clock_settime.
92491
92492 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92493
92494         * lib/nanosleep.h: Rename to....
92495         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92496
92497         * lib/gettime.c: New file.
92498         * lib/settime.c: New file.
92499         * lib/stime.c: Remove.
92500
92501         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92502         timespec.h.  Remove nanosleep.h.
92503
92504 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92505
92506         * m4/acl.m4: New file.
92507         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92508         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92509
92510 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92511
92512         * lib/acl.c, lib/acl.h: New files.
92513         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92514
92515 2002-02-24  Jim Meyering  <meyering@lucent.com>
92516
92517         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92518         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92519         cause trouble.  Reported by Nelson Beebe.
92520
92521 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92522
92523         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92524         compilers that don't know that xalloc_die never returns.
92525
92526 2002-02-20  Jim Meyering  <meyering@lucent.com>
92527
92528         * lib/getdate.c: Regenerate using bison-1.33.
92529
92530 2002-02-17  Jim Meyering  <meyering@lucent.com>
92531
92532         * config/config.guess (main): Don't use `head -1'; it's no longer
92533         portable. Use `sed 1q' instead.
92534
92535 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92536
92537         * m4/codeset.m4: Upgrade to gettext-0.11.
92538         * m4/gettext.m4: Upgrade to gettext-0.11.
92539         * m4/glibc21.m4: Upgrade to gettext-0.11.
92540         * m4/iconv.m4: Upgrade to gettext-0.11.
92541         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92542         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92543         * m4/lib-ld.m4: New file, from gettext-0.11.
92544         * m4/lib-link.m4: New file, from gettext-0.11.
92545         * m4/lib-prefix.m4: New file, from gettext-0.11.
92546         * m4/progtest.m4: Upgrade to gettext-0.11.
92547
92548 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92549
92550         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92551         (jm_PREREQ): Use it.
92552
92553 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92554
92555         * lib/posixver.c, lib/posixver.h: New files.
92556         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92557
92558 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92559             Bruno Haible  <bruno@clisp.org>
92560
92561         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92562         (fwrite_success_callback): New declaration.
92563         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92564         print_unicode_char. Call failure callback instead of error.
92565         (fwrite_success_callback): New function.
92566         (exit_failure_callback): New function.
92567         (fallback_failure_callback): New function.
92568         (print_unicode_char): Call unicode_to_mb.
92569
92570 2002-01-26  Jim Meyering  <meyering@lucent.com>
92571
92572         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92573         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92574
92575 2002-01-26  Jim Meyering  <meyering@lucent.com>
92576
92577         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92578
92579 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92580
92581         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92582
92583 2002-01-22  Jim Meyering  <meyering@lucent.com>
92584
92585         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92586         Otherwise, some versions of automake would omit the rule that makes
92587         Makefile from Makefile.in.
92588
92589 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92590
92591         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92592         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92593         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92594         (memcoll): Set errno to zero if there is no error.
92595
92596         * lib/quotearg.c (quotearg_buffer_restyled):
92597         Fix bug with quoting buffers containing NUL when backslashing escapes.
92598         This bug was exposed by the other changes in this patch.
92599         (quotearg_n_options): New arg ARGSIZE.
92600         All callers changed.
92601         (quoting_options_from_style): New function.
92602         (quotearg_n_style): Use it.
92603         (quotearg_n_style_mem): New function.
92604
92605         * lib/quotearg.h (quotearg_n_style_mem): New function.
92606
92607 2002-01-19  Jim Meyering  <meyering@lucent.com>
92608
92609         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92610         Remove useless quotes: DF_PROG="df".
92611         * m4/strnlen.m4: New file.
92612
92613 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92614
92615         * lib/backupfile.c (ISDIGIT): Comment fix.
92616         * lib/getdate.y (ISDIGIT): Likewise.
92617         * lib/posixtm.c (ISDIGIT, year): Likewise.
92618         * lib/strverscmp.c (ISDIGIT): Likewise.
92619         * lib/userspec.c (ISDIGIT): Likewise.
92620
92621 2002-01-16  Jim Meyering  <meyering@lucent.com>
92622
92623         * lib/getdate.y: Add three semicolons, each just before a closing
92624         brace. Bison (as of version 1.31) no longer papers over that mistake.
92625
92626 2002-01-05  Jim Meyering  <meyering@lucent.com>
92627
92628         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92629
92630 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92631
92632         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92633         not silently exit merely because the output buffer happens to
92634         have nothing pending.
92635
92636 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92637
92638         See the big note in ../ChangeLog.
92639         * lib/human.c (suffixes): Prefer K to k for 1024.
92640         (generate_suffix_backwards): New function.
92641         (human_readable_inexact): Use it.
92642         * lib/xstrtol.c (__xstrtol): If there is no number but there
92643         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92644         Accept 'K' as well as 'k'.
92645
92646 2001-12-15  Jim Meyering  <meyering@lucent.com>
92647
92648         * lib/regex.h (__restrict_arr): Update from libc.
92649
92650         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92651         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92652         (STREQ): Define.
92653
92654 2001-12-14  Jim Meyering  <meyering@lucent.com>
92655
92656         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92657         Suggestion from Bruno Haible.
92658
92659 2001-12-10  Jim Meyering  <meyering@lucent.com>
92660
92661         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92662         xrealloc, Instead, include "xalloc.h".
92663         (initbuffer): Don't cast xmalloc return value to char*.
92664         (readline): Reword comment.
92665         Don't cast xrealloc return value to char*
92666         Return NULL, not 0.
92667
92668 2001-12-09  Jim Meyering  <meyering@lucent.com>
92669
92670         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92671         about `signed and unsigned type in conditional expression'.
92672         * lib/posixtm.c (posix_time_parse): Likewise.
92673
92674         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92675
92676         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92677         to avoid a pedantic warning.
92678
92679         * lib/getstr.c: Don't include assert.h.
92680         (getstr): Remove warning-evoking assertions.
92681         Return -1 if offset parameter is out of bounds.
92682         Change the type of a local from int to size_t.
92683
92684         * lib/strftime.c (my_strftime_localtime_r): Include this function
92685         definition in the `#if ! HAVE_TM_GMTOFF' block.
92686
92687         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92688         Include xalloc.h instead.
92689
92690 2001-12-02  Jim Meyering  <meyering@lucent.com>
92691
92692         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92693         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92694         included.
92695
92696         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92697         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92698
92699 2001-11-30  Akim Demaille  <akim@epita.fr>
92700
92701         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92702         before being defined.
92703
92704 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92705
92706         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92707         First arg is int, not unsigned.
92708         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92709         (SIZE_MAX, UINT_MAX): New macros.
92710         (quotearg_n_options): Abort if N is negative.
92711         Avoid overflow check on hosts where size_t is 64 bits and int
92712         is 32 bits, as overflow is impossible there.
92713         Fix off-by-one typo that caused unnecessary reallocation.
92714
92715 2001-11-27  Jim Meyering  <meyering@lucent.com>
92716
92717         * lib/tempname.c: Merge with version from libc.
92718         * lib/regex.c: Likewise.
92719
92720         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92721         systems for which STDC_HEADERS is 0, it was not included, resulting in
92722         a warning about an integer-to-pointer conversion problem with getenv.
92723         Reported by Volker Borchert.
92724
92725 2001-11-26  Jim Meyering  <meyering@lucent.com>
92726
92727         * lib/gtod.h: Remove file.
92728         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92729         * lib/gettimeofday.c: Don't include gtod.h.
92730         (GTOD_init): Remove function.
92731         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92732         Suggestion from Volker Borchert.
92733
92734 2001-11-23  Jim Meyering  <meyering@lucent.com>
92735
92736         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92737         it.
92738         * lib/hash.c (struct hash_table): Define it here instead.
92739
92740 2001-11-22  Jim Meyering  <meyering@lucent.com>
92741
92742         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92743
92744 2001-11-20  Jim Meyering  <meyering@lucent.com>
92745
92746         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92747         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92748
92749 2001-11-19  Jim Meyering  <meyering@lucent.com>
92750
92751         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92752         directory.  Use "conftestXXXXXX" as the template.
92753         Suggestion from Paul Eggert.
92754
92755         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92756         immediately, so the test doesn't mistakenly hit the max-open-files
92757         limit.
92758
92759 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92760
92761         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92762         (TEMPORARIES): New macro.
92763         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92764         removes an artificial limitation (e.g. HP-UX 10.20, where
92765         TMP_MAX is 17576).
92766
92767 2001-11-18  Jim Meyering  <meyering@lucent.com>
92768
92769         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92770
92771 2001-11-18  Jim Meyering  <meyering@lucent.com>
92772
92773         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92774         on SunOS 4.
92775
92776         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92777         files will be created before anything else.
92778
92779 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92780
92781         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92782         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92783
92784 2001-11-17  Jim Meyering  <meyering@lucent.com>
92785
92786         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92787         Prompted by a report from Bob Proulx.
92788
92789         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92790         Instead, require UTILS_FUNC_MKSTEMP.
92791
92792 2001-11-17  Jim Meyering  <meyering@lucent.com>
92793
92794         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92795         Now, that's done as part of AC_FUNC_STRTOD.
92796
92797 2001-11-17  Jim Meyering  <meyering@lucent.com>
92798
92799         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92800         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92801         rather than group writable.  Patch by Juan F. Codagnone.
92802
92803         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92804         xrealloc, Instead, include "xalloc.h".
92805
92806         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92807         Remove explicit declarations of xmalloc, xrealloc,
92808         and xstrdup.  Instead, include "xalloc.h".
92809
92810         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92811         unlocked-io.h.
92812         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92813         Likewise.
92814         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92815
92816         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92817         Reported by Padraig Brady.
92818
92819         * lib/mkstemp.c: #undef mkstemp.
92820         Include config.h.
92821         (rpl_mkstemp): Rename from mkstemp.
92822         Protoize.
92823
92824 2001-11-16  Jim Meyering  <meyering@lucent.com>
92825
92826         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92827         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92828         determine the amount of total physical memory, use pstat_getstatic.
92829         HPUX-11 doesn't define _SC_PHYS_PAGES.
92830         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92831         If sysconf couldn't be used to determine the amount of available
92832         physical memory, use both pstat_getstatic and pstat_getdynamic.
92833         Based on a patch from Bob Proulx.
92834
92835 2001-11-10  Jim Meyering  <meyering@lucent.com>
92836
92837         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92838         (jm_PREREQ): Use it.
92839
92840 2001-11-09  Jim Meyering  <meyering@lucent.com>
92841
92842         * m4/jm-macros.m4: Require autoconf-2.52f.
92843         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92844         Use these AC_-prefixed names, not the AM_-prefixed ones.
92845
92846         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92847
92848 2001-11-05  Jim Meyering  <meyering@lucent.com>
92849
92850         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92851
92852 2001-11-04  Jim Meyering  <meyering@lucent.com>
92853
92854         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92855         $DEFS.
92856
92857 2001-11-03  Jim Meyering  <meyering@lucent.com>
92858
92859         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92860         of AC_DEFUN.
92861
92862         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92863         know the name of the variable in the macro definition.
92864
92865 2001-11-03  Jim Meyering  <meyering@lucent.com>
92866
92867         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92868         in argmatch_to_argument call.
92869
92870         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92871         argument.
92872
92873         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92874         e.g., a fault due to an attempt to free a NULL pointer.
92875
92876 2001-11-01  Jim Meyering  <meyering@lucent.com>
92877
92878         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92879         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92880
92881 2001-11-01  Jim Meyering  <meyering@lucent.com>
92882
92883         * lib/dirfd.c, lib/dirfd.h: New files.
92884         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92885
92886         * lib/hash.c (hash_print) [TESTING]: Clean up.
92887
92888 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92889
92890         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92891         to avoid a warning if -Wall.
92892
92893 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92894
92895         * README: New file
92896         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92897         (per RMS's instructions, this is now the canonical source)
92898         * lgpl/, gpl/: New directories.
92899
92900 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92901
92902         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92903
92904 2001-10-21  Jim Meyering  <meyering@lucent.com>
92905
92906         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92907         this code would end up calling gettext even in packages built
92908         with --disable-nls.
92909         * lib/getopt.c (_): Likewise.
92910         * lib/regex.c (_): Likewise.
92911
92912 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92913
92914         * m4/error.m4 (jm_PREREQ_ERROR):
92915         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92916         AC_FUNC_STRERROR_R does that.
92917         Check for strerror declaration.
92918
92919         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92920         are supposed to have them these days.
92921         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92922         Merge changes from latest Autoconf CVS.
92923         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92924         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92925         POSIX decided to standardize on the int flavor of strerror_r.
92926
92927 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92928
92929         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92930         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92931         Use strerror_r that is only a macro, even if it is not a function.
92932         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92933         (private_strerror): Use prototypes, not old-style function definition.
92934         (print_errno_message): New function.
92935         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92936         char*-flavored one.
92937         (error_tail, error, error_at_line): Use it.
92938
92939 2001-10-11  Jim Meyering  <meyering@lucent.com>
92940
92941         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92942         and quote_n (1, ... to avoid clobbering a buffer.
92943
92944 2001-10-05  Jim Meyering  <meyering@lucent.com>
92945
92946         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92947         hash-pjw.h.
92948         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92949         * lib/hash-pjw.h: New file.
92950
92951 2001-09-30  Jim Meyering  <meyering@lucent.com>
92952
92953         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92954         `struct fsstat' has the `f_fstypename' member.
92955         Use that to define FS_TYPE, which is now used to make
92956         the getfsstat link test tighter.
92957
92958 2001-09-30  Jim Meyering  <meyering@lucent.com>
92959
92960         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92961         Include <sys/ucred.h>, for Apple Darwin.
92962         Include sys/mount.h and sys/fs_types.h only if available.
92963         (FS_TYPE): Define.
92964         (read_filesystem_list): Use FS_TYPE.
92965
92966 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92967
92968         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92969         a boolean context.
92970
92971 2001-09-29  Jim Meyering  <meyering@lucent.com>
92972
92973         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92974         [one-argument getmntent function]): Include stdio.h before mntent.h.
92975         SunOS 4.1.x needs it for the declaration of `FILE'.
92976         Patch by Volker Borchert.
92977
92978         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92979         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92980         sys/fs_types.h, and make the link-test for getfsstat guard #include
92981         directives with appropriate #if HAVE_*_H tests so that we can
92982         detect getfsstat on Apple Darwin1.3.7 systems.
92983         Reported by Nelson Beebe.
92984         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92985
92986 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92987
92988         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92989         #defines strtoimax.  Also treat the other strto* functions
92990         like strtoimax.
92991
92992         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92993         Check for strtoul and strtoumax,
92994         as those declarations are made even in the signed case.
92995         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92996         Likewise, for strtol and strtoimax.
92997
92998 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92999
93000         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93001         #defines strtoimax.  Also treat the other strto* functions
93002         like strtoimax.
93003
93004         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93005         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93006         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93007
93008 2001-09-26  Jim Meyering  <meyering@lucent.com>
93009
93010         Most macros in unlocked-io.h had the wrong number of arguments.
93011         * lib/gen-uio: New script.
93012         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93013         * lib/unlocked-io.hin: Remove file.
93014         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93015         rather than trying to embed it here.
93016         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93017         Reported by Padraig Brady.
93018
93019 2001-09-25  Volker Borchert  <bt@teknon.de>
93020
93021         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93022         `result'.
93023
93024 2001-09-24  Jim Meyering  <meyering@lucent.com>
93025
93026         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93027
93028 2001-09-23  Jim Meyering  <meyering@lucent.com>
93029
93030         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93031         instead of the mere test for existence of mntent.h.  The latter
93032         would get a false-positive on AIX 3.4 systems.
93033         In the outer getmntent if-block, don't die if neither of the getmntent
93034         tests succeeds.  Instead, just fall through and continue with the
93035         remaining tests.
93036
93037 2001-09-23  Jim Meyering  <meyering@lucent.com>
93038
93039         * lib/mountlist.c: Remove useless parentheses in #if directives.
93040         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93041         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93042
93043 2001-09-22  Jim Meyering  <meyering@lucent.com>
93044
93045         * m4/gettext.m4: New file.  From gettext.
93046         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93047         * m4/progtest.m4: Likewise
93048         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93049         * m4/glibc21.m4: Likewise.
93050
93051         * m4/libintl.m4: Remove.  No longer used.
93052
93053 2001-09-22  Jim Meyering  <meyering@lucent.com>
93054
93055         * lib/localcharset.c: Update from latest gettext.
93056         * lib/config.charset: Likewise.
93057
93058 2001-09-20  Jim Meyering  <meyering@lucent.com>
93059
93060         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93061         strtoimax.
93062         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93063         strtoumax.
93064
93065 2001-09-20  Jim Meyering  <meyering@lucent.com>
93066
93067         * lib/xstrtol.c (strtoimax): Guard declaration with
93068         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93069         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93070         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93071         (strtoumax): Likewise, for completeness (it wasn't necessary).
93072
93073 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93074
93075         * lib/strtoimax.c (HAVE_LONG_LONG):
93076         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93077         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93078         to work around bug in IBM C compiler.
93079
93080 2001-09-17  Jim Meyering  <meyering@lucent.com>
93081
93082         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93083         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93084         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93085         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93086         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93087         whenever the right hand side need not be expanded by the shell.
93088
93089 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93090
93091         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93092         library.  It's not correct, as some older glibcs are buggy.
93093         fnmatch wasn't fixed until glibc 2.2.
93094
93095         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93096         special shell magic here.
93097
93098 2001-09-16  Jim Meyering  <meyering@lucent.com>
93099
93100         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93101         * m4/jm-macros.m4: Require it.
93102
93103 2001-09-16  Jim Meyering  <meyering@lucent.com>
93104
93105         * lib/mkdir.c: New file.
93106
93107 2001-09-15  Jim Meyering  <meyering@lucent.com>
93108
93109         * m4/jm-macros.m4: Check for help2man.
93110
93111 2001-09-11  Jim Meyering  <meyering@lucent.com>
93112
93113         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93114         The body, by Paul Eggert, was moved here from configure.in.
93115         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93116
93117 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93118
93119         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93120         (jm_PREREQ): Use it.
93121
93122 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93123
93124         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93125         Use ssize_t, not int, to store result of readlink.
93126         Check for ssize_t overflow as well as size_t overflow,
93127         as POSIX says the result of readlink is implementation-defined
93128         when ssize_t overflows.
93129         Remove unnecessary cast to char*.
93130         Use free+malloc instead of realloc, as the storage doesn't need
93131         to be preserved and it's clearer and can be more efficient that way.
93132         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93133         * lib/xreadlink.h (xreadlink): Update prototype.
93134
93135 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93136
93137         * lib/xgetcwd.c: Revert some of the previous change; intead,
93138         fix the HAVE_GETCWD_NULL code to behave more like the
93139         !HAVE_GETCWD_NULL code used to.
93140
93141         Include "xalloc.h".
93142         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93143         invoke xalloc_die.
93144
93145 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93146
93147         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93148         sys/param.h, as pathmax.h includes them.
93149
93150 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93151
93152         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93153         (jm_PREREQ_XGETCWD): New macro.
93154
93155         * m4/getcwd.m4: New file.
93156
93157 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93158
93159         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93160         like the HAVE_GETCWD_NULL code.
93161         Include pathmax.h if not HAVE_GETCWD.
93162         Do not include xalloc.h.
93163         (INITIAL_BUFFER_SIZE): New symbol.
93164         Do not use xmalloc / xrealloc, since the caller is responsible for
93165         handling errors.  Preserve errno around `free' during failure.
93166         Do not overrun buffer when using getwd.
93167
93168 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93169
93170         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93171         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93172         getcwd (NULL, 0).
93173
93174 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93175
93176         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93177         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93178         spotted by Jim Meyering.
93179
93180 2001-09-03  Jim Meyering  <meyering@lucent.com>
93181
93182         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93183         failure.
93184
93185 2001-09-02  Jim Meyering  <meyering@lucent.com>
93186
93187         * lib/error.c: Update from GNU libc.
93188
93189 2001-09-01  Jim Meyering  <meyering@lucent.com>
93190
93191         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93192         Used by df.
93193
93194 2001-09-01  Jim Meyering  <meyering@lucent.com>
93195
93196         * lib/xreadlink.c: New file.
93197         * lib/xreadlink.h: New file.
93198         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93199         xreadlink.h.
93200
93201         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93202         doesn't conflict with sparc Solaris 7's definition in
93203         /usr/include/sys/int_types.h.
93204
93205         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93206         files.
93207         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93208         and strncasecmp as r-values.  Unixware didn't have declarations.
93209
93210 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93211
93212         * lib/xstrtol.h: Add copyright notice.
93213         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93214         LONGINT_INVALID_SUFFIX_CHAR.
93215
93216 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93217
93218         * lib/xstrtol.c (strtoimax): New decl.
93219
93220 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93221
93222         * lib/xgetcwd.c: Don't include pathmax.h.
93223         Include stdlib.h and unistd.h if available.
93224         Include xalloc.h.
93225         (xmalloc, xstrdup, free): Remove decls.
93226         (xgetcwd): Don't assume sizes fit in unsigned.
93227         Check for overflow when computing sizes.
93228         Simplify reallocation code.
93229
93230 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93231
93232         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93233         a directory's st_size can have an arbitrary value, so the old
93234         usage could waste an arbitrary amount of memory.  All uses
93235         changed.
93236         * lib/savedir.h: Update prototype.
93237
93238 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93239
93240         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93241
93242         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93243         old strtoimax.c.
93244
93245         Also, make the following further changes to make this file's
93246         configuration more similar to that of strtol.c:
93247         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93248         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93249         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93250         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93251         changed to signed values.
93252
93253         And make the following changes as well:
93254         Fix copyright notice, as 1999 was missing.
93255         (verify): New macro.
93256         (strtoimax): Check sizes at compile-time, not run-time.
93257         Prefer strtol to strtoll if both work.
93258         (main): Remove; it was not that useful and was a pain to maintain.
93259
93260         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
93261
93262 2001-08-31  Jim Meyering  <meyering@lucent.com>
93263
93264         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
93265         Use an initial, malloc'd, buffer of length 128 rather than
93266         a statically allocated one of length 1024.
93267
93268 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93269
93270         Simplify code, partly by assuming autoconf 2.52 semantics.
93271
93272         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93273
93274         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93275         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93276         All uses removed.
93277         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93278         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93279         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93280         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93281         jm_AC_HEADER_INTTYPES_H.
93282         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93283
93284         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93285
93286         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93287         Quote first arg of AC_DEFUN.
93288         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93289         since they are needed to parse the include file even if we need
93290         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93291         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93292         but with opposite signedness.
93293
93294 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93295
93296         Merge 'exclude' changes from tar 1.13.22.
93297         This fixes one or two unlikely storage allocation overflow bugs,
93298         but doesn't change user-visible behavior otherwise.
93299
93300 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93301
93302         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93303         (jm_PREREQ_EXCLUDE): New macro.
93304
93305 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93306
93307         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93308         tm to be declared.
93309
93310 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93311
93312         * lib/hash.c: Remove '2001' from copyright notice.
93313
93314 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93315
93316         * lib/full-write.h: New file.
93317         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93318         * lib/full-write.c: Correct credits, as cccp.c no longer
93319         exists and anyway it was so heavily changed from the old cccp
93320         code as to be unrecognizable.  Include full-write.h.
93321         (full_write): Return size_t, with short writes meaning failure.
93322         All callers changed.  This fixes a bug with large buffers
93323         on 64-bit hosts.
93324         * lib/utime.c: Include full-write.h.
93325
93326 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93327
93328         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
93329         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
93330         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
93331         Include if available.
93332         (<xalloc.h>): Include
93333         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
93334         (verify): New macro.  Use it to verify that EXCLUDE macros do not
93335         collide with FNM macros.
93336         (struct patopts): New struct.
93337         (struct exclude): Use it, as exclude patterns now come with options.
93338         (new_exclude): Support above changes.
93339         (new_exclude, add_exclude_file):
93340         Initial size must now be a power of two to simplify overflow checking.
93341         (free_exclude, fnmatch_no_wildcards): New function.
93342         (excluded_filename): No longer requires options arg, as the options
93343         are determined by add_exclude.  Now returns bool, not int.
93344         (excluded_filename, add_exclude):
93345         Add support for the fancy new exclusion options.
93346         (add_exclude, add_exclude_file): Now takes int options arg.
93347         Check for arithmetic overflow when computing sizes.
93348         (add_exclude_file): xrealloc might modify errno, so don't
93349         realloc until after errno might be used.
93350
93351         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
93352         New macros.
93353         (free_exclude): New decl.
93354         (add_exclude, add_exclude_file): Now takes int options arg.
93355         (excluded_filename): No longer requires options arg, as the options
93356         are determined by add_exclude.  Now returns bool, not int.
93357
93358 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93359
93360         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
93361
93362 2001-08-27  Jim Meyering  <meyering@lucent.com>
93363
93364         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
93365
93366         * lib/version-etc.c (N_): Remove definition.
93367         Revert most of last change.
93368         Instead, simply don't mark the `Copyright...' string for translation.
93369         Based on advice from Paul Eggert.
93370
93371         * lib/strtoxmax.c: Tweak comment.
93372
93373 2001-08-26  Jim Meyering  <meyering@lucent.com>
93374
93375         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
93376
93377         * m4/xstrtoimax.m4: New file.
93378         * m4/xstrtoumax.m4: Add comments explaining why we
93379         AC_REPLACE_FUNCS(strtol).
93380
93381 2001-08-26  Jim Meyering  <meyering@lucent.com>
93382
93383         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
93384         of copyright with `%s' so translators don't get an untranslated
93385         message in 2002.
93386         (COPYRIGHT_YEAR): Define.
93387         (version_etc): Use fprintf rather than fputs.
93388         Suggestion from Ulrich Drepper.
93389
93390         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93391
93392         * lib/strtoll.c: New file, from GNU libc.
93393         * lib/xstrtoimax.c: New file.
93394
93395         * lib/xstrtol.h: Add xstrtoimax.
93396         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93397         * lib/strtoimax.c: New file.  Likewise, but first define
93398         STRTOUXMAX_SIGNED.
93399
93400         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93401         ...
93402         * lib/strtoxmax.c: ... then renamed to this.
93403
93404 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93405
93406         * m4/inttypes.m4: Add AC_PREREQ(2.13).
93407         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
93408         (jm_AC_TYPE_INTMAX_T): New macro.
93409         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
93410
93411         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
93412
93413         * m4/longlong.m4: Renamed from ulonglong.m4.
93414         * m4/inttypes.m4: Renamed from inttypes_h.m4.
93415         * m4/uintmax_t.m4: Removed.
93416
93417 2001-08-13  Paul Eggert  <eggert@twinsun.com>
93418
93419         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
93420         Port to Solaris 8, where 'sed' requires a space after the 'r'
93421         command, and where sh dislikes "$/".  Clean up the spacing a bit.
93422         Redirect output to $tmp just once.
93423
93424 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
93425
93426         * lib/addext.c (<errno.h>): Include.
93427         (errno): Declare if not defined.
93428         (addext): Work correctly when pathconf returns -1 and leaves
93429         errno alone because there is no limit.  Also, work even if
93430         pathconf returns a value greater than SIZE_MAX.
93431
93432 2001-08-12  Jim Meyering  <meyering@lucent.com>
93433
93434         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93435         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93436         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
93437         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
93438         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
93439         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
93440         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
93441         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
93442         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
93443         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
93444         utime.m4, utimes.m4, xstrtoumax.m4:
93445         Quote the first argument in each use of AC_DEFUN.
93446
93447 2001-08-12  Jim Meyering  <meyering@lucent.com>
93448
93449         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
93450         Simply `return getcwd (NULL, 0);'.
93451         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
93452         Use 1300 as initial value for length, not PATH_MAX.
93453
93454         * lib/pathmax.h: Clean up cpp syntax.
93455
93456 2001-08-12  Jim Meyering  <meyering@lucent.com>
93457
93458         * lib/gettimeofday.c: New file.
93459         * lib/gtod.h: New file.
93460         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
93461
93462 2001-08-05  Jim Meyering  <meyering@lucent.com>
93463
93464         * m4/jm-macros.m4: Require autoconf-2.52.
93465
93466 2001-08-04  Jim Meyering  <meyering@lucent.com>
93467
93468         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
93469         stmt, to get in sync with glibc.
93470
93471 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93472
93473         The following changes are from gettext 0.10.39 as maintained by
93474         Bruno Haible.
93475
93476         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
93477         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
93478         with inverted sense.  All uses changed.
93479
93480         * lib/mbswidth.c: Don't include <limits.h>.
93481         Include <stdlib.h> and <string.h> unconditionally.
93482         (iswcntrl, mbsinit, ISCNTRL): New macros.
93483         (mbsnwidth): Use K&R style function declarations.
93484         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93485         can optimize it when MB_CUR_MAX == 1.
93486         The width of control characters is zero, not 1.
93487
93488 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93489
93490         The following changes are from gettext 0.10.39 as maintained by
93491         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93492
93493         * m4/codeset.m4: Upgrade to serial AM1.
93494         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93495         all uses changed.  Quote first arg of AC_DEFUN.
93496         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93497
93498         * m4/iconv.m4: Upgrade to serial AM2.
93499         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93500         Add --with-libconv-prefix.
93501         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93502         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93503         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93504         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93505         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93506
93507         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93508         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93509         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93510         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93511         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93512         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93513         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93514         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93515         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93516
93517         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93518         string.h any more.
93519
93520         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93521         not the default value.
93522
93523         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93524         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93525         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93526         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93527         Also check for iswcntrl, used for wcwidth fallback.
93528         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93529         to Autoconf 2.13.
93530
93531 2001-08-03  Jim Meyering  <meyering@lucent.com>
93532
93533         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93534         as it was in the original.  Reported by Paul Eggert.
93535
93536 2001-07-16  Jim Meyering  <meyering@lucent.com>
93537
93538         * m4/gettimeofday.m4: New file.
93539         Prompted by a report from Bernhard Baehr.
93540
93541 2001-07-15  Jim Meyering  <meyering@lucent.com>
93542
93543         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93544         stuff. Now it's in ../Makefile.cfg.
93545
93546 2001-07-15  Jim Meyering  <meyering@lucent.com>
93547
93548         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93549         (BUILT_SOURCES): Add unlocked-io.h.
93550         (io_functions): Define.
93551         (unlocked-io.h): New rule.
93552         (DISTCLEANFILES): Add unlocked-io.h.
93553         (all-local): Depend on unlocked-io.h, to ensure it is created.
93554
93555         * lib/unlocked-io.hin: New file
93556
93557         * lib/regex.c: Update from glibc.
93558
93559 2001-07-05  Jim Meyering  <meyering@lucent.com>
93560
93561         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93562         recommendation.
93563         (libfetish_a_SOURCES): Put all .h files here instead.
93564         Remove a thus-exposed (better checks in automake) duplicate and
93565         two unnecessary .h files.
93566
93567 2001-07-04  Jim Meyering  <meyering@lucent.com>
93568
93569         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93570         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93571         distcheck failure.
93572
93573 2001-07-02  Jim Meyering  <meyering@lucent.com>
93574
93575         The following changes were prompted by suggestions from Bruno Haible.
93576
93577         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93578         is now generated.
93579         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93580         definition of EXTRA_DIST.
93581         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93582         ensure that the generated file is created/updated whenever the list
93583         of $(unlocked_functions) is changed.
93584         (jm-glibc-io.m4): New rule.
93585         (unlocked-io.h): New rule -- currently unused.
93586
93587 2001-06-24  Jim Meyering  <meyering@lucent.com>
93588
93589         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93590         unmatched right bracket, rather than kludging it with an extra,
93591         falsely-matching quote in a comment.  Patch by Akim Demaille.
93592
93593 2001-06-11  Jim Meyering  <meyering@lucent.com>
93594
93595         * lib/regex.c: Update from GNU libc.
93596
93597 2001-05-27  Jim Meyering  <meyering@lucent.com>
93598
93599         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93600         Check for ut_type in struct utmp.
93601
93602 2001-05-27  Jim Meyering  <meyering@lucent.com>
93603
93604         * lib/readutmp.h (UT_TYPE): Define.
93605
93606 2001-05-24  Jim Meyering  <meyering@lucent.com>
93607
93608         * lib/argmatch.c: Include "quote.h".
93609         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93610         quote function.  Reported by Göran Uddeborg.
93611
93612 2001-05-22  Jim Meyering  <meyering@lucent.com>
93613
93614         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93615         now that we use the package-supplied version unconditionally.
93616         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93617
93618 2001-05-21  Jim Meyering  <meyering@lucent.com>
93619
93620         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93621         shell syntax errors.
93622
93623 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93624
93625         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93626
93627 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93628
93629         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93630         Don't bother to check library strftime, since
93631         we'll be using our own my_strftime function anyway.
93632         Define my_strftime instead of strftime.
93633
93634 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93635
93636         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93637         which is not yet declared.
93638
93639 2001-05-15  Jim Meyering  <meyering@lucent.com>
93640
93641         * m4/regex.m4: Use proper quoting so brackets appear in the test
93642         program.
93643         Reported by, and with help from, Bruno Haible.
93644
93645 2001-05-13  Jim Meyering  <meyering@lucent.com>
93646
93647         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93648         undefined.
93649
93650 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93651
93652         dirname code cleanup.  base_name now behaves more compatibly
93653         with POSIX basename when given file names that have trailing
93654         slashes, and similarly for dir_name.  Add new primitives
93655         base_len and dir_len.  Put the directory-name-related decls
93656         into dirname.h.
93657
93658         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93659         * lib/backupfile.c (base_name): Likewise.
93660         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93661         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93662         * lib/makepath.c (strip_trailing_slashes): Likewise.
93663         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93664         ISSLASH): Likewise.
93665         * lib/rename.c (strip_trailing_slashes): Likewise.
93666         * lib/same.c (base_name): Likewise.
93667         * lib/stripslash.c (ISSLASH): Likewise.
93668
93669         * lib/addext.c: Include <dirname.h> after size_t is defined.
93670         * lib/backupfile.c: Likewise.
93671
93672         * lib/addext.c (addext): Use base_len to trim redundant
93673         trailing slashes instead of doing it ourselves.
93674         But do not trim the last slash if it is not redundant.
93675
93676         * lib/backupfile.c (find_backup_file_name,
93677         max_backup_version): Use base_len instead of rolling it ourselves.
93678         Handle the case of "" and (on DOS) "C:" correctly.
93679
93680         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93681         needed. Include <string.h>, <dirname.h>.
93682         (base_name): Allow file names ending in slashes, other than names
93683         that are all slashes.  In this case, return the basename followed
93684         by the slashes.  This is more general, and can be used in places
93685         where the original base_name purposely had an assertion failure.
93686         (base_len): New function.
93687
93688         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93689         Do not include <assert.h>; no longer needed.
93690         Include xalloc.h.
93691         (memrchr): Remove decl.
93692         (dir_name_r): Remove.
93693         (dir_len): Renamed from dirlen.  All callers changed.
93694         Rewrite in terms of base_name, for simplicity and consistency.
93695         (dir_name): Never return NULL.  All callers changed.
93696         Do not include <stdlib.h> in test program; no longer needed.
93697         return 0; is fine for test program.
93698
93699         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93700         New macros.
93701         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93702
93703         * lib/path-concat.c (path_concat): Use base_len to compute
93704         base length, not strlen; this means we cannot rely on memcpy
93705         to null-terminate.
93706
93707         * lib/same.c (STREQ): Remove.
93708         (same_name): Handle the case where the basename ends in trailing '/'.
93709
93710         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93711         a slash was stripped.  Do not strip the last slash after a
93712         file system prefix.
93713
93714 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93715
93716         * lib/Makefile.am (libfetish_a_SOURCES):
93717         Add strftime.c, since we now compile it on all hosts.
93718
93719         * lib/strftime.c (my_strftime):
93720         Define to nstrftime if emacs, but only if my_strftime is not defined.
93721         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93722         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93723         Add one more extra argument: a nanoseconds value.
93724         All uses changed.
93725         (ns): New macro.
93726         (my_strftime function): Add %N format.
93727         (emacs_strftimeu): Renamed from emacs_strftime,
93728         with extra ut argument.
93729
93730 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93731
93732         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93733
93734 2001-04-21  Jim Meyering  <meyering@lucent.com>
93735
93736         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93737         doesn't interfere.
93738
93739 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93740
93741         * m4/ftruncate.m4: Check for chsize.
93742         Link with ftruncate.o unconditionally if ftruncate is missing.
93743         This was required when cross-compiling to i586-mingw32msvc.
93744
93745 2001-04-08  Jim Meyering  <meyering@lucent.com>
93746
93747         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93748         recomputed; that's necessary when the offset spans a DST transition.
93749         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93750
93751 2001-04-02  Jim Meyering  <meyering@lucent.com>
93752
93753         * lib/regex.h, regex.c: Update from GNU libc.
93754
93755 2001-03-24  Jim Meyering  <meyering@lucent.com>
93756
93757         * m4/jm-macros.m4: Require autoconf-2.49d.
93758
93759 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93760
93761         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93762
93763 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93764
93765         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93766
93767 2001-03-17  Jim Meyering  <meyering@lucent.com>
93768
93769         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93770         now that the version in autoconf is equivalent.
93771         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93772
93773         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93774         Suggestion from Akim Demaille.
93775
93776         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93777         (jm_PREREQ_TEMPNAME): New function.
93778
93779 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93780
93781         * lib/tempname.c (uint64_t): Define to uintmax_t if
93782         not defined, and if UINT64_MAX is not defined.
93783         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93784         Reported by John David Anglin.
93785
93786 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93787
93788         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93789         resolve alias if codeset is empty.
93790         * lib/config.charset (BeOS): Use wildcard syntax.
93791
93792 2001-03-13  Jim Meyering  <meyering@lucent.com>
93793
93794         * lib/path-concat.c (path_concat)
93795         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93796         concatenating e.g., `C:' and `foo'.
93797         From Bruno Haible.
93798
93799 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93800
93801         * lib/localcharset.c (locale_charset): Don't use
93802         setlocale(LC_CTYPE,NULL). Don't return NULL.
93803         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93804
93805 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93806
93807         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93808         support for DOS/DJGPP.
93809
93810 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93811
93812         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93813         lacks mkstemp.  Compile our own tempname.c if we compile our own
93814         mkstemp.c, as mkstemp relies on tempname.
93815
93816 2001-03-01  Jim Meyering  <meyering@lucent.com>
93817
93818         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93819         AH_VERBATIM really does output its argument verbatim.
93820
93821 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93822
93823         * lib/Makefile.am (libfetish_a_SOURCES):
93824         Add dup-safer.c, fopen-safer.c.
93825         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93826
93827         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93828         * lib/unistd-safer.h: New files.
93829
93830 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93831
93832         The mkstemp replacement is taken from glibc 2.2.2, with some
93833         portability fixes for use outside glibc, as follows:
93834
93835         * lib/tempname.c (struct_stat64): New macro.
93836         (direxists, __gen_tempname): Use it.
93837         This avoids a portability problem with Solaris 8.
93838
93839         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93840         (<stddef.h>, <stdint.h>, <string.h>):
93841         Include only if STDC_HEADERS || _LIBC.
93842         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93843         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93844         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93845         (__set_errno): Define this macro if <errno.h> doesn't.
93846         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93847         Define these macros if <stdio.h> doesn't.
93848         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93849         Define these macros if <sys/stat.h>
93850         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93851         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93852         __xstat64): Define if not _LIBC.
93853         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93854         (__gen_tempname): Invoke gettimeofday only if
93855         HAVE_GETTIMEOFDAY || _LIBC;
93856         otherwise, fall back on plain "time".
93857         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93858
93859         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93860
93861         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93862
93863 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93864
93865         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93866
93867 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93868
93869         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93870         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93871         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93872         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93873
93874 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93875
93876         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93877         Remove workaround macros for hosts that have mbrtowc but not
93878         mbstate_t, as we now insist on proper declarations for both
93879         before using mbrtowc.
93880
93881 2001-02-17  Jim Meyering  <meyering@lucent.com>
93882
93883         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93884         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93885         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93886         UnixWare 7.1.1.
93887
93888         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93889         rather than AC_CACHE_VAL.
93890
93891 2001-02-17  Jim Meyering  <meyering@lucent.com>
93892
93893         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93894         around included file name.
93895
93896         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93897
93898         * lib/strftime.c: Update from GNU libc (the only changes were to
93899         comments).
93900
93901 2001-02-17  Jim Meyering  <meyering@lucent.com>
93902
93903         * lib/regex.c: Update from libc.
93904
93905 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93906
93907         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93908         clash.
93909
93910 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93911
93912         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93913         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93914         Reported by Mark Hounschell via Paul Eggert.
93915
93916 2001-02-07  Jim Meyering  <meyering@lucent.com>
93917
93918         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93919
93920 2001-02-05  Jim Meyering  <meyering@lucent.com>
93921
93922         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93923         it includes the patch required for `large file' support with at least
93924         HP-UX's 10.20 /bin/cc.
93925
93926 2001-02-03  Jim Meyering  <meyering@lucent.com>
93927
93928         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93929         AS_IF, now that it works once again (mysteriously).
93930         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93931
93932 2001-01-30  Jim Meyering  <meyering@lucent.com>
93933
93934         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93935         * m4/chown.m4: Rename conftestchown to conftest.chown.
93936         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93937         s/conftestdir2/conftest.d2/.
93938         * m4/utimes.m4: s/conftestdata/conftest.data/
93939         Inspired by Pavel Roskin's change in autoconf.
93940
93941 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93942
93943         * lib/config.charset: Update for FreeBSD 4.2.
93944
93945 2001-01-27  Jim Meyering  <meyering@lucent.com>
93946
93947         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93948         a use of AS_IF.
93949         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93950
93951 2001-01-26  Jim Meyering  <meyering@lucent.com>
93952
93953         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93954         quotearg.c includes it.
93955
93956 2001-01-26  Jim Meyering  <meyering@lucent.com>
93957
93958         * lib/quotearg.c: Include stddef.h.
93959         * lib/quote.c: Include stddef.h.
93960         Reported by Axel Kittenberger.
93961
93962         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93963         line in double quotes so that it evokes a better diagnostic.
93964         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93965         Reported by Axel Kittenberger.
93966
93967 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93968
93969         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93970         as if it was a `charset'.
93971
93972 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93973
93974         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93975         has const.
93976
93977 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93978
93979         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93980         to avoid a warning.  Add back 'const' to inptr.
93981
93982 2001-01-20  Jim Meyering  <meyering@lucent.com>
93983
93984         Be sure that headers are checked before used in code compiled
93985         for the type checks.
93986         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93987         In place of that, invoke jm_CHECK_ALL_TYPES.
93988         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93989         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93990         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93991         The check for ssize_t was mistakenly run before the test for unistd.h.
93992
93993         The configure-time check for stdbool.h was missing.
93994         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93995         (jm_PREREQ_HASH): New function.
93996
93997 2001-01-17  Jim Meyering  <meyering@lucent.com>
93998
93999         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94000         for autoconf-2.49c.
94001         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94002
94003 2001-01-16  Jim Meyering  <meyering@lucent.com>
94004
94005         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94006         From Bruno Haible.
94007
94008 2001-01-14  Jim Meyering  <meyering@lucent.com>
94009
94010         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94011         foo and bar.  Create conftestdir/ in the script, not in the C code.
94012         Remove directories in the script, not in the C code.
94013         Remove conftestdir{,2} before trying to create the directory.
94014         Make the entire configure script fail if the mkdir fails.
94015
94016 2001-01-14  Jim Meyering  <meyering@lucent.com>
94017
94018         * lib/rename.c: New file.  From Volker Borchert.
94019         Include stdlib.h, string.h or strings.h, and xalloc.h.
94020         Use strip_trailing_slashes rather than open-coding it.
94021
94022 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94023
94024         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94025
94026 2001-01-03  Jim Meyering  <meyering@lucent.com>
94027
94028         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94029         of local `inptr' to avoid warning with some system declarations of
94030         iconv.
94031
94032 2001-01-02  Volker Borchert  <bt@teknon.de>
94033
94034         * m4/rename.m4: New file.
94035         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94036
94037 2001-01-01  Jim Meyering  <meyering@lucent.com>
94038
94039         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94040         even on systems with utmpx.h.  It's necessary for the declaration of
94041         utmp's ut_user member.  Reported by Andreas Jaeger.
94042
94043         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94044         available. They are required for the declarations of getgrgid and
94045         getpwuid resp.
94046         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94047         Reported by Andreas Jaeger.
94048
94049 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94050
94051         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94052         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94053         so `make install' also works in VPATH builds.
94054
94055 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94056
94057         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94058         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94059         can be used in subdirectories.
94060
94061 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94062
94063         * lib/modechange.c: Do not assume that mode_t uses the
94064         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94065         the other-execute bit of FOO even if S_IXOTH != 1.
94066
94067         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94068         WOTH, XOTH, ALLM): New macros.
94069         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94070          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94071         Use them.
94072         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94073         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94074         (mode_compile):
94075         No need to use uintmax_t; unsigned long is long enough.
94076         Don't bother to get suffix since we don't use it.
94077
94078 2000-12-26  Jim Meyering  <meyering@lucent.com>
94079
94080         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94081         better with autoheader.
94082
94083 2000-12-24  Jim Meyering  <meyering@lucent.com>
94084
94085         * lib/hash.c (is_prime): Return explicit boolean values.
94086         (hash_get_first): Return NULL to appease Irix5.6's 89.
94087         Reported by Nelson Beebe.
94088
94089 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94090
94091         * lib/localcharset.c (locale_charset): Add support for Win32.
94092
94093 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94094
94095         * lib/physmem.h, lib/physmem.c: New files.
94096
94097         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94098         (noinst_HEADERS): Add physmem.h.
94099
94100         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94101         't' for compatibility with Solaris 8 sort.
94102
94103 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94104
94105         * lib/config.charset: Add support for BeOS.
94106
94107 2000-12-17  Jim Meyering  <meyering@lucent.com>
94108
94109         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94110         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94111
94112 2000-12-16  Jim Meyering  <meyering@lucent.com>
94113
94114         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94115         N and M) would have treated it like `chown N:N FILE'.
94116
94117         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94118
94119 2000-12-16  Jim Meyering  <meyering@lucent.com>
94120
94121         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94122         SHELLS_FILE to a file name that's useful on djgpp systems.
94123         Include stdlib.h.
94124         (ADDITIONAL_DEFAULT_SHELLS): Define.
94125         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94126         Based mostly on a patch from Prashant TR.
94127
94128 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94129
94130         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94131         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94132         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94133
94134 2000-12-08  Andreas Schwab  <schwab@suse.de>
94135
94136         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94137         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94138
94139 2000-12-07  Jim Meyering  <meyering@lucent.com>
94140
94141         * lib/stripslash.c (ISSLASH): Define.
94142         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94143         `/'.
94144         From Prashant TR.
94145
94146         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94147         (dir_name_r): Declare this function as static.
94148         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94149         manifest itself on a name containing a mix of slashes and
94150         backslashes.
94151         Make this function work with names starting with a DOS-style
94152         drive letter and colon prefix.
94153         (dir_name): Append `.' if necessary.
94154         Based mostly on patches from Prashant TR and Eli Zaretskii.
94155
94156         * lib/dirname.h (dir_name_r): Remove prototype.
94157
94158 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94159
94160         * m4/off_t-format.m4: Remove this file.
94161         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94162
94163 2000-12-06  Jim Meyering  <meyering@lucent.com>
94164
94165         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94166         replacement strtoull, we may well need the replacement strtoul, too.
94167         Check for declarations of strtoul and strtoull.
94168         Check for strtol.  Mainly as a cue to cause automake to include
94169         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94170         Check for limits.h -- strtol.c needs it.
94171
94172 2000-12-05  Jim Meyering  <meyering@lucent.com>
94173
94174         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94175
94176 2000-12-04  Jim Meyering  <meyering@lucent.com>
94177
94178         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94179         Also include memory.h, stdlib.h, unistd.h if appropriate.
94180         Reported by Andreas Jaeger (conflicting declaration of malloc).
94181
94182 2000-12-02  Jim Meyering  <meyering@lucent.com>
94183
94184         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94185         * m4/jm-macros.m4 (jm_MACROS): require it.
94186
94187 2000-12-02  Jim Meyering  <meyering@lucent.com>
94188
94189         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94190
94191 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94192
94193         * lib/memrchr.c: Include <config.h> before any system include file.
94194
94195 2000-11-30  Jim Meyering  <meyering@lucent.com>
94196
94197         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94198
94199 2000-11-30  Jim Meyering  <meyering@lucent.com>
94200
94201         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94202
94203 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94204
94205         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94206
94207 2000-11-26  Jim Meyering  <meyering@lucent.com>
94208
94209         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94210
94211 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94212
94213         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94214         size of (size_t) -1; it's not portable.
94215
94216 2000-11-17  Jim Meyering  <meyering@lucent.com>
94217
94218         * lib/strstr.c: Update from GNU libc.
94219
94220 2000-11-17  Akim Demaille  <akim@epita.fr>
94221
94222         * lib/obstack.h: Formatting changes.
94223         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94224         prevent type checking.
94225         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94226         cast the value to (void *): assigning a `foo *' to a `void *'
94227         variable is valid.
94228         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94229
94230 2000-11-16  Jim Meyering  <meyering@lucent.com>
94231
94232         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94233
94234 2000-11-11  Jim Meyering  <meyering@lucent.com>
94235
94236         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94237
94238 2000-11-10  Jim Meyering  <meyering@lucent.com>
94239
94240         * lib/obstack.h: Update from GNU libc.
94241         * lib/obstack.c: Likewise.
94242
94243 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94244
94245         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94246
94247 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94248
94249         * lib/getusershell.c (setusershell): Use rewind rather than
94250         fseek/fseeko, to avoid configuration hassles with fseeko.
94251         Don't bother opening SHELLS_FILE if shellstream is NULL;
94252         it's not necessary.
94253
94254 2000-11-05  Jim Meyering  <meyering@lucent.com>
94255
94256         * lib/makepath.h (make_dir): Declare.
94257         * lib/makepath.c (make_dir): Remove `static' attribute.
94258         Tweak a comment.
94259
94260 2000-11-04  Jim Meyering  <meyering@lucent.com>
94261
94262         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
94263
94264 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
94265
94266         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94267         last one in a bucket, advance to the next bucket.
94268
94269 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94270
94271         * lib/fnmatch.c: Do not comment out all the code if we are using
94272         the GNU C library, because in some cases we are replacing buggy
94273         code in the GNU C library itself.
94274
94275 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94276
94277         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94278         (regex_compile): Catch bogus \(\1\).
94279
94280 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94281
94282         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94283         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94284         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94285
94286 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94287
94288         * lib/error.h, getline.h, modechange.h:
94289         Remove "2000" from Copyright line, as the file hasn't been
94290         changed this year other than in the copyright notice.
94291
94292         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94293         was changed this year.
94294
94295 2000-10-29  Jim Meyering  <meyering@lucent.com>
94296
94297         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94298         renaming.
94299         * m4/ls-mntd-fs.m4: Likewise
94300
94301 2000-10-29  Jim Meyering  <meyering@lucent.com>
94302
94303         * lib/xstat.in: Fix grammar in comment.
94304
94305 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94306
94307         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94308         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94309         doesn't define __restrict_arr.
94310
94311 2000-10-28  Jim Meyering  <meyering@lucent.com>
94312
94313         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94314         (jm_PREREQ_MEMCHR): New function.
94315
94316 2000-10-28  Jim Meyering  <meyering@lucent.com>
94317
94318         * lib/memchr.c: Update from libc.
94319         Adjust for portability:
94320         [HAVE_STDLIB_H]: Include stdlib.h.
94321         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94322         Undef __memchr, too.
94323         [!weak_alias]: Define __memchr to memchr.
94324
94325         * lib/regex.c: Update from libc.
94326         * lib/regex.h: Likewise.
94327         * lib/getopt1.c: Likewise.
94328         * lib/memcmp.c: Likewise.
94329
94330         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
94331         Avoid using fseek, when possible -- it's broken by design.
94332         Patch by Ulrich Drepper.
94333
94334 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
94335
94336         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
94337         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
94338         Giving in to popular pressure to shut up the compiler with casts.
94339
94340 2000-10-26  Jim Meyering  <meyering@lucent.com>
94341
94342         * lib/strftime.c: Update from libc.
94343
94344 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
94345
94346         * regex.c: More `unsigned char' -> `re_char' changes.
94347         Also change several `int' into `re_wchar_t'.
94348         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
94349         (PUSH_FAILURE_POINTER): Don't cast any more.
94350         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
94351         We want GCC to complain, since this piece of code makes
94352         re_match non-reentrant, which *should* be fixed.
94353         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
94354         (EXTEND_BUFFER): Use RETALLOC.
94355         (SET_LIST_BIT): Don't cast.
94356         (re_wchar_t): New type.
94357         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
94358         that those two functions will always properly return.
94359         (IMMEDIATE_QUIT_CHECK): Cast to void.
94360         (analyse_first): Use recursion rather than an explicit stack.
94361         (re_compile_fastmap): Can't fail anymore.
94362         (re_search_2): Don't check re_compile_fastmap for failure.
94363         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
94364         Now also sets the new value (passed in a new argument).
94365         (re_match_2_internal): Use it.
94366         Also, use a new var `reg' of type size_t when looping through regs
94367         rather than reuse the inappropriate `mcnt'.
94368
94369 2000-10-25  Jim Meyering  <meyering@lucent.com>
94370
94371         * lib/obstack.c: Update from libc.
94372
94373 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
94374
94375         * regex.c (regex_compile): Change the way of handling a range from
94376         a char less than 256 to a char not less than 256.
94377
94378 2000-10-24  Andrew Innes  <andrewi@gnu.org>
94379
94380         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
94381         NT-Emacs only.
94382         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
94383         so that re_search functions only quit when callers expect them to.
94384
94385 2000-10-23  Jim Meyering  <meyering@lucent.com>
94386
94387         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94388         wrong.  That set_locale call must not have any side effects.
94389         From Paul Eggert.
94390
94391 2000-10-22  Jim Meyering  <meyering@lucent.com>
94392
94393         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94394         [CYCLIC]: Remove now-unused definition.
94395
94396         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94397         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94398         Suggestion from Ulrich Drepper.
94399
94400 2000-10-21  Jim Meyering  <meyering@lucent.com>
94401
94402         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94403         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94404         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94405
94406 2000-10-21  Jim Meyering  <meyering@lucent.com>
94407
94408         * lib/dirname.c (memrchr): Declare if necessary.
94409         (dir_name): Remove the restriction that there be no
94410         trailing slashes.  Now, this code skips past them, effectively
94411         ignoring them.
94412         [TEST_DIRNAME] (main): New unit tests.
94413
94414         * lib/memrchr.c: New file from GNU libc.
94415         Undef __memrchr, too.
94416         [!weak_alias]: Define __memrchr to memrchr.
94417         Guard weak_alias use with `#ifdef weak_alias'.
94418
94419 2000-10-21  Jim Meyering  <meyering@lucent.com>
94420
94421         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
94422         (dir_name): Use dir_name_r.
94423         * lib/dirname.h (dir_name_r): Declare it.
94424
94425 2000-10-17  Jim Meyering  <meyering@lucent.com>
94426
94427         * lib/quote.h (PARAMS): Define and use.
94428         Reported by Akim Demaille.
94429
94430         * lib/getopt.c: Update from libc.
94431
94432 2000-10-16  Jim Meyering  <meyering@lucent.com>
94433
94434         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94435         setlocale.
94436         From Jan Fedak.
94437
94438 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
94439
94440         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
94441
94442 2000-09-25  Jim Meyering  <meyering@lucent.com>
94443
94444         * lib/md5.h (rol): Define (from GnuPG).
94445
94446         * lib/sha.c: Give credit (GnuPG) where due.
94447         (M): Use rol rather than open-coding it.
94448         Add a FIXME comment.
94449
94450 2000-09-21  Jim Meyering  <meyering@lucent.com>
94451
94452         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
94453         Reported by Michael Stone.
94454
94455 2000-09-20  Jim Meyering  <meyering@lucent.com>
94456
94457         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
94458         (noinst_HEADERS): Add sha.h.
94459         Based on code from Scott G. Miller and from GnuPG.
94460
94461 2000-09-18  Jim Meyering  <meyering@lucent.com>
94462
94463         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
94464         LIBS. Otherwise, everyone ends up linking with -lelf for some
94465         configurations.
94466         Reported by Mike Stone.
94467
94468 2000-09-15  Jim Meyering  <meyering@lucent.com>
94469
94470         * lib/regex.c: Update from libc.
94471
94472 2000-09-10  Jim Meyering  <meyering@lucent.com>
94473
94474         * lib/getopt.c (_getopt_internal): Update from glibc.
94475
94476 2000-09-09  Jim Meyering  <meyering@lucent.com>
94477
94478         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
94479         think it should be used as a general replacement for isascii.
94480         * lib/fnmatch.c: Likewise.
94481         * lib/mbswidth.c: Likewise
94482         * lib/regex.c: Likewise.
94483
94484         Don't use atoi.
94485         * lib/userspec.c: Include sys/param.h and limits.h.
94486         Include xstrtol.h.
94487         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94488         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94489         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94490         UID, GID.  Check range.
94491
94492 2000-09-06  Jim Meyering  <meyering@lucent.com>
94493
94494         * lib/getopt.c (_getopt_internal): Update from glibc.
94495
94496 2000-08-30  Jim Meyering  <meyering@lucent.com>
94497
94498         * lib/strftime.c: Merge in changes from GNU libc.
94499
94500 2000-08-26  Jim Meyering  <meyering@lucent.com>
94501
94502         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94503         * m4/fpending.m4: New file.
94504
94505 2000-08-26  Jim Meyering  <meyering@lucent.com>
94506
94507         * lib/closeout.c: Include "__fpending.h".
94508         (close_stdout_status): Return right away if there's nothing to flush.
94509
94510         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94511         * lib/__fpending.c: New file.
94512         * lib/__fpending.h: New file.
94513
94514 2000-08-20  Jim Meyering  <meyering@lucent.com>
94515
94516         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94517         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94518         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94519
94520 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94521
94522         Improve fileutils installation on systems where running
94523         programs (like install) can't be unlinked.
94524         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94525         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94526
94527 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94528
94529         Standardize on "memory exhausted" instead of "Memory exhausted"
94530         or "virtual memory exhausted".
94531         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94532         "virtual memory exhausted".
94533         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94534         our own message.
94535         * lib/userspec.c (parse_user_spec): Likewise.
94536         * lib/bumpalloc.h: comment fix
94537         * lib/same.c, userspec.c: Include xalloc.h.
94538
94539         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94540         not char *const and pointing to a constant array.
94541         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94542         (xrealloc): Comment fix.
94543
94544         * lib/userspec.c (parse_user_spec):
94545         Don't translate a message until just before returning,
94546         to avoid unnecessary translation.
94547
94548 2000-08-07  Jim Meyering  <meyering@lucent.com>
94549
94550         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94551         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94552         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94553         getgroups.c, gethostname.c, getopt.h, group-member.c,
94554         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94555         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94556         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94557         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94558         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94559         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94560         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94561         yesno.c: Back out Copyright date changes for each file with no change
94562         this year.  This eases coordination with other programs using the same
94563         source code modules.  From Paul Eggert.
94564
94565 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94566
94567         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94568         not char, for compatibility with glibc 2.1.3 strftime.c.
94569
94570 2000-08-03  Greg McGary  <greg@mcgary.org>
94571
94572         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94573         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94574         (EXTEND_BUFFER): Use them.
94575
94576 2000-08-01  Jim Meyering  <meyering@lucent.com>
94577
94578         * lib/dirname.c (ISSLASH): Define.
94579         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94580         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94581         both `\' and `/' may be use as path separators.
94582         Based on a patch from Prashant TR.
94583
94584 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94585
94586         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94587         slot vector a constant, since it might get modified.
94588
94589 2000-07-31  Jim Meyering  <meyering@lucent.com>
94590
94591         * lib/xmalloc.c: Use `virtual memory exhausted', not
94592         `Memory exhausted'.
94593         * lib/obstack.c (print_and_abort): Likewise.
94594
94595 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94596
94597         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94598         buffer, so that the caller can always quote one small
94599         component of a "memory exhausted" message in slot 0.
94600         From a suggestion by Jim Meyering.
94601
94602 2000-07-30  Jim Meyering  <meyering@lucent.com>
94603
94604         * lib/makepath.c (make_path): Quote the other instance, too.
94605
94606         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94607         (STATIC_BUF_SIZE): Define.
94608         (quotearg_n_options): Use only statically allocated storage when
94609         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94610         than STATIC_BUF_SIZE.
94611
94612 2000-07-29  Jim Meyering  <meyering@lucent.com>
94613
94614         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94615         * lib/dirname.c (dir_name): Likewise.
94616
94617         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94618         `/'.
94619
94620         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94621         (dir_name): Assert that there are no trailing slashes.
94622
94623 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94624
94625         * lib/mbswidth.h (mbswidth): Add a flags argument.
94626         (mbswidth): New declaration.
94627         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94628         * lib/mbswidth.c (mbswidth): Add a flags argument.
94629         (mbsnwidth): New function.
94630
94631 2000-07-24  Jim Meyering  <meyering@lucent.com>
94632
94633         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94634
94635 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94636
94637         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94638
94639 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94640
94641         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94642         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94643         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94644         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94645         invoke multibyte primitives.
94646
94647 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94648
94649         * lib/quotearg.c:
94650         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94651         so that mbstate_t is always defined.
94652
94653         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94654         be 1 in at least one GCC installation, and this configuration
94655         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94656         performance on hosts that have mbrtowc but have only unibyte
94657         locales, but I assume these hosts are rare.
94658
94659 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94660
94661         * lib/mbswidth.c (_XOPEN_SOURCE):
94662         Don't define; this causes problems on Solaris 7.
94663         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94664
94665 2000-07-23  Jim Meyering  <meyering@lucent.com>
94666
94667         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94668         too: getgrgid, getpwuid, getuid.
94669
94670 2000-07-23  Jim Meyering  <meyering@lucent.com>
94671
94672         * lib/basename.c (base_name): Add an assertion.
94673
94674 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94675
94676         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94677         shadow its mbsinit function.
94678
94679 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94680
94681         * lib/mbswidth.h: New file.
94682         * lib/mbswidth.c: New file.
94683         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94684         (noinst_HEADERS): Add mbswidth.h.
94685
94686 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94687
94688         * lib/config.charset: Add support for FreeBSD. Improve support for
94689         HP-UX and IRIX 6.
94690
94691 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94692
94693         * m4/mbswidth.m4: New file.
94694         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94695
94696 2000-07-15  Jim Meyering  <meyering@lucent.com>
94697
94698         * lib/makepath.c: Include quote.h.
94699         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94700         corresponding argument in a `quote (...)' call.
94701         Give better diagnostics.
94702
94703         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94704         (noinst_HEADERS): Add quote.h.
94705
94706         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94707         from tar's src/misc.c.
94708         * lib/quote.h: New file.  Prototypes for same.
94709
94710 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94711
94712         From a suggestion by Bruno Haible.
94713         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94714         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94715         to decide whether to define the BeOS workaround macro;
94716         this adjusts to the change to AC_MBSTATE_T.
94717
94718 2000-07-14  Jim Meyering  <meyering@lucent.com>
94719
94720         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94721         jm_AC_TYPE_UINTMAX_T.
94722
94723 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94724
94725         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94726
94727         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94728         quotearg_buffer_restyled): Add support for
94729         clocale_quoting_style.  Undo previous change to
94730         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94731         and "{RIGHT QUOTATION MARK}" msgids.
94732
94733 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94734
94735         From a suggestion by Bruno Haible.
94736         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94737         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94738         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94739         and mbstate_t, to a single-part test that simply defines mbstate_t.
94740         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94741         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94742
94743 2000-07-10  Jim Meyering  <meyering@lucent.com>
94744
94745         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94746
94747         * m4/gnu-source.m4: Output to confdefs.h directly.
94748         Suggestion from Akim Demaille.
94749
94750 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94751
94752         The old behavior of quoting `like this' doesn't look good with
94753         newer, ISO-style fonts.  See:
94754         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94755
94756         Instead, quote "like this" by default.  Let the translator
94757         tailor the locale-specific quoting behavior by providing
94758         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94759
94760         * lib/quotearg.c (N_): New macro.
94761         (gettext_default): New function.
94762         (quotearg_buffer_restyled): Use
94763         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94764         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94765
94766 2000-07-09  Jim Meyering  <meyering@lucent.com>
94767
94768         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94769         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94770
94771         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94772         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94773
94774 2000-07-09  Jim Meyering  <meyering@lucent.com>
94775
94776         * lib/Most files: Update copyright dates to include 2000.
94777
94778 2000-07-08  Jim Meyering  <meyering@lucent.com>
94779
94780         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94781         if not defined.
94782         (xgethostname): Remove now-unnecessary #ifdef.
94783         Move declaration of `err' into loop where it's used.
94784
94785 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94786         and Bruno Haible  <haible@clisp.cons.org>
94787
94788         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94789         only if the test for an object-type mbstate_t fails.  This
94790         prevents us from mistakenly reporting that mbstate_t is a
94791         system object type after we "#define mbstate_t int" to work
94792         around its lack.
94793
94794 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94795         and Bruno Haible  <haible@clisp.cons.org>
94796
94797         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94798
94799 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94800
94801         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94802         to strerror_r.
94803         Include <ctype.h> for use of isalpha.
94804
94805 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94806
94807         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94808         by allocating a larger buffer. Test the gethostname return value for
94809         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94810         returns an error and ENAMETOOLONG isn't defined.
94811
94812 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94813
94814         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94815         dimension.
94816
94817 2000-07-04  Jim Meyering  <meyering@lucent.com>
94818
94819         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94820         of the deprecated AC_CHECKING.
94821
94822 2000-07-04  Jim Meyering  <meyering@lucent.com>
94823
94824         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94825         Reported by Bruno Haible.
94826
94827 2000-07-04  Jim Meyering  <meyering@lucent.com>
94828
94829         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94830         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94831         lacks mbrtowc.
94832
94833 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94834
94835         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94836         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94837
94838 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94839         and Bruno Haible  <haible@clisp.cons.org>
94840
94841         * lib/quotearg.c (mbrtowc):
94842         Assign to *pwc, and return 1 only if result is nonzero.
94843         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94844
94845 2000-07-03  Jim Meyering  <meyering@lucent.com>
94846
94847         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94848
94849 2000-07-03  Jim Meyering  <meyering@lucent.com>
94850
94851         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94852         This is necessary to get a definition of e.g., UTMP_FILE on
94853         HP-UX 10.20.
94854         From Bob Proulx.
94855
94856 2000-07-02  Jim Meyering  <meyering@lucent.com>
94857
94858         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94859
94860         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94861         AC_LIBOBJ(function_name).
94862         * m4/chown.m4: Likewise.
94863         * m4/fnmatch.m4: Likewise.
94864         * m4/ftruncate.m4: Likewise.
94865         * m4/getgroups.m4: Likewise.
94866         * m4/getline.m4: Likewise.
94867         * m4/group-member.m4: Likewise.
94868         * m4/jm-macros.m4: Likewise.
94869         * m4/lstat.m4: Likewise.
94870         * m4/malloc.m4: Likewise.
94871         * m4/memcmp.m4: Likewise.
94872         * m4/nanosleep.m4: Likewise.
94873         * m4/putenv.m4: Likewise.
94874         * m4/realloc.m4: Likewise.
94875         * m4/regex.m4: Likewise.
94876         * m4/stat.m4: Likewise.
94877         * m4/strftime.m4: Likewise.
94878
94879 2000-07-02  Jim Meyering  <meyering@lucent.com>
94880
94881         * lib/quotearg.c (mbstate_t): Don't define here.
94882
94883 2000-07-02  Jim Meyering  <meyering@lucent.com>
94884
94885         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94886
94887 2000-07-01  Jim Meyering  <meyering@lucent.com>
94888
94889         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94890
94891 2000-07-01  Jim Meyering  <meyering@lucent.com>
94892
94893         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94894         problem.
94895
94896 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94897
94898         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94899         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94900
94901 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94902
94903         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94904         per change in ../m4/ls-mntd-fs.m4.
94905         (read_filesystem_list): Ignore symbolic links.
94906
94907 2000-06-29  Jim Meyering  <meyering@lucent.com>
94908
94909         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94910         for declaration of strcmp.
94911
94912         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94913
94914         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94915         Avoid warning by casting result to `char *' to remove `const'.
94916
94917 2000-06-28  Jim Meyering  <meyering@lucent.com>
94918
94919         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94920         included by quotearg.c, for which we perform this test.  From
94921         Bruno Haible.
94922
94923 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94924
94925         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94926         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94927         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94928
94929 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94930
94931         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94932
94933 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94934
94935         savedir now sets errno on failure and invokes xmalloc to get memory.
94936         Fix a couple of other minor bugs while we're at it.
94937
94938         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94939         (NAMLEN): Remove macro.
94940         (malloc, realloc): Remove decls.
94941         (stpcpy): Likewise.
94942         ("xalloc.h"): Include.
94943         (NAME_SIZE_DEFAULT): New macro.
94944         (savedir): Use xmalloc / xrealloc to allocate memory.
94945         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94946         Skip "" directory entries.
94947         Use strlen to calculate directory entry length, since the old method
94948         is rarely used these days and isn't worth supporting.
94949         Don't use a pointer after freeing it.
94950         Check for integer overflow when calculating allocation size.
94951         Use memcpy to copy entries, instead of stpcpy.
94952         Set errno properly when returning NULL.
94953         Check for readdir error.
94954
94955 2000-06-26  Jim Meyering  <meyering@lucent.com>
94956
94957         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94958
94959 2000-06-25  Jim Meyering  <meyering@lucent.com>
94960
94961         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94962         Linux header bug when _XOPEN_SOURCE is defined to 500.
94963
94964 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94965
94966         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94967         deficiency.
94968
94969 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94970
94971         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94972         Include xalloc.h.
94973         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94974
94975 2000-06-24  Jim Meyering  <meyering@lucent.com>
94976
94977         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94978         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94979         for which strerror does return char*, but which lacks a conveniently
94980         accessible declaration of the function.  If the compile-test says
94981         strerror_r doesn't work, then resort to a `run'-test that works on
94982         BeOS and segfaults on DEC Unix.
94983
94984 2000-06-24  Jim Meyering  <meyering@lucent.com>
94985
94986         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94987
94988 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94989
94990         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94991         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94992
94993 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94994
94995         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94996         (mbrtowc, mbstate_t): Define substitutes if
94997         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94998         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94999         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95000
95001 2000-06-23  Jim Meyering  <meyering@lucent.com>
95002
95003         * m4/afs.m4: Add missing AC_MSG_RESULT.
95004         Reported by Bruno Haible.
95005
95006         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95007         Suggestion from Bruno Haible.
95008
95009 2000-06-23  Jim Meyering  <meyering@lucent.com>
95010
95011         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95012
95013 2000-06-21  Jim Meyering  <meyering@lucent.com>
95014
95015         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95016
95017 2000-06-21  Jim Meyering  <meyering@lucent.com>
95018
95019         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95020         (noinst_HEADERS): Add getstr.h.
95021
95022         * lib/getline.c (getstr): Move into a separate file.
95023         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95024         the following changes: new parameter, delim2; both delim[12]
95025         parameters have type `int', not `char'.  The latter would lose
95026         with 8-bit delimiters.
95027         * lib/getstr.h: New file.
95028
95029 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95030
95031         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95032         than 1024, return a memory chunk of least possible size, instead
95033         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95034         Use free/xmalloc instead of xrealloc to avoid copying for very long
95035         paths.
95036
95037 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95038
95039         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95040         the empty string.
95041
95042 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95043
95044         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95045         address, not strdup.  Include <stdlib.h> and don't declare free().
95046
95047 2000-06-19  Jim Meyering  <meyering@lucent.com>
95048
95049         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95050
95051 2000-06-18  Jim Meyering  <meyering@lucent.com>
95052
95053         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95054
95055         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95056         `checking whether...' message to be consistent with that of the
95057         lstat test.
95058
95059 2000-06-18  Jim Meyering  <meyering@lucent.com>
95060
95061         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95062         Besides, these days every porting target provides a mkdir function.
95063
95064         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95065         needed. (this snippet comes from src/system.h).
95066
95067 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95068
95069         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95070
95071 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95072
95073         * lib/human.c (adjust_value): New function.
95074         (human_readable_inexact): Apply rounding style even when
95075         printing approximate values.
95076
95077 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95078
95079         * lib/human.c (human_readable_inexact): Allow an input block
95080         size that is not a multiple of the output block size, and vice versa.
95081         Reported by Piergiorgio Sartor.
95082
95083 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95084
95085         * lib/getdate.y (get_date): Apply relative times after time
95086         zone indicator, not before.  Reported by Todd A. Jacobs.
95087
95088 2000-06-13  Jim Meyering  <meyering@lucent.com>
95089
95090         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95091
95092         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95093
95094 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95095
95096         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95097
95098 2000-06-12  Jim Meyering  <meyering@lucent.com>
95099
95100         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95101         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95102         optional argument.
95103         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95104         the optional argument, `lib'.
95105
95106 2000-06-08  Jim Meyering  <meyering@lucent.com>
95107
95108         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95109
95110 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95111
95112         Rewrite largefile configuration so that we don't need to run
95113         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95114         AC_CANONICAL_HOST in configure.in -- jmm]
95115
95116         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95117         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95118         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95119         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95120         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95121         All uses changed.
95122         Instead of inspecting the output of getconf, try to compile the
95123         test program without and with the macro definition.
95124         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95125         for getconf.  Instead, check for the needed flags by compiling
95126         test programs.
95127
95128 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95129
95130         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95131
95132 2000-06-04  Jim Meyering  <meyering@lucent.com>
95133
95134         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95135         SunOS 4.1.4 for which gid_t is an unsigned type.
95136
95137 2000-06-03  Jim Meyering  <meyering@lucent.com>
95138
95139         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95140         now that autoconf requires that.
95141
95142         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95143         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95144         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95145
95146 2000-06-03  Jim Meyering  <meyering@lucent.com>
95147
95148         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95149
95150 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95151
95152         * m4/glibc21.m4: New file.
95153         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95154
95155 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95156
95157         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95158         newer, don't install charset.alias.
95159         * lib/config.charset: Change the Linux/glibc rules so they become empty
95160         on glibc-2.1 or newer.
95161
95162 2000-06-02  Jim Meyering  <meyering@lucent.com>
95163
95164         * lib/mountlist.c: Back out last change.  Instead, do this...
95165         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95166         me_dummy member using the same `ignore'-testing code.
95167         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95168         fs_type strings.
95169         From Mark D. Roth.
95170
95171 2000-05-29  Jim Meyering  <meyering@lucent.com>
95172
95173         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95174         mounts with the `ignore' attribute.  Based on a patch from
95175         Mark D. Roth.
95176
95177 2000-05-28  Jim Meyering  <meyering@lucent.com>
95178
95179         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95180         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95181         * m4/stat.m4: Likewise.
95182         * m4/lstat.m4: Likewise.
95183         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95184
95185         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95186         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95187
95188 2000-05-26  Jim Meyering  <meyering@lucent.com>
95189
95190         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95191
95192 2000-05-24  Jim Meyering  <meyering@lucent.com>
95193
95194         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95195         autoconf requires that.
95196         * m4/lib-check.m4: Likewise.
95197         * m4/jm-macros.m4: Likewise.
95198         * m4/strftime.m4: Likewise.
95199
95200         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95201         AC_CHECK_DECLS, now that autoconf requires that.
95202
95203 2000-05-22  Jim Meyering  <meyering@lucent.com>
95204
95205         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95206         * m4/lstat.m4: Likewise.
95207
95208 2000-05-22  Jim Meyering  <meyering@lucent.com>
95209
95210         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95211
95212 2000-05-20  Jim Meyering  <meyering@lucent.com>
95213
95214         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95215         (jm_PREREQ): Use it.
95216
95217 2000-05-18  Jim Meyering  <meyering@lucent.com>
95218
95219         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95220         back, too, since it may have been modified by allocate_entry.
95221         (hash_delete): Rewrite to use neither the assignment operator
95222         nor the comma operator in an if-expression.
95223
95224 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95225
95226         * lib/closeout.c:
95227         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95228         Remove; no longer needed.
95229         "quotearg.h": Add include.
95230         (file_name): Do not bother to explicitly initialize to NULL; it's less
95231         efficient on some hosts.
95232         (close_stdout_status): Remove test as to whether stdout was already
95233         closed; it breaks for the case "echo x | sort >&-".
95234         Quote file name colons.
95235         Do not assume that _("write error") lacks format strings.
95236
95237 2000-05-15  Jim Meyering  <meyering@lucent.com>
95238
95239         * lib/version-etc.c (version_etc_copyright): Update the copyright
95240         string used in all --version output.
95241
95242 2000-05-14  Jim Meyering  <meyering@lucent.com>
95243
95244         * lib/closeout.c (close_stdout_set_file_name): New function.
95245         (close_stdout_status): Use new file-scoped global.
95246         Return right away if fstat says the stdout file descriptor is invalid.
95247         * lib/closeout.h (close_stdout_set_file_name): Declare.
95248
95249 2000-05-10  Jim Meyering  <meyering@lucent.com>
95250
95251         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95252         (close_stdout_set_status): New function.
95253         * lib/closeout.h (close_stdout_set_status): Declare.
95254
95255 2000-05-09  Jim Meyering  <meyering@lucent.com>
95256
95257         * m4/gettext.m4: Rename this...
95258         * m4/libintl.m4: ...to this.
95259
95260 2000-05-08  Jim Meyering  <meyering@lucent.com>
95261
95262         * lib/long-options.c: Don't include closeout.h.
95263         (parse_long_options): Don't call close_stdout for --version.
95264
95265 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95266
95267         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95268         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95269         2.1.3 bug.  This avoids a clash when files like regex.c define
95270         _GNU_SOURCE.
95271
95272 2000-05-06  Jim Meyering  <meyering@lucent.com>
95273
95274         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95275         (AC_REPLACE_FUNCS): Add strnlen.
95276
95277         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95278         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95279
95280         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95281         AC_SEARCH_LIBS call for nanosleep.
95282         (LIB_NANOSLEEP): Set and AC_SUBST.
95283
95284 2000-05-06  Jim Meyering  <meyering@lucent.com>
95285
95286         * lib/strnlen.c: Undefine __strnlen and strnlen.
95287         [!weak_alias]: Define __strnlen to strnlen.
95288
95289         * lib/atexit.c: New file, from libiberty.
95290
95291 2000-05-06  Jim Meyering  <meyering@lucent.com>
95292
95293         * lib/closeout.c (close_stdout_status): Also check for errors on the
95294         stderr stream.
95295
95296 2000-05-05  Jim Meyering  <meyering@lucent.com>
95297
95298         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95299         AC_SEARCH_LIBS call for clock_gettime.
95300         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95301
95302         * m4/search-libs.m4: Update from autoconf.
95303
95304         su doesn't work on Solaris 2.6.
95305         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95306         <shadow.h>.  Reported by Dragos Harabor.
95307
95308 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95309
95310         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95311         memcpy instead of xmalloc, xrealloc, path_concat.
95312         (locale_charset): Treat empty environment variables as absent.
95313         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95314
95315 2000-05-04  Jim Meyering  <meyering@lucent.com>
95316
95317         * lib/getopt.c: Update from glibc.
95318         * lib/obstack.c: Likewise.
95319         * lib/obstack.h: Likewise.
95320         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95321         file
95322
95323         * lib/regex.h: Likewise.
95324         * lib/strndup.c: Likewise.
95325         * lib/strnlen.c: New file, from glibc.
95326
95327 2000-05-03  Jim Meyering  <meyering@lucent.com>
95328
95329         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
95330
95331 2000-05-02  Paul Eggert  <eggert@twinsun.com>
95332
95333         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
95334         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
95335         compile-time test, rather than inspecting host and OS, to
95336         decide whether to define _LARGEFILE_SOURCE.
95337
95338 2000-05-01  Jim Meyering  <meyering@lucent.com>
95339
95340         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
95341
95342         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
95343         Based on a patch from Bruno Haible.
95344
95345 2000-05-01  Jim Meyering  <meyering@lucent.com>
95346
95347         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
95348
95349 2000-04-29  Jim Meyering  <meyering@lucent.com>
95350
95351         * lib/path-concat.c: Declare strdup only if it's not defined.
95352         * lib/canon-host.c: Likewise.
95353
95354 2000-04-28  Jim Meyering  <meyering@lucent.com>
95355
95356         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
95357         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
95358         is included first, then limits.h is included by locale.h by libintl.h.
95359         From John David Anglin.
95360
95361 2000-04-25  Jim Meyering  <meyering@lucent.com>
95362
95363         * lib/makepath.c (S_IRWXUGO): Define.
95364         (make_path): Always perform explicit chmod if MODE specifies any
95365         of the `special' permission bits.  Prompted by a bug report against
95366         install from Mate Wierdl and Joost van Baal.
95367
95368 2000-04-18  Jim Meyering  <meyering@lucent.com>
95369
95370         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
95371         (jm_PREREQ): Use it.
95372
95373 2000-04-18  Jim Meyering  <meyering@lucent.com>
95374
95375         * lib/README: New file.
95376
95377         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
95378         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
95379
95380 2000-04-17  Jim Meyering  <meyering@lucent.com>
95381
95382         Get it right :-)
95383         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
95384         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
95385         Suggestion from Akim Demaille.
95386
95387 2000-04-17  Jim Meyering  <meyering@lucent.com>
95388
95389         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95390         the definition of it to rpl_strftime also defined-away the system's
95391         declaration.
95392
95393 2000-04-15  Jim Meyering  <meyering@lucent.com>
95394
95395         Use `C' to denote so-called `contiguous' files, the same way
95396         that tar does.
95397         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95398         (ftypelet): Use S_ISCTG.
95399         From Michael Deutschmann.
95400
95401 2000-04-14  Jim Meyering  <meyering@lucent.com>
95402
95403         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95404         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95405         clobbered.
95406
95407 2000-04-14  Jim Meyering  <meyering@lucent.com>
95408
95409         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
95410
95411 2000-04-13  Jim Meyering  <meyering@lucent.com>
95412
95413         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
95414         AH_VERBATIM to insert required #ifndef into config.h.in.
95415         Suggestion from Akim Demaille.
95416
95417 2000-04-12  Jim Meyering  <meyering@lucent.com>
95418
95419         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
95420         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
95421         Christian Krackowizer.
95422
95423         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
95424         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
95425         (AC_SYS_LARGEFILE): Require.
95426         (AM_C_PROTOTYPES): Require.
95427
95428 2000-04-08  Jim Meyering  <meyering@lucent.com>
95429
95430         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95431         names don't conflict.  Reported by Eli Zaretskii.
95432
95433 2000-04-07  Jim Meyering  <meyering@lucent.com>
95434
95435         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95436         sys/types.h, to work around system header problems on AIX 3.2.5.
95437         From Bruno Haible.
95438
95439 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
95440
95441         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
95442         bug.  Deal with the different error behavior of Irix iconv.
95443
95444 2000-04-05  Paul Eggert  <eggert@twinsun.com>
95445
95446         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
95447         IRIX if the installer said otherwise.
95448
95449 2000-04-05  Jim Meyering  <meyering@lucent.com>
95450
95451         Portability tweaks required for ultrix4.3.
95452         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
95453         (jm_CHECK_DECLS): Add getutent to the list of functions.
95454         (_jm_DECL_HEADERS): Add utmpx.h.
95455         From John David Anglin.
95456
95457         * m4/strftime.m4: Back out the 2000-04-02 change.
95458         Instead of that change, simply undefine putenv in the test program.
95459
95460 2000-04-05  Jim Meyering  <meyering@lucent.com>
95461
95462         Portability tweaks required for ultrix4.3.
95463         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
95464         getutent.
95465         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
95466         * lib/canon-host.c: Declare strdup.
95467         * lib/path-concat.c: Likewise.
95468         From John David Anglin.
95469
95470 2000-04-04  Jim Meyering  <meyering@lucent.com>
95471
95472         Be more DOS 8.3-friendly.
95473         * lib/ref-add.sin: Renamed from ref-add.sed.in.
95474         * lib/ref-del.sin: Renamed from ref-del.sed.in.
95475         * lib/Makefile.am: Reflect renaming.
95476         Reported by Eli Zaretskii.
95477
95478         Use a temporary file name that won't clash with `charset.alias'
95479         in the DOS 8.3 name space.
95480         * lib/Makefile.am (charset_tmp): Define.
95481         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95482         (uninstall-local): Likewise.
95483         Reported by Eli Zaretskii.
95484
95485 2000-04-03  Jim Meyering  <meyering@lucent.com>
95486
95487         * m4/gettext.m4: Fix typo in comment.
95488
95489         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95490         textutils/configure.in).  Suggestion from Paul Eggert.
95491         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95492
95493 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95494
95495         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95496         variable in the shell rather than using putenv, which isn't
95497         portable.  This avoids the configure-time inter-test dependency
95498         on the potentially-renamed putenv function.
95499
95500 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95501
95502         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95503         before checking struct stat.st_blksize, so that
95504         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95505
95506 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95507
95508         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95509         since strftime.c uses HAVE_STRFTIME to decide whether to use
95510         the underlying strftime.
95511
95512 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95513
95514         * lib/time/strftime.c (my_strftime): Make sure we call the system
95515         strftime, not ourselves, when invoking the underlying strftime.
95516
95517 2000-03-24  Jim Meyering  <meyering@lucent.com>
95518
95519         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95520         (charset_alias): Define.
95521         (install-exec-local): Factor out common code.
95522         (uninstall-local): Split lines longer than 80.
95523         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95524         (SUFFIXES): Define.
95525         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95526         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95527
95528 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95529
95530         * lib/config.charset: Output a line containing "Packages using this
95531         file".
95532         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95533         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95534         ref-del.sed): New rules.
95535
95536 2000-03-17  Jim Meyering  <meyering@lucent.com>
95537
95538         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95539         Otherwise, include <strings.h>
95540
95541 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95542
95543         * lib/unicodeio.c (utf8_wctomb): New function.
95544         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95545         format instead of in UCS-4 with platform dependent endianness.
95546
95547 2000-03-10  Jim Meyering  <meyering@lucent.com>
95548
95549         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95550         From Marco Franzen.
95551
95552 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95553
95554         * lib/savedir.c (savedir): Work even if directory size is
95555         negative; this can happen with some screwy NFS configurations.
95556
95557 2000-03-06  Jim Meyering  <meyering@lucent.com>
95558
95559         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95560         if it's NULL (because we ran out of memory).  From Bruno Haible.
95561
95562 2000-03-05  Jim Meyering  <meyering@lucent.com>
95563
95564         * lib/localcharset.c ("path-concat.h"): Include.
95565         (get_charset_aliases): Use path_concat instead of ANSI string
95566         concatenation.
95567
95568         * lib/unicodeio.h (PARAMS): Define.
95569         Use it to guard prototype.
95570
95571 2000-03-04  Jim Meyering  <meyering@lucent.com>
95572
95573         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95574         for lib/localcharset.c.
95575
95576 2000-03-04  Jim Meyering  <meyering@lucent.com>
95577
95578         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95579         installing into it.
95580         (uninstall-local): Uncomment this rule so `make distcheck' works
95581         once again.
95582
95583         * lib/unicodeio.c (<errno.h>): Include it.
95584         (errno): Declare if not defined.
95585
95586         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95587
95588         * lib/config.charset: New version, incorporating remarks from a linux
95589         i18n mailing list.  From Bruno Haible.
95590
95591 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95592
95593         * m4/codeset.m4: New file.
95594         * m4/iconv.m4: New file.
95595         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95596
95597 2000-03-03  Jim Meyering  <meyering@lucent.com>
95598
95599         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95600
95601 2000-03-02  Jim Meyering  <meyering@lucent.com>
95602
95603         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95604         the messages come out on separate lines.
95605
95606         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95607         rather than jm_CHECK_DECLARATIONS.
95608         * m4/decl.m4: Remove now-unused file.
95609
95610         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95611         geteuid.
95612
95613 2000-03-02  Jim Meyering  <meyering@lucent.com>
95614
95615         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95616
95617 2000-03-01  Jim Meyering  <meyering@lucent.com>
95618
95619         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95620         * lib/unicodeio.c: Likewise.
95621
95622 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95623
95624         * lib/config.charset: New file.
95625         * lib/localcharset.c: New file.
95626         * lib/unicodeio.h, lib/unicodeio.c: New files.
95627         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95628         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95629         (noinst_HEADERS): Add unicodeio.h.
95630         (all-local, install-exec-local, charset.alias): New targets.
95631
95632 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95633
95634         * lib/quotearg.c (ALERT_CHAR): New macro.
95635         (quotearg_buffer_restyled): Use it.
95636
95637 2000-02-27  Jim Meyering  <meyering@lucent.com>
95638
95639         * m4/check-decl.m4: Add getenv to the list.
95640
95641 2000-02-27  Jim Meyering  <meyering@lucent.com>
95642
95643         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95644         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95645
95646         * lib/backupfile.c: Guard inclusion of stdlib.h with
95647         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95648         Declare malloc if needed.
95649
95650         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95651         `#ifndef HAVE_DECL..'
95652         now that autoconf always defines the HAVE_DECL_ symbols.
95653         * lib/human.c: Likewise.
95654         * lib/same.c: Likewise.
95655         * lib/strtoumax.c: Likewise.
95656
95657         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95658         declaration check was not run.
95659         * lib/hash.c: Likewise.
95660         * lib/human.c: Likewise.
95661         * lib/same.c: Likewise.
95662         * lib/strtoumax.c: Likewise.
95663
95664         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95665         `.', then first look up the entire `.'-containing string as a login
95666         name.
95667
95668 2000-02-23  Jim Meyering  <meyering@lucent.com>
95669
95670         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95671         in place of my hack.
95672
95673 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95674
95675         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95676         (textint): New typedef.
95677         (parser_control): Member year changed from int to textint.
95678         All uses changed.
95679         (YYSTYPE): Removed; replaced by %union with int and textint members.
95680         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95681         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95682         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95683         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95684         (date, number, to_year): Use width of number in digits, not its value,
95685         to determine whether it's a 2-digit year, or a 2-digit time.
95686         (yylex): Store number of digits of numeric tokens.
95687         Reported by John Kendall.
95688
95689         (parser_control): Changed from struct parser_control to typedef (for
95690         consistency).  All uses changed.
95691
95692         (tID): Removed; not used.
95693         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95694
95695 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95696
95697         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95698         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95699
95700 2000-02-12  Jim Meyering  <meyering@lucent.com>
95701
95702         * lib/userspec.c (ISDIGIT): Define it.
95703         (isdigit): Remove definition.
95704         (is_number): Use ISDIGIT, not isdigit.
95705         <libintl.h>: Include.
95706         (_ and N_): Define.
95707         (parse_user_spec): Mark translatable strings.
95708
95709 2000-02-10  Jim Meyering  <meyering@lucent.com>
95710
95711         With these changes, nanosleep.[ch] are finally enough like the other
95712         lib/* replacement files to compile on a few more losing systems.
95713
95714         * lib/nanosleep.h: Don't include config.h.
95715         Remove prototype from declaration of nanosleep.
95716         (PARAMS): Remove now-unneeded definition.
95717         * lib/nanosleep.c: #undef nanosleep.
95718         (rpl_nanosleep): Rename from nanosleep.
95719
95720 2000-02-10  Jim Meyering  <meyering@lucent.com>
95721
95722         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95723         gnu_nanosleep to rpl_nanosleep.
95724
95725 2000-02-09  Jim Meyering  <meyering@lucent.com>
95726
95727         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95728         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95729
95730 2000-02-08  Akim Demaille  <akim@epita.fr>
95731
95732         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95733         `[' and `]' and remove uses of `changequote'.
95734         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95735         (AC_SYS_LARGEFILE): Likewise.
95736         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95737         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95738         of changequote.
95739         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95740         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95741         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95742         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95743
95744 2000-02-05  Jim Meyering  <meyering@lucent.com>
95745
95746         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95747         Remove explicit use of AC_HEADER_TIME.  It is required by
95748         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95749         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95750         in autoconf whereby the expansion of the latter ended up preceding
95751         the expansion of its prerequisite, AC_HEADER_TIME.
95752         Reported by Volker Borchert.
95753
95754 2000-02-03  Jim Meyering  <meyering@lucent.com>
95755
95756         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95757
95758 2000-02-03  Jim Meyering  <meyering@lucent.com>
95759
95760         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95761         rather than with `#if HAVE_UTMPNAME'.
95762
95763 2000-02-02  Jim Meyering  <meyering@lucent.com>
95764
95765         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95766         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95767         Reported by Eli Zaretskii.
95768
95769 2000-02-01  Jim Meyering  <meyering@lucent.com>
95770
95771         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95772
95773 2000-01-31  Jim Meyering  <meyering@lucent.com>
95774
95775         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95776         functions.  Add the time.h and sys/time.h headers along with the
95777         AC_REQUIRE'ment of AC_HEADER_TIME.
95778
95779 2000-01-31  Jim Meyering  <meyering@lucent.com>
95780
95781         * lib/nanosleep.h (nanosleep): Guard declaration with
95782         `#if ! HAVE_DECL_NANOSLEEP'.
95783         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95784         the declaration in that vendor's sys/timers.h.
95785         Reported by Christian Krackowizer.
95786
95787         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95788         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95789         (ISPRINT): Likewise.
95790         Reported by Tom Tromey.
95791
95792 2000-01-30  Jim Meyering  <meyering@lucent.com>
95793
95794         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95795
95796         * m4/prereq.m4 (utmp_includes): Define.
95797         Check for ut_user and ut_name members in both struct utmpx
95798         and struct utmp.
95799
95800 2000-01-30  Jim Meyering  <meyering@lucent.com>
95801
95802         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95803         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95804         header files where only utmpx.ut_user is declared.
95805
95806         * lib/readutmp.h (UT_USER): Define.
95807
95808 2000-01-29  Jim Meyering  <meyering@lucent.com>
95809
95810         * m4/lib-check.m4: New file containing library-related checks from
95811         fileutils and sh-utils (textutils had none).
95812
95813 2000-01-28  Jim Meyering  <meyering@lucent.com>
95814
95815         * m4/perl.m4: Change format of warning message to look more like that
95816         from the missing script.  Suggestion from François Pinard.
95817
95818 2000-01-25  Jim Meyering  <meyering@lucent.com>
95819
95820         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95821         well as time.h in the compile check.
95822         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95823         Fix typo in cross-compiling case: s/yes/no/.
95824
95825 2000-01-23  Jim Meyering  <meyering@lucent.com>
95826
95827         * m4/jm-macros.m4: Move df-related tests here from
95828         fileutils/configure.in
95829
95830         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95831         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95832
95833         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95834         s/space/ac_fsusage_space/.
95835         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95836
95837         * m4/ftruncate.m4: New file (derived from part of
95838         fileutils/configure.in).
95839         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95840         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95841
95842         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95843         AC_SUBST these here, rather than just in sh-util/configure.in, so
95844         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95845         all the same.
95846         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95847         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95848         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95849         (AC_SUBST(POW_LIBM)): Likewise.
95850         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95851
95852 2000-01-23  Jim Meyering  <meyering@lucent.com>
95853
95854         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95855         obstack.c.
95856
95857 2000-01-22  Jim Meyering  <meyering@lucent.com>
95858
95859         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95860
95861         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95862
95863         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95864         configure.in
95865         (AC_CHECK_HEADERS): Likewise for sh-utils.
95866         (AC_CHECK_HEADERS): Likewise for textutils.
95867         Merge the three lists of headers.
95868
95869         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95870         from fileutils' configure.in.
95871
95872         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95873         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95874         check-decl.m4.
95875
95876         * m4/check-decl.m4: Use #if rather than #ifdef.
95877         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95878         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95879         (_jm_DECL_HEADERS): Define new function.
95880         (jm_CHECK_DECLARATIONS): Require it.
95881
95882 2000-01-22  Jim Meyering  <meyering@lucent.com>
95883
95884         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95885         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95886         Required for some AIX systems.  Reported by Christian Krackowizer.
95887         [TESTING] (main): New function.
95888
95889         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95890         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95891         letters.
95892
95893         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95894         iswprint.
95895
95896         * lib/strverscmp.c (ISDIGIT): Define.
95897         (strverscmp): Use ISDIGIT, not isdigit.
95898
95899 2000-01-19  Jim Meyering  <meyering@lucent.com>
95900
95901         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95902         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95903         defines `struct timespec' in <sys/time.h>
95904
95905         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95906         Thanks to Akim for explaining.
95907
95908 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95909
95910         * lib/nanosleep.c (nanosleep):
95911         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95912         POSIX.1 doesn't require SA_INTERRUPT and some systems
95913         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95914         it's been part of POSIX.1 since day 1 (in 1988).
95915
95916 2000-01-17  Jim Meyering  <meyering@lucent.com>
95917
95918         * lib/interlock: Remove unused file.  Reported by François Pinard.
95919
95920 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95921
95922         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95923         alert, backslash, formfeed, and vertical tab unnecessarily in
95924         shell quoting style.
95925
95926 2000-01-16  Jim Meyering  <meyering@lucent.com>
95927
95928         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95929         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95930         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95931         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95932
95933 2000-01-16  Jim Meyering  <meyering@lucent.com>
95934
95935         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95936         because the latter didn't work.
95937
95938 2000-01-15  Jim Meyering  <meyering@lucent.com>
95939
95940         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95941         (AC_REPLACE_FUNCS): Add memcpy and memset.
95942         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95943         Add strpbrk.
95944         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95945
95946 2000-01-12  Jim Meyering  <meyering@lucent.com>
95947
95948         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95949         (jm_PREREQ): Use it.
95950         (jm_PREREQ_READUTMP): New macro.
95951         (jm_PREREQ): Use it.
95952
95953 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95954
95955         Quote multibyte characters correctly.
95956         * m4/c-bs-a.m4: New file.
95957         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95958         (jm_PREREQ): Use it.
95959
95960 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95961
95962         * m4/uintmax_t.m4: Port to autoconf 2.13.
95963
95964 2000-01-08  Jim Meyering  <meyering@ascend.com>
95965
95966         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95967         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95968
95969 2000-01-04  Jim Meyering  <meyering@ascend.com>
95970
95971         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95972         jm_STRUCT_DIRENT_D_TYPE.
95973         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95974         jm_STRUCT_DIRENT_D_INO.
95975         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95976         jm_STRUCT_UTIMBUF.
95977         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95978         renamings.
95979         * m4/utime.m4: Likewise.
95980
95981         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95982         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95983
95984 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95985
95986         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95987         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95988
95989 2000-01-02  Jim Meyering  <meyering@ascend.com>
95990
95991         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95992         remember if this is necessary.
95993
95994 1999-12-26  Jim Meyering  <meyering@ascend.com>
95995
95996         * m4/jm-macros.m4: Use it here.
95997         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95998
95999 1999-12-23  Jim Meyering  <meyering@ascend.com>
96000
96001         * m4/jm-macros.m4: Check for clock_gettime (moved from
96002         fileutils/configure.in)
96003         Check for gettimeofday.
96004
96005 1999-12-20  Jim Meyering  <meyering@ascend.com>
96006
96007         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96008         autoconf-2.14a-1999-12-20.
96009
96010 1999-12-19  Jim Meyering  <meyering@ascend.com>
96011
96012         * m4/lstat-slash.m4: New file.
96013         * m4/jm-macros.m4: Use the new macro:
96014         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96015
96016 1999-12-07  Jim Meyering  <meyering@ascend.com>
96017
96018         * m4/perl.m4: Require that File::Compare be available, too.
96019         Too many systems seem to lack it.
96020
96021         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96022         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96023
96024 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96025
96026         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96027         problem with the QNX 4.25 shell, which doesn't propagate exit
96028         status of failed commands inside shell assignments.
96029
96030 1999-11-17  Jim Meyering  <meyering@ascend.com>
96031
96032         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96033
96034 1999-11-07  Jim Meyering  <meyering@ascend.com>
96035
96036         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96037
96038 1999-11-06  Jim Meyering  <meyering@ascend.com>
96039
96040         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96041         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96042
96043 1999-11-05  Jim Meyering  <meyering@ascend.com>
96044
96045         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96046         configure.in of textutils, fileutils, and sh-utils into this one
96047         (shared between those packages) file.
96048         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96049         AC_STRUCT_ST_BLKSIZE.
96050
96051 1999-11-03  Jim Meyering  <meyering@ascend.com>
96052
96053         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96054         of AC_CHECK_TYPE checks includes unistd.h.
96055         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96056         Suggestion from Akim Demaille.
96057
96058 1999-10-30  Jim Meyering  <meyering@ascend.com>
96059
96060         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96061         m4-quoted string.
96062         * m4/ls-mntd-fs.m4: Likewise.
96063         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96064         * m4/jm-winsz1.m4: Likewise.
96065
96066         * m4/const.m4: Remove file, since the fix made it into the experimental
96067         version of autoconf.
96068         * m4/mktime.m4: Likewise.
96069
96070         * m4/check-type.m4: Remove file, now that the latest version of
96071         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96072
96073         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96074         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96075         AC_CHECK_TYPE.
96076
96077 1999-10-04  Jim Meyering  <meyering@ascend.com>
96078
96079         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96080
96081 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96082
96083         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96084         2.95.1 bug with HP-UX 10.20.
96085
96086 1999-09-17  Jim Meyering  <meyering@ascend.com>
96087
96088         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96089         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96090         due to missing strdup (against sh-utils-2.0).
96091
96092 1999-08-29  Jim Meyering  <meyering@ascend.com>
96093
96094         * m4/jm-macros.m4: Require jm_BISON.
96095         * m4/bison.m4: New file.
96096
96097 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96098
96099         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96100         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96101
96102 1999-08-05  Jim Meyering  <meyering@ascend.com>
96103
96104         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96105         to avoid conflicts with `conftest' on 8+3 filesystems.
96106         Suggestion from Eli Zaretskii.
96107
96108 1999-08-04  Jim Meyering  <meyering@ascend.com>
96109
96110         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96111         fileutils and sh-utils (textutils's getline test was inadequate).
96112         (AM_FUNC_GETLINE): Run this test.
96113         (AC_CHECK_FUNCS): Check for getdelim.
96114         Reported by Bob Proulx.
96115
96116 1999-08-02  Jim Meyering  <meyering@ascend.com>
96117
96118         * m4/jm-macros.m4: Add a comment.
96119
96120 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96121
96122         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96123         <inttypes.h> defines strtoumax as a macro (and not as a
96124         function).
96125
96126 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96127
96128         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96129         that we can shift, multiply and divide unsigned long long
96130         values; Ultrix cc can't do it.
96131
96132 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96133
96134         * m4/mktime.m4: New file, which is a preview of what should appear
96135         in the next public autoconf release.
96136
96137 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96138
96139         * m4/lfs.m4: Remove this file.
96140         * m4/largefile.m4: New file.  It contains the old contents of
96141         lfs.m4, except that all names with prefix AC_LFS have been
96142         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96143         compatible with future autoconf versions.  Also, some minor m4
96144         quoting problems have been fixed.
96145
96146 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96147
96148         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96149         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96150         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96151         and simplify the shell code.
96152
96153 1999-08-01  Jim Meyering  <meyering@ascend.com>
96154
96155         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96156         m4.
96157
96158 1999-07-20  Jim Meyering  <meyering@ascend.com>
96159
96160         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96161
96162 1999-07-15  Jim Meyering  <meyering@ascend.com>
96163
96164         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96165
96166 1999-05-22  Jim Meyering  <meyering@ascend.com>
96167
96168         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96169
96170 1999-05-20  Jim Meyering  <meyering@ascend.com>
96171
96172         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96173         Add a colon after each `then' in case $4 is empty.
96174
96175 1999-05-16  Jim Meyering  <meyering@ascend.com>
96176
96177         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96178
96179 1999-05-10  Jim Meyering  <meyering@ascend.com>
96180
96181         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96182
96183         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96184         AC_FUNC_MKTIME.
96185
96186 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96187
96188         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96189
96190 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96191
96192         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96193         not CPPFLAGS, so that linking works correctly in IRIX.
96194
96195 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96196
96197         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96198
96199 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96200
96201         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96202         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96203         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96204         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96205         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96206
96207         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96208
96209 1999-04-20  Jim Meyering  <meyering@ascend.com>
96210
96211         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96212         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96213         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96214
96215 1999-04-18  Jim Meyering  <meyering@ascend.com>
96216
96217         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96218         * m4/jm-macros.m4: Use it.
96219
96220 1999-04-06  Jim Meyering  <meyering@ascend.com>
96221
96222         * m4/strftime.m4: Remove test for %f.
96223
96224 1999-03-29  Jim Meyering  <meyering@ascend.com>
96225
96226         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96227         superset of the AC_TYPE_* checks in the textutils, fileutils,
96228         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96229         AC_TYPE_PID_T.
96230
96231 1999-03-28  Jim Meyering  <meyering@ascend.com>
96232
96233         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96234         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96235         replaced e.g., in the *.sh files of the sh-utils.
96236
96237 1999-03-20  Jim Meyering  <meyering@ascend.com>
96238
96239         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96240         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96241         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96242
96243 1999-03-19  Jim Meyering  <meyering@ascend.com>
96244
96245         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96246
96247 1999-03-12  Jim Meyering  <meyering@ascend.com>
96248
96249         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96250
96251 1999-03-07  Jim Meyering  <meyering@ascend.com>
96252
96253         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96254         declared.
96255
96256 1999-02-17  Jim Meyering  <meyering@ascend.com>
96257
96258         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
96259         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
96260
96261 1999-02-07  Jim Meyering  <meyering@ascend.com>
96262
96263         * m4/group-member.m4: New file -- extracted from sh-utils'
96264         configure.in.
96265
96266         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96267         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96268
96269 1999-02-06  Jim Meyering  <meyering@ascend.com>
96270
96271         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96272         * m4/fnmatch.m4: Likewise.
96273         * m4/getgroups.m4: Likewise.
96274         * m4/lstat.m4: Likewise.
96275         * m4/malloc.m4: Likewise.
96276         * m4/putenv.m4: Likewise.
96277         * m4/realloc.m4: Likewise.
96278         * m4/regex.m4: Likewise.
96279         * m4/stat.m4: Likewise.
96280         * m4/strftime.m4: Likewise.
96281         Suggestion from Alain Magloire.
96282
96283         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96284         * m4/fnmatch.m4: Likewise.
96285         * m4/getgroups.m4: Likewise.
96286         * m4/getline.m4: Likewise.
96287         * m4/lstat.m4: Likewise.
96288         * m4/malloc.m4: Likewise.
96289         * m4/memcmp.m4: Likewise.
96290         * m4/putenv.m4: Likewise.
96291         * m4/realloc.m4: Likewise.
96292         * m4/regex.m4: Likewise.
96293         * m4/stat.m4: Likewise.
96294         * m4/strftime.m4: Likewise.
96295         Suggestion from Alain Magloire.
96296
96297         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96298         an argument.
96299
96300         * m4/regex.m4: Add a run-time Test for proper operation of
96301         re_compile_pattern.
96302
96303 1999-01-31  Jim Meyering  <meyering@ascend.com>
96304
96305         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96306
96307 1999-01-30  Jim Meyering  <meyering@ascend.com>
96308
96309         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96310
96311         * m4/jm-mktime.m4: Make this a wrapper around the official
96312         AM_FUNC_MKTIME rather than my private copy, now that the official one
96313         is up to date.
96314         * m4/mktime.m4: Remove file.
96315
96316         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96317         * m4/uptime.m4: Likewise.
96318         * m4/uintmax_t.m4: Likewise.
96319
96320 1999-01-28  Jim Meyering  <meyering@ascend.com>
96321
96322         * m4/jm-macros.m4: Use jm_AFS.
96323         * m4/afs.m4: New file (from fileutils' configure.in).
96324
96325         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96326         * m4/chown.m4: Likewise.
96327         * m4/d-ino.m4: Likewise.
96328         * m4/d-type.m4: Likewise.
96329         * m4/fnmatch.m4: Likewise.
96330         * m4/getgroups.m4: Likewise.
96331         * m4/gettext.m4: Likewise.
96332         * m4/jm-mktime.m4: Likewise.
96333         * m4/jm-winsz2.m4: Likewise.
96334         * m4/lcmessage.m4: Likewise.
96335         * m4/ls-mntd-fs.m4: Likewise.
96336         * m4/malloc.m4: Likewise.
96337         * m4/memcmp.m4: Likewise.
96338         * m4/putenv.m4: Likewise.
96339         * m4/realloc.m4: Likewise.
96340         * m4/st_mtim.m4: Likewise.
96341         * m4/strftime.m4: Likewise.
96342
96343 1999-01-16  Jim Meyering  <meyering@ascend.com>
96344
96345         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
96346         (ARGMATCH_DIE_DECL): Define.
96347
96348 1999-01-12  Jim Meyering  <meyering@ascend.com>
96349
96350         * m4/Makefile.am.in: Rewrite to avoid using fmt.
96351         Reported by Lars Hecking.
96352
96353 1999-01-10  Jim Meyering  <meyering@ascend.com>
96354
96355         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
96356         gross kludge.
96357         * m4/inttypes_h.m4: Likewise.
96358         * m4/lstat.m4: Likewise.
96359         * m4/malloc.m4: Likewise.
96360         * m4/readdir.m4: Likewise.
96361         * m4/realloc.m4: Likewise.
96362         * m4/st_dm_mode.m4: Likewise.
96363         * m4/stat.m4: Likewise.
96364         * m4/utimbuf.m4: Likewise.
96365         * m4/utimes.m4: Likewise.
96366
96367         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
96368         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
96369         comments in config.h.in are meaningful.
96370
96371         * m4/jm-macros.m4: Require autoconf-2.13 here.
96372
96373         * m4/regex.m4: By default, don't use the included regex.c on systems
96374         with glibc 2.  Suggestion from Uli Drepper.
96375
96376 1999-01-02  Jim Meyering  <meyering@ascend.com>
96377
96378         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
96379
96380 1998-12-18  Jim Meyering  <meyering@ascend.com>
96381
96382         * m4/Makefile.am.in (Makefile.am): Simplify rule.
96383         Based on a suggestion from Lars Hecking.
96384
96385 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96386
96387         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96388
96389 1998-11-16  Jim Meyering  <meyering@ascend.com>
96390
96391         * m4/lfs.m4: Double-quote the `uname...` expression.
96392
96393 1998-11-14  Jim Meyering  <meyering@ascend.com>
96394
96395         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96396         * m4/stat.m4: Likewise.
96397
96398 1998-11-03  Jim Meyering  <meyering@ascend.com>
96399
96400         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96401         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96402
96403 1998-10-18  Jim Meyering  <meyering@ascend.com>
96404
96405         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
96406
96407 1998-10-17  Jim Meyering  <meyering@ascend.com>
96408
96409         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
96410         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
96411         calls for those previously hard-coded headers.  Instead, take a new
96412         parameter.
96413         (jm_CHECK_DECLARATIONS): Reflect interface change.
96414         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
96415         (jm_CHECK_DECL_LOCALTIME_R): New macro.
96416
96417         * m4/mktime.m4: Test for spring-forward gap before long-running test.
96418
96419 1998-10-14  Jim Meyering  <meyering@ascend.com>
96420
96421         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
96422         instead of "TZ=America/Vancouver".  From Paul Eggert.
96423
96424 1998-10-11  Jim Meyering  <meyering@ascend.com>
96425
96426         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96427         This adds a test for a recently added compatibility fix for mktime.c.
96428         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96429
96430 1998-09-27  Jim Meyering  <meyering@ascend.com>
96431
96432         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96433
96434         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96435         ../configure.in, including a change from Gordon Matzigkeit to allow
96436         cross-compiling for the Hurd.
96437
96438         * m4/glibc.m4: New file/macro to test for the GNU C Library
96439         versions 1 and 2.  From Gordon Matzigkeit.
96440         Indent.
96441
96442 1998-09-21  Jim Meyering  <meyering@ascend.com>
96443
96444         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
96445
96446 1998-08-18  Paul Eggert  <eggert@twinsun.com>
96447
96448         Port nanosecond-resolution times to UnixWare 2.1.2 and
96449         pedantic Solaris 2.6.
96450
96451         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
96452         AC_STRUCT_ST_MTIM.
96453         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
96454         Generate name of ns member, instead of just 1 or undef.
96455         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
96456
96457 1998-08-15  Jim Meyering  <meyering@ascend.com>
96458
96459         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
96460         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
96461         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
96462         instead of jm_TYPE_SSIZE_T.
96463
96464 1998-08-12  Jim Meyering  <meyering@ascend.com>
96465
96466         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
96467
96468 1998-08-02  Jim Meyering  <meyering@ascend.com>
96469
96470         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
96471         in acconfig.h manually.
96472
96473 1998-07-31  Paul Eggert  <eggert@twinsun.com>
96474
96475         * m4/st_mtim.m4: New file.
96476
96477 1998-07-28  Jim Meyering  <meyering@ascend.com>
96478
96479         * m4/utimes.m4: Undef stat.
96480
96481 1998-07-25  Jim Meyering  <meyering@ascend.com>
96482
96483         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96484         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96485
96486 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96487
96488         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96489         uid and gid actually remain unchanged.
96490
96491 1998-07-07  Jim Meyering  <meyering@ascend.com>
96492
96493         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96494
96495 1998-07-04  Jim Meyering  <meyering@ascend.com>
96496
96497         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96498         to prove that this macro can be used in packages without regex.c.
96499
96500 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96501
96502         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96503         is to be used.
96504
96505 1998-07-03  Jim Meyering  <meyering@ascend.com>
96506
96507         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96508
96509         * m4/gettext.m4: New file -- from gettext-0.10.35.
96510         * m4/lcmessage.m4: Likewise.
96511         * m4/progtest.m4: Likewise.
96512
96513         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96514         * m4/jm-macros.m4: Require the new macro.
96515
96516 1998-06-29  Jim Meyering  <meyering@ascend.com>
96517
96518         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96519         for the definition of NGROUPS (used in a system header included
96520         by sys/mount.h).
96521
96522 1998-06-28  Jim Meyering  <meyering@ascend.com>
96523
96524         * m4/ls-mntd-fs.m4: New file.
96525         * m4/fstypename.m4: New file.
96526
96527         * m4/jm-macros.m4: Require the new macro.
96528         * m4/jm-glibc-io.m4: New file.
96529
96530 1998-05-19  Jim Meyering  <meyering@ascend.com>
96531
96532         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96533         * m4/lchown.m4: New file.
96534
96535         * m4/Makefile.am.in: New file.
96536         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96537
96538 1998-05-14  Jim Meyering  <meyering@ascend.com>
96539
96540         * m4/Makefile.am (EXTRA_DIST): Add them.
96541         * m4/jm-macros.m4: New file.
96542         * m4/utimbuf.m4: New file.
96543
96544 1998-05-12  Jim Meyering  <meyering@ascend.com>
96545
96546         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96547
96548 1998-05-11  Jim Meyering  <meyering@ascend.com>
96549
96550         * m4/isc-posix.m4: New file.
96551
96552 1998-05-10  Jim Meyering  <meyering@ascend.com>
96553
96554         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96555
96556 1998-05-09  Jim Meyering  <meyering@ascend.com>
96557
96558         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96559         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96560         with automake.
96561
96562         * m4/ssize_t.m4: New file.
96563         * m4/mktime.m4: Remove file -- the new automake has this now.
96564
96565 1998-04-26  Jim Meyering  <meyering@ascend.com>
96566
96567         * m4/assert.m4: New file.
96568         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96569
96570 1998-04-05  Jim Meyering  <meyering@ascend.com>
96571
96572         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96573         (jm_PREREQ): Use it here.
96574
96575 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96576
96577         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96578         in acconfig.h.
96579
96580 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96581
96582         * m4/prereq.m4: New file.
96583         * m4/error.m4: New file.
96584         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96585
96586 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96587
96588         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96589         cache-check for the same variable -- that defeated the purpose of
96590         the test; the test program was never run.  This was a problem only
96591         on systems with losing getline functions -- HP-UX 10.20 is one.
96592         Reported by Bjorn Helgaas.
96593
96594 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96595
96596         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96597
96598 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96599
96600         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96601
96602         * m4/const.m4: New file.  Use an initializer in this declaration
96603         typedef int charset[2]; const charset x;
96604         Reported by Bob Glickstein.
96605
96606 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96607
96608         * m4/chown.m4: Fix reversed types on -1 args to chown.
96609         From Kaveh Ghazi.
96610
96611 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96612
96613         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96614         Add lseek and memchr.
96615
96616         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96617         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96618         have a 20-character limit on names.
96619
96620 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96621
96622         * m4/inttypes_h.m4: New file.
96623         * m4/uintmax_t.m4: New file.
96624         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96625
96626
96627         -----
96628
96629         Local Variables:
96630         coding: utf-8
96631         End:
96632
96633         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96634
96635         Copying and distribution of this file, with or without
96636         modification, are permitted provided the copyright notice
96637         and this notice are preserved.