ttyname_r: Fix result on OSF/1, Solaris.
[gnulib.git] / ChangeLog
1 2012-06-24  Bruno Haible  <bruno@clisp.org>
2
3         ttyname_r: Fix result on OSF/1, Solaris.
4         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
5
6 2012-06-24  Bruno Haible  <bruno@clisp.org>
7
8         ptsname_r: Add support for Solaris.
9         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
10         Solaris.
11
12         ptsname_r: Fix test failure on native Windows.
13         * modules/ptsname_r (Depends-on): Add isatty.
14
15         ptsname_r: Fix test failures on IRIX, Solaris.
16         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
17         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
18         accordingly.
19         * lib/ptsname_r.c: Include <fcntl.h>.
20         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
21         set errno if fd is invalid.
22         * tests/test-isatty.c (main): Update comments.
23
24 2012-06-24  Bruno Haible  <bruno@clisp.org>
25
26         ptsname test: Extend test.
27         * tests/test-ptsname.c: Include <errno.h>.
28         (main): Test behaviour with invalid file descriptor.
29
30 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31
32         time: fix obsolete comment
33         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
34         reference to HAVE_STRUCT_TIMESPEC in comment.
35
36 2012-06-23  Bruno Haible  <bruno@clisp.org>
37
38         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
39         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
40         does not handle abbreviated long options with equivalent
41         disambiguations, set gl_replace_getopt to yes.
42         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
43
44 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
45
46         time_r: fix typo that always overrode localtime_r decl
47         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
48         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
49         not in a standard include.
50
51 2012-06-22  Bruno Haible  <bruno@clisp.org>
52
53         Write "Mac OS X" instead of "MacOS X".
54         * README: Write "Mac OS X" instead of "MacOS X".
55         * build-aux/bootstrap: Likewise.
56         * build-aux/install-reloc: Likewise.
57         * lib/acl-internal.h: Likewise.
58         * lib/acl_entries.c: Likewise.
59         * lib/argp-ba.c: Likewise.
60         * lib/argp-pv.c: Likewise.
61         * lib/config.charset: Likewise.
62         * lib/copy-acl.c: Likewise.
63         * lib/csharpexec.c: Likewise.
64         * lib/euidaccess.c: Likewise.
65         * lib/fbufmode.c: Likewise.
66         * lib/fflush.c: Likewise.
67         * lib/file-has-acl.c: Likewise.
68         * lib/filemode.h: Likewise.
69         * lib/fpurge.c: Likewise.
70         * lib/freadable.c: Likewise.
71         * lib/freadahead.c: Likewise.
72         * lib/freading.c: Likewise.
73         * lib/freadptr.c: Likewise.
74         * lib/freadseek.c: Likewise.
75         * lib/fseeko.c: Likewise.
76         * lib/fseterr.c: Likewise.
77         * lib/fsusage.c: Likewise.
78         * lib/fwritable.c: Likewise.
79         * lib/fwriting.c: Likewise.
80         * lib/get-rusage-as.c: Likewise.
81         * lib/get-rusage-data.c: Likewise.
82         * lib/getdomainname.c: Likewise.
83         * lib/idpriv-drop.c: Likewise.
84         * lib/idpriv-droptemp.c: Likewise.
85         * lib/localcharset.c: Likewise.
86         * lib/locale.in.h: Likewise.
87         * lib/localename.c: Likewise.
88         * lib/mbsrtowcs-state.c: Likewise.
89         * lib/nproc.c: Likewise.
90         * lib/passfd.c: Likewise.
91         * lib/posix_openpt.c: Likewise.
92         * lib/printf-parse.c: Likewise.
93         * lib/progreloc.c: Likewise.
94         * lib/safe-read.h: Likewise.
95         * lib/safe-write.h: Likewise.
96         * lib/sched.in.h: Likewise.
97         * lib/set-mode-acl.c: Likewise.
98         * lib/signal.in.h: Likewise.
99         * lib/stdint.in.h: Likewise.
100         * lib/stdio-impl.h: Likewise.
101         * lib/stdlib.in.h: Likewise.
102         * lib/strtod.c: Likewise.
103         * lib/sys_select.in.h: Likewise.
104         * lib/tcgetsid.c: Likewise.
105         * lib/unistd.in.h: Likewise.
106         * lib/unlockpt.c: Likewise.
107         * lib/vasnprintf.c: Likewise.
108         * lib/vma-iter.c: Likewise.
109         * lib/wcsrtombs-state.c: Likewise.
110         * m4/acl.m4: Likewise.
111         * m4/acosl.m4: Likewise.
112         * m4/asinl.m4: Likewise.
113         * m4/atanl.m4: Likewise.
114         * m4/c-stack.m4: Likewise.
115         * m4/cosl.m4: Likewise.
116         * m4/expl.m4: Likewise.
117         * m4/extensions.m4: Likewise.
118         * m4/fdatasync.m4: Likewise.
119         * m4/fmal.m4: Likewise.
120         * m4/frexp.m4: Likewise.
121         * m4/frexpf.m4: Likewise.
122         * m4/frexpl.m4: Likewise.
123         * m4/fsusage.m4: Likewise.
124         * m4/getdomainname.m4: Likewise.
125         * m4/getloadavg.m4: Likewise.
126         * m4/getopt.m4: Likewise.
127         * m4/gettext.m4: Likewise.
128         * m4/gnulib-common.m4: Likewise.
129         * m4/intdiv0.m4: Likewise.
130         * m4/intlmacosx.m4: Likewise.
131         * m4/largefile.m4: Likewise.
132         * m4/ldexpl.m4: Likewise.
133         * m4/link-follow.m4: Likewise.
134         * m4/locale-ar.m4: Likewise.
135         * m4/locale-fr.m4: Likewise.
136         * m4/locale-ja.m4: Likewise.
137         * m4/locale-tr.m4: Likewise.
138         * m4/locale-zh.m4: Likewise.
139         * m4/locale_h.m4: Likewise.
140         * m4/lock.m4: Likewise.
141         * m4/logl.m4: Likewise.
142         * m4/mathfunc.m4: Likewise.
143         * m4/minus-zero.m4: Likewise.
144         * m4/mktime.m4: Likewise.
145         * m4/mmap-anon.m4: Likewise.
146         * m4/multiarch.m4: Likewise.
147         * m4/nanosleep.m4: Likewise.
148         * m4/nocrash.m4: Likewise.
149         * m4/poll.m4: Likewise.
150         * m4/printf-frexpl.m4: Likewise.
151         * m4/printf.m4: Likewise.
152         * m4/signbit.m4: Likewise.
153         * m4/sinl.m4: Likewise.
154         * m4/sqrtl.m4: Likewise.
155         * m4/strerror_r.m4: Likewise.
156         * m4/tanl.m4: Likewise.
157         * m4/threadlib.m4: Likewise.
158         * m4/ttyname_r.m4: Likewise.
159         * m4/unlink.m4: Likewise.
160         * m4/visibility.m4: Likewise.
161         * m4/wcwidth.m4: Likewise.
162         * tests/minus-zero.h: Likewise.
163         * tests/test-alloca-opt.c: Likewise.
164         * tests/test-copy-acl.sh: Likewise.
165         * tests/test-copy-file.sh: Likewise.
166         * tests/test-fdatasync.c: Likewise.
167         * tests/test-file-has-acl.sh: Likewise.
168         * tests/test-flock.c: Likewise.
169         * tests/test-fsync.c: Likewise.
170         * tests/test-localename.c: Likewise.
171         * tests/test-malloca.c: Likewise.
172         * tests/test-nonblocking-pipe.h: Likewise.
173         * tests/test-nonblocking-socket.h: Likewise.
174         * tests/test-openpty.c: Likewise.
175         * tests/test-posix_openpt.c: Likewise.
176         * tests/test-ptsname.c: Likewise.
177         * tests/test-ptsname_r.c: Likewise.
178         * tests/test-sameacls.c: Likewise.
179         * tests/test-select.h: Likewise.
180         * tests/test-set-mode-acl.sh: Likewise.
181         * tests/test-snprintf-posix.h: Likewise.
182         * tests/test-sprintf-posix.h: Likewise.
183         * tests/test-strtod.c: Likewise.
184         * tests/test-time.c: Likewise.
185         * tests/test-vasnprintf-posix.c: Likewise.
186         * tests/test-vasprintf-posix.c: Likewise.
187         * doc/acl-resources.txt: Likewise.
188         * doc/**/*.texi: Likewise.
189         Reported by Max Horn <max@quendi.de>.
190
191 2012-06-22  Bruno Haible  <bruno@clisp.org>
192
193         grantpt: Relax requirement regarding invalid file descriptors.
194         * lib/grantpt.c: Don't include <fcntl.h>.
195         (grantpt): Don't verify the validity of the file descriptor.
196         * modules/grantpt (Depends-on): Remove fcntl-h.
197         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
198         file descriptors.
199         * doc/posix-functions/grantpt.texi: Document more platforms on which
200         grantpt succeeds for invalid file descriptors.
201         Reported by Rich Felker <dalias@aerifal.cx>.
202
203 2012-06-22  Bruno Haible  <bruno@clisp.org>
204
205         fbufmode test: Don't test unportable behaviour.
206         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
207         (main): Invoke it three times.
208         Reported by Szabolcs Nagy <nsz@port70.net>
209         and Rich Felker <dalias@aerifal.cx>.
210
211 2012-06-21  Bruno Haible  <bruno@clisp.org>
212
213         gnulib-tool: Refactor inctests variable.
214         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
215         (func_modules_transitive_closure,
216         func_modules_transitive_closure_separately,
217         func_import, func_create_testdir): Update.
218
219         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
220         * gnulib-tool: Accept option --without-tests.
221         (func_usage): Document --without-tests option. Rearrange.
222         (inctests): Normalize according to the mode.
223         * NEWS: Mention the change.
224         Suggested by Simon Josefsson.
225
226 2012-06-21  Bruce Korb  <bkorb@gnu.org>
227
228         parse-duration test: Avoid spurious output.
229         * tests/test-parse-duration.sh: Reindent with leading tabs.
230
231 2012-06-21  Jim Meyering  <meyering@redhat.com>
232
233         maint: disable the strncpy prohibition
234         * cfg.mk: Do not prohibit strncpy here.
235
236 2012-06-21  Bruno Haible  <bruno@clisp.org>
237
238         nonblocking: Avoid compilation error on mingw64.
239         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
240         fscanf.
241         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
242         * modules/vfscanf (configure.ac): Likewise.
243         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
244         definition only if stdio.h has prepared it.
245         Reported by Daniel P. Berrange <berrange@redhat.com>.
246
247 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
248
249         gnulib-tool: Use readlink if it is available.
250         * gnulib-tool (func_readlink): Choose function more appropriately.
251
252 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
253
254         posixtm-tests: port to buggy compiler
255         Problem reported by Simon Josefsson in
256         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
257         * modules/posixtm-tests (Depends-on): Add stdint.
258         * tests/test-posixtm.c (struct posixtm_test.t_expected):
259         Now of type int_least64_t, not int64_t, both because that's
260         what INT64_C returns and because int_least64_t works even
261         on 72-bit hosts.
262         (T): Use INT64_C on constants outside the traditional int range,
263         to work around compiler bug noted by Simon.
264
265         mktime: fix integer overflow in 'configure'-time test
266         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
267         after integer overflow.  Problem reported by Rich Felker in
268         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
269         Also, don't look for further instances of a bug if we've already
270         found one instance; this helps 'configure' run faster.
271
272 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
273
274         tmpfile, clean-temp: Fix invocation of GetVersionEx.
275         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
276         GetVersionEx correctly.
277         * lib/clean-temp.c (supports_delete_on_close): Likewise.
278
279 2012-06-20  Bruno Haible  <bruno@clisp.org>
280
281         fdopen: Allow implementations that don't reject invalid fd arguments.
282         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
283         succeeds.
284         Reported by Rich Felker <dalias@aerifal.cx>.
285
286 2012-06-20  Simon Josefsson  <simon@josefsson.org>
287
288         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
289         bring in LIBINTL.
290
291 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
292
293         init.sh: do not rely on autoupated PWD
294         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
295         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
296         Although Nelson's bug was not necessarily fixed by this patch,
297         it seems wise to make the change for safety.
298         * tests/init.sh (path_prepend_): Do not rely on PWD updating
299         automagically after 'cd'; this is not reliable on older shells.
300         (setup_): Fail if we cannot cd to temporary directory.
301
302 2012-06-19  Bruno Haible  <bruno@clisp.org>
303
304         stat, fstat: Avoid warnings on mingw64.
305         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
306         redefining.
307         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
308         Reported by Daniel P. Berrange <berrange@redhat.com>.
309
310 2012-06-19  Bruno Haible  <bruno@clisp.org>
311
312         stdioext: Add support for musl libc.
313
314         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
315         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
316
317         * m4/fseterr.m4: New file.
318         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
319         function exists.
320         * modules/fseterr (Files): Add m4/fseterr.m4.
321         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
322         __fseterr does not exist.
323         (Makefile.am): Remove fseterr.c from lib_SOURCES.
324
325         * lib/freadable.h: Update comment.
326
327         * lib/fwritable.h: Update comment.
328
329         * lib/freading.h: Update comment.
330
331         * lib/fwriting.h: Update comment.
332
333         * m4/freadahead.m4: New file.
334         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
335         that function exists.
336         * modules/freadahead (Files): Add m4/freadahead.m4.
337         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
338         __freadahead does not exist.
339         (Makefile.am): Remove freadahead.c from lib_SOURCES.
340
341         * m4/freadptr.m4: New file.
342         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
343         function exists.
344         * modules/freadptr (Files): Add m4/freadptr.m4.
345         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
346         __freadptr does not exist.
347         (Makefile.am): Remove freadptr.c from lib_SOURCES.
348
349         * m4/freadseek.m4: New file.
350         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
351         exists.
352         * modules/freadseek (Files): Add m4/freadseek.m4.
353         (configure.ac): Invoke gl_FUNC_FREADSEEK.
354
355         * lib/fpurge.c (fpurge): Update comment.
356
357         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
358
359 2012-06-19  Bruno Haible  <bruno@clisp.org>
360
361         *printf-posix: Put more info into config.log.
362         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
363         exit code into config.log.
364
365 2012-06-19  Bruno Haible  <bruno@clisp.org>
366
367         getopt-gnu: Fix exit code overflow in autoconf test.
368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
369         to keep them below < 128.
370
371 2012-06-17  Jim Meyering  <meyering@redhat.com>
372
373         maint.mk: fix typo in code to derive GPG key at release time
374         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
375
376 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
377
378         regex: avoid warning when pointers are not long
379         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
380         and uintptr_t, not long, for portability to hosts where pointers and
381         long have different sizes.  Issue noted by Daniel P. Berrange in
382         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
383         and fix suggested by Bruno Haible in
384         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
385
386 2012-06-17  Bruno Haible  <bruno@clisp.org>
387
388         dummy: Relicense into the public domain.
389         * modules/dummy (License): Set to "public domain".
390         Suggested by Reuben Thomas.
391
392 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
393
394         announce-gen: VPATH issues
395         * build-aux/announce-gen (--srcdir): New option, used to trim the
396         $srcdir part of the path from $builddir to NEWS.
397         * top/maint.mk (announcement): Adjust.
398
399 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
400
401         gnu-web-doc-update: VPATH builds
402         * build-aux/gnu-web-doc-update (--builddir): New option.
403         Revamp the handling of options.
404         Prefer $(...) to `...`.
405         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
406         the template, and it is GNU mktemp specific.
407         Prefer set -e to long series of &&.
408         Restore the initial git branch, not "master".
409         Properly initialize submodules (don't rely only on bootstrap).
410         Do not reconfigure blindly, use config.status.
411         * top/README-release: Update instructions for gnu-web-doc-update.
412
413 2012-06-11  Jim Meyering  <meyering@redhat.com>
414
415         maint.mk: revert most of the previous change re "all these"
416         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
417         For rationale, see the discussion at
418         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
419
420 2012-06-10  Karl Berry  <karl@gnu.org>
421
422         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
423
424         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
425
426 2012-06-10  Bruce Korb  <bkorb@gnu.org>
427
428         parse-duration: Relicense under LGPLv2+.
429         * modules/parse-duration (License): Change to LGPLv2+.
430
431 2012-06-10  Jim Meyering  <meyering@redhat.com>
432
433         maint.mk: prohibit common grammar error: "all these"
434         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
435         the list of prohibited word sequences.  It should be "all of these".
436         * lib/tempname.c (__gen_tempname): Fix one of them.
437
438 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
439
440         do-release-commit-and-tag: support VPATH builds
441         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
442         (noteworthy): Defined earlier to factor its value.
443         (noteworthy_stub): New.
444         Use it to factor.
445         (help_version): Split into...
446         (help, version): these.
447         Adjust the option processing part.
448         Support "--option=value" in addition to "--option value".
449         (builddir): New.
450         (--builddir): New option.
451         * top/README-release: Document this.
452         Reword slightly so that the reader cannot understand that he
453         has to do these steps before calling do-release-commit-and-tag.
454
455 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
456
457         readme-release: also require announce-gen and maintainer-makefile
458         * modules/readme-release (Depends-on): here.
459         * modules/announce-gen, modules/do-release-commit-and-tag,
460         modules/gnu-web-doc-update, modules/maintainer-makefile
461         (Description): Point to readme-release.
462
463 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
464
465         maint.mk: fix VPATH issues.
466         * top/maint.mk (news-check): GNU Make understand $< very well.
467         (release-prep): NEWS is in $(srcdir).
468
469 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
470
471         readme-release: require the promoted modules.
472         * modules/readme-release (Depends-on): Add
473         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
474         in this text.
475
476 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
477             Bruno Haible  <bruno@clisp.org>
478
479         error, strerror-override: Support mingw64 from Fedora 17.
480         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
481         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
482         EINPROGRESS.
483         * lib/strerror-override.h (strerror_override): Test it.
484         * lib/strerror-override.c (strerror_override): Likewise.
485         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
486
487 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
488             Bruno Haible  <bruno@clisp.org>
489
490         error, strerror-override: Support mingw64 from Fedora 17.
491         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
492         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
493         * lib/strerror-override.h (strerror_override): Test it.
494         * lib/strerror-override.c (strerror_override): Likewise.
495
496 2012-06-03  Bruno Haible  <bruno@clisp.org>
497
498         error, strerror-override: Support new errno values from POSIX:2008.
499         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
500         ENOTRECOVERABLE.
501         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
502         platforms.
503         * lib/strerror-override.c (strerror_override): Conditionalize the
504         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
505         * lib/strerror-override.h (strerror_override): Declare also if
506         GNULIB_defined_EOWNERDEAD is defined.
507         * tests/test-errno.c (e130, e131): New variables.
508         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
509         ENOTRECOVERABLE.
510         Reported by Paolo Bonzini.
511
512 2012-05-31  Jim Meyering  <meyering@redhat.com>
513
514         savewd: add missing dependency on sys_wait module
515         * modules/savewd (Depends-on): Add sys_wait, needed at least
516         for MSVC.  Report and suggested change by Michael Goffioul.
517
518 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
519
520         system-quote-tests: port to CentOS 5
521         Problem reported by Tom G. Christensen in
522         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
523         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
524
525 2012-05-29  Jim Meyering  <meyering@redhat.com>
526
527         maint: fix typos in comments and ChangeLog
528         Culprits identified and fixed mostly automatically using these commands:
529         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
530         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
531         using http://github.com/lyda/misspell-check
532         * ChangeLog: Fix typos.
533         * doc/solaris-versions: Likewise.
534         * lib/regexec.c (re_search_stub): Likewise.
535         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
536
537 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
538
539         manywarnings: remove duplicate -Wmultichar entry
540         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
541         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
542         so keep the entry marked as documented.
543
544 2012-05-27  Karl Berry  <karl@gnu.org>
545
546         * config/srclist.txt (mktime.c): remove last libc sync,
547         perhaps just temporarily.
548
549 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
550
551         regex: don't assume uint64_t or uint32_t
552         * lib/regcomp.c (init_word_char): Don't assume that the types
553         uint64_t and uint32_t exist.  The C standard doesn't guarantee
554         them, and on some 32-bit compilers there is no uint64_t.
555         Problem reported by Gianluigi Tiesi in
556         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
557
558 2012-05-25  Jim Meyering  <meyering@redhat.com>
559
560         maint.mk: add strncpy-prohibiting syntax-check rule
561         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
562
563 2012-05-24  Jim Meyering  <meyering@redhat.com>
564
565         maint.mk: compute $(gpg_key_ID) more portably
566         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
567         That use of sed is not portable to some fringe systems.
568         Reported by Paul Eggert in
569         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
570
571 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
572
573         mktime: sync from glibc
574         * config/srclist.txt: Uncomment mktime.c.
575         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
576         First, indent with tabs, since glibc uses tabs and doesn't want to
577         change and we'd rather be identical to glibc.  Also, two small
578         coding changes:
579         (isdst_differ): Use &&, not &, as && is the usual style.
580         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
581         for clarity.
582
583 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
584
585         announce-gen: du -h is more portable than du --human
586         * build-aux/announce-gen (sizes): Invoke du with -h instead
587         of --human.  Accept leading white space in its output.
588
589 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
590
591         announce-gen: Improve diagnostics.
592         * build-aux/announce-gen: When parsing command line options,
593         prefer "announce-gen: option --release-type requires an argument"
594         to "Option release-type requires an argument".
595
596 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
597
598         maint.mk: gpg_key_ID: use sed more portably
599         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
600         the closing brace.
601         (refresh-po): Fuse two sed invocations into one.
602
603 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
604
605         gitlog-to-changelog: support the log message format used in Bison.
606         * build-aux/gitlog-to-changelog: Support --strip-tab and
607         --strip-cherry-picked.
608
609 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
610
611         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
612         the rest of the current time slice to another thread in the current
613         process. So if the thread that feeds the file decscriptor we're
614         polling is not in the current process, we get busy-waiting.
615         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
616         Patch from Theodore Leblond.
617         * lib/select.c: Split polling out of the loop that sets the output
618         fd_sets.  Check for zero result and loop if the wait timeout is
619         infinite.
620
621 2012-05-21  Simon Josefsson  <simon@josefsson.org>
622
623         select: Fix build error on IRIX 6.5.
624         * lib/select.c: Include stddef.h for NULL.
625
626 2012-05-21  Simon Josefsson  <simon@josefsson.org>
627
628         gc: fix libgcrypt detection on older machines.
629         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
630         copyright years because the file has been distributed every year
631         since it was created.
632
633 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
634
635         crypto: fix bug in large buffer handling
636         Problem reported by Serge Belyshev for glibc in
637         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
638         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
639         * lib/md4.c (md4_process_block):
640         * lib/md5.c (md5_process_block):
641         * lib/sha1.c (sha1_process_block):
642         * lib/sha256.c (sha256_process_block):
643         Don't assume the buffer length is less than 2**32.
644         * lib/sha512.c (sha512_process_block): Likewise.
645         Here, the bug is present only in the rare case where the host does
646         not support uint64_t or where size_t is wider than 64 bits.
647         Use u64size to work around the problems.
648         * lib/u64.h (u64size): New macro.
649
650 2012-05-15  Pádraig Brady  <P@draigBrady.com>
651
652         fsusage: fix block size returned on older Linux 2.6
653
654         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
655         which is available since Linux 2.6.
656         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
657         when the member is available so it can be used as a fallback.
658         * doc/posix-functions/statvfs.texi: Mention the hang issue
659         on Linux < 2.6.36.
660
661 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
662
663         bootstrap: suppress stderr chatter
664         * build-aux/bootstrap (insert_sorted_if_absent, main program):
665         Omit unnecessary chatter to stderr.  The main program chatter
666         was there only inadvertantly.
667
668         bootstrap: .gitignore files created by autopoint, libtool
669         I ran into this problem when bootstrapping the latest diffutils.
670         After './bootstrap', 'git status' reported lots of untracked files
671         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
672         autopoint and do not need to be version-controlled.
673         * build-aux/bootstrap: Put into .gitignore the files that
674         autopoint and libtool create, by keeping track of files that exist
675         after but not before these programs are run.
676         (version_controlled_file): Move up.  2nd arg is now full file
677         name, not base name; this is more convenient.  Put CVS at the end,
678         as it's now somewhat deprecated.
679
680 2012-05-14  Jim Meyering  <meyering@redhat.com>
681
682         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
683         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
684         definition.  Reported by Bruno Haible.
685
686 2012-05-13  Bruno Haible  <bruno@clisp.org>
687             Paul Eggert  <eggert@cs.ucla.edu>
688
689         binary-io: Define set_binary_mode function.
690         * lib/binary-io.h (set_binary_mode): New function.
691         (SET_BINARY): Define in terms of set_binary_mode.
692         * modules/binary-io (configure.ac): Require AC_C_INLINE.
693         * tests/test-binary-io.c (main): Accept an argument, and test either
694         set_binary_mode or SET_BINARY depending on the argument.
695         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
696         argument. Clean up also t-bin-out0.tmp.
697
698 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
699
700         bootstrap: take advantage of POSIX shell features
701
702         The 'bootstrap' script offered by Gnulib script already uses POSIX
703         shell features (like $((...)) arithmetic expansions) that are not
704         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
705         means that bootstrap must already be run using a proper POSIX shell,
706         which will thus provide more features, like ${var#pattern} parameter
707         expansion or inversion of a command exit status with '!'.  We can
708         thus use these features to improve the clarity and the performances
709         of the bootstrap script.
710
711         Suggested by Eric Blake.
712
713         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
714         of sed/expr plus command substitutions, to save some forks.  While
715         we are at it, prefer the POSIX $(...) form of command substitution,
716         rather than the legacy form `...` (since the former is visually
717         clearer and interacts better with quoting), and prefer the idiom:
718           "if ! CMD; then ACTION ..."
719         over the idiom:
720           "if CMD; then :; else ACTION ..."
721         which was required by legacy Bourne shells not supporting '!'.
722
723 2012-05-12  Bruno Haible  <bruno@clisp.org>
724
725         system-quote: Add more comments.
726         * lib/system-quote.h: Add more comments about wilcards and limitations.
727         Suggested by Eli Zaretskii <eliz@gnu.org>.
728
729         sh-quote, system-quote: Add comments about wildcards.
730         * lib/sh-quote.h: Clarify what happens with wildcard characters.
731         * lib/system-quote.h: Likewise.
732         Reported by Eli Zaretskii <eliz@gnu.org>.
733
734 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
735
736         fsusage: check for GNU/Linux statvfs problem dynamically
737         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
738         Define STAT_STATFS2_BSIZE too, since in this case the code now
739         checks dynamically whether statvfs is reliable, falling back on
740         Linux-style statfs otherwise.
741         (statvfs_works): New function, for dynamically testing statvfs.
742         (get_fs_usage) [STAT_STATVFS]: Use it.
743         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
744         statvfs on GNU/Linux hosts, since it's now done dynamically.
745
746 2012-05-10  Bruno Haible  <bruno@clisp.org>
747
748         system-quote, execute, spawn-pipe: Escape '?' on Windows.
749         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
750         '?' character.
751         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
752         * tests/test-system-quote-main.c (check_all): Check also strings like
753         "??????????".
754         Reported by Eli Zaretskii <eliz@gnu.org>.
755
756 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
757
758         _Noreturn: port config.h to gcc -Wundef
759         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
760         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
761         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
762
763 2012-05-10  Bruno Haible  <bruno@clisp.org>
764
765         system-quote: Refactor.
766         * lib/system-quote.h (system_quote_copy): Fix comment.
767         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
768         New functions, extracted from system_quote_copy.
769         (system_quote_length, system_quote_copy): Use these functions.
770         Reported by Paul Eggert.
771
772 2012-05-08  Bruno Haible  <bruno@clisp.org>
773
774         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
775         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
776
777 2012-05-08  Bruno Haible  <bruno@clisp.org>
778
779         Tests for module 'system-quote'.
780         * modules/system-quote-tests: New file.
781         * tests/test-system-quote.sh: New file.
782         * tests/test-system-quote-main.c: New file.
783         * tests/test-system-quote-child.c: New file.
784
785         New module 'system-quote'.
786         * lib/system-quote.h: New file.
787         * lib/system-quote.c: New file.
788         * modules/system-quote: New file.
789
790 2012-05-08  Bruno Haible  <bruno@clisp.org>
791
792         sh-quote: Make C++ safe and allow multiple inclusion.
793         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
794         declarations in extern "C".
795
796 2012-05-08  Bruno Haible  <bruno@clisp.org>
797
798         sh-quote tests: Make tests stricter.
799         * tests/test-sh-quote.c (check_one): Check the return value of
800         shell_quote_copy.
801         (main): Check a string with a CR character. Check a string that
802         contains UCHAR_MAX.
803
804 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
805
806         warnings.m4: provide a means to specify the program to compile.
807         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
808         (gl_WARN_ADD): here.
809         Use gl_AS_VAR_APPEND.
810         Support an argument to specify the program to compile.
811         (gl_WARN_ADD): Accept an argument to specify the program to compile.
812         AC_SUBST the WARN_CFLAGS when they are used.
813         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
814         leave this to gl_WARN_ADD.
815
816 2012-05-08  Eric Blake  <eblake@redhat.com>
817
818         doc: recommendations on gettext version
819         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
820         choice between versions.
821         * DEPENDENCIES (gettext): Cover both approaches.
822
823 2012-05-08  Jim Meyering  <meyering@redhat.com>
824
825         init.sh: explain why EXEEXT support uses aliases rather than functions
826         * tests/init.sh: Add a comment.
827
828         init.sh: don't let bash aliases interfere with tests
829         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
830         is bash.  This avoids problems for those who alias standard commands to
831         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
832         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
833
834 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
835
836         stdint: be more consistent with glibc, SunOS libc
837         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
838         (gl_int_fast16_t, gl_uint_fast16_t)
839         (gl_int_fast32_t, gl_uint_fast32_t)
840         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
841         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
842         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
843         Be consistent with glibc by default, and with SunOS 5.10 and later
844         if __sun is defined.  This lessens the likelihood of clashes if
845         code compiled for older hosts is combined with code compiled for
846         newer ones.  Problem reported by Niels Möller in
847         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
848
849 2012-05-07  Eric Blake  <eblake@redhat.com>
850
851         isatty: relax license to LGPLv2+
852         * modules/isatty (License): Relax license.
853
854 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
855
856         stat-size: comment fix
857         * lib/stat-size.h: Remove obsolete comment about indenting.
858
859 2012-05-06  Bruno Haible  <bruno@clisp.org>
860
861         Tests for module 'sh-quote'.
862         * modules/sh-quote-tests: New file.
863         * tests/test-sh-quote.c: New file.
864
865 2012-05-06  Bruno Haible  <bruno@clisp.org>
866
867         sh-quote: Improve shell_quote_argv's signature.
868         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
869         * lib/sh-quote.c (shell_quote_argv): Likewise.
870
871 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
872
873         stdint: document issues with int_fast8_t etc.
874         * doc/posix-headers/stdint.texi (stdint.h): Say that other
875         stdint.h substitutes may define these types differently.  See
876         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
877
878 2012-05-05  Bruno Haible  <bruno@clisp.org>
879
880         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
881         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
882         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
883         or 'guessing no (mishandles large arguments)'.
884
885 2012-05-05  Bruno Haible  <bruno@clisp.org>
886
887         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
888         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
889         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
890         set gl_cv_func_link_follows_symlink to "guessing no".
891
892 2012-05-05  Bruno Haible  <bruno@clisp.org>
893
894         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
895         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
896         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
897         "guessing no".
898         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
899
900 2012-05-05  Bruno Haible  <bruno@clisp.org>
901
902         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
903         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
904         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
905         set gl_cv_struct_dirent_d_ino to "guessing yes".
906
907 2012-05-05  Bruno Haible  <bruno@clisp.org>
908
909         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
910         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
911         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
912         "guessing yes".
913
914 2012-05-05  Bruno Haible  <bruno@clisp.org>
915
916         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
917         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
918         compiling to a glibc system, set gl_cv_func_signbit and
919         gl_cv_func_signbit_gcc to "guessing yes".
920
921 2012-05-05  Bruno Haible  <bruno@clisp.org>
922
923         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
924         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
925         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
926         to "guessing yes".
927         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
928         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
929
930 2012-05-05  Bruno Haible  <bruno@clisp.org>
931
932         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
933         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
934         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
935         gl_cv_func_realpath_works to "guessing yes".
936
937 2012-05-05  Bruno Haible  <bruno@clisp.org>
938
939         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
940         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
941         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
942
943 2012-05-04  Bruno Haible  <bruno@clisp.org>
944
945         Tweak last commit.
946         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
947         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
948
949 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
950
951         unistd_h: make it easier to avoid sys_types_h
952         This is useful for Emacs, which has its own method of porting to
953         Windows, and which therefore does not need the sys_types_h module.
954         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
955         code moved here from gl_SYS_TYPES_H.
956         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
957         using the code directly.
958         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
959         gl_SYS_TYPES_H.
960         * modules/sys_types (Files):
961         * modules/unistd (Files): Add m4/off_t.m4.
962
963 2012-05-03  Bruno Haible  <bruno@clisp.org>
964
965         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
966         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
967         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
968         "guessing yes" or "guessing no".
969         (gl_FUNC_LSTAT): Update.
970         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
971         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
972         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
973
974 2012-05-03  Bruno Haible  <bruno@clisp.org>
975
976         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
977         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
978         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
979         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
980         cross-compiling, choose the first alternative on glibc systems.
981         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
982
983 2012-05-03  Bruno Haible  <bruno@clisp.org>
984
985         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
986         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
987         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
988
989 2012-05-03  Bruno Haible  <bruno@clisp.org>
990
991         chown: Avoid "guessing no" when cross-compiling to glibc systems.
992         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
993
994 2012-05-03  Bruno Haible  <bruno@clisp.org>
995
996         Avoid "guessing no" guesses when cross-compiling to glibc systems.
997         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
998         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
999         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
1000         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
1001         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
1002         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
1003         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
1004         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
1005         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
1006         compiling to glibc systems, set gl_cv_func_chown_slash_works,
1007         gl_cv_func_chown_ctime_works to "guessing yes".
1008         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
1009         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
1010         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
1011         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
1012         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
1013         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
1014         compiling to glibc systems, set gl_cv_func_open_directory_works to
1015         "guessing yes".
1016         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
1017         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
1018         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
1019         "guessing yes".
1020         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
1021         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
1022         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
1023         compiling to glibc systems, set gl_cv_func_floorf_ieee to
1024         "guessing yes".
1025         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
1026         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
1027         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
1028         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
1029         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
1030         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
1031         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
1032         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
1033         "guessing yes".
1034         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1035         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1036         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1037         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1038         "guessing yes".
1039         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1040         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1041         "guessing yes".
1042         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1043         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1044         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1045         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1046         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1047         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1048         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1049         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1050         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1051         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1052         "guessing yes".
1053         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1054         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1055         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1056         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1057         "guessing yes".
1058         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1059         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1060         "guessing yes".
1061         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1062         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1063         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1064         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1065         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1066         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1067         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1068         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1069         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1070         "guessing yes".
1071         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1072         compiling to glibc systems, set gl_cv_func_mknod_works to
1073         "guessing yes".
1074         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1075         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1076         "guessing yes".
1077         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1078         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1079         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1080         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1081         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1082         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1083         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1084         compiling to glibc systems, set gl_cv_func_svid_putenv to
1085         "guessing yes".
1086         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1087         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1088         "guessing yes".
1089         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1090         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1091         "guessing yes".
1092         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1093         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1094         to "guessing yes".
1095         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1096         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1097         to "guessing yes".
1098         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1099         compiling to glibc systems, set gl_cv_func_rmdir_works to
1100         "guessing yes".
1101         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1102         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1103         gl_cv_func_unlink_parent_fails to "guessing yes".
1104         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1105         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1106         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1107         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1108         gl_cv_func_rename_dest_works to "guessing yes".
1109         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1110         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1111         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1112         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1113         "guessing yes".
1114         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1115         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1116         "guessing yes".
1117         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1118         compiling to glibc systems, set gl_cv_func_setenv_works to
1119         "guessing yes".
1120         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1121         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1122         "guessing yes".
1123         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1124         compiling to glibc systems, set gl_cv_func_sleep_works to
1125         "guessing yes".
1126         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1127         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1128         "guessing yes".
1129         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1130         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1131         "guessing yes".
1132         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1133         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1134         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1135         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1136         "guessing yes".
1137         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1138         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1139         "guessing yes".
1140         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1141         compiling to glibc systems, set gl_cv_func_usleep_works to
1142         "guessing yes".
1143         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1144         compiling to glibc systems, set gl_cv_func_futimesat_works to
1145         "guessing yes".
1146
1147 2012-05-03  Bruno Haible  <bruno@clisp.org>
1148
1149         Say "guessing yes" or "guessing no" when cross-compiling.
1150         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1151         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1152         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1153         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1154         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1155         am_cv_func_working_getline to "guessing yes" or "guessing no".
1156         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1157         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1158         (gl_FUNC_MEMMEM): When cross-compiling, set
1159         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1160         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1161         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1162         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1163         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1164         "guessing no".
1165         (gl_FUNC_STRCASESTR): When cross-compiling, set
1166         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1167         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1168         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1169         (gl_FUNC_STRSTR): When cross-compiling, set
1170         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1171         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1172         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1173         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1174         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1175
1176 2012-05-01  Bruno Haible  <bruno@clisp.org>
1177
1178         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1179         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1180         * build-aux/reloc-ldflags: Likewise.
1181         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1182
1183 2012-05-01  Bruno Haible  <bruno@clisp.org>
1184
1185         gnulib-tool: Remove transitional code.
1186         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1187         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1188
1189 2012-05-01  Bruno Haible  <bruno@clisp.org>
1190
1191         getcwd: Fix misindentation.
1192         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1193
1194 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1195
1196         exclude: process exclude and include directives in order
1197         This restores the pre-2009 behavior, and is part of a fix of a
1198         grep bug reported by Quentin Arce in
1199         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1200         * lib/exclude.c (struct exclude): Remove 'tail' member.
1201         (new_exclude_segment): Prepend the new segment instead of appending.
1202         Return void, since that's now more convenient.
1203         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1204         (file_name_matches): Renamed from excluded_file_name_p.
1205         (file_pattern_matches, file_name_matches):
1206         Return true if the pattern matches, not if it excludes.
1207         All callers changed.
1208         (excluded_file_name): Process the list in reverse order;
1209         since the list is now reversed this restores the pre-2009 behavior.
1210         (add_exclude): Adjust to new reversed-order list.  Use local var
1211         rather than macro, for clarity.
1212         * tests/test-exclude7.sh: Adjust to corrected behavior.
1213
1214         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1215         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1216         it's not possible here.  Handle the case of \ at end of pattern
1217         without dumping core.
1218         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1219
1220         _Noreturn: future-proof non-GNU and non-MSVC compilers
1221         * build-aux/snippet/_Noreturn.h (_Noreturn):
1222         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1223         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1224         C11 or later.  This is more likely to work with random future C
1225         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1226         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1227
1228         exclude: handle wildcards with FNM_EXTMATCH
1229         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1230         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1231         comment that "has wildcards" really means "has or may have
1232         wildcards".  Simplify by avoiding the need to call strcspn.
1233
1234 2012-04-29  Bruno Haible  <bruno@clisp.org>
1235
1236         gnulib-tool: Fix list of authors.
1237         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1238
1239 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1240
1241         bootstrap: support Automake-NG in $buildreq
1242         * bootstrap (check_versions): Handle automake and aclocal from
1243         Automake-NG specially.  They can be specified as respectively
1244         the "automake-ng" and "aclocal-ng" requirements.
1245
1246 2012-04-25  Eric Blake  <eblake@redhat.com>
1247
1248         bootstrap: only force latest Makefile.in.in for gettext module
1249         * build-aux/bootstrap (with_gettext): Only install latest
1250         Makefile.in.in for projects requesting bleeding edge gettext.
1251
1252 2012-04-22  Bruno Haible  <bruno@clisp.org>
1253
1254         doc: Mention reason for replacement on glibc/Linux systems.
1255         * doc/posix-functions/dprintf.texi: Mention the problem with special
1256         'long double' values.
1257         * doc/posix-functions/fprintf.texi: Likewise.
1258         * doc/posix-functions/printf.texi: Likewise.
1259         * doc/posix-functions/snprintf.texi: Likewise.
1260         * doc/posix-functions/sprintf.texi: Likewise.
1261         * doc/posix-functions/vdprintf.texi: Likewise.
1262         * doc/posix-functions/vfprintf.texi: Likewise.
1263         * doc/posix-functions/vprintf.texi: Likewise.
1264         * doc/posix-functions/vsnprintf.texi: Likewise.
1265         * doc/posix-functions/vsprintf.texi: Likewise.
1266         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1267         platforms with F_DUPFD_CLOEXEC problems.
1268         * doc/posix-functions/glob.texi: Mention which platforms are affected
1269         by the problem with symbolic links.
1270         * doc/posix-functions/linkat.texi: Mention the problem with
1271         AT_SYMLINK_FOLLOW on Linux.
1272
1273 2012-04-22  Bruno Haible  <bruno@clisp.org>
1274
1275         pwrite: Don't replace on all platforms.
1276         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1277
1278 2012-04-22  Bruno Haible  <bruno@clisp.org>
1279
1280         rint* tests: Avoid gcc warnings.
1281         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1282         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1283         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1284
1285 2012-04-21  Bruno Haible  <bruno@clisp.org>
1286
1287         users.txt: Update.
1288         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1289         switched from CVS to git, bzr, or svn.
1290
1291 2012-04-21  Bruno Haible  <bruno@clisp.org>
1292
1293         Large File Support for native Windows platforms.
1294
1295         * m4/largefile.m4 (gl_LARGEFILE): New macro.
1296         * modules/largefile (configure.ac): Require gl_LARGEFILE.
1297
1298         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
1299         type.
1300         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1301         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1302         * doc/posix-headers/sys_types.texi: Mention the effect of the
1303         'largefile' module.
1304
1305         * lib/fcntl.in.h: Add comments about off_t.
1306         * modules/fcntl-h (Depends-on): Add sys_types.
1307
1308         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1309         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1310         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1311         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1312         * modules/unistd (Depends-on): Add sys_types.
1313         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1314
1315         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1316         instead of lseek.
1317         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1318         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1319         * modules/lseek (Depends-on): Add sys_types.
1320
1321         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1322         msvc-nothrow.h.
1323         (SetFileSize): New function.
1324         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1325         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1326         if Large File Support is requested.
1327         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1328         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1329
1330         * lib/stdio.in.h: Add comments about off_t.
1331         * modules/stdio (Depends-on): Add sys_types.
1332
1333         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1334         instead of ftello.
1335         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1336         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1337         (gl_PREREQ_FTELLO): New macro.
1338         * modules/ftello (Depends-on): Add sys_types.
1339         (configure.ac): Incoke gl_PREREQ_FTELLO.
1340
1341         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1342         instead of fseeko.
1343         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1344         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1345         (gl_PREREQ_FSEEKO): New macro.
1346         * modules/fseeko (Depends-on): Add sys_types.
1347         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1348
1349         * lib/sys_stat.in.h: Add comments about off_t.
1350         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1351         64-bit integer for st_size in 'struct stat'.
1352         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1353         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1354         * modules/sys_stat (Depends-on): Add sys_types.
1355         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1356
1357         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1358         instead of stat or _stat.
1359
1360         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1361         'struct _stati64' instead of fstat and 'struct stat'.
1362         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1363         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
1364
1365         Reported by Ray Satiro <raysatiro@yahoo.com>.
1366
1367 2012-04-19  Eric Blake  <eblake@redhat.com>
1368
1369         bootstrap: accommodate older libtool
1370         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
1371         Reported by Daniel P. Berrange.
1372
1373 2012-04-19  Jim Meyering  <meyering@redhat.com>
1374
1375         announce-gen: avoid failure due to lack of Digest::SHA1
1376         Even with the preferred Digest::SHA available, this script
1377         would fail when the backup module, Digest::SHA1, was not installed.
1378         * build-aux/announce-gen: Quote the conditional use of "use".
1379         Reported by Reuben Thomas in:
1380         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
1381
1382         bootstrap: don't let a user's CDPATH setting affect this script
1383         When CDPATH is set, cd will sometimes generate output.
1384         When "cd" is run in a subshell whose output matters, that
1385         surprising-to-some output can cause malfunction.
1386         Unsetting CDPATH turns off this shell "feature."
1387         * build-aux/bootstrap (CDPATH): Unset.
1388         Reported by Reuben Thomas in:
1389         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
1390         and inspired by his patch here:
1391         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
1392
1393 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
1394         and Jim Meyering  <meyering@redhat.com>
1395
1396         maint.mk: catch "see @xref{}" and similar
1397         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1398         prohibit "See also @xref{", "Also see @pxref{", and similar.
1399
1400 2012-04-16  Jim Meyering  <meyering@redhat.com>
1401
1402         bootstrap: really use gnulib's po/Makefile.in.in
1403         * build-aux/bootstrap: Correct the source file name in previous change.
1404         Reported by Akim Demaille.
1405
1406         configmake: correct minor inconsistency in Makefile rule
1407         * modules/configmake (Makefile.am): All other rules like this one
1408         run the final "mv -f ..." in the same backslash-continued command
1409         as the one that does everything else.  This one put the mv -f ...
1410         command on a separate, non-backslash-continued line.
1411         Make it like the others.
1412
1413         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
1414         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
1415         the one from gettext.  Reported by Akim Demaille.
1416
1417 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
1418
1419         Fix recursion of install-* into po directories.
1420         Bison's install-pdf bug reported by Hans Aberg at
1421         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1422         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1423         (install-info, install-pdf, install-ps): New targets.
1424
1425 2012-04-16  Jim Meyering  <meyering@redhat.com>
1426
1427         maint: avoid spurious "make sc_maint" failure
1428         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1429         exempt all *.class file names, for lib/javaversion.class.
1430
1431 2012-04-15  Bruno Haible  <bruno@clisp.org>
1432
1433         lseek: Make configure test independent of environment.
1434         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1435         Windows, we know that lseek() on pipes is broken; skip the runtime
1436         test.
1437
1438 2012-04-14  Bruno Haible  <bruno@clisp.org>
1439
1440         stat: Bypass buggy override in mingw64.
1441         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
1442         * lib/stat.c (stat) [mingw64]: Define to _stat.
1443         * doc/posix-functions/stat.texi: Mention mingw64 bug.
1444
1445 2012-04-14  Bruno Haible  <bruno@clisp.org>
1446
1447         pathmax: Fix compilation error on MSVC 9.
1448         * modules/pathmax (Depends-on): Add unistd.
1449
1450 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1451
1452         README: document pointer comparison assumption
1453         * README (Portability guidelines): Document assumption about
1454         pointer comparisons, in response to a recent bug-gnulib comment by
1455         Jeffrey Kegler.
1456
1457 2012-04-12  Bruno Haible  <bruno@clisp.org>
1458
1459         Tests for module 'getrusage'.
1460         * modules/getrusage-tests: New file.
1461         * tests/test-getrusage.c: New file.
1462
1463         New module 'getrusage'.
1464         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1465         warn-on-use.h.
1466         (getrusage): New declaration.
1467         * lib/getrusage.c: New file.
1468         * m4/getrusage.m4: New file.
1469         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1470         is declared.
1471         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
1472         HAVE_GETRUSAGE.
1473         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
1474         snippet/c++defs, snippet/warn-on-use.
1475         (Makefile.am): Update generation of sys/resource.h. Substitute
1476         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
1477         * modules/getrusage: New file.
1478         * doc/posix-functions/getrusage.texi: Mention the new module.
1479
1480 2012-04-12  Bruno Haible  <bruno@clisp.org>
1481
1482         Tests for module 'sys_resource'.
1483         * modules/sys_resource-tests: New file.
1484         * tests/test-sys_resource.c: New file.
1485
1486         New module 'sys_resource'.
1487         * lib/sys_resource.in.h: New file.
1488         * m4/sys_resource_h.m4: New file.
1489         * modules/sys_resource: New file.
1490         * doc/posix-headers/sys_resource.texi: Mention the new module.
1491
1492 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
1493
1494         ioctl: Fix compilation error on mingw.
1495         * lib/ioctl.c: Include <windows.h>.
1496         Also reported by Ray Satiro <raysatiro@yahoo.com>.
1497
1498 2012-04-04  Jim Meyering  <meyering@redhat.com>
1499
1500         regex: correct #pragma guard expression
1501         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
1502         not 4.3.  Correct its cpp guard expression.
1503
1504 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1505
1506         regex: remove unnecessary type punning
1507         Problem reported by Vladimir Serbinenko in
1508         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
1509         * lib/regex.h (struct re_pattern_buffer): Change the type of
1510         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
1511         Fix comment to match code.
1512         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
1513         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
1514         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
1515         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
1516         (set_regs):
1517         Omit no-longer-necessary casts.
1518
1519 2012-04-03  Bruno Haible  <bruno@clisp.org>
1520
1521         Tests for module 'ilogbl'.
1522         * modules/ilogbl-tests: New file.
1523         * tests/test-ilogbl.c: New file.
1524
1525         New module 'ilogbl'.
1526         * lib/math.in.h (ilogbl): New declaration.
1527         * lib/ilogbl.c: New file.
1528         * m4/ilogbl.m4: New file.
1529         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1531         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1532         Split sed invocation, to avoid the limit of 100 substitutions of
1533         HP-UX 'sed'.
1534         * modules/ilogbl: New file.
1535         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1536         * doc/posix-functions/ilogbl.texi: Mention the new module.
1537
1538 2012-04-03  Bruno Haible  <bruno@clisp.org>
1539
1540         Tests for module 'ilogbf'.
1541         * modules/ilogbf-tests: New file.
1542         * tests/test-ilogbf.c: New file.
1543
1544         New module 'ilogbf'.
1545         * lib/math.in.h (ilogbf): New declaration.
1546         * lib/ilogbf.c: New file.
1547         * m4/ilogbf.m4: New file.
1548         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1549         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1550         REPLACE_ILOGBF.
1551         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1552         REPLACE_ILOGBF.
1553         * modules/ilogbf: New file.
1554         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1555         * doc/posix-functions/ilogbf.texi: Mention the new module.
1556
1557 2012-04-03  Bruno Haible  <bruno@clisp.org>
1558
1559         Tests for module 'ilogb'.
1560         * modules/ilogb-tests: New file.
1561         * tests/test-ilogb.c: New file.
1562         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1563         tests/test-logb-ieee.h.
1564
1565         New module 'ilogb'.
1566         * lib/math.in.h (ilogb): New declaration.
1567         * lib/ilogb.c: New file.
1568         * m4/ilogb.m4: New file.
1569         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1570         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1571         REPLACE_ILOGB.
1572         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1573         REPLACE_ILOGB.
1574         * modules/ilogb: New file.
1575         * tests/test-math-c++.cc: Check the declaration of ilogb.
1576         * doc/posix-functions/ilogb.texi: Mention the new module.
1577
1578 2012-04-03  Bruno Haible  <bruno@clisp.org>
1579
1580         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1581         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1582         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1583         (main): Check their values.
1584         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1585         problem.
1586
1587 2012-04-03  Bruno Haible  <bruno@clisp.org>
1588
1589         Tests for module 'logbl-ieee'.
1590         * modules/logbl-ieee-tests: New file.
1591         * tests/test-logbl-ieee.c: New file.
1592
1593         New module 'logbl-ieee'.
1594         * modules/logbl-ieee: New file.
1595
1596         Tests for module 'logb-ieee'.
1597         * modules/logb-ieee-tests: New file.
1598         * tests/test-logb-ieee.c: New file.
1599
1600         New module 'logb-ieee'.
1601         * modules/logb-ieee: New file.
1602
1603         Tests for module 'logbf-ieee'.
1604         * modules/logbf-ieee-tests: New file.
1605         * tests/test-logbf-ieee.c: New file.
1606         * tests/test-logb-ieee.h: New file.
1607
1608         New module 'logbf-ieee'.
1609         * modules/logbf-ieee: New file.
1610
1611 2012-04-03  Bruno Haible  <bruno@clisp.org>
1612
1613         Tests for module 'logbl'.
1614         * modules/logbl-tests: New file.
1615         * tests/test-logbl.c: New file.
1616
1617         New module 'logbl'.
1618         * lib/math.in.h (logbl): New declaration.
1619         * lib/logbl.c: New file.
1620         * m4/logbl.m4: New file.
1621         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1623         REPLACE_LOGBL.
1624         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1625         REPLACE_LOGBL.
1626         * modules/logbl: New file.
1627         * tests/test-math-c++.cc: Check the declaration of logbl.
1628         * doc/posix-functions/logbl.texi: Mention the new module.
1629
1630 2012-04-02  Bruno Haible  <bruno@clisp.org>
1631
1632         Tests for module 'logbf'.
1633         * modules/logbf-tests: New file.
1634         * tests/test-logbf.c: New file.
1635
1636         New module 'logbf'.
1637         * lib/math.in.h (logbf): New declaration.
1638         * lib/logbf.c: New file.
1639         * m4/logbf.m4: New file.
1640         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1641         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1642         REPLACE_LOGBF.
1643         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1644         REPLACE_LOGBF.
1645         * modules/logbf: New file.
1646         * tests/test-math-c++.cc: Check the declaration of logbf.
1647         * doc/posix-functions/logbf.texi: Mention the new module.
1648
1649 2012-04-02  Bruno Haible  <bruno@clisp.org>
1650
1651         logb tests: More tests.
1652         * tests/test-logb.h: New file, based on tests/test-logb.c and
1653         tests/test-frexp.h.
1654         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1655         (main): Just invoke test_function.
1656         * modules/logb-tests (Files): Add tests/test-logb.h,
1657         tests/minus-zero.h, tests/randomd.c.
1658         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1659
1660         logb: Provide replacement and workarounds.
1661         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1662         is 1.
1663         * lib/logb.c: New file.
1664         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1665         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1667         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1668         * modules/logb (Files): Add lib/logb.c.
1669         (Depends-on): Add isfinite, frexp, isnand.
1670         (configure.ac): Compile the replacement code logb.c if needed.
1671         * tests/test-math-c++.cc: Check the declaration of logb.
1672         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1673         with subnormal numbers.
1674
1675 2012-04-02  Bruno Haible  <bruno@clisp.org>
1676
1677         log10* tests: Speed up.
1678         * tests/test-log10.h (test_function): Reduce amount of random numbers
1679         to test.
1680
1681 2012-04-01  Bruno Haible  <bruno@clisp.org>
1682
1683         logf-ieee: Fix test whether logf works.
1684         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1685
1686 2012-04-01  Bruno Haible  <bruno@clisp.org>
1687
1688         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1689         * lib/log10l.c: Include <float.h>
1690         (log10l): On IRIX, normalize the +Infinity value.
1691         * modules/log10l (Depends-on): Add 'float'.
1692         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1693         +Infinity.
1694
1695         log10f-ieee: Work around test failure on NetBSD 5.1.
1696         * m4/log10f-ieee.m4: New file.
1697         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1698         test whether log10f works with a negative argument. Replace it if not.
1699         * lib/log10f.c (log10f): For negative arguments, return NaN.
1700         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1701         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1702         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1703
1704         log10f-ieee: Work around test failure on Solaris 9.
1705         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1706         (configure.ac): Require gl_FUNC_LOG10F.
1707
1708         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1709         * m4/log10-ieee.m4: New file.
1710         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1711         whether log10 works with a negative argument. Replace it if not.
1712         * lib/log10.c (log10): For negative arguments, return NaN.
1713         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1714         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1715         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1716
1717         Tests for module 'log10l-ieee'.
1718         * modules/log10l-ieee-tests: New file.
1719         * tests/test-log10l-ieee.c: New file.
1720
1721         New module 'log10l-ieee'.
1722         * modules/log10l-ieee: New file.
1723
1724         Tests for module 'log10-ieee'.
1725         * modules/log10-ieee-tests: New file.
1726         * tests/test-log10-ieee.c: New file.
1727
1728         New module 'log10-ieee'.
1729         * modules/log10-ieee: New file.
1730
1731         Tests for module 'log10f-ieee'.
1732         * modules/log10f-ieee-tests: New file.
1733         * tests/test-log10f-ieee.c: New file.
1734         * tests/test-log10-ieee.h: New file.
1735
1736         New module 'log10f-ieee'.
1737         * modules/log10f-ieee: New file.
1738
1739 2012-04-01  Bruno Haible  <bruno@clisp.org>
1740
1741         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1742         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1743         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1744         workaround.
1745         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1746         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1748         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1749         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1750         (Depends-on): Update conditions.
1751         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1752         IRIX 6.5, OSF/1 5.1 problems.
1753
1754 2012-04-01  Bruno Haible  <bruno@clisp.org>
1755
1756         log10f: Work around OSF/1 5.1 bug.
1757         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1758         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1759         workaround.
1760         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1761         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1763         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1764         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1765         (Depends-on): Update conditions.
1766         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1767
1768 2012-04-01  Bruno Haible  <bruno@clisp.org>
1769
1770         log10: Work around OSF/1 5.1 bug.
1771         * lib/math.in.h (log10): New declaration.
1772         * lib/log10.c: New file.
1773         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1774         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1775         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1777         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1778         * modules/log10 (Files): Add lib/log10.c.
1779         (Depends-on): Add math.
1780         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1781         * tests/test-math-c++.cc: Check the declaration of log10.
1782         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1783
1784 2012-03-31  Bruno Haible  <bruno@clisp.org>
1785
1786         log10l tests: More tests.
1787         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1788         tests/minus-zero.h, tests/randoml.c.
1789         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1790         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1791         (main): Invoke test_function.
1792
1793         log10f tests: More tests.
1794         * modules/log10f-tests (Files): Add tests/test-log10.h,
1795         tests/minus-zero.h, tests/randomf.c.
1796         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1797         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1798         (main): Invoke test_function.
1799
1800         log10 tests: More tests.
1801         * tests/test-log10.h: New file.
1802         * modules/log10-tests (Files): Add tests/test-log10.h,
1803         tests/minus-zero.h, tests/randomd.c.
1804         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1805         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1806         (main): Invoke test_function.
1807
1808 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1809
1810         fflush: Fix syntax error.
1811         * lib/fflush.c: Include unused-parameter.h, needed for
1812         _GL_UNUSED_PARAMETER.
1813         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1814
1815 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1816
1817         regex: pacify GCC when compiling GRUB
1818         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1819         a diagnostic.  Reported by Vladimir Serbinenko in
1820         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1821
1822 2012-03-29  Eric Blake  <eblake@redhat.com>
1823
1824         stdio: don't assume gets any more
1825         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1826         support.
1827         * modules/stdio (Makefile.am): Likewise.
1828         * lib/stdio-read.c (gets): Likewise.
1829         * tests/test-stdio-c++.cc: Likewise.
1830         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1831         * lib/stdio.in.h (gets): Make warning occur in more places.
1832         * doc/posix-functions/gets.texi (gets): Update documentation.
1833         Reported by Christer Solskogen.
1834
1835         maint.mk: fix syntax checks without exclusions
1836         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1837         Reported by Daniel P. Berrange.
1838
1839         strerror_r: avoid compiler warning
1840         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1841         level.
1842
1843         fflush: avoid compiler warning
1844         * lib/fflush.c (update_fpos_cache): Mark variables that are
1845         potentially unused.
1846
1847 2012-03-25  Bruno Haible  <bruno@clisp.org>
1848
1849         Tests for module 'localeconv'.
1850         * modules/localeconv-tests: New file.
1851         * tests/test-localeconv.c: New file.
1852
1853         New module 'localeconv'.
1854         * lib/locale.in.h (localeconv): New declaration.
1855         * lib/localeconv.c: New file.
1856         * m4/localeconv.m4: New file.
1857         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1858         REPLACE_LOCALECONV.
1859         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1860         REPLACE_LOCALECONV.
1861         * modules/localeconv: New file.
1862         * modules/nl_langinfo (Depends-on): Add localeconv.
1863         * modules/human (Depends-on): Likewise.
1864         * doc/posix-functions/localeconv.texi: Mention the new module.
1865
1866 2012-03-25  Bruno Haible  <bruno@clisp.org>
1867
1868         locale: Provide a complete 'struct lconv'.
1869         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1870         'struct lconv' does not contain int_p_cs_precedes.
1871         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1872         * doc/posix-headers/locale.texi: Update.
1873
1874         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1875         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1876         * doc/posix-headers/locale.texi: Update.
1877
1878         locale: Provide a working 'struct lconv'.
1879         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1880         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1881         'struct lconv' does not even contain decimal_point.
1882         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1883         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1884         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1885         * doc/posix-headers/locale.texi: Mention the problems with
1886         'struct lconv'.
1887         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1888
1889 2012-03-24  Bruno Haible  <bruno@clisp.org>
1890
1891         Enable common subexpression optimization in GCC.
1892         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1893         macros.
1894         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1895         GCC attribute 'const'.
1896         (uc_locale_language): Declare with GCC attribute 'pure'.
1897         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1898         with GCC attribute 'const'.
1899         * lib/unictype.in.h (uc_is_general_category_withtable,
1900         uc_combining_class, uc_combining_class_name,
1901         uc_combining_class_long_name, uc_bidi_class_name,
1902         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1903         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1904         uc_decimal_value, uc_digit_value, uc_numeric_value,
1905         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1906         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1907         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1908         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1909         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1910         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1911         Declare with GCC attribute 'const'.
1912         (uc_general_category_name, uc_general_category_long_name,
1913         uc_general_category_byname, uc_general_category,
1914         uc_is_general_category, uc_combining_class_byname,
1915         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1916         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1917         Declare with GCC attribute 'pure'.
1918         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1919         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1920         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1921         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1922         with GCC attribute 'pure'.
1923         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1924         'const'.
1925         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1926         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1927         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1928         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1929         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1930         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1931         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1932         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1933         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1934         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1935         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1936         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1937         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1938         GCC attribute 'pure'.
1939         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1940         'const'.
1941         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1942         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1943         u32_strwidth): Declare with GCC attribute 'pure'.
1944
1945         Enable common subexpression optimization in GCC.
1946         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1947         (alphasort): Declare with GCC attribute 'pure'.
1948         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1949         (atoll): Declare with GCC attribute 'pure'.
1950         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1951         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1952         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1953         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1954         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1955         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1956         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1957
1958 2012-03-24  Bruno Haible  <bruno@clisp.org>
1959
1960         gnulib-tool: Avoid unintended error output from 'cmp'.
1961         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1962         "cmp -s", not "cmp > /dev/null".
1963
1964 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1965
1966         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1967
1968         It's not just Automake versions < 1.9b that creates an empty
1969         pkgdatadir at installation time if pkgdata_DATA is specified
1970         to empty; modern automake versions do this as well, at least
1971         until automake 1.11.4 (not yet released at the moment of writing,
1972         but soon to appear).  That behaviour was generally considered a
1973         feature rather than a bug, at least until this discussion:
1974         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1975
1976         See also automake bugs #10997 and #11030.
1977
1978         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1979         reference to relevant automake bug numbers.
1980         (func_emit_tests_Makefile_am): Likewise.
1981
1982 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1983
1984         announce-gen: use Digest::SHA when possible
1985         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1986         back to Digest::SHA1 if necessary.
1987
1988 2012-03-20  Jim Meyering  <meyering@redhat.com>
1989
1990         tests: avoid gcc warnings about argv vs. const initializers
1991         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1992         warnings about discarding 'const' qualifier from pointer target type.
1993         * tests/test-posix_spawn2.c (main): Likewise.
1994
1995 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1996
1997         README-release: simplify slightly
1998         * top/README-release: Run "git checkout master" only once.
1999
2000 2012-03-15  Mark Wielaard  <mark@klomp.org>
2001
2002         git-merge-changelog: add specific example on how to use with hg.
2003         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
2004
2005 2012-03-18  Mark Wielaard  <mark@klomp.org>
2006
2007         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
2008
2009 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
2010
2011         git-version-gen: don't let "prefix" envvar cause trouble
2012         * build-aux/git-version-gen (prefix): Initialize properly,
2013         so as not to use a value specified via the environment.
2014         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
2015
2016 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2017
2018         regex: diagnose too-large repeat counts in EREs
2019         Previously, the code did not diagnose the too-large repeat count
2020         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
2021         as if it were 'b\{1000000000}', which is unexpected.
2022         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
2023         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
2024         is a reasonable one for this problem.  Another option would be to
2025         create a new REG_OVERFLOW error for repeat counts that are too large.
2026         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
2027         count is too large, so that the caller can distinguish the two cases.
2028         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
2029         "Too large" return code, and that repeat counts are one example of this.
2030
2031 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2032
2033         doc: some glibc x32 integer width issues
2034         * doc/posix-headers/sys_types.texi (sys/types.h):
2035         * doc/posix-headers/time.texi (time.h):
2036         Mention that glibc x32 does not conform to POSIX in a couple of
2037         areas related to integer widths.
2038
2039 2012-03-15  Bruno Haible  <bruno@clisp.org>
2040
2041         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2042         * lib/fma.c (VOLATILE): New macro.
2043         (FUNC): Use it to work around a GCC compiler bug.
2044
2045 2012-03-13  Bruno Haible  <bruno@clisp.org>
2046
2047         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2048         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2049         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2050         REPLACE_HYPOTL to 1.
2051         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2052
2053 2012-03-13  Bruno Haible  <bruno@clisp.org>
2054
2055         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2056         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2057         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2058         REPLACE_REMAINDERL to 1.
2059         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2060         bug.
2061
2062 2012-03-13  Bruno Haible  <bruno@clisp.org>
2063
2064         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2065         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2066         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2067         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2068         too big rounding errors.
2069         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2070         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2071         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2072         (Depends-on): Update conditions.
2073         * tests/test-sqrtl.c (my_ldexpl): New function.
2074         (main): Add test of a particular value.
2075         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2076
2077 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2078
2079         doc: Update timer_* platform portability notes.
2080         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2081         that always return ENOSYS.
2082         * doc/posix-functions/timer_delete.texi: Likewise.
2083         * doc/posix-functions/timer_gettime.texi: Likewise.
2084         * doc/posix-functions/timer_settime.texi: Likewise.
2085
2086 2012-03-13  Bruno Haible  <bruno@clisp.org>
2087
2088         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2089         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2090         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2091         REPLACE_CBRTL to 1.
2092         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2093
2094 2012-03-13  Bruno Haible  <bruno@clisp.org>
2095
2096         remainderl: Avoid compilation error on AIX >= 5.2.
2097         * lib/math.in.h (remainderl): Undefine macro from the system header.
2098
2099 2012-03-13  Bruno Haible  <bruno@clisp.org>
2100
2101         Avoid compilation errors with MSVC option -fp:strict.
2102         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2103         * lib/cbrtf.c: Likewise.
2104         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2105
2106 2012-03-12  Bruno Haible  <bruno@clisp.org>
2107
2108         uninorm: Don't crash in out-of-memory conditions.
2109         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2110         gracefully.
2111         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2112         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2113
2114 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2115
2116         quote: fix syntax-check
2117         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2118         also exports quote_quoting_options.
2119
2120 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2121
2122         Collapse list of copyright years to ranges.  See
2123         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2124         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2125         build-aux/csharpexec.sh.in, build-aux/gnupload,
2126         build-aux/install-reloc, build-aux/javacomp.sh.in,
2127         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2128         build-aux/move-if-change, build-aux/reloc-ldflags,
2129         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2130
2131 2012-03-11  Bruno Haible  <bruno@clisp.org>
2132
2133         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2134         * m4/log2f-ieee.m4: New file.
2135         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2136         whether log2f works with a minus zero argument. Replace it if not.
2137         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2138         (Depends-on): Add log2-ieee.
2139         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2140         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2141
2142         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2143         * m4/log2-ieee.m4: New file.
2144         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2145         whether log2 works with a minus zero argument. Replace it if not.
2146         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2147         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2148         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2149
2150         Tests for module 'log2l-ieee'.
2151         * modules/log2l-ieee-tests: New file.
2152         * tests/test-log2l-ieee.c: New file.
2153
2154         New module 'log2l-ieee'.
2155         * modules/log2l-ieee: New file.
2156
2157         Tests for module 'log2-ieee'.
2158         * modules/log2-ieee-tests: New file.
2159         * tests/test-log2-ieee.c: New file.
2160
2161         New module 'log2-ieee'.
2162         * modules/log2-ieee: New file.
2163
2164         Tests for module 'log2f-ieee'.
2165         * modules/log2f-ieee-tests: New file.
2166         * tests/test-log2f-ieee.c: New file.
2167         * tests/test-log2-ieee.h: New file.
2168
2169         New module 'log2f-ieee'.
2170         * modules/log2f-ieee: New file.
2171
2172 2012-03-11  Bruno Haible  <bruno@clisp.org>
2173
2174         Tests for module 'log2l'.
2175         * modules/log2l-tests: New file.
2176         * tests/test-log2l.c: New file.
2177
2178         New module 'log2l'.
2179         * lib/math.in.h (log2l): New declaration.
2180         * lib/log2l.c: New file.
2181         * m4/log2l.m4: New file.
2182         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2184         REPLACE_LOG2L.
2185         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2186         REPLACE_LOG2L.
2187         * modules/log2l: New file.
2188         * tests/test-math-c++.cc: Check the declaration of log2l.
2189         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2190         and OSF/1 problems.
2191
2192 2012-03-11  Bruno Haible  <bruno@clisp.org>
2193
2194         Tests for module 'log2f'.
2195         * modules/log2f-tests: New file.
2196         * tests/test-log2f.c: New file.
2197
2198         New module 'log2f'.
2199         * lib/math.in.h (log2f): New declaration.
2200         * lib/log2f.c: New file.
2201         * m4/log2f.m4: New file.
2202         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2204         REPLACE_LOG2F.
2205         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2206         REPLACE_LOG2F.
2207         * modules/log2f: New file.
2208         * tests/test-math-c++.cc: Check the declaration of log2f.
2209         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2210         and OSF/1 and Cygwin problems.
2211
2212 2012-03-11  Bruno Haible  <bruno@clisp.org>
2213
2214         Tests for module 'log2'.
2215         * modules/log2-tests: New file.
2216         * tests/test-log2.c: New file.
2217         * tests/test-log2.h: New file.
2218
2219         New module 'log2'.
2220         * lib/math.in.h (log2): New declaration.
2221         * lib/log2.c: New file.
2222         * m4/log2.m4: New file.
2223         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2225         REPLACE_LOG2.
2226         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2227         REPLACE_LOG2.
2228         * modules/log2: New file.
2229         * tests/test-math-c++.cc: Check the declaration of log2.
2230         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2231         and OSF/1 and Cygwin problems.
2232
2233 2012-03-11  Bruno Haible  <bruno@clisp.org>
2234
2235         exp2* tests: More tests.
2236         * tests/test-exp2.h (test_function): Test all integral arguments that
2237         don't need to overflow or denormalized numbers.
2238         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2239         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2240         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2241
2242 2012-03-10  Bruno Haible  <bruno@clisp.org>
2243
2244         log1pl-ieee: Work around test failure on AIX 7.1.
2245         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2246
2247         log1pl-ieee: Work around test failure on IRIX 6.5.
2248         * m4/log1pl-ieee.m4: New file.
2249         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2250         test whether log1pl works with a minus zero argument. Replace it if
2251         not.
2252         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2254         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2255         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2256         (Depends-on): Update conditions.
2257         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2258         m4/signbit.m4.
2259         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2260         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2261
2262         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2263         * m4/log1pf-ieee.m4: New file.
2264         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2265         test whether log1pf works with a minus zero argument. Replace it if
2266         not.
2267         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2268         m4/signbit.m4.
2269         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2270         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2271
2272         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2273         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2274         (configure.ac): Require gl_FUNC_LOG1PF.
2275
2276         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2277         * m4/log1p-ieee.m4: New file.
2278         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2279         whether log1p works with a minus zero argument. Replace it if not.
2280         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2282         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2283         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2284         (Depends-on): Update conditions.
2285         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2286         m4/signbit.m4.
2287         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2288         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2289
2290         Tests for module 'log1pl-ieee'.
2291         * modules/log1pl-ieee-tests: New file.
2292         * tests/test-log1pl-ieee.c: New file.
2293
2294         New module 'log1pl-ieee'.
2295         * modules/log1pl-ieee: New file.
2296
2297         Tests for module 'log1p-ieee'.
2298         * modules/log1p-ieee-tests: New file.
2299         * tests/test-log1p-ieee.c: New file.
2300
2301         New module 'log1p-ieee'.
2302         * modules/log1p-ieee: New file.
2303
2304         Tests for module 'log1pf-ieee'.
2305         * modules/log1pf-ieee-tests: New file.
2306         * tests/test-log1pf-ieee.c: New file.
2307         * tests/test-log1p-ieee.h: New file.
2308
2309         New module 'log1pf-ieee'.
2310         * modules/log1pf-ieee: New file.
2311
2312 2012-03-10  Bruno Haible  <bruno@clisp.org>
2313
2314         Tests for module 'log1pl'.
2315         * modules/log1pl-tests: New file.
2316         * tests/test-log1pl.c: New file.
2317
2318         New module 'log1pl'.
2319         * lib/math.in.h (log1pl): New declaration.
2320         * lib/log1pl.c: New file.
2321         * m4/log1pl.m4: New file.
2322         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2323         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2324         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2325         * modules/log1pl: New file.
2326         * tests/test-math-c++.cc: Check the declaration of log1pl.
2327         * doc/posix-functions/log1pl.texi: Mention the new module.
2328
2329 2012-03-10  Bruno Haible  <bruno@clisp.org>
2330
2331         Tests for module 'log1pf'.
2332         * modules/log1pf-tests: New file.
2333         * tests/test-log1pf.c: New file.
2334
2335         New module 'log1pf'.
2336         * lib/math.in.h (log1pf): New declaration.
2337         * lib/log1pf.c: New file.
2338         * m4/log1pf.m4: New file.
2339         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2340         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2341         REPLACE_LOG1PF.
2342         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2343         REPLACE_LOG1PF.
2344         * modules/log1pf: New file.
2345         * tests/test-math-c++.cc: Check the declaration of log1pf.
2346         * doc/posix-functions/log1pf.texi: Mention the new module.
2347
2348 2012-03-10  Bruno Haible  <bruno@clisp.org>
2349
2350         log1p tests: More tests.
2351         * tests/test-log1p.h: New file.
2352         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2353         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2354         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2355         (main): Invoke test_function.
2356
2357         log1p: Provide replacement for Minix and MSVC.
2358         * lib/math.in.h (log1p): New declaration.
2359         * lib/log1p.c: New file.
2360         * m4/log1p.m4: New file.
2361         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2362         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2363         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
2364         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
2365         (Depends-on): Add math, isnand, log, round.
2366         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
2367         HAVE_LOG1P is 0.
2368         * tests/test-math-c++.cc: Check the declaration of log1p.
2369         * doc/posix-functions/log1p.texi: Mention the replacement.
2370
2371 2012-03-10  Bruno Haible  <bruno@clisp.org>
2372
2373         math tests: Small simplification.
2374         * tests/test-exp.h (test_function): Use the same err_bound for
2375         'double' on platforms with sizeof (long double) == sizeof (double)
2376         than on platforms with sizeof (long double) > sizeof (double).
2377         * tests/test-exp2.h (test_function): Likewise.
2378         * tests/test-expm1.h (test_function): Likewise.
2379         * tests/test-log.h (test_function): Likewise.
2380
2381 2012-03-10  Bruno Haible  <bruno@clisp.org>
2382
2383         Fix some comments.
2384         * lib/expl.c: Fix an ambiguous comment.
2385         * lib/expm1.c: Likewise.
2386         * lib/expm1l.c: Likewise.
2387         * lib/exp2.c: Likewise.
2388         * lib/exp2l.c: Likewise.
2389
2390 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2391
2392         regex: allow inclusion of <regex.h> before <limits.h>
2393         Without this patch, portable programs had to include <limits.h> before
2394         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
2395         I ran into this problem with a test version of GNU grep on Solaris 8.
2396         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
2397         This is done conditionally so that this change can be merged
2398         back to glibc.
2399         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
2400         using the included regex.
2401
2402         fts: depend on fdopendir
2403         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
2404         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
2405         problem was introduced when fdopendir was split out.
2406
2407 2012-03-10  Bruno Haible  <bruno@clisp.org>
2408
2409         Remove unused variables.
2410         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
2411         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2412
2413 2012-03-10  Bruno Haible  <bruno@clisp.org>
2414
2415         isnanf-nolibm: Fix last commit.
2416         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
2417
2418         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
2419         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
2420
2421 2012-03-10  Bruno Haible  <bruno@clisp.org>
2422
2423         logf-ieee: Work around test failure on NetBSD 5.1.
2424         * m4/logf-ieee.m4: New file.
2425         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2426         whether logf works with a negative argument. Replace it if not.
2427         * lib/logf.c (logf): For negative arguments, return NaN.
2428         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2429         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2430         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2431
2432         logf-ieee: Work around test failure on Solaris 9.
2433         * modules/logf-ieee (Depends-on): Add log-ieee.
2434         (configure.ac): Require gl_FUNC_LOGF.
2435
2436         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2437         * m4/log-ieee.m4: New file.
2438         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2439         log works with a negative argument. Replace it if not.
2440         * lib/log.c (log): For negative arguments, return NaN.
2441         * modules/log-ieee (Files): Add m4/log-ieee.m4.
2442         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
2443         * doc/posix-functions/log.texi: Mention the log-ieee module.
2444
2445         Tests for module 'logl-ieee'.
2446         * modules/logl-ieee-tests: New file.
2447         * tests/test-logl-ieee.c: New file.
2448
2449         New module 'logl-ieee'.
2450         * modules/logl-ieee: New file.
2451
2452         Tests for module 'log-ieee'.
2453         * modules/log-ieee-tests: New file.
2454         * tests/test-log-ieee.c: New file.
2455
2456         New module 'log-ieee'.
2457         * modules/log-ieee: New file.
2458
2459         Tests for module 'logf-ieee'.
2460         * modules/logf-ieee-tests: New file.
2461         * tests/test-logf-ieee.c: New file.
2462         * tests/test-log-ieee.h: New file.
2463
2464         New module 'logf-ieee'.
2465         * modules/logf-ieee: New file.
2466
2467 2012-03-10  Bruno Haible  <bruno@clisp.org>
2468
2469         log: Fix bug introduced on 2012-03-09.
2470         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2471
2472 2012-03-10  Pádraig Brady  <P@draigBrady.com>
2473
2474         timer-time: link explicitly with pthreads on glibc
2475         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2476         to support static linking, when newer glibc is
2477         detected, as that contains pthread emulation of
2478         POSIX timer functions where required.
2479         * modules/timer-time: Depend on threadlib to
2480         pull in the appropriate library to link.
2481
2482 2012-03-10  Bruno Haible  <bruno@clisp.org>
2483
2484         log* tests: More tests.
2485         * tests/test-log.h: New file.
2486         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
2487         (main): Invoke test_function.
2488         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
2489         (main): Invoke test_function.
2490         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
2491         (main): Invoke test_function.
2492         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2493         tests/randomd.c.
2494         (Makefile.am): Add randomd.c to test_log_SOURCES.
2495         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2496         tests/randomf.c.
2497         (Makefile.am): Add randomf.c to test_logf_SOURCES.
2498         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2499         tests/randoml.c.
2500         (Depends-on): Add 'float'.
2501         (Makefile.am): Add randoml.c to test_logl_SOURCES.
2502
2503 2012-03-09  Bruno Haible  <bruno@clisp.org>
2504
2505         logl: Work around OSF/1 5.1 bug.
2506         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
2507         * lib/logl.c (logl): If logl exists, use it and provide just the
2508         workaround.
2509         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
2510         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
2511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
2512         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
2513         * modules/logl (configure.ac): Consider REPLACE_LOGL.
2514         (Depends-on): Update conditions.
2515         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
2516
2517 2012-03-09  Bruno Haible  <bruno@clisp.org>
2518
2519         logf: Work around OSF/1 5.1 bug.
2520         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2521         * lib/logf.c (logf): If logf exists, use it and provide just the
2522         workaround.
2523         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2524         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2526         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2527         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2528         (Depends-on): Update conditions.
2529         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2530
2531 2012-03-09  Bruno Haible  <bruno@clisp.org>
2532
2533         log: Work around OSF/1 5.1 bug.
2534         * lib/math.in.h (log): New declaration.
2535         * lib/log.c: New file.
2536         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2537         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2538         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2539         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2540         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2541         * modules/log (Files): Add lib/log.c.
2542         (Depends-on): Add math.
2543         (configure.ac): If REPLACE_LOG is 1, compile an override.
2544         * tests/test-math-c++.cc: Check the declaration of log.
2545         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2546
2547 2012-03-09  Jim Meyering  <meyering@redhat.com>
2548
2549         readtokens.c: adjust wording in a comment
2550         * lib/readtokens.c: Insert omitted "that" in a comment.
2551
2552 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2553
2554         modechange: add notations +40, 00440, etc.
2555         * lib/modechange.c (mode_compile): Support new notations
2556         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2557
2558 2012-03-08  Bruno Haible  <bruno@clisp.org>
2559
2560         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2561         * m4/exp2l-ieee.m4: New file.
2562         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2563         test whether exp2l works with a NaN argument and with a negative
2564         infinity argument. Replace it if not.
2565         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2567         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2568         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2569         (Depends-on): Update conditions.
2570         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2571         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2572         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2573
2574         Tests for module 'exp2l-ieee'.
2575         * modules/exp2l-ieee-tests: New file.
2576         * tests/test-exp2l-ieee.c: New file.
2577
2578         New module 'exp2l-ieee'.
2579         * modules/exp2l-ieee: New file.
2580
2581         Tests for module 'exp2-ieee'.
2582         * modules/exp2-ieee-tests: New file.
2583         * tests/test-exp2-ieee.c: New file.
2584
2585         New module 'exp2-ieee'.
2586         * modules/exp2-ieee: New file.
2587
2588         Tests for module 'exp2f-ieee'.
2589         * modules/exp2f-ieee-tests: New file.
2590         * tests/test-exp2f-ieee.c: New file.
2591         * tests/test-exp2-ieee.h: New file.
2592
2593         New module 'exp2f-ieee'.
2594         * modules/exp2f-ieee: New file.
2595
2596 2012-03-08  Bruno Haible  <bruno@clisp.org>
2597
2598         Tests for module 'exp2l'.
2599         * modules/exp2l-tests: New file.
2600         * tests/test-exp2l.c: New file.
2601
2602         New module 'exp2l'.
2603         * lib/math.in.h (exp2l): New declaration.
2604         * lib/exp2l.c: New file.
2605         * lib/expl-table.c: New file, extracted from lib/expl.c.
2606         * lib/expl.c (gl_expl_table): New declaration.
2607         (expl): Remove expl_table. Update reference.
2608         * m4/exp2l.m4: New file.
2609         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2611         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2612         * modules/exp2l: New file.
2613         * modules/expl (Files): Add lib/expl-table.c.
2614         (configure.ac): Compile also expl-table.c.
2615         * tests/test-math-c++.cc: Check the declaration of exp2l.
2616         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2617         problem.
2618
2619 2012-03-08  Bruno Haible  <bruno@clisp.org>
2620
2621         Tests for module 'exp2f'.
2622         * modules/exp2f-tests: New file.
2623         * tests/test-exp2f.c: New file.
2624
2625         New module 'exp2f'.
2626         * lib/math.in.h (exp2f): New declaration.
2627         * lib/exp2f.c: New file.
2628         * m4/exp2f.m4: New file.
2629         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2631         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2632         * modules/exp2f: New file.
2633         * tests/test-math-c++.cc: Check the declaration of exp2f.
2634         * doc/posix-functions/exp2f.texi: Mention the new module and the
2635         IRIX problem.
2636
2637 2012-03-08  Bruno Haible  <bruno@clisp.org>
2638
2639         Tests for module 'exp2'.
2640         * modules/exp2-tests: New file.
2641         * tests/test-exp2.c: New file.
2642         * tests/test-exp2.h: New file.
2643
2644         New module 'exp2'.
2645         * lib/math.in.h (exp2): New declaration.
2646         * lib/exp2.c: New file.
2647         * m4/exp2.m4: New file.
2648         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2650         REPLACE_EXP2.
2651         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2652         REPLACE_EXP2.
2653         * modules/exp2: New file.
2654         * tests/test-math-c++.cc: Check the declaration of exp2.
2655         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2656         and OpenBSD problems.
2657
2658 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2659
2660         savedir: fix comment typo
2661         * lib/savedir.c (savedirstream): Fix typo in comment.
2662
2663 2012-03-08  Bruno Haible  <bruno@clisp.org>
2664
2665         test-readtokens.c: use const; remove unwarranted cast
2666         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2667
2668 2012-03-08  Bruno Haible  <bruno@clisp.org>
2669
2670         fmal: Avoid compilation error on AIX.
2671         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2672         AIX 5.2..7.1.
2673
2674 2012-03-08  Bruno Haible  <bruno@clisp.org>
2675
2676         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2677         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2678         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2679         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2680         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2681         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2682         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2683
2684 2012-03-08  Bruno Haible  <bruno@clisp.org>
2685
2686         remainderf: Override buggy system function on IRIX 6.5.
2687         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2688         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2689         when it exists.
2690         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2691
2692 2012-03-08  Jim Meyering  <meyering@redhat.com>
2693
2694         test-readtokens.c: avoid const-related compilation warnings
2695         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2696
2697 2012-03-07  Jim Meyering  <meyering@redhat.com>
2698             Bruno Haible  <bruno@clisp.org>
2699
2700         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2701         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2702         tests/randomd.c.
2703         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2704         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2705         tests/randoml.c.
2706         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2707
2708 2012-03-07  Bruno Haible  <bruno@clisp.org>
2709
2710         expm1l: Avoid compilation error on AIX.
2711         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2712         AIX 5.2..7.1.
2713
2714 2012-03-07  Bruno Haible  <bruno@clisp.org>
2715
2716         expm1l: Don't override undeclared system function on IRIX 6.5.
2717         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2718         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2719         it exists. Set HAVE_DECL_EXPM1L.
2720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2721         HAVE_EXPM1L.
2722         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2723         HAVE_EXPM1L.
2724         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2725
2726 2012-03-07  Bruno Haible  <bruno@clisp.org>
2727
2728         remainderl: Don't override undeclared system function on IRIX 6.5.
2729         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2730         HAVE_REMAINDERL.
2731         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2732         declared when it exists. Set HAVE_DECL_REMAINDERL.
2733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2734         not HAVE_REMAINDERL.
2735         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2736         HAVE_REMAINDERL.
2737         * doc/posix-functions/remainderl.texi: Mention missing declaration
2738         problem.
2739
2740 2012-03-07  Bruno Haible  <bruno@clisp.org>
2741
2742         rintf: Don't override undeclared system function on IRIX 6.5.
2743         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2744         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2745         exists. Set HAVE_DECL_RINTF.
2746         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2747         HAVE_RINTF.
2748         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2749         HAVE_RINTF.
2750         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2751
2752 2012-03-07  Bruno Haible  <bruno@clisp.org>
2753
2754         roundl: Avoid compilation error on AIX.
2755         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2756         AIX 5.2..7.1.
2757
2758 2012-03-07  Bruno Haible  <bruno@clisp.org>
2759
2760         roundl: Don't override undeclared system function on IRIX 6.5.
2761         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2762         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2763         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2764         * modules/roundl (configure.ac): For replacement code, test
2765         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2766         (Depends-on): Update conditions.
2767         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2768
2769 2012-03-07  Bruno Haible  <bruno@clisp.org>
2770
2771         roundf: Don't override undeclared system function on IRIX 6.5.
2772         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2773         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2774         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2775         * modules/roundf (configure.ac): For replacement code, test
2776         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2777         (Depends-on): Update conditions.
2778         * modules/roundf-ieee (Depends-on): Update conditions.
2779         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2780
2781 2012-03-07  Bruno Haible  <bruno@clisp.org>
2782
2783         round: Don't override undeclared system function on IRIX 6.5.
2784         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2785         argument.
2786         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2787         also when it is not declared. Set HAVE_ROUND. For replacement code,
2788         test HAVE_ROUND, not HAVE_DECL_ROUND.
2789         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2790         not HAVE_DECL_ROUND.
2791         (Depends-on): Update conditions.
2792         * modules/round-ieee (Depends-on): Update conditions.
2793         * doc/posix-functions/round.texi: Mention the IRIX problem.
2794
2795 2012-03-07  Bruno Haible  <bruno@clisp.org>
2796
2797         copysignf: Don't override undeclared system function on IRIX 6.5.
2798         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2799         HAVE_COPYSIGNF.
2800         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2801         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2803         not HAVE_COPYSIGNF.
2804         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2805         HAVE_COPYSIGNF.
2806         * doc/posix-functions/copysignf.texi: Mention missing declaration
2807         problem.
2808
2809 2012-03-07  Jim Meyering  <meyering@redhat.com>
2810
2811         readtokens: add tests
2812         * modules/readtokens-tests: New file.
2813         * tests/test-readtokens.c: New file.
2814
2815 2012-03-07  Jim Meyering  <meyering@redhat.com>
2816
2817         quotearg: the module must now include quote.h
2818         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2819         So must the module.
2820         * modules/quotearg (Files): Add quote.h.
2821
2822 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2823
2824         readtokens: avoid core dumps with unusual calling patterns
2825         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2826         * lib/readtokens.c: Include limits.h.
2827         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2828         (readtoken): Don't cache the delimiters; the cache code was buggy
2829         if !delim && saved_delim, or if the new n_delim differs from the old.
2830         Also, it wasn't thread-safe.
2831
2832 2012-03-07  Bruno Haible  <bruno@clisp.org>
2833
2834         quote: Adhere to common module description layout.
2835         * modules/quote (Makefile.am): Add back empty section.
2836
2837 2012-03-06  Akim Demaille  <demaille@gostai.com>
2838
2839         quote: fuse into quotearg
2840         This patch is made for the benefit of Bison.
2841         quote does not leave the choice of the quoting style to the user.
2842         quoting_style provides poor customizability, yet quoting_options,
2843         which is very rich, is hidden inside quotearg.c.  So in order to
2844         allow quote customization, move its implementation to quotearg.c.
2845         * lib/quote.c: Remove.
2846         * modules/quote: Adjust.
2847         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2848         warning: provide all the members of literal structs.
2849         (quote_quoting_options): New.
2850         (quote, quote_n): Import implementation from quote.c.
2851         * lib/quote.h: Import the comments from quote.c.
2852         (quote_quoting_options): New.
2853
2854 2012-03-06  Bruno Haible  <bruno@clisp.org>
2855
2856         Tests for module 'expm1l-ieee'.
2857         * modules/expm1l-ieee-tests: New file.
2858         * tests/test-expm1l-ieee.c: New file.
2859
2860         New module 'expm1l-ieee'.
2861         * modules/expm1l-ieee: New file.
2862
2863         Tests for module 'expm1f-ieee'.
2864         * modules/expm1f-ieee-tests: New file.
2865         * tests/test-expm1f-ieee.c: New file.
2866
2867         New module 'expm1f-ieee'.
2868         * modules/expm1f-ieee: New file.
2869
2870         Tests for module 'expm1-ieee'.
2871         * modules/expm1-ieee-tests: New file.
2872         * tests/test-expm1-ieee.c: New file.
2873         * tests/test-expm1-ieee.h: New file.
2874
2875         New module 'expm1-ieee'.
2876         * modules/expm1-ieee: New file.
2877         * m4/expm1-ieee.m4: New file.
2878         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2879         whether expm1 works with a minus zero argument. Replace it if not.
2880         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2881         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2882         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2883         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2884         (Depends-on): Update conditions.
2885         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2886         AIX problem.
2887
2888 2012-03-06  Bruno Haible  <bruno@clisp.org>
2889
2890         Work around expm1f bug on IRIX 6.5.
2891         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2892         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2893         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2894         not work.
2895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2896         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2897         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2898         (Depends-on): Update conditions.
2899         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2900
2901 2012-03-06  Bruno Haible  <bruno@clisp.org>
2902
2903         Tests for module 'expm1l'.
2904         * modules/expm1l-tests: New file.
2905         * tests/test-expm1l.c: New file.
2906
2907         New module 'expm1l'.
2908         * lib/math.in.h (expm1l): New declaration.
2909         * lib/expm1l.c: New file.
2910         * m4/expm1l.m4: New file.
2911         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2912         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2913         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2914         * modules/expm1l: New file.
2915         * tests/test-math-c++.cc: Check the declaration of expm1l.
2916         * doc/posix-functions/expm1l.texi: Mention the new module.
2917
2918 2012-03-06  Bruno Haible  <bruno@clisp.org>
2919
2920         Tests for module 'expm1f'.
2921         * modules/expm1f-tests: New file.
2922         * tests/test-expm1f.c: New file.
2923
2924         New module 'expm1f'.
2925         * lib/math.in.h (expm1f): New declaration.
2926         * lib/expm1f.c: New file.
2927         * m4/expm1f.m4: New file.
2928         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2929         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2930         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2931         * modules/expm1f: New file.
2932         * tests/test-math-c++.cc: Check the declaration of expm1f.
2933         * doc/posix-functions/expm1f.texi: Mention the new module.
2934
2935 2012-03-06  Bruno Haible  <bruno@clisp.org>
2936
2937         Tests for module 'expm1'.
2938         * modules/expm1-tests: New file.
2939         * tests/test-expm1.c: New file.
2940         * tests/test-expm1.h: New file.
2941
2942         New module 'expm1'.
2943         * lib/math.in.h (expm1): New declaration.
2944         * lib/expm1.c: New file.
2945         * m4/expm1.m4: New file.
2946         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2948         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2949         * modules/expm1: New file.
2950         * tests/test-math-c++.cc: Check the declaration of expm1.
2951         * doc/posix-functions/expm1.texi: Mention the new module.
2952
2953 2012-03-06  Bruno Haible  <bruno@clisp.org>
2954
2955         math: Ensure declarations of math functions.
2956         * modules/acosf (Depends-on): Add 'extensions'.
2957         * modules/asinf (Depends-on): Likewise.
2958         * modules/atan2f (Depends-on): Likewise.
2959         * modules/atanf (Depends-on): Likewise.
2960         * modules/cbrt (Depends-on): Likewise.
2961         * modules/cbrtf (Depends-on): Likewise.
2962         * modules/cbrtl (Depends-on): Likewise.
2963         * modules/copysignf (Depends-on): Likewise.
2964         * modules/copysignl (Depends-on): Likewise.
2965         * modules/cosf (Depends-on): Likewise.
2966         * modules/coshf (Depends-on): Likewise.
2967         * modules/expf (Depends-on): Likewise.
2968         * modules/fabsf (Depends-on): Likewise.
2969         * modules/fabsl (Depends-on): Likewise.
2970         * modules/fmaf (Depends-on): Likewise.
2971         * modules/fmal (Depends-on): Likewise.
2972         * modules/fmodf (Depends-on): Likewise.
2973         * modules/fmodl (Depends-on): Likewise.
2974         * modules/frexpf (Depends-on): Likewise.
2975         * modules/frexpl (Depends-on): Likewise.
2976         * modules/hypot (Depends-on): Likewise.
2977         * modules/hypotf (Depends-on): Likewise.
2978         * modules/hypotl (Depends-on): Likewise.
2979         * modules/ldexpf (Depends-on): Likewise.
2980         * modules/ldexpl (Depends-on): Likewise.
2981         * modules/log10f (Depends-on): Likewise.
2982         * modules/log10l (Depends-on): Likewise.
2983         * modules/log1p (Depends-on): Likewise.
2984         * modules/logb (Depends-on): Likewise.
2985         * modules/logf (Depends-on): Likewise.
2986         * modules/modff (Depends-on): Likewise.
2987         * modules/modfl (Depends-on): Likewise.
2988         * modules/powf (Depends-on): Likewise.
2989         * modules/remainderf (Depends-on): Likewise.
2990         * modules/remainderl (Depends-on): Likewise.
2991         * modules/rintf (Depends-on): Likewise.
2992         * modules/rintl (Depends-on): Likewise.
2993         * modules/sinf (Depends-on): Likewise.
2994         * modules/sinhf (Depends-on): Likewise.
2995         * modules/sqrtf (Depends-on): Likewise.
2996         * modules/tanf (Depends-on): Likewise.
2997         * modules/tanhf (Depends-on): Likewise.
2998         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2999         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
3000         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
3001         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
3002         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
3003         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
3004         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3005         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
3006         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
3007         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
3008         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
3009         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
3010         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
3011         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
3012         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
3013         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
3014         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3015         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3016         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
3017         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
3018         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3019         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3020         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3021         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
3022         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3023         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3024         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
3025         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3026         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3027         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3028         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3029         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
3030         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3031         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3032         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3033         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3034         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3035         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3036         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3037         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3038         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3039
3040 2012-03-06  Bruno Haible  <bruno@clisp.org>
3041
3042         math: Update module names in warnings.
3043         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3044         tanl): Use specific module name in warn-on-use warning.
3045
3046 2012-03-06  Bruno Haible  <bruno@clisp.org>
3047
3048         expl: Simplify computation.
3049         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3050
3051 2012-03-05  Bruno Haible  <bruno@clisp.org>
3052
3053         exp* tests: More tests.
3054         * tests/test-exp.h: New file.
3055         * tests/test-exp.c: Include <float.h> and test-exp.h.
3056         (main): Invoke test_function.
3057         * tests/test-expf.c: Include <float.h> and test-exp.h.
3058         (main): Invoke test_function.
3059         * tests/test-expl.c: Include <float.h> and test-exp.h.
3060         (main): Invoke test_function.
3061         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3062         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3063         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3064         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3065         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3066         (Depends-on): Add 'float'.
3067         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3068
3069         expl: Fix precision of computed result.
3070         * lib/expl.c: Completely rewritten.
3071         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3072         (Maintainer): Add me.
3073         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3074
3075 2012-03-05  Bruno Haible  <bruno@clisp.org>
3076
3077         cbrt* tests: More tests.
3078         * tests/test-cbrt.h: New file.
3079         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3080         (main): Invoke test_function.
3081         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3082         (main): Invoke test_function.
3083         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3084         (main): Invoke test_function.
3085         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3086         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3087         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3088         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3089         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3090         (Depends-on): Add 'float'.
3091         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3092
3093 2012-03-05  Bruno Haible  <bruno@clisp.org>
3094
3095         hypot* tests: More tests.
3096         * tests/test-hypot.h: New file, partially extracted from
3097         tests/test-hypotl.c.
3098         * tests/test-hypot.c: Include test-hypot.h.
3099         (main): Invoke test_function.
3100         * tests/test-hypotf.c: Include test-hypot.h.
3101         (main): Invoke test_function.
3102         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3103         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3104         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3105         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3106         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3107         tests/randomf.c.
3108         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3109         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3110         tests/randoml.c.
3111         (Depends-on): Add 'fpucw', 'float'.
3112         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3113
3114 2012-03-05  Bruno Haible  <bruno@clisp.org>
3115
3116         fpucw: Doc about FreeBSD.
3117         * lib/fpucw.h: Mention FreeBSD in comments.
3118
3119 2012-03-04  Bruno Haible  <bruno@clisp.org>
3120
3121         sqrt* tests: More tests.
3122         * tests/test-sqrt.h: New file.
3123         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3124         (main): Invoke test_function.
3125         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3126         (main): Invoke test_function.
3127         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3128         (main): Invoke test_function.
3129         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3130         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3131         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3132         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3133         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3134         (Depends-on): Add 'float'.
3135         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3136
3137 2012-03-04  Bruno Haible  <bruno@clisp.org>
3138
3139         remainder* tests: More tests.
3140         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3141         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3142         (main): Invoke test_function.
3143         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3144         (main): Invoke test_function.
3145         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3146         (main): Invoke test_function.
3147         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3148         tests/randomd.c.
3149         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3150         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3151         tests/randomf.c.
3152         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3153         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3154         tests/randoml.c.
3155         (Depends-on): Add 'float'.
3156         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3157
3158 2012-03-04  Bruno Haible  <bruno@clisp.org>
3159
3160         remainder, remainderf, remainderl: Fix computation for large quotients.
3161         * lib/remainder.c: Completely rewritten.
3162         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3163         USE_FLOAT.
3164         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3165         USE_LONG_DOUBLE.
3166         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3167         isnand, isinf. Remove round, fma.
3168         * modules/remainderf (Files): Add lib/remainder.c.
3169         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3170         Remove roundf, fmaf.
3171         * modules/remainderl (Files): Add lib/remainder.c.
3172         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3173         isinf. Remove roundl, fmal.
3174         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3175         REMAINDER_LIBM.
3176         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3177         REMAINDERF_LIBM.
3178         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3179         REMAINDERL_LIBM.
3180
3181 2012-03-04  Bruno Haible  <bruno@clisp.org>
3182
3183         fmod* tests: More tests.
3184         * tests/test-fmod.h (my_ldexp): New function.
3185         (test_function): Reduce amount of random numbers to test. Add tests
3186         of very large quotients x / y.
3187         * tests/test-fmod.c (MAX_EXP): New macro.
3188         * tests/test-fmodf.c (MAX_EXP): Likewise.
3189         * tests/test-fmodl.c (MAX_EXP): Likewise.
3190
3191 2012-03-04  Bruno Haible  <bruno@clisp.org>
3192
3193         fmod, fmodl: Fix computation for large quotients x / y.
3194         * lib/fmod.c: Completely rewritten.
3195         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3196         USE_LONG_DOUBLE.
3197         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3198         isnand. Remove fma.
3199         * modules/fmodl (Files): Add lib/fmod.c.
3200         (Depends-on): Add float, isfinite, signbit, fabsl,
3201         frexpl, ldexpl, isnanl. Remove fma.
3202         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3203         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3204
3205 2012-03-03  Bruno Haible  <bruno@clisp.org>
3206
3207         fmod* tests: More tests.
3208         * tests/test-fmod.h: New file.
3209         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3210         (main): Invoke test_function.
3211         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3212         (main): Invoke test_function.
3213         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3214         (main): Invoke test_function.
3215         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3216         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3217         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3218         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3219         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3220         (Depends-on): Add 'float'.
3221         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3222
3223 2012-03-03  Bruno Haible  <bruno@clisp.org>
3224
3225         rint* tests: More tests.
3226         * tests/test-rint.h: New file, partially extracted from
3227         tests/test-rintl.c.
3228         * tests/test-rint.c: Include test-rint.h.
3229         (main): Invoke test_function.
3230         * tests/test-rintf.c: Include test-rint.h.
3231         (main): Invoke test_function.
3232         * tests/test-rintl.c: Include test-rint.h.
3233         (main): Invoke test_function.
3234         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3235         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3236         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3237         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3238         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3239         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3240
3241 2012-03-03  Bruno Haible  <bruno@clisp.org>
3242
3243         modf* tests: More tests.
3244         * tests/test-modf.h: New file.
3245         * tests/test-modf.c: Include <float.h> and test-modf.h.
3246         (main): Invoke test_function.
3247         * tests/test-modff.c: Include <float.h> and test-modf.h.
3248         (main): Invoke test_function.
3249         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3250         (main): Invoke test_function.
3251         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3252         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3253         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3254         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3255         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3256         (Depends-on): Add 'float'.
3257         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3258
3259 2012-03-03  Bruno Haible  <bruno@clisp.org>
3260
3261         fabs* tests: More tests.
3262         * tests/test-fabs.h: New file, partially extracted from
3263         tests/test-fabsl.c.
3264         * tests/test-fabs.c (RANDOM): New macro.
3265         * tests/test-fabsf.c (RANDOM): New macro.
3266         * tests/test-fabsl.c (RANDOM): New macro.
3267         * modules/fabs-tests (Files): Add tests/randomd.c.
3268         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3269         * modules/fabsf-tests (Files): Add tests/randomf.c.
3270         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3271         * modules/fabsl-tests (Files): Add tests/randoml.c.
3272         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3273
3274 2012-03-03  Bruno Haible  <bruno@clisp.org>
3275
3276         ldexp* tests: More tests.
3277         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3278         * tests/test-ldexp.c (RANDOM): New macro.
3279         * tests/test-ldexpf.c (RANDOM): New macro.
3280         * tests/test-ldexpl.c (RANDOM): New macro.
3281         * modules/ldexp-tests (Files): Add tests/randomd.c.
3282         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3283         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3284         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3285         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3286         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3287
3288 2012-03-03  Bruno Haible  <bruno@clisp.org>
3289
3290         frexp* tests: More tests.
3291         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
3292         * tests/test-frexp.c (RANDOM): New macro.
3293         * tests/test-frexpf.c (RANDOM): New macro.
3294         * tests/test-frexpl.c (RANDOM): New macro.
3295         * modules/frexp-tests (Files): Add tests/randomd.c.
3296         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
3297         * modules/frexpf-tests (Files): Add tests/randomf.c.
3298         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
3299         * modules/frexpl-tests (Files): Add tests/randoml.c.
3300         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3301
3302 2012-03-03  Bruno Haible  <bruno@clisp.org>
3303
3304         Support for pseudo-random numbers in tests.
3305         * tests/randomf.c: New file.
3306         * tests/randomd.c: New file.
3307         * tests/randoml.c: New file.
3308         * tests/macros.h (randomf, randomd, randoml): New declarations.
3309
3310 2012-03-03  Bruno Haible  <bruno@clisp.org>
3311
3312         frexp* tests: Refactor.
3313         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3314         * tests/test-frexp.c: Include and use it.
3315         * tests/test-frexpf.c: Likewise.
3316         * tests/test-frexpl.c: Likewise.
3317         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3318         * modules/frexpf-tests (Files): Likewise.
3319         * modules/frexpl-tests (Files): Likewise.
3320
3321 2012-03-02  Jim Meyering  <meyering@redhat.com>
3322
3323         maint: don't specify XZ_OPT=-9ev in dist-related rule
3324         Using xz's -9 option is warranted only if you have a very large
3325         tarball (see xz's documentation for the sizes vs. presets), and
3326         requires 64MiB of memory at decompression time.
3327         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3328         Automake's default of just "-e" is fine.  Override on a
3329         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3330
3331 2012-03-01  Eric Blake  <eblake@redhat.com>
3332
3333         maint.mk: allow announcement for non-gnulib project
3334         * maint.mk (announcement): Skip gnulib version if not used.
3335
3336 2012-03-01  Jim Meyering  <meyering@redhat.com>
3337
3338         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3339         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3340         envvar settings cannot interfere.  Otherwise, setting envvars like
3341         prohibit=foo require=bar, etc. would cause spurious test failures.
3342
3343 2012-03-01  Eric Blake  <eblake@redhat.com>
3344
3345         maint.mk: add per-line exclusions to prohibitions
3346         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3347         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3348         (sc_const_long_option): Use it.
3349
3350 2012-03-01  Bruno Haible  <bruno@clisp.org>
3351
3352         Tests for module 'expl-ieee'.
3353         * modules/expl-ieee-tests: New file.
3354         * tests/test-expl-ieee.c: New file.
3355
3356         New module 'expl-ieee'.
3357         * modules/expl-ieee: New file.
3358
3359         Tests for module 'exp-ieee'.
3360         * modules/exp-ieee-tests: New file.
3361         * tests/test-exp-ieee.c: New file.
3362
3363         New module 'exp-ieee'.
3364         * modules/exp-ieee: New file.
3365
3366         Tests for module 'expf-ieee'.
3367         * modules/expf-ieee-tests: New file.
3368         * tests/test-expf-ieee.c: New file.
3369         * tests/test-exp-ieee.h: New file.
3370
3371         New module 'expf-ieee'.
3372         * modules/expf-ieee: New file.
3373
3374 2012-02-29  Bruno Haible  <bruno@clisp.org>
3375
3376         cbrtl-ieee: Work around test failure on IRIX 6.5.
3377         * m4/cbrtl-ieee.m4: New file.
3378         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
3379         test whether cbrtl works with a minus zero argument. Replace it if not.
3380         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
3381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
3382         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
3383         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
3384         (Depends-on): Update conditions.
3385         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
3386         m4/signbit.m4.
3387         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
3388         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
3389         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
3390
3391         Tests for module 'cbrtl-ieee'.
3392         * modules/cbrtl-ieee-tests: New file.
3393         * tests/test-cbrtl-ieee.c: New file.
3394
3395         New module 'cbrtl-ieee'.
3396         * modules/cbrtl-ieee: New file.
3397
3398         Tests for module 'cbrt-ieee'.
3399         * modules/cbrt-ieee-tests: New file.
3400         * tests/test-cbrt-ieee.c: New file.
3401
3402         New module 'cbrt-ieee'.
3403         * modules/cbrt-ieee: New file.
3404
3405         Tests for module 'cbrtf-ieee'.
3406         * modules/cbrtf-ieee-tests: New file.
3407         * tests/test-cbrtf-ieee.c: New file.
3408         * tests/test-cbrt-ieee.h: New file.
3409
3410         New module 'cbrtf-ieee'.
3411         * modules/cbrtf-ieee: New file.
3412
3413 2012-02-29  Bruno Haible  <bruno@clisp.org>
3414
3415         cbrtf: Work around bug in IRIX 6.5 system function.
3416         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
3417         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
3418         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
3419         work.
3420         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3421         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3422         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3423         (Depends-on): Update conditions.
3424         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3425
3426 2012-02-29  Bruno Haible  <bruno@clisp.org>
3427
3428         Tests for module 'cbrtl'.
3429         * modules/cbrtl-tests: New file.
3430         * tests/test-cbrtl.c: New file.
3431
3432         New module 'cbrtl'.
3433         * lib/math.in.h (cbrtl): New declaration.
3434         * lib/cbrtl.c: New file.
3435         * m4/cbrtl.m4: New file.
3436         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3437         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3438         HAVE_DECL_CBRTL.
3439         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3440         HAVE_DECL_CBRTL.
3441         * modules/cbrtl: New file.
3442         * tests/test-math-c++.cc: Check the declaration of cbrtl.
3443         * doc/posix-functions/cbrtl.texi: Mention the new module.
3444
3445 2012-02-29  Bruno Haible  <bruno@clisp.org>
3446
3447         Tests for module 'cbrtf'.
3448         * modules/cbrtf-tests: New file.
3449         * tests/test-cbrtf.c: New file.
3450
3451         New module 'cbrtf'.
3452         * lib/math.in.h (cbrtf): New declaration.
3453         * lib/cbrtf.c: New file.
3454         * m4/cbrtf.m4: New file.
3455         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
3456         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
3457         HAVE_DECL_CBRTF.
3458         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
3459         HAVE_DECL_CBRTF.
3460         * modules/cbrtf: New file.
3461         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3462         * doc/posix-functions/cbrtf.texi: Mention the new module.
3463
3464 2012-02-29  Bruno Haible  <bruno@clisp.org>
3465
3466         cbrt: Provide replacement on MSVC and Minix.
3467         * lib/math.in.h (cbrt): New declaration.
3468         * lib/cbrt.c: New file.
3469         * m4/cbrt.m4: New file.
3470         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3471         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
3472         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
3473         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
3474         (Depends-on): Add dependencies.
3475         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
3476         * tests/test-math-c++.cc: Check the declaration of cbrt.
3477         * doc/posix-functions/cbrt.texi: Mention that the module provides a
3478         replacement.
3479
3480 2012-02-29  Bruno Haible  <bruno@clisp.org>
3481
3482         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
3483         * m4/hypotl-ieee.m4: New file.
3484         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
3485         test whether hypotl works with mixed NaN and Infinity arguments.
3486         Replace it if not.
3487         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
3488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
3489         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
3490         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
3491         (Depends-on): Update conditions.
3492         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
3493         (Depends-on): Add hypot-ieee.
3494         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
3495         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
3496
3497         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
3498         * m4/hypotf-ieee.m4: New file.
3499         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
3500         test whether hypotf works with mixed NaN and Infinity arguments.
3501         Replace it if not.
3502         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
3503         (Depends-on): Add hypot-ieee.
3504         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
3505         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
3506
3507         hypot-ieee: Work around test failure on OSF/1 and native Windows.
3508         * lib/math.in.h (hypot): New declaration.
3509         * lib/hypot.c: New file.
3510         * m4/hypot-ieee.m4: New file.
3511         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
3512         whether hypot works with mixed NaN and Infinity arguments. Replace it
3513         if not.
3514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
3515         REPLACE_HYPOT.
3516         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3517         * modules/hypot (Files): Add lib/hypot.c.
3518         (Depends-on): Add dependencies.
3519         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3520         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3521         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3522         * tests/test-math-c++.cc: Check the declaration of hypot.
3523         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3524
3525         Tests for module 'hypotl-ieee'.
3526         * modules/hypotl-ieee-tests: New file.
3527         * tests/test-hypotl-ieee.c: New file.
3528
3529         New module 'hypotl-ieee'.
3530         * modules/hypotl-ieee: New file.
3531
3532         Tests for module 'hypot-ieee'.
3533         * modules/hypot-ieee-tests: New file.
3534         * tests/test-hypot-ieee.c: New file.
3535
3536         New module 'hypot-ieee'.
3537         * modules/hypot-ieee: New file.
3538
3539         Tests for module 'hypotf-ieee'.
3540         * modules/hypotf-ieee-tests: New file.
3541         * tests/test-hypotf-ieee.c: New file.
3542         * tests/test-hypot-ieee.h: New file.
3543
3544         New module 'hypotf-ieee'.
3545         * modules/hypotf-ieee: New file.
3546
3547 2012-02-29  Bruno Haible  <bruno@clisp.org>
3548
3549         Remove unused variables.
3550         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3551         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3552         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3553         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3554
3555 2012-02-29  Eric Blake  <eblake@redhat.com>
3556
3557         termios: fix pid_t always, not just for tcgetsid
3558         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3559         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3560         just when building tcgetsid.
3561
3562 2012-02-29  Bruno Haible  <bruno@clisp.org>
3563
3564         Tests for module 'hypotl'.
3565         * modules/hypotl-tests: New file.
3566         * tests/test-hypotl.c: New file.
3567
3568         New module 'hypotl'.
3569         * lib/math.in.h (hypotl): New declaration.
3570         * lib/hypotl.c: New file.
3571         * m4/hypotl.m4: New file.
3572         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3574         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3575         * modules/hypotl: New file.
3576         * tests/test-math-c++.cc: Check the hypotl declaration.
3577         * doc/posix-functions/hypotl.texi: Mention the new module.
3578
3579 2012-02-29  Eric Blake  <eblake@redhat.com>
3580
3581         tcgetsid: fix cygwin header bug
3582         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3583
3584         docs: update cygwin progress
3585         * doc/posix-functions/llround.texi (llround): Added in cygwin
3586         1.7.8.
3587         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3588         * doc/glibc-functions/program_invocation_name.texi
3589         (program_invocation_name): Likewise.
3590         * doc/glibc-functions/program_invocation_short_name.texi
3591         (program_invocation_short_name): Likewise.
3592         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3593         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3594         Likewise.
3595         * doc/posix-functions/pthread_spin_destroy.texi
3596         (pthread_spin_destroy): Added in cygwin 1.7.10.
3597         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3598         Likewise.
3599         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3600         Likewise.
3601         * doc/posix-functions/pthread_spin_trylock.texi
3602         (pthread_spin_trylock): Likewise.
3603         * doc/posix-functions/pthread_spin_unlock.texi
3604         (pthread_spin_unlock): Likewise.
3605         * doc/posix-functions/pthread_setschedprio.texi
3606         (pthread_setschedprio): Likewise.
3607         * doc/posix-functions/pthread_attr_getstack.texi
3608         (pthread_attr_getstack): Likewise.
3609         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3610         (pthread_attr_getstackaddr): Likewise.
3611         * doc/glibc-functions/pthread_getattr_np.texi
3612         (pthread_getattr_np): Likewise.
3613         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3614         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3615         * doc/posix-functions/clock_settime.texi (clock_settime):
3616         Likewise.
3617         * doc/posix-functions/pthread_attr_getguardsize.texi
3618         (pthread_attr_getguardsize): Likewise.
3619         * doc/posix-functions/pthread_attr_setguardsize.texi
3620         (pthread_attr_setguardsize): Likewise.
3621         * doc/posix-functions/pthread_attr_setstack.texi
3622         (pthread_attr_setstack): Likewise.
3623         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3624         (pthread_attr_setstackaddr): Likewise.
3625         * doc/posix-functions/clock_getcpuclockid.texi
3626         (clock_getcpuclockid): Likewise.
3627         * doc/posix-functions/pthread_getcpuclockid.texi
3628         (pthread_getcpuclockid): Likewise.
3629         * doc/glibc-functions/error.texi (error): Likewise.
3630         * doc/glibc-functions/error_at_line.texi (error_at_line):
3631         Likewise.
3632         * doc/glibc-functions/error_message_count.texi
3633         (error_message_count): Likewise.
3634         * doc/glibc-functions/error_one_per_line.texi
3635         (error_one_per_line): Likewise.
3636         * doc/glibc-functions/error_print_progname.texi
3637         (error_print_progname): Likewise.
3638         * doc/posix-functions/pthread_condattr_getclock.texi
3639         (pthread_condattr_getclock): Likewise.
3640         * doc/posix-functions/pthread_condattr_setclock.texi
3641         (pthread_condattr_setclock): Likewise.
3642         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3643         Likewise.
3644         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3645         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3646         * doc/glibc-functions/get_current_dir_name.texi
3647         (get_current_dir_name): Likewise.
3648         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3649         Likewise.
3650         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3651         wrong return type.
3652         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3653         1.7.11.
3654
3655 2012-02-29  Bruno Haible  <bruno@clisp.org>
3656
3657         Tests for module 'hypotf'.
3658         * modules/hypotf-tests: New file.
3659         * tests/test-hypotf.c: New file.
3660
3661         New module 'hypotf'.
3662         * lib/math.in.h (hypotf): New declaration.
3663         * lib/hypotf.c: New file.
3664         * m4/hypotf.m4: New file.
3665         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3667         REPLACE_HYPOTF.
3668         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3669         REPLACE_HYPOTF.
3670         * modules/hypotf: New file.
3671         * tests/test-math-c++.cc: Check the hypotf declaration.
3672         * doc/posix-functions/hypotf.texi: Mention the new module.
3673
3674         hypot: Prepare for hypotf module.
3675         * m4/hypot.m4: New file.
3676         * modules/hypot (Files): Add m4/hypot.m4.
3677         (configure.ac): Invoke gl_FUNC_HYPOT.
3678
3679 2012-02-29  Bruno Haible  <bruno@clisp.org>
3680
3681         hypot tests: More tests.
3682         * tests/test-hypot.c: Include <float.h>.
3683         (main): Add tests about overflow and underflow.
3684
3685 2012-02-29  Bruno Haible  <bruno@clisp.org>
3686
3687         math code: Add comments.
3688         * lib/acosl.c: Add comment about related glibc source files.
3689         * lib/asinl.c: Likewise.
3690         * lib/atanl.c: Likewise.
3691         * lib/expl.c: Likewise.
3692         * lib/logl.c: Likewise.
3693         * lib/sincosl.c: Likewise.
3694         * lib/sinl.c: Likewise.
3695         * lib/tanl.c: Likewise.
3696         * lib/trigl.c: Likewise.
3697         * lib/cosl.c: Likewise. Fix comments.
3698
3699 2012-02-28  Bruno Haible  <bruno@clisp.org>
3700
3701         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3702         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3703         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3704         HUGE_VALL are defined.
3705         (numeric_equald): Renamed from numeric_equal.
3706         (numeric_equalf, numeric_equall): New functions.
3707         (main): Check also HUGE_VALF, HUGE_VALL.
3708         * modules/math-tests (Files): Add tests/macros.h.
3709         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3710         HUGE_VALL.
3711
3712 2012-02-28  Bruno Haible  <bruno@clisp.org>
3713
3714         doc: Move ISO C11 feature notes into POSIX chapters.
3715         * doc/posix-functions/aligned_alloc.texi: Renamed from
3716         doc/glibc-functions/aligned_alloc.texi.
3717         * doc/posix-functions/quick_exit.texi: Renamed from
3718         doc/glibc-functions/quick_exit.texi.
3719         * doc/posix-headers/uchar.texi: Renamed from
3720         doc/glibc-headers/uchar.texi.
3721         * doc/posix-functions/c16rtomb.texi: Renamed from
3722         doc/glibc-functions/c16rtomb.texi.
3723         * doc/posix-functions/c32rtomb.texi: Renamed from
3724         doc/glibc-functions/c32rtomb.texi.
3725         * doc/posix-functions/mbrtoc16.texi: Renamed from
3726         doc/glibc-functions/mbrtoc16.texi.
3727         * doc/posix-functions/mbrtoc32.texi: Renamed from
3728         doc/glibc-functions/mbrtoc32.texi.
3729         * doc/gnulib.texi: Update.
3730         (Glibc uchar.h): Remove section.
3731         Suggested by Eric Blake.
3732
3733 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3734
3735         stdnoreturn: port to MSVC better
3736         MSVC standard headers use __declspec(noreturn), so #define noreturn
3737         to empty on that platform.  Reported by Bruno Haible in
3738         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3739         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3740         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3741
3742 2012-02-28  Bruno Haible  <bruno@clisp.org>
3743
3744         doc: Mention new glibc headers and functions.
3745         * doc/glibc-headers/uchar.texi: New file.
3746         * doc/glibc-functions/aligned_alloc.texi: New file.
3747         * doc/glibc-functions/c16rtomb.texi: New file.
3748         * doc/glibc-functions/c32rtomb.texi: New file.
3749         * doc/glibc-functions/clock_adjtime.texi: New file.
3750         * doc/glibc-functions/fanotify_init.texi: New file.
3751         * doc/glibc-functions/fanotify_mark.texi: New file.
3752         * doc/glibc-functions/inet6_opt_append.texi: New file.
3753         * doc/glibc-functions/inet6_opt_find.texi: New file.
3754         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3755         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3756         * doc/glibc-functions/inet6_opt_init.texi: New file.
3757         * doc/glibc-functions/inet6_opt_next.texi: New file.
3758         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3759         * doc/glibc-functions/inet6_rth_add.texi: New file.
3760         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3761         * doc/glibc-functions/inet6_rth_init.texi: New file.
3762         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3763         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3764         * doc/glibc-functions/inet6_rth_space.texi: New file.
3765         * doc/glibc-functions/login.texi: New file.
3766         * doc/glibc-functions/mbrtoc16.texi: New file.
3767         * doc/glibc-functions/mbrtoc32.texi: New file.
3768         * doc/glibc-functions/name_to_handle_at.texi: New file.
3769         * doc/glibc-functions/ntp_gettimex.texi: New file.
3770         * doc/glibc-functions/open_by_handle_at.texi: New file.
3771         * doc/glibc-functions/prlimit.texi: New file.
3772         * doc/glibc-functions/process_vm_readv.texi: New file.
3773         * doc/glibc-functions/process_vm_writev.texi: New file.
3774         * doc/glibc-functions/recvmmsg.texi: New file.
3775         * doc/glibc-functions/scandirat.texi: New file.
3776         * doc/glibc-functions/sendmmsg.texi: New file.
3777         * doc/glibc-functions/setns.texi: New file.
3778         * doc/glibc-functions/timespec_get.texi: New file.
3779         * doc/gnulib.texi: Include them.
3780         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3781         sections.
3782         Reported by Eric Blake.
3783
3784 2012-02-28  Bruno Haible  <bruno@clisp.org>
3785
3786         Avoid compilation errors with MSVC option -fp:strict.
3787         * lib/floor.c: Use MSVC specific pragma fenv_access.
3788         * lib/ceil.c: Likewise.
3789         * lib/trunc.c: Likewise.
3790         * lib/round.c: Likewise.
3791         * lib/rint.c: Likewise.
3792         * lib/fma.c: Likewise.
3793         * lib/integer_length.c: Likewise.
3794         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3795         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3796         * tests/test-floor2.c: Likewise.
3797         * tests/test-floorf2.c: Likewise.
3798         * tests/test-ceil2.c: Likewise.
3799         * tests/test-ceilf2.c: Likewise.
3800         * tests/test-trunc2.c: Likewise.
3801         * tests/test-truncf2.c: Likewise.
3802         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3803
3804 2012-02-27  Bruno Haible  <bruno@clisp.org>
3805
3806         Tests for module 'sqrtl-ieee'.
3807         * modules/sqrtl-ieee-tests: New file.
3808         * tests/test-sqrtl-ieee.c: New file.
3809
3810         New module 'sqrtl-ieee'.
3811         * modules/sqrtl-ieee: New file.
3812
3813         Tests for module 'sqrt-ieee'.
3814         * modules/sqrt-ieee-tests: New file.
3815         * tests/test-sqrt-ieee.c: New file.
3816
3817         New module 'sqrt-ieee'.
3818         * modules/sqrt-ieee: New file.
3819
3820         Tests for module 'sqrtf-ieee'.
3821         * modules/sqrtf-ieee-tests: New file.
3822         * tests/test-sqrtf-ieee.c: New file.
3823         * tests/test-sqrt-ieee.h: New file.
3824
3825         New module 'sqrtf-ieee'.
3826         * modules/sqrtf-ieee: New file.
3827
3828 2012-02-27  Bruno Haible  <bruno@clisp.org>
3829
3830         remainderl-ieee: Work around test failure on OSF/1.
3831         * m4/remainderl-ieee.m4: New file.
3832         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3833         present, test whether remainderl works with a zero second argument.
3834         Replace it if not.
3835         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3837         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3838         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3839         (Depends-on): Update conditions.
3840         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3841         (Depends-on): Add remainder-ieee.
3842         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3843         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3844         module.
3845
3846         remainderf-ieee: Work around test failure on OSF/1.
3847         * m4/remainderf-ieee.m4: New file.
3848         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3849         present, test whether remainderf works with a zero second argument.
3850         Replace it if not.
3851         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3853         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3854         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3855         (Depends-on): Update conditions.
3856         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3857         (Depends-on): Add remainder-ieee.
3858         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3859         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3860         module.
3861
3862         remainder-ieee: Work around test failure on OSF/1.
3863         * m4/remainder-ieee.m4: New file.
3864         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3865         present, test whether remainder works with a zero second argument.
3866         Replace it if not.
3867         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3869         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3870         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3871         (Depends-on): Update dependencies.
3872         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3873         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3874         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3875
3876         Tests for module 'remainderl-ieee'.
3877         * modules/remainderl-ieee-tests: New file.
3878         * tests/test-remainderl-ieee.c: New file.
3879
3880         New module 'remainderl-ieee'.
3881         * modules/remainderl-ieee: New file.
3882
3883         Tests for module 'remainder-ieee'.
3884         * modules/remainder-ieee-tests: New file.
3885         * tests/test-remainder-ieee.c: New file.
3886
3887         New module 'remainder-ieee'.
3888         * modules/remainder-ieee: New file.
3889
3890         Tests for module 'remainderf-ieee'.
3891         * modules/remainderf-ieee-tests: New file.
3892         * tests/test-remainderf-ieee.c: New file.
3893         * tests/test-remainder-ieee.h: New file.
3894
3895         New module 'remainderf-ieee'.
3896         * modules/remainderf-ieee: New file.
3897
3898 2012-02-27  Bruno Haible  <bruno@clisp.org>
3899
3900         modff, modfl: Fix configure syntax error.
3901         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3902         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3903
3904 2012-02-27  Bruno Haible  <bruno@clisp.org>
3905
3906         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3907         * m4/fmodl-ieee.m4: New file.
3908         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3909         whether fmodl works with zero arguments. Replace it if not.
3910         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3911         (Depends-on): Add fmod-ieee.
3912         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3913         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3914
3915         fmodf-ieee: Work around test failure on OSF/1.
3916         * m4/fmodf-ieee.m4: New file.
3917         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3918         whether fmodf works with zero arguments. Replace it if not.
3919         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3921         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3922         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3923         (Depends-on): Update dependencies.
3924         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3925         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3926         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3927
3928         fmodf-ieee: Work around test failure on MSVC 9.
3929         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3930         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3931
3932         fmod-ieee: Work around test failures on OSF/1, mingw.
3933         * m4/fmod-ieee.m4: New file.
3934         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3935         whether fmod works with zero arguments. Replace it if not.
3936         * lib/math.in.h (fmod): New declaration.
3937         * lib/fmod.c: New file.
3938         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3940         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3941         * modules/fmod (Files): Add lib/fmod.c.
3942         (Depends-on): Add math, isinf, trunc, fma.
3943         (configure.ac): Arrange to compile lib/fmod.c if needed.
3944         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3945         m4/signbit.m4.
3946         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3947         * tests/test-math-c++.cc: Check the declaration of fmod.
3948         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3949
3950         fmodl-ieee: Fix test failures.
3951         * lib/fmodl.c (fmodl): Treat Inf specially.
3952         * modules/fmodl (Depends-on): Add isinf.
3953
3954         Tests for module 'fmodl-ieee'.
3955         * modules/fmodl-ieee-tests: New file.
3956         * tests/test-fmodl-ieee.c: New file.
3957
3958         New module 'fmodl-ieee'.
3959         * modules/fmodl-ieee: New file.
3960
3961         Tests for module 'fmod-ieee'.
3962         * modules/fmod-ieee-tests: New file.
3963         * tests/test-fmod-ieee.c: New file.
3964
3965         New module 'fmod-ieee'.
3966         * modules/fmod-ieee: New file.
3967
3968         Tests for module 'fmodf-ieee'.
3969         * modules/fmodf-ieee-tests: New file.
3970         * tests/test-fmodf-ieee.c: New file.
3971         * tests/test-fmod-ieee.h: New file.
3972
3973         New module 'fmodf-ieee'.
3974         * modules/fmodf-ieee: New file.
3975
3976 2012-02-27  Bruno Haible  <bruno@clisp.org>
3977
3978         Tests for module 'rintl-ieee'.
3979         * modules/rintl-ieee-tests: New file.
3980         * tests/test-rintl-ieee.c: New file.
3981
3982         New module 'rintl-ieee'.
3983         * modules/rintl-ieee: New file.
3984
3985         Tests for module 'rint-ieee'.
3986         * modules/rint-ieee-tests: New file.
3987         * tests/test-rint-ieee.c: New file.
3988
3989         New module 'rint-ieee'.
3990         * modules/rint-ieee: New file.
3991
3992         Tests for module 'rintf-ieee'.
3993         * modules/rintf-ieee-tests: New file.
3994         * tests/test-rintf-ieee.c: New file.
3995         * tests/test-rint-ieee.h: New file.
3996
3997         New module 'rintf-ieee'.
3998         * modules/rintf-ieee: New file.
3999
4000 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4001
4002         regex: re_search etc. should return -2 when memory exhausted
4003         This bug was uncovered when testing 'grep'.  Without the fix,
4004         re_search and friends return -1 when memory is exhausted, but -1
4005         means no match, and this causes grep to falsely report no-match
4006         instead of memory-exhaustion.  See
4007         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
4008         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
4009         trouble; this can occur if re_search_internal ran out of memory.
4010
4011 2012-02-26  Bruno Haible  <bruno@clisp.org>
4012
4013         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
4014         * m4/modfl-ieee.m4: New file.
4015         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
4016         whether modfl works with Inf. Replace it if not.
4017         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
4018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
4019         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
4020         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
4021         (Depends-on): Update dependencies.
4022         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
4023         m4/signbit.m4.
4024         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
4025         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
4026
4027         modfl-ieee: Fix dependencies.
4028         * modules/modfl-ieee (Depends-on): Add modf-ieee.
4029
4030         modfl-ieee: Fix test failures.
4031         * lib/modfl.c (modfl): Treat NaN and Inf specially.
4032         * modules/modfl (Depends-on): Add isfinite, isinf.
4033
4034         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4035         * m4/modff-ieee.m4: New file.
4036         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4037         whether modff works with NaN and Inf. Replace it if not.
4038         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4040         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4041         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4042         (Depends-on): Update dependencies.
4043         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4044         m4/signbit.m4.
4045         (Depends-on): Add modf-ieee.
4046         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4047         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4048
4049         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4050         * m4/modf-ieee.m4: New file.
4051         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4052         whether modf works with NaN and Inf. Replace it if not.
4053         * lib/math.in.h (modf): New declaration.
4054         * lib/modf.c: New file.
4055         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4057         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4058         * modules/modf (Files): Add lib/modf.c.
4059         (Depends-on): Add math, isfinite, trunc, isinf.
4060         (configure.ac): Addrange to compile lib/modf.c if needed.
4061         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4062         m4/signbit.m4.
4063         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4064         * tests/test-math-c++.cc: Check the declaration of modf.
4065         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4066
4067         Tests for module 'modfl-ieee'.
4068         * modules/modfl-ieee-tests: New file.
4069         * tests/test-modfl-ieee.c: New file.
4070
4071         New module 'modfl-ieee'.
4072         * modules/modfl-ieee: New file.
4073
4074         Tests for module 'modf-ieee'.
4075         * modules/modf-ieee-tests: New file.
4076         * tests/test-modf-ieee.c: New file.
4077
4078         New module 'modf-ieee'.
4079         * modules/modf-ieee: New file.
4080
4081         Tests for module 'modff-ieee'.
4082         * modules/modff-ieee-tests: New file.
4083         * tests/test-modff-ieee.c: New file.
4084         * tests/test-modf-ieee.h: New file.
4085
4086         New module 'modff-ieee'.
4087         * modules/modff-ieee: New file.
4088
4089 2012-02-26  Bruno Haible  <bruno@clisp.org>
4090
4091         Tests for module 'fabsl-ieee'.
4092         * modules/fabsl-ieee-tests: New file.
4093         * tests/test-fabsl-ieee.c: New file.
4094
4095         New module 'fabsl-ieee'.
4096         * modules/fabsl-ieee: New file.
4097
4098         Tests for module 'fabs-ieee'.
4099         * modules/fabs-ieee-tests: New file.
4100         * tests/test-fabs-ieee.c: New file.
4101
4102         New module 'fabs-ieee'.
4103         * modules/fabs-ieee: New file.
4104
4105         Tests for module 'fabsf-ieee'.
4106         * modules/fabsf-ieee-tests: New file.
4107         * tests/test-fabsf-ieee.c: New file.
4108         * tests/test-fabs-ieee.h: New file.
4109
4110         New module 'fabsf-ieee'.
4111         * modules/fabsf-ieee: New file.
4112
4113 2012-02-26  Bruno Haible  <bruno@clisp.org>
4114
4115         Tests for module 'fmal-ieee'.
4116         * modules/fmal-ieee-tests: New file.
4117         * tests/test-fmal-ieee.c: New file.
4118
4119         New module 'fmal-ieee'.
4120         * modules/fmal-ieee: New file.
4121
4122         Tests for module 'fma-ieee'.
4123         * modules/fma-ieee-tests: New file.
4124         * tests/test-fma-ieee.c: New file.
4125
4126         New module 'fma-ieee'.
4127         * modules/fma-ieee: New file.
4128
4129         Tests for module 'fmaf-ieee'.
4130         * modules/fmaf-ieee-tests: New file.
4131         * tests/test-fmaf-ieee.c: New file.
4132         * tests/test-fma-ieee.h: New file.
4133
4134         New module 'fmaf-ieee'.
4135         * modules/fmaf-ieee: New file.
4136
4137 2012-02-26  Bruno Haible  <bruno@clisp.org>
4138
4139         Tests for module 'ldexpl-ieee'.
4140         * modules/ldexpl-ieee-tests: New file.
4141         * tests/test-ldexpl-ieee.c: New file.
4142
4143         New module 'ldexpl-ieee'.
4144         * modules/ldexpl-ieee: New file.
4145
4146         Tests for module 'ldexp-ieee'.
4147         * modules/ldexp-ieee-tests: New file.
4148         * tests/test-ldexp-ieee.c: New file.
4149
4150         New module 'ldexp-ieee'.
4151         * modules/ldexp-ieee: New file.
4152
4153         Tests for module 'ldexpf-ieee'.
4154         * modules/ldexpf-ieee-tests: New file.
4155         * tests/test-ldexpf-ieee.c: New file.
4156         * tests/test-ldexp-ieee.h: New file.
4157
4158         New module 'ldexpf-ieee'.
4159         * modules/ldexpf-ieee: New file.
4160
4161 2012-02-26  Bruno Haible  <bruno@clisp.org>
4162
4163         Refactor frexp*-ieee tests.
4164         * tests/test-frexp-ieee.h: New file.
4165         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4166         (main): Just call test_function.
4167         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4168         (main): Just call test_function.
4169         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4170         (main): Just call test_function.
4171         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4172         * modules/frexp-ieee-tests (Files): Likewise.
4173         * modules/frexpl-ieee-tests (Files): Likewise.
4174
4175         Tests for module 'frexpl-ieee'.
4176         * modules/frexpl-ieee-tests: New file.
4177         * tests/test-frexpl-ieee.c: New file.
4178
4179         New module 'frexpl-ieee'.
4180         * modules/frexpl-ieee: New file.
4181
4182         Tests for module 'frexp-ieee'.
4183         * modules/frexp-ieee-tests: New file.
4184         * tests/test-frexp-ieee.c: New file.
4185
4186         New module 'frexp-ieee'.
4187         * modules/frexp-ieee: New file.
4188
4189         Tests for module 'frexpf-ieee'.
4190         * modules/frexpf-ieee-tests: New file.
4191         * tests/test-frexpf-ieee.c: New file.
4192
4193         New module 'frexpf-ieee'.
4194         * modules/frexpf-ieee: New file.
4195
4196 2012-02-26  Bruno Haible  <bruno@clisp.org>
4197
4198         roundl-ieee tests: More tests.
4199         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4200         (main): Add tests for [MX] shaded specification in POSIX.
4201         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4202         (Depends-on): Add isnanl-nolibm.
4203
4204         round-ieee tests: More tests.
4205         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4206         (main): Add tests for [MX] shaded specification in POSIX.
4207         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4208         (Depends-on): Add isnand-nolibm.
4209
4210         roundf-ieee tests: More tests.
4211         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4212         (main): Add tests for [MX] shaded specification in POSIX.
4213         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4214         (Depends-on): Add isnanf-nolibm.
4215
4216         truncl-ieee tests: More tests.
4217         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4218         (main): Add tests for [MX] shaded specification in POSIX.
4219         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4220         (Depends-on): Add isnanl-nolibm.
4221
4222         trunc-ieee tests: More tests.
4223         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4224         (main): Add tests for [MX] shaded specification in POSIX.
4225         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4226         (Depends-on): Add isnand-nolibm.
4227
4228         truncf-ieee tests: More tests.
4229         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4230         (main): Add tests for [MX] shaded specification in POSIX.
4231         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4232         (Depends-on): Add isnanf-nolibm.
4233
4234         ceill-ieee tests: More tests.
4235         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4236         (main): Add tests for [MX] shaded specification in POSIX.
4237         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4238         (Depends-on): Add isnanl-nolibm.
4239
4240         ceil-ieee tests: More tests.
4241         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4242         (main): Add tests for [MX] shaded specification in POSIX.
4243         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4244         (Depends-on): Add isnand-nolibm.
4245
4246         ceilf-ieee tests: More tests.
4247         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4248         (main): Add tests for [MX] shaded specification in POSIX.
4249         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4250         (Depends-on): Add isnanf-nolibm.
4251
4252         floorl-ieee tests: More tests.
4253         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4254         (main): Add tests for [MX] shaded specification in POSIX.
4255         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4256         (Depends-on): Add isnanl-nolibm.
4257
4258         floor-ieee tests: More tests.
4259         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4260         (main): Add tests for [MX] shaded specification in POSIX.
4261         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4262         (Depends-on): Add isnand-nolibm.
4263
4264         floorf-ieee tests: More tests.
4265         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4266         (main): Add tests for [MX] shaded specification in POSIX.
4267         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4268         (Depends-on): Add isnanf-nolibm.
4269
4270 2012-02-26  Bruno Haible  <bruno@clisp.org>
4271
4272         fpieee: More comments.
4273         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4274
4275 2012-02-25  Bruno Haible  <bruno@clisp.org>
4276
4277         Tests for module 'log10l'.
4278         * modules/log10l-tests: New file.
4279         * tests/test-log10l.c: New file.
4280         * tests/test-math-c++.cc: Check the declaration of log10l.
4281
4282         New module 'log10l'.
4283         * lib/math.in.h (log10l): New declaration.
4284         * lib/log10l.c: New file.
4285         * m4/log10l.m4: New file.
4286         * modules/log10l: New file.
4287         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4288         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4289         HAVE_DECL_LOG10L.
4290         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
4291         HAVE_DECL_LOG10L.
4292         * doc/posix-functions/log10l.texi: Mention the new module.
4293
4294 2012-02-25  Bruno Haible  <bruno@clisp.org>
4295
4296         fmodl, remainder*: Avoid wrong results due to rounding errors.
4297         * lib/fmodl.c (fmodl): Correct the result if it is not within the
4298         expected bounds.
4299         * lib/remainderf.c (remainderf): Likewise.
4300         * lib/remainder.c (remainder): Likewise.
4301         * lib/remainderl.c (remainderl): Likewise.
4302
4303 2012-02-25  Bruno Haible  <bruno@clisp.org>
4304
4305         Tests for module 'remainderl'.
4306         * modules/remainderl-tests: New file.
4307         * tests/test-remainderl.c: New file.
4308         * tests/test-math-c++.cc: Check the declaration of remainderl.
4309
4310         New module 'remainderl'.
4311         * lib/math.in.h (remainderl): New declaration.
4312         * lib/remainderl.c: New file.
4313         * m4/remainderl.m4: New file.
4314         * modules/remainderl: New file.
4315         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4316         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4317         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4318         HAVE_REMAINDERL.
4319         * doc/posix-functions/remainderl.texi: Mention the new module.
4320
4321 2012-02-25  Bruno Haible  <bruno@clisp.org>
4322
4323         Tests for module 'remainderf'.
4324         * modules/remainderf-tests: New file.
4325         * tests/test-remainderf.c: New file.
4326         * tests/test-math-c++.cc: Check the declaration of remainderf.
4327
4328         New module 'remainderf'.
4329         * lib/math.in.h (remainderf): New declaration.
4330         * lib/remainderf.c: New file.
4331         * m4/remainderf.m4: New file.
4332         * modules/remainderf: New file.
4333         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4335         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4336         HAVE_REMAINDERF.
4337         * doc/posix-functions/remainderf.texi: Mention the new module.
4338
4339 2012-02-25  Bruno Haible  <bruno@clisp.org>
4340
4341         remainder: Support for MSVC.
4342         * lib/math.in.h (remainder): New declaration.
4343         * lib/remainder.c: New file.
4344         * m4/remainder.m4: New file.
4345         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4346         (Depends-on): Add math, round, fma.
4347         (configure.ac): Use results of gl_FUNC_REMAINDER.
4348         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4349         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4350         HAVE_DECL_REMAINDER.
4351         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4352         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4353         * tests/test-math-c++.cc: Check the declaration of remainder.
4354         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4355         problems are fixed.
4356
4357 2012-02-25  Bruno Haible  <bruno@clisp.org>
4358
4359         Tests for module 'fmodl'.
4360         * modules/fmodl-tests: New file.
4361         * tests/test-fmodl.c: New file.
4362         * tests/test-math-c++.cc: Check the declaration of fmodl.
4363
4364         New module 'fmodl'.
4365         * lib/math.in.h (fmodl): New declaration.
4366         * lib/fmodl.c: New file.
4367         * m4/fmodl.m4: New file.
4368         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
4369         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
4370         REPLACE_FMODL.
4371         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
4372         REPLACE_FMODL.
4373         * modules/fmodl: New file.
4374         * doc/posix-functions/fmodl.texi: Mention the new module.
4375
4376 2012-02-25  Bruno Haible  <bruno@clisp.org>
4377
4378         Tests for module 'modfl'.
4379         * modules/modfl-tests: New file.
4380         * tests/test-modfl.c: New file.
4381         * tests/test-math-c++.cc: Check the declaration of modfl.
4382
4383         New module 'modfl'.
4384         * lib/math.in.h (modfl): New declaration.
4385         * lib/modfl.c: New file.
4386         * m4/modfl.m4: New file.
4387         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
4388         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
4389         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
4390         * modules/modfl: New file.
4391         * doc/posix-functions/modfl.texi: Mention the new module.
4392
4393 2012-02-25  Bruno Haible  <bruno@clisp.org>
4394
4395         Tests for module 'fabsl'.
4396         * modules/fabsl-tests: New file.
4397         * tests/test-fabsl.c: New file.
4398         * tests/test-math-c++.cc: Check the declaration of fabsl.
4399
4400         New module 'fabsl'.
4401         * lib/math.in.h (fabsl): New declaration.
4402         * lib/fabsl.c: New file.
4403         * m4/fabsl.m4: New file.
4404         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
4405         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
4406         REPLACE_FABSL.
4407         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
4408         REPLACE_FABSL.
4409         * modules/fabsl: New file.
4410         * doc/posix-functions/fabsl.texi: Mention the new module.
4411
4412 2012-02-25  Bruno Haible  <bruno@clisp.org>
4413
4414         fabs tests: More tests.
4415         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
4416         (zero): New variable.
4417         (main): Add tests for signed zero.
4418         * modules/fabs-tests (Files): Add tests/minus-zero.h.
4419
4420         fabsf tests: More tests.
4421         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4422         (zero): New variable.
4423         (main): Add tests for signed zero.
4424         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4425
4426 2012-02-24  Bruno Haible  <bruno@clisp.org>
4427
4428         atanl: Provide function definition on MSVC.
4429         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4430         function pointer.
4431         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4432
4433 2012-02-24  Bruno Haible  <bruno@clisp.org>
4434
4435         acosl: Provide function definition on MSVC.
4436         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4437         function pointer.
4438         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4439
4440 2012-02-24  Bruno Haible  <bruno@clisp.org>
4441
4442         asinl: Provide function definition on MSVC.
4443         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
4444         function pointer.
4445         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
4446
4447 2012-02-24  Bruno Haible  <bruno@clisp.org>
4448
4449         tanl: Provide function definition on MSVC.
4450         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
4451         function pointer.
4452         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
4453
4454 2012-02-24  Bruno Haible  <bruno@clisp.org>
4455
4456         cosl: Provide function definition on MSVC.
4457         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
4458         function pointer.
4459         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
4460
4461 2012-02-24  Bruno Haible  <bruno@clisp.org>
4462
4463         sinl: Provide function definition on MSVC.
4464         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4465         function pointer.
4466         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4467
4468 2012-02-24  Bruno Haible  <bruno@clisp.org>
4469
4470         logl: Provide function definition on MSVC.
4471         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
4472         function pointer.
4473         * lib/math.in.h (logl): Undefine if it does not exist as a function.
4474
4475 2012-02-24  Bruno Haible  <bruno@clisp.org>
4476
4477         expl: Provide function definition on MSVC.
4478         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
4479         function pointer.
4480         * lib/math.in.h (expl): Undefine if it does not exist as a function.
4481
4482 2012-02-24  Bruno Haible  <bruno@clisp.org>
4483
4484         sqrtl: Provide function definition on MSVC.
4485         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
4486         a function pointer.
4487         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
4488
4489 2012-02-24  Bruno Haible  <bruno@clisp.org>
4490
4491         ceill: Provide function definition on MSVC.
4492         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
4493         used as a function pointer.
4494         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
4495
4496 2012-02-24  Bruno Haible  <bruno@clisp.org>
4497
4498         floorl: Provide function definition on MSVC.
4499         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
4500         used as a function pointer.
4501         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
4502
4503 2012-02-24  Bruno Haible  <bruno@clisp.org>
4504
4505         ceilf: Provide function definition on MSVC.
4506         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
4507         used as a function pointer.
4508         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
4509
4510 2012-02-24  Bruno Haible  <bruno@clisp.org>
4511
4512         floorf: Provide function definition on MSVC.
4513         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
4514         used as a function pointer.
4515         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
4516
4517 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4518
4519         stdnoreturn: new module
4520         This implements a replacement for C11's <stdnoreturn.h>.
4521         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4522         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4523         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4524         * tests/test-stdnoreturn.c: New files.
4525
4526 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4527
4528         regex: fix false multibyte matches in some regular expressions
4529         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4530         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4531         * lib/regex_internal.c (re_string_skip_chars):
4532         Fix miscomputation of remain_len that may cause incomplete
4533         multi-byte character and false match.
4534
4535 2012-02-24  Jim Meyering  <meyering@redhat.com>
4536
4537         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4538         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4539         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4540         Remove now-unnecessary str''cmp obfuscation.
4541         Suggested by Akim Demaille.
4542
4543 2012-02-24  Bruno Haible  <bruno@clisp.org>
4544
4545         streq: Rename macro.
4546         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4547         * NEWS: Mention the change.
4548         * lib/mbrtowc.c (mbrtowc): Update.
4549         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4550         * lib/wcwidth.c (wcwidth): Update.
4551         Suggested by Akim Demaille and Jim Meyering.
4552
4553 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4554
4555         regex: fix typo in definition of MIN
4556         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4557         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4558
4559 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4560             Bruno Haible  <bruno@clisp.org>
4561
4562         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4563         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4564         entries into a stack-allocated buffer directly.
4565         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4566
4567 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4568             Bruno Haible  <bruno@clisp.org>
4569
4570         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4571
4572          - There were several instances of this pattern:
4573
4574              for (;;) {
4575                n = acl (f, GETACLCNT, 0, NULL);
4576                [ allocate an array A of size N ]
4577                if (acl (f, GETACL, n, a) == n)
4578                  break;
4579              }
4580
4581            This loop might never terminate if some other process is constantly
4582            manipulating the file's ACL.  The loop should be rewritten to
4583            terminate.
4584
4585          - The acl (... GETACLNT ...) call is merely an optimization; its value
4586            is merely a hint as to how big to make the array.  A better
4587            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4588            and just guess a reasonably-big size, growing the size and trying
4589            again if it's not large enough.  This guarantees termination, and
4590            saves a system call.
4591
4592         * lib/acl-internal.h: Include <limits.h>.
4593         (MIN, SIZE_MAX): New macros.
4594         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4595         a stack-allocated buffer, and use malloc if it does not fit. Don't
4596         use GETACLCNT.
4597         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4598
4599 2012-02-19  Bruno Haible  <bruno@clisp.org>
4600
4601         acl: Fix endless loop on Solaris with vxfs.
4602         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4603         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4604         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4605         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4606         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4607         Reported by Bill Jones in
4608         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4609
4610 2012-02-19  Bruno Haible  <bruno@clisp.org>
4611
4612         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4613         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4614         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4615         that this function returns 0 in some more cases.
4616
4617 2012-02-19  Bruno Haible  <bruno@clisp.org>
4618
4619         acl: Update doc references.
4620         * doc/acl-resources.txt: Update links to Solaris documentation.
4621
4622 2012-02-19  Bruno Haible  <bruno@clisp.org>
4623
4624         Fix test failure in many locales on Solaris 11.
4625         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4626         'tr' arguments.
4627         * tests/test-pipe-filter-ii1.c (main): Likewise.
4628         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4629         expressions in the C locale.
4630         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4631         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4632
4633 2012-02-19  Bruno Haible  <bruno@clisp.org>
4634
4635         gnulib-tool: Improve usage message.
4636         * gnulib-tool (func_usage): Move doc of --help and --version to the
4637         section "Operation modes".
4638
4639 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4640
4641         README-release: make it easier to execute commands
4642         * top/README-release: break commands out on to separate lines.
4643
4644 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4645
4646         GNUmakefile: simplify detection of unconfigured trees
4647         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4648         whether the tree make is being run from is already configured or
4649         not.  Related simplifications.
4650
4651 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4652
4653         * gnulib-tool (func_usage): Document --help and --version.
4654
4655 2012-02-11  Jim Meyering  <meyering@redhat.com>
4656
4657         bootstrap: don't exit 0 upon gnulib-tool failure
4658         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4659         its exit status, not 0.
4660
4661 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4662
4663         README-release: various improvements
4664         * top/README-release: Give a command to push changes for the
4665         release.  Add "distcheck" to list of other pre-release checks.
4666         Fix instance of "make stable" which should be "make TYPE".
4667
4668 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4669
4670         maint: replace FSF snail-mail addresses with URLs
4671         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4672         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4673         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4674         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4675         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4676         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4677         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4678         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4679         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4680         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4681         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4682         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4683         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4684         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4685         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4686         * lib/glthread/thread.c, lib/glthread/thread.h:
4687         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4688         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4689         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4690         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4691         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4692         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4693         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4694         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4695         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4696         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4697         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4698         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4699         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4700         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4701         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4702         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4703         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4704         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4705         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4706         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4707         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4708         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4709         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4710         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4711         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4712         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4713         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4714         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4715         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4716         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4717         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4718         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4719         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4720         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4721         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4722         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4723         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4724         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4725         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4726         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4727         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4728         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4729         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4730         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4731         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4732         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4733         * tests/test-poll.c, tests/test-quotearg-simple.c:
4734         * tests/test-quotearg.c, tests/test-quotearg.h:
4735         * tests/test-round-ieee.c, tests/test-round1.c:
4736         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4737         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4738         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4739         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4740         * tests/test-strerror.c, tests/test-strerror_r.c:
4741         * tests/test-strsignal.c, tests/test-strverscmp.c:
4742         * tests/test-xmemdup0.c:
4743         Replace FSF snail mail addresses with URLs, as per GNU coding
4744         standards.  See glibc bug
4745         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4746
4747 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4748
4749         README-release: capitalize a word and split a line
4750         * top/README-release: Fix punctuation and spacing.
4751
4752 2012-02-08  Akim Demaille  <demaille@gostai.com>
4753
4754         fatal-signal: use C prototypes (with explicit void).
4755         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4756         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4757
4758 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4759
4760         regex: spelling fix
4761         * lib/regexec.c: spelling fix
4762
4763         regex: rely on stdint.h for SIZE_MAX
4764         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4765
4766 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4767
4768         regex: merge glibc changes
4769
4770         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4771         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4772         (init_word_char): Work even if bitset words are not exactly 32 or
4773         64 bits wide.  Don't assume there are no padding bits.
4774         * lib/regex.c [_LIBC]: Do not include <config.h>.
4775         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4776         and -Wtype-limits.
4777         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4778         needless disagreement with glibc.  All uses changed.  Define it to
4779         1 only if _GNU_SOURCE, to match glibc.
4780         (_REG_RM_NAME): Remove; no longer needed, since the names in
4781         question are now all protected by __USE_GNU.
4782         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4783         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4784         * lib/regex_internal.h (MIN): New macro.
4785
4786         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4787         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4788
4789         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4790         * lib/regex_internal.c (re_string_fetch_byte_case):
4791         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4792         is miscompiled, and it turns out it is because of an incorrect
4793         attribute on re_string_fetch_byte_case.  Unlike
4794         re_string_peek_byte_case, this one is really not pure, it modifies
4795         memory (increments pstr->cur_idx), and with the pure attribute GCC
4796         assumed it doesn't and it cached the presumed value of
4797         regexp->cur_idx in a variable across the
4798          for (;; ++i)
4799            {
4800              if (i >= BRACKET_NAME_BUF_SIZE)
4801                return REG_EBRACK;
4802              if (token->type == OP_OPEN_CHAR_CLASS)
4803                ch = re_string_fetch_byte_case (regexp);
4804              else
4805                ch = re_string_fetch_byte (regexp);
4806              if (re_string_eoi(regexp))
4807                return REG_EBRACK;
4808              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4809                break;
4810              elem->opr.name[i] = ch;
4811            }
4812
4813         2011-11-29 Andreas Schwab <schwab@redhat.com>
4814         * lib/regcomp.c (build_equiv_class):
4815         Fix access after end of search string in regex matcher.
4816
4817         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4818         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4819
4820         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4821         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4822
4823         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4824         * lib/regcomp.c (parse_branch, parse_sub_exp):
4825         More regex memory leak fixes and tests.
4826         (parse_sub_exp, parse_bracket_exp):
4827         Fix memory leak for some invalid regular expressions.
4828
4829         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4830         * lib/regex_internal.c, lib/regexec.c:
4831         Fix unnecessary overallocation due to incomplete character.  When
4832         incomplete characters are found at the end of a string the code
4833         ran amok and allocated lots of memory.  Stricter limits are now in
4834         place.
4835
4836         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4837         * lib/regex.h: Update documentation.
4838
4839         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4840         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4841
4842         2010-05-05 Andreas Schwab <schwab@redhat.com>
4843         * lib/regexec.c (find_collation_sequence_value):
4844         Fix lookup of collation sequence value during regexp matching.
4845
4846         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4847         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4848
4849         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4850         * lib/regex.h: Cleanup namespace.
4851
4852         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4853         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4854
4855         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4856         * lib/regex_internal.h: Prevent some declarations and definitions
4857         to be seen when used in tests.
4858
4859         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4860         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4861         __libc_lock_* macros if not _LIBC.
4862         (struct re_dfa_t): Add lock.
4863
4864 2012-02-07  Eric Blake  <eblake@redhat.com>
4865
4866         maint.mk: also prohibit lower-case @var@
4867         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4868         lower case, like @top_srcdir@.
4869
4870 2012-02-04  Eric Blake  <eblake@redhat.com>
4871
4872         canonicalize: avoid uninitialized memory use
4873         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4874         random '/' left in dest.
4875         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4876
4877 2012-02-04  Bruno Haible  <bruno@clisp.org>
4878
4879         isatty: Fix test failure of ptsname_r on native Windows.
4880         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4881         and don't set errno.
4882         (isatty): Test first whether fd is valid. Set errno when returning 0.
4883
4884 2012-02-04  Bruno Haible  <bruno@clisp.org>
4885
4886         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4887         * tests/test-spawn-pipe-main.c: Include progname.h.
4888         (main): Invoke set_program_name.
4889         * modules/spawn-pipe-tests (Depends-on): Add progname.
4890
4891         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4892         * tests/test-nonblocking-socket-main.c: Include progname.h.
4893         (main): Invoke set_program_name.
4894         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4895
4896         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4897         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4898         (main): Invoke set_program_name.
4899         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4900
4901 2012-02-04  Eric Blake  <eblake@redhat.com>
4902
4903         canonicalize-lgpl: fix // handling
4904         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4905
4906         canonicalize: fix // handling
4907         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4908         /// to //, since only // is special.
4909
4910 2012-02-04  Bruno Haible  <bruno@clisp.org>
4911
4912         ioctl: Fix test failure on native Windows.
4913         * lib/ioctl.c: Include msvc-nothrow.h.
4914         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4915
4916 2012-02-04  Bruno Haible  <bruno@clisp.org>
4917
4918         fsync: Avoid test failure on native Windows.
4919         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4920         read-only.
4921
4922 2012-02-04  Bruno Haible  <bruno@clisp.org>
4923
4924         sys_select: Avoid syntax error on OpenBSD 5.0.
4925         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4926         currently being included, just include the system's <sys/select.h>.
4927
4928 2012-02-04  Bruno Haible  <bruno@clisp.org>
4929
4930         sys_select: Avoid syntax error on OpenBSD 5.0.
4931         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4932         <sys/select.h>, not before.
4933         Reported by Jiri B <jirib@devio.us>.
4934
4935 2012-02-04  Bruno Haible  <bruno@clisp.org>
4936
4937         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4938         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4939         global variables.
4940         * tests/test-get-rusage-data.c (main): Likewise.
4941         Reported by Jim Meyering.
4942
4943 2012-02-04  Bruno Haible  <bruno@clisp.org>
4944
4945         stdioext: Fix last commit.
4946         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4947
4948 2012-02-03  Bruno Haible  <bruno@clisp.org>
4949
4950         stdioext: Add tentative support for Plan9.
4951         * lib/stdio-impl.h: Include <errno.h>.
4952         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4953         * lib/freadable.c (freadable): Likewise.
4954         * lib/fwritable.c (fwritable): Likewise.
4955         * lib/fbufmode.c (fbufmode): Likewise.
4956         * lib/freading.c (freading): Likewise.
4957         * lib/fwriting.c (fwriting): Likewise.
4958         * lib/freadptr.c (freadptr): Likewise.
4959         * lib/freadseek.c (freadptrinc): Likewise.
4960         * lib/freadahead.c (freadahead): Likewise.
4961         * lib/fpurge.c (fpurge): Likewise.
4962         * lib/fseeko.c (rpl_fseeko): Likewise.
4963         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4964         Reported by Jens Staal <staal1978@gmail.com>.
4965
4966 2012-02-02  Jim Meyering  <meyering@redhat.com>
4967
4968         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4969         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4970         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4971         not even to try to add the attribute.  Instead, add a pragma to suppress
4972         the suggestion/warning.
4973
4974 2012-01-31  Karl Berry  <karl@gnu.org>
4975
4976         setstate doc: typo.
4977         * doc/posix-functions/setstate.texi (setstate): { not (.
4978
4979 2012-01-31  Bruno Haible  <bruno@clisp.org>
4980
4981         popen: Make more robust on Windows.
4982         * lib/popen.c: On native Windows, use the _popen based code even if
4983         HAVE_POPEN is set.
4984         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4985         environment variable on native Windows.
4986
4987 2012-01-30  Bruno Haible  <bruno@clisp.org>
4988
4989         pclose: Fix typo.
4990         * lib/stdio.in.h (pclose): Fix typo in warning message.
4991
4992 2012-01-30  Bruno Haible  <bruno@clisp.org>
4993
4994         doc about getlogin_r, setstate.
4995         * doc/posix-functions/getlogin_r.texi: List the incompatible
4996         declaration problem under "not fixed by gnulib".
4997         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4998         problem on Solaris 11 and other platforms.
4999
5000 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
5001             Bruno Haible  <bruno@clisp.org>
5002
5003         poll tests: Make test more robust.
5004         * tests/test-poll.c: Include macros.h.
5005         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
5006         return value of various I/O operations.
5007         * modules/poll-tests (Files): Add tests/macros.h.
5008
5009 2012-01-30  Bruno Haible  <bruno@clisp.org>
5010
5011         sys_stat: Fix support for mingw64 and MSVC.
5012         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
5013         header files already do it.
5014         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
5015         stat itself.
5016         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5017
5018 2012-01-30  Bruno Haible  <bruno@clisp.org>
5019
5020         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
5021         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
5022         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
5023
5024 2012-01-29  Bruno Haible  <bruno@clisp.org>
5025
5026         quotearg: Fix test failure on MacOS X 10.5.
5027         * tests/test-quotearg-simple.c: Include localcharset.h.
5028         (main): If the locale encoding is not ASCII, bypass the tests of
5029         locale_quoting_style and clocale_quoting_style.
5030         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
5031
5032 2012-01-29  Jim Meyering  <meyering@redhat.com>
5033
5034         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5035         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5036         detect uses of canonicalize_file_name.
5037
5038 2012-01-28  Bruno Haible  <bruno@clisp.org>
5039
5040         test-framework-sh: Fix test failure with AIX 7.1 diff.
5041         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5042         in column 1, like 'diff -c' does.
5043         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5044         whether 'diff -u' is used. Instead, test whether the output contains
5045         some '@' character.
5046
5047 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5048
5049         strtoimax: eliminate need for stdint.h, inttypes.h checks
5050         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5051         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5052         the prerequisites for a recently-introduced strtoimax test.
5053         I guess this might cause strtoimax to be replaced when not
5054         strictly necessary on older hosts, but this shouldn't introduce
5055         any bugs and it should make Emacs 'configure' faster on typical
5056         modern hosts.  Problem discovered when importing the latest gnulib
5057         to an Emacs test version.
5058         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5059
5060 2012-01-28  Bruno Haible  <bruno@clisp.org>
5061
5062         sys_time: Override 'struct timeval' on some native Windows platforms.
5063         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5064         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5065         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5066         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5067         needs to be overridden.
5068         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5069         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5070         * tests/test-sys_select.c: Check that the tv_sec member has the same
5071         size as a 'time_t'.
5072         * tests/test-sys_time.c: Likewise.
5073         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5074         is set, set also REPLACE_GETTIMEOFDAY.
5075         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5076         convert the resulting 'struct timeval' before returning.
5077         * lib/select.c: Include <sys/time.h>.
5078         (select, timeval): Undefine at the right place.
5079         * modules/select (Depends-on): Add sys_time.
5080         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5081         some Windows platforms.
5082         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5083
5084 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5085
5086         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5087         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5088         an integer.
5089         * lib/fcntl.c (dupfd): Likewise.
5090         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5091
5092 2012-01-28  Bruno Haible  <bruno@clisp.org>
5093
5094         fcntl: Avoid compilation error on native Windows.
5095         * modules/fcntl (Depends-on): Add 'close'.
5096
5097 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5098
5099         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5100         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5101         pointer to an integer.
5102         * lib/poll.c (IsConsoleHandle): Likewise.
5103         * lib/isatty.c (IsConsoleHandle): Likewise.
5104
5105 2012-01-28  Jim Meyering  <meyering@redhat.com>
5106
5107         doc: clarify README-release
5108         * top/README-release: Clarify: you should make a point to have
5109         the latest stable versions of build tools in your PATH, and the
5110         reference to buildreq is solely for its list of tool names, not
5111         for its minimal-functional version numbers.
5112         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5113
5114         maint.mk: use more readable (yet functionally equivalent) quoting
5115         It is common to quote a single quote in a single quoted string like
5116         this:  '...'\''...'.  Unless you know the idiom, that looks like
5117         gibberish, so prefer to double-quote the string when possible.
5118         Then you can use a more readable, lone single quote: "...'..."
5119         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5120         "don't" is more readable than the equivalent 'don'\''t'.
5121         (sc_cast_of_x_alloc_return_value): Likewise.
5122         (sc_cast_of_alloca_return_value): Likewise.
5123         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5124         rather than '\'':'\''.
5125
5126 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5127
5128         stdalign: relax _Alignof and tighten _Alignas test
5129         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5130         as it was too strict: alignof must divide offsetof, but it need
5131         not equal offsetof.  Inspired by Joseph S. Myers's comment
5132         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5133         Conversely, tighten the _Alignas test a bit, as the resulting
5134         alignment must be exactly 8.
5135
5136 2012-01-27  Bruno Haible  <bruno@clisp.org>
5137
5138         stdalign: Document the last change.
5139         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5140
5141 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5142
5143         stdalign: check that alignof and offsetof are consistent
5144         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5145         Problem reported for gnulib by Richard W.M. Jones in
5146         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5147
5148 2012-01-27  Jim Meyering  <meyering@redhat.com>
5149
5150         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5151         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5152         convert a sequence with gaps to the minimal containing range.
5153         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5154         * tests/test-update-copyright.sh: Test for this.
5155         The FSF confirmed it is ok to do this, assuming there is at
5156         least one significant change per year in the affected range:
5157         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5158
5159 2012-01-26  Bruno Haible  <bruno@clisp.org>
5160
5161         pipe2: refine doc about thread-safety
5162         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5163         multithread-safety problem.
5164         * doc/glibc-functions/accept4.texi: Likewise.
5165
5166 2012-01-26  Bruno Haible  <bruno@clisp.org>
5167
5168         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5169         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5170         In the test program, include <fcntl.h>, for O_RDONLY.
5171
5172 2012-01-26  Eric Blake  <eblake@redhat.com>
5173
5174         pipe2: document lack of thread-safety in replacement
5175         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5176         issue in replacement.
5177         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5178         Based on a report by Eric Wong.
5179
5180 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5181             Bruno Haible  <bruno@clisp.org>
5182
5183         malloca: Avoid warnings on x86_64 mingw64.
5184         * lib/malloca.c: Include <stdint.h>.
5185         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5186         * modules/malloca (Depends-on): Add stdint.
5187         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5188
5189 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5190
5191         obstack: remove __STDC__ conditionals
5192         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5193         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5194         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5195         m4/include_next.m4 as the only gnulib-maintained places that still
5196         refer to __STDC__.
5197
5198 2012-01-24  Bruno Haible  <bruno@clisp.org>
5199
5200         havelib: Modern quoting.
5201         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5202         the recent change to the GNU coding standards.
5203
5204 2012-01-24  Bruno Haible  <bruno@clisp.org>
5205
5206         stdint: Improve support for Android.
5207         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5208         Reported by Simon Josefsson <simon@josefsson.org>.
5209
5210 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5211
5212         doc: omit trailing empty lines from INSTALL etc.
5213         * doc/Makefile (INSTALL): Omit trailing empty lines.
5214         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5215         omit trailing empty lines.  This simplifies the build procedure.
5216
5217 2012-01-23  Jim Meyering  <meyering@redhat.com>
5218
5219         tests: avoid spurious warnings about gl_sockets_startup
5220         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5221         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5222         reporting a "statement with no effect".
5223         * tests/test-accept.c (main): Mark as "(void)".
5224         * tests/test-accept4.c (main): Likewise.
5225         * tests/test-bind.c (main): Likewise.
5226         * tests/test-connect.c (main): Likewise.
5227         * tests/test-getpeername.c (main): Likewise.
5228         * tests/test-getsockname.c (main): Likewise.
5229         * tests/test-getsockopt.c (main): Likewise.
5230         * tests/test-listen.c (main): Likewise.
5231         * tests/test-recv.c (main): Likewise.
5232         * tests/test-recvfrom.c (main): Likewise.
5233         * tests/test-send.c (main): Likewise.
5234         * tests/test-sendto.c (main): Likewise.
5235         * tests/test-setsockopt.c (main): Likewise.
5236         * tests/test-shutdown.c (main): Likewise.
5237
5238 2012-01-21  Bruno Haible  <bruno@clisp.org>
5239
5240         locale-fr.m4: Fix for Android.
5241         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5242         failure of the test program on Bionic libc.
5243
5244 2012-01-21  Jim Meyering  <meyering@redhat.com>
5245
5246         bootstrap: fail when bootstrap_post_import_hook fails
5247         Otherwise, it's far too easy to miss diagnostics emitted
5248         between gnulib-tool's output and that of running configure.
5249         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5250
5251 2012-01-17  Jim Meyering  <meyering@redhat.com>
5252
5253         maint: enable sc_trailing_blank
5254         * build-aux/pmccabe.css: Remove trailing blanks.
5255         * doc/acl-cygwin.txt: Likewise.
5256         * doc/gnu-oids.texi: Likewise
5257         * cfg.mk: Enable sc_trailing_blank.
5258         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5259
5260 2012-01-17  Jim Meyering  <meyering@redhat.com>
5261
5262         maint: enable sc_prohibit_openat_without_use
5263         * cfg.mk: Enable sc_prohibit_openat_without_use.
5264         Exempt lib/selinux-at.c.
5265
5266 2012-01-17  Jim Meyering  <meyering@redhat.com>
5267
5268         maint: enable sc_prohibit_cloexec_without_use
5269         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5270         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5271
5272 2012-01-17  Jim Meyering  <meyering@redhat.com>
5273
5274         maint: enable sc_prohibit_intprops_without_use
5275         * cfg.mk: Enable sc_prohibit_intprops_without_use
5276         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5277
5278 2012-01-17  Jim Meyering  <meyering@redhat.com>
5279
5280         maint: enable sc_prohibit_hash_pjw_without_use
5281         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5282         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5283         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5284         following " (".
5285
5286 2012-01-17  Jim Meyering  <meyering@redhat.com>
5287
5288         maint: enable double-word-prohibiting rule
5289         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5290         Exempt three files.
5291
5292 2012-01-17  Jim Meyering  <meyering@redhat.com>
5293
5294         maint: remove empty lines at EOF, but excluding modules/*
5295         Apply syntax rules at home as well as abroad.  Most changes
5296         were induced by running this:
5297           make srcdir=. _build-aux=build-aux -f top/maint.mk \
5298             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
5299             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
5300         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5301         Exempt modules/* and two binary files.
5302         Also exempt doc/INSTALL*, per request from Bruno Haible.
5303         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5304         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5305         * doc/Copyright/request-assign.future: Likewise.
5306         * doc/Copyright/request-disclaim.changes: Likewise.
5307         * doc/INSTALL: Likewise.
5308         * doc/INSTALL.ISO: Likewise.
5309         * doc/INSTALL.UTF-8: Likewise.
5310         * doc/acl-cygwin.txt: Likewise.
5311         * doc/acl-resources.txt: Likewise.
5312         * doc/fdl-1.2.texi: Likewise.
5313         * doc/fdl-1.3.texi: Likewise.
5314         * doc/fdl.texi: Likewise.
5315         * lib/argp-pin.c: Likewise.
5316         * lib/round.c: Likewise.
5317         * lib/unicase/u16-totitle.c: Likewise.
5318         * lib/unictype/block_test.c: Likewise.
5319         * lib/uninorm/canonical-decomposition.c: Likewise.
5320         * m4/README: Likewise.
5321         * m4/relocatable-lib.m4: Likewise.
5322         * tests/test-isnand-nolibm.c: Likewise.
5323         * tests/test-isnand.c: Likewise.
5324         * tests/uninorm/NormalizationTest.txt: Likewise.
5325
5326 2012-01-17  Jim Meyering  <meyering@redhat.com>
5327
5328         maint: add framework to run syntax-check rules against gnulib sources
5329         * cfg.mk: New file, to disable all currently-failing tests.
5330         We'll enable them one by one, as they are made to pass.
5331         * Makefile (sc_maint): New rule.
5332
5333 2012-01-21  Bruno Haible  <bruno@clisp.org>
5334
5335         stdint: Add support for Android.
5336         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5337         include the system's <stdint.h>.
5338         Reported by Simon Josefsson <simon@josefsson.org>.
5339
5340 2012-01-19  Jim Meyering  <meyering@redhat.com>
5341
5342         bootstrap: add bootstrap_post_import_hook
5343         Bison does still need something like the gnulib_mk_hook whose
5344         invocation I had to remove along with slurp in commit 767ccd40.
5345         Technically, we could get along without it, but doing so would
5346         have required living with a warning and a mandatory post-bootstrap
5347         automake rerun.
5348         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5349         (bootstrap_post_import_hook): New function.
5350         Invoke it after gnulib-tool --import and before autoreconf.
5351
5352 2012-01-18  Jim Meyering  <meyering@redhat.com>
5353
5354         gitlog-to-changelog: don't use "no_"-prefixed variable name
5355         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5356         to enable both --cluster and --no-cluster.  Change variable name,
5357         s/\$no_cluster/$cluster/, and reverse usage to match.
5358
5359         gitlog-to-changelog: use "||", not "or" in expressions
5360         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5361         expressions.
5362
5363 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
5364
5365         gitlog-to-changelog: new option --no-cluster
5366         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
5367         clustering of adjacent commit messages.
5368
5369 2012-01-17  Jim Meyering  <meyering@redhat.com>
5370
5371         maint: spell file systems with two words, not one
5372         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5373         two words, not one.
5374
5375 2012-01-16  Jim Meyering  <meyering@redhat.com>
5376
5377         bootstrap: add a FIXME comment to ensure we eventually remove the hack
5378         * build-aux/bootstrap (gnulib_tool_options): Add comment.
5379
5380 2012-01-16  Eric Blake  <eblake@redhat.com>
5381
5382         bootstrap: cater to autoconf 2.59
5383         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
5384         is not available.
5385
5386         bootstrap: properly check for libtool
5387         * build-aux/bootstrap (libtoolize): Also run libtool when older
5388         usage is detected.
5389
5390 2012-01-15  Bruno Haible  <bruno@clisp.org>
5391
5392         Improve support for MSVC 9.
5393         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
5394         clashes on MSVC.
5395         * lib/fcntl.in.h: Likewise.
5396         * lib/stdlib.in.h: Likewise.
5397         * lib/sys_stat.in.h: Likewise.
5398
5399 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
5400
5401         gnupload: we hold the master copy of this script now
5402         For motivation and more information, see:
5403         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
5404         * build-aux/gnupload: Make it clear in the heading comments that the
5405         master copy of this file is maintained by gnulib.  Since we are at
5406         it, bump its copyright year and ...
5407         ($scriptversion): ... the date in its version.
5408         ($usage): Patches and bug reports should be sent to the gnulib list,
5409         not the automake one.
5410         * config/srclist.txt: Don't try to sync 'gnupload' from automake
5411         anymore.
5412
5413 2012-01-15  Bruno Haible  <bruno@clisp.org>
5414
5415         Fix module 'random'.
5416         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
5417         initstate, setstate are declared.
5418
5419 2012-01-14  Bruno Haible  <bruno@clisp.org>
5420
5421         Tests for module 'random'.
5422         * modules/random-tests: New file.
5423         * tests/test-random.c: New file, based on tests/test-random_r.c.
5424
5425         New module 'random'.
5426         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5427         declarations.
5428         * lib/random.c: New file, based on glibc/stdlib/random.c.
5429         * m4/random.m4: New file.
5430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5431         HAVE_RANDOM.
5432         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5433         * modules/random: New file.
5434         * config/srclist.txt: Add an entry for random.c.
5435         * doc/posix-functions/random.texi: Mention the 'random' module.
5436         * doc/posix-functions/initstate.texi: Likewise.
5437         * doc/posix-functions/setstate.texi: Likewise.
5438         * doc/posix-functions/srandom.texi: Likewise.
5439
5440 2012-01-12  Bruno Haible  <bruno@clisp.org>
5441
5442         random_r: Use common idioms.
5443         * lib/random_r.c: Include <stdlib.h> first.
5444
5445         random_r: Override incompatible API on AIX, OSF/1.
5446         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5447         Override the system function if REPLACE_RANDOM_R is 1.
5448         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
5449         and OSF/1, set REPLACE_RANDOM_R.
5450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
5451         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
5452         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
5453         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
5454         * doc/glibc-functions/random_r.texi: Likewise.
5455         * doc/glibc-functions/setstate_r.texi: Likewise.
5456
5457         random_r: Support for MSVC 9.
5458         * lib/random_r.c: Include stdint.h, not inttypes.h.
5459
5460 2012-01-12  Eric Blake  <eblake@redhat.com>
5461
5462         inet_ntop: guard extra work by IF_LINT
5463         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5464         better code generation when not checking for warnings.
5465         Suggested by Paul Eggert and Jim Meyering.
5466
5467         strptime: fix regression on mingw
5468         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5469         Fix regression.  Reported by Bruno Haible.
5470
5471 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
5472             Bruno Haible  <bruno@clisp.org>
5473
5474         copy-file: add error-code-returning variant.
5475         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
5476         (qcopy_file_preserving): New declaration.
5477         * lib/copy-file.c (qcopy_file_preserving): Renamed from
5478         copy_file_preserving. Change return type to 'int'. Don't emit an error
5479         message here.
5480         (copy_file_preserving): New function.
5481         * tests/test-copy-file.c: Include <stdlib.h>.
5482         (main): Test qcopy_file_preserving if the environment variable
5483         NO_STDERR_OUTPUT is set.
5484         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
5485         with NO_STDERR_OUTPUT
5486         * tests/test-copy-file-2.sh: Likewise.
5487
5488 2012-01-10  Bruno Haible  <bruno@clisp.org>
5489
5490         copy-file: Use 'quote' module consistently.
5491         * lib/copy-file.c (copy_file_preserving): Use quote().
5492
5493         copy-file: Refactor.
5494         * lib/copy-file.c: Include quote.h.
5495         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
5496         message here.
5497         * modules/copy-file (Depends-on): Add quote.
5498
5499         acl: Export qcopy_acl.
5500         * lib/acl.h (qcopy_acl): New declaration.
5501         * lib/copy-acl.c (qcopy_acl): Make non-static.
5502
5503         acl: Rename a local variable.
5504         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
5505
5506         acl: Align return values of copy_acl and qcopy_acl.
5507         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
5508         maybe < -1.
5509
5510 2012-01-11  Eric Blake  <eblake@redhat.com>
5511
5512         strptime: silence gcc warnings
5513         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
5514         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
5515         Reported by Daniel P. Berrange.
5516
5517         inet_ntop: silence gcc warning
5518         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5519         Reported by Daniel P. Berrange.
5520
5521 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5522
5523         getloadavg test: skip the test on GNU/Linux without /proc mounted
5524         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5525         file.  When /proc is not mounted, it always fails with ENOENT.
5526         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5527         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5528
5529 2012-01-10  Bruno Haible  <bruno@clisp.org>
5530
5531         regex: Avoid link error on MSVC 9.
5532         * modules/regex (Depends-on): Add wctype.
5533
5534 2012-01-10  Bruno Haible  <bruno@clisp.org>
5535
5536         doc: Mention --with-tests option.
5537         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5538         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5539         --with-tests.
5540         Reported by Reuben Thomas.
5541
5542 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5543
5544         users.txt: order package names lexicographically.
5545         * users.txt: Order package names lexicographically.
5546
5547 2012-01-10  Jim Meyering  <meyering@redhat.com>
5548
5549         maint.mk: fix description in comment
5550         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5551
5552         ignore-value: remove deprecated ignore_ptr function
5553         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5554         * NEWS: Note this.
5555
5556 2012-01-09  Jim Meyering  <meyering@redhat.com>
5557
5558         test-init.sh: avoid a subshell
5559         * tests/test-init.sh: Remove protective subshell.
5560         Suggested by Bernhard Voelker.  While a subshell is normally
5561         required to protect against older shells (Solaris, FreeBSD) that
5562         warn about a missing program before performing redirection, the
5563         shell-selection tests performed by init.sh probably exclude any
5564         offending shell.
5565
5566 2012-01-08  Bruno Haible  <bruno@clisp.org>
5567
5568         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5569         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5570         variable.
5571
5572 2012-01-08  Bruno Haible  <bruno@clisp.org>
5573
5574         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5575         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5576         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5577         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5578         macro.
5579         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5580         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5581         * lib/spawn_faction_addopen.c: Add workaround implementation if
5582         HAVE_WORKING_POSIX_SPAWN.
5583         * modules/spawn (Makefile): Substitute
5584         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5585         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5586         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5587         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5588         (Depends-on): Update conditions.
5589         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5590         the Solaris 11 bug.
5591
5592 2012-01-08  Bruno Haible  <bruno@clisp.org>
5593
5594         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5595         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5596         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5597         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5598         macro.
5599         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5600         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5601         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5602         HAVE_WORKING_POSIX_SPAWN.
5603         * modules/spawn (Makefile): Substitute
5604         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5605         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5606         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5607         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5608         (Depends-on): Update conditions.
5609         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5610         the Solaris 11 bug.
5611
5612 2012-01-08  Bruno Haible  <bruno@clisp.org>
5613
5614         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5615         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5616         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5617         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5618         HAVE_WORKING_POSIX_SPAWN.
5619         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5620         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5621         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5622         * lib/spawn_faction_addclose.c: Add workaround implementation if
5623         HAVE_WORKING_POSIX_SPAWN.
5624         * modules/spawn (Makefile): Substitute
5625         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5626         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5627         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5628         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5629         (Depends-on): Update conditions.
5630         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5631         the Solaris 11 bug.
5632
5633 2012-01-08  Bruno Haible  <bruno@clisp.org>
5634
5635         doc: Update for Solaris 11 2011-11.
5636         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5637         * m4/printf.m4: Update comments.
5638
5639 2012-01-08  Bruno Haible  <bruno@clisp.org>
5640
5641         mktime: Avoid compilation error on Solaris 11.
5642         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5643
5644 2012-01-08  Bruno Haible  <bruno@clisp.org>
5645
5646         doc: Small fix.
5647         * doc/posix-headers/nl_types.texi: Correct platforms list.
5648
5649 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5650
5651         Add lgpl-3.0 module.
5652         * MODULES.html.sh (Support for building documentation): Add
5653         lgpl-3.0.
5654         * modules/lgpl-3.0: New file.
5655
5656 2012-01-08  Jim Meyering  <meyering@redhat.com>
5657
5658         select.c: indent with spaces, not TABs
5659         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5660
5661 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5662
5663         quotearg: do not use grave accent for left quote
5664         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5665         locale_quoting_style.
5666         (quotearg_buffer_restyled): Fix example.
5667         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5668
5669 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5670
5671         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5672         Most programs do not have translation catalogs for English and much
5673         less separate catalogs for British and American English.  Drop the
5674         suggestion to translators about these two, and provide it
5675         automatically for Unicode locales.  Like most programs, even those
5676         using American English, we use single quotation marks.  This conflicts
5677         with the American typographic convention, but works better when you
5678         cite the entire error message within double quotes.  It also tries not
5679         to clash with established practice and with what non-gnulib programs
5680         will usually do.
5681         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5682         using an UTF-8 or GB-18030 locale.  The list of other locales with
5683         quotes was provided by Bruno Haible.
5684         (quotearg_buffer_restyled): Adjust instructions to translators.
5685         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5686         text, since this would be wrong when using Unicode.
5687         * modules/quotearg: Depend on c-strcaseeq.
5688
5689 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5690
5691         quotearg: fix Wikipedia link
5692         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5693
5694 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5695
5696         Fix for mingw with MSVC9.
5697         * m4/ld-version-script.m4: Check that compiler rejects version
5698         scripts with syntax errors.  Reported by Bruno Haible
5699         <bruno@clisp.org>.
5700
5701 2012-01-06  Bruno Haible  <bruno@clisp.org>
5702
5703         Talk about "native Windows API", not "Woe32".
5704         * lib/accept4.c: Update comments to mention native Windows.
5705         * lib/execute.c: Likewise.
5706         * lib/fatal-signal.c: Likewise.
5707         * lib/localcharset.c: Likewise.
5708         * lib/nanosleep.c: Likewise.
5709         * lib/nl_langinfo.c: Likewise.
5710         * lib/pclose.c: Likewise.
5711         * lib/pipe-filter-gi.c: Likewise.
5712         * lib/pipe-filter-ii.c: Likewise.
5713         * lib/pipe.c: Likewise.
5714         * lib/pipe2.c: Likewise.
5715         * lib/popen.c: Likewise.
5716         * lib/progreloc.c: Likewise.
5717         * lib/relocatable.c: Likewise.
5718         * lib/sigaction.c: Likewise.
5719         * lib/sigprocmask.c: Likewise.
5720         * lib/spawn-pipe.h: Likewise.
5721         * lib/spawn-pipe.c: Likewise.
5722         * lib/spawni.c: Likewise.
5723         * lib/stat-time.h: Likewise.
5724         * lib/w32spawn.h: Likewise.
5725         * tests/test-isatty.c: Likewise.
5726         * lib/config.charset: More comments.
5727         * doc/gnulib-intro.texi: Mention native Windows.
5728         * doc/posix-functions/_Exit_C99.texi: Likewise.
5729         * doc/posix-headers/fcntl.texi: Likewise.
5730
5731 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5732
5733         argp: Avoid crash if translator uses % characters in a translation.
5734         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5735         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5736
5737 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5738
5739         doc: C11 and C++11 are now official
5740         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5741         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5742         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5743         * modules/stdalign:
5744         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5745
5746 2012-01-06  Bruno Haible  <bruno@clisp.org>
5747
5748         uc-is-grapheme-break tests: Tweak.
5749         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5750         message.
5751
5752 2012-01-06  Bruno Haible  <bruno@clisp.org>
5753
5754         test-init.sh: correct the test for diff -u
5755         * tests/test-init.sh: Also redirect stdout to /dev/null.
5756
5757 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5758
5759         Use ', not `, for quoting output.
5760         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5761         (print_changelog_deltas, get_tool_versions, main program):
5762         * build-aux/git-version-gen:
5763         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5764         * build-aux/move-if-change (help):
5765         * build-aux/useless-if-before-free (usage, main program):
5766         * check-module (parse_module_file, usage)
5767         (find_included_lib_files, check_module):
5768         * lib/argmatch.c (main) [TEST]:
5769         * lib/argp-help.c (_help):
5770         * lib/getopt1.c (main) [TEST]:
5771         * lib/git-merge-changelog.c (usage):
5772         * lib/xstrtol-error.c (xstrtol_error):
5773         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5774         * m4/argz.m4 (gl_FUNC_ARGZ):
5775         * m4/bison.m4 (gl_BISON):
5776         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5777         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5778         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5779         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5780         * m4/gc-random.m4 (gl_GC_RANDOM):
5781         * m4/intl.m4 (gt_CHECK_DECL):
5782         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5783         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5784         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5785         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5786         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5787         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5788         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5789         * tests/test-dirname.c (main):
5790         * tests/test-getpass.c (main):
5791         * tests/test-iconvme.c (main):
5792         * tests/test-parse-datetime.c (LOG):
5793         * tests/test-xstrtoimax.sh:
5794         * tests/test-xstrtol.sh:
5795         * tests/test-xstrtoll.sh:
5796         * tests/test-xstrtoumax.sh:
5797         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5798         * top/GNUmakefile (abort-due-to-no-makefile):
5799         Quote 'like this', not `like this', as per the recent change to
5800         the GNU coding standards.
5801
5802 2012-01-05  Bruno Haible  <bruno@clisp.org>
5803
5804         strtoimax: Don't force a replacement on systems where intmax_t is int.
5805         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5806         'intmax_t' is not larger than 'int'.
5807         Reported by Pádraig Brady <P@draigBrady.com>.
5808
5809 2012-01-05  Bruno Haible  <bruno@clisp.org>
5810
5811         doc: Mention NetBSD bugs.
5812         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5813         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5814
5815 2012-01-05  Bruno Haible  <bruno@clisp.org>
5816
5817         strtoumax tests: Enhance tests.
5818         * tests/test-strtoumax.c (main): Add tests for large values.
5819
5820 2012-01-05  Bruno Haible  <bruno@clisp.org>
5821
5822         strtoimax: Work around AIX 5.1 bug.
5823         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5824         definition.
5825         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5826         Set HAVE_STRTOIMAX.
5827         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5828         REPLACE_STRTOIMAX.
5829         * modules/inttypes-incomplete (Makefile.am): Substitute
5830         REPLACE_STRTOIMAX.
5831         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5832         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5833         (Depends-on): Update conditions.
5834         * tests/test-strtoimax.c (main): Add tests for large values.
5835         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5836
5837 2012-01-05  Bruno Haible  <bruno@clisp.org>
5838
5839         inttypes: Modernize.
5840         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5841         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5842         (Makefile.am): Update inttypes.h rule.
5843
5844 2012-01-05  Jim Meyering  <meyering@redhat.com>
5845
5846         init.sh: don't waste a subshell just to redirect stderr
5847         * tests/init.sh: In testing for diff -u and diff -c, use a
5848         stderr-redirecting exec inside `...` rather than a subshell.
5849
5850         test-init.sh: avoid failure on HP-UX 11.00
5851         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5852         resolves to diff -c or cmp.  Reported by Bruno Haible.
5853
5854 2012-01-05  Bruno Haible  <bruno@clisp.org>
5855
5856         Tests for module 'strtoull'.
5857         * modules/strtoull-tests: New file.
5858         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5859
5860 2012-01-05  Bruno Haible  <bruno@clisp.org>
5861
5862         Tests for module 'strtoll'.
5863         * modules/strtoll-tests: New file.
5864         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5865
5866 2012-01-05  Bruno Haible  <bruno@clisp.org>
5867
5868         Tests for module 'strtoul'.
5869         * modules/strtoul-tests: New file.
5870         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5871
5872 2012-01-05  Bruno Haible  <bruno@clisp.org>
5873
5874         Tests for module 'strtol'.
5875         * modules/strtol-tests: New file.
5876         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5877
5878 2012-01-04  Jim Meyering  <meyering@redhat.com>
5879
5880         test-init.sh: accommodate Solaris 5.10's different diff -u output
5881         * tests/test-init.sh: Also exempt @@ lines from the comparison
5882         of diff output, since Solaris 5.10 and GNU diff formats differ.
5883         Reported by Stefano Lattarini.
5884
5885 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5886
5887         test-posixtm: don't assume signed integer wraparound
5888         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5889         after signed integer overflow.  Inspired by (though it may not
5890         fix) Bruno Haible's bug report in
5891         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5892
5893         Spell out "Windows 9x" and "Windows XP".
5894         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5895         "Windows 9x" and "WinXP" with "Windows XP".
5896
5897 2012-01-04  Jim Meyering  <meyering@redhat.com>
5898
5899         test-vc-list-files-cvs.sh: remove obsolete comment
5900         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5901         double exit.  Now that's all encapsulated via skip_ and Exit.
5902
5903 2012-01-04  Bruno Haible  <bruno@clisp.org>
5904
5905         Talk about "native Windows API", not "Win32".
5906         * lib/classpath.c: Update comments to mention native Windows.
5907         * lib/csharpexec.c: Likewise.
5908         * lib/dup2.c: Likewise.
5909         * lib/error.c: Likewise.
5910         * lib/fcntl.c: Likewise.
5911         * lib/filename.h: Likewise.
5912         * lib/findprog.c: Likewise.
5913         * lib/get-rusage-as.c: Likewise.
5914         * lib/get-rusage-data.c: Likewise.
5915         * lib/getpagesize.c: Likewise.
5916         * lib/javaexec.c: Likewise.
5917         * lib/msvc-inval.c: Likewise.
5918         * lib/msvc-nothrow.c: Likewise.
5919         * lib/nanosleep.c: Likewise.
5920         * lib/nonblocking.c: Likewise.
5921         * lib/printf-parse.c: Likewise.
5922         * lib/setlocale.c: Likewise.
5923         * lib/sigaction.c: Likewise.
5924         * lib/strerror_r.c: Likewise.
5925         * lib/tmpdir.c: Likewise.
5926         * lib/vasnprintf.c: Likewise.
5927         * lib/w32spawn.h: Likewise.
5928         * lib/waitpid.c: Likewise.
5929         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5930         * m4/locale-ar.m4: Likewise.
5931         * m4/locale-fr.m4: Likewise.
5932         * m4/locale-ja.m4: Likewise.
5933         * m4/locale-tr.m4: Likewise.
5934         * m4/locale-zh.m4: Likewise.
5935         * m4/printf.m4: Likewise.
5936         * tests/test-cloexec.c: Likewise.
5937         * tests/test-copy-acl.sh: Likewise.
5938         * tests/test-copy-file.sh: Likewise.
5939         * tests/test-file-has-acl.sh: Likewise.
5940         * tests/test-set-mode-acl.sh: Likewise.
5941         * tests/test-dup-safer.c: Likewise.
5942         * tests/test-dup2.c: Likewise.
5943         * tests/test-dup3.c: Likewise.
5944         * tests/test-fcntl.c: Likewise.
5945         * tests/test-nonblocking-pipe.h: Likewise.
5946         * tests/test-nonblocking-socket.h: Likewise.
5947         * tests/test-pipe.c: Likewise.
5948         * tests/test-pipe2.c: Likewise.
5949         * tests/test-spawn-pipe-child.c: Likewise.
5950         * doc/acl-resources.txt: Likewise.
5951         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5952         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5953         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5954         * lib/localcharset.c: Update comments to mention native Windows.
5955         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5956         * lib/localename.c: Likewise.
5957         * lib/progreloc.c: Likewise.
5958         * lib/relocatable.c: Likewise.
5959         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5960         (windows_compute_revents): Renamed from win32_compute_revents.
5961         (windows_compute_revents_socket): Renamed from
5962         win32_compute_revents_socket.
5963         * lib/select.c: Update comments to mention native Windows.
5964         (windows_poll_handle): Renamed from win32_poll_handle.
5965         * m4/threadlib.m4: Update comments to mention native Windows.
5966         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5967         --enable-threads=windows instead of --enable-threads=win32. Set
5968         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5969         * lib/glthread/lock.h: Update comments to mention native Windows.
5970         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5971         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5972         USE_WIN32_THREADS.
5973         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5974         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5975         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5976         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5977         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5978         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5979         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5980         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5981         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5982         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5983         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5984         * tests/test-tls.c: Likewise.
5985         Rationale:
5986         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5987         on both 32-bit and 64-bit Windows systems.
5988         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5989         line of distinction is between "native Windows" on one side and Unix/
5990         POSIX systems on the other side. More details in
5991         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5992         Suggested by Paul Eggert.
5993
5994 2012-01-03  Bruno Haible  <bruno@clisp.org>
5995
5996         isatty: Support for MSVC 9.
5997         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5998         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5999         (_isatty_nothrow): New function.
6000         (isatty): Use it instead of _isatty.
6001         (IsConsoleHandle): Add comment, from Paolo Bonzini.
6002         * lib/poll.c (IsConsoleHandle): Likewise.
6003         * lib/select.c (IsConsoleHandle): Likewise.
6004         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
6005         (gl_PREREQ_ISATTY): New macro.
6006         * modules/isatty (Depends-on): Add msvc-inval.
6007         (configure.ac): Invoke gl_PREREQ_ISATTY.
6008
6009 2012-01-03  Jim Meyering  <meyering@redhat.com>
6010
6011         maint.mk: remove temporary transition aid from over 1.5 years ago
6012         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
6013         purpose was to aid in the transition (avoiding silent malfunction)
6014         from that old name to the new _sc_search_regexp.  This shim was
6015         added by commit 219c504b.
6016
6017         init.sh: do not try to accommodate compare arguments starting with "-"
6018         * tests/init.sh (compare_dev_null_): Do not try to accommodate
6019         compare arguments that start with "-".  Besides, we do not worry
6020         about this when invoking diff or cmp; why start now with sed?
6021         Using "--" to separate options from argument would trigger sed
6022         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
6023         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
6024
6025 2012-01-02  Bruno Haible  <bruno@clisp.org>
6026
6027         Enhance tests for module 'isatty'.
6028         * modules/isatty-tests (Depends-on): Add pipe-posix.
6029         * tests/test-isatty.c: Include <fcntl.h>.
6030         (DEV_NULL): New macro.
6031         (main): Test the resut of isatty() also on regular files, pipes, and
6032         /dev/null.
6033
6034         New module 'isatty'.
6035         * lib/unistd.in.h (isatty): New declaration.
6036         * lib/isatty.c: New file, based on an idea of
6037         Bastien Roucariès <roucaries.bastien@gmail.com>.
6038         * m4/isatty.m4: New file.
6039         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6040         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6041         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6042         REPLACE_ISATTY.
6043         * modules/isatty: New file.
6044         * doc/posix-functions/isatty.texi: Mention the new module.
6045         Suggested by Paolo Bonzini.
6046
6047 2012-01-02  Bruno Haible  <bruno@clisp.org>
6048
6049         canonicalize: Tweak 2011-12-29 commit.
6050         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6051         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6052
6053 2012-01-02  Jim Meyering  <meyering@redhat.com>
6054
6055         gitlog-to-changelog: describe input syntax in --help output
6056         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6057
6058         gitlog-to-changelog: fix typo in --help: show backslash before email @
6059         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6060         in sources, but not in actual output.
6061
6062 2011-12-30  Jim Meyering  <meyering@redhat.com>
6063
6064         gitlog-to-changelog: don't malfunction when name contains %-directive
6065         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6066         in a name string cause trouble.  E.g., with a user name of "%s",
6067         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6068
6069 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6070
6071         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6072         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6073         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6074         the "  (tiny change)" notation that is appended to the standard
6075         ChangeLog "date  name  email" header line.
6076
6077 2012-01-01  Jim Meyering  <meyering@redhat.com>
6078
6079         test-framework-sh: init.sh: fix "make dist" failure
6080         When using gnulib-tool's --with-tests option and any module that
6081         depends on test-framework-sh, "make dist" would fail due to the
6082         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6083         in the gltests directory, and not in the gllib/ directory.
6084         One way to work around that is to move the EXTRA_DIST += init.sh
6085         from the primary module to the -tests one:
6086         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6087         * modules/test-framework-sh (Makefile.am): ...not here.
6088         Reported by Tom G. Christensen in
6089         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6090
6091         version-etc: update copyright year reported by --version
6092         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6093
6094 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6095
6096         canonicalize: only stat() if required
6097         * lib/canonicalize.c (canonicalize_filename_mode):
6098         Avoid calling l?stat() when both CAN_MISSING,
6099         and CAN_NOLINKS are set, as we neither need
6100         to resolve symlinks or test component existence.
6101
6102 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6103
6104         doc: cover st_ino issues once; add OpenVMS etc.
6105         * doc/posix-functions/stat.texi (stat):
6106         * doc/posix-functions/lstat.texi (lstat):
6107         * doc/posix-functions/fstatat.texi (fstatat):
6108         * doc/posix-functions/fstat.texi (fstat):
6109         Move general 'struct stat' stuff to sys_stat.texi,
6110         leaving behind a pointer.
6111         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6112         Merge duplicate info about 'struct stat' problems into here.
6113         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6114         and suggest partial workarounds.
6115
6116         same-inode: port to OpenVMS
6117         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6118         three st_ino values.
6119
6120 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6121
6122         canonicalize: fix references to stat() and lstat()
6123         * lib/canonicalize.c (canonicalize_filename_mode):
6124         Ensure references always resolve to a replacement
6125         function if required (even via a macro).
6126
6127 2011-12-30  Jim Meyering  <meyering@redhat.com>
6128
6129         gitlog-to-changelog: remove a little duplication
6130         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6131         rather than twice.
6132
6133 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6134
6135         canonicalize: add support for not resolving symlinks
6136         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6137         indicate we don't want to follow symlinks.  Also
6138         provide CAN_MODE_MASK to aid setting these existing
6139         mutually exclusive values.
6140         * lib/canonicalize.c (canonicalize_filename_mode):
6141         Extract the flags from can_mode parameter, which
6142         are currently just used to select between stat()
6143         and lstat().  Also ensure that mutually exclusive
6144         values are flagged immediately as invalid.
6145         * tests/test-canonicalize.c: Verify symlinks are
6146         not followed, and that invalid flag combinations
6147         are diagnosed.
6148
6149 2011-12-25  Jim Meyering  <meyering@redhat.com>
6150
6151         gitlog-to-changelog: do not clump multi-paragraph entries
6152         Identical header lines (date,name,email+coauthors) are suppressed,
6153         thus putting all entries with those same characteristics under
6154         a single header.  However, when a log entry consists of two or
6155         more paragraphs, it may not be clear where it starts and ends.
6156         This change makes it so that such an entry is always separated
6157         from others by a header line, even when that header would
6158         otherwise be suppressed.
6159         * build-aux/gitlog-to-changelog: Implement the above.
6160         Inspired by a related request from Stefano Lattarini in
6161         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6162
6163 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6164
6165         announce-gen: fix `cmd' typo in diagnostic
6166         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6167         diagnostic: a missing '$' meant that the command was not output.
6168
6169 2011-12-23  Jim Meyering  <meyering@redhat.com>
6170
6171         test-framework-sh: distribute init.sh
6172         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6173         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6174         fail due to the lack of init.sh.
6175
6176         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6177         * modules/atexit-tests: Rather than listing tests/init.sh,
6178         now that there's a module for it, simply depend on that new module.
6179         * modules/closein-tests: Likewise.
6180         * modules/exclude-tests: Likewise.
6181         * modules/getcwd-tests: Likewise.
6182         * modules/perror-tests: Likewise.
6183         * modules/pread-tests: Likewise.
6184         * modules/pwrite-tests: Likewise.
6185         * modules/vc-list-files-tests: Likewise.
6186         * modules/verify-tests: Likewise.
6187         * modules/xalloc-die-tests: Likewise.
6188         * modules/xstrtoimax-tests: Likewise.
6189         * modules/xstrtol-tests: Likewise.
6190         * modules/xstrtoll-tests: Likewise.
6191         * modules/xstrtoumax-tests: Likewise.
6192         * modules/yesno-tests: Likewise.
6193
6194 2011-12-22  Jim Meyering  <meyering@redhat.com>
6195
6196         test-framework-sh: add minimal tests of init.sh's compare function
6197         * modules/test-framework-sh-tests: New file.
6198         * tests/test-init.sh: New file.
6199
6200         test-framework-sh: new module
6201         * modules/test-framework-sh: New file.
6202         * MODULES.html.sh (Support for maintaining and releasing projects):
6203         List it.
6204
6205         init.sh: do not emit simulated diff output to stderr
6206         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6207
6208 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6209
6210         .gitignore: ignore gnulib.dvi and regex.info
6211         * doc/.gitignore:add gnulib.dvi and regex.info
6212
6213 2011-12-22  Jim Meyering  <meyering@redhat.com>
6214
6215         init.sh: correct previous change
6216         * tests/init.sh (compare): My previous change was wrong.
6217         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6218
6219         init.sh: avoid unwarranted test failure when using "set -e"
6220         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6221         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6222         a use like "compare exp out" would get evoke an unconditional failure.
6223
6224 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6225
6226         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6227         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6228         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6229         autoreconf that did not.
6230         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6231         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6232
6233 2011-12-17  Jim Meyering  <meyering@redhat.com>
6234
6235         bootstrap: remove some now-unneeded code
6236         This script arose back when gnulib-tool was young.
6237         Since then, it has seen improvements that render much of this
6238         script unnecessary.  In particular, it can now make symlinks
6239         to the files it uses.  Also, I no longer see as much value in
6240         marking files as read-only via comments.
6241         If you relied on the symlink-creation feature of the preceding
6242         version of this script, you can get most of that functionality
6243         by adding the --symlink option to the definition of
6244         gnulib_tool_option_extras in your bootstrap.conf file.
6245         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6246         Run autopoint and libtoolize *before* gnulib-tool.
6247         After it, run an abbreviated autoreconf, rather than a loop around
6248         all tools.
6249         (slirp, bt_mark_as_generated): Remove functions.
6250
6251 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6252
6253         ftoastr: fix typo
6254         * lib/ftoastr.h: Fix misspelling in comment.
6255
6256 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6257
6258         * top/README-release: fix punctuation.
6259
6260 2011-12-17  Jim Meyering  <meyering@redhat.com>
6261
6262         bootstrap: correct the recent buildreq change
6263         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6264         had no effect.
6265         * build-aux/bootstrap (buildreq): Bracket each search term with
6266         "*...*", so that the shell "case" statement works as intended.
6267         Add comments.
6268
6269 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6270
6271         build: let bootstrap resort to wget when downloading .po files
6272         * build-aux/bootstrap (download_po_files): Fallback to wget when
6273         downloading the .po files via rsync fails.  This is necessary to
6274         bootstrap from behind a strict firewall.
6275
6276 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6277
6278         stdint: don't assume C++11 when compiling with g++
6279         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6281         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6282         work also in C++ before C++11, as that improperly inhibits
6283         generating a substitute stdint.h for that case.
6284
6285 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6286
6287         alloca: protect comment from gnulib-tool
6288         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6289         that gnulib-tool doesn't think it's a license, and munge it to
6290         say "GCC version 3".
6291
6292 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
6293
6294         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
6295         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
6296         $(abs_top_builddir) instead of $(top_builddir).
6297
6298 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
6299
6300         strftime-tests: also test nanoseconds
6301         * tests/test-strftime.c (T): Add a test of %N.
6302
6303 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6304
6305         inttypes, stdint: add C++11 support
6306         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6307         when including inttypes.h and stdint.h.  Support this change to
6308         the standard.
6309         * doc/posix-headers/inttypes.texi (inttypes.h):
6310         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6311         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6312         Define if not defined already, for the benefit of pre-C++11 hosts.
6313         Define the standard format macros (e.g., PRId8) always.
6314         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6315         Likewise, if __cpluspus.  Define the standard constant and limit
6316         macros (e.g., INT8_C, INT8_MAX) always.
6317         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6318         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6319         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6320         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6321         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6322         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6323         Likewise.
6324
6325 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6326
6327         nonblocking tests: Fix test failure on Linux/PPC.
6328         Suggested by Prerna Saxena in
6329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6330         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6331         Set to 1100000.
6332
6333 2011-12-12  Jim Meyering  <meyering@redhat.com>
6334
6335         argmatch: don't hard-code `' when listing valid option arguments
6336         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6337         use the quote function to add quotes.  Use fputs rather than
6338         fprintf for the format string with no format directive.
6339
6340 2011-12-07  Eric Blake  <eblake@redhat.com>
6341
6342         bootstrap: detect tools required by gnulib-tool
6343         * build-aux/bootstrap (buildreq): Provide minimum implicit
6344         dependencies.
6345         * DEPENDENCIES: Mention patch as a prereq.
6346
6347 2011-12-04  Bruno Haible  <bruno@clisp.org>
6348
6349         sethostname: Port to Windows platforms.
6350         * lib/sethostname.c: Provide an alternate implementation for Windows
6351         platforms.
6352         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6353         (main): Skip the test if sethostname() fails with EPERM. On Windows
6354         platforms, don't check the result of gethostname().
6355
6356 2011-12-04  Bruno Haible  <bruno@clisp.org>
6357             Jim Meyering  <meyering@redhat.com>
6358
6359         tests: Avoid spurious error message on platforms without mktemp program.
6360         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6361
6362 2011-12-04  Bruno Haible  <bruno@clisp.org>
6363
6364         sethostname: Fix documentation.
6365         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
6366         "not fixed" section.
6367
6368 2011-12-03  Bruno Haible  <bruno@clisp.org>
6369
6370         gnulib-tool: Verify that the License field is present and non-empty.
6371         * gnulib-tool (func_get_license_raw): New function, extracted from
6372         func_get_license.
6373         (func_get_license): Use it. Warn if the module is not a test module and
6374         has no license.
6375         Suggested by Jim Meyering.
6376
6377 2011-12-03  Bruno Haible  <bruno@clisp.org>
6378
6379         sethostname tests: Fix link error on mingw.
6380         * tests/test-sethostname1.c: New file, extracted from
6381         tests/test-sethostname.c.
6382         * tests/test-sethostname2.c: New file, extracted from
6383         tests/test-sethostname.c.
6384         * tests/test-sethostname.c: Remove file.
6385         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
6386         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
6387         (Depends-on): Add gethostname.
6388         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
6389         Link the latter with $(GETHOSTNAME_LIB).
6390
6391         sethostname tests: Fix compilation error on mingw.
6392         * tests/test-sethostname.c: Don't include <sys/types.h>.
6393         (geteuid): Use a dummy value without uid_t.
6394         * modules/sethostname-tests (Depends-on): Remove sys_types.
6395
6396         sethostname tests: Avoid a gcc warning.
6397         * tests/test-sethostname.c (main): Remove an unused variable.
6398
6399         Tweak last commit.
6400         * modules/sethostname-tests (Files): Sort by decreasing importance.
6401         (configure.ac): Check for geteuid.
6402         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
6403         the test when there's nothing to test. Drop an unnecessary cast.
6404         Improve an error message. Verify that the final sethostname() call
6405         succeeds.
6406
6407 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6408
6409         Add a test suite for the sethostname module.
6410         * modules/sethostname-tests: New file.  A test program
6411         for the sethostname module.
6412         * tests/test-sethostname.c: Likewise.
6413
6414 2011-12-03  Bruno Haible  <bruno@clisp.org>
6415
6416         Tweak last commit.
6417         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
6418         Fix preprocessor directives indentation. Fix typos.
6419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
6420         * modules/unistd (Makefile): Likewise.
6421
6422 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6423
6424         Integrate the sethostname module into unistd.
6425         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6426         into the unistd.h header.
6427         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6428         preprocessor directives.
6429         * modules/unistd: Setup the Makefile substitutions of the
6430         SETHOSTNAME preprocessor directives.
6431
6432 2011-12-03  Bruno Haible  <bruno@clisp.org>
6433
6434         Tweak last commit.
6435         * lib/sethostname.c: Don't include <string.h>.
6436         (sethostname): No need to copy the argument string to the stack. Don't
6437         call clearerr. Preserve errno when fprintf failed.
6438         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6439         Don't invoke AC_REPLACE_FUNCS.
6440         * modules/sethostname (Link): Remove empty section.
6441         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
6442         failure problem.
6443
6444 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6445
6446         New module 'sethostname'.
6447         * lib/sethostname.c (sethostname): New file.  Provide sethostname
6448         for systems that lack it.
6449         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
6450         sethostname declaration and function.
6451         * modules/sethostname: New file.  Define the sethostname module.
6452
6453 2011-12-03  Bruno Haible  <bruno@clisp.org>
6454
6455         Tweak last commit.
6456         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
6457
6458 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6459
6460         Split the HOST_NAME_MAX detection into a separate m4 macro.
6461         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6462         macro so it can be used by the pending sethostname module.
6463
6464 2011-12-03  Bruno Haible  <bruno@clisp.org>
6465
6466         Fix module descriptions syntax.
6467         * modules/argv-iter (License): Fix syntax.
6468         * modules/di-set (License): Likewise.
6469         * modules/ino-map (License): Likewise.
6470         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6471
6472 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6473
6474         stdalign: port to Clang 3.0
6475         Problem reported by Simon Josefsson in
6476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
6477         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
6478         which has <stdalign.h> but which does not define alignof.
6479         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
6480
6481 2011-12-01  Eric Blake  <eblake@redhat.com>
6482
6483         mktempd: silence dd usage
6484         * build-aux/mktempd (rand_bytes): Silence dd.
6485
6486 2011-11-30  Simon Josefsson  <simon@josefsson.org>
6487
6488         manywarnings: Don't mention gcc version in docstring.
6489         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
6490         Jim Meyering <meyering@redhat.com>.
6491
6492 2011-11-30  Jim Meyering  <meyering@redhat.com>
6493
6494         hash: mark a few floating point constants with "f" suffix
6495         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
6496         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
6497         floating point constants with "f", since they're destined to be
6498         saved/used as "float"s.
6499
6500 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
6501
6502         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
6503         * tests/test-float.c (test_long_double): Correct and re-enable the
6504         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6505
6506 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
6507
6508         Avoid subtracting two pointers that don't point into the same block.
6509         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
6510         only pointers into the same memory block are subtracted. We cannot
6511         assume that sizeof (ptrdiff_t) == sizeof (void *).
6512
6513 2011-11-29  Eric Blake  <eblake@redhat.com>
6514
6515         maint.mk: add syntax check for use of compare from init.sh
6516         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6517         moved here from coreutils.
6518
6519         manywarnings: drop -Wunsuffixed-float-constants
6520         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6521         '1.0D', which is the only way to silence this warning for 'double'.
6522
6523 2011-11-29  Jim Meyering  <meyering@redhat.com>
6524
6525         hash: mark compute_bucket_size with the pure attribute
6526         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6527
6528         quotearg, propername: correct pragma guard expression
6529         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6530         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6531
6532 2011-11-28  Jim Meyering  <meyering@redhat.com>
6533
6534         propername: do not mark proper_name with the const attribute
6535         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6536         since it examines data pointed to by its parameter.
6537         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6538         the suggestion from -Wsuggest-attribute=const.
6539
6540         propername: mark one more function as const
6541         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6542
6543 2011-11-27  Jim Meyering  <meyering@redhat.com>
6544
6545         mark functions with const and pure attributes
6546
6547         Mark functions per suggestions from gcc-4.6 when using these options:
6548         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6549         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6550         Follow these guidelines: when possible, apply the attribute to
6551         an extern declaration, not to its definition.  Apply it to the
6552         definition only when the definition is static.
6553         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6554         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6555         * lib/base64.h (isbase64): Likewise.
6556         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6557         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6558         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6559         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6560         (c_tolower, c_toupper): Likewise.
6561         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6562         * lib/chdir-long.c (find_non_slash): Likewise.
6563         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6564         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6565         * lib/file-type.h (file_type): Likewise.
6566         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6567         * lib/filevercmp.c (verrevcmp): Likewise.
6568         * lib/freadahead.h (freadahead): Likewise.
6569         * lib/fts.c (fts_maxarglen): Likewise.
6570         * lib/hash-pjw.h (hash_pjw): Likewise.
6571         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6572         * lib/hash.c (is_prime, next_prime): Likewise.
6573         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6574         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6575         (hash_table_ok, hash_get_first, hash_string): Likewise.
6576         (compute_bucket_size): Likewise.
6577         * lib/i-ring.h (i_ring_empty): Likewise.
6578         * lib/isnan.c (isnanl): Likewise.
6579         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6580         * lib/memcasecmp.h (memcasecmp): Likewise.
6581         * lib/memchr2.h (memchr2): Likewise.
6582         * lib/memcmp2.h (memcmp2): Likewise.
6583         * lib/parse-datetime.y (lookup_zone): Likewise.
6584         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6585         [!WINDOWS_SOCKETS]: Likewise.
6586         * lib/strnlen1.h (strnlen1): Likewise.
6587         * lib/uniwidth.in.h (uc_width): Likewise.
6588         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6589         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6590         (quoting_options_from_style): Add a comment.
6591         * lib/propername.h (proper_name): Add a comment.
6592
6593 2011-11-27  Bruno Haible  <bruno@clisp.org>
6594
6595         Remove unused macros from !_LIBC code in glibc-borrowed files.
6596         * lib/fnmatch.c (STRCOLL): Remove macro.
6597         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6598         * lib/glob.c (__stat, __readdir64): Remove macros.
6599         * lib/tempname.c (__open64, __xstat64): Remove macros.
6600         Suggested by Paul Eggert.
6601
6602 2011-11-27  Bruno Haible  <bruno@clisp.org>
6603
6604         getcwd: Fix link error on MSVC 9.
6605         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6606
6607 2011-11-27  Bruno Haible  <bruno@clisp.org>
6608
6609         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6610         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6611         HAVE_OPENDIR is 0.
6612         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6613         HAVE_CLOSEDIR is 0.
6614         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6615         is 0.
6616         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6617
6618 2011-11-27  Bruno Haible  <bruno@clisp.org>
6619
6620         getcwd: Fix bug from 2011-08-17.
6621         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6622         platforms that need it.
6623         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6624         code of 4 to be a failure, not a success. This ensures that
6625         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6626
6627 2011-11-27  Bruno Haible  <bruno@clisp.org>
6628
6629         binary-io tests: Avoid test failure on mingw when libtool is used.
6630         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6631         Don't verify the size of t-bin-out1.tmp here.
6632         * tests/test-binary-io.sh: Verify it here.
6633         Reported by Simon Josefsson.
6634
6635 2011-11-26  Bruno Haible  <bruno@clisp.org>
6636
6637         Fix conflict between two instantiations of module 'unistd'.
6638         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6639         ${include_guard_prefix} also in the autoconf snippet.
6640         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6641         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6642         GNULIB_UNISTD_H_GETOPT.
6643         * modules/getopt-posix (configure.ac): Set the
6644         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6645         * modules/getopt-gnu (configure.ac): Likewise.
6646         * modules/unistd (Makefile.am): Change the substitution value of
6647         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6648         Reported by Simon Josefsson.
6649
6650 2011-11-25  Bruno Haible  <bruno@clisp.org>
6651
6652         pagealign_alloc: Doc and comments.
6653         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6654         module.
6655         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6656
6657 2011-11-25  Jim Meyering  <meyering@redhat.com>
6658
6659         test-update-copyright.sh: avoid false-positive failure
6660         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6661         around false positive failure on Cygwin/Windows.  The latter was
6662         matching erroneously-created files with names like
6663         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6664
6665 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6666
6667         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6668         * m4/valgrind-tests.m4: Check that the parameters that will be
6669         used works, not just a subset of them.  Reported by Bruno Haible
6670         <bruno@clisp.org>.
6671
6672 2011-11-24  Jim Meyering  <meyering@redhat.com>
6673
6674         test-stdalign.c: comment out long double tests
6675         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6676         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6677         error: '_Alignas' specifiers cannot reduce alignment of \
6678         'static_longdouble_alignas'.
6679
6680 2011-11-22  Jim Meyering  <meyering@redhat.com>
6681
6682         init.sh: make "compare /dev/null FILE" output more readable
6683         * tests/init.sh (compare_): Document the preferred order of arguments.
6684         (emit_diff_u_header_): New function.
6685         (compare_dev_null_): Emit a simulated diff, rather than just the
6686         contents of the unexpected file.  Suggestion from Bruno Haible.
6687
6688 2011-11-21  Jim Meyering  <meyering@redhat.com>
6689             Eric Blake  <eblake@redhat.com>
6690
6691         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6692         * tests/init.sh: Make our compare function slightly more portable.
6693         Reported by Bruno Haible in
6694         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6695
6696 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6697
6698         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6699         before using it, in code that ends up in config.h.
6700
6701 2011-11-20  Bruno Haible  <bruno@clisp.org>
6702
6703         getcwd: Work around getcwd bug on AIX 5..7.
6704         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6705         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6706         Use a different value for gl_cv_func_getcwd_path_max. Move the
6707         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6708         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6709         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6710         Define HAVE_MINIMALLY_WORKING_GETCWD.
6711         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6712         where it is not even minimally working, that is, on AIX.
6713         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6714         m4/getcwd-path-max.m4.
6715         (main): Update exit code computation.
6716         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6717         getcwd does not handle long file names.
6718
6719 2011-11-20  Bruno Haible  <bruno@clisp.org>
6720
6721         getcwd: Fix bug from 2009-09-10.
6722         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6723         like "no".
6724
6725 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6726
6727         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6728
6729 2011-11-20  Bruno Haible  <bruno@clisp.org>
6730
6731         fma tests: Avoid shadowing local variables.
6732         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6733         expected.
6734
6735 2011-11-20  Bruno Haible  <bruno@clisp.org>
6736
6737         copysignf tests: Fix.
6738         * tests/test-copysignf.c: Fix signature check.
6739
6740 2011-11-20  Bruno Haible  <bruno@clisp.org>
6741
6742         fma: Remove unused code.
6743         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6744         unused macros.
6745
6746 2011-11-20  Bruno Haible  <bruno@clisp.org>
6747
6748         sethostname: Fix doc about AIX.
6749         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6750         sethostname; it has it.
6751
6752         sethostname: Mention more portability problems.
6753         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6754         problem.
6755         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6756
6757 2011-11-19  Bruno Haible  <bruno@clisp.org>
6758
6759         Depend on module fcntl-h when AT_FDCWD is used.
6760         * modules/utimens (Depends-on): Add fcntl-h.
6761         * modules/areadlinkat (Depends-on): Likewise.
6762         * modules/areadlinkat-with-size (Depends-on): Likewise.
6763         * modules/faccessat (Depends-on): Likewise.
6764         * modules/fchmodat (Depends-on): Likewise.
6765         * modules/fchownat (Depends-on): Likewise.
6766         * modules/getcwd (Depends-on): Likewise.
6767         * modules/mkdirat (Depends-on): Likewise.
6768         * modules/mkfifoat (Depends-on): Likewise.
6769         * modules/readlinkat (Depends-on): Likewise.
6770         * modules/symlinkat (Depends-on): Likewise.
6771         * modules/dup2-tests (Depends-on): Likewise.
6772         * modules/fdutimensat-tests (Depends-on): Likewise.
6773         * modules/futimens-tests (Depends-on): Likewise.
6774
6775 2011-11-19  Bruno Haible  <bruno@clisp.org>
6776
6777         euidaccess: Update a comment.
6778         * lib/euidaccess.c: Update comment about platforms with faccessat.
6779
6780 2011-11-19  Bruno Haible  <bruno@clisp.org>
6781
6782         openat: Fix file list.
6783         * modules/openat (Files): Remove lib/at-func.c.
6784
6785 2011-11-19  Bruno Haible  <bruno@clisp.org>
6786
6787         fstatat: Simplify.
6788         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6789         gnulib should define rpl_fstatat, there is a
6790         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6791
6792 2011-11-19  Bruno Haible  <bruno@clisp.org>
6793
6794         Ensure 'inline' can be used in tests/test-utimens-common.h.
6795         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6796         * modules/futimens-tests (configure.ac): Likewise.
6797         * modules/utimens-tests (configure.ac): Likewise.
6798         * modules/utimensat-tests (configure.ac): Likewise.
6799
6800 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6801
6802         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6803         not hash_insert0.
6804         (hash_insert_if_absent): Doc fix.
6805
6806 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6807
6808         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6809
6810 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6811
6812         test-getcwd: disambiguate exit status
6813         * tests/test-getcwd.c (test_long_name): Return 0..7.
6814         (main): Exit with an unambiguous exit status.  The old
6815         code yielded a mysterious mixture of two failure codes.
6816
6817         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6818         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6819         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6820         rpl_fstatat or fstatat.  This should fix the other problem
6821         reported by Kai Habel in
6822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6823         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6825         and I reproduced it on a Solaris 8 host we still have in production.
6826
6827 2011-11-18  Jim Meyering  <meyering@redhat.com>
6828
6829         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6830         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6831         Add a sentence to the comment.
6832         (hash_insert0): New function that simply calls hash_insert_if_absent.
6833         * lib/hash.h (hash_insert_if_absent): Declare it.
6834         (hash_insert0): Add deprecation attribute.
6835         (_GL_ATTRIBUTE_DEPRECATED): Define.
6836         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6837         not hash_insert0.
6838         * NEWS: Mention it, even though it's not really an incompatible change.
6839
6840 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6841
6842         openat: avoid compilation failure due to lack of <errno.h> inclusion
6843         * lib/openat.c: Include <errno.h>.
6844
6845 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6846
6847         * modules/getcwd (Depends-on): Add fdopendir.
6848         This fixes one of the two problems reported by Kai Habel in
6849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6850
6851         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6852         stdalign problem reported by Ian Beckwith in
6853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6854         * modules/crypto/gc-arcfour (Depends-on):
6855         Depend conditionally on crypto/arcfour.
6856         * modules/crypto/gc-arctwo (Depends-on):
6857         Depend conditionally on crypto/arctwo.
6858         * modules/crypto/gc-des (Depends-on):
6859         Depend conditionally on crypto/des.
6860         * modules/crypto/gc-hmac-md5 (Depends-on):
6861         Depend conditionally on crypto/hmac-md5.
6862         * modules/crypto/gc-hmac-sha1 (Depends-on):
6863         Depend conditionally on crypto/hmac-sha1.
6864         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6865         * modules/crypto/gc-md4 (Depends-on):
6866         Depend conditionally on crypto/md4.
6867         * modules/crypto/gc-md5 (Depends-on):
6868         Depend conditionally on crypto/md5.
6869         * modules/crypto/gc-rijndael (Depends-on):
6870         Depend conditionally on crypto/rijndael.
6871         * modules/crypto/gc-sha1 (Depends-on):
6872         Depend conditionally on crypto/sha1.
6873         * modules/crypto/gc-arcfour:
6874         * modules/crypto/gc-arctwo:
6875         * modules/crypto/gc-des:
6876         * modules/crypto/gc-hmac-md5:
6877         * modules/crypto/gc-hmac-sha1:
6878         * modules/crypto/gc-md2:
6879         * modules/crypto/gc-md4:
6880         * modules/crypto/gc-md5:
6881         * modules/crypto/gc-rijndael:
6882         * modules/crypto/gc-sha1:
6883         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6884         now that the conditional dependencies do the work for us.
6885
6886 2011-11-17  Jim Meyering  <meyering@redhat.com>
6887
6888         tests: factor st_ctime-comparison out of two headers
6889         * tests/test-utimens-common.h (ctime_compare): Define.
6890         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6891         * tests/test-lutimens.h (test_lutimens): Likewise.
6892         * tests/test-utimens.h (test_utimens): Likewise.
6893
6894         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6895         Invoke the test program via an init.sh-using wrapper.
6896         * tests/test-getcwd.sh: New file.
6897         * modules/getcwd-tests (Files): Add it.
6898         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6899
6900 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6901
6902         gitlog-to-changelog: support multi-author commits.
6903         The FSF cares about keeping track of all authors of patches to its
6904         projects, but Git doesn't provide obvious support for multi-author
6905         changesets. Consensus seems to be forming around the use of extra
6906         Signed-off-by inspired lines in the log message formatted as
6907         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6908         multi-author commits between version control systems.
6909         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6910         log message and output in standard ChangeLog multi-author format.
6911         Reported by Peter Rosin <peda@lysator.liu.se>
6912
6913 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6914             Bruno Haible  <bruno@clisp.org>
6915
6916         Fix some modules' file list.
6917         * modules/fstatat (Files): Add m4/lstat.m4.
6918         * modules/openat (Files): Likewise.
6919         * modules/unlinkat (Files): Likewise.
6920
6921 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6922
6923         maint.mk: fix tight-scope.mk generation in VPATH builds.
6924         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6925         reference with $(srcdir) so that the file is found correctly even
6926         when running `make syntax-check' in a VPATH build.
6927
6928 2011-11-13  Bruno Haible  <bruno@clisp.org>
6929             Jim Meyering  <meyering@redhat.com>
6930
6931         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6932         * tests/init.sh (compare): Remove "No differences encountered" or
6933         synonymous output from the 'diff' program.
6934
6935 2011-11-13  Bruno Haible  <bruno@clisp.org>
6936
6937         Makefile: Tweak indentation.
6938         * Makefile: Use tab as first character in every line that contains rule
6939         commands.
6940
6941 2011-11-13  Bruno Haible  <bruno@clisp.org>
6942
6943         Syntax check for copyright statements.
6944         * check-copyright: New file.
6945         * Makefile (sc_check_copyright): New rule.
6946
6947 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6948
6949         * build-aux/git-version-gen: Add --prefix to configure the tag
6950         match string.
6951
6952 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6953
6954         * build-aux/git-version-gen: Add --help and --version.
6955
6956 2011-11-12  Jim Meyering  <meyering@redhat.com>
6957
6958         revamp the other test-exclude?.sh scripts to use init.sh, too
6959         * tests/test-exclude1.sh: Use init.sh.
6960         * tests/test-exclude2.sh: Likewise.
6961         * tests/test-exclude3.sh: Likewise.
6962         * tests/test-exclude4.sh: Likewise.
6963         * tests/test-exclude5.sh: Likewise.
6964         * tests/test-exclude6.sh: Likewise.
6965         * tests/test-exclude7.sh: Likewise.
6966         * tests/test-exclude8.sh: Likewise.
6967         * modules/exclude-tests (Files): List init.sh.
6968
6969         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6970         These shell scripts ignored failure of the binary test-exclude,
6971         so making the latter return 77 didn't cause them to be skipped.
6972         * tests/test-exclude5.sh: Exit with test-exclude's error status
6973         when that program fails.  Revamp to use init.sh.
6974         * tests/test-exclude2.sh: Likewise.
6975
6976         test-exclude: fix a typo
6977         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6978
6979 2011-11-11  Bruno Haible  <bruno@clisp.org>
6980
6981         obstack: Fix compilation error on MSVC 9.
6982         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6983
6984 2011-11-11  Jim Meyering  <meyering@redhat.com>
6985
6986         test-exclude: skip tests rather than failing on deficient systems
6987         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6988         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6989         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6990         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6991
6992 2011-11-10  Bruno Haible  <bruno@clisp.org>
6993
6994         ptsname_r test: Avoid gcc warning on glibc systems.
6995         * tests/test-ptsname_r.c (null_ptr): New function.
6996         (test_errors): Use it.
6997
6998 2011-11-10  Bruno Haible  <bruno@clisp.org>
6999
7000         ptsname_r: Avoid compilation error on OSF/1 5.1.
7001         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
7002         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
7003         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
7004         function is not declared or incompatibly declared.
7005         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
7006         * modules/ptsname_r (Depends-on, configure.ac): Update.
7007         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
7008
7009 2011-11-10  Bruno Haible  <bruno@clisp.org>
7010
7011         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
7012         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
7013         When cross-compiling, guess yes on all platforms except AIX.
7014         Reported by Ludovic Courtès <ludo@gnu.org>.
7015
7016 2011-11-09  Bruno Haible  <bruno@clisp.org>
7017
7018         ptsname_r tests: Fix bugs.
7019         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
7020         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
7021
7022 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7023
7024         fstatat: work with cross-compilation
7025         Problem reported by Ludovic Courtès in
7026         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
7027         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
7028         "cross-compiling" and assume the bug is present.  Replace
7029         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
7030         an inverted sense, to be more conservative about our assumptions.
7031         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
7032
7033 2011-11-09  Bruno Haible  <bruno@clisp.org>
7034
7035         Improve MODULES.html output.
7036         * modules/mkfifoat (Description): Use the word "function".
7037         * modules/readlinkat (Description): Likewise.
7038         * modules/symlinkat (Description): Likewise.
7039
7040 2011-11-09  Eric Blake  <eblake@redhat.com>
7041
7042         ptsname_r-tests: new test module
7043         * modules/ptsname_r-tests: New module.
7044         * tests/test-ptsname_r.c: New file.
7045
7046         ptsname_r: new module
7047         * modules/ptsname_r: New module.
7048         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7049         * lib/ptsname.c (__ptsname_r): Split...
7050         * lib/ptsname_r.c: ...into new file.
7051         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7052         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7053         * modules/stdlib (Makefile.am): Substitute witnesses.
7054         * lib/stdlib.in.h (ptsname_r): Declare it.
7055         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7056         * MODULES.html.sh (Misc): Likewise.
7057         * modules/ptsname (Depends-on): Alter dependency.
7058         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7059
7060 2011-11-09  Jim Meyering  <meyering@redhat.com>
7061
7062         announce-gen: be more concise when there's only one URL+tarball
7063         * build-aux/announce-gen (get_tool_versions): When you distribute
7064         only one type of tarball, combine the first two "Here are..."
7065         sections and make the key-checking grammar independent of
7066         how many tarballs there are.
7067
7068 2011-11-09  Eric Blake  <eblake@redhat.com>
7069
7070         openpty: provide a stub on mingw
7071         * lib/pty.in.h (includes): Provide forward declarations.
7072         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7073
7074         raise: fix mingw handling of SIGPIPE
7075         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7076
7077 2011-11-08  Bruno Haible  <bruno@clisp.org>
7078
7079         More conditional dependencies.
7080         * modules/faccessat (Depends-on): Add conditions.
7081         * modules/fchmodat (Depends-on): Likewise.
7082         * modules/fchownat (Depends-on): Likewise.
7083         * modules/fstatat (Depends-on): Likewise.
7084         * modules/mkfifoat (Depends-on): Likewise.
7085         * modules/readlinkat (Depends-on): Likewise.
7086         * modules/symlinkat (Depends-on): Likewise.
7087         * modules/unlinkat (Depends-on): Likewise.
7088         * modules/utimensat (Depends-on): Likewise.
7089         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7090         * modules/linkat (Depends-on): Refine the conditions.
7091         * modules/renameat (Depends-on): Likewise.
7092
7093 2011-11-08  Bruno Haible  <bruno@clisp.org>
7094
7095         faccessat: Move AC_LIBOBJ invocation to module description.
7096         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7097         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7098         invocation from here...
7099         * modules/faccessat (configure.ac): ... to here. Invoke
7100         gl_PREREQ_FACCESSAT.
7101
7102 2011-11-08  Bruno Haible  <bruno@clisp.org>
7103
7104         faccessat: Simplify autoconf macro.
7105         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7106         gl_FUNC_EUIDACCESS.
7107
7108 2011-11-08  Bruno Haible  <bruno@clisp.org>
7109
7110         renameat: Fix dependencies.
7111         * modules/renameat (Depends-on): Add stdbool.
7112
7113 2011-11-08  Bruno Haible  <bruno@clisp.org>
7114
7115         mkfifoat: Fix module description.
7116         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7117         not gl_UNISTD_MODULE_INDICATOR.
7118
7119 2011-11-08  Bruno Haible  <bruno@clisp.org>
7120
7121         fstatat: Remove unused dependency.
7122         * modules/fstatat (Depends-on): Remove fstat.
7123
7124 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7125
7126         GNUmakefile: behave when Makefile is missing.
7127         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7128
7129 2011-11-08  Bruno Haible  <bruno@clisp.org>
7130
7131         openat: Conditionalize dependencies.
7132         * lib/openat.c: Reduce the scope of some #includes.
7133         * modules/openat (Depends-on): Add conditions.
7134
7135 2011-11-07  Jim Meyering  <meyering@redhat.com>
7136
7137         maint.mk: extract GPG key ID without using a temporary file
7138         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7139         without using a temporary file.  Based on a suggestion from Werner Koch
7140         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7141
7142 2011-11-07  Eric Blake  <eblake@redhat.com>
7143
7144         grantpt: fix typo
7145         * lib/stdlib.in.h (grantpt): Check correct function.
7146
7147         maint.mk: silence new syntax check
7148         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7149
7150 2011-11-06  Bruno Haible  <bruno@clisp.org>
7151
7152         Doc about floating-point and math API.
7153         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7154         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7155
7156 2011-11-06  Bruno Haible  <bruno@clisp.org>
7157
7158         stdalign tests: Skip the test when compiled by Sun C.
7159         * tests/test-stdalign.c (main): Skip the test on Sun C.
7160
7161 2011-11-06  Bruno Haible  <bruno@clisp.org>
7162
7163         ansi-c++-opt: Complete the 2011-06-05 change.
7164         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7165         does not support namespaces, set the variable to "no", not to ":".
7166
7167 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7168
7169         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7170
7171 2011-11-06  Bruno Haible  <bruno@clisp.org>
7172
7173         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7174         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7175         (minus_zerol) [HP-UX]: New macro.
7176         (unary_minus) [HP-UX]: New function.
7177         (copysignl) [HP-UX]: Use unary_minus function.
7178
7179 2011-11-06  Bruno Haible  <bruno@clisp.org>
7180
7181         ldexp, ldexpf, ldexpl: Enhance tests.
7182         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7183         and tests/test-ldexpl.c.
7184         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7185         LDEXP, MIN_EXP, MAX_EXP): New macros.
7186         Include test-ldexp.h.
7187         (main): Just call test_function.
7188         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7189         infinity.h, nan.h.
7190         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7191         MAX_EXP): New macros.
7192         Include test-ldexp.h.
7193         (x, y): Remove variables.
7194         (main): Just call test_function.
7195         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7196         infinity.h, nan.h.
7197         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7198         MAX_EXP): New macros.
7199         Include test-ldexp.h.
7200         (x, y): Remove variables.
7201         (main): Just call test_function.
7202         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7203         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7204         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7205         (Depends-on): Add isnand-nolibm, signbit, float.
7206         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7207         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7208         (Depends-on): Add isnanf-nolibm, signbit, float.
7209
7210 2011-11-06  Bruno Haible  <bruno@clisp.org>
7211
7212         math tests: Cosmetics.
7213         * tests/test-math-c++.cc: Reorder declarations.
7214
7215 2011-11-05  Bruno Haible  <bruno@clisp.org>
7216
7217         fma*: Simplify test.
7218         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7219         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7220
7221         Tests for module 'fmal'.
7222         * modules/fmal-tests: New file.
7223         * tests/test-fmal1.c: New file.
7224         * tests/test-fmal2.c: New file.
7225
7226         New module 'fmal'.
7227         * lib/math.in.h (fmal): New declaration.
7228         * lib/fmal.c: New file.
7229         * m4/fmal.m4: New file.
7230         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7232         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7233         REPLACE_FMAL.
7234         * modules/fmal: New file.
7235         * doc/posix-functions/fmal.texi: Mention the new module and the various
7236         bugs.
7237
7238         Tests for module 'fmaf'.
7239         * modules/fmaf-tests: New file.
7240         * tests/test-fmaf1.c: New file.
7241         * tests/test-fmaf2.c: New file.
7242
7243         New module 'fmaf'.
7244         * lib/math.in.h (fmaf): New declaration.
7245         * lib/fmaf.c: New file.
7246         * m4/fmaf.m4: New file.
7247         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7248         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7249         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7250         REPLACE_FMAF.
7251         * modules/fmaf: New file.
7252         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7253         bugs.
7254
7255         Tests for module 'fma'.
7256         * modules/fma-tests: New file.
7257         * tests/test-fma1.c: New file.
7258         * tests/test-fma1.h: New file.
7259         * tests/test-fma2.c: New file.
7260         * tests/test-fma2.h: New file.
7261
7262         New module 'fma'.
7263         * lib/math.in.h (fma): New declaration.
7264         * lib/fma.c: New file.
7265         * m4/fma.m4: New file.
7266         * m4/fegetround.m4: New file.
7267         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7268         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7269         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7270         REPLACE_FMA.
7271         * modules/fma: New file.
7272         * doc/posix-functions/fma.texi: Mention the new module and the various
7273         bugs.
7274
7275         Extend gl_MATHFUNC.
7276         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7277         Support 'void' as argument type.
7278         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7279
7280 2011-11-05  Jim Meyering  <meyering@redhat.com>
7281
7282         maint.mk: also prohibit inclusion of dirent.h without use
7283         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7284
7285 2011-11-05  Bruno Haible  <bruno@clisp.org>
7286
7287         ldexpl tests: Avoid test failure on MSVC 9.
7288         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7289         value. Needed in order to enforce the conversion from a value greater
7290         than LDBL_MAX to Infinity.
7291
7292 2011-11-05  Bruno Haible  <bruno@clisp.org>
7293
7294         New modules 'at-internal', 'openat-h', split off from module 'openat'.
7295         * modules/at-internal: New file, extracted from modules/openat.
7296         * modules/openat-h: New file.
7297         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
7298         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
7299         * modules/openat (Description): Add reference to POSIX function.
7300         (Files): Remove lib/openat.h, lib/openat-proc.c.
7301         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7302         intprops, unistd.
7303         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7304         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7305         gl_FCNTL_MODULE_INDICATOR.
7306         (Include): Remove unistd.h, openat.h.
7307         * modules/areadlinkat (Files): Add lib/at-func.c.
7308         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7309         openat-die, openat-h, save-cwd.
7310         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7311         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7312         openat-die, openat-h, save-cwd, unistd.
7313         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7314         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7315         openat-h, save-cwd. Remove fcntl-h, openat.
7316         * modules/fchmodat (Files): Remove lib/openat.h.
7317         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7318         openat, stdbool, unistd.
7319         * modules/fchownat (Files): Remove lib/openat.h.
7320         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7321         openat, stdbool, sys_stat.
7322         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7323         lib/openat-proc.c.
7324         (Depends-on): Add at-internal.
7325         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7326         * modules/fstatat (Files): Remove lib/openat.h.
7327         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7328         stdbool, unistd.
7329         * modules/fts (Depends-on): Add openat-h.
7330         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7331         openat.
7332         * modules/mkdirat (Files): Remove lib/openat.h.
7333         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7334         openat, stdbool, sys_stat.
7335         * modules/mkfifoat (Files): Add lib/at-func.c.
7336         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7337         openat-h, save-cwd. Remove fcntl-h, openat.
7338         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7339         * modules/readlinkat (Files): Add lib/at-func.c.
7340         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7341         openat-h, save-cwd. Remove fcntl-h, openat.
7342         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
7343         openat.
7344         * modules/selinux-at (Files): Add lib/at-func.c.
7345         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7346         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7347         * modules/symlinkat (Files): Add lib/at-func.c.
7348         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7349         openat-h, save-cwd. Remove fcntl-h, openat.
7350         * modules/unlinkat (Files): Remove lib/openat.h.
7351         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7352         stdbool.
7353         * modules/utimensat (Files): Add lib/at-func.c.
7354         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7355         openat-die, openat-h, save-cwd.
7356         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7357         * modules/fdutimensat-tests (Depends-on): Add openat.
7358         * modules/fstatat-tests (Depends-on): Add openat-h.
7359         * modules/readlinkat-tests (Depends-on): Add openat.
7360         * modules/symlinkat-tests (Depends-on): Add openat.
7361
7362 2011-11-05  Bruno Haible  <bruno@clisp.org>
7363
7364         openat: Include <stdbool.h>.
7365         * lib/openat.c: Include <stdbool.h>.
7366
7367 2011-11-04  Bruno Haible  <bruno@clisp.org>
7368
7369         fchownat, renameat, unlinkat: Fix dependencies.
7370         * modules/fchownat (Depends-on): Add fstatat.
7371         * modules/renameat (Depends-on): Likewise.
7372         * modules/unlinkat (Depends-on): Likewise.
7373
7374 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7375
7376         openat: remove direct dependency on dirent
7377         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
7378         and hasn't been needed ever since fdopendir was split into its own
7379         module on 2009-08-31.
7380         * modules/openat (Depends-on): Remove dirent.
7381
7382 2011-11-04  Bruno Haible  <bruno@clisp.org>
7383
7384         renameat: Optimize code size.
7385         * modules/renameat (configure.ac): Don't compile at-func2.c if
7386         REPLACE_RENAMEAT is 1.
7387
7388 2011-11-04  Bruno Haible  <bruno@clisp.org>
7389
7390         openat tests: Fix file list.
7391         * modules/openat-tests (Files): Add tests/test-open.h.
7392
7393 2011-11-04  Bruno Haible  <bruno@clisp.org>
7394
7395         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
7396         * modules/fchmodat (Depends-on): Add openat-die.
7397         * modules/fchownat (Depends-on): Likewise.
7398         * modules/linkat (Depends-on): Likewise.
7399         * modules/renameat (Depends-on): Likewise.
7400         * modules/openat (Depends-on): Add dirent.
7401
7402 2011-11-04  Jim Meyering  <meyering@redhat.com>
7403
7404         at-func*.c: fix comments
7405         * lib/at-func2.c: Correct/improve first-line comment.
7406         * lib/at-func.c: Correct grammar in first-line comment.
7407
7408 2011-11-04  Bruno Haible  <bruno@clisp.org>
7409
7410         New module 'mkdirat', split off from module 'openat'.
7411         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
7412         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
7413         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
7414         * modules/mkdirat: New file, extracted from modules/openat.
7415         * modules/openat (Files): Remove lib/mkdirat.c.
7416         (Depends-on): Remove mkdir.
7417         (configure.ac): Remove AC_LIBOBJ of mkdirat.
7418         (Include): Remove <sys/stat.h>.
7419         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
7420         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7421         tests/test-mkdir.h.
7422         (Depends-on): Remove ignore-value.
7423         (Makefile.am): Remove rules for test-mkdirat.
7424         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7425         of module 'openat'.
7426         * NEWS: Mention the change.
7427
7428 2011-11-04  Bruno Haible  <bruno@clisp.org>
7429
7430         closedir: Avoid warning on mingw.
7431         * lib/closedir.c: Include <unistd.h>.
7432
7433 2011-11-04  Bruno Haible  <bruno@clisp.org>
7434
7435         New module 'fstatat', split off from module 'openat'.
7436         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7437         defined.
7438         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7439         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7440         gl_FUNC_FSTATAT.
7441         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
7442         * modules/fstatat: New file, extracted from modules/openat.
7443         * modules/openat (Files): Remove lib/fstatat.c.
7444         (Depends-on): Remove lstat.
7445         (configure.ac): Remove AC_LIBOBJ of fstatat.
7446         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
7447         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
7448         tests/test-lstat.h, tests/test-stat.h.
7449         (Depends-on): Remove getcwd-lgpl.
7450         (Makefile.am): Remove rules for test-fstatat.
7451         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
7452         of module 'openat'.
7453         * NEWS: Mention the change.
7454         * modules/getcwd (Depends-on): Add fstatat.
7455         * modules/linkat (Depends-on): Likewise.
7456         * modules/mkfifoat-tests (Depends-on): Likewise.
7457         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
7458
7459 2011-11-03  Bruno Haible  <bruno@clisp.org>
7460
7461         New module 'unlinkat', split off from module 'openat'.
7462         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7463         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7464         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7465         * modules/unlinkat: New file, extracted from modules/openat. Correct
7466         the dependency conditions.
7467         * modules/openat (Files): Remove lib/unlinkat.c.
7468         (Depends-on): Remove rmdir, unlink.
7469         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7470         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7471         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
7472         tests/test-rmdir.h, tests/test-unlink.h.
7473         (Depends-on): Remove unlinkdir.
7474         (Makefile.am): Remove rules for test-unlinkat.
7475         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
7476         of module 'openat'.
7477         * NEWS: Mention the change.
7478         * modules/linkat-tests (Depends-on): Add unlinkat.
7479         * modules/mkfifoat-tests (Depends-on): Likewise.
7480         * modules/readlinkat-tests (Depends-on): Likewise.
7481
7482 2011-11-02  Bruno Haible  <bruno@clisp.org>
7483
7484         New module 'fchmodat', split off from module 'openat'.
7485         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
7486         defined.
7487         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
7488         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
7489         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
7490         * modules/fchmodat: New file, extracted from modules/openat.
7491         * modules/openat (Files): Remove lib/fchmodat.c.
7492         (configure.ac): Remove AC_LIBOBJ of fchmodat.
7493         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
7494         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
7495         (Makefile.am): Remove rules for test-fchmodat.
7496         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
7497         of module 'openat'.
7498         * NEWS: Mention the change.
7499
7500 2011-11-02  Jim Meyering  <meyering@redhat.com>
7501
7502         putenv: indent #definition of "environ" to placate cppi
7503         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
7504
7505         gitlog-to-changelog: provide a ChangeLog-repair mechanism
7506         Git logs are often treated as immutable, because editing them
7507         changes the SHA1 checksums of all descendants.  Thus, errors in
7508         git logs tend to stay there forever.  However, when we generate
7509         a ChangeLog file -- typically for distribution -- from that git log,
7510         we can actually make corrections in the generated file.  The key
7511         lies in recording in machine-readable/applicable form the desired
7512         corrections.  See --help for description and an example.
7513         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
7514         (usage): Describe it; alphabetize option descriptions.
7515         (main): Honor the new option, carefully.
7516
7517 2011-11-01  Jim Meyering  <meyering@redhat.com>
7518
7519         gitlog-to-changelog: avoid an infloop
7520         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7521         that ends up being empty.
7522
7523 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7524
7525         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7526         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7527         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7528         contains (possibly-quoted) backslashes.  This should avoid
7529         all-too-common shell bugs if COMPLICATED contains backslashes in
7530         the "wrong" places.  Reported by David Evans in
7531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7532         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7533         because we want ASCII ranges.  Is there some reason we don't use
7534         the C locale everywhere in this script?
7535         (func_module, top level): Avoid unwanted pathname expansion when
7536         $repo_url_prefix or $repo_url_suffix_repl contain shell
7537         metacharacters like '?' and '*'.
7538
7539 2011-11-01  Bruno Haible  <bruno@clisp.org>
7540
7541         fchownat: Improve description.
7542         * modules/fchownat (Description): Add link to function.
7543
7544 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7545
7546         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7547         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7548         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7549         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7550
7551 2011-11-01  Bruno Haible  <bruno@clisp.org>
7552
7553         alignof: Avoid collision with stdalign module.
7554         * lib/alignof.h (alignof): Remove macro.
7555         * NEWS: Mention the change.
7556         Reported by Paul Eggert.
7557
7558 2011-11-01  Bruno Haible  <bruno@clisp.org>
7559
7560         New module 'fchownat', split off from module 'openat'.
7561         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7562         defined.
7563         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7564         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7565         invoke gl_FUNC_FCHOWNAT.
7566         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7567         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7568         * modules/fchownat: New file, extracted from modules/openat.
7569         * modules/openat (Files): Remove lib/fchownat.c.
7570         (Depends-on): Remove lchown.
7571         (configure.ac): Remove AC_LIBOBJ of fchownat.
7572         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7573         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7574         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7575         (Depends-on): Remove mgetgroups, usleep, stat-time.
7576         (configure.ac): Remove test for getegid.
7577         (Makefile.am): Remove rules for test-fchownat.
7578         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7579         of module 'openat'.
7580         * NEWS: Mention the change.
7581
7582 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7583
7584         stdalign: port better to MSVC and to Sun C 5.11
7585         This fixes some of the problems reported by Bruno Haible in
7586         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7587         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7588         shortcomings of MSVC and of Sun C 5.11.
7589         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7590         around __declspec arg.
7591         * modules/stdalign-tests (Files): Add tests/macros.h.
7592         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7593         Include macros.h, for ASSERT.
7594         (DECLARE_ALIGNED): Remove.
7595         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7596         to catch bug), and to 1 if not (simplifies the rest of the code).
7597         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7598         (CHECK_AUTO): Remove.
7599         (CHECK_ALIGNED): Check only the alignment of the static vars,
7600         since auto var alignment isn't supported by Sun C 5.11.
7601         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7602         ASSERT failures are easier to diagnose.
7603
7604 2011-10-31  Bruno Haible  <bruno@clisp.org>
7605
7606         doc about some IRIX 5.3 problems.
7607         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7608         on IRIX 5.3.
7609         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7610         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7611         5.3.
7612         * doc/posix-functions/grantpt.texi: Likewise.
7613         * doc/posix-functions/unlockpt.texi: Likewise.
7614         * doc/posix-functions/lgamma.texi: Likewise.
7615         * doc/posix-functions/nextafter.texi: Likewise.
7616         * doc/posix-functions/remainder.texi: Likewise.
7617         * doc/posix-functions/select.texi: Mention misplaced declaration on
7618         IRIX 5.3.
7619         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7620
7621 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7622
7623         gitlog-to-changelog: fix git-log invocation.
7624         git-log mishandles date strings before 1970-01-01 UTC, and there is
7625         no use to specify --since=1970-01-01 by default anyway.
7626         * build-aux/gitlog-to-changelog: By default, when no --since option
7627         was given, do not specify explicit --since option to git-log.
7628
7629 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7630
7631         gitlog-to-changelog: new option --append-dot.
7632         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7633         first non-blank line of each commit message terminated with a dot.
7634
7635 2011-10-30  Bruno Haible  <bruno@clisp.org>
7636
7637         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7638         * lib/ffsl.h: Include <config.h>.
7639         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7640
7641 2011-10-30  Jim Meyering  <meyering@redhat.com>
7642
7643         GNUmakefile: reenable "make syntax-check" for most projects
7644         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7645         build-aux variable", "syntax-check" would do nothing but succeed with
7646         the "No version control files detected..." diagnostic (unless you
7647         happened to override _build-aux via cfg.mk).
7648         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7649         to precede inclusion of maint.mk.  Otherwise, these variables would
7650         be used undefined in any project that does not override the default.
7651
7652 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7653
7654         gitlog-to-changelog: treat a message with only blank lines as empty.
7655         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7656         trailing blank lines before the code that issues a warning about an
7657         empty commit message.
7658
7659 2011-10-30  Jim Meyering  <meyering@redhat.com>
7660
7661         test-parse-datetime.c: avoid new DST-related false positive test failure
7662         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7663         based on the time/date we'll convert, not the current time.
7664         Otherwise, the moment we cross a DST boundary like today's in
7665         Europe, (CEST to CET), that offset ends up being one hour off.
7666
7667 2011-10-27  Bruno Haible  <bruno@clisp.org>
7668
7669         fstat: Tweak documentation.
7670         * modules/fstat (Description): More precise description.
7671
7672 2011-10-27  Bruno Haible  <bruno@clisp.org>
7673
7674         Update documentation regarding 'largefile' module.
7675         * doc/posix-functions/fstat.texi: Tweak wording.
7676         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7677         problems with huge directories and/or small ino_t types.
7678         * doc/posix-functions/readdir.texi: Likewise.
7679         * doc/posix-functions/rewinddir.texi: Likewise.
7680
7681 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7682
7683         maint.mk: don't maintain a second build-aux variable.
7684         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7685         depends on GNUmakefile, which already maintains a cfg.mk
7686         overridable $(_build-aux) for projects with a non-standard
7687         build-aux directory location, although without the $(srcdir)
7688         prefix.  Use that variable consistently instead of introducing a
7689         second one.  Adjust all call sites.
7690
7691 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7692
7693         Add stdalign module and use it in other modules.
7694         This is based on a previous proposal by Bruno Haible
7695         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7696
7697         stdalign: new module
7698         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7699         * modules/stdalign: New files.
7700         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7701         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7702
7703         stdalign-tests: new module
7704         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7705
7706         argp: use stdalign
7707         * lib/argp-parse.c: Include <stdalign.h>.
7708         (alignof): Remove.
7709         * modules/argp (Depends-on): Add stdalign.
7710
7711         crypto libraries: use stdalign
7712         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7713         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7714         Do not include <stdlib.h> twice, in md4.c.
7715         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7716         because we are accessing a pointer's bit-pattern, not a size.
7717         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7718         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7719         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7720         * modules/crypto/sha512: Likewise.
7721
7722         sys_socket: use stdalign, not alignof
7723         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7724         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7725
7726 2011-10-27  Bruno Haible  <bruno@clisp.org>
7727
7728         raise test: Avoid a test failure on Linux/MIPS.
7729         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7730         because 99 is a valid signal on Linux/MIPS.
7731
7732 2011-10-27  Bruno Haible  <bruno@clisp.org>
7733
7734         nonblocking tests: Fix test failure on Linux/MIPS.
7735         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7736         Set to 270000.
7737
7738 2011-10-27  Bruno Haible  <bruno@clisp.org>
7739
7740         utimensat: Work around problem on Linux/hppa.
7741         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7742         values.
7743         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7744
7745 2011-10-25  Jim Meyering  <meyering@redhat.com>
7746
7747         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7748         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7749         after symbols like NULL, size_t, etc.
7750         Reported by Alfred M. Szmidt.
7751
7752         maint.mk: exempt ENODATA from a syntax-check rule
7753         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7754         from the sc_prohibit_always-defined_macros syntax-check rule.
7755         Add a comment.  See this for more details:
7756         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7757
7758 2011-10-23  Jim Meyering  <meyering@redhat.com>
7759
7760         fts: close parent dir FD before returning from post-traversal fts_read
7761         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7762         unlink A, even though an FD open on A remained.  This is suboptimal
7763         (holding a file descriptor open longer than needed), but otherwise not
7764         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7765         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7766         that represents a real problem: it causes the removal of A to fail
7767         with e.g., "rm: cannot remove `A': Device or resource busy"
7768
7769         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7770         directory file descriptors.  After completing the final, FTS_DP,
7771         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7772         cache, but then proceeded to add a new FD to it via the subsequent
7773         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7774         final file descriptor would be closed only via fts_close's call to
7775         fd_ring_clear.  Now, it is usually closed earlier, via the final
7776         FTS_DP-returning fts_read call.
7777         * lib/fts.c (restore_initial_cwd): New function, converted from
7778         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7779         Update callers.
7780         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7781         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7782
7783 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7784             Bruno Haible  <bruno@clisp.org>
7785             Jim Meyering  <jim@meyering.net>
7786
7787         readme-release: improve safety of release prep instructions.
7788         * README-release: Don't git pull all branches when only master
7789         is needed for the release process.
7790         Run make maintainer-clean before changing trees and merging.
7791         Don't try to run ./configure right after git pull in case files
7792         that influence the bootstrap process have changed, move the
7793         ./configure step to after running ./bootstrap.
7794         Don't bootstrap "one last time"... it's the first time!
7795
7796 2011-10-22  Bruno Haible  <bruno@clisp.org>
7797
7798         errno, strerror-override: Support for MSVC 10.
7799         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7800         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7801         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7802         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7803         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7804         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7805         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7806         Assign values compatible with MSVC 10.
7807         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7808         New macros.
7809         (GNULIB_defined_EWINSOCK): New macro.
7810         * lib/strerror-override.c (strerror_override): Update accordingly.
7811         * lib/strerror-override.h: Likewise.
7812         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7813         longer equal to the corresponding errno value.
7814         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7815
7816 2011-10-22  Bruno Haible  <bruno@clisp.org>
7817
7818         perror: Recognize when test program crashes.
7819         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7820         strerror, set gl_cv_func_perror_works to no.
7821         Reported by Daniel Richard G. <skunk@iskunk.org>.
7822
7823         perror: Fix indentation.
7824         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7825
7826 2011-10-22  Bruno Haible  <bruno@clisp.org>
7827
7828         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7829         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7830         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7831         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7832         functions, not as a macro.
7833         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7834         macros.
7835         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7836         absence of macro.
7837         Suggested by Eric Blake.
7838         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7839
7840 2011-10-21  Bruno Haible  <bruno@clisp.org>
7841
7842         relocatable-prog-wrapper: Don't leave object files behind.
7843         * build-aux/install-reloc: Re-synchronize list of .o files to be
7844         removed with list of compilation units.
7845
7846 2011-10-20  Bruno Haible  <bruno@clisp.org>
7847
7848         openpty, posix_openpt: Remove code duplication.
7849         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7850         * lib/openpty.c: Include <stdlib.h>.
7851         (openpty): Use posix_openpt on all platforms except IRIX.
7852         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7853
7854 2011-10-20  Bruno Haible  <bruno@clisp.org>
7855
7856         unlockpt: Detect invalid argument.
7857         * lib/unlockpt.c: Include <fcntl.h>.
7858         (unlockpt): Check whether fd is valid, using fcntl().
7859         * modules/unlockpt (Depends-on): Add fcntl-h.
7860
7861 2011-10-20  Bruno Haible  <bruno@clisp.org>
7862
7863         openpty: Avoid compilation error on AIX 6.1.
7864         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7865
7866 2011-10-20  Bruno Haible  <bruno@clisp.org>
7867
7868         posix_openpt: Support for OpenBSD.
7869         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7870         (posix_openpt) [OpenBSD]: New code.
7871         * lib/grantpt.c: Include <fcntl.h>.
7872         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7873         * modules/grantpt (Depends-on): Add fcntl-h.
7874
7875 2011-10-20  Bruno Haible  <bruno@clisp.org>
7876
7877         posix_openpt test: Coding style.
7878         * tests/test-posix_openpt.c: Use GNU coding style.
7879
7880 2011-10-20  Bruno Haible  <bruno@clisp.org>
7881
7882         grantpt: Support --avoid=pt_chown.
7883         * modules/grantpt (Files): Add lib/pty-private.h.
7884
7885 2011-10-20  Bruno Haible  <bruno@clisp.org>
7886
7887         posix_openpt: Fix autoconf macro.
7888         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7889         unneeded check for _getpty.
7890
7891 2011-10-20  Bruno Haible  <bruno@clisp.org>
7892
7893         openpty: Update comments.
7894         * lib/openpty.c: Add comments about Minix.
7895
7896 2011-10-19  Eric Blake  <eblake@redhat.com>
7897
7898         openpty: relax license
7899         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7900
7901         pt_chown: use configmake to simplify build
7902         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7903
7904         ptsname and others: relax license
7905         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7906         * modules/unlockpt (License): Likewise.
7907         * modules/pt_chown (License): Likewise.
7908         * modules/ptsname (License): Likewise.
7909         * modules/ttyname_r (License): Likewise.
7910
7911 2011-10-19  Jim Meyering  <meyering@redhat.com>
7912
7913         posix_openpt: remove spurious #endif
7914         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7915
7916 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7917
7918         maint.mk: Respect $(build_aux) in web-manual rule.
7919         * top/maint.mk (web-manual): Find gen-announce script in user's
7920         $(build_aux) directory instead of hard-coding 'build-aux'.
7921
7922 2011-10-19  Bruno Haible  <bruno@clisp.org>
7923
7924         posix_openpt: Fix compilation error.
7925         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7926         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7927         Mention the openpty module as an alternative.
7928
7929 2011-10-19  Bruno Haible  <bruno@clisp.org>
7930
7931         Support for old NeXTstep 3.3 frexp().
7932         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7933         execution time of the test to 5 seconds.
7934         Reported by Daniel Richard G. <skunk@iskunk.org>.
7935
7936 2011-10-19  Bruno Haible  <bruno@clisp.org>
7937
7938         Support for old NeXTstep 3.3 sed.
7939         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7940         part, use /.../, not \|...|. Escape periods in the header file name.
7941         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7942         Reported by Daniel Richard G. <skunk@iskunk.org>.
7943
7944 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7945
7946         Support for old NeXTstep 3.3 gcc.
7947         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7948         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7949         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7950         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7951         * lib/regex.h (_Restrict_arr_): Likewise.
7952         * lib/regex_internal.h (re_token_t): Likewise.
7953         * lib/regexec.c (check_node_accept_bytes): Likewise.
7954         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7955
7956 2011-10-18  Eric Blake  <eblake@redhat.com>
7957
7958         posix_openpt: new module
7959         * modules/posix_openpt: New module.
7960         * m4/posix_openpt.m4: New file.
7961         * lib/posix_openpt.c: Likewise.
7962         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7963         (gl_STDLIB_H_DEFAULTS): Set defaults.
7964         * modules/stdlib (Makefile.am): Substitute macros.
7965         * lib/stdlib.in.h (posix_openpt): Declare.
7966         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7967         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7968         * modules/posix_openpt-tests: New test module.
7969         * tests/test-posix_openpt.c: New test.
7970
7971 2011-10-15  Bruno Haible  <bruno@clisp.org>
7972
7973         xstrtoll: Fix compilation failure.
7974         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7975         from lib/strtol.c.
7976         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7977         some platforms.
7978         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7979
7980 2011-10-15  Bruno Haible  <bruno@clisp.org>
7981
7982         vasnprintf: Optimize bit search operation.
7983         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7984         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7985         gl_DOUBLE_EXPONENT_LOCATION.
7986         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7987         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7988         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7989         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7990         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7991         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7992         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7993         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7994         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7995
7996 2011-10-15  Bruno Haible  <bruno@clisp.org>
7997
7998         vasnprintf: Fix comments.
7999         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
8000
8001 2011-10-14  Bruno Haible  <bruno@clisp.org>
8002
8003         Tests for module 'integer_length_ll'.
8004         * modules/integer_length_ll-tests: New file.
8005         * tests/test-integer_length_ll.c: New file.
8006
8007         New module 'integer_length_ll'.
8008         * lib/integer_length_ll.c: New file.
8009         * modules/integer_length_ll: New file.
8010
8011 2011-10-14  Bruno Haible  <bruno@clisp.org>
8012
8013         Tests for module 'integer_length_l'.
8014         * modules/integer_length_l-tests: New file.
8015         * tests/test-integer_length_l.c: New file.
8016
8017         New module 'integer_length_l'.
8018         * lib/integer_length_l.c: New file.
8019         * modules/integer_length_l: New file.
8020
8021 2011-10-14  Bruno Haible  <bruno@clisp.org>
8022
8023         Tests for module 'integer_length'.
8024         * modules/integer_length-tests: New file.
8025         * tests/test-integer_length.c: New file.
8026
8027         New module 'integer_length'.
8028         * lib/integer_length.h: New file.
8029         * lib/integer_length.c: New file.
8030         * modules/integer_length: New file.
8031
8032 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8033
8034         popen: Fix dependency conditions.
8035         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8036
8037 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8038
8039         perror: Fix autoconf test.
8040         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8041         <stdlib.h> and <string.h>.
8042
8043 2011-10-14  Bruno Haible  <bruno@clisp.org>
8044
8045         ffsl: Optimize on 64-bit platforms.
8046         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8047         unrolling.
8048
8049 2011-10-13  Bruno Haible  <bruno@clisp.org>
8050
8051         ffsl: Optimize on 32-bit platforms.
8052         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8053         use ffs() without a loop.
8054
8055         ffsl, ffsll: Optimize for GCC.
8056         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8057         * lib/ffsl.c (GCC_BUILTIN): New macro.
8058         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8059
8060 2011-10-13  Bruno Haible  <bruno@clisp.org>
8061
8062         ffs, bcopy, memset: Support symbol renaming via config.h.
8063         * lib/ffs.c: Include <config.h>.
8064         * lib/bcopy.c: Likewise.
8065         * lib/memset.c: Likewise.
8066
8067 2011-10-10  Bruno Haible  <bruno@clisp.org>
8068
8069         atanl: Simplify for platforms where 'long double' == 'double'.
8070         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8071         alternative implementation.
8072         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8073         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8074         * modules/atanl (Depends-on): Add atan. Update conditions.
8075
8076 2011-10-10  Bruno Haible  <bruno@clisp.org>
8077
8078         acosl: Simplify for platforms where 'long double' == 'double'.
8079         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8080         alternative implementation.
8081         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8082         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8083         * modules/acosl (Depends-on): Add acos. Update conditions.
8084
8085 2011-10-10  Bruno Haible  <bruno@clisp.org>
8086
8087         asinl: Simplify for platforms where 'long double' == 'double'.
8088         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8089         alternative implementation.
8090         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8091         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8092         * modules/asinl (Depends-on): Add asin. Update conditions.
8093
8094 2011-10-10  Bruno Haible  <bruno@clisp.org>
8095
8096         tanl: Simplify for platforms where 'long double' == 'double'.
8097         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8098         implementation.
8099         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8100         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8101         * modules/tanl (Depends-on): Add tan. Update conditions.
8102         (configure.ac): Don't compile trigl.c if
8103         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8104
8105 2011-10-10  Bruno Haible  <bruno@clisp.org>
8106
8107         cosl: Simplify for platforms where 'long double' == 'double'.
8108         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8109         implementation.
8110         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8111         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8112         * modules/cosl (Depends-on): Add cos. Update conditions.
8113         (configure.ac): Don't compile sincosl.c and trigl.c if
8114         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8115
8116 2011-10-10  Bruno Haible  <bruno@clisp.org>
8117
8118         sinl: Simplify for platforms where 'long double' == 'double'.
8119         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8120         implementation.
8121         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8122         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8123         * modules/sinl (Depends-on): Add sin. Update conditions.
8124         (configure.ac): Don't compile sincosl.c and trigl.c if
8125         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8126
8127 2011-10-10  Bruno Haible  <bruno@clisp.org>
8128
8129         logl: Simplify for platforms where 'long double' == 'double'.
8130         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8131         implementation.
8132         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8133         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8134         * modules/logl (Depends-on): Add log. Update conditions.
8135
8136 2011-10-10  Bruno Haible  <bruno@clisp.org>
8137
8138         expl: Simplify for platforms where 'long double' == 'double'.
8139         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8140         implementation.
8141         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8142         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8143         * modules/expl (Depends-on): Add exp. Update conditions.
8144
8145 2011-10-10  Bruno Haible  <bruno@clisp.org>
8146
8147         sqrtl: Simplify for platforms where 'long double' == 'double'.
8148         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8149         alternative implementation.
8150         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8151         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8152         * modules/sqrtl (Depends-on): Update conditions.
8153
8154 2011-10-10  Bruno Haible  <bruno@clisp.org>
8155
8156         ldexpl: Simplify for platforms where 'long double' == 'double'.
8157         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8158         alternative implementation.
8159         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8160         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8161         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8162
8163 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8164
8165         ffsll: set correct witness
8166         * modules/ffsll (configure.ac): Fix typo.
8167
8168 2011-10-10  Bruno Haible  <bruno@clisp.org>
8169
8170         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8171         * lib/printf-frexpl.c: Include <config.h>.
8172         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8173         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8174         second time.
8175         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8176         gl_LONG_DOUBLE_VS_DOUBLE.
8177         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8178         conditions.
8179
8180 2011-10-10  Bruno Haible  <bruno@clisp.org>
8181
8182         frexpl: Simplify for platforms where 'long double' == 'double'.
8183         * lib/frexpl.c: Include <config.h>.
8184         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8185         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8186         time.
8187         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8188         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8189         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8190         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8191         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8192         conditions.
8193
8194 2011-10-10  Jim Meyering  <meyering@redhat.com>
8195
8196         test-renameat: don't leave behind a temporary file
8197         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8198           ERROR: files left in build directory after distclean:
8199           ./gltests/test-renameat.too
8200           make[1]: *** [distcleancheck] Error 1
8201         Reported by Tom G. Christensen.
8202
8203 2011-10-09  Bruno Haible  <bruno@clisp.org>
8204
8205         rint: Determine RINT_LIBM correctly on AIX 7.
8206         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8207         directly, not only through a function pointer. Also accept an optional
8208         4th argument with extra code.
8209         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8210         rintf() call by gcc when optimizing.
8211
8212         mathfunc.m4: Refactor.
8213         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8214         m4 variable.
8215
8216 2011-10-09  Bruno Haible  <bruno@clisp.org>
8217
8218         rintl: Simplify for platforms where 'long double' == 'double'.
8219         * lib/rintl.c: Include <config.h>.
8220         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8221         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8222         time.
8223         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8224         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8225         * modules/rintl (Depends-on): Add rint. Update conditions.
8226
8227 2011-10-09  Bruno Haible  <bruno@clisp.org>
8228
8229         roundl: Simplify for platforms where 'long double' == 'double'.
8230         * lib/roundl.c: Include <config.h>.
8231         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8232         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8233         time.
8234         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8235         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8236         * modules/roundl (Depends-on): Add round. Update conditions.
8237
8238 2011-10-09  Bruno Haible  <bruno@clisp.org>
8239
8240         truncl: Simplify for platforms where 'long double' == 'double'.
8241         * lib/truncl.c: Include <config.h>.
8242         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8243         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8244         time.
8245         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8246         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8247         * modules/truncl (Depends-on): Add trunc. Update conditions.
8248
8249 2011-10-09  Bruno Haible  <bruno@clisp.org>
8250
8251         ceill: Simplify for platforms where 'long double' == 'double'.
8252         * lib/ceill.c: Include <config.h>.
8253         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8254         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8255         time.
8256         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8257         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8258         * modules/ceill (Depends-on): Add ceil. Update conditions.
8259
8260 2011-10-09  Bruno Haible  <bruno@clisp.org>
8261
8262         floorl: Simplify for platforms where 'long double' == 'double'.
8263         * lib/floorl.c: Include <config.h>.
8264         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8265         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8266         time.
8267         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8268         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8269         * modules/floorl (Depends-on): Add floor. Update conditions.
8270
8271 2011-10-09  Bruno Haible  <bruno@clisp.org>
8272
8273         rint: Fix ordering constraints.
8274         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8275         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8276         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8277
8278 2011-10-09  Bruno Haible  <bruno@clisp.org>
8279
8280         copysignl: Simplify for platforms where 'long double' == 'double'.
8281         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8282         alternative.
8283         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8284         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8285         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8286
8287 2011-10-09  Bruno Haible  <bruno@clisp.org>
8288
8289         Tests for module 'rintl'.
8290         * modules/rintl-tests: New file.
8291         * tests/test-rintl.c: New file.
8292
8293         New module 'rintl'.
8294         * lib/math.in.h (rintl): New declaration.
8295         * lib/rintl.c: New file.
8296         * m4/rintl.m4: New file.
8297         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
8298         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
8299         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
8300         * modules/rintl: New file.
8301         * tests/test-math-c++.cc: Check the declaration of rintl.
8302         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8303         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8304         * doc/posix-functions/rintl.texi: Mention the new module.
8305
8306 2011-10-09  Bruno Haible  <bruno@clisp.org>
8307
8308         Tests for module 'rintf'.
8309         * modules/rintf-tests: New file.
8310         * tests/test-rintf.c: New file.
8311
8312         New module 'rintf'.
8313         * lib/math.in.h (rintf): New declaration.
8314         * lib/rintf.c: New file.
8315         * m4/rintf.m4: New file.
8316         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8317         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8318         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8319         * modules/rintf: New file.
8320         * tests/test-math-c++.cc: Check the declaration of rintf.
8321         * doc/posix-functions/rintf.texi: Mention the new module.
8322
8323 2011-10-09  Bruno Haible  <bruno@clisp.org>
8324
8325         rint: Support for MSVC.
8326         * lib/math.in.h (rint): New declaration.
8327         * lib/rint.c: New file.
8328         * m4/rint.m4: New file.
8329         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8331         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8332         * modules/rint (Description): Fix.
8333         (Files): Add lib/rint.c, m4/rint.m4.
8334         (Depends-on): Add math.
8335         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8336         gl_MATH_MODULE_INDICATOR.
8337         * tests/test-math-c++.cc: Check the declaration of rint.
8338         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8339         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8340         * doc/posix-functions/rint.texi: Mention the replacement provided by
8341         the module.
8342
8343         rint tests: More tests.
8344         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8345         minus-zero.h, infinity.h, nan.h.
8346         (main): Skip the test if the current rounding mode is not standard. Add
8347         tests for negative numbers, minus zero, infinity, NaN.
8348         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8349         tests/nan.h.
8350         (Depends-on): Add isnand-nolibm.
8351
8352 2011-10-09  Bruno Haible  <bruno@clisp.org>
8353
8354         Tests for module 'copysignl'.
8355         * modules/copysignl-tests: New file.
8356         * tests/test-copysignl.c: New file.
8357
8358         New module 'copysignl'.
8359         * lib/math.in.h (copysignl): New declaration.
8360         * lib/copysignl.c: New file.
8361         * m4/copysignl.m4: New file.
8362         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8363         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
8364         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
8365         HAVE_COPYSIGNL.
8366         * modules/copysignl: New file.
8367         * tests/test-math-c++.cc: Check the declaration of copysignl.
8368         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8369         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
8370         * doc/posix-functions/copysignl.texi: Mention the new module.
8371
8372 2011-10-09  Bruno Haible  <bruno@clisp.org>
8373
8374         Tests for module 'copysignf'.
8375         * modules/copysignf-tests: New file.
8376         * tests/test-copysignf.c: New file.
8377
8378         New module 'copysignf'.
8379         * lib/math.in.h (copysignf): New declaration.
8380         * lib/copysignf.c: New file.
8381         * m4/copysignf.m4: New file.
8382         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
8383         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
8384         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
8385         HAVE_COPYSIGNF.
8386         * modules/copysignf: New file.
8387         * tests/test-math-c++.cc: Check the declaration of copysignf.
8388         * doc/posix-functions/copysignf.texi: Mention the new module.
8389
8390 2011-10-09  Bruno Haible  <bruno@clisp.org>
8391
8392         Ensure that HAVE_* variables are set to 1 before they are set to 0.
8393         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
8394         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
8395         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8396         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
8397         gl_SIGNAL_H_DEFAULTS.
8398
8399 2011-10-09  Bruno Haible  <bruno@clisp.org>
8400
8401         poll: Make macro safer.
8402         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
8403         ac_cv_header_poll_h is not set.
8404
8405 2011-10-09  Bruno Haible  <bruno@clisp.org>
8406
8407         copysign: Provide replacement.
8408         * lib/math.in.h (copysign): New declaration.
8409         * lib/copysign.c: New file.
8410         * m4/copysign.m4: New file.
8411         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
8412         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
8413         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
8414         HAVE_COPYSIGN.
8415         * modules/copysign (Description): Clarify.
8416         (Files): Add lib/copysign.c, m4/copysign.m4.
8417         (Depends-on): Add math, signbit.
8418         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
8419         gl_MATH_MODULE_INDICATOR.
8420         * tests/test-math-c++.cc: Check the declaration of copysign.
8421         * doc/posix-functions/copysign.texi: Mention the effects of the module
8422         on Minix and MSVC.
8423
8424 2011-10-09  Bruno Haible  <bruno@clisp.org>
8425
8426         isinf: Ensure macro on AIX 5.1.
8427         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8428         macro.
8429         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8430
8431 2011-10-09  Bruno Haible  <bruno@clisp.org>
8432
8433         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8434         * modules/snprintf-posix-tests (configure.ac): Require
8435         gl_LONG_DOUBLE_VS_DOUBLE.
8436         * modules/sprintf-posix-tests (configure.ac): Likewise.
8437         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8438         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8439         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8440         * modules/vsprintf-posix-tests (configure.ac): Likewise.
8441         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
8442         tests on platforms where 'long double' is the same as 'double'.
8443         * tests/test-sprintf-posix.h (test_function): Likewise.
8444         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8445         * tests/test-vasprintf-posix.c (test_function): Likewise.
8446
8447         *printf: Fix for platforms where 'long double' == 'double'.
8448         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8449         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
8450         * modules/dprintf-posix (Files): Add m4/math_h.m4.
8451         * modules/fprintf-posix (Files): Likewise.
8452         * modules/obstack-printf-posix (Files): Likewise.
8453         * modules/snprintf-posix (Files): Likewise.
8454         * modules/sprintf-posix (Files): Likewise.
8455         * modules/vasnprintf (Files): Likewise.
8456         * modules/vasnprintf-posix (Files): Likewise.
8457         * modules/vasprintf-posix (Files): Likewise.
8458         * modules/vdprintf-posix (Files): Likewise.
8459         * modules/vfprintf-posix (Files): Likewise.
8460         * modules/vsnprintf-posix (Files): Likewise.
8461         * modules/vsprintf-posix (Files): Likewise.
8462         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8463         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8464         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8465         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8466         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8467         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8468         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8469
8470         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8471         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
8472         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8473         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
8474         'long double'.
8475         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
8476
8477         isinf: Fix for platforms where 'long double' == 'double'.
8478         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8479         Don't blindly assume 80-bit 'long double'.
8480
8481         isfinite: Fix for platforms where 'long double' == 'double'.
8482         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8483         Don't blindly assume 80-bit 'long double'.
8484
8485         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8486         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
8487         * modules/isfinite-tests (configure.ac): Require
8488         gl_LONG_DOUBLE_VS_DOUBLE.
8489         * modules/isinf-tests (configure.ac): Likewise.
8490         * modules/isnan-tests (configure.ac): Likewise.
8491         * modules/isnanl-tests (configure.ac): Likewise.
8492         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
8493         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
8494         tests on platforms where 'long double' is the same as 'double'.
8495         * tests/test-isinf.c (test_isinfl): Likewise.
8496         * tests/test-isnan.c (test_long_double): Likewise.
8497         * tests/test-isnanl.h (main): Likewise.
8498
8499 2011-10-08  Bruno Haible  <bruno@clisp.org>
8500
8501         Tests for module 'tanhf'.
8502         * modules/tanhf-tests: New file.
8503         * tests/test-tanhf.c: New file.
8504
8505         New module 'tanhf'.
8506         * lib/math.in.h (tanhf): New declaration.
8507         * lib/tanhf.c: New file.
8508         * m4/tanhf.m4: New file.
8509         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
8510         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
8511         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
8512         * modules/tanhf: New file.
8513         * tests/test-math-c++.cc: Check the declaration of tanhf.
8514         * doc/posix-functions/tanhf.texi: Mention the new module.
8515
8516         tanh: Use a .m4 file.
8517         * m4/tanh.m4: New file.
8518         * modules/tanh (Files): Add it.
8519         (configure.ac): Just invoke gl_FUNC_TANH.
8520
8521 2011-10-08  Bruno Haible  <bruno@clisp.org>
8522
8523         Tests for module 'coshf'.
8524         * modules/coshf-tests: New file.
8525         * tests/test-coshf.c: New file.
8526
8527         New module 'coshf'.
8528         * lib/math.in.h (coshf): New declaration.
8529         * lib/coshf.c: New file.
8530         * m4/coshf.m4: New file.
8531         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8532         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8533         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8534         * modules/coshf: New file.
8535         * tests/test-math-c++.cc: Check the declaration of coshf.
8536         * doc/posix-functions/coshf.texi: Mention the new module.
8537
8538         cosh: Use a .m4 file.
8539         * m4/cosh.m4: New file.
8540         * modules/cosh (Files): Add it.
8541         (configure.ac): Just invoke gl_FUNC_COSH.
8542
8543 2011-10-08  Bruno Haible  <bruno@clisp.org>
8544
8545         Tests for module 'sinhf'.
8546         * modules/sinhf-tests: New file.
8547         * tests/test-sinhf.c: New file.
8548
8549         New module 'sinhf'.
8550         * lib/math.in.h (sinhf): New declaration.
8551         * lib/sinhf.c: New file.
8552         * m4/sinhf.m4: New file.
8553         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8554         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8555         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8556         * modules/sinhf: New file.
8557         * tests/test-math-c++.cc: Check the declaration of sinhf.
8558         * doc/posix-functions/sinhf.texi: Mention the new module.
8559
8560         sinh: Use a .m4 file.
8561         * m4/sinh.m4: New file.
8562         * modules/sinh (Files): Add it.
8563         (configure.ac): Just invoke gl_FUNC_SINH.
8564
8565 2011-10-08  Bruno Haible  <bruno@clisp.org>
8566
8567         Tests for module 'atan2f'.
8568         * modules/atan2f-tests: New file.
8569         * tests/test-atan2f.c: New file.
8570
8571         New module 'atan2f'.
8572         * lib/math.in.h (atan2f): New declaration.
8573         * lib/atan2f.c: New file.
8574         * m4/atan2f.m4: New file.
8575         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8577         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8578         * modules/atan2f: New file.
8579         * tests/test-math-c++.cc: Check the declaration of atan2f.
8580         * doc/posix-functions/atan2f.texi: Mention the new module.
8581
8582         atan2: Use a .m4 file.
8583         * m4/atan2.m4: New file.
8584         * modules/atan2 (Files): Add it.
8585         (configure.ac): Just invoke gl_FUNC_ATAN2.
8586
8587 2011-10-08  Bruno Haible  <bruno@clisp.org>
8588
8589         Tests for module 'atanf'.
8590         * modules/atanf-tests: New file.
8591         * tests/test-atanf.c: New file.
8592
8593         New module 'atanf'.
8594         * lib/math.in.h (atanf): New declaration.
8595         * lib/atanf.c: New file.
8596         * m4/atanf.m4: New file.
8597         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8599         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8600         * modules/atanf: New file.
8601         * tests/test-math-c++.cc: Check the declaration of atanf.
8602         * doc/posix-functions/atanf.texi: Mention the new module.
8603
8604         atan: Use a .m4 file.
8605         * m4/atan.m4: New file.
8606         * modules/atan (Files): Add it.
8607         (configure.ac): Just invoke gl_FUNC_ATAN.
8608
8609 2011-10-08  Bruno Haible  <bruno@clisp.org>
8610
8611         Tests for module 'acosf'.
8612         * modules/acosf-tests: New file.
8613         * tests/test-acosf.c: New file.
8614
8615         New module 'acosf'.
8616         * lib/math.in.h (acosf): New declaration.
8617         * lib/acosf.c: New file.
8618         * m4/acosf.m4: New file.
8619         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8620         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8621         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8622         * modules/acosf: New file.
8623         * tests/test-math-c++.cc: Check the declaration of acosf.
8624         * doc/posix-functions/acosf.texi: Mention the new module.
8625
8626         acos: Use a .m4 file.
8627         * m4/acos.m4: New file.
8628         * modules/acos (Files): Add it.
8629         (configure.ac): Just invoke gl_FUNC_ACOS.
8630
8631 2011-10-08  Bruno Haible  <bruno@clisp.org>
8632
8633         Tests for module 'asinf'.
8634         * modules/asinf-tests: New file.
8635         * tests/test-asinf.c: New file.
8636
8637         New module 'asinf'.
8638         * lib/math.in.h (asinf): New declaration.
8639         * lib/asinf.c: New file.
8640         * m4/asinf.m4: New file.
8641         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8643         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8644         * modules/asinf: New file.
8645         * tests/test-math-c++.cc: Check the declaration of asinf.
8646         * doc/posix-functions/asinf.texi: Mention the new module.
8647
8648         asin: Use a .m4 file.
8649         * m4/asin.m4: New file.
8650         * modules/asin (Files): Add it.
8651         (configure.ac): Just invoke gl_FUNC_ASIN.
8652
8653 2011-10-08  Bruno Haible  <bruno@clisp.org>
8654
8655         Tests for module 'tanf'.
8656         * modules/tanf-tests: New file.
8657         * tests/test-tanf.c: New file.
8658
8659         New module 'tanf'.
8660         * lib/math.in.h (tanf): New declaration.
8661         * lib/tanf.c: New file.
8662         * m4/tanf.m4: New file.
8663         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8665         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8666         * modules/tanf: New file.
8667         * tests/test-math-c++.cc: Check the declaration of tanf.
8668         * doc/posix-functions/tanf.texi: Mention the new module.
8669
8670         tan: Use a .m4 file.
8671         * m4/tan.m4: New file.
8672         * modules/tan (Files): Add it.
8673         (configure.ac): Just invoke gl_FUNC_TAN.
8674
8675 2011-10-08  Bruno Haible  <bruno@clisp.org>
8676
8677         Tests for module 'cosf'.
8678         * modules/cosf-tests: New file.
8679         * tests/test-cosf.c: New file.
8680
8681         New module 'cosf'.
8682         * lib/math.in.h (cosf): New declaration.
8683         * lib/cosf.c: New file.
8684         * m4/cosf.m4: New file.
8685         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8687         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8688         * modules/cosf: New file.
8689         * tests/test-math-c++.cc: Check the declaration of cosf.
8690         * doc/posix-functions/cosf.texi: Mention the new module.
8691
8692         cos: Use a .m4 file.
8693         * m4/cos.m4: New file.
8694         * modules/cos (Files): Add it.
8695         (configure.ac): Just invoke gl_FUNC_COS.
8696
8697 2011-10-08  Bruno Haible  <bruno@clisp.org>
8698
8699         Tests for module 'sinf'.
8700         * modules/sinf-tests: New file.
8701         * tests/test-sinf.c: New file.
8702
8703         New module 'sinf'.
8704         * lib/math.in.h (sinf): New declaration.
8705         * lib/sinf.c: New file.
8706         * m4/sinf.m4: New file.
8707         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8709         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8710         * modules/sinf: New file.
8711         * tests/test-math-c++.cc: Check the declaration of sinf.
8712         * doc/posix-functions/sinf.texi: Mention the new module.
8713
8714         sin: Use a .m4 file.
8715         * m4/sin.m4: New file.
8716         * modules/sin (Files): Add it.
8717         (configure.ac): Just invoke gl_FUNC_SIN.
8718
8719 2011-10-08  Bruno Haible  <bruno@clisp.org>
8720
8721         Tests for module 'powf'.
8722         * modules/powf-tests: New file.
8723         * tests/test-powf.c: New file.
8724
8725         New module 'powf'.
8726         * lib/math.in.h (powf): New declaration.
8727         * lib/powf.c: New file.
8728         * m4/powf.m4: New file.
8729         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8730         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8731         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8732         * modules/powf: New file.
8733         * tests/test-math-c++.cc: Check the declaration of powf.
8734         * doc/posix-functions/powf.texi: Mention the new module.
8735
8736         pow: Use a .m4 file.
8737         * m4/pow.m4: New file.
8738         * modules/pow (Files): Add it.
8739         (configure.ac): Just invoke gl_FUNC_POW.
8740
8741 2011-10-08  Bruno Haible  <bruno@clisp.org>
8742
8743         Tests for module 'log10f'.
8744         * modules/log10f-tests: New file.
8745         * tests/test-log10f.c: New file.
8746
8747         New module 'log10f'.
8748         * lib/math.in.h (log10f): New declaration.
8749         * lib/log10f.c: New file.
8750         * m4/log10f.m4: New file.
8751         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8753         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8754         * modules/log10f: New file.
8755         * tests/test-math-c++.cc: Check the declaration of log10f.
8756         * doc/posix-functions/log10f.texi: Mention the new module.
8757
8758         log10: Use a .m4 file.
8759         * m4/log10.m4: New file.
8760         * modules/log10 (Files): Add it.
8761         (configure.ac): Just invoke gl_FUNC_LOG10.
8762
8763 2011-10-08  Bruno Haible  <bruno@clisp.org>
8764
8765         Tests for module 'logf'.
8766         * modules/logf-tests: New file.
8767         * tests/test-logf.c: New file.
8768
8769         New module 'logf'.
8770         * lib/math.in.h (logf): New declaration.
8771         * lib/logf.c: New file.
8772         * m4/logf.m4: New file.
8773         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8774         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8775         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8776         * modules/logf: New file.
8777         * tests/test-math-c++.cc: Check the declaration of logf.
8778         * doc/posix-functions/logf.texi: Mention the new module.
8779
8780         log: Use a .m4 file.
8781         * m4/log.m4: New file.
8782         * modules/log (Files): Add it.
8783         (configure.ac): Just invoke gl_FUNC_LOG.
8784
8785 2011-10-08  Bruno Haible  <bruno@clisp.org>
8786
8787         Tests for module 'expf'.
8788         * modules/expf-tests: New file.
8789         * tests/test-expf.c: New file.
8790
8791         New module 'expf'.
8792         * lib/math.in.h (expf): New declaration.
8793         * lib/expf.c: New file.
8794         * m4/expf.m4: New file.
8795         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8797         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8798         * modules/expf: New file.
8799         * tests/test-math-c++.cc: Check the declaration of expf.
8800         * doc/posix-functions/expf.texi: Mention the new module.
8801
8802         exp: Use a .m4 file.
8803         * m4/exp.m4: New file.
8804         * modules/exp (Files): Add it.
8805         (configure.ac): Just invoke gl_FUNC_EXP.
8806
8807 2011-10-08  Bruno Haible  <bruno@clisp.org>
8808
8809         Tests for module 'sqrtf'.
8810         * modules/sqrtf-tests: New file.
8811         * tests/test-sqrtf.c: New file.
8812
8813         New module 'sqrtf'.
8814         * lib/math.in.h (sqrtf): New declaration.
8815         * lib/sqrtf.c: New file.
8816         * m4/sqrtf.m4: New file.
8817         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8818         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8819         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8820         * modules/sqrtf: New file.
8821         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8822         * doc/posix-functions/sqrtf.texi: Mention the new module.
8823
8824 2011-10-08  Bruno Haible  <bruno@clisp.org>
8825
8826         Tests: Avoid link failures w.r.t. libintl.
8827         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8828         $(LIBINTL).
8829         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8830         $(LIBINTL).
8831         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8832         against $(LIBINTL).
8833         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8834         $(LIBINTL).
8835         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8836         $(LIBINTL).
8837         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8838
8839 2011-10-08  Bruno Haible  <bruno@clisp.org>
8840
8841         pow tests: Defeat compiler optimizations.
8842         * tests/test-pow.c (main): Assign arguments to x and y before use.
8843
8844 2011-10-08  Bruno Haible  <bruno@clisp.org>
8845
8846         gnulib-tool: Improve last commit.
8847         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8848         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8849         ignore dependencies that are not among the modules list.
8850
8851 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8852
8853         gnulib-tool: don't follow dependencies to avoided modules
8854         This fixes a bug that is related to the previous one.
8855         * gnulib-tool (func_modules_transitive_closure)
8856         (func_emit_autoconf_snippets):
8857         Check whether a dependency is acceptable before using it.
8858         (--extract-dependencies): Report an error if --avoid is also used,
8859         since this combination of options is not yet supported.
8860
8861         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8862         Problem reported by Peter Dyballa in
8863         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8864         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8865         when echoing "$condition".
8866
8867 2011-10-07  Bruno Haible  <bruno@clisp.org>
8868
8869         Fix documentation about math functions on MacOS X.
8870         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8871         MacOS X 10.5.
8872         * doc/posix-functions/fdim.texi: Likewise.
8873         * doc/posix-functions/feclearexcept.texi: Likewise.
8874         * doc/posix-functions/fegetenv.texi: Likewise.
8875         * doc/posix-functions/fegetround.texi: Likewise.
8876         * doc/posix-functions/feholdexcept.texi: Likewise.
8877         * doc/posix-functions/feraiseexcept.texi: Likewise.
8878         * doc/posix-functions/fesetenv.texi: Likewise.
8879         * doc/posix-functions/fesetround.texi: Likewise.
8880         * doc/posix-functions/fetestexcept.texi: Likewise.
8881         * doc/posix-functions/feupdateenv.texi: Likewise.
8882         * doc/posix-functions/fmax.texi: Likewise.
8883         * doc/posix-functions/fmin.texi: Likewise.
8884         * doc/posix-functions/log2.texi: Likewise.
8885         * doc/posix-functions/modff.texi: Likewise.
8886         * doc/posix-functions/nan.texi: Likewise.
8887         * doc/posix-functions/nanf.texi: Likewise.
8888         * doc/posix-functions/nextafterf.texi: Likewise.
8889         * doc/posix-functions/remquo.texi: Likewise.
8890
8891 2011-10-07  Bruno Haible  <bruno@clisp.org>
8892
8893         modff: Drop assumption about library that defines modff.
8894         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8895         AC_CHECK_FUNCS.
8896         * modules/modff (Files): Add m4/mathfunc.m4.
8897
8898 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8899
8900         raise tests: Avoid a GCC warning.
8901         * tests/test-raise.c (handler): Use _Noreturn.
8902
8903 2011-10-07  Bruno Haible  <bruno@clisp.org>
8904
8905         Tests for module 'ldexpf'.
8906         * modules/ldexpf-tests: New file.
8907         * tests/test-ldexpf.c: New file.
8908
8909         New module 'ldexpf'.
8910         * lib/math.in.h (ldexpf): New declaration.
8911         * lib/ldexpf.c: New file.
8912         * m4/ldexpf.m4: New file.
8913         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8915         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8916         * modules/ldexpf: New file.
8917         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8918         * doc/posix-functions/ldexpf.texi: Mention the new module.
8919
8920 2011-10-06  Bruno Haible  <bruno@clisp.org>
8921
8922         frexpf: Work around problems on IRIX and mingw.
8923         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8925         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8926         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8927         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8928         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8929         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8930
8931 2011-10-06  Bruno Haible  <bruno@clisp.org>
8932
8933         fabsf: Drop assumption about library that defines fabsf.
8934         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8935         AC_CHECK_FUNCS.
8936         * modules/fabsf (Files): Add m4/mathfunc.m4.
8937
8938 2011-10-06  Bruno Haible  <bruno@clisp.org>
8939
8940         frexpf: Drop assumption about library that defines frexpf.
8941         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8942         'int *', 'float *', 'long double *', 'float', 'long double'.
8943         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8944         AC_CHECK_FUNCS.
8945         * modules/frexpf (Files): Add m4/mathfunc.m4.
8946
8947         Tests for module 'frexpf'.
8948         * modules/frexpf-tests: New file.
8949         * tests/test-frexpf.c: New file.
8950
8951         New module 'frexpf'.
8952         * lib/math.in.h (frexpf): New declaration.
8953         * lib/frexpf.c: New file.
8954         * m4/frexpf.m4: New file.
8955         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8956         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8957         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8958         * modules/frexpf: New file.
8959         * tests/test-math-c++.cc: Check the declaration of frexpf.
8960         * doc/posix-functions/frexpf.texi: Mention the new module.
8961
8962 2011-10-06  Bruno Haible  <bruno@clisp.org>
8963
8964         math: Sort function declarations of math.in.h.
8965         * lib/math.in.h (frexp, logb): Move declarations.
8966
8967 2011-10-05  Bruno Haible  <bruno@clisp.org>
8968
8969         Tests for module 'modff'.
8970         * modules/modff-tests: New file.
8971         * tests/test-modff.c: New file.
8972
8973         New module 'modff'.
8974         * lib/math.in.h (modff): New declaration.
8975         * lib/modff.c: New file.
8976         * m4/modff.m4: New file.
8977         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8979         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8980         * modules/modff: New file.
8981         * tests/test-math-c++.cc: Check the declaration of modff.
8982         * doc/posix-functions/modff.texi: Mention the new module.
8983
8984         modf tests: Make test sharper.
8985         * tests/test-modf.c (main): Strengthen upper bound.
8986
8987         modf: Use a .m4 file.
8988         * m4/modf.m4: New file.
8989         * modules/modf (Files): Add it.
8990         (configure.ac): Just invoke gl_FUNC_MODF.
8991
8992 2011-10-05  Bruno Haible  <bruno@clisp.org>
8993
8994         Tests for module 'fmodf'.
8995         * modules/fmodf-tests: New file.
8996         * tests/test-fmodf.c: New file.
8997
8998         New module 'fmodf'.
8999         * lib/math.in.h (fmodf): New declaration.
9000         * lib/fmodf.c: New file.
9001         * m4/fmodf.m4: New file.
9002         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
9003         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
9004         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
9005         * modules/fmodf: New file.
9006         * tests/test-math-c++.cc: Check the declaration of fmodf.
9007         * doc/posix-functions/fmodf.texi: Mention the new module.
9008
9009         fmod: Use a .m4 file.
9010         * m4/fmod.m4: New file.
9011         * modules/fmod (Files): Add it.
9012         (configure.ac): Just invoke gl_FUNC_FMOD.
9013
9014 2011-10-05  Bruno Haible  <bruno@clisp.org>
9015
9016         Tests for module 'fabsf'.
9017         * modules/fabsf-tests: New file.
9018         * tests/test-fabsf.c: New file.
9019
9020         New module 'fabsf'.
9021         * lib/math.in.h (fabsf): New declaration.
9022         * lib/fabsf.c: New file.
9023         * m4/fabsf.m4: New file.
9024         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
9025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
9026         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
9027         * modules/fabsf: New file.
9028         * tests/test-math-c++.cc: Check the declaration of fabsf.
9029         * doc/posix-functions/fabsf.texi: Mention the new module.
9030
9031         fabs: Use a .m4 file.
9032         * m4/fabs.m4: New file.
9033         * modules/fabs (Files): Add it.
9034         (configure.ac): Just invoke gl_FUNC_FABS.
9035
9036 2011-10-05  Jim Meyering  <meyering@redhat.com>
9037
9038         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9039         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9040         ls -lL regression introduced in coreutils-8.12, it does so at the
9041         cost of an additional stat call in the common case.  Besides, now
9042         that the kernel change that prompted commit 95f7c57f has been reverted
9043         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9044         we have no use for commit 95f7c57f, "file-has-acl: use
9045         acl_extended_file_nofollow if available".
9046
9047 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9048
9049         file-has-acl: revert unintended change in behavior of ls -L
9050         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9051         derived from...
9052         (file_has_acl): ...code here.  Call it.
9053         This problem was introduced with 2011-07-22 commit 95f7c57f,
9054         "file-has-acl: use acl_extended_file_nofollow if available".
9055         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9056
9057 2011-10-03  Bruno Haible  <bruno@clisp.org>
9058
9059         poll: Avoid link errors on MSVC.
9060         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9061         * modules/poll (Depends-on): Add sockets.
9062         (Link): New section.
9063         * NEWS: Mention the change.
9064         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9065         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9066         $(LIB_POLL) instead of $(LIBSOCKET).
9067
9068 2011-10-03  Bruno Haible  <bruno@clisp.org>
9069
9070         sys_select tests: Fix link error on MSVC 9.
9071         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9072         with $(LIB_SELECT) instead of $(LIBSOCKET).
9073
9074 2011-10-03  Bruno Haible  <bruno@clisp.org>
9075
9076         sys_select: Fix compilation error on mingw.
9077         * lib/sys_select.in.h: On native Windows, include <io.h>.
9078
9079 2011-10-03  Bruno Haible  <bruno@clisp.org>
9080
9081         wmemset: Support for MSVC.
9082         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9083         whether wmemset() exists.
9084
9085 2011-10-03  Bruno Haible  <bruno@clisp.org>
9086
9087         wmemmove: Support for MSVC.
9088         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9089         whether wmemmove() exists.
9090
9091 2011-10-03  Bruno Haible  <bruno@clisp.org>
9092
9093         wmemcpy: Support for MSVC.
9094         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9095         whether wmemcpy() exists.
9096
9097 2011-10-03  Bruno Haible  <bruno@clisp.org>
9098
9099         wmemcmp: Support for MSVC.
9100         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9101         whether wmemcmp() exists.
9102
9103 2011-10-03  Bruno Haible  <bruno@clisp.org>
9104
9105         wmemchr: Support for MSVC.
9106         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9107         whether wmemchr() exists.
9108
9109 2011-10-03  Bruno Haible  <bruno@clisp.org>
9110
9111         glthread/*, strsignal: Support for MSVC.
9112         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9113         including <winsock.h> on MSVC 9.
9114         * lib/glthread/lock.h: Likewise.
9115         * lib/glthread/thread.h: Likewise.
9116         * lib/glthread/tls.h: Likewise.
9117         * lib/glthread/yield.h: Likewise.
9118         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9119         if HAVE_UNISTD_H is false.
9120         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9121
9122 2011-10-03  Bruno Haible  <bruno@clisp.org>
9123
9124         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9125         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9126         Set to 100000.
9127
9128 2011-10-03  Bruno Haible  <bruno@clisp.org>
9129
9130         acl: Fix specification.
9131         * lib/file-has-acl.c (file_has_acl): Fix specification.
9132
9133 2011-10-03  Bruno Haible  <bruno@clisp.org>
9134
9135         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9136         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9137         (compute_curr_prefix, shared_library_fullname,
9138         find_shared_library_fullname, get_shared_library_fullname, relocate):
9139         Use it together with PIC && INSTALLDIR.
9140         Reported by <jojelino@gmail.com>
9141         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9142
9143 2011-10-01  Jim Meyering  <meyering@redhat.com>
9144
9145         maint.mk: adjust a release-related rule not to require use of gzip
9146         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9147         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9148         projects that build only .tar.xz files.  Also fix an erroneous test.
9149
9150         test-linkat: don't leave behind a temporary file
9151         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9152         Otherwise, coreutils' "make distcheck" would fail with this:
9153           Only in /c/cu/tests/torture/coreutils/test/\
9154             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9155           make[2]: *** [my-distcheck] Error 1
9156
9157         float, math: add omitted file
9158         * lib/itold.c: Add file, required for yesterday's float change.
9159
9160 2011-10-01  Bruno Haible  <bruno@clisp.org>
9161
9162         isinf: Fix for OpenBSD/x86.
9163         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9164         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9165         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9166
9167 2011-10-01  Bruno Haible  <bruno@clisp.org>
9168
9169         isfinite: Fix syntax error in configure test.
9170         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9171
9172         isfinite: Fix typo.
9173         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9174         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9175
9176 2011-10-01  Bruno Haible  <bruno@clisp.org>
9177
9178         nonblocking tests: Fix test failure on Linux/IA-64.
9179         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9180         Set to 270000.
9181
9182 2011-10-01  Bruno Haible  <bruno@clisp.org>
9183
9184         mkfifoat tests: Fix a test failure on mingw.
9185         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9186         with error ENOSYS.
9187
9188 2011-09-30  Bruno Haible  <bruno@clisp.org>
9189
9190         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9191         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9192         'long double'. Set REPLACE_ITOLD.
9193         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9194         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9195         * lib/itold.c: New file.
9196         * modules/float (Files): Add lib/itold.c.
9197         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9198         (Makefile.am): Substitute REPLACE_ITOLD.
9199         * modules/math (Depends-on): Add float.
9200         (Makefile.am): Substitute REPLACE_ITOLD.
9201         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9202         * doc/posix-headers/math.texi: Likewise.
9203         * doc/posix-functions/logl.texi: Likewise.
9204
9205 2011-09-30  Bruno Haible  <bruno@clisp.org>
9206
9207         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9208         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9209         Set to 140000.
9210
9211 2011-09-30  Bruno Haible  <bruno@clisp.org>
9212
9213         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9214         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9215         invocation, say "right after AC_PROG_CC_STDC", not "right after
9216         AC_PROG_CC".
9217         Reported by Gary V. Vaughan <gary@gnu.org>.
9218
9219 2011-09-30  Bruno Haible  <bruno@clisp.org>
9220
9221         Centralize C99 requirement.
9222         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9223         * modules/stdarg (configure.ac-early): Invoke it instead of
9224         AC_PROG_CC_STDC.
9225         Reported by Gary V. Vaughan and Paul Eggert.
9226
9227 2011-09-29  Bruno Haible  <bruno@clisp.org>
9228
9229         float: Fix LDBL_MAX value on Linux/PowerPC.
9230         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9231         on Linux/PowerPC.
9232         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9233         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9234         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9235         platform.
9236         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9237
9238 2011-09-29  Bruno Haible  <bruno@clisp.org>
9239
9240         doc: Improve doc about gl_EARLY.
9241         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9242         AC_PROG_CC_STDC invocation.
9243         Reported by Gary V. Vaughan <gary@gnu.org>.
9244
9245 2011-09-28  Bruno Haible  <bruno@clisp.org>
9246
9247         fgetc, fputc, fread, fwrite tests: Fix link error.
9248         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9249         on non-MSVC platforms.
9250         * tests/test-fputc.c (main): Likewise.
9251         * tests/test-fread.c (main): Likewise.
9252         * tests/test-fwrite.c (main): Likewise.
9253         Reported by Jim Meyering.
9254
9255 2011-09-27  Bruno Haible  <bruno@clisp.org>
9256
9257         fputc, fwrite tests: Avoid test failure on MSVC.
9258         * tests/test-fgetc.c: Include msvc-inval.h.
9259         (main): Invoke gl_msvc_inval_ensure_handler.
9260         * tests/test-fputc.c: Include msvc-inval.h.
9261         (main): Invoke gl_msvc_inval_ensure_handler.
9262         * tests/test-fread.c: Include msvc-inval.h.
9263         (main): Invoke gl_msvc_inval_ensure_handler.
9264         * tests/test-fwrite.c: Include msvc-inval.h.
9265         (main): Invoke gl_msvc_inval_ensure_handler.
9266         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9267         * modules/fputc-tests (Depends-on): Likewise.
9268         * modules/fread-tests (Depends-on): Likewise.
9269         * modules/fwrite-tests (Depends-on): Likewise.
9270
9271 2011-09-27  Bruno Haible  <bruno@clisp.org>
9272
9273         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9274         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9275         (raise): Remove older, duplicated declaration.
9276         (_gl_raise_SIGPIPE): New declaration.
9277         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9278         (rpl_raise): Remove function.
9279         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9280         a gnulib-defined SIGPIPE here.
9281         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9282         'sigprocmask' has detected missing signal-blocking and the module
9283         'sigpipe' is enabled.
9284         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9285
9286 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9287
9288         base64-tests: avoid memory leak
9289         * tests/test-base64.c (main): Plug memory leak.
9290
9291         base32: new module
9292         * modules/base32: New module.
9293         * lib/base32.c: New file.
9294         * lib/base32.h: Likewise.
9295         * m4/base32.m4: Likewise.
9296         * modules/base32-tests: New test.
9297         * tests/test-base32.c: Likewise.
9298         * MODULES.html.sh (Misc): Mention it.
9299
9300 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9301
9302         gnulib: use more-standard license notice wording
9303         * gnulib-tool (func_emit_copyright_notice): When emitting a
9304         license notice into a file, use the standard wording as suggested
9305         by the current information for GNU maintainers, except say "file"
9306         rather than "program".  The new wording gives a license version
9307         number, which addresses an issue raised by Glenn Morris in
9308         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9309         * m4/onceonly.m4: Use that same wording here, too.
9310
9311         dup2: minor simplification
9312         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9313         as lib/dup2.c no longer uses 'inline'.
9314
9315 2011-09-25  Bruno Haible  <bruno@clisp.org>
9316
9317         strings: Fix compilation error on MSVC.
9318         * lib/strings.in.h: Include <stddef.h> for size_t.
9319
9320 2011-09-25  Bruno Haible  <bruno@clisp.org>
9321
9322         fflush et al.: Document limitation on MSVC.
9323         * doc/posix-functions/fflush.texi: Document possible crash in handling
9324         mode other than DEFAULT_HANDLING.
9325         * doc/posix-functions/fgetc.texi: Likewise.
9326         * doc/posix-functions/fputc.texi: Likewise.
9327         * doc/posix-functions/fread.texi: Likewise.
9328         * doc/posix-functions/fwrite.texi: Likewise.
9329
9330 2011-09-25  Bruno Haible  <bruno@clisp.org>
9331
9332         msvc-inval: Allow three invalid parameter handling modes.
9333         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9334         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9335         macros.
9336         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9337         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9338         SANE_LIBRARY_HANDLING as a no-op.
9339         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9340         <stdlib.h>.
9341         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9342
9343 2011-09-25  Bruno Haible  <bruno@clisp.org>
9344
9345         msvc-inval: Make handler multithread-safe.
9346         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9347         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9348         declarations.
9349         (gl_msvc_inval_current): New declaration.
9350         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9351         Operate on the structure returned by gl_msvc_inval_current().
9352         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9353         Remove varaiables.
9354         (tls_index, tls_initialized): New variables.
9355         (not_per_thread): New variable.
9356         (gl_msvc_inval_current): New function.
9357         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9358         returned by gl_msvc_inval_current().
9359
9360 2011-09-25  Bruno Haible  <bruno@clisp.org>
9361
9362         msvc-inval: Install handler globally.
9363         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
9364         !_MSC_VER.
9365         (gl_msvc_invalid_parameter_handler): Remove declaration.
9366         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
9367         declarations.
9368         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9369         Install the handler globally, don't uninstall it.
9370         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
9371         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
9372         currently valid, call RaiseException instead.
9373         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
9374         for !_MSC_VER.
9375
9376 2011-09-25  Bruno Haible  <bruno@clisp.org>
9377
9378         strerror_r-posix: Fix for MSVC 9.
9379         * lib/strerror_r.c (local_snprintf): New function.
9380         (snprintf): Define to local_snprintf, not to _snprintf.
9381
9382 2011-09-25  Bruno Haible  <bruno@clisp.org>
9383
9384         ftruncate: Support for MSVC 9.
9385         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
9386         (chsize_nothrow): New function.
9387         (chsize): Redefine as a macro.
9388         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
9389         * modules/ftruncate (Depends-on): Add msvc-inval.
9390
9391 2011-09-25  Bruno Haible  <bruno@clisp.org>
9392
9393         New module 'fstat'.
9394         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
9395         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
9396         * lib/fchdir.c (rpl_fstat): Remove function.
9397         * m4/fstat.m4: New file.
9398         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
9399         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
9400         declared.
9401         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
9402         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
9403         * modules/fstat: New file.
9404         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
9405         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
9406         is set.
9407         * doc/posix-functions/fstat.texi: Mention the new module and the
9408         problem on MSVC.
9409         * NEWS: Mention the change.
9410         * modules/acl (Depends-on): Add fstat.
9411         * modules/chdir-safer (Depends-on): Likewise.
9412         * modules/chown (Depends-on): Likewise.
9413         * modules/copy-file (Depends-on): Likewise.
9414         * modules/fchdir (Depends-on): Likewise.
9415         * modules/fdopendir (Depends-on): Likewise.
9416         * modules/fopen (Depends-on): Likewise.
9417         * modules/fts (Depends-on): Likewise.
9418         * modules/getcwd (Depends-on): Likewise.
9419         * modules/isapipe (Depends-on): Likewise.
9420         * modules/linkat (Depends-on): Likewise.
9421         * modules/lseek (Depends-on): Likewise.
9422         * modules/mkdir-p (Depends-on): Likewise.
9423         * modules/open (Depends-on): Likewise.
9424         * modules/openat (Depends-on): Likewise.
9425         * modules/read-file (Depends-on): Likewise.
9426         * modules/renameat (Depends-on): Likewise.
9427         * modules/utimens (Depends-on): Likewise.
9428
9429 2011-09-25  Bruno Haible  <bruno@clisp.org>
9430
9431         linkat: Fix compilation on MSVC 9.
9432         * lib/linkat.c: Don't include <stdint.h>.
9433
9434 2011-09-25  Bruno Haible  <bruno@clisp.org>
9435
9436         fclose: Support for MSVC 9.
9437         * lib/fclose.c: Include msvc-inval.h.
9438         (fclose_nothrow): New function.
9439         (rpl_fclose): Use it.
9440         * modules/fclose (Depends-on): Add msvc-inval.
9441         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
9442
9443 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9444
9445         dup2: minor simplifications
9446         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
9447         that it's a performance win.
9448         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
9449         ! defined __CYGWIN__)" to "ifdef F_GETFL".
9450
9451 2011-09-24  Jim Meyering  <meyering@redhat.com>
9452
9453         test-futimens: avoid a warning from gcc -Wshadow
9454         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
9455         to avoid a shadowing warning.
9456
9457 2011-09-24  Bruno Haible  <bruno@clisp.org>
9458
9459         fdopen: Support for MSVC 9.
9460         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
9461         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9462         * lib/fdopen.c: Include msvc-inval.h.
9463         (fdopen_nothrow): New function.
9464         (rpl_fdopen): Use it.
9465         * modules/fdopen (Depends-on): Add msvc-inval.
9466         * modules/fclose-tests (Depends-on): Add fdopen.
9467         * modules/fflush-tests (Depends-on): Likewise.
9468         * modules/fgetc-tests (Depends-on): Likewise.
9469         * modules/fputc-tests (Depends-on): Likewise.
9470         * modules/fread-tests (Depends-on): Likewise.
9471         * modules/freopen-tests (Depends-on): Likewise.
9472         * modules/fseeko-tests (Depends-on): Likewise.
9473         * modules/ftello-tests (Depends-on): Likewise.
9474         * modules/fwrite-tests  (Depends-on): Likewise.
9475         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
9476
9477 2011-09-24  Bruno Haible  <bruno@clisp.org>
9478
9479         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
9480         * modules/fgetc-tests (Depends-on): Add unistd.
9481         * modules/fputc-tests (Depends-on): Likewise.
9482         * modules/fread-tests (Depends-on): Likewise.
9483         * modules/fwrite-tests (Depends-on): Likewise.
9484
9485 2011-09-24  Bruno Haible  <bruno@clisp.org>
9486
9487         dup: Simplify autoconf test.
9488         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
9489         on gl_MSVC_INVAL's result.
9490
9491 2011-09-24  Bruno Haible  <bruno@clisp.org>
9492
9493         Tests for function fwrite().
9494         * modules/fwrite-tests: New file.
9495         * tests/test-fwrite.c: New file.
9496         * modules/stdio-tests (Depends-on): Add fwrite-tests.
9497
9498         Tests for function fread().
9499         * modules/fread-tests: New file.
9500         * tests/test-fread.c: New file.
9501         * modules/stdio-tests (Depends-on): Add fread-tests.
9502
9503         Activate fputc tests.
9504         * modules/stdio-tests (Depends-on): Add fputc-tests.
9505
9506         Enhance fgetc, fputc tests.
9507         * tests/test-fgetc.c (main): Also test the stream's error indicator.
9508         * tests/test-fputc.c (main): Likewise.
9509
9510 2011-09-24  Bruno Haible  <bruno@clisp.org>
9511
9512         write: Support for MSVC 9.
9513         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9514         is not 1.
9515         * lib/write.c (write_nothrow): New function.
9516         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9517         not 1. Use write_nothrow.
9518         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9519         invalid parameter handler.
9520         (gl_PREREQ_WRITE): New macro.
9521         * modules/write (Depends-on): Add msvc-inval.
9522         (configure.ac): Invoke gl_PREREQ_WRITE.
9523         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9524
9525 2011-09-24  Bruno Haible  <bruno@clisp.org>
9526
9527         read: Fix last commit.
9528         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9529
9530 2011-09-24  Bruno Haible  <bruno@clisp.org>
9531
9532         dup2: Fix last commit.
9533         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9534         (rpl_dup2): Disable fcntl workaround on native Windows.
9535
9536         sigprocmask: Make code safer.
9537         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9538         section that changes macro definitions for this compilation unit.
9539
9540 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9541
9542         dup2: clarify by coalescing Windows-specific material
9543         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9544         "msvc-nothrow.h"' to the Windows-specific section, so that the
9545         Emacs source need not contain these include files.
9546         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9547         Windows-specific fixes into this function rather than just the
9548         nothrow fix, as this shortens and clarifies the code.  Always
9549         define as a function, as that's a bit cleaner than having it be
9550         sometimes a function and sometimes a macro.
9551         (rpl_dup2): Move the Windows-specific stuff out of here and into
9552         ms_windows_dup2.  Don't protect the Haiku-related fix with
9553         "#if !defined __linux__", as the same code also works around
9554         a Linux kernel bug, and it doesn't add any system calls on any
9555         platform.  Add comment about FreeBSD 6.1.
9556
9557         sigprocmask: move #include directive
9558         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9559         Windows-specific section, so that the Emacs source need not
9560         contain msvc-inval.h.
9561
9562 2011-09-23  Bruno Haible  <bruno@clisp.org>
9563
9564         read: Support for MSVC 9.
9565         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9566         is not 1.
9567         * lib/read.c (read_nothrow): New function.
9568         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9569         read_nothrow.
9570         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9571         invalid parameter handler.
9572         (gl_PREREQ_READ): New macro.
9573         * modules/read (Depends-on): Add msvc-inval.
9574         (configure.ac): Invoke gl_PREREQ_READ.
9575         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9576
9577 2011-09-23  Bruno Haible  <bruno@clisp.org>
9578
9579         close: Support for MSVC 9.
9580         * lib/close.c: Include <errno.h>, msvc-inval.h.
9581         (close_nothrow): New function.
9582         (rpl_close): Use it.
9583         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9584         invalid parameter handler.
9585         * modules/close (Depends-on): Add msvc-inval.
9586         * modules/dup2-tests (Depends-on): Add close.
9587         * modules/dup3-tests (Depends-on): Likewise.
9588         * modules/fcntl-tests (Depends-on): Likewise.
9589         * modules/spawn-pipe-tests (Depends-on): Likewise.
9590         * modules/unistd-safer-tests (Depends-on): Likewise.
9591         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9592
9593 2011-09-23  Bruno Haible  <bruno@clisp.org>
9594
9595         New module 'dup'.
9596         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9597         Allow replacement.
9598         * lib/dup.c: New file.
9599         * lib/fchdir.c (rpl_dup): Remove function.
9600         * m4/dup.m4: New file.
9601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9602         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9603         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9604         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9605         * modules/dup: New file.
9606         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9607         'dup' module is in use.
9608         * modules/fdopendir (Depends-on): Add dup.
9609         * modules/fdutimensat-tests (Depends-on): Likewise.
9610         * modules/fts (Depends-on): Likewise.
9611         * modules/futimens-tests (Depends-on): Likewise.
9612         * modules/posix_spawnp-tests (Depends-on): Likewise.
9613         * modules/unistd-safer-tests (Depends-on): Likewise.
9614         * modules/utimens-tests (Depends-on): Likewise.
9615         * doc/posix-functions/dup.texi: Mention the new module and the problem
9616         on MSVC.
9617
9618 2011-09-23  Bruno Haible  <bruno@clisp.org>
9619
9620         getdtablesize: Support for MSVC 9.
9621         * lib/getdtablesize.c: Include msvc-inval.h.
9622         (_setmaxstdio_nothrow): New function.
9623         (_setmaxstdio): Redefine it.
9624         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9625         * modules/getdtablesize (Depends-on): Add msvc-inval.
9626         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9627
9628 2011-09-23  Bruno Haible  <bruno@clisp.org>
9629
9630         signal-h: Rename from signal.
9631         * modules/signal-h: Renamed from modules/signal.
9632         * modules/pthread_sigmask (Depends-on): Update.
9633         * modules/raise (Depends-on): Likewise.
9634         * modules/sigaction (Depends-on): Likewise.
9635         * modules/sigpipe (Depends-on): Likewise.
9636         * modules/sigprocmask (Depends-on): Likewise.
9637         * modules/sys_select (Depends-on): Likewise.
9638         * modules/signal-h-tests: Renamed from modules/signal-tests.
9639         (Files, Depends-on, Makefile.am): Update.
9640         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9641         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9642         (Files, Makefile.am): Update.
9643         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9644         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9645         * modules/signal: New placeholder file.
9646         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9647         * doc/posix-headers/signal.texi: Update.
9648         * NEWS: Mention the change.
9649
9650 2011-09-23  Bruno Haible  <bruno@clisp.org>
9651
9652         sigprocmask: Avoid crashes through signal() on MSVC 9.
9653         * lib/sigprocmask.c: Include msvc-inval.h.
9654         (signal_nothrow): New function.
9655         (signal): Redefine it.
9656         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9657         * modules/sigprocmask (Depends-on): Add msvc-inval.
9658         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9659
9660 2011-09-23  Bruno Haible  <bruno@clisp.org>
9661
9662         Tests for module 'raise'.
9663         * modules/raise-tests: New file.
9664         * tests/test-raise.c: New file.
9665
9666         raise: Support for MSVC.
9667         * lib/signal.in.h (raise): New declaration.
9668         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9669         for native Windows platforms.
9670         * m4/raise.m4: New file.
9671         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9672         HAVE_RAISE, REPLACE_RAISE.
9673         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9674         REPLACE_RAISE.
9675         * modules/raise (Status, Notice): Remove fields.
9676         (Files): Add m4/raise.m4.
9677         (Depends-on): Add signal, msvc-inval.
9678         (configure.ac): Use the common idioms.
9679         (Maintainer): Add me.
9680         * tests/test-signal-c++.cc: Check the signature of raise.
9681         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9682
9683 2011-09-23  Bruno Haible  <bruno@clisp.org>
9684
9685         pipe2: Fix compilation on pre-C99 compilers.
9686         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9687
9688 2011-09-23  Bruno Haible  <bruno@clisp.org>
9689
9690         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9691         * lib/msvc-nothrow.h: New file.
9692         * lib/msvc-nothrow.c: New file.
9693         * m4/msvc-nothrow.m4: New file.
9694         * modules/msvc-nothrow: New file.
9695         * lib/dup2.c: Include msvc-nothrow.h.
9696         (rpl_dup2): No need to protect _get_osfhandle call here.
9697         * lib/accept4.c: Include msvc-nothrow.h.
9698         * lib/error.c: Likewise.
9699         * lib/fcntl.c: Likewise.
9700         * lib/lseek.c: Likewise.
9701         * lib/nonblocking.c: Likewise.
9702         * lib/poll.c: Likewise.
9703         * lib/read.c: Likewise.
9704         * lib/select.c: Likewise.
9705         * lib/sockets.h: Likewise.
9706         * lib/sockets.c: Likewise.
9707         * lib/stdio-read.c: Likewise.
9708         * lib/stdio-write.c: Likewise.
9709         * lib/write.c: Likewise.
9710         * lib/w32sock.h: Likewise.
9711         * lib/w32spawn.h: Likewise.
9712         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9713         * lib/fsync.c: Likewise.
9714         * lib/isapipe.c: Likewise.
9715         * modules/dup2 (Depends-on): Add msvc-nothrow.
9716         * modules/accept4 (Depends-on): Likewise.
9717         * modules/error (Depends-on): Likewise.
9718         * modules/fcntl (Depends-on): Likewise.
9719         * modules/lseek (Depends-on): Likewise.
9720         * modules/nonblocking (Depends-on): Likewise.
9721         * modules/poll (Depends-on): Likewise.
9722         * modules/read (Depends-on): Likewise.
9723         * modules/select (Depends-on): Likewise.
9724         * modules/sockets (Depends-on): Likewise.
9725         * modules/sigpipe (Depends-on): Likewise.
9726         * modules/write (Depends-on): Likewise.
9727         * modules/accept (Depends-on): Likewise.
9728         * modules/bind (Depends-on): Likewise.
9729         * modules/connect (Depends-on): Likewise.
9730         * modules/gethostname (Depends-on): Likewise.
9731         * modules/getpeername (Depends-on): Likewise.
9732         * modules/getsockname (Depends-on): Likewise.
9733         * modules/getsockopt (Depends-on): Likewise.
9734         * modules/ioctl (Depends-on): Likewise.
9735         * modules/listen (Depends-on): Likewise.
9736         * modules/recv (Depends-on): Likewise.
9737         * modules/recvfrom (Depends-on): Likewise.
9738         * modules/send (Depends-on): Likewise.
9739         * modules/sendto (Depends-on): Likewise.
9740         * modules/setsockopt (Depends-on): Likewise.
9741         * modules/shutdown (Depends-on): Likewise.
9742         * modules/socket (Depends-on): Likewise.
9743         * modules/execute (Depends-on): Likewise.
9744         * modules/spawn-pipe (Depends-on): Likewise.
9745         * modules/flock (Depends-on): Likewise.
9746         * modules/fsync (Depends-on): Likewise.
9747         * modules/isapipe (Depends-on): Likewise.
9748         * tests/test-cloexec.c: Include msvc-nothrow.h.
9749         * tests/test-dup-safer.c: Likewise.
9750         * tests/test-dup2.c: Likewise.
9751         * tests/test-dup3.c: Likewise.
9752         * tests/test-fcntl.c: Likewise.
9753         * tests/test-pipe.c: Likewise.
9754         * tests/test-pipe2.c: Likewise.
9755         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9756         * modules/unistd-safer-tests (Depends-on): Likewise.
9757         * modules/dup2-tests (Depends-on): Likewise.
9758         * modules/dup3-tests (Depends-on): Likewise.
9759         * modules/fcntl-tests (Depends-on): Likewise.
9760         * modules/pipe-posix-tests (Depends-on): Likewise.
9761         * modules/pipe2-tests (Depends-on): Likewise.
9762
9763 2011-09-23  Bruno Haible  <bruno@clisp.org>
9764
9765         dup2: Make code more maintainable.
9766         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9767         (rpl_dup2): Use it.
9768         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9769         * modules/dup2 (configure.ac): Invoke it.
9770         Reported by Paul Eggert.
9771
9772 2011-09-23  Bruno Haible  <bruno@clisp.org>
9773
9774         msvc-inval: Fix compilation error.
9775         * lib/msvc-inval.h: Include <excpt.h>.
9776
9777 2011-09-23  Bruno Haible  <bruno@clisp.org>
9778
9779         mkdir: Tweak for MSVC 9.
9780         * lib/sys_stat.in.h: Update comments.
9781         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9782
9783         Tests for module 'chdir'.
9784         * modules/chdir-tests: New file.
9785         * tests/test-chdir.c: New file.
9786
9787         New module 'chdir'.
9788         * modules/chdir: New file.
9789         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9790         (chdir): New declaration.
9791         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9792         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9793         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9794         * tests/test-unistd-c++.cc: Check signature of chdir.
9795         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9796         * modules/chdir-long (Depends-on): Add chdir.
9797         * modules/fchdir (Depends-on): Likewise.
9798         * modules/rename (Depends-on): Likewise.
9799         * modules/savewd (Depends-on): Likewise.
9800
9801         rmdir: Support for mingw, MSVC 9.
9802         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9803         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9804
9805         getcwd: Tweak for MSVC 9.
9806         * lib/unistd.in.h: Update comments.
9807         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9808
9809 2011-09-22  Bruno Haible  <bruno@clisp.org>
9810
9811         strerror_r-posix: Avoid a link error on MSVC.
9812         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9813         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9814
9815 2011-09-22  Bruno Haible  <bruno@clisp.org>
9816
9817         select: Avoid link errors on MSVC.
9818         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9819         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9820         * modules/pselect (Link): Likewise.
9821         * NEWS: Mention the change.
9822         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9823         test-select-stdin against $(LIB_SELECT).
9824         * modules/pselect-tests (Makefile.am): Link test-pselect against
9825         $(LIB_SELECT).
9826
9827 2011-09-22  Bruno Haible  <bruno@clisp.org>
9828
9829         select: Avoid compilation error on MSVC.
9830         * lib/select.c: Don't include <stdbool.h>.
9831
9832 2011-09-21  Bruno Haible  <bruno@clisp.org>
9833
9834         Consolidate all uses of PATH_MAX in *.m4 files.
9835         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9836         macros.
9837         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9838         and gl_PATHMAX_SNIPPET.
9839         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9840         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9841         * modules/chdir-long (Files): Add m4/pathmax.m4.
9842         * modules/getcwd (Files): Likewise.
9843
9844 2011-09-21  Bruno Haible  <bruno@clisp.org>
9845
9846         ftruncate: Un-deprecate, concentrate on Win32 support.
9847         * modules/ftruncate (Status, Notice): Remove sections.
9848         (Depends-on): Add largefile.
9849         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9850         non-mingw platforms.
9851         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9852         include <io.h>.
9853         * modules/perror-tests (Depends-on): Add ftruncate.
9854         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9855         'ftruncate' module.
9856
9857 2011-09-21  Bruno Haible  <bruno@clisp.org>
9858
9859         Add dependencies to new dirent related modules.
9860         * modules/opendir (Depends-on): Add closedir.
9861         * modules/getcwd (Depends-on): Add opendir, closedir.
9862         * modules/dirent-safer-tests (Depends-on): Likewise.
9863         * modules/fdopendir-tests (Depends-on): Likewise.
9864         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9865         * modules/renameat-tests (Depends-on): Likewise.
9866
9867 2011-09-21  Bruno Haible  <bruno@clisp.org>
9868
9869         opendir: Avoid compilation error on mingw.
9870         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9871         * modules/opendir (Depends-on): Add unistd.
9872
9873 2011-09-21  Bruno Haible  <bruno@clisp.org>
9874
9875         ftruncate tests: Avoid a test failure on mingw.
9876         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9877
9878 2011-09-21  Bruno Haible  <bruno@clisp.org>
9879
9880         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9881         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9882         native Windows.
9883
9884 2011-09-21  Bruno Haible  <bruno@clisp.org>
9885
9886         New module 'fdopen'.
9887         * lib/stdio.in.h (fdopen): New declaration.
9888         * lib/fdopen.c: New file.
9889         * m4/fdopen.m4: New file.
9890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9891         REPLACE_FDOPEN.
9892         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9893         REPLACE_FDOPEN.
9894         * modules/fdopen: New file.
9895         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9896         * tests/test-stdio-c++.cc: Check signature of fdopen.
9897         * doc/posix-functions/fdopen.texi: Mention the new module.
9898
9899 2011-09-21  Bruno Haible  <bruno@clisp.org>
9900
9901         unlockpt tests: Avoid test failure on NetBSD 5.1.
9902         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9903         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9904
9905 2011-09-21  Bruno Haible  <bruno@clisp.org>
9906
9907         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9908         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9909         * tests/test-getlogin_r.c (main): Likewise.
9910
9911 2011-09-20  Bruno Haible  <bruno@clisp.org>
9912
9913         time tests: Don't require pid_t.
9914         * doc/posix-headers/time.texi: Revert last change.
9915         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9916         * tests/test-time.c: Comment out the check for pid_t.
9917
9918 2011-09-20  Bruno Haible  <bruno@clisp.org>
9919
9920         fsync tests: Avoid a test failure on mingw.
9921         * tests/test-fsync.c (main): Allow a failure with EIO.
9922
9923 2011-09-20  Bruno Haible  <bruno@clisp.org>
9924
9925         euidaccess: Update comments.
9926         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9927
9928 2011-09-20  Bruno Haible  <bruno@clisp.org>
9929
9930         Ensure EBADF returns for socket functions on mingw.
9931         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9932         descriptor is invalid.
9933         * lib/bind.c (rpl_bind): Likewise.
9934         * lib/connect.c (rpl_connect): Likewise.
9935         * lib/getpeername.c (rpl_getpeername): Likewise.
9936         * lib/getsockname.c (rpl_getsockname): Likewise.
9937         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9938         * lib/listen.c (rpl_listen): Likewise.
9939         * lib/recv.c (rpl_recv): Likewise.
9940         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9941         * lib/send.c (rpl_send): Likewise.
9942         * lib/sendto.c (rpl_sendto): Likewise.
9943         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9944         * lib/shutdown.c (rpl_shutdown): Likewise.
9945
9946 2011-09-20  Bruno Haible  <bruno@clisp.org>
9947
9948         select tests: EBADF tests.
9949         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9950         test_bad_fd): New functions.
9951         (test_function): Invoke also test_bad_fd.
9952
9953 2011-09-20  Bruno Haible  <bruno@clisp.org>
9954
9955         Tests for module 'posix_spawn_file_actions_addopen.
9956         * modules/posix_spawn_file_actions_addopen-tests: New file.
9957         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9958
9959         Tests for module 'posix_spawn_file_actions_adddup2'.
9960         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9961         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9962
9963         Tests for module 'posix_spawn_file_actions_addclose'.
9964         * modules/posix_spawn_file_actions_addclose-tests: New file.
9965         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9966
9967 2011-09-20  Bruno Haible  <bruno@clisp.org>
9968
9969         Tests for module 'unlockpt'.
9970         * modules/unlockpt-tests: New file.
9971         * tests/test-unlockpt.c: New file.
9972         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9973
9974         Tests for module 'grantpt'.
9975         * modules/grantpt-tests: New file.
9976         * tests/test-grantpt.c: New file.
9977         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9978
9979 2011-09-20  Bruno Haible  <bruno@clisp.org>
9980
9981         freopen tests: EBADF tests.
9982         * tests/test-freopen.c: Include errno.h, unistd.h.
9983         (main): Add tests for EBADF, commented out for the moment.
9984
9985         fclose tests: EBADF tests.
9986         * tests/test-fclose.c (main): Add tests for EBADF.
9987
9988         fflush tests: EBADF tests.
9989         * tests/test-fflush.c: Include errno.h, macros.h.
9990         (main): Add tests for EBADF.
9991
9992         ftello tests: EBADF tests.
9993         * tests/test-ftello4.sh: New file.
9994         * tests/test-ftello4.c: New file.
9995         * modules/ftello-tests (Files): Add them.
9996         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9997
9998         fseeko tests: EBADF tests.
9999         * tests/test-fseeko4.sh: New file.
10000         * tests/test-fseeko4.c: New file.
10001         * modules/fseeko-tests (Files): Add them.
10002         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
10003
10004         Tests for function fputc().
10005         * modules/fputc-tests: New file.
10006         * tests/test-fputc.c: New file.
10007         * modules/stdio-tests (Depends-on): Add fputc-tests.
10008
10009         Tests for function fgetc().
10010         * modules/fgetc-tests: New file.
10011         * tests/test-fgetc.c: New file.
10012         * modules/stdio-tests (Depends-on): Add fgetc-tests.
10013
10014         Tests for function fdopen().
10015         * modules/fdopen-tests: New file.
10016         * tests/test-fdopen.c: New file.
10017         * modules/stdio-tests (Depends-on): Add fdopen-tests.
10018
10019         Tests for module 'vdprintf'.
10020         * modules/vdprintf-tests: New file.
10021         * tests/test-vdprintf.c: New file.
10022
10023         Tests for module 'dprintf'.
10024         * modules/dprintf-tests: New file.
10025         * tests/test-dprintf.c: New file.
10026
10027 2011-09-20  Bruno Haible  <bruno@clisp.org>
10028
10029         Tests for module 'ioctl'.
10030         * modules/ioctl-tests: New file.
10031         * tests/test-ioctl.c: New file.
10032
10033 2011-09-20  Bruno Haible  <bruno@clisp.org>
10034
10035         fcntl tests: EBADF tests.
10036         * tests/test-fcntl.c (main): Add more tests for EBADF.
10037
10038 2011-09-20  Bruno Haible  <bruno@clisp.org>
10039
10040         utimensat tests: EBADF tests.
10041         * tests/test-utimensat.c (main): Add tests for EBADF.
10042
10043         renameat tests: EBADF tests.
10044         * tests/test-renameat.c (main): Add tests for EBADF.
10045
10046         mkfifoat tests: EBADF tests.
10047         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10048
10049         readlinkat tests: EBADF tests.
10050         * tests/test-readlinkat.c (main): Add tests for EBADF.
10051
10052         symlinkat tests: EBADF tests.
10053         * tests/test-symlinkat.c (main): Add tests for EBADF.
10054
10055         linkat tests: EBADF tests.
10056         * tests/test-linkat.c (main): Add tests for EBADF.
10057
10058         Tests for module 'faccessat'.
10059         * modules/faccessat-tests: New file.
10060         * tests/test-faccessat.c: New file.
10061
10062         fdopendir tests: EBADF tests.
10063         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10064
10065         openat tests: EBADF tests.
10066         * tests/test-fchownat.c (main): Add tests for EBADF.
10067         * tests/test-fstatat.c (main): Likewise.
10068         * tests/test-mkdirat.c (main): Likewise.
10069         * tests/test-openat.c (main): Likewise.
10070         * tests/test-unlinkat.c (main): Likewise.
10071         * tests/test-fchmodat.c: New file.
10072         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10073         (Makefile.am): Also run 'test-fchmodat'.
10074
10075 2011-09-20  Bruno Haible  <bruno@clisp.org>
10076
10077         utimens, futimens, fdutimensat tests: EBADF tests.
10078         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10079
10080         Tests for function fstat().
10081         * modules/fstat-tests: New file.
10082         * tests/test-fstat.c: New file.
10083         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10084
10085 2011-09-20  Bruno Haible  <bruno@clisp.org>
10086
10087         test-ttyname_r tests: EBADF tests.
10088         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10089
10090         Tests for module 'isatty'.
10091         * modules/isatty-tests: New file.
10092         * tests/test-isatty.c: New file.
10093
10094         Tests for module 'write'.
10095         * modules/write-tests: New file.
10096         * tests/test-write.c: New file.
10097
10098         Tests for module 'read'.
10099         * modules/read-tests: New file.
10100         * tests/test-read.c: New file.
10101
10102         pwrite tests: EBADF tests.
10103         * tests/test-pwrite.c (main): Add tests for EBADF.
10104
10105         pread tests: EBADF tests.
10106         * tests/test-pread.c (main): Add tests for EBADF.
10107
10108         lseek tests: EBADF tests.
10109         * tests/test-lseek.c (main): Add more tests for EBADF.
10110
10111         Tests for module 'ftruncate'.
10112         * modules/ftruncate-tests: New file.
10113         * tests/test-ftruncate.sh: New file.
10114         * tests/test-ftruncate.c: New file.
10115
10116         fsync tests: EBADF tests.
10117         * tests/test-fsync.c (main): Add more tests for EBADF.
10118
10119         fdatasync tests: EBADF tests.
10120         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10121
10122         Tests for module 'fchown'.
10123         * modules/fchown-tests: New file.
10124         * tests/test-fchown.c: New file.
10125
10126         Tests for module 'fchmod'.
10127         * modules/fchmod-tests: New file.
10128         * tests/test-fchmod.c: New file.
10129
10130         fchdir tests: EBADF tests.
10131         * tests/test-fchdir.c (main): Add more tests for EBADF.
10132
10133         dup2 tests: EBADF tests.
10134         * tests/test-dup2.c (main): Add more tests for EBADF.
10135
10136         Tests for module 'dup'.
10137         * modules/dup-tests: New file.
10138         * tests/test-dup.c: New file.
10139
10140         Tests for module 'close'.
10141         * modules/close-tests: New file.
10142         * tests/test-close.c: New file.
10143
10144 2011-09-20  Bruno Haible  <bruno@clisp.org>
10145
10146         Tests for module 'shutdown'.
10147         * modules/shutdown-tests: New file.
10148         * tests/test-shutdown.c: New file.
10149
10150         Tests for module 'setsockopt'.
10151         * modules/setsockopt-tests: New file.
10152         * tests/test-setsockopt.c: New file.
10153
10154         Tests for module 'sendto'.
10155         * modules/sendto-tests: New file.
10156         * tests/test-sendto.c: New file.
10157
10158         Tests for module 'send'.
10159         * modules/send-tests: New file.
10160         * tests/test-send.c: New file.
10161
10162         Tests for module 'recvfrom'.
10163         * modules/recvfrom-tests: New file.
10164         * tests/test-recvfrom.c: New file.
10165
10166         Tests for module 'recv'.
10167         * modules/recv-tests: New file.
10168         * tests/test-recv.c: New file.
10169
10170         Tests for module 'listen'.
10171         * modules/listen-tests: New file.
10172         * tests/test-listen.c: New file.
10173
10174         Tests for module 'getsockopt'.
10175         * modules/getsockopt-tests: New file.
10176         * tests/test-getsockopt.c: New file.
10177
10178         Tests for module 'getsockname'.
10179         * modules/getsockname-tests: New file.
10180         * tests/test-getsockname.c: New file.
10181
10182         Tests for module 'getpeername'.
10183         * modules/getpeername-tests: New file.
10184         * tests/test-getpeername.c: New file.
10185
10186         Tests for module 'connect'.
10187         * modules/connect-tests: New file.
10188         * tests/test-connect.c: New file.
10189
10190         Tests for module 'bind'.
10191         * modules/bind-tests: New file.
10192         * tests/test-bind.c: New file.
10193
10194         accept4 tests: Fix for native Windows.
10195         * tests/test-accept4.c: Include sockets.h.
10196         (main): Invoke gl_sockets_startup.
10197         * modules/accept4-tests (Depends-on): Add sockets.
10198
10199         accept tests: Fix for native Windows.
10200         * tests/test-accept.c: Include sockets.h.
10201         (main): Invoke gl_sockets_startup.
10202         * modules/accept-tests (Depends-on): Add sockets.
10203
10204 2011-09-19  Bruno Haible  <bruno@clisp.org>
10205
10206         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10207         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10208         do...while(0).
10209         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10210         Suggested by Paul Eggert.
10211
10212 2011-09-19  Bruno Haible  <bruno@clisp.org>
10213
10214         sched: Ensure pid_t is defined.
10215         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10216         not define pid_t.
10217         * lib/sched.in.h: Include <sys/types.h>.
10218         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10219         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10220
10221 2011-09-19  Bruno Haible  <bruno@clisp.org>
10222
10223         msvc-inval: Ensure the entire expansion is a single statement.
10224         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10225         of braces.
10226
10227 2011-09-19  Jim Meyering  <meyering@redhat.com>
10228
10229         tests: use printf, not echo in init.sh's warn_ function
10230         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10231         misbehave when given strings containing a backslash or starting
10232         with e.g., -n.  James Youngman suggested setting IFS.
10233
10234 2011-09-19  Eric Blake  <eblake@redhat.com>
10235
10236         futimens: enhance test
10237         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10238         closed non-negative fd.
10239
10240         date: accept 'hence' as opposite of 'ago'
10241         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10242         * tests/test-parse-datetime.c (main): Enhance test.
10243         Suggested by Jesse Wilson.
10244
10245 2011-09-19  Jim Meyering  <meyering@redhat.com>
10246
10247         getcwd: don't fail in a deep directory on a system without openat
10248         Before this change, getcwd would fail when called from a directory
10249         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10250         the non-openat implementation used "..", "../..", "../../..", etc.
10251         to access ancestor directories.  With too many, that string would
10252         be longer than PATH_MAX.
10253         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10254         using gnulib's openat replacement.
10255         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10256         we're using the replacement function.
10257
10258 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10259
10260         maint.mk: avoid warnings from perl about missing files
10261         * top/maint.mk (def_sym_regex): Ignore files listed in
10262         $(gl_other_headers_) that do not exist, say because a project
10263         does not use a corresponding module.
10264
10265 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10266
10267         stat: use pathmax.h only if needed
10268         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10269         This is better for Emacs, which does not have a mingw port and
10270         therefore can avoid the pathmax module.
10271
10272         utimens: remove dependency on dup2
10273         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10274         to work around the Linux kernel bug.
10275         * modules/utimens (Depends-on): Remove dup2.
10276
10277 2011-09-18  Bruno Haible  <bruno@clisp.org>
10278
10279         inet_ntop, inet_pton: Look for it also in libresolv.
10280         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10281         libnsl, search for it in libresolv.
10282         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10283         Needed on Solaris 7.
10284
10285 2011-09-18  Bruno Haible  <bruno@clisp.org>
10286
10287         accept, accept4 tests: Avoid link error on Solaris.
10288         * modules/accept-tests (Makefile.am): Link test-accept against
10289         $(LIBSOCKET).
10290         * modules/accept4-tests (Makefile.am): Link test-accept4 against
10291         $(LIBSOCKET).
10292
10293         accept4: Avoid link error on Solaris.
10294         * modules/accept4 (Link): New section.
10295
10296         socket functions: Avoid link errors on Solaris.
10297         * modules/accept (Depends-on): Add socketlib.
10298         (Link): New section.
10299         * modules/bind (Depends-on): Add socketlib.
10300         (Link): New section.
10301         * modules/connect (Depends-on): Add socketlib.
10302         (Link): New section.
10303         * modules/getpeername (Depends-on): Add socketlib.
10304         (Link): New section.
10305         * modules/getsockname (Depends-on): Add socketlib.
10306         (Link): New section.
10307         * modules/getsockopt (Depends-on): Add socketlib.
10308         (Link): New section.
10309         * modules/listen (Depends-on): Add socketlib.
10310         (Link): New section.
10311         * modules/recv (Depends-on): Add socketlib.
10312         (Link): New section.
10313         * modules/recvfrom (Depends-on): Add socketlib.
10314         (Link): New section.
10315         * modules/send (Depends-on): Add socketlib.
10316         (Link): New section.
10317         * modules/sendto (Depends-on): Add socketlib.
10318         (Link): New section.
10319         * modules/setsockopt (Depends-on): Add socketlib.
10320         (Link): New section.
10321         * modules/shutdown (Depends-on): Add socketlib.
10322         (Link): New section.
10323         * modules/socket (Depends-on): Add socketlib.
10324         (Link): New section.
10325
10326 2011-09-18  Bruno Haible  <bruno@clisp.org>
10327
10328         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10329         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10330         than 5 seconds.
10331         * modules/ptsname-tests (configure.ac): Test for alarm.
10332
10333 2011-09-18  Bruno Haible  <bruno@clisp.org>
10334
10335         posix_spawn_file_actions_add*: Fix module dependencies.
10336         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10337         posix_spawn_file_actions_init.
10338         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10339         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10340
10341 2011-09-18  Bruno Haible  <bruno@clisp.org>
10342
10343         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10344         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10345         * tests/test-renameat.c (main): Likewise.
10346
10347 2011-09-18  Bruno Haible  <bruno@clisp.org>
10348
10349         Tests for module 'accept4'.
10350         * modules/accept4-tests: New file.
10351         * tests/test-accept4.c: New file.
10352
10353 2011-09-18  Bruno Haible  <bruno@clisp.org>
10354
10355         Tests for module 'accept'.
10356         * modules/accept-tests: New file.
10357         * tests/test-accept.c: New file.
10358
10359 2011-09-18  Bruno Haible  <bruno@clisp.org>
10360
10361         dup2: Support for MSVC.
10362         * lib/dup2.c: Include msvc-inval.h.
10363         (rpl_dup2): Handle invalid parameter notifications during dup2 and
10364         _get_osfhandle calls.
10365         * modules/dup2 (Depends-on): Add msvc-inval.
10366         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
10367
10368         New module 'msvc-inval'.
10369         * lib/msvc-inval.h: New file.
10370         * lib/msvc-inval.c: New file.
10371         * m4/msvc-inval.m4: New file.
10372         * modules/msvc-inval: New file.
10373
10374 2011-09-17  Bruno Haible  <bruno@clisp.org>
10375
10376         Tests for module 'pclose'.
10377         * modules/pclose-tests: New file.
10378
10379         New module 'pclose'.
10380         * lib/stdio.in.h (pclose): New declaration.
10381         * lib/pclose.c: New file.
10382         * m4/pclose.m4: New file.
10383         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
10384         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
10385         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
10386         * modules/pclose: New file.
10387         * modules/popen-tests (Depends-on): Add pclose.
10388         * modules/popen-safer-tests (Depends-on): Likewise.
10389         * doc/posix-functions/pclose.texi: Mention the new module.
10390
10391 2011-09-17  Bruno Haible  <bruno@clisp.org>
10392
10393         popen: Support for MSVC.
10394         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
10395         * lib/popen.c (popen): Provide alternate definition for native Windows.
10396         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
10397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
10398         * modules/popen (Depends-on, configure.ac): Update condition.
10399         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
10400         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
10401         fixed.
10402
10403 2011-09-17  Bruno Haible  <bruno@clisp.org>
10404
10405         isnanl, isnand, isnanf: Work around MSVC bug.
10406         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
10407
10408 2011-09-17  Bruno Haible  <bruno@clisp.org>
10409
10410         sys_socket tests: Fix recent mistake.
10411         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10412
10413 2011-09-17  Bruno Haible  <bruno@clisp.org>
10414
10415         putenv: Support for MSVC.
10416         * modules/putenv (Depends-on): Add environ.
10417         * lib/putenv.c (environ): Disable declaration.
10418         * lib/unistd.in.h: Update comment.
10419
10420 2011-09-17  Bruno Haible  <bruno@clisp.org>
10421
10422         math: Avoid macro redefinition warnings on MSVC.
10423         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10424         Undefine before redefining.
10425
10426 2011-09-17  Bruno Haible  <bruno@clisp.org>
10427
10428         doc: Mention functions which are declared as macros.
10429         * doc/posix-functions/*[fl].texi: Mention that some functions are
10430         defined as macros with arguments only.
10431
10432 2011-09-17  Bruno Haible  <bruno@clisp.org>
10433
10434         Add dependencies to new dirent related modules.
10435         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10436         * modules/fts (Depends-on): Likewise.
10437         * modules/glob (Depends-on): Likewise.
10438         * modules/savedir (Depends-on): Likewise.
10439         * modules/scandir (Depends-on): Likewise.
10440         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10441         * modules/fdopendir (Depends-on): Add opendir.
10442
10443 2011-09-17  Bruno Haible  <bruno@clisp.org>
10444
10445         inet_pton: Support for MSVC on Windows Vista or newer.
10446         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
10447         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
10448         HAVE_DECL_INET_PTON is defined.
10449         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10450         On platforms with <winsock2.h>, test whether inet_pton is declared in
10451         <ws2tcpip.h>. If so, arrange to replace it.
10452         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10453         REPLACE_INET_PTON.
10454         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
10455         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
10456         (Depends-on, configure.ac): Update condition.
10457         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
10458
10459 2011-09-17  Bruno Haible  <bruno@clisp.org>
10460
10461         inet_ntop: Support for MSVC on Windows Vista or newer.
10462         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10463         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10464         HAVE_DECL_INET_NTOP is defined.
10465         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10466         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10467         <ws2tcpip.h>. If so, arrange to replace it.
10468         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10469         REPLACE_INET_NTOP.
10470         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10471         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
10472         (Depends-on, configure.ac): Update condition.
10473         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
10474
10475 2011-09-16  Eric Blake  <eblake@redhat.com>
10476
10477         test-fsync: yet another enhancement
10478         * tests/test-fsync.c (main): Also test behavior on read-only text
10479         file.
10480
10481 2011-09-16  Bruno Haible  <bruno@clisp.org>
10482
10483         Enhance fsync, fdatasync tests.
10484         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
10485         * tests/test-fdatasync.c (main): Likewise.
10486
10487 2011-09-16  Bruno Haible  <bruno@clisp.org>
10488
10489         Support for MSVC compiler: Ensure mode_t gets defined.
10490         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
10491         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10492         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10493         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
10494         * tests/test-fcntl-h.c: Check that mode_t is defined.
10495         * tests/test-sys_stat.c: Likewise.
10496         * tests/test-sys_types.c: Likewise.
10497         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
10498         * doc/posix-headers/sys_stat.texi: Likewise.
10499         * doc/posix-headers/sys_types.texi: Likewise.
10500
10501 2011-09-16  Bruno Haible  <bruno@clisp.org>
10502
10503         sys_stat: Support for MSVC.
10504         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
10505         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
10506         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
10507         MSVC.
10508
10509 2011-09-16  Bruno Haible  <bruno@clisp.org>
10510
10511         Support for MSVC compiler: Ensure off_t gets defined.
10512         * lib/unistd.in.h: Include <sys/types.h>.
10513         * tests/test-fcntl-h.c: Check that off_t is defined.
10514         * tests/test-sys_stat.c: Likewise.
10515         * tests/test-sys_types.c: Likewise.
10516
10517 2011-09-16  Eric Blake  <eblake@redhat.com>
10518
10519         fdatasync: port to Solaris
10520         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10521         * modules/fdatasync (Link): Document it.
10522         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10523
10524         fdatasync: port to MacOS X 10.7
10525         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10526         declared.
10527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10528         * modules/unistd (Makefile.am): Substitute it.
10529         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10530         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10531
10532         fdatasync: minor improvements
10533         * modules/fdatasync (Depends-on): Add condition for fsync.
10534         * lib/fdatasync.c (fdatasync): Add comment.
10535         * tests/test-unistd-c++.cc: Test fdatasync.
10536
10537         unistd: update refs to newer POSIX
10538         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10539         Suggested by Bruno Haible.
10540
10541         fdatasync: new module
10542         * modules/fsync (Description): Document difference to fdatasync.
10543         * modules/fdatasync: New module.
10544         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10545         * lib/fdatasync.c (fdatasync): Likewise.
10546         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10547         defaults.
10548         * modules/unistd (Makefile.am): Set witnesses.
10549         * lib/unistd.in.h (fdatasync): Declare.
10550         * MODULES.html.sh: Document it.
10551         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10552         * modules/fdatasync-tests: New test.
10553         * tests/test-fdatasync.c: Likewise.
10554
10555 2011-09-16  Eric Blake  <eblake@redhat.com>
10556
10557         test-fsync: enhance tests
10558         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10559         * tests/test-fsync.c (main): Enhance test.
10560
10561 2011-09-15  Bruno Haible  <bruno@clisp.org>
10562
10563         Support for MSVC compiler: Ensure ssize_t gets defined.
10564         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10565         * doc/posix-headers/stdio.texi: Likewise.
10566         * modules/stdio (Depends-on): Add ssize_t.
10567         * modules/sys_socket (Depends-on): Likewise.
10568         * modules/sys_types (Depends-on): Likewise.
10569         * modules/sys_uio (Depends-on): Likewise.
10570         * modules/unistd (Depends-on): Likewise.
10571         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10572         * tests/test-sys_types.c: Check that ssize_t is defined.
10573
10574 2011-09-14  Bruno Haible  <bruno@clisp.org>
10575
10576         Avoid using #, the m4 comment starter character, near brackets.
10577         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10578         delimiter character in sed expressions.
10579         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10580         Suggested by Eric Blake.
10581
10582         Properly quote AC_CHECK_DECLS' 4th argument.
10583         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10584         argument.
10585         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10586         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10587         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10588         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10589         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10590         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10591         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10592         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10593         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10594         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10595         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10596         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10597         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10598         * m4/isinf.m4 (gl_ISINF): Likewise.
10599         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10600         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10601         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10602         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10603         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10604         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10605         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10606         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10607         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10608         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10609         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10610         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10611         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10612         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10613         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10614         Reported by Eric Blake.
10615
10616         Properly quote AC_CHECK_DECL's 4th argument.
10617         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10618         argument.
10619         * m4/argp.m4 (gl_ARGP): Likewise.
10620         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10621         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10622         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10623         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10624         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10625         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10626         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10627         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10628         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10629         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10630         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10631         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10632         Reported by Eric Blake.
10633
10634 2011-09-14  Eric Blake  <eblake@redhat.com>
10635
10636         opendir: avoid compile warning
10637         * lib/opendir.c (includes): Always include errno.h.
10638         Reported by Tatsuro MATSUOKA.
10639
10640 2011-09-14  Jim Meyering  <meyering@redhat.com>
10641
10642         maint.mk: sc_tight_scope: propagate failure from sub-make
10643         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10644         Reported by Martin von Gagern.
10645
10646 2011-09-13  Bruno Haible  <bruno@clisp.org>
10647
10648         tempname: Support for MSVC.
10649         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10650         MSVC.
10651         * modules/tempname (Depends-on): Add fcntl-h.
10652
10653 2011-09-13  Bruno Haible  <bruno@clisp.org>
10654
10655         sys_time: Support for MSVC.
10656         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10657         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10658         include <winsock2.h>.
10659         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10660         function declarations that collide with POSIX.
10661         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10662         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10663
10664 2011-09-13  Bruno Haible  <bruno@clisp.org>
10665
10666         stat: Support for MSVC.
10667         * lib/stat.c: Include pathmax.h.
10668         * modules/stat (Depends-on): Add pathmax.
10669
10670         pathmax: Support for native Windows.
10671         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10672
10673 2011-09-12  Bruno Haible  <bruno@clisp.org>
10674
10675         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10676         * lib/dirent.in.h (struct dirent): New type.
10677         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10678         DT_WHT): New macros.
10679         (DIR): New type.
10680         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10681         (readdir, rewinddir): New declarations.
10682         * lib/dirent-private.h: New file.
10683         * lib/opendir.c: New file.
10684         * lib/readdir.c: New file.
10685         * lib/rewinddir.c: New file.
10686         * lib/closedir.c: New file.
10687         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10688         * m4/opendir.m4: New file.
10689         * m4/readdir.m4: New file.
10690         * m4/rewinddir.m4: New file.
10691         * m4/closedir.m4: New file.
10692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10693         REPLACE_CLOSEDIR here.
10694         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10695         readdir, rewinddir are declared.
10696         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10697         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10698         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10699         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10700         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10701         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10702         * modules/opendir: New file.
10703         * modules/readdir: New file.
10704         * modules/rewinddir: New file.
10705         * modules/closedir: New file.
10706         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10707         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10708         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10709         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10710         * NEWS: Mention the 'fchdir' change.
10711
10712 2011-09-11  Bruno Haible  <bruno@clisp.org>
10713
10714         asm-underscore.m4: Support for MSVC.
10715         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10716         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10717
10718 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10719
10720         Doc about crypt functions.
10721         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10722         needing for _GNU_SOURCE to get crypt.
10723         * doc/posix-functions/encrypt.texi: Likewise.
10724         * doc/posix-functions/setkey.texi: Likewise.
10725
10726 2011-09-11  Bruno Haible  <bruno@clisp.org>
10727
10728         doc: Update regarding MSVC 9.
10729         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10730         tested".
10731         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10732         * doc/posix-headers/*.texi: Likewise.
10733         * doc/pastposix-functions/*.texi: Likewise.
10734         * doc/glibc-functions/*.texi: Likewise.
10735         * doc/glibc-headers/*.texi: Likewise.
10736
10737 2011-09-11  Bruno Haible  <bruno@clisp.org>
10738
10739         unistd et al.: Don't assume <unistd.h> exists.
10740         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10741         does not exist.
10742         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10743         exist. But include <stdlib.h>.
10744         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10745         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10746         symlink() does not exist.
10747         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10748         include <io.h> instead.
10749         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10750         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10751         include <direct.h> instead.
10752         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10753         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10754         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10755         <io.h> instead.
10756         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10757         correctly if the system does not have hard links.
10758         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10759         <direct.h> instead.
10760         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10761         it when looking for function declarations.
10762         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10763         <direct.h> and <io.h> instead.
10764         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10765
10766 2011-09-11  Bruno Haible  <bruno@clisp.org>
10767
10768         strcase: Support for MSVC.
10769         * modules/strcase (Status, Notice): Remove obsoletion mark.
10770         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10771         * doc/posix-functions/strncasecmp.texi: Likewise.
10772
10773         strings: Don't assume <strings.h> exists.
10774         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10775         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10776         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10777         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10778
10779 2011-09-11  Bruno Haible  <bruno@clisp.org>
10780
10781         dirent: Don't assume <dirent.h> exists.
10782         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10783         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10784         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10785         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10786
10787 2011-09-11  Bruno Haible  <bruno@clisp.org>
10788
10789         Fix wint_t on MSVC.
10790         * lib/wchar.in.h (wint_t): On MSVC, override it.
10791         * lib/wctype.in.h (wint_t): Likewise.
10792         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10793         MSVC.
10794         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10795         * doc/posix-headers/wctype.texi: Likewise.
10796
10797 2011-09-11  Bruno Haible  <bruno@clisp.org>
10798
10799         sys_types: Fix typo.
10800         * lib/sys_types.in.h: Fix typo in comment.
10801         Reported by Paul Eggert.
10802
10803         Support for MSVC compiler: Ensure size_t gets defined.
10804         * modules/strings (Depends-on): Add 'sys_types'.
10805         * modules/sys_uio (Depends-on): Likewise.
10806         * lib/sys_uio.in.h: Update comment.
10807
10808         C++ tests for module 'sys_types'.
10809         * modules/sys_types-c++-tests: New file.
10810         * tests/test-sys_types-c++.cc: New file.
10811
10812         Tests for module 'sys_types'.
10813         * modules/sys_types-tests: New file.
10814         * tests/test-sys_types.c: New file.
10815
10816         New module 'sys_types'.
10817         * lib/sys_types.in.h: New file.
10818         * m4/sys_types_h.m4: New file.
10819         * modules/sys_types: New file.
10820         * doc/posix-headers/sys_types.texi: Mention the new module and the
10821         size_t problem on MSVC 9.
10822
10823 2011-09-11  Bruno Haible  <bruno@clisp.org>
10824
10825         Support for MSVC compiler: Avoid division by a literal 0.
10826         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10827         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10828         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10829         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10830         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10831         * tests/infinity.h: New file.
10832         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10833         on MSVC.
10834         * tests/test-ceilf1.c: Include infinity.h.
10835         (main): Use Infinityf.
10836         * tests/test-ceil1.c: Include infinity.h.
10837         (main): Use Infinityd.
10838         * tests/test-ceill.c: Include infinity.h.
10839         (main): Use Infinityl.
10840         * tests/test-dprintf-posix.c: Include infinity.h.
10841         (test_function): Use Infinityd.
10842         * tests/test-floorf1.c: Include infinity.h.
10843         (main): Use Infinityf.
10844         * tests/test-floor1.c: Include infinity.h.
10845         (main): Use Infinityd.
10846         * tests/test-floorl.c: Include infinity.h.
10847         (main): Use Infinityl.
10848         * tests/test-fprintf-posix.c: Include infinity.h.
10849         (test_function): Use Infinityd.
10850         * tests/test-frexp.c: Include infinity.h.
10851         (main): Use Infinityd.
10852         * tests/test-frexpl.c: Include infinity.h.
10853         (main): Use Infinityl.
10854         * tests/test-isfinite.c: Include infinity.h.
10855         (test_isfinitef): Use Infinityf.
10856         (test_isfinited): Use Infinityd.
10857         (test_isfinitel): Use Infinityl.
10858         * tests/test-isinf.c: Include infinity.h.
10859         (test_isinff): Use Infinityf.
10860         (test_isinfd): Use Infinityd.
10861         (test_isinfl): Use Infinityl.
10862         * tests/test-isnan.c: Include infinity.h.
10863         (test_float): Use Infinityf.
10864         (test_double): Use Infinityd.
10865         (test_long_double): Use Infinityl.
10866         * tests/test-isnanf.h: Include infinity.h.
10867         (main): Use Infinityf.
10868         * tests/test-isnand.h: Include infinity.h.
10869         (main): Use Infinityd.
10870         * tests/test-isnanl.h: Include infinity.h.
10871         (main): Use Infinityl.
10872         * tests/test-ldexpl.c: Include infinity.h.
10873         (main): Use Infinityl.
10874         * tests/test-printf-posix.h: Include infinity.h.
10875         (test_function): Use Infinityd.
10876         * tests/test-roundf1.c: Include infinity.h.
10877         (main): Use Infinityf.
10878         * tests/test-round1.c: Include infinity.h.
10879         (main): Use Infinityd.
10880         * tests/test-roundl.c: Include infinity.h.
10881         (main): Use Infinityl.
10882         * tests/test-signbit.c: Include infinity.h.
10883         (test_signbitf): Use Infinityf.
10884         (test_signbitd): Use Infinityd.
10885         (test_signbitl): Use Infinityl.
10886         * tests/test-snprintf-posix.h: Include infinity.h.
10887         (test_function): Use Infinityd, Infinityl.
10888         * tests/test-sprintf-posix.h: Include infinity.h.
10889         (test_function): Use Infinityd, Infinityl.
10890         * tests/test-truncf1.c: Include infinity.h.
10891         (main): Use Infinityf.
10892         * tests/test-trunc1.c: Include infinity.h.
10893         (main): Use Infinityd.
10894         * tests/test-truncl.c: Include infinity.h.
10895         (main): Use Infinityl.
10896         * tests/test-vasnprintf-posix.c: Include infinity.h.
10897         (test_function): Use Infinityd, Infinityl.
10898         * tests/test-vasprintf-posix.c: Include infinity.h.
10899         (test_function): Use Infinityd, Infinityl.
10900         * modules/ceilf-tests (Files): Add tests/infinity.h.
10901         * modules/ceil-tests (Files): Likewise.
10902         * modules/ceill-tests (Files): Likewise.
10903         * modules/dprintf-posix-tests (Files): Likewise.
10904         * modules/floorf-tests (Files): Likewise.
10905         * modules/floor-tests (Files): Likewise.
10906         * modules/floorl-tests (Files): Likewise.
10907         * modules/fprintf-posix-tests (Files): Likewise.
10908         * modules/frexp-tests (Files): Likewise.
10909         * modules/frexp-nolibm-tests (Files): Likewise.
10910         * modules/frexpl-tests (Files): Likewise.
10911         * modules/frexpl-nolibm-tests (Files): Likewise.
10912         * modules/isfinite-tests (Files): Likewise.
10913         * modules/isinf-tests (Files): Likewise.
10914         * modules/isnan-tests (Files): Likewise.
10915         * modules/isnanf-tests (Files): Likewise.
10916         * modules/isnanf-nolibm-tests (Files): Likewise.
10917         * modules/isnand-tests (Files): Likewise.
10918         * modules/isnand-nolibm-tests (Files): Likewise.
10919         * modules/isnanl-tests (Files): Likewise.
10920         * modules/isnanl-nolibm-tests (Files): Likewise.
10921         * modules/ldexpl-tests (Files): Likewise.
10922         * modules/printf-posix-tests (Files): Likewise.
10923         * modules/roundf-tests (Files): Likewise.
10924         * modules/round-tests (Files): Likewise.
10925         * modules/roundl-tests (Files): Likewise.
10926         * modules/signbit-tests (Files): Likewise.
10927         * modules/snprintf-posix-tests (Files): Likewise.
10928         * modules/sprintf-posix-tests (Files): Likewise.
10929         * modules/truncf-tests (Files): Likewise.
10930         * modules/trunc-tests (Files): Likewise.
10931         * modules/truncl-tests (Files): Likewise.
10932         * modules/vasnprintf-posix-tests (Files): Likewise.
10933         * modules/vasprintf-posix-tests (Files): Likewise.
10934         * modules/vdprintf-posix-tests (Files): Likewise.
10935         * modules/vfprintf-posix-tests (Files): Likewise.
10936         * modules/vprintf-posix-tests (Files): Likewise.
10937         * modules/vsnprintf-posix-tests (Files): Likewise.
10938         * modules/vsprintf-posix-tests (Files): Likewise.
10939         * modules/xprintf-posix-tests (Files): Likewise.
10940
10941 2011-09-11  Bruno Haible  <bruno@clisp.org>
10942
10943         Ensure pid_t gets defined.
10944         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10945         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10946         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10947         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10948         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10949         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10950         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10951         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10952         * tests/test-fcntl-h.c: Check that pid_t is defined.
10953         * tests/test-sched.c: Likewise.
10954         * tests/test-termios.c: Likewise.
10955         * tests/test-time.c: Likewise.
10956         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10957         * doc/posix-headers/signal.texi: Likewise.
10958         * doc/posix-headers/sys_types.texi: Likewise.
10959         * doc/posix-headers/time.texi: Likewise.
10960
10961 2011-09-11  Bruno Haible  <bruno@clisp.org>
10962
10963         acl: Fix compilation on Solaris 10 (older version).
10964         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10965         of ACE_EVERYONE.
10966         * lib/set-mode-acl.c (qset_acl): Likewise.
10967         Reported by Christian Jullien <eligis@orange.fr>.
10968
10969 2011-09-10  Bruno Haible  <bruno@clisp.org>
10970
10971         iconv, unsetenv: Add support for MSVC compiler.
10972         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10973         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10974
10975 2011-09-10  Bruno Haible  <bruno@clisp.org>
10976
10977         *printf: Add support for MSVC compiler.
10978         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10979         handles the exception caused by the %n directive. When cross-compiling,
10980         guess no on native Windows.
10981         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10982         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10983         emulate it through vsnprintf.
10984         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10985         * doc/posix-functions/dprintf.texi: Update documentation regarding
10986         MSVC 9.
10987         * doc/posix-functions/fprintf.texi: Likewise.
10988         * doc/posix-functions/printf.texi: Likewise.
10989         * doc/posix-functions/snprintf.texi: Likewise.
10990         * doc/posix-functions/sprintf.texi: Likewise.
10991         * doc/posix-functions/swprintf.texi: Likewise.
10992         * doc/posix-functions/vdprintf.texi: Likewise.
10993         * doc/posix-functions/vfprintf.texi: Likewise.
10994         * doc/posix-functions/vprintf.texi: Likewise.
10995         * doc/posix-functions/vsnprintf.texi: Likewise.
10996         * doc/posix-functions/vsprintf.texi: Likewise.
10997         * doc/glibc-functions/asprintf.texi: Likewise.
10998         * doc/glibc-functions/obstack_printf.texi: Likewise.
10999         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11000         * doc/glibc-functions/vasprintf.texi: Likewise.
11001
11002 2011-09-10  Bruno Haible  <bruno@clisp.org>
11003
11004         nocrash: Add support for native Windows.
11005         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
11006
11007 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
11008             Bruno Haible  <bruno@clisp.org>
11009
11010         absolute-header, include-next: Add support for MSVC compiler.
11011         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
11012         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
11013         directory separator in #line directives.
11014         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
11015         recognize also backslash as directory separator in #line directives.
11016
11017 2011-09-08  Jim Meyering  <meyering@redhat.com>
11018
11019         maint.mk: mark the post-release commit log with "maint: " prefix
11020         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
11021         one-line commit-log summary.
11022
11023 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
11024             Bruno Haible  <bruno@clisp.org>
11025
11026         Doc about crypt functions.
11027         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
11028         systems.
11029         * doc/posix-functions/encrypt.texi: Likewise.
11030         * doc/posix-functions/setkey.texi: Likewise.
11031
11032 2011-09-08  Simon Josefsson  <simon@josefsson.org>
11033
11034         * lib/gc.h: Fix copyright header.
11035
11036 2011-09-07  Bruno Haible  <bruno@clisp.org>
11037
11038         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11039         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11040         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11041
11042 2011-09-07  Bruno Haible  <bruno@clisp.org>
11043
11044         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11045         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11046         * lib/freopen.c: Likewise.
11047         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11048         * lib/lstat.c: Likewise.
11049         * lib/stat.c: Likewise.
11050         * lib/open.c: Use different syntax for include of <fcntl.h>.
11051         * lib/openat.c: Include fcntl.h again, explicitly.
11052
11053 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11054
11055         parse-datetime: document the newly accepted format
11056         * doc/parse-datetime.texi (Combined date and time of day items):
11057         New section.
11058
11059 2011-09-06  Bruno Haible  <bruno@clisp.org>
11060
11061         acl: Fix a test failure on newer Solaris 10 with ZFS.
11062         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11063         ENOSYS as no ACL.
11064         Reported by Jim Meyering.
11065
11066 2011-09-06  Bruno Haible  <bruno@clisp.org>
11067
11068         acl: Update for AIX >= 5.3 with NFS.
11069         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11070         ENOSYS as no ACL.
11071
11072         acl: Fix a test failure on AIX >= 5.3 with NFS.
11073         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11074         as no ACL.
11075
11076 2011-09-06  Bruno Haible  <bruno@clisp.org>
11077
11078         acl: Fix a test failure on IRIX 6.5 with NFS.
11079         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11080         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11081         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11082         * lib/copy-acl.c (qcopy_acl): Likewise.
11083
11084 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11085
11086         openat: port to AIX 7.1 with large files
11087         AIX 7.1 does a "#define openat open64at" if large files are in use,
11088         so we can't simply #undef openat.  Use the orig_openat trick (similar
11089         to orig_open in lib/open.c) to work around the problem.  Problem
11090         reported by Kevin Brott for GNU tar, in the thread containing
11091         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11092         * lib/openat.c (__need_system_fcntl_h): Define first.
11093         Include <fcntl.h> and <sys/types.h> before undefining.
11094         (orig_openat) [HAVE_OPENAT]: New inline function.
11095         (openat) [HAVE_OPENAT]: Do not undef.
11096         (rpl_openat): Use orig_openat, not openat.
11097
11098 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11099             Bruno Haible  <bruno@clisp.org>
11100
11101         acl: Avoid errors on NonStop Kernel.
11102         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11103         ENOTSUP errors.
11104
11105 2011-09-05  Bruno Haible  <bruno@clisp.org>
11106
11107         acl: Clean up Solaris code.
11108         * lib/acl-internal.h: Remove no-op #if.
11109         * lib/file-has-acl.c: Likewise.
11110         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11111         * lib/copy-acl.c (qcopy_acl): Likewise.
11112
11113 2011-09-05  Bruno Haible  <bruno@clisp.org>
11114
11115         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11116         binaries built on the original Solaris 10.
11117         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11118         trivial.
11119
11120 2011-09-05  Bruno Haible  <bruno@clisp.org>
11121
11122         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11123         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11124         10.
11125         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11126         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11127         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11128         instead of acl_get, facl_get, acl_set, facl_set.
11129
11130 2011-09-05  Bruno Haible  <bruno@clisp.org>
11131
11132         copy-file: Try unit tests on more file systems.
11133         * tests/test-copy-file-1.sh: New file.
11134         * tests/test-copy-file-2.sh: New file.
11135         * modules/copy-file-tests (Files): Add them.
11136         (Makefile.am): Add them to TESTS.
11137
11138         acl: Try unit tests on more file systems.
11139         * tests/test-file-has-acl-1.sh: New file.
11140         * tests/test-file-has-acl-2.sh: New file.
11141         * tests/test-set-mode-acl-1.sh: New file.
11142         * tests/test-set-mode-acl-2.sh: New file.
11143         * tests/test-copy-acl-1.sh: New file.
11144         * tests/test-copy-acl-2.sh: New file.
11145         * modules/acl-tests (Files): Add them.
11146         (Makefile.am): Add them to TESTS.
11147
11148 2011-09-04  Bruno Haible  <bruno@clisp.org>
11149
11150         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11151         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11152         10.
11153         (OLD_ALLOW, OLD_DENY): New macros.
11154         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11155         ACE_ACCESS_ALLOWED_ACE_TYPE.
11156         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11157         ACE_ACCESS_DENIED_ACE_TYPE.
11158         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11159         (NEW_ACE_EXECUTE): Fix value.
11160         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11161         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11162         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11163         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11164         NEW_ACE_SYNCHRONIZE): New macros.
11165         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11166         instead of acl_fromtext, acl_set, facl_set.
11167         Fixes a coreutils/tests/cp/perm failure.
11168
11169 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11170
11171         openat: test for fstatat (..., 0) bug
11172         Further testing with tar suggests that fstatat (..., 0)
11173         does not work in general, on AIX 7.1; see
11174         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11175         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11176         replacement fstatat (which is what older AIX releases were using
11177         anyway).
11178         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11179         use is now changed to orig_fstatat.  This was probably the right
11180         thing to do anyway.
11181         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11182         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11183         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11184         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11185         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11186         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11187         if the bug is found.
11188
11189         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11190         This tests for another fstatat bug on AIX 7.1:
11191         fstatat (AT_FDCWD, ..., 0) does not work.  See
11192         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11193         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11194         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11195         (rpl_fstatat): Adjust so that it works around either (or both)
11196         bugs if present.
11197         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11198
11199 2011-09-03  Karl Berry  <karl@gnu.org>
11200
11201         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11202         in index entries.
11203
11204 2011-09-02  Bruno Haible  <bruno@clisp.org>
11205
11206         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11207         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11208         values of AR, ARFLAGS, RANLIB.
11209         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11210
11211 2011-09-02  Bruno Haible  <bruno@clisp.org>
11212
11213         Find 'ar' program that fits with --host argument.
11214         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11215
11216 2011-09-02  Bruno Haible  <bruno@clisp.org>
11217
11218         tests: init.sh: Support any non-GNU diff.
11219         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11220         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11221         Solaris 8.
11222
11223 2011-09-02  Bruno Haible  <bruno@clisp.org>
11224
11225         tests: init.sh: work also with any non-GNU diff that supports -u
11226         * tests/init.sh: Relax check for diff -u support.
11227         Rather than checking for GNU diff via --version, simply check
11228         for support for -u itself.  Useful at least on OpenBSD 4.9,
11229         AIX 7.1, IRIX 6.5, and Solaris 10.
11230
11231 2011-09-01  Bruno Haible  <bruno@clisp.org>
11232
11233         strtoimax, strtoumax: Document problem on HP-UX 11.
11234         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11235         * doc/posix-functions/strtoumax.texi: Likewise.
11236
11237 2011-09-01  Bruno Haible  <bruno@clisp.org>
11238
11239         strtoumax: Avoid link error on OSF/1 with DTK cc.
11240         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11241         defined as a function.
11242         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11243         strtoumax is defined, not whether it is declared.
11244
11245 2011-09-01  Bruno Haible  <bruno@clisp.org>
11246
11247         strtoimax: Avoid link error on OSF/1 with DTK cc.
11248         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11249         defined as a function.
11250         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11251         strtoimax is defined, not whether it is declared.
11252
11253 2011-09-01  Bruno Haible  <bruno@clisp.org>
11254
11255         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11256         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11257         as a function.
11258         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11259         whether it is declared.
11260
11261 2011-09-01  Bruno Haible  <bruno@clisp.org>
11262
11263         imaxabs: Avoid link error on OSF/1 with DTK cc.
11264         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11265         as a function.
11266         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11267         whether it is declared.
11268
11269 2011-09-01  Bruno Haible  <bruno@clisp.org>
11270
11271         Tests for module 'strtoumax'.
11272         * modules/strtoumax-tests: New file.
11273         * tests/test-strtoumax.c: New file.
11274
11275         Tests for module 'strtoimax'.
11276         * modules/strtoimax-tests: New file.
11277         * tests/test-strtoimax.c: New file.
11278
11279         Tests for module 'imaxdiv'.
11280         * modules/imaxdiv-tests: New file.
11281         * tests/test-imaxdiv.c: New file.
11282
11283         Tests for module 'imaxabs'.
11284         * modules/imaxabs-tests: New file.
11285         * tests/test-imaxabs.c: New file.
11286
11287 2011-09-01  Bruno Haible  <bruno@clisp.org>
11288
11289         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
11290         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
11291         pthread_create.
11292
11293 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11294
11295         openat: work around AIX 7.1 fstatat issue
11296         This should fix the problem that was not properly fixed
11297         in the previous change, dated 2011-08-30.
11298         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
11299         __need_system_stat_h defined.
11300         (orig_fstatat) [HAVE_FSTATAT]: New function.
11301         (rpl_fstatat): Go back to the old way of doing things,
11302         except call orig_fstatat instead of fstatat.
11303         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11304         Remove unnecessary check whether fstatat fills in st_size etc.
11305
11306 2011-09-01  Bruno Haible  <bruno@clisp.org>
11307
11308         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11309         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11310         just include the system's header.
11311
11312 2011-08-31  Jim Meyering  <meyering@redhat.com>
11313
11314         tests: avoid spurious assertion failure in test-float.c on ppc64
11315         * tests/test-float.c (test_long_double): Comment out an assertion,
11316         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11317         with gcc-4.4.4.
11318
11319         maint: indent with spaces, not TABs
11320         I need to get in the habit of running gnulib's "make check".
11321         Both of these would have been caught.
11322         * m4/largefile.m4: Indent with spaces, not TABs.
11323         * lib/parse-datetime.y (iso_8601_time): Likewise.
11324         Spotted by Pádraig Brady.
11325
11326         test-parse-datetime.c: accommodate a relatively strict gcc warning
11327         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11328         to avoid a warning from gcc's -Werror=missing-declarations.
11329         Insert a few spaces-before-funcall-parenthesis.
11330
11331 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11332
11333         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11334         The parser now accepts ISO 8601 date-time strings with "T" as the
11335         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11336         with a space between the date and time strings.  Now it also parses
11337         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11338         variants like "2004-02-29T16:21:42.333-07:00"
11339         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11340         of day representation using the 'T' separator character.
11341         * doc/parse-datetime.texi (General date syntax): replace use of
11342         deprecated --iso-8601 option with --rfc-3339 in example of date
11343         command output formats that can be parsed.
11344         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11345         lib/parse-datetime.y.
11346         (gmt_offset): New function.
11347         (main): Add additional test cases to validate ISO8601 extended
11348         date and time of day parsing.
11349
11350 2011-08-31  Bruno Haible  <bruno@clisp.org>
11351
11352         freopen: Documentation.
11353         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11354         name.
11355         Reported by Claudio Bley <claudio.bley@gmail.com>.
11356
11357 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11358
11359         freopen: Don't crash if the filename argument is NULL.
11360         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11361         NULL.
11362
11363 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11364
11365         openat: work around AIX 7.1 fstatat bug
11366         Problem reported by Kevin Brott for GNU tar, in the thread containing
11367         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
11368         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
11369         FSTATAT_ST_SIZE_ETC_BROKEN.
11370         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
11371         rpl_fstatat.
11372         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
11373         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
11374         AC_CHECK_FUNCS_ONCE for fstatat.
11375         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
11376         fchmodat, mkdirat, openat and unlinkat.
11377
11378 2011-08-30  Bruno Haible  <bruno@clisp.org>
11379
11380         Avoid endless recursions if config.h includes some header files.
11381         * lib/fopen.c (__need_FILE): Define already before including config.h.
11382         * lib/freopen.c (__need_FILE): Likewise.
11383         * lib/open.c (__need_system_fcntl_h): Likewise.
11384         * lib/stat.c (__need_system_sys_stat_h): Likewise.
11385         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
11386         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11387
11388 2011-08-25  Karl Berry  <karl@gnu.org>
11389
11390         * config/srclist.txt (ylwrap): new try.
11391         * build-aux/ylwrap: new file.
11392
11393 2011-08-23  Bruno Haible  <bruno@clisp.org>
11394
11395         tmpdir: Use a good default directory on native Windows.
11396         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
11397         (P_tmpdir): Default to _P_tmpdir on native Windows.
11398         (path_search): On native Windows, try the value returned by GetTempPath
11399         before trying P_tmpdir.
11400         * modules/tmpdir (Depends-on): Add pathmax.
11401         Suggested by John Darrington <john@darrington.wattle.id.au>.
11402
11403 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
11404
11405         doc: fix typo in README-release
11406         * top/README-release: Capitalize first word of a sentence.
11407
11408 2011-08-19  Jim Meyering  <meyering@redhat.com>
11409
11410         fts: do not exhaust memory when processing million-entry directories
11411         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
11412         directory would require about 256*N bytes of memory.  Thus, it was
11413         easy to construct a directory too large to be processed by any of
11414         those tools.  With this change, fts' maximum memory utilization is
11415         now limited to around 30MB.
11416         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
11417         (fts_read): When we've processed the final entry (i.e., when
11418         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
11419         using the parent entry to read any remaining entries.  Dispatch
11420         depending on what fts_build returns:
11421         - NULL+stop, aka failure: stop
11422         - NULL otherwise: move up in the dir hierarchy
11423         - non-NULL: handle this new entry
11424         (fts_build): Declare and use new local, continue_readdir.
11425         Prepare to be called from fts_read, when the entries
11426         from a partially-read directory have just been exhausted.
11427         In that case, we'll skip the opendir and instead use the parent's
11428         fts_dirp and derive dir_fd from that.
11429         Finally, in the readdir loop, if we read max_entries entries,
11430         exit the loop ensuring *not* to call closedir.  This is required
11431         so that fts_dirp can be reused on a subsequent call.
11432         Prompted by Ben England's report of memory exhaustion in find
11433         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11434
11435         maint: fts: move decl of `dp' down into while loop; split a long line
11436         * lib/fts.c (fts_build): No semantic change.
11437
11438         fts: add/use new struct member, fts_dirp
11439         We are about to use this to manage any directory with
11440         too many entries to read all of them into memory at once.
11441         To do that, we'll need to save the DIR* pointer in each
11442         affected FTSENT struct.
11443         * lib/fts_.h: Include <dirent.h>.
11444         (struct FTSENT) [fts_dirp]: New member.
11445         * lib/fts.c (closedir_and_clear): Define.
11446         Use it in place of closedir so that we are sure to
11447         clear the new fts_dirp member when done with it.
11448         (fts_alloc): Initialize the new member.
11449         (fts_lfree): Free, if needed.
11450
11451         maint: fts: give __opendir2 a new parameter and rename
11452         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
11453         than surreptitiously using sole caller's "dir_fd".
11454         (fts_opendir): Rename from __opendir2.
11455
11456         maint: fts.c: remove __opendir2's now-unused parameter, oflag
11457         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
11458
11459         maint: fts.c: correct off-by-one indentation
11460         * lib/fts.c (fts_build): Correct indentation, change style
11461         of a couple of block comments, and bracing style.
11462
11463         maint: fts.c: move __opendir2 #define "up" out of function body
11464         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11465
11466         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11467         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11468         out for a long time and besides was useful only on BSD systems.
11469
11470 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11471
11472         regex: port to Stratus OpenVOS
11473         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
11474         define to empty, rather than attempting nonportable optimizations.
11475         Problem reported by Paul Green in:
11476         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
11477         and fix suggested by Eric Blake in:
11478         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
11479
11480 2011-08-17  Eric Blake  <eblake@redhat.com>
11481
11482         getcwd: fix test failures on mingw
11483         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
11484         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
11485         test if long directory cannot be created, and allow mingw errno.
11486
11487         getcwd-lgpl: fix m4 to match relaxed test for BSD
11488         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
11489         (gl_FUNC_GETCWD_SIGNATURE): New macro.
11490         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
11491         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
11492         signature problem.
11493
11494         getcwd: fix compilation on mingw64
11495         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
11496         getcwd.
11497         Reported by Marc-André Lureau.
11498
11499         pipe2: silence compiler warning
11500         * lib/pipe2.c (pipe2): Hide label if it is not used.
11501
11502 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
11503
11504         relocatable-prog: fix link error
11505         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
11506         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
11507         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
11508         into modules/relocatable-lib without noticing that
11509         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
11510         also needs to build relocatable.c.
11511
11512 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11513
11514         getaddrinfo: fix sh typo in gai_strerrorA decl checking
11515         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
11516         shell code: it contained a 'break' that was not in a loop.
11517         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11518         via a shell-language loop; this may have been true in old Autoconf
11519         versions, but it's not true in Autoconf 2.68.  I found this bug
11520         when testing coreutils git on Solaris 8, whose shell complains
11521         about the syntax error.
11522
11523 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11524
11525         * lib/base64.c: Fix comment to reference RFC 4648.
11526         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11527         <gvtulder@gmail.com>.
11528
11529 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11530
11531         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11532
11533         po/Makefile.in.in: fix make -q problem
11534         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11535         rule, since there's no file named 'check-macro-version' and its
11536         use as a file breaks make -q.
11537         (all): Don't depend on check-macro-version.
11538         (CHECK_MACRO_VERSION): New macro.
11539         (stamp-po): Use it.
11540
11541         configmake: fix make -q problem
11542         * modules/configmake (configmake.h): Update configmake.h's time stamp
11543         even if the file does not change.  Otherwise, 'make -q' fails.
11544         Problem reported by Simon Josefsson in
11545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11546
11547 2011-08-11  Jim Meyering  <meyering@redhat.com>
11548
11549         git-version-gen: correct the advice in a comment
11550         * build-aux/git-version-gen: Correct comment.
11551         Don't recommend to list .tarball-version in .gitignore.
11552
11553 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11554
11555         base64: fix off-by-one buffer size bug
11556         Problem and (trivial) fix reported by Gijs van Tulder in
11557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11558         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11559         * tests/test-base64.c (main): Catch the bug.
11560
11561 2011-08-10  Eric Blake  <eblake@redhat.com>
11562
11563         closein: correct comments
11564         * lib/closein.c (close_stdin): Improve comments.
11565
11566 2011-08-09  Bruno Haible  <bruno@clisp.org>
11567
11568         More tests for 'fseeko'.
11569         * tests/test-fseeko3.c: New file, from Eric Blake.
11570         * tests/test-fseeko3.sh: New file.
11571         * modules/fseeko-tests (Files): Add them.
11572         (TESTS): Add test-fseeko3.sh.
11573         (check_PROGRAMS): Add test-fseeko3.
11574
11575 2011-08-09  Eric Blake  <eblake@redhat.com>
11576
11577         fseeko: remove unneeded hack
11578         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11579
11580         fseeko: fix bug on glibc
11581         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11582         Reported by John W. Eaton.
11583
11584 2011-08-08  Bruno Haible  <bruno@clisp.org>
11585
11586         unictype/base: Fix interoperability with preinstalled libunistring.
11587         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11588         Reported by Simon Josefsson.
11589
11590 2011-08-08  Bruno Haible  <bruno@clisp.org>
11591
11592         iswblank: Detect declaration correctly.
11593         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11594         AC_CHECK_DECLS invocation.
11595
11596 2011-08-08  Bruno Haible  <bruno@clisp.org>
11597
11598         tcgetsid: Detect declaration correctly.
11599         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11600         AC_CHECK_DECLS invocation.
11601         Reported by Simon Josefsson.
11602
11603 2011-08-08  Eric Blake  <eblake@redhat.com>
11604
11605         largefile: fix typo that regressed large file support
11606         * modules/largefile (configure.ac-early): Fix section name.
11607
11608 2011-08-06  Karl Berry  <karl@gnu.org>
11609
11610         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11611         a separate module.
11612
11613 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11614
11615         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11616         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11617         get prototype for free.
11618
11619 2011-08-04  Bruno Haible  <bruno@clisp.org>
11620
11621         Tests for module 'pathmax'.
11622         * modules/pathmax-tests: New file.
11623         * tests/test-pathmax.c: New file.
11624
11625         canonicalize-lgpl: Support larger filenames on the Hurd.
11626         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11627         Reported by Paul Eggert.
11628
11629         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11630         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11631         * lib/chdir-long.h: Include pathmax.h.
11632         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11633         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11634         (PATH_MAX): Remove code that is done by pathmax.h.
11635         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11636         * lib/tmpfile.c: Add a comment.
11637         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11638         * modules/chdir-long (Depends-on): Add pathmax.
11639         * modules/getcwd (Depends-on): Add pathmax.
11640         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11641         is not defined.
11642         * doc/posix-headers/limits.texi: Mention the pathmax module.
11643         * NEWS: Mention the change.
11644
11645 2011-08-02  Bruno Haible  <bruno@clisp.org>
11646
11647         pthread_sigmask: Actually use results of gl_THREADLIB.
11648         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11649         gl_THREADLIB, not gl_[]THREADLIB.
11650         Reported by Eric Blake.
11651
11652 2011-08-02  Jim Meyering  <meyering@redhat.com>
11653
11654         maint.mk: relax the default _gl_TS_function_match regexp
11655         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11656         space between function name and "(" in an "extern" declaration.
11657         That would fail to match a decl with no space there: extern void foo();
11658
11659 2011-07-31  Iain Nicol  <iain@thenicols.net>
11660
11661         git-version-gen: document that EXTRA_DIST must include .version
11662         * build-aux/git-version-gen: In the how-to-use comment, document
11663         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11664         will fail when run from an unpacked distribution tarball.
11665
11666 2011-08-01  Bruno Haible  <bruno@clisp.org>
11667
11668         wctype-h: Fix last change.
11669         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11670         REPLACE_TOWLOWER to 0.
11671         Reported by Sam Steingold <sds@gnu.org>.
11672
11673 2011-07-31  Bruno Haible  <bruno@clisp.org>
11674
11675         frexpl: Update autoconf test.
11676         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11677         according to changes of 2011-06-20.
11678
11679 2011-07-31  Bruno Haible  <bruno@clisp.org>
11680
11681         sys_utsname: Add support for Minix.
11682         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11683         <sys/utsname.h>.
11684         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11685         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11686
11687 2011-07-31  Bruno Haible  <bruno@clisp.org>
11688
11689         strings: Add support for Minix.
11690         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11691         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11692         * doc/posix-headers/strings.texi: Document the Minix problem.
11693
11694 2011-07-31  Bruno Haible  <bruno@clisp.org>
11695
11696         wctype-h: Add support for Minix.
11697         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11698         REPLACE_TOWLOWER.
11699         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11700         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11701         REPLACE_ISWCNTRL.
11702
11703 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11704
11705         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11706         This is a performance improvement for 64-bit hosts: it causes the
11707         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11708
11709 2011-07-31  Bruno Haible  <bruno@clisp.org>
11710
11711         stdioext: Add support for Minix.
11712         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11713         * lib/fpurge.c (fpurge): Likewise.
11714         * lib/freadahead.c (freadahead): Likewise.
11715         * lib/freadable.c (freadable): Likewise.
11716         * lib/freading.c (freading): Likewise.
11717         * lib/freadptr.c (freadptr): Likewise.
11718         * lib/freadseek.c (freadptrinc): Likewise.
11719         * lib/fseeko.c (rpl_fseeko): Likewise.
11720         * lib/fseterr.c (fseterr): Likewise.
11721         * lib/fwritable.c (fwritable): Likewise.
11722         * lib/fwriting.c (fwriting): Likewise.
11723         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11724         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11725
11726 2011-07-31  Bruno Haible  <bruno@clisp.org>
11727
11728         errno: Port to Minix.
11729         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11730         ECONNABORTED are defined.
11731         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11732         GNULIB_defined_ECONNABORTED): New macros.
11733         * lib/strerror-override.h (strerror_override): Test also
11734         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11735         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11736         ECONNABORTED.
11737         * doc/posix-headers/errno.texi: Mention the Minix problem.
11738
11739 2011-07-31  Bruno Haible  <bruno@clisp.org>
11740
11741         Work around declaration collisions on Minix.
11742         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11743         defined, set REPLACE_MBSINIT.
11744         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11745         defined, set REPLACE_MBRTOWC.
11746         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11747         set REPLACE_MBRLEN.
11748         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11749         defined, set REPLACE_MBSRTOWCS.
11750         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11751         defined, set REPLACE_WCRTOMB.
11752         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11753         defined, set REPLACE_WCSRTOMBS.
11754
11755 2011-07-31  Bruno Haible  <bruno@clisp.org>
11756
11757         Add support for Minix with ACK compiler.
11758         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11759         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11760         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11761
11762 2011-07-31  Bruno Haible  <bruno@clisp.org>
11763
11764         Documentation about Minix.
11765         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11766         * doc/glibc-headers/*.texi: Likewise.
11767         * doc/posix-functions/*.texi: Likewise.
11768         * doc/glibc-functions/*.texi: Likewise.
11769
11770 2011-07-31  Bruno Haible  <bruno@clisp.org>
11771
11772         snippet/warn-on-use: Fix indentation.
11773         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11774
11775 2011-07-25  Jim Meyering  <meyering@redhat.com>
11776
11777         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11778         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11779         commands.
11780
11781 2011-07-27  Jim Meyering  <meyering@redhat.com>
11782
11783         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11784         * top/maint.mk (gl_extract_significant_defines_): Now that
11785         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11786         gnulib/lib/signal.in.h, and now that we recommend to
11787         define-if-undefined those two symbols in application code,
11788         we must filter them out of the "significant" list.
11789         This avoids a "make syntax-check" failure in coreutils.
11790
11791 2011-07-26  Eric Blake  <eblake@redhat.com>
11792
11793         warnings: add comments about previous patch
11794         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11795         * m4/include_next.m4: Likewise.
11796         * m4/warn-on-use.m4: Likewise.
11797         * m4/warnings.m4: Likewise, and simplify use.
11798         Suggested by Stefano Lattarini.
11799
11800         include-next, warnings: support older autoconf
11801         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11802         AS_VAR_PUSHDEF in a way that works with older autoconf.
11803         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11804         Reported by Daniel P. Berrange.
11805
11806 2011-07-25  Bruno Haible  <bruno@clisp.org>
11807
11808         fseek, ftell: Fix doc.
11809         * doc/posix-functions/fseek.texi: Reword statement about
11810         AC_SYS_LARGEFILE.
11811         * doc/posix-functions/ftell.texi: Likewise.
11812
11813 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11814             Bruno Haible  <bruno@clisp.org>
11815
11816         Add dependencies to the 'largefile' module.
11817         * modules/fopen (Depends-on): Add 'largefile'.
11818         * modules/freopen (Depends-on): Likewise.
11819         * modules/fseeko (Depends-on): Likewise.
11820         * modules/ftello (Depends-on): Likewise.
11821         * modules/glob (Depends-on): Likewise.
11822         * modules/lseek (Depends-on): Likewise.
11823         * modules/lstat (Depends-on): Likewise.
11824         * modules/mkostemp (Depends-on): Likewise.
11825         * modules/mkostemps (Depends-on): Likewise.
11826         * modules/mkstemp (Depends-on): Likewise.
11827         * modules/mkstemps (Depends-on): Likewise.
11828         * modules/open (Depends-on): Likewise.
11829         * modules/openat (Depends-on): Likewise.
11830         * modules/pread (Depends-on): Likewise.
11831         * modules/pwrite (Depends-on): Likewise.
11832         * modules/scandir (Depends-on): Likewise.
11833         * modules/stat (Depends-on): Likewise.
11834         * modules/tmpfile (Depends-on): Likewise.
11835         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11836         since the containing module now depends on the largefile module.
11837         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11838         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11839         off_t is fixed by gnulib.
11840         * doc/posix-functions/freopen.texi: Likewise.
11841         * doc/posix-functions/fseeko.texi: Likewise.
11842         * doc/posix-functions/fstatat.texi: Likewise.
11843         * doc/posix-functions/ftello.texi: Likewise.
11844         * doc/posix-functions/glob.texi: Likewise.
11845         * doc/posix-functions/lseek.texi: Likewise.
11846         * doc/posix-functions/lstat.texi: Likewise.
11847         * doc/posix-functions/mkstemp.texi: Likewise.
11848         * doc/posix-functions/open.texi: Likewise.
11849         * doc/posix-functions/openat.texi: Likewise.
11850         * doc/posix-functions/pread.texi: Likewise.
11851         * doc/posix-functions/pwrite.texi: Likewise.
11852         * doc/posix-functions/scandir.texi: Likewise.
11853         * doc/posix-functions/stat.texi: Likewise.
11854         * doc/posix-functions/tmpfile.texi: Likewise.
11855         * doc/glibc-functions/mkostemp.texi: Likewise.
11856         * doc/glibc-functions/mkostemps.texi: Likewise.
11857         * doc/glibc-functions/mkstemps.texi: Likewise.
11858
11859 2011-07-25  Bruno Haible  <bruno@clisp.org>
11860
11861         fcntl: Move AC_LIBOBJ invocation to module description.
11862         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11863         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11864
11865         fcntl: Remove call-in from fchdir.m4.
11866         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11868
11869         dup3: Remove potential call-in from fchdir.m4.
11870         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11871         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11872
11873         dup2: Move AC_LIBOBJ invocation to module description.
11874         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11875         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11876         Don't invoke AC_LIBOBJ.
11877         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11878
11879         dup2: Remove call-in from fchdir.m4.
11880         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11881         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11882
11883         fclose: Move AC_LIBOBJ invocation to module description.
11884         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11885         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11886         to 1.
11887         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11888
11889         fclose: Remove call-in from close.m4.
11890         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11891         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11892
11893         close: Move AC_LIBOBJ invocation to module description.
11894         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11895         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11896         1.
11897         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11898
11899         close: Remove call-in from fchdir.m4.
11900         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11901         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11902
11903         open: Move AC_LIBOBJ invocation to module description.
11904         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11905         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11906         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11907
11908         open: Remove call-in from fchdir.m4.
11909         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11910         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11911
11912         fchdir: Start to remove gl_REPLACE_* idiom.
11913         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11914         (gl_FUNC_FCHDIR): Invoke it.
11915
11916 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11917
11918         * lib/ftell.c (ftell): Comment out cast.
11919
11920         close: use gl_REPLACE_FCLOSE only if defined
11921         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11922         is defined.  The close module doesn't depend on the fclose module
11923         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11925         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11926
11927 2011-07-24  Jim Meyering  <meyering@redhat.com>
11928
11929         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11930         * tests/test-select.h (test_function): Declare as "static".
11931
11932 2011-07-24  Bruno Haible  <bruno@clisp.org>
11933
11934         doc: Mention the effects of AC_SYS_LARGEFILE.
11935         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11936         on this function.
11937         * doc/posix-functions/aio_error.texi: Likewise.
11938         * doc/posix-functions/aio_fsync.texi: Likewise.
11939         * doc/posix-functions/aio_read.texi: Likewise.
11940         * doc/posix-functions/aio_return.texi: Likewise.
11941         * doc/posix-functions/aio_suspend.texi: Likewise.
11942         * doc/posix-functions/aio_write.texi: Likewise.
11943         * doc/posix-functions/fgetpos.texi: Likewise.
11944         * doc/posix-functions/fopen.texi: Likewise.
11945         * doc/posix-functions/freopen.texi: Likewise.
11946         * doc/posix-functions/fsetpos.texi: Likewise.
11947         * doc/posix-functions/fstatvfs.texi: Likewise.
11948         * doc/posix-functions/ftruncate.texi: Likewise.
11949         * doc/posix-functions/ftw.texi: Likewise.
11950         * doc/posix-functions/getrlimit.texi: Likewise.
11951         * doc/posix-functions/glob.texi: Likewise.
11952         * doc/posix-functions/lio_listio.texi: Likewise.
11953         * doc/posix-functions/lockf.texi: Likewise.
11954         * doc/posix-functions/mkstemp.texi: Likewise.
11955         * doc/posix-functions/mmap.texi: Likewise.
11956         * doc/posix-functions/nftw.texi: Likewise.
11957         * doc/posix-functions/openat.texi: Likewise.
11958         * doc/posix-functions/opendir.texi: Likewise.
11959         * doc/posix-functions/posix_fadvise.texi: Likewise.
11960         * doc/posix-functions/posix_fallocate.texi: Likewise.
11961         * doc/posix-functions/pread.texi: Likewise.
11962         * doc/posix-functions/pwrite.texi: Likewise.
11963         * doc/posix-functions/readdir.texi: Likewise.
11964         * doc/posix-functions/readdir_r.texi: Likewise.
11965         * doc/posix-functions/rewinddir.texi: Likewise.
11966         * doc/posix-functions/scandir.texi: Likewise.
11967         * doc/posix-functions/seekdir.texi: Likewise.
11968         * doc/posix-functions/setrlimit.texi: Likewise.
11969         * doc/posix-functions/statvfs.texi: Likewise.
11970         * doc/posix-functions/telldir.texi: Likewise.
11971         * doc/posix-functions/tmpfile.texi: Likewise.
11972         * doc/posix-functions/truncate.texi: Likewise.
11973         * doc/glibc-functions/fallocate.texi: Likewise.
11974         * doc/glibc-functions/fstatfs.texi: Likewise.
11975         * doc/glibc-functions/fts_children.texi: Likewise.
11976         * doc/glibc-functions/fts_read.texi: Likewise.
11977         * doc/glibc-functions/getdirentries.texi: Likewise.
11978         * doc/glibc-functions/mkostemp.texi: Likewise.
11979         * doc/glibc-functions/mkostemps.texi: Likewise.
11980         * doc/glibc-functions/mkstemps.texi: Likewise.
11981         * doc/glibc-functions/preadv.texi: Likewise.
11982         * doc/glibc-functions/pwritev.texi: Likewise.
11983         * doc/glibc-functions/sendfile.texi: Likewise.
11984         * doc/glibc-functions/statfs.texi: Likewise.
11985
11986 2011-07-24  Bruno Haible  <bruno@clisp.org>
11987
11988         doc: Fix typo.
11989         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11990
11991 2011-07-24  Bruno Haible  <bruno@clisp.org>
11992
11993         doc: Mention fsusage.
11994         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11995
11996 2011-07-24  Bruno Haible  <bruno@clisp.org>
11997
11998         doc: Mention new glibc headers and functions.
11999         * doc/glibc-headers/gshadow.texi: New file.
12000         * doc/glibc-functions/endsgent.texi: New file.
12001         * doc/glibc-functions/fgetsgent.texi: New file.
12002         * doc/glibc-functions/fgetsgent_r.texi: New file.
12003         * doc/glibc-functions/getsgent.texi: New file.
12004         * doc/glibc-functions/getsgent_r.texi: New file.
12005         * doc/glibc-functions/getsgnam.texi: New file.
12006         * doc/glibc-functions/getsgnam_r.texi: New file.
12007         * doc/glibc-functions/putsgent.texi: New file.
12008         * doc/glibc-functions/setsgent.texi: New file.
12009         * doc/glibc-functions/sgetsgent.texi: New file.
12010         * doc/glibc-functions/sgetsgent_r.texi: New file.
12011         * doc/glibc-functions/malloc_info.texi: New file.
12012         * doc/glibc-functions/preadv.texi: New file.
12013         * doc/glibc-functions/pwritev.texi: New file.
12014         * doc/glibc-functions/register_printf_modifier.texi: New file.
12015         * doc/glibc-functions/register_printf_specifier.texi: New file.
12016         * doc/glibc-functions/register_printf_type.texi: New file.
12017         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
12018         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
12019         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
12020         * doc/glibc-functions/pthread_getname_np.texi: New file.
12021         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
12022         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
12023         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
12024         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
12025         * doc/glibc-functions/pthread_setname_np.texi: New file.
12026         * doc/glibc-functions/pthread_sigqueue.texi: New file.
12027         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
12028         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
12029         * doc/glibc-functions/qsort_r.texi: New file.
12030         * doc/glibc-functions/quick_exit.texi: New file.
12031         * doc/glibc-functions/syncfs.texi: New file.
12032         * doc/gnulib.texi: Include them.
12033         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
12034         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12035         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12036         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12037         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12038         * doc/glibc-functions/execvpe.texi: Likewise.
12039
12040 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12041
12042         ftell: don't include <unistd.h>
12043         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12044         guaranteed to define off_t, and the ftell module depends on the
12045         stdio module.
12046
12047         ftell: do not assume wraparound signed arithmetic
12048         * lib/ftell.c: Include <limits.h>.
12049         (ftell): Don't assume wraparound signed arithmetic.
12050
12051 2011-07-24  Bruno Haible  <bruno@clisp.org>
12052
12053         close: No longer depend on module 'fclose'.
12054         * modules/close (Depends-on): Remove fclose.
12055         * NEWS: Mention the change.
12056         Suggested by Sam Steingold <sds@gnu.org>.
12057
12058 2011-07-24  Bruno Haible  <bruno@clisp.org>
12059
12060         fsusage: Enable large volume support on AIX >= 5.2.
12061         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12062         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12063         instead of STAT_STATVFS.
12064         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12065
12066         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12067         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12068         f_blocks field only on MacOS X.
12069
12070         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12071         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12072         * modules/fsusage (Depends-on): Add largefile.
12073
12074 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12075
12076         * README: Modernize discussion of signed integers.
12077         Assuming overflow wraparound is no longer safe.
12078         Mention ones' complement and signed magnitude.
12079
12080 2011-07-22  Bruno Haible  <bruno@clisp.org>
12081
12082         select tests, pselect tests: Refactor.
12083         * tests/test-select.h: New file, extracted from tests/test-select.c.
12084         (select_fn): New type.
12085         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12086         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12087         test_pipe): Add my_select argument.
12088         (test_function): Renamed from main. Add my_select argument.
12089         * tests/test-select.c: Move most code to tests/test-select.h. Include
12090         test-select.h.
12091         * modules/select-tests (Files): Add tests/test-select.h.
12092         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12093         (my_select, main): New functions.
12094         * modules/pselect-tests (Files): Add tests/test-select.h,
12095         tests/macros.h, tests/signature.h.
12096         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12097         (configure.ac): Check for <sys/wait.h>.
12098
12099 2011-07-22  Bruno Haible  <bruno@clisp.org>
12100
12101         sys_select tests: Check the signature of FD_*.
12102         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12103         signature tests from here...
12104         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12105         here.
12106         * modules/sys_select-tests (Files): Add tests/signature.h.
12107
12108 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12109
12110         largefile: new module, replacing large-inode
12111         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12112         * MODULES.html.sh: Add largefile, remove large-inode.
12113         * modules/largefile, m4/largefile.m4: New files.
12114         * modules/large-inode, m4/large-inode.m4: Remove.
12115
12116         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12117         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12118         implementations that use only 32 bits to count blocks.
12119         On typical hosts with 1024-byte blocks, this fails with file
12120         systems as small as 4 TiB.  Problem reported by Herb Wartens
12121         <http://debbugs.gnu.org/9140> and this should also fix a similar
12122         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12123
12124         large-inode: New module
12125         * MODULES.html.sh: Add it.
12126         * modules/large-inode, m4/large-inode.m4: New files.
12127
12128         extensions: Enable extensions on MacOS X 10.5 and later.
12129         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12130
12131 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12132
12133         file-has-acl: use acl_extended_file_nofollow if available
12134         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12135         (acl_extended_file): New macro.
12136         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12137         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12138
12139 2011-07-21  Bruno Haible  <bruno@clisp.org>
12140
12141         Declare system functions in a way that works with C++.
12142         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12143         declare fdopendir as extern "C".
12144         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12145         declare frexpl as extern "C".
12146         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12147         declare gai_strerror as extern "C".
12148         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12149         programs, declare gai_strerror as extern "C".
12150         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12151         declare getlogin_r as extern "C".
12152         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12153         as extern "C".
12154         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12155         declare ldexpl as extern "C".
12156         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12157         as extern "C".
12158         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12159         program, declare getmntinfo as extern "C".
12160         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12161         stpncpy as extern "C".
12162         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12163         program, declare __xpg_strerror_r as extern "C".
12164         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12165         strndup as extern "C".
12166         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12167         declare memset and bzero as extern "C".
12168         Reported by Sam Steingold <sds@gnu.org>.
12169
12170 2011-07-12  Jim Meyering  <meyering@redhat.com>
12171
12172         maint.mk: prohibit inclusion of "verify.h" without use
12173         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12174
12175 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12176
12177         timer-time: A new module to check for timer_settime()
12178         * m4/timer_time.m4: Check for the posix function.
12179         * modules/timer-time: Add the new module.
12180         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12181         Mention it.
12182
12183 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12184             Bruno Haible  <bruno@clisp.org>
12185
12186         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12187         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12188         not defined, assume POSIX threads and look for pthread_sigmask in
12189         $LIBS, without changing $CPPFLAGS.
12190
12191 2011-07-19  Bruno Haible  <bruno@clisp.org>
12192
12193         strstr: Update cross-compilation guess.
12194         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12195         CPUs, guess no, in view of glibc
12196         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12197         Suggested by Eric Blake. Reported by Reuben Thomas.
12198
12199 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12200
12201         getopt-gnu: suppress core dumps from detection code
12202         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12203         to suppress core dumps that may well occur on glibc systems.
12204         * modules/getopt-gnu: Depend on nocrash.
12205
12206 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12207
12208         pthread_sigmask: ensure usleep is declared
12209         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12210         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12211
12212 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12213
12214         doc: Document NonStop portability issues.
12215         * doc/posix-functions/sigaction.texi (sigaction):
12216         * doc/posix-headers/signal.texi (signal.h):
12217         Document NonStop.  See Joachim Schmitz in
12218         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12219
12220 2011-07-15  Bruno Haible  <bruno@clisp.org>
12221
12222         ffsl, ffsll: Avoid unportable behaviour.
12223         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12224
12225 2011-07-15  Bruno Haible  <bruno@clisp.org>
12226
12227         ffs: More tests.
12228         * tests/test-ffs.c (NBITS): New macro.
12229         (main): Add more tests.
12230         * tests/test-ffsl.c (NBITS): New macro.
12231         (main): Add more tests.
12232         * tests/test-ffsll.c (NBITS): New macro.
12233         (main): Add more tests.
12234
12235 2011-07-15  Eric Blake  <eblake@redhat.com>
12236
12237         ffsl, ffsll: new modules
12238         * modules/ffsl: New file.
12239         * modules/ffsll: Likewise.
12240         * m4/ffsl.m4: Likewise.
12241         * m4/ffsll.m4: Likewise.
12242         * lib/ffsl.c: Likewise.
12243         * lib/ffsl.h: Likewise.
12244         * lib/ffsll.c: Likewise.
12245         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12246         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12247         * modules/string (Makefile.am): Substitute witnesses.
12248         * lib/strings.in.h (ffsl, ffsll): Declare.
12249         * modules/ffsl-tests: New test file.
12250         * modules/ffsll-tests: Likewise.
12251         * tests/test-ffsl.c: Likewise.
12252         * tests/test-ffsll.c: Likewise.
12253         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12254         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12255         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12256
12257         ffs: fix m4 prerequisite
12258         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12259
12260         ffs: avoid undefined behavior
12261         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12262         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12263         Reported by Bruno Haible.
12264
12265 2011-07-12  Bruno Haible  <bruno@clisp.org>
12266
12267         pthread_sigmask: Rely on module 'threadlib'.
12268         * modules/pthread_sigmask (Depends-on): Add threadlib.
12269         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12270         is defined.
12271
12272 2011-07-12  Bruno Haible  <bruno@clisp.org>
12273
12274         regex: Depend on module 'strcase'.
12275         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12276
12277 2011-07-12  Jim Meyering  <meyering@redhat.com>
12278
12279         warn-on-use: fix typo in file name
12280         * modules/snippet/warn-on-use (Files): Correct file name:
12281         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12282
12283 2011-07-12  Bruno Haible  <bruno@clisp.org>
12284
12285         strings: Document module.
12286         * doc/posix-headers/strings.texi: Mention module 'strings'.
12287
12288 2011-07-12  Bruno Haible  <bruno@clisp.org>
12289
12290         Rename module '_Noreturn' to 'snippet/_Noreturn'.
12291         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
12292         (Files, Makefile.am): Update.
12293         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
12294         * modules/stdlib (Depends-on): Update.
12295
12296 2011-07-12  Bruno Haible  <bruno@clisp.org>
12297
12298         * NEWS: Mention the changes.
12299
12300         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12301         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12302         (Files, Makefile.am): Update.
12303         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12304         * modules/arpa_inet (Depends-on): Update.
12305         * modules/ctype (Depends-on): Update.
12306         * modules/dirent (Depends-on): Update.
12307         * modules/fcntl-h (Depends-on): Update.
12308         * modules/glob (Depends-on): Update.
12309         * modules/iconv-h (Depends-on): Update.
12310         * modules/inttypes-incomplete (Depends-on): Update.
12311         * modules/langinfo (Depends-on): Update.
12312         * modules/locale (Depends-on): Update.
12313         * modules/math (Depends-on): Update.
12314         * modules/netdb (Depends-on): Update.
12315         * modules/poll-h (Depends-on): Update.
12316         * modules/pty (Depends-on): Update.
12317         * modules/search (Depends-on): Update.
12318         * modules/signal (Depends-on): Update.
12319         * modules/spawn (Depends-on): Update.
12320         * modules/stdio (Depends-on): Update.
12321         * modules/stdlib (Depends-on): Update.
12322         * modules/string (Depends-on): Update.
12323         * modules/strings (Depends-on): Update.
12324         * modules/sys_file (Depends-on): Update.
12325         * modules/sys_ioctl (Depends-on): Update.
12326         * modules/sys_select (Depends-on): Update.
12327         * modules/sys_socket (Depends-on): Update.
12328         * modules/sys_stat (Depends-on): Update.
12329         * modules/sys_time (Depends-on): Update.
12330         * modules/sys_times (Depends-on): Update.
12331         * modules/sys_utsname (Depends-on): Update.
12332         * modules/sys_wait (Depends-on): Update.
12333         * modules/termios (Depends-on): Update.
12334         * modules/time (Depends-on): Update.
12335         * modules/unistd (Depends-on): Update.
12336         * modules/wchar (Depends-on): Update.
12337         * modules/wctype-h (Depends-on): Update.
12338         * MODULES.html.sh (Support for building libraries and executables):
12339         Update.
12340
12341         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12342         * modules/snippet/unused-parameter: Renamed from
12343         modules/unused-parameter.
12344         (Files, Makefile.am): Update.
12345         * build-aux/snippet/unused-parameter.h: Renamed from
12346         build-aux/unused-parameter.h.
12347         * modules/selinux-h (Depends-on): Update.
12348         * modules/unistr/base (Depends-on): Update.
12349         * MODULES.html.sh (Core language properties): Update.
12350
12351         Rename module 'link-warning' to 'snippet/link-warning'.
12352         * modules/snippet/link-warning: Renamed from modules/link-warning.
12353         (Files, Makefile.am): Update.
12354         * build-aux/snippet/link-warning.h: Renamed from
12355         build-aux/link-warning.h.
12356         * MODULES.html.sh (Support for building libraries and executables):
12357         Update.
12358
12359         Rename module 'c++defs' to 'snippet/c++defs'.
12360         * modules/snippet/c++defs: Renamed from modules/c++defs.
12361         (Files, Makefile.am): Update.
12362         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12363         * modules/arpa_inet (Depends-on): Update.
12364         * modules/ctype (Depends-on): Update.
12365         * modules/dirent (Depends-on): Update.
12366         * modules/fcntl-h (Depends-on): Update.
12367         * modules/glob (Depends-on): Update.
12368         * modules/iconv-h (Depends-on): Update.
12369         * modules/langinfo (Depends-on): Update.
12370         * modules/locale (Depends-on): Update.
12371         * modules/math (Depends-on): Update.
12372         * modules/netdb (Depends-on): Update.
12373         * modules/poll-h (Depends-on): Update.
12374         * modules/pty (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_ioctl (Depends-on): Update.
12383         * modules/sys_select (Depends-on): Update.
12384         * modules/sys_socket (Depends-on): Update.
12385         * modules/sys_stat (Depends-on): Update.
12386         * modules/sys_time (Depends-on): Update.
12387         * modules/sys_wait (Depends-on): Update.
12388         * modules/termios (Depends-on): Update.
12389         * modules/time (Depends-on): Update.
12390         * modules/unistd (Depends-on): Update.
12391         * modules/wchar (Depends-on): Update.
12392         * modules/wctype-h (Depends-on): Update.
12393
12394         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
12395         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
12396         (Files, Makefile.am): Update.
12397         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
12398         * modules/argv-iter (Depends-on): Update.
12399         * modules/arpa_inet (Depends-on): Update.
12400         * modules/dirent (Depends-on): Update.
12401         * modules/fcntl-h (Depends-on): Update.
12402         * modules/fnmatch (Depends-on): Update.
12403         * modules/getopt-posix (Depends-on): Update.
12404         * modules/glob (Depends-on): Update.
12405         * modules/iconv-h (Depends-on): Update.
12406         * modules/inttypes-incomplete (Depends-on): Update.
12407         * modules/locale (Depends-on): Update.
12408         * modules/math (Depends-on): Update.
12409         * modules/netdb (Depends-on): Update.
12410         * modules/search (Depends-on): Update.
12411         * modules/signal (Depends-on): Update.
12412         * modules/spawn (Depends-on): Update.
12413         * modules/stdio (Depends-on): Update.
12414         * modules/stdlib (Depends-on): Update.
12415         * modules/string (Depends-on): Update.
12416         * modules/strings (Depends-on): Update.
12417         * modules/sys_socket (Depends-on): Update.
12418         * modules/sys_stat (Depends-on): Update.
12419         * modules/sys_time (Depends-on): Update.
12420         * modules/sys_times (Depends-on): Update.
12421         * modules/sys_utsname (Depends-on): Update.
12422         * modules/time (Depends-on): Update.
12423         * modules/unistd (Depends-on): Update.
12424         * modules/wchar (Depends-on): Update.
12425         * MODULES.html.sh (Support for building libraries and executables):
12426         Update.
12427
12428 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12429
12430         Improvements on _Noreturn and related modules.
12431
12432         modules/_Exit-tests: test _Noreturn too
12433         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12434         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12435         (main): Use them.
12436
12437         stdnoreturn, stdnoreturn-tests: remove modules
12438         They're not needed here and a bit premature for use elsewhere.  See
12439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12440         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
12441         * tests/test-stdnoreturn.c: Remove files.
12442         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
12443         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
12444         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
12445         and using noreturn.
12446         * modules/openat, modules/sigpipe-die, modules/xalloc:
12447         * modules/xmemdup0, modules/xstrtol:
12448         Remove dependency on stdnoreturn.
12449
12450         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
12451         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
12452         Reparenthesize to avoid GCC warning.
12453         Support Microsoft's syntax.
12454         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
12455
12456         _Noreturn-tests: remove module
12457         * modules/_Noreturn-tests: Remove.
12458         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
12459         * tests/test-_Noreturn.c: Remove.
12460         * tests/test-stdnoreturn.c: Merge from the old
12461         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12462
12463 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12464
12465         _Noreturn, stdnoreturn, and related modules.
12466
12467         * top/maint.mk: Adjust to new noreturn support.
12468         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12469         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12470
12471         xalloc: use stdnoreturn.h
12472         * lib/xalloc.h: Include <stdnoreturn.h>.
12473         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12474         * modules/xalloc (Depends-on): Add stdnoreturn.
12475
12476         xstrtol: use stdnoreturn.h
12477         * lib/xstrtol.h: Include <stdnoreturn.h>.
12478         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12479         * modules/xstrtol (Depends-on): Add stdnoreturn.
12480
12481         xmemdup0: use stdnoreturn.h
12482         * lib/xmemdup0.h: Include <stdnoreturn.h>.
12483         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12484         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
12485
12486         sigpipe-die: use stdnoreturn.h
12487         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
12488         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12489         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12490
12491         openat: use stdnoreturn.h
12492         * lib/openat.h: Include <stdnoreturn.h>.
12493         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12494         * modules/openat (Depends-on): Add stdnoreturn.
12495
12496         * lib/openat-die.c (openat_save_fail): Modernize comment.
12497
12498         * lib/xalloc-die.c (xalloc_die): Modernize comment.
12499
12500         * lib/glthread/thread.h: Modernize comment.
12501
12502         obstack: use _Noreturn
12503         * lib/obstack.c (__attribute__): Remove macro.
12504         (print_and_abort): Use _Noreturn.
12505
12506         c-stack: use _Noreturn
12507         * lib/c-stack.c (die, overflow_handler, segv_handler):
12508         Use _Noreturn rather than __attribute__((noreturn)).
12509
12510         argmatch-tests, exclude_tests: use _Noreturn
12511         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
12512         Remove.
12513         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
12514
12515         stdlib: use _Noreturn
12516         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12517         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12518         * modules/stdlib (Depends-on): Add _Noreturn.
12519         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12520
12521         stdnoreturn-tests: new module
12522         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12523
12524         stdnoreturn: new module
12525         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12526         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12527
12528         _Noreturn-tests: new module
12529         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12530
12531         _Noreturn: new module
12532         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12533         New section, mentioning it.
12534         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12535
12536         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12537
12538 2011-07-11  Eric Blake  <eblake@redhat.com>
12539
12540         ffs: new module
12541         * modules/ffs: New file.
12542         * m4/ffs.m4: Likewise.
12543         * lib/ffs.c: Likewise.
12544         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12545         * modules/strings (Makefile.am): Substitute witness.
12546         (Depends-on): Add c++defs.
12547         * lib/strings.in.h (ffs): Declare.
12548         * modules/ffs-tests: New test file.
12549         * tests/test-ffs.c: Test new module.
12550         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12551         * doc/posix-functions/ffs.texi (ffs): Likewise.
12552
12553         regex: avoid compiler warning
12554         * lib/regex.c (includes): Include <strings.h>, for use of
12555         strcasecmp in regcomp.c.
12556         Reported by Joachim Schmitz.
12557
12558 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12559
12560         stdint: respect system's intmax_t if INTMAX_MAX
12561         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12562         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12563         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12564         long but int64_t is long long, and where we will clash with the
12565         system intmax_t if we override it.  See
12566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12567         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12568         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12569         similarly for UINTMAX_C.
12570
12571 2011-07-08  Bruno Haible  <bruno@clisp.org>
12572
12573         pthread_sigmask tests: Avoid a compiler warning.
12574         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12575         non-zero.
12576
12577         sigprocmask tests: A better way to avoid a compiler warning.
12578         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12579         (main): Complain if system() returns non-zero.
12580         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12581
12582 2011-07-08  Bruno Haible  <bruno@clisp.org>
12583
12584         pthread_sigmask: Work around IRIX bug.
12585         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12586         bug.
12587         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12588         there may be unblocked pending signals.
12589         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12590
12591 2011-07-08  Bruno Haible  <bruno@clisp.org>
12592
12593         pthread_sigmask: Work around Cygwin bug.
12594         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12595         bug.
12596         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12597         the system's pthread_sigmask function.
12598         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12599
12600 2011-07-08  Bruno Haible  <bruno@clisp.org>
12601
12602         pthread_sigmask: Work around bug in single-threaded implementation.
12603         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12604         FreeBSD, HP-UX, Solaris bug.
12605         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12606         * lib/pthread_sigmask.c: Include <stddef.h>.
12607         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12608         the system's pthread_sigmask function.
12609         * modules/pthread_sigmask (configure.ac): Invoke
12610         gl_PREREQ_PTHREAD_SIGMASK.
12611         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12612         HP-UX, Solaris.
12613
12614 2011-07-08  Eric Blake  <eblake@redhat.com>
12615
12616         test-sigprocmask: avoid compiler warning
12617         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12618         * tests/test-sigprocmask.c (main): Use it to silence warning.
12619         Reported by Jim Meyering.
12620
12621         test-snprintf: avoid compiler warning
12622         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12623         * tests/test-vsnprintf.c (main): Likewise.
12624         Reported by Jim Meyering.
12625
12626 2011-07-08  Bruno Haible  <bruno@clisp.org>
12627
12628         Tests for module 'pthread_sigmask'.
12629         * modules/pthread_sigmask-tests: New file.
12630         * tests/test-pthread_sigmask1.c: New file, based on
12631         tests/test-sigprocmask.c.
12632         * tests/test-pthread_sigmask2.c: New file.
12633
12634 2011-07-08  Jim Meyering  <meyering@redhat.com>
12635
12636         test-getopt.h: avoid warning about an unused variable
12637         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12638
12639 2011-07-07  Jim Meyering  <meyering@redhat.com>
12640
12641         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12642         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12643         now that it no longer contains leading TABs.
12644         Remove unused "url=FIXME" statement.
12645
12646 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12647
12648         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12649         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12650         When gl_THREADLIB is not in use, assume that the POSIX sematics
12651         are desired.  This is better for Emacs, which uses POSIX semantics
12652         on GNUish and/or POSIXish platforms, and does not use threads at
12653         all otherwise.
12654
12655         pthread_sigmask: fix typo when testing for libraries
12656         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12657         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12658
12659 2011-07-08  Eric Blake  <eblake@redhat.com>
12660
12661         fts: introduce FTS_NOATIME
12662         * lib/fts_.h (FTS_NOATIME): New bit flag.
12663         (FTS_OPTIONMASK): Adjust.
12664         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12665         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12666
12667 2011-07-08  Bruno Haible  <bruno@clisp.org>
12668
12669         Tests for module 'thread'.
12670         * modules/thread-tests: New file.
12671         * tests/test-thread_self.c: New file.
12672         * tests/test-thread_create.cc: New file.
12673
12674 2011-07-08  Bruno Haible  <bruno@clisp.org>
12675
12676         thread: Avoid gcc warnings when using gl_thread_self().
12677         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12678         'void *'.
12679         (gl_thread_self_pointer): Update.
12680
12681 2011-07-07  Bruno Haible  <bruno@clisp.org>
12682
12683         signal-c++-tests: Check declaration of pthread_sigmask.
12684         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12685         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12686         $(LIB_PTHREAD_SIGMASK).
12687
12688 2011-07-07  Bruno Haible  <bruno@clisp.org>
12689
12690         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12691         * lib/signal.in.h (pthread_sigmask): Override if
12692         REPLACE_PTHREAD_SIGMASK is 1.
12693         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12694         REPLACE_PTHREAD_SIGMASK.
12695         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12696         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12697         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12698         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12699         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12700
12701 2011-07-07  Bruno Haible  <bruno@clisp.org>
12702
12703         pthread_sigmask: Ensure declaration in <signal.h>.
12704         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12705         include <pthread.h>.
12706         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12707         problem.
12708
12709 2011-07-07  Bruno Haible  <bruno@clisp.org>
12710
12711         pthread_sigmask: Document the module.
12712         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12713
12714 2011-07-07  Bruno Haible  <bruno@clisp.org>
12715
12716         pthread_sigmask: Follow gnulib conventions.
12717         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12718         gl_PTHREAD_SIGMASK.
12719         * modules/pthread_sigmask (configure.ac): Update.
12720
12721 2011-07-07  Bruno Haible  <bruno@clisp.org>
12722
12723         pthread_sigmask: Make declaration C++ safe.
12724         * lib/signal.in.h: In two special conditions, just do an #include_next.
12725         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12726         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12727         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12728         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12729         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12730         not REPLACE_PTHREAD_MASK.
12731         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12732         not REPLACE_PTHREAD_MASK.
12733         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12734
12735 2011-07-07  Bruno Haible  <bruno@clisp.org>
12736
12737         pthread_sigmask: Fix return value.
12738         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12739         * lib/pthread_sigmask.c: New file.
12740         * modules/pthread_sigmask (Files): Add it.
12741         (configure.ac): Invoke AC_LIBOBJ.
12742
12743 2011-07-07  Eric Blake  <eblake@redhat.com>
12744
12745         getopt: more portable argv creation
12746         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12747         const, use char arrays rather than strings.
12748         Suggested by Paul Eggert.
12749
12750 2011-07-07  Bruno Haible  <bruno@clisp.org>
12751
12752         Tests for module 'sigprocmask'.
12753         * modules/sigprocmask-tests: New file.
12754         * tests/test-sigprocmask.c: New file.
12755
12756 2011-07-07  Bruno Haible  <bruno@clisp.org>
12757
12758         float tests: Tweak.
12759         * tests/test-float.c (main): Tweak skip message.
12760
12761 2011-07-07  Eric Blake  <eblake@redhat.com>
12762
12763         getopt: avoid compiler warning during configure
12764         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12765         assigning string literals to non-const pointer.
12766
12767         getopt-gnu: avoid crash in glibc getopt
12768         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12769         * tests/test-getopt.h (test_getopt): Enhance test.
12770         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12771         * doc/posix-functions/getopt.texi (getopt): Document it.
12772         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12773         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12774         Likewise.
12775
12776 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12777
12778         getopt: handle W; without long options in getopt [BZ #12922]
12779         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12780         but no long options are defined, just return 'W'.
12781
12782 2011-07-07  Bruno Haible  <bruno@clisp.org>
12783
12784         Avoid literal tabs.
12785         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12786         variable containing a tab instead of a literal tab.
12787         Reported by Jim Meyering.
12788
12789 2011-07-07  Bruno Haible  <bruno@clisp.org>
12790
12791         Comments.
12792         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12793
12794 2011-07-06  Bruno Haible  <bruno@clisp.org>
12795
12796         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12797         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12798         <winsock2.h>.
12799         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12800         lib/sys_socket.in.h.
12801         (close, gethostname): Hide declarations from <winsock2.h>.
12802         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12803         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12804         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12805         (select): Don't override if gnulib's <sys/select.h> was already
12806         included.
12807         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12808         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12809         setsockopt, shutdown, select): Tweak indentation.
12810
12811 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12812
12813         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12814         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12815         in an application that does not use the sys_select module.
12816
12817 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12818
12819         poll: do not return 0 on timeout=-1
12820         * lib/poll.c: Loop with yield if no events occured
12821
12822 2011-07-06  Eric Blake  <eblake@redhat.com>
12823
12824         pthread_sigmask: always replace when not using pthread
12825         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12826         replacement when using some threading other than pthread.  Fix
12827         logic bug.
12828
12829 2011-07-06  Bruno Haible  <bruno@clisp.org>
12830
12831         Comments.
12832         * m4/printf.m4: Update comments about mingw.
12833
12834 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12835
12836         sys_select: define sigset_t more portably
12837         * lib/sys_select.in.h: Always include <sys/types.h>, since
12838         we now need sigset_t and mingw defines it there.
12839         Include <signal.h> before split inclusion guard, to avoid
12840         mishaps on Solaris, whose <signal.h> eventually includes us.
12841         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12842         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12843         which come from ...
12844         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12845         gl_CHECK_TYPE_SIGSET_T.
12846         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12847         does the real work.
12848         * modules/sys_select (Depends-on): Add 'signal'.
12849
12850         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12851         Suggested by Bruno Haible.
12852
12853         pselect: Use pthread_sigmask, not sigprocmask.
12854         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12855         multithreaded apps better than sigprocmask does.
12856         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12857         sigprocmask directly.
12858
12859 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12860
12861         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12862         Don't #undef,  since we don't need any underlying pselect.
12863         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12864         (Depends-on): Add select.
12865         (Link): Add $(LIBSOCKET).
12866         These changes suggested by Bruno Haible.
12867
12868         pselect: document better
12869         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12870         * doc/posix-functions/pselect.texi (pselect): Document new module.
12871
12872         pthread_sigmask: new module
12873         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12874         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12875         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12876         This is done only as a macro; I don't know how well that'll
12877         work for C++.  Move <sys/types.h> include before the include_next,
12878         to avoid mishap on Solaris.
12879         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12880         * modules/signal (Makefile.am): Substitute the check's results.
12881         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12882
12883         test-pselect: new module
12884         * modules/pselect-tests, tests/test-pselect.c: New files.
12885         * tests/test-select.c, tests/test-sys_select-c++.cc:
12886         If TEST_PSELECT is defined, test pselect instead of testing select.
12887
12888         * tests/test-sys_select.c (sigset_t): Test for it, too.
12889         Suggested by Bruno Haible.
12890
12891 2011-07-05  Eric Blake  <eblake@redhat.com>
12892
12893         snprintf: guarantee %1$d, for libintl
12894         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12895         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12896         * doc/posix-functions/snprintf.texi (snprintf): Update.
12897         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12898         * tests/test-snprintf.c (main): Enhance test.
12899         * tests/test-vsnprintf.c (main): Likewise.
12900
12901 2011-07-05  Jim Meyering  <meyering@redhat.com>
12902
12903         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12904         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12905         per Bruno's request, to accommodate this idiom (no space after "#")
12906         even when the function is inside an #if block:
12907         char *
12908         gets (char *s)
12909         #undef gets
12910         {
12911           ...
12912         }
12913
12914 2011-07-04  Jim Meyering  <meyering@redhat.com>
12915
12916         maint: indent with spaces, not TABs, and add a rule to check this
12917         * tests/test-userspec.c: Indent with spaces, not TABs.
12918         * tests/test-argp.c: Likewise.
12919         * tests/test-c-stack2.sh: Likewise.
12920         * tests/test-parse-duration.sh: Likewise
12921         * m4/strtod.m4: Likewise.
12922         * m4/alloca.m4: Likewise.
12923         * m4/pselect.m4: Likewise.
12924         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12925
12926 2011-07-03  Jim Meyering  <meyering@redhat.com>
12927
12928         maint.mk: correct omissions in prohibit_argmatch_without_use check
12929         This rule would mistakenly report that argmatch.h is included without
12930         use even when both the argmatch and invalid_arg macro were used.
12931         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12932         of argmatch and invalid_arg.
12933
12934 2011-07-03  Bruno Haible  <bruno@clisp.org>
12935
12936         Comments about EINTR.
12937         * lib/safe-read.h: Explain the purpose of this module.
12938         * lib/safe-write.h: Likewise.
12939         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12940         module.
12941         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12942         module.
12943         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12944
12945 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12946
12947         xnanosleep: Rewrite to use new dtotimespec module.
12948         It has the conversion code that used to be in xnanosleep.
12949         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12950         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12951         (TIME_T_MAX): Remove.
12952         (xnanosleep): Rewrite in terms of dtotimespec.
12953         * modules/xnanosleep (Depends-on): Add dtotimespec.
12954         Remove intprops, stdbool.
12955
12956         timespec-add, timespec-sub: new modules
12957         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12958         * lib/timespec-add.c, lib/timespec-sub.c:
12959         * modules/timespec-add, modules/timespec-sub: New files.
12960
12961         dtotimespec: new module
12962         * lib/timespec.h (dtotimespec): New decl.
12963         * lib/dtotimespec.c, modules/dtotimespec: New files.
12964
12965         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12966
12967         pselect: new module
12968         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12969         (pselect): New decls.
12970         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12971         since the standard pselect decl uses 'restrict'.
12972         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12973         HAVE_PSELECT, REPLACE_PSELECT.
12974         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12975         HAVE_PSELECT, REPLACE_PSELECT.
12976         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12977
12978         sys_select: don't depend on sys_socket
12979         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12981         This fix works on GNU and GNU-like platforms, but has not been tested
12982         on native Windows.
12983         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12984         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12985         gl_HEADER_SYS_SOCKET.
12986         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12987         gl_PREREQ_SYS_H_WINSOCK2.
12988
12989 2011-06-29  Eric Blake  <eblake@redhat.com>
12990
12991         pipe2: fix C89 compile problem
12992         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12993         Reported by Bruno Haible.
12994
12995         pipe, pipe2: don't corrupt fd on error
12996         * lib/pipe.c (pipe): Leave fd unchanged on error.
12997         * lib/pipe2.c (pipe2): Likewise.
12998         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12999         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13000
13001 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
13002
13003         mmap-anon: do not use regular expressions inadvertently
13004         * m4/mmap-anon.m4: Remove trailing period from strings sought
13005         in the output.
13006
13007 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
13008
13009         nanosleep: fix integer overflow problem
13010         * lib/nanosleep.c (my_usleep): Don't assume signed integer
13011         arithmetic wraps around on overflow.
13012
13013         nanosleep: simplify carrying
13014         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
13015         first call to the underyling nanosleep, not for the last one.
13016         This doesn't fix any bugs, but it simplifies the computation of
13017         the remaining delay.  Found while auditing integer overflow issues.
13018
13019         dup2: remove test for existence of fcntl
13020         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
13021         "#if HAVE_FCNTL", in the configure-time test program.
13022         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
13023         and therefore speeds up "configure" a bit.  Found while
13024         adding the dup2 module to Emacs.
13025
13026 2011-06-24  Eric Blake  <eblake@redhat.com>
13027
13028         maint.mk: enhance useless header checks
13029         * top/maint.mk (_sc_header_without_use): Check both include
13030         styles.
13031         (sc_prohibit_assert_without_use)
13032         (sc_prohibit_close_stream_without_use)
13033         (sc_prohibit_getopt_without_use)
13034         (sc_prohibit_quotearg_without_use)
13035         (sc_prohibit_quote_without_use)
13036         (sc_prohibit_long_options_without_use)
13037         (sc_prohibit_inttostr_without_use)
13038         (sc_prohibit_ignore_value_without_use)
13039         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13040         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13041         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13042         (sc_prohibit_hash_pjw_without_use)
13043         (sc_prohibit_safe_read_without_use)
13044         (sc_prohibit_argmatch_without_use)
13045         (sc_prohibit_canonicalize_without_use)
13046         (sc_prohibit_root_dev_ino_without_use)
13047         (sc_prohibit_openat_without_use)
13048         (sc_prohibit_c_ctype_without_use)
13049         (sc_prohibit_signal_without_use)
13050         (sc_prohibit_stdio--_without_use)
13051         (sc_prohibit_stdio-safer_without_use)
13052         (sc_prohibit_strings_without_use)
13053         (sc_prohibit_intprops_without_use)
13054         (sc_prohibit_stddef_without_use)
13055         (sc_prohibit_xfreopen_without_use): Update clients.
13056
13057 2011-06-24  Jim Meyering  <meyering@redhat.com>
13058
13059         syntax-check: keep one maint.mk rule in sync with its header
13060         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13061         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13062         I prefer to avoid temporary files here, so use <(...), but that
13063         is not supported by /bin/sh, so...
13064         (SHELL): Define to /bin/bash.
13065
13066 2011-06-24  Eric Blake  <eblake@redhat.com>
13067
13068         maint.mk: update sc_prohibit_intprops_without_use
13069         * top/maint.mk (_intprops_names): Match recent changes.
13070
13071 2011-06-24  Bruno Haible  <bruno@clisp.org>
13072
13073         strerror-override: No-op tweak.
13074         * lib/strerror-override.h (strerror_override): Reorder conditions,
13075         for consistency with lib/strerror-override.c.
13076
13077 2011-06-23  Eric Blake  <eblake@redhat.com>
13078
13079         maint.mk: test further PATH_MAX issues
13080         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13081         (sc_prohibit_path_max_allocation): ...and also test alloca.
13082         Suggested by Jim Meyering.
13083
13084 2011-06-22  Eric Blake  <eblake@redhat.com>
13085
13086         maint.mk: add syntax-check to avoid char[PATH_MAX]
13087         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13088
13089         stat: be robust to PATH_MAX definition
13090         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13091         * modules/stat (Depends-on): Add verify.
13092
13093         link: work around IRIX bug
13094         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13095         * lib/link.c (rpl_link): Work around it.
13096         * tests/test-link.h (test_link): Enhance test.
13097         * doc/posix-functions/link.texi (link): Document the bug.
13098
13099         getopt: silence clang warning
13100         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13101         dereference.
13102         Reported by Gustavo Martin Domato.
13103
13104 2011-06-22  Jim Meyering  <meyering@redhat.com>
13105
13106         bootstrap: do not insert a blank line into each .gitignore file
13107         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13108
13109 2011-06-21  Eric Blake  <eblake@redhat.com>
13110
13111         perror: test for output mismatch
13112         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13113         perror on IRIX.
13114
13115         strerror_r: fix OpenBSD behavior on out-of-range
13116         * lib/strerror_r.c (strerror_r): Always use maximal string.
13117         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13118
13119         strerror_r: fix OpenBSD behavior on 0
13120         * lib/strerror-override.c (strerror_override): Also override 0
13121         when needed.
13122         * lib/strerror-override.h (strerror_override): Likewise.
13123         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13124         earlier.
13125         * lib/strerror_r.c (strerror_r): Likewise.
13126         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13127         behavior...
13128         (gl_FUNC_STRERROR_0): ...into new macro.
13129         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13130         is overridden.
13131         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13132         * modules/strerror-override (Files): Add strerror.m4.
13133         (configure.ac): Also provide override for 0 when needed.
13134         * doc/posix-functions/strerror.texi (strerror): Document this.
13135         * doc/posix-functions/perror.texi (perror): Likewise.
13136
13137         perror: adjust array size
13138         * modules/perror (Depends-on): Add strerror-override.
13139         * lib/perror.c (perror): Use it to avoid magic number.
13140
13141         strerror-override: reduce size
13142         * lib/strerror-override.c (strerror_override): Use fewer lines.
13143
13144 2011-06-20  Bruno Haible  <bruno@clisp.org>
13145
13146         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13147         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13148
13149 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13150
13151         alloca: port to compilers that can optimize like GCC 4.6.0
13152         * lib/alloca.c (find_stack_direction): New signature, taken from
13153         Autoconf git.  This works with GCC 4.6.0.  This code should never
13154         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13155         be used with other compilers that optimize as well as GCC 4.6.0 does.
13156         (alloca): Adjust to new signature.
13157         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13158         New macro, which patches Autoconf in a similar way.
13159
13160         c-stack: stop worrying about stack direction
13161         * lib/c-stack.c (find_stack_direction): Remove.
13162         (segv_handler): Don't worry about stack direction growth, as it's
13163         too much of a pain to configure this correctly, given how compilers
13164         are optimizing-away our stack-growth detection code.  Instead, assume
13165         that any access to just before or just after the stack is OK.
13166         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13167         Don't require AC_FUNC_ALLOCA; no longer needed.
13168
13169 2011-06-20  Eric Blake  <eblake@redhat.com>
13170
13171         test-stat: don't allocate PATH_MAX bytes
13172         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13173         PATH_MAX-sized buffer.
13174         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13175         * modules/stat-tests (Depends-on): Likewise.
13176         * tests/test-fstatat.c (includes): Drop pathmax.h.
13177         * tests/test-stat.c (includes): Likewise.
13178         Reported by Bruno Haible.
13179
13180 2011-06-20  Bruno Haible  <bruno@clisp.org>
13181
13182         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13183         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13184         * lib/float.c: New file.
13185         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13186         REPLACE_FLOAT_LDBL.
13187         * modules/float (Files): Add lib/float.c.
13188         (configure.ac): Invoke AC_LIBOBJ.
13189         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13190
13191 2011-06-20  Bruno Haible  <bruno@clisp.org>
13192
13193         Tests for module 'float'.
13194         * modules/float-tests: New file.
13195         * tests/test-float.c: New file.
13196
13197 2011-06-19  Bruno Haible  <bruno@clisp.org>
13198
13199         isinf: Coding style.
13200         * lib/isinf.c: Use GNU coding style.
13201
13202 2011-06-19  Bruno Haible  <bruno@clisp.org>
13203
13204         linkat test: Avoid test failure on AIX 7.1.
13205         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13206         * tests/test-link.h (test_link): Likewise.
13207
13208 2011-06-19  Bruno Haible  <bruno@clisp.org>
13209
13210         pread test: Avoid test failure on OpenBSD 4.9.
13211         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13212
13213 2011-06-19  Bruno Haible  <bruno@clisp.org>
13214
13215         sprintf-posix: Fix test failure on AIX 7.1.
13216         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13217         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13218         on AIX.
13219         * doc/posix-functions/fprintf.texi: Likewise.
13220         * doc/posix-functions/printf.texi: Likewise.
13221         * doc/posix-functions/snprintf.texi: Likewise.
13222         * doc/posix-functions/sprintf.texi: Likewise.
13223         * doc/posix-functions/vdprintf.texi: Likewise.
13224         * doc/posix-functions/vfprintf.texi: Likewise.
13225         * doc/posix-functions/vprintf.texi: Likewise.
13226         * doc/posix-functions/vsnprintf.texi: Likewise.
13227         * doc/posix-functions/vsprintf.texi: Likewise.
13228
13229 2011-06-19  Bruno Haible  <bruno@clisp.org>
13230
13231         roundl-ieee: Fix test failure on AIX 7.1.
13232         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13233         * doc/posix-functions/roundl.texi: Mention problem with negative
13234         arguments.
13235
13236 2011-06-19  Bruno Haible  <bruno@clisp.org>
13237
13238         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13239         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13240         * doc/posix-functions/round.texi: Mention problem with negative
13241         arguments.
13242         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13243
13244 2011-06-19  Bruno Haible  <bruno@clisp.org>
13245
13246         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13247         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13248         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13249         * doc/posix-functions/roundf.texi: Mention problem with negative
13250         arguments.
13251         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13252
13253 2011-06-19  Bruno Haible  <bruno@clisp.org>
13254
13255         ceilf-ieee: Work around bug on MacOS X 10.5.
13256         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13257
13258         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13259         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13260         IEEE compliant, avoid compiler optimizations.
13261         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13262         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13263         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13264         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13265         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13266         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13267         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13268         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13269         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13270         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13271
13272 2011-06-19  Bruno Haible  <bruno@clisp.org>
13273
13274         ceilf-ieee: Work around bug on AIX 7.1.
13275         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13276         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13277
13278 2011-06-19  Bruno Haible  <bruno@clisp.org>
13279
13280         ceil-ieee: Work around bug on AIX 7.1.
13281         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13282         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13283
13284 2011-06-18  Bruno Haible  <bruno@clisp.org>
13285
13286         fsync test: Avoid test failure on MacOS X and AIX.
13287         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13288         EINVAL.
13289
13290 2011-06-18  Bruno Haible  <bruno@clisp.org>
13291
13292         openat, fdopendir tests: Fix link errors.
13293         * modules/openat-tests (Depends-on): Add progname.
13294         * modules/fdopendir-tests (Depends-on): Likewise.
13295         * tests/test-fchownat.c: Include progname.h.
13296         (main): Call set_program_name.
13297         * tests/test-fstatat.c: Include progname.h.
13298         (main): Call set_program_name.
13299         * tests/test-mkdirat.c: Include progname.h.
13300         (main): Call set_program_name.
13301         * tests/test-openat.c: Include progname.h.
13302         (main): Call set_program_name.
13303         * tests/test-unlinkat.c: Include progname.h.
13304         (main): Call set_program_name.
13305         * tests/test-fdopendir.c: Include progname.h.
13306         (main): Call set_program_name.
13307
13308 2011-06-18  Bruno Haible  <bruno@clisp.org>
13309
13310         Doc update.
13311         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13312         HP-UX.
13313         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13314
13315 2011-06-18  Bruno Haible  <bruno@clisp.org>
13316
13317         getcwd tests: Avoid compilation error on HP-UX 11.31.
13318         * modules/getcwd-tests (Depends-on): Add pathmax.
13319         * tests/test-getcwd.c: Include pathmax.h.
13320
13321 2011-06-18  Bruno Haible  <bruno@clisp.org>
13322
13323         isfinite, isinf: Fix link error on AIX 6 and 7.
13324         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13325         needed, also test the macro with a 'float' argument.
13326         * m4/isinf.m4 (gl_ISINF): Likewise.
13327
13328 2011-06-18  Bruno Haible  <bruno@clisp.org>
13329
13330         getloadavg: Don't clobber LIBS. Regression from previous commit.
13331         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13332         AC_CHECK_LIB from here...
13333         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13334         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13335         gl_func_getloadavg_done.
13336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13337
13338 2011-06-18  Bruno Haible  <bruno@clisp.org>
13339
13340         clean-temp: Improve documentation.
13341         * lib/clean-temp.h: Explain better how to use this module.
13342         Reported by John Darrington <john@darrington.wattle.id.au>.
13343
13344 2011-06-17  Bruno Haible  <bruno@clisp.org>
13345
13346         pread, pwrite: Avoid cc warning on AIX.
13347         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13348         (pwrite): Likewise.
13349
13350 2011-06-17  Bruno Haible  <bruno@clisp.org>
13351
13352         spawn-pipe tests: Fix link error.
13353         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13354         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13355
13356 2011-06-17  Bruno Haible  <bruno@clisp.org>
13357
13358         Tests: Remove unnecessary dependency.
13359         * modules/canonicalize-tests (Depends-on): Remove progname.
13360         * modules/chown-tests (Depends-on): Likewise.
13361         * modules/dirname-tests (Depends-on): Likewise.
13362         * modules/fdopendir-tests (Depends-on): Likewise.
13363         * modules/fdutimensat-tests (Depends-on): Likewise.
13364         * modules/hash-tests (Depends-on): Likewise.
13365         * modules/lchown-tests (Depends-on): Likewise.
13366         * modules/linkat-tests (Depends-on): Likewise.
13367         * modules/renameat-tests (Depends-on): Likewise.
13368         * modules/spawn-pipe-tests (Depends-on): Likewise.
13369         * modules/utimensat-tests (Depends-on): Likewise.
13370
13371 2011-06-17  Bruno Haible  <bruno@clisp.org>
13372
13373         spawn-pipe tests: Fix link error.
13374         * tests/test-spawn-pipe-child.c: Undefine fflush.
13375
13376 2011-06-17  Bruno Haible  <bruno@clisp.org>
13377
13378         Fix tests link errors.
13379         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
13380         * modules/chown-tests (Makefile.am): Don't link test-chown with
13381         LIBINTL.
13382         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
13383         LIBINTL.
13384         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
13385         LIBINTL.
13386         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
13387         LIBINTL.
13388
13389 2011-06-16  Bruno Haible  <bruno@clisp.org>
13390
13391         crypto/gc-sha1: Fix recent regression.
13392         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
13393         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
13394
13395         crypto/gc-md5: Fix recent regression.
13396         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
13397
13398         crypto/gc-md4: Fix recent regression.
13399         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
13400         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
13401
13402         crypto/gc-arctwo: Fix recent regression.
13403         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
13404         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
13405
13406         crypto/gc-rijndael: Fix recent regression.
13407         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
13408         (configure.ac): Invoke AC_LIBOBJ here.
13409         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
13410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13411
13412         crypto/gc-hmac-sha1: Fix recent regression.
13413         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
13414         (configure.ac): Invoke AC_LIBOBJ here.
13415         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
13416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13417
13418         crypto/gc-hmac-md5: Fix recent regression.
13419         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
13420         (configure.ac): Invoke AC_LIBOBJ here.
13421         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13422         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13423
13424         crypto/gc-des: Fix recent regression.
13425         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13426         (configure.ac): Invoke AC_LIBOBJ here.
13427         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13428         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13429
13430         crypto/gc-arcfour: Fix recent regression.
13431         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13432         (configure.ac): Invoke AC_LIBOBJ here.
13433         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13434         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13435
13436 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13437
13438         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13439         After the 2011-05-21 change, this macro requires
13440         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
13441         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13442
13443 2011-06-16  Bruno Haible  <bruno@clisp.org>
13444
13445         fprintftime: Move AC_LIBOBJ invocations to module description.
13446         * m4/fprintftime.m4: Remove file.
13447         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
13448         (configure.ac): Remove gl_FPRINTFTIME call.
13449         (Makefile.am): Augment lib_SOURCES.
13450         Reported by Jim Meyering.
13451
13452 2011-06-16  Bruno Haible  <bruno@clisp.org>
13453
13454         tmpfile-safer: Finish 2011-05-23 commit.
13455         * m4/stdio-safer.m4: Really remove file.
13456         Reported by Jim Meyering.
13457
13458 2011-06-16  Bruno Haible  <bruno@clisp.org>
13459
13460         syntax-check: Fix typo.
13461         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13462         printf-posix.m4.
13463         Reported by Jim Meyering.
13464
13465 2011-06-13  Jim Meyering  <meyering@redhat.com>
13466
13467         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13468         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13469
13470 2011-05-23  Bruno Haible  <bruno@clisp.org>
13471
13472         yesno: Move AC_LIBOBJ invocations to module description.
13473         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
13474         * modules/yesno (Makefile.am): Augment lib_SOURCES.
13475
13476 2011-05-23  Bruno Haible  <bruno@clisp.org>
13477
13478         xstrtol: Move AC_LIBOBJ invocations to module description.
13479         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
13480         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
13481
13482 2011-05-23  Bruno Haible  <bruno@clisp.org>
13483
13484         xstrtold: Move AC_LIBOBJ invocations to module description.
13485         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
13486         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
13487
13488 2011-05-23  Bruno Haible  <bruno@clisp.org>
13489
13490         xstrtod: Move AC_LIBOBJ invocations to module description.
13491         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
13492         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
13493
13494 2011-05-23  Bruno Haible  <bruno@clisp.org>
13495
13496         xnanosleep: Move AC_LIBOBJ invocations to module description.
13497         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
13498         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
13499
13500 2011-05-23  Bruno Haible  <bruno@clisp.org>
13501
13502         xgetcwd: Move AC_LIBOBJ invocations to module description.
13503         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
13504         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
13505
13506 2011-05-23  Bruno Haible  <bruno@clisp.org>
13507
13508         xalloc: Move AC_LIBOBJ invocations to module description.
13509         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
13510         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
13511
13512 2011-05-23  Bruno Haible  <bruno@clisp.org>
13513
13514         write-any-file: Move AC_LIBOBJ invocations to module description.
13515         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
13516         invocation.
13517         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13518
13519 2011-05-23  Bruno Haible  <bruno@clisp.org>
13520
13521         utimens: Move AC_LIBOBJ invocations to module description.
13522         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13523         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13524
13525 2011-05-23  Bruno Haible  <bruno@clisp.org>
13526
13527         utimecmp: Move AC_LIBOBJ invocations to module description.
13528         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13529         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13530
13531 2011-05-23  Bruno Haible  <bruno@clisp.org>
13532
13533         userspec: Move AC_LIBOBJ invocations to module description.
13534         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13535         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13536
13537 2011-05-23  Bruno Haible  <bruno@clisp.org>
13538
13539         unlinkdir: Move AC_LIBOBJ invocations to module description.
13540         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13541         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13542
13543 2011-05-23  Bruno Haible  <bruno@clisp.org>
13544
13545         unistd-safer: Move AC_LIBOBJ invocations to module description.
13546         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13547         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13548
13549 2011-05-23  Bruno Haible  <bruno@clisp.org>
13550
13551         tempname: Move AC_LIBOBJ invocations to module description.
13552         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13553         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13554
13555 2011-05-23  Bruno Haible  <bruno@clisp.org>
13556
13557         strftime: Move AC_LIBOBJ invocations to module description.
13558         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13559         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13560
13561 2011-05-23  Bruno Haible  <bruno@clisp.org>
13562
13563         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13564         * m4/stdlib-safer.m4: Remove file.
13565         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13566         (configure.ac): Remove gl_STDLIB_SAFER call.
13567         (Makefile.am): Augment lib_SOURCES.
13568
13569 2011-05-23  Bruno Haible  <bruno@clisp.org>
13570
13571         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13572         * m4/stdio-safer.m4: Remove file.
13573         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13574         (configure.ac): Remove gl_TMPFILE_SAFER call.
13575         (Makefile.am): Augment lib_SOURCES.
13576
13577 2011-05-23  Bruno Haible  <bruno@clisp.org>
13578
13579         popen-safer: Move AC_LIBOBJ invocations to module description.
13580         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13581         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13582         (configure.ac): Remove gl_POPEN_SAFER call.
13583         (Makefile.am): Augment lib_SOURCES.
13584
13585 2011-05-23  Bruno Haible  <bruno@clisp.org>
13586
13587         freopen-safer: Move AC_LIBOBJ invocations to module description.
13588         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13589         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13590         (configure.ac): Remove gl_FREOPEN_SAFER call.
13591         (Makefile.am): Augment lib_SOURCES.
13592
13593 2011-05-23  Bruno Haible  <bruno@clisp.org>
13594
13595         fopen-safer: Move AC_LIBOBJ invocations to module description.
13596         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13597         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13598         (configure.ac): Remove gl_FOPEN_SAFER call.
13599         (Makefile.am): Augment lib_SOURCES.
13600
13601 2011-05-23  Bruno Haible  <bruno@clisp.org>
13602
13603         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13604         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13605         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13606
13607 2011-05-23  Bruno Haible  <bruno@clisp.org>
13608
13609         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13610         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13611         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13612
13613 2011-05-23  Bruno Haible  <bruno@clisp.org>
13614
13615         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13616         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13617         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13618
13619 2011-05-23  Bruno Haible  <bruno@clisp.org>
13620
13621         settime: Move AC_LIBOBJ invocations to module description.
13622         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13623         * modules/settime (Makefile.am): Augment lib_SOURCES.
13624
13625 2011-05-23  Bruno Haible  <bruno@clisp.org>
13626
13627         savedir: Move AC_LIBOBJ invocations to module description.
13628         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13629         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13630
13631 2011-05-23  Bruno Haible  <bruno@clisp.org>
13632
13633         save-cwd: Move AC_LIBOBJ invocations to module description.
13634         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13635         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13636
13637 2011-05-23  Bruno Haible  <bruno@clisp.org>
13638
13639         same: Move AC_LIBOBJ invocations to module description.
13640         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13641         * modules/same (Makefile.am): Augment lib_SOURCES.
13642
13643 2011-05-23  Bruno Haible  <bruno@clisp.org>
13644
13645         safe-write: Move AC_LIBOBJ invocations to module description.
13646         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13647         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13648         instead of gl_SAFE_WRITE.
13649         (Makefile.am): Augment lib_SOURCES.
13650
13651 2011-05-23  Bruno Haible  <bruno@clisp.org>
13652
13653         safe-read: Move AC_LIBOBJ invocations to module description.
13654         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13655         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13656         of gl_SAFE_READ.
13657         (Makefile.am): Augment lib_SOURCES.
13658
13659 2011-05-23  Bruno Haible  <bruno@clisp.org>
13660
13661         safe-alloc: Move AC_LIBOBJ invocations to module description.
13662         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13663         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13664
13665 2011-05-23  Bruno Haible  <bruno@clisp.org>
13666
13667         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13668         * m4/rijndael.m4: Remove file.
13669         * modules/crypto/rijndael (Files): Remove it.
13670         (configure.ac): Remove gl_RIJNDAEL call.
13671         (Makefile.am): Augment lib_SOURCES.
13672
13673 2011-05-23  Bruno Haible  <bruno@clisp.org>
13674
13675         readtokens: Move AC_LIBOBJ invocations to module description.
13676         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13677         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13678
13679 2011-05-23  Bruno Haible  <bruno@clisp.org>
13680
13681         read-file: Move AC_LIBOBJ invocations to module description.
13682         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13683         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13684         of gl_FUNC_READ_FILE.
13685         (Makefile.am): Augment lib_SOURCES.
13686
13687 2011-05-23  Bruno Haible  <bruno@clisp.org>
13688
13689         quotearg: Move AC_LIBOBJ invocations to module description.
13690         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13691         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13692
13693 2011-05-23  Bruno Haible  <bruno@clisp.org>
13694
13695         quote: Move AC_LIBOBJ invocations to module description.
13696         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13697         * modules/quote (Makefile.am): Augment lib_SOURCES.
13698
13699 2011-05-23  Bruno Haible  <bruno@clisp.org>
13700
13701         posixver: Move AC_LIBOBJ invocations to module description.
13702         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13703         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13704
13705 2011-05-23  Bruno Haible  <bruno@clisp.org>
13706
13707         posixtm: Move AC_LIBOBJ invocations to module description.
13708         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13709         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13710
13711 2011-05-23  Bruno Haible  <bruno@clisp.org>
13712
13713         physmem: Move AC_LIBOBJ invocations to module description.
13714         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13715         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13716
13717 2011-05-23  Bruno Haible  <bruno@clisp.org>
13718
13719         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13720         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13721         invocation.
13722         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13723
13724 2011-05-23  Bruno Haible  <bruno@clisp.org>
13725
13726         mpsort: Move AC_LIBOBJ invocations to module description.
13727         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13728         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13729
13730 2011-05-23  Bruno Haible  <bruno@clisp.org>
13731
13732         modechange: Move AC_LIBOBJ invocations to module description.
13733         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13734         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13735
13736 2011-05-23  Bruno Haible  <bruno@clisp.org>
13737
13738         mkdir-p: Move AC_LIBOBJ invocations to module description.
13739         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13740         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13741
13742 2011-05-23  Bruno Haible  <bruno@clisp.org>
13743
13744         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13745         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13746         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13747
13748 2011-05-23  Bruno Haible  <bruno@clisp.org>
13749
13750         mgetgroups: Move AC_LIBOBJ invocations to module description.
13751         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13752         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13753
13754 2011-05-23  Bruno Haible  <bruno@clisp.org>
13755
13756         memxor: Move AC_LIBOBJ invocations to module description.
13757         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13758         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13759
13760 2011-05-23  Bruno Haible  <bruno@clisp.org>
13761
13762         memcoll: Move AC_LIBOBJ invocations to module description.
13763         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13764         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13765
13766 2011-05-23  Bruno Haible  <bruno@clisp.org>
13767
13768         memcasecmp: Move AC_LIBOBJ invocations to module description.
13769         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13770         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13771
13772 2011-05-23  Bruno Haible  <bruno@clisp.org>
13773
13774         crypto/md5: Move AC_LIBOBJ invocations to module description.
13775         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13776         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13777
13778 2011-05-23  Bruno Haible  <bruno@clisp.org>
13779
13780         crypto/md4: Move AC_LIBOBJ invocations to module description.
13781         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13782         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13783
13784 2011-05-23  Bruno Haible  <bruno@clisp.org>
13785
13786         crypto/md2: Move AC_LIBOBJ invocations to module description.
13787         * m4/md2.m4: Remove file.
13788         * modules/crypto/md2 (Files): Remove it.
13789         (configure.ac): Remove gl_MD2 call.
13790         (Makefile.am): Augment lib_SOURCES.
13791
13792 2011-05-23  Bruno Haible  <bruno@clisp.org>
13793
13794         long-options: Move AC_LIBOBJ invocations to module description.
13795         * m4/long-options.m4: Remove file.
13796         * modules/long-options (Files): Remove it.
13797         (configure.ac): Remove gl_LONG_OPTIONS call.
13798         (Makefile.am): Augment lib_SOURCES.
13799
13800 2011-05-23  Bruno Haible  <bruno@clisp.org>
13801
13802         i-ring: Move AC_LIBOBJ invocations to module description.
13803         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13804         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13805
13806 2011-05-23  Bruno Haible  <bruno@clisp.org>
13807
13808         idcache: Move AC_LIBOBJ invocations to module description.
13809         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13810         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13811
13812 2011-05-23  Bruno Haible  <bruno@clisp.org>
13813
13814         human: Move AC_LIBOBJ invocations to module description.
13815         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13816         * modules/human (Makefile.am): Augment lib_SOURCES.
13817
13818 2011-05-23  Bruno Haible  <bruno@clisp.org>
13819
13820         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13821         * m4/hmac-sha1.m4: Remove file.
13822         * modules/crypto/hmac-sha1 (Files): Remove it.
13823         (configure.ac): Remove gl_HMAC_SHA1 call.
13824         (Makefile.am): Augment lib_SOURCES.
13825
13826 2011-05-23  Bruno Haible  <bruno@clisp.org>
13827
13828         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13829         * m4/hmac-md5.m4: Remove file.
13830         * modules/crypto/hmac-md5 (Files): Remove it.
13831         (configure.ac): Remove gl_HMAC_MD5 call.
13832         (Makefile.am): Augment lib_SOURCES.
13833
13834 2011-05-23  Bruno Haible  <bruno@clisp.org>
13835
13836         hash: Move AC_LIBOBJ invocations to module description.
13837         * m4/hash.m4: Remove file.
13838         * modules/hash (Files): Remove it.
13839         (configure.ac): Remove gl_HASH call.
13840         (Makefile.am): Augment lib_SOURCES.
13841
13842 2011-05-23  Bruno Haible  <bruno@clisp.org>
13843
13844         hard-locale: Move AC_LIBOBJ invocations to module description.
13845         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13846         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13847
13848 2011-05-23  Bruno Haible  <bruno@clisp.org>
13849
13850         getugroups: Move AC_LIBOBJ invocations to module description.
13851         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13852         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13853
13854 2011-05-23  Bruno Haible  <bruno@clisp.org>
13855
13856         gettime: Move AC_LIBOBJ invocations to module description.
13857         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13858         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13859
13860 2011-05-23  Bruno Haible  <bruno@clisp.org>
13861
13862         getndelim2: Move AC_LIBOBJ invocations to module description.
13863         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13864         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13865
13866 2011-05-23  Bruno Haible  <bruno@clisp.org>
13867
13868         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13869         * m4/gc-pbkdf2-sha1.m4: Remove file.
13870         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13871         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13872         (Makefile.am): Augment lib_SOURCES.
13873
13874 2011-05-23  Bruno Haible  <bruno@clisp.org>
13875
13876         fts: Move AC_LIBOBJ invocations to module description.
13877         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13878         * modules/fts (configure.ac): ... to here.
13879
13880 2011-05-23  Bruno Haible  <bruno@clisp.org>
13881
13882         file-type: Move AC_LIBOBJ invocations to module description.
13883         * m4/file-type.m4: Remove file.
13884         * modules/file-type (Files): Remove it.
13885         (configure.ac): Remove gl_FILE_TYPE call.
13886         (Makefile.am): Augment lib_SOURCES.
13887
13888 2011-05-23  Bruno Haible  <bruno@clisp.org>
13889
13890         filenamecat*: Respect rules for use of AC_LIBOBJ.
13891         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13892         Remove AC_LIBOBJ invocation.
13893         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13894         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13895
13896 2011-05-23  Bruno Haible  <bruno@clisp.org>
13897
13898         filemode: Move AC_LIBOBJ invocations to module description.
13899         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13900         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13901
13902 2011-05-23  Bruno Haible  <bruno@clisp.org>
13903
13904         openat-safer: Move AC_LIBOBJ invocations to module description.
13905         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13906         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13907
13908 2011-05-23  Bruno Haible  <bruno@clisp.org>
13909
13910         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13911         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13912         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13913
13914 2011-05-23  Bruno Haible  <bruno@clisp.org>
13915
13916         exclude: Move AC_LIBOBJ invocations to module description.
13917         * m4/exclude.m4: Remove file.
13918         * modules/exclude (Files): Remove it.
13919         (configure.ac): Remove gl_EXCLUDE call.
13920         (Makefile.am): Augment lib_SOURCES.
13921
13922 2011-05-23  Bruno Haible  <bruno@clisp.org>
13923
13924         dirname*: Respect rules for use of AC_LIBOBJ.
13925         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13926         invocations.
13927         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13928         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13929
13930 2011-05-23  Bruno Haible  <bruno@clisp.org>
13931
13932         dirent-safer: Move AC_LIBOBJ invocations to module description.
13933         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13934         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13935
13936 2011-05-23  Bruno Haible  <bruno@clisp.org>
13937
13938         crypto/des: Move AC_LIBOBJ invocations to module description.
13939         * m4/des.m4: Remove file.
13940         * modules/crypto/des (Files): Remove it.
13941         (configure.ac): Remove gl_DES call.
13942         (Makefile.am): Augment lib_SOURCES.
13943
13944 2011-05-23  Bruno Haible  <bruno@clisp.org>
13945
13946         cycle-check: Move AC_LIBOBJ invocations to module description.
13947         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13948         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13949
13950 2011-05-23  Bruno Haible  <bruno@clisp.org>
13951
13952         c-strtold: Move AC_LIBOBJ invocations to module description.
13953         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13954         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13955
13956 2011-05-23  Bruno Haible  <bruno@clisp.org>
13957
13958         c-strtod: Move AC_LIBOBJ invocations to module description.
13959         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13960         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13961
13962 2011-05-23  Bruno Haible  <bruno@clisp.org>
13963
13964         crc: Move AC_LIBOBJ invocations to module description.
13965         * m4/crc.m4: Remove file.
13966         * modules/crc (Files): Remove it.
13967         (configure.ac): Remove gl_CRC call.
13968         (Makefile.am): Augment lib_SOURCES.
13969
13970 2011-05-23  Bruno Haible  <bruno@clisp.org>
13971
13972         close-stream: Move AC_LIBOBJ invocations to module description.
13973         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13974         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13975
13976 2011-05-23  Bruno Haible  <bruno@clisp.org>
13977
13978         closeout: Move AC_LIBOBJ invocations to module description.
13979         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13980         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13981
13982 2011-05-23  Bruno Haible  <bruno@clisp.org>
13983
13984         closein: Move AC_LIBOBJ invocations to module description.
13985         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13986         * modules/closein (Makefile.am): Augment lib_SOURCES.
13987
13988 2011-05-23  Bruno Haible  <bruno@clisp.org>
13989
13990         cloexec: Move AC_LIBOBJ invocations to module description.
13991         * m4/cloexec.m4: Remove file.
13992         * modules/cloexec (Files): Remove it.
13993         (configure.ac): Remove gl_CLOEXEC call.
13994         (Makefile.am): Augment lib_SOURCES.
13995
13996 2011-05-23  Bruno Haible  <bruno@clisp.org>
13997
13998         check-version: Move AC_LIBOBJ invocations to module description.
13999         * m4/check-version.m4: Remove file.
14000         * modules/check-version (Files): Remove it.
14001         (configure.ac): Remove gl_CHECK_VERSION call.
14002         (Makefile.am): Augment lib_SOURCES.
14003
14004 2011-05-23  Bruno Haible  <bruno@clisp.org>
14005
14006         chdir-safer: Move AC_LIBOBJ invocations to module description.
14007         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
14008         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
14009
14010 2011-05-23  Bruno Haible  <bruno@clisp.org>
14011
14012         canonicalize: Move AC_LIBOBJ invocations to module description.
14013         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
14014         AC_LIBOBJ invocation.
14015         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
14016
14017 2011-05-23  Bruno Haible  <bruno@clisp.org>
14018
14019         canon-host: Move AC_LIBOBJ invocations to module description.
14020         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
14021         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
14022         instead of gl_CANON_HOST.
14023         (Makefile.am): Augment lib_SOURCES.
14024
14025 2011-05-23  Bruno Haible  <bruno@clisp.org>
14026
14027         backupfile: Move AC_LIBOBJ invocations to module description.
14028         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
14029         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
14030
14031 2011-05-23  Bruno Haible  <bruno@clisp.org>
14032
14033         argmatch: Move AC_LIBOBJ invocations to module description.
14034         * m4/argmatch.m4: Remove file.
14035         * modules/argmatch (Files): Remove it.
14036         (configure.ac): Remove gl_ARGMATCH call.
14037         (Makefile.am): Augment lib_SOURCES.
14038
14039 2011-05-23  Bruno Haible  <bruno@clisp.org>
14040
14041         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14042         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14043         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14044
14045 2011-05-23  Bruno Haible  <bruno@clisp.org>
14046
14047         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14048         * m4/arcfour.m4: Remove file.
14049         * modules/crypto/arcfour (Files): Remove it.
14050         (configure.ac): Remove gl_ARCFOUR call.
14051         (Makefile.am): Augment lib_SOURCES.
14052
14053 2011-05-22  Bruno Haible  <bruno@clisp.org>
14054
14055         write: Move AC_LIBOBJ invocations to module description.
14056         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14057         * modules/write (configure.ac): ... to here.
14058
14059 2011-05-22  Bruno Haible  <bruno@clisp.org>
14060
14061         wmemset: Move AC_LIBOBJ invocations to module description.
14062         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14063         here...
14064         * modules/wmemset (configure.ac): ... to here.
14065
14066 2011-05-22  Bruno Haible  <bruno@clisp.org>
14067
14068         wmemmove: Move AC_LIBOBJ invocations to module description.
14069         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14070         here...
14071         * modules/wmemmove (configure.ac): ... to here.
14072
14073 2011-05-22  Bruno Haible  <bruno@clisp.org>
14074
14075         wmemcpy: Move AC_LIBOBJ invocations to module description.
14076         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14077         here...
14078         * modules/wmemcpy (configure.ac): ... to here.
14079
14080 2011-05-22  Bruno Haible  <bruno@clisp.org>
14081
14082         wmemcmp: Move AC_LIBOBJ invocations to module description.
14083         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14084         here...
14085         * modules/wmemcmp (configure.ac): ... to here.
14086
14087 2011-05-22  Bruno Haible  <bruno@clisp.org>
14088
14089         wmemchr: Move AC_LIBOBJ invocations to module description.
14090         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14091         here...
14092         * modules/wmemchr (configure.ac): ... to here.
14093
14094 2011-05-22  Bruno Haible  <bruno@clisp.org>
14095
14096         wcswidth: Move AC_LIBOBJ invocations to module description.
14097         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14098         here...
14099         * modules/wcswidth (configure.ac): ... to here.
14100
14101 2011-05-22  Bruno Haible  <bruno@clisp.org>
14102
14103         wcwidth: Respect rules for use of AC_LIBOBJ.
14104         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14105         invocation from here...
14106         * modules/wcwidth (configure.ac): ... to here.
14107         (Depends-on): Update conditions.
14108
14109 2011-05-22  Bruno Haible  <bruno@clisp.org>
14110
14111         wctype: Move AC_LIBOBJ invocations to module description.
14112         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14113         invocation from here...
14114         * modules/wctype (configure.ac): ... to here.
14115         (Depends-on): Update conditions.
14116
14117 2011-05-22  Bruno Haible  <bruno@clisp.org>
14118
14119         wctrans: Move AC_LIBOBJ invocations to module description.
14120         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14121         invocation from here...
14122         * modules/wctrans (configure.ac): ... to here.
14123
14124 2011-05-22  Bruno Haible  <bruno@clisp.org>
14125
14126         wctomb: Move AC_LIBOBJ invocations to module description.
14127         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14128         invocations from here...
14129         * modules/wctomb (configure.ac): ... to here.
14130
14131 2011-05-22  Bruno Haible  <bruno@clisp.org>
14132
14133         wctob: Move AC_LIBOBJ invocations to module description.
14134         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14135         gl_PREREQ_WCTOB invocations from here...
14136         * modules/wctob (configure.ac): ... to here.
14137         (Depends-on): Update conditions.
14138
14139 2011-05-22  Bruno Haible  <bruno@clisp.org>
14140
14141         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14142         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14143         here...
14144         * modules/wcsxfrm (configure.ac): ... to here.
14145
14146 2011-05-22  Bruno Haible  <bruno@clisp.org>
14147
14148         wcstok: Move AC_LIBOBJ invocations to module description.
14149         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14150         * modules/wcstok (configure.ac): ... to here.
14151
14152 2011-05-22  Bruno Haible  <bruno@clisp.org>
14153
14154         wcsstr: Move AC_LIBOBJ invocations to module description.
14155         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14156         * modules/wcsstr (configure.ac): ... to here.
14157
14158 2011-05-22  Bruno Haible  <bruno@clisp.org>
14159
14160         wcsspn: Move AC_LIBOBJ invocations to module description.
14161         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14162         * modules/wcsspn (configure.ac): ... to here.
14163
14164 2011-05-22  Bruno Haible  <bruno@clisp.org>
14165
14166         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14167         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14168         gl_PREREQ_WCSRTOMBS invocations from here...
14169         * modules/wcsrtombs (configure.ac): ... to here.
14170
14171 2011-05-22  Bruno Haible  <bruno@clisp.org>
14172
14173         wcsrchr: Move AC_LIBOBJ invocations to module description.
14174         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14175         here...
14176         * modules/wcsrchr (configure.ac): ... to here.
14177
14178 2011-05-22  Bruno Haible  <bruno@clisp.org>
14179
14180         wcspbrk: Move AC_LIBOBJ invocations to module description.
14181         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14182         here...
14183         * modules/wcspbrk (configure.ac): ... to here.
14184
14185 2011-05-22  Bruno Haible  <bruno@clisp.org>
14186
14187         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14188         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14189         gl_PREREQ_WCSNRTOMBS invocations from here...
14190         * modules/wcsnrtombs (configure.ac): ... to here.
14191
14192 2011-05-22  Bruno Haible  <bruno@clisp.org>
14193
14194         wcsnlen: Move AC_LIBOBJ invocations to module description.
14195         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14196         here...
14197         * modules/wcsnlen (configure.ac): ... to here.
14198
14199 2011-05-22  Bruno Haible  <bruno@clisp.org>
14200
14201         wcsncpy: Move AC_LIBOBJ invocations to module description.
14202         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14203         here...
14204         * modules/wcsncpy (configure.ac): ... to here.
14205
14206 2011-05-22  Bruno Haible  <bruno@clisp.org>
14207
14208         wcsncmp: Move AC_LIBOBJ invocations to module description.
14209         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14210         here...
14211         * modules/wcsncmp (configure.ac): ... to here.
14212
14213 2011-05-22  Bruno Haible  <bruno@clisp.org>
14214
14215         wcsncat: Move AC_LIBOBJ invocations to module description.
14216         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14217         here...
14218         * modules/wcsncat (configure.ac): ... to here.
14219
14220 2011-05-22  Bruno Haible  <bruno@clisp.org>
14221
14222         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14223         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14224         from here...
14225         * modules/wcsncasecmp (configure.ac): ... to here.
14226
14227 2011-05-22  Bruno Haible  <bruno@clisp.org>
14228
14229         wcslen: Move AC_LIBOBJ invocations to module description.
14230         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14231         * modules/wcslen (configure.ac): ... to here.
14232
14233 2011-05-22  Bruno Haible  <bruno@clisp.org>
14234
14235         wcsdup: Move AC_LIBOBJ invocations to module description.
14236         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14237         * modules/wcsdup (configure.ac): ... to here.
14238
14239 2011-05-22  Bruno Haible  <bruno@clisp.org>
14240
14241         wcscspn: Move AC_LIBOBJ invocations to module description.
14242         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14243         here...
14244         * modules/wcscspn (configure.ac): ... to here.
14245
14246 2011-05-22  Bruno Haible  <bruno@clisp.org>
14247
14248         wcscpy: Move AC_LIBOBJ invocations to module description.
14249         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14250         * modules/wcscpy (configure.ac): ... to here.
14251
14252 2011-05-22  Bruno Haible  <bruno@clisp.org>
14253
14254         wcscoll: Move AC_LIBOBJ invocations to module description.
14255         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14256         here...
14257         * modules/wcscoll (configure.ac): ... to here.
14258
14259 2011-05-22  Bruno Haible  <bruno@clisp.org>
14260
14261         wcscmp: Move AC_LIBOBJ invocations to module description.
14262         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14263         * modules/wcscmp (configure.ac): ... to here.
14264
14265 2011-05-22  Bruno Haible  <bruno@clisp.org>
14266
14267         wcschr: Move AC_LIBOBJ invocations to module description.
14268         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14269         * modules/wcschr (configure.ac): ... to here.
14270
14271 2011-05-22  Bruno Haible  <bruno@clisp.org>
14272
14273         wcscat: Move AC_LIBOBJ invocations to module description.
14274         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14275         * modules/wcscat (configure.ac): ... to here.
14276
14277 2011-05-22  Bruno Haible  <bruno@clisp.org>
14278
14279         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14280         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14281         here...
14282         * modules/wcscasecmp (configure.ac): ... to here.
14283
14284 2011-05-22  Bruno Haible  <bruno@clisp.org>
14285
14286         wcrtomb: Move AC_LIBOBJ invocations to module description.
14287         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14288         invocations from here...
14289         * modules/wcrtomb (configure.ac): ... to here.
14290
14291 2011-05-22  Bruno Haible  <bruno@clisp.org>
14292
14293         wcpncpy: Move AC_LIBOBJ invocations to module description.
14294         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
14295         here...
14296         * modules/wcpncpy (configure.ac): ... to here.
14297
14298 2011-05-22  Bruno Haible  <bruno@clisp.org>
14299
14300         wcpcpy: Move AC_LIBOBJ invocations to module description.
14301         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14302         * modules/wcpcpy (configure.ac): ... to here.
14303
14304 2011-05-22  Bruno Haible  <bruno@clisp.org>
14305
14306         waitpid: Move AC_LIBOBJ invocations to module description.
14307         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14308         invocation from here...
14309         * modules/waitpid (configure.ac): ... to here.
14310
14311 2011-05-22  Bruno Haible  <bruno@clisp.org>
14312
14313         utimensat: Move AC_LIBOBJ invocations to module description.
14314         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14315         here...
14316         * modules/utimensat (configure.ac): ... to here.
14317
14318 2011-05-22  Bruno Haible  <bruno@clisp.org>
14319
14320         usleep: Move AC_LIBOBJ invocations to module description.
14321         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14322         here...
14323         * modules/usleep (configure.ac): ... to here.
14324
14325 2011-05-22  Bruno Haible  <bruno@clisp.org>
14326
14327         unlockpt: Move AC_LIBOBJ invocations to module description.
14328         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14329         gl_PREREQ_UNLOCKPT invocations from here...
14330         * modules/unlockpt (configure.ac): ... to here.
14331
14332 2011-05-22  Bruno Haible  <bruno@clisp.org>
14333
14334         unlink: Respect rules for use of AC_LIBOBJ.
14335         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14336         * modules/unlink (configure.ac): ... to here.
14337
14338 2011-05-22  Bruno Haible  <bruno@clisp.org>
14339
14340         uname: Move AC_LIBOBJ invocations to module description.
14341         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14342         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14343         here...
14344         * modules/uname (configure.ac): ... to here.
14345
14346 2011-05-22  Bruno Haible  <bruno@clisp.org>
14347
14348         ttyname_r: Move AC_LIBOBJ invocations to module description.
14349         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14350         gl_PREREQ_TTYNAME_R invocations from here...
14351         * modules/ttyname_r (configure.ac): ... to here.
14352
14353 2011-05-22  Bruno Haible  <bruno@clisp.org>
14354
14355         tsearch: Move AC_LIBOBJ invocations to module description.
14356         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14357         invocations from here...
14358         * modules/tsearch (configure.ac): ... to here.
14359
14360 2011-05-22  Bruno Haible  <bruno@clisp.org>
14361
14362         towctrans: Move AC_LIBOBJ invocations to module description.
14363         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
14364         AC_LIBOBJ invocation from here...
14365         * modules/towctrans (configure.ac): ... to here.
14366
14367 2011-05-22  Bruno Haible  <bruno@clisp.org>
14368
14369         tmpfile: Move AC_LIBOBJ invocations to module description.
14370         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
14371         invocations from here...
14372         * modules/tmpfile (configure.ac): ... to here.
14373
14374 2011-05-22  Bruno Haible  <bruno@clisp.org>
14375
14376         times: Move AC_LIBOBJ invocations to module description.
14377         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
14378         * modules/times (configure.ac): ... to here.
14379
14380 2011-05-22  Bruno Haible  <bruno@clisp.org>
14381
14382         time_r: Move AC_LIBOBJ invocations to module description.
14383         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
14384         invocations from here...
14385         * modules/time_r (configure.ac): ... to here.
14386
14387 2011-05-22  Bruno Haible  <bruno@clisp.org>
14388
14389         timegm: Move AC_LIBOBJ invocations to module description.
14390         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
14391         invocations from here...
14392         * modules/timegm (configure.ac): ... to here.
14393
14394 2011-05-22  Bruno Haible  <bruno@clisp.org>
14395
14396         tcgetsid: Move AC_LIBOBJ invocations to module description.
14397         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
14398         and gl_PREREQ_TCGETSID invocations from here...
14399         * modules/tcgetsid (configure.ac): ... to here.
14400         (Depends-on): Update conditions.
14401
14402 2011-05-22  Bruno Haible  <bruno@clisp.org>
14403
14404         symlinkat: Move AC_LIBOBJ invocations to module description.
14405         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
14406         here...
14407         * modules/symlinkat (configure.ac): ... to here.
14408
14409 2011-05-22  Bruno Haible  <bruno@clisp.org>
14410
14411         symlink: Move AC_LIBOBJ invocations to module description.
14412         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
14413         here...
14414         * modules/symlink (configure.ac): ... to here.
14415
14416 2011-05-22  Bruno Haible  <bruno@clisp.org>
14417
14418         strverscmp: Move AC_LIBOBJ invocations to module description.
14419         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
14420         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14421         from here...
14422         * modules/strverscmp (configure.ac): ... to here.
14423
14424 2011-05-22  Bruno Haible  <bruno@clisp.org>
14425
14426         strtok_r: Move AC_LIBOBJ invocations to module description.
14427         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14428         and gl_PREREQ_STRTOK_R invocations from here...
14429         * modules/strtok_r (configure.ac): ... to here.
14430         (Depends-on): Update conditions.
14431
14432 2011-05-22  Bruno Haible  <bruno@clisp.org>
14433
14434         strtoumax: Move AC_LIBOBJ invocations to module description.
14435         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14436         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14437         from here...
14438         * modules/strtoumax (configure.ac): ... to here.
14439
14440 2011-05-22  Bruno Haible  <bruno@clisp.org>
14441
14442         strtoimax: Move AC_LIBOBJ invocations to module description.
14443         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
14444         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
14445         from here...
14446         * modules/strtoimax (configure.ac): ... to here.
14447
14448 2011-05-22  Bruno Haible  <bruno@clisp.org>
14449
14450         strtoull: Move AC_LIBOBJ invocations to module description.
14451         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
14452         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
14453         from here...
14454         * modules/strtoull (configure.ac): ... to here.
14455
14456 2011-05-22  Bruno Haible  <bruno@clisp.org>
14457
14458         strtoll: Move AC_LIBOBJ invocations to module description.
14459         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
14460         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
14461         here...
14462         * modules/strtoll (configure.ac): ... to here.
14463
14464 2011-05-22  Bruno Haible  <bruno@clisp.org>
14465
14466         strtoul: Move AC_LIBOBJ invocations to module description.
14467         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14468         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14469         * modules/strtoul (configure.ac): ... to here.
14470
14471 2011-05-22  Bruno Haible  <bruno@clisp.org>
14472
14473         strtol: Move AC_LIBOBJ invocations to module description.
14474         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
14475         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14476         * modules/strtol (configure.ac): ... to here.
14477
14478 2011-05-22  Bruno Haible  <bruno@clisp.org>
14479
14480         strtod: Move AC_LIBOBJ invocations to module description.
14481         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
14482         invocations from here...
14483         * modules/strtod (configure.ac): ... to here.
14484
14485 2011-05-22  Bruno Haible  <bruno@clisp.org>
14486
14487         strstr*: Move AC_LIBOBJ invocations to module description.
14488         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
14489         invocations from here...
14490         * modules/strstr-simple (configure.ac): ... to here.
14491         * modules/strstr (configure.ac): ... and here.
14492
14493 2011-05-22  Bruno Haible  <bruno@clisp.org>
14494
14495         strsignal: Move AC_LIBOBJ invocations to module description.
14496         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
14497         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
14498         * modules/strsignal (configure.ac): ... to here.
14499         (Depends-on): Update conditions.
14500
14501 2011-05-22  Bruno Haible  <bruno@clisp.org>
14502
14503         strsep: Move AC_LIBOBJ invocations to module description.
14504         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
14505         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
14506         here...
14507         * modules/strsep (configure.ac): ... to here.
14508
14509 2011-05-22  Bruno Haible  <bruno@clisp.org>
14510
14511         strptime: Move AC_LIBOBJ invocations to module description.
14512         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
14513         gl_PREREQ_STRPTIME invocations from here...
14514         * modules/strptime (configure.ac): ... to here.
14515
14516 2011-05-22  Bruno Haible  <bruno@clisp.org>
14517
14518         strpbrk: Move AC_LIBOBJ invocations to module description.
14519         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14520         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14521         here...
14522         * modules/strpbrk (configure.ac): ... to here.
14523
14524 2011-05-22  Bruno Haible  <bruno@clisp.org>
14525
14526         strnlen: Move AC_LIBOBJ invocations to module description.
14527         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14528         invocations from here...
14529         * modules/strnlen (configure.ac): ... to here.
14530
14531 2011-05-22  Bruno Haible  <bruno@clisp.org>
14532
14533         strndup: Move AC_LIBOBJ invocations to module description.
14534         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14535         invocations from here...
14536         * modules/strndup (configure.ac): ... to here.
14537         (Depends-on): Update conditions.
14538
14539 2011-05-22  Bruno Haible  <bruno@clisp.org>
14540
14541         strncat: Move AC_LIBOBJ invocations to module description.
14542         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14543         invocations from here...
14544         * modules/strncat (configure.ac): ... to here.
14545
14546 2011-05-22  Bruno Haible  <bruno@clisp.org>
14547
14548         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14549         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14550         invocations from here...
14551         * modules/strdup (configure.ac): ... to here.
14552         * modules/strdup-posix (configure.ac): ... and here.
14553
14554 2011-05-22  Bruno Haible  <bruno@clisp.org>
14555
14556         strcspn: Move AC_LIBOBJ invocations to module description.
14557         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14558         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14559         here...
14560         * modules/strcspn (configure.ac): ... to here.
14561
14562 2011-05-22  Bruno Haible  <bruno@clisp.org>
14563
14564         strchrnul: Move AC_LIBOBJ invocations to module description.
14565         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14566         gl_PREREQ_STRCHRNUL invocations from here...
14567         * modules/strchrnul (configure.ac): ... to here.
14568
14569 2011-05-22  Bruno Haible  <bruno@clisp.org>
14570
14571         strcasestr*: Move AC_LIBOBJ invocations to module description.
14572         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14573         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14574         * modules/strcasestr-simple (configure.ac): ... to here.
14575         * modules/strcasestr (configure.ac): ... and here.
14576
14577 2011-05-22  Bruno Haible  <bruno@clisp.org>
14578
14579         strcase: Move AC_LIBOBJ invocations to module description.
14580         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14581         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14582         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14583         gl_PREREQ_STRNCASECMP invocations from here...
14584         * modules/strcase (configure.ac): ... to here.
14585
14586 2011-05-22  Bruno Haible  <bruno@clisp.org>
14587
14588         stpncpy: Move AC_LIBOBJ invocations to module description.
14589         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14590         here...
14591         * modules/stpncpy (configure.ac): ... to here.
14592
14593 2011-05-22  Bruno Haible  <bruno@clisp.org>
14594
14595         stpcpy: Move AC_LIBOBJ invocations to module description.
14596         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14597         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14598         here...
14599         * modules/stpcpy (configure.ac): ... to here.
14600
14601 2011-05-21  Bruno Haible  <bruno@clisp.org>
14602
14603         stat: Move AC_LIBOBJ invocations to module description.
14604         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14605         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14606         here...
14607         * modules/stat (configure.ac): ... to here.
14608
14609 2011-05-21  Bruno Haible  <bruno@clisp.org>
14610
14611         sleep: Move AC_LIBOBJ invocations to module description.
14612         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14613         * modules/sleep (configure.ac): ... to here.
14614
14615 2011-05-21  Bruno Haible  <bruno@clisp.org>
14616
14617         signbit: Move AC_LIBOBJ invocations to module description.
14618         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14619         * modules/signbit (configure.ac): ... to here.
14620
14621 2011-05-21  Bruno Haible  <bruno@clisp.org>
14622
14623         sigprocmask: Move AC_LIBOBJ invocations to module description.
14624         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14625         gl_PREREQ_SIGPROMASK invocations from here...
14626         * modules/sigprocmask (configure.ac): ... to here.
14627
14628 2011-05-21  Bruno Haible  <bruno@clisp.org>
14629
14630         sigaction: Move AC_LIBOBJ invocations to module description.
14631         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14632         gl_PREREQ_SIGACTION invocations from here...
14633         * modules/sigaction (configure.ac): ... to here.
14634
14635 2011-05-21  Bruno Haible  <bruno@clisp.org>
14636
14637         sig2str: Move AC_LIBOBJ invocations to module description.
14638         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14639         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14640         here...
14641         * modules/sig2str (configure.ac): ... to here.
14642
14643 2011-05-21  Bruno Haible  <bruno@clisp.org>
14644
14645         setlocale: Move AC_LIBOBJ invocations to module description.
14646         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14647         gl_PREREQ_SETLOCALE invocations from here...
14648         * modules/setlocale (configure.ac): ... to here.
14649
14650 2011-05-21  Bruno Haible  <bruno@clisp.org>
14651
14652         unsetenv: Move AC_LIBOBJ invocations to module description.
14653         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14654         and gl_PREREQ_UNSETENV invocations from here...
14655         * modules/unsetenv (configure.ac): ... to here.
14656         (Depends-on): Update.
14657
14658 2011-05-21  Bruno Haible  <bruno@clisp.org>
14659
14660         setenv: Move AC_LIBOBJ invocations to module description.
14661         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14662         here...
14663         * modules/setenv (configure.ac): ... to here.
14664
14665 2011-05-21  Bruno Haible  <bruno@clisp.org>
14666
14667         selinux-h: Move AC_LIBOBJ invocations to module description.
14668         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14669         AC_LIBOBJ invocation from here...
14670         * modules/selinux-h (configure.ac): ... to here.
14671
14672 2011-05-21  Bruno Haible  <bruno@clisp.org>
14673
14674         select: Respect rules for use of AC_LIBOBJ.
14675         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14676         here...
14677         * modules/select (configure.ac): ... to here.
14678
14679 2011-05-21  Bruno Haible  <bruno@clisp.org>
14680
14681         scandir: Move AC_LIBOBJ invocations to module description.
14682         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14683         invocations from here...
14684         * modules/scandir (configure.ac): ... to here.
14685
14686 2011-05-21  Bruno Haible  <bruno@clisp.org>
14687
14688         rpmatch: Move AC_LIBOBJ invocations to module description.
14689         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14690         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14691         here...
14692         * modules/rpmatch (configure.ac): ... to here.
14693
14694 2011-05-21  Bruno Haible  <bruno@clisp.org>
14695
14696         rmdir: Respect rules for use of AC_LIBOBJ.
14697         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14698         * modules/rmdir (configure.ac): ... to here.
14699
14700 2011-05-21  Bruno Haible  <bruno@clisp.org>
14701
14702         renameat: Move AC_LIBOBJ invocations to module description.
14703         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14704         here...
14705         * modules/renameat (configure.ac): ... to here.
14706
14707 2011-05-21  Bruno Haible  <bruno@clisp.org>
14708
14709         rename: Respect rules for use of AC_LIBOBJ.
14710         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14711         here...
14712         * modules/rename (configure.ac): ... to here.
14713
14714 2011-05-21  Bruno Haible  <bruno@clisp.org>
14715
14716         remove: Move AC_LIBOBJ invocations to module description.
14717         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14718         here...
14719         * modules/remove (configure.ac): ... to here.
14720
14721 2011-05-21  Bruno Haible  <bruno@clisp.org>
14722
14723         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14724         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14725         macro.
14726         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14727         * modules/relocatable-lib (configure.ac): ... to here.
14728         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14729         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14730
14731 2011-05-21  Bruno Haible  <bruno@clisp.org>
14732
14733         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14734         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14735         here...
14736         * modules/relocatable-prog (configure.ac): ... to here.
14737
14738 2011-05-21  Bruno Haible  <bruno@clisp.org>
14739
14740         regex: Move AC_LIBOBJ invocations to module description.
14741         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14742         invocations from here...
14743         * modules/regex (configure.ac): ... to here.
14744
14745 2011-05-21  Bruno Haible  <bruno@clisp.org>
14746
14747         realloc-*: Move AC_LIBOBJ invocations to module description.
14748         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14749         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14750         AC_LIBOBJ invocations from here...
14751         * modules/realloc-gnu (configure.ac): ... to here.
14752         * modules/realloc-posix (configure.ac): ... and here.
14753
14754 2011-05-21  Bruno Haible  <bruno@clisp.org>
14755
14756         readutmp: Move AC_LIBOBJ invocations to module description.
14757         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14758         * modules/readutmp (configure.ac): ... to here.
14759
14760 2011-05-21  Bruno Haible  <bruno@clisp.org>
14761
14762         readlinkat: Move AC_LIBOBJ invocations to module description.
14763         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14764         here...
14765         * modules/readlinkat (configure.ac): ... to here.
14766
14767 2011-05-21  Bruno Haible  <bruno@clisp.org>
14768
14769         readlink: Move AC_LIBOBJ invocations to module description.
14770         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14771         gl_PREREQ_READLINK invocations from here...
14772         * modules/readlink (configure.ac): ... to here.
14773
14774 2011-05-21  Bruno Haible  <bruno@clisp.org>
14775
14776         readline: Move AC_LIBOBJ invocations to module description.
14777         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14778         gl_PREREQ_READLINE invocations from here...
14779         * modules/readline (configure.ac): ... to here.
14780
14781 2011-05-21  Bruno Haible  <bruno@clisp.org>
14782
14783         read: Move AC_LIBOBJ invocations to module description.
14784         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14785         * modules/read (configure.ac): ... to here.
14786
14787 2011-05-21  Bruno Haible  <bruno@clisp.org>
14788
14789         rawmemchr: Move AC_LIBOBJ invocations to module description.
14790         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14791         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14792         from here...
14793         * modules/rawmemchr (configure.ac): ... to here.
14794
14795 2011-05-21  Bruno Haible  <bruno@clisp.org>
14796
14797         random_r: Move AC_LIBOBJ invocations to module description.
14798         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14799         gl_PREREQ_RANDOM_R invocations from here...
14800         * modules/random_r (configure.ac): ... to here.
14801
14802 2011-05-21  Bruno Haible  <bruno@clisp.org>
14803
14804         pwrite: Move AC_LIBOBJ invocations to module description.
14805         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14806         * modules/pwrite (configure.ac): ... to here.
14807
14808 2011-05-21  Bruno Haible  <bruno@clisp.org>
14809
14810         putenv: Move AC_LIBOBJ invocations to module description.
14811         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14812         * modules/putenv (configure.ac): ... to here.
14813
14814 2011-05-21  Bruno Haible  <bruno@clisp.org>
14815
14816         login_tty: Move AC_LIBOBJ invocations to module description.
14817         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14818         * modules/login_tty (configure.ac): ... to here.
14819
14820 2011-05-21  Bruno Haible  <bruno@clisp.org>
14821
14822         openpty: Move AC_LIBOBJ invocations to module description.
14823         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14824         * modules/openpty (configure.ac): ... to here.
14825
14826 2011-05-21  Bruno Haible  <bruno@clisp.org>
14827
14828         forkpty: Move AC_LIBOBJ invocations to module description.
14829         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14830         * modules/forkpty (configure.ac): ... to here.
14831
14832 2011-05-21  Bruno Haible  <bruno@clisp.org>
14833
14834         ptsname: Move AC_LIBOBJ invocations to module description.
14835         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14836         invocations from here...
14837         * modules/ptsname (configure.ac): ... to here.
14838
14839 2011-05-21  Bruno Haible  <bruno@clisp.org>
14840
14841         pread: Move AC_LIBOBJ invocations to module description.
14842         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14843         * modules/pread (configure.ac): ... to here.
14844
14845 2011-05-21  Bruno Haible  <bruno@clisp.org>
14846
14847         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14848         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14849         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14850         * modules/posix_spawn (configure.ac): ... to here.
14851         * modules/posix_spawnp (configure.ac): ... and here.
14852
14853 2011-05-21  Bruno Haible  <bruno@clisp.org>
14854
14855         popen: Move AC_LIBOBJ invocations to module description.
14856         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14857         invocations from here...
14858         * modules/popen (configure.ac): ... to here.
14859
14860 2011-05-21  Bruno Haible  <bruno@clisp.org>
14861
14862         poll: Move AC_LIBOBJ invocations to module description.
14863         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14864         invocations from here...
14865         * modules/poll (configure.ac): ... to here.
14866
14867 2011-05-21  Bruno Haible  <bruno@clisp.org>
14868
14869         pipe-posix: Move AC_LIBOBJ invocations to module description.
14870         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14871         * modules/pipe-posix (configure.ac): ... to here.
14872
14873 2011-05-21  Bruno Haible  <bruno@clisp.org>
14874
14875         openat: Respect rules for use of AC_LIBOBJ.
14876         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14877         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14878         * modules/openat (configure.ac): ... to here.
14879
14880 2011-05-21  Bruno Haible  <bruno@clisp.org>
14881
14882         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14883         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14884         invocation from here...
14885         * modules/obstack-printf (configure.ac): ... to here.
14886         * modules/obstack-printf-posix (configure.ac): ... and here.
14887
14888 2011-05-21  Bruno Haible  <bruno@clisp.org>
14889
14890         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14891         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14892         from here...
14893         * modules/nl_langinfo (configure.ac): ... to here.
14894
14895 2011-05-21  Bruno Haible  <bruno@clisp.org>
14896
14897         nanosleep: Move AC_LIBOBJ invocations to module description.
14898         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14899         gl_PREREQ_NANOSLEEP invocations from here...
14900         * modules/nanosleep (configure.ac): ... to here.
14901
14902 2011-05-21  Bruno Haible  <bruno@clisp.org>
14903
14904         mountlist: Move AC_LIBOBJ invocations to module description.
14905         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14906         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14907         * modules/mountlist (configure.ac): ... to here.
14908
14909 2011-05-21  Bruno Haible  <bruno@clisp.org>
14910
14911         mktime: Respect rules for use of AC_LIBOBJ.
14912         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14913         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14914         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14915         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14916         * modules/mktime (configure.ac): ... to here.
14917         * modules/mktime-internal (configure.ac): ... and here.
14918         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14919
14920 2011-05-21  Bruno Haible  <bruno@clisp.org>
14921
14922         mkstemps: Move AC_LIBOBJ invocations to module description.
14923         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14924         here...
14925         * modules/mkstemps (configure.ac): ... to here.
14926
14927 2011-05-21  Bruno Haible  <bruno@clisp.org>
14928
14929         mkstemp: Move AC_LIBOBJ invocations to module description.
14930         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14931         gl_PREREQ_MKSTEMP invocations from here...
14932         * modules/mkstemp (configure.ac): ... to here.
14933
14934 2011-05-21  Bruno Haible  <bruno@clisp.org>
14935
14936         mkostemps: Move AC_LIBOBJ invocations to module description.
14937         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14938         here...
14939         * modules/mkostemps (configure.ac): ... to here.
14940
14941 2011-05-21  Bruno Haible  <bruno@clisp.org>
14942
14943         mkostemp: Move AC_LIBOBJ invocations to module description.
14944         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14945         gl_PREREQ_MKOSTEMP invocations from here...
14946         * modules/mkostemp (configure.ac): ... to here.
14947
14948 2011-05-21  Bruno Haible  <bruno@clisp.org>
14949
14950         mknod: Move AC_LIBOBJ invocations to module description.
14951         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14952         * modules/mknod (configure.ac): ... to here.
14953
14954 2011-05-21  Bruno Haible  <bruno@clisp.org>
14955
14956         mkfifoat: Move AC_LIBOBJ invocations to module description.
14957         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14958         here...
14959         * modules/mkfifoat (configure.ac): ... to here.
14960
14961 2011-05-21  Bruno Haible  <bruno@clisp.org>
14962
14963         mkfifo: Respect rules for use of AC_LIBOBJ.
14964         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14965         here...
14966         * modules/mkfifo (configure.ac): ... to here.
14967
14968 2011-05-21  Bruno Haible  <bruno@clisp.org>
14969
14970         mkdtemp: Move AC_LIBOBJ invocations to module description.
14971         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14972         invocations from here...
14973         * modules/mkdtemp (configure.ac): ... to here.
14974
14975 2011-05-21  Bruno Haible  <bruno@clisp.org>
14976
14977         mkdir: Move AC_LIBOBJ invocations to module description.
14978         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14979         * modules/mkdir (configure.ac): ... to here.
14980
14981 2011-05-21  Bruno Haible  <bruno@clisp.org>
14982
14983         memset: Move AC_LIBOBJ invocations to module description.
14984         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14985         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14986         here...
14987         * modules/memset (configure.ac): ... to here.
14988
14989 2011-05-21  Bruno Haible  <bruno@clisp.org>
14990
14991         memrchr: Move AC_LIBOBJ invocations to module description.
14992         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14993         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14994         here...
14995         * modules/memrchr (configure.ac): ... to here.
14996
14997 2011-05-21  Bruno Haible  <bruno@clisp.org>
14998
14999         mempcpy: Move AC_LIBOBJ invocations to module description.
15000         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
15001         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
15002         here...
15003         * modules/mempcpy (configure.ac): ... to here.
15004
15005 2011-05-21  Bruno Haible  <bruno@clisp.org>
15006
15007         memmove: Move AC_LIBOBJ invocations to module description.
15008         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
15009         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
15010         here...
15011         * modules/memmove (configure.ac): ... to here.
15012
15013 2011-05-21  Bruno Haible  <bruno@clisp.org>
15014
15015         memmem*: Move AC_LIBOBJ invocations to module description.
15016         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
15017         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
15018         here...
15019         (gl_FUNC_MEMMEM): ... and here...
15020         * modules/memmem-simple (configure.ac): ... to here.
15021         * modules/memmem (configure.ac): ... and here.
15022
15023 2011-05-21  Bruno Haible  <bruno@clisp.org>
15024
15025         memcpy: Move AC_LIBOBJ invocations to module description.
15026         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15027         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
15028         here...
15029         * modules/memcpy (configure.ac): ... to here.
15030
15031 2011-05-21  Bruno Haible  <bruno@clisp.org>
15032
15033         memcmp: Simplify autoconf macro.
15034         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15035         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15036         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15037
15038 2011-05-21  Bruno Haible  <bruno@clisp.org>
15039
15040         memcmp: Move AC_LIBOBJ invocations to module description.
15041         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15042         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15043         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15044         * modules/memcmp (configure.ac): ... to here.
15045         (Depends-on): Update conditions.
15046
15047 2011-05-21  Bruno Haible  <bruno@clisp.org>
15048
15049         memchr: Respect rules for use of AC_LIBOBJ.
15050         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15051         invocations from here...
15052         * modules/memchr (configure.ac): ... to here.
15053
15054 2011-05-21  Bruno Haible  <bruno@clisp.org>
15055
15056         mbtowc: Move AC_LIBOBJ invocations to module description.
15057         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15058         invocations from here...
15059         * modules/mbtowc (configure.ac): ... to here.
15060
15061 2011-05-21  Bruno Haible  <bruno@clisp.org>
15062
15063         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15064         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15065         gl_PREREQ_MBSRTOWCS invocations from here...
15066         * modules/mbsrtowcs (configure.ac): ... to here.
15067
15068 2011-05-21  Bruno Haible  <bruno@clisp.org>
15069
15070         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15071         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15072         gl_PREREQ_MBSNRTOWCS invocations from here...
15073         * modules/mbsnrtowcs (configure.ac): ... to here.
15074
15075 2011-05-21  Bruno Haible  <bruno@clisp.org>
15076
15077         mbsinit: Move AC_LIBOBJ invocations to module description.
15078         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15079         invocations from here...
15080         * modules/mbsinit (configure.ac): ... to here.
15081
15082 2011-05-21  Bruno Haible  <bruno@clisp.org>
15083
15084         mbrlen: Move AC_LIBOBJ invocations to module description.
15085         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15086         invocations from here...
15087         * modules/mbrlen (configure.ac): ... to here.
15088
15089 2011-05-21  Bruno Haible  <bruno@clisp.org>
15090
15091         mbrtowc: Respect rules for use of AC_LIBOBJ.
15092         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15093         invocations from here...
15094         * modules/mbrtowc (configure.ac): ... to here.
15095
15096 2011-05-21  Bruno Haible  <bruno@clisp.org>
15097
15098         malloc-*: Move AC_LIBOBJ invocations to module description.
15099         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15100         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15101         AC_LIBOBJ invocations from here...
15102         * modules/malloc-gnu (configure.ac): ... to here.
15103         * modules/malloc-posix (configure.ac): ... and here.
15104
15105 2011-05-21  Bruno Haible  <bruno@clisp.org>
15106
15107         lstat, openat: Respect rules for use of AC_LIBOBJ.
15108         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15109         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15110         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15111         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15112         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15113         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15114         here.
15115         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15116
15117 2011-05-21  Bruno Haible  <bruno@clisp.org>
15118
15119         lseek: Move AC_LIBOBJ invocations to module description.
15120         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15121         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15122         * modules/lseek (configure.ac): ... to here.
15123
15124 2011-05-21  Bruno Haible  <bruno@clisp.org>
15125
15126         linkat: Move AC_LIBOBJ invocations to module description.
15127         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15128         here...
15129         * modules/linkat (configure.ac): ... to here.
15130
15131 2011-05-21  Bruno Haible  <bruno@clisp.org>
15132
15133         link: Respect rules for use of AC_LIBOBJ.
15134         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15135         * modules/link (configure.ac): ... to here.
15136
15137 2011-05-21  Bruno Haible  <bruno@clisp.org>
15138
15139         lchown: Move AC_LIBOBJ invocations to module description.
15140         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15141         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15142         * modules/lchown (configure.ac): ... to here.
15143
15144 2011-05-21  Bruno Haible  <bruno@clisp.org>
15145
15146         iswctype: Move AC_LIBOBJ invocations to module description.
15147         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15148         here...
15149         * modules/iswctype (configure.ac): ... to here.
15150
15151 2011-05-21  Bruno Haible  <bruno@clisp.org>
15152
15153         iswblank: Move AC_LIBOBJ invocations to module description.
15154         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15155         here...
15156         * modules/iswblank (configure.ac): ... to here.
15157
15158 2011-05-21  Bruno Haible  <bruno@clisp.org>
15159
15160         atanl: Move AC_LIBOBJ invocations to module description.
15161         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15162         * modules/atanl (configure.ac): ... to here.
15163
15164 2011-05-21  Bruno Haible  <bruno@clisp.org>
15165
15166         acosl: Move AC_LIBOBJ invocations to module description.
15167         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15168         * modules/acosl (configure.ac): ... to here.
15169
15170 2011-05-21  Bruno Haible  <bruno@clisp.org>
15171
15172         asinl: Respect rules for use of AC_LIBOBJ.
15173         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15174         * modules/asinl (configure.ac): ... to here.
15175
15176 2011-05-21  Bruno Haible  <bruno@clisp.org>
15177
15178         tanl: Move AC_LIBOBJ invocations to module description.
15179         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15180         * modules/tanl (configure.ac): ... to here.
15181
15182 2011-05-21  Bruno Haible  <bruno@clisp.org>
15183
15184         cosl: Move AC_LIBOBJ invocations to module description.
15185         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15186         * modules/cosl (configure.ac): ... to here.
15187
15188 2011-05-21  Bruno Haible  <bruno@clisp.org>
15189
15190         sinl: Move AC_LIBOBJ invocations to module description.
15191         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15192         * modules/sinl (configure.ac): ... to here.
15193
15194 2011-05-21  Bruno Haible  <bruno@clisp.org>
15195
15196         logl: Move AC_LIBOBJ invocations to module description.
15197         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15198         * modules/logl (configure.ac): ... to here.
15199
15200 2011-05-21  Bruno Haible  <bruno@clisp.org>
15201
15202         expl: Move AC_LIBOBJ invocations to module description.
15203         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15204         * modules/expl (configure.ac): ... to here.
15205
15206 2011-05-21  Bruno Haible  <bruno@clisp.org>
15207
15208         roundl: Move AC_LIBOBJ invocations to module description.
15209         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15210         * modules/roundl (configure.ac): ... to here.
15211
15212 2011-05-21  Bruno Haible  <bruno@clisp.org>
15213
15214         round: Move AC_LIBOBJ invocations to module description.
15215         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15216         * modules/round (configure.ac): ... to here.
15217
15218 2011-05-21  Bruno Haible  <bruno@clisp.org>
15219
15220         roundf: Move AC_LIBOBJ invocations to module description.
15221         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15222         * modules/roundf (configure.ac): ... to here.
15223
15224 2011-05-21  Bruno Haible  <bruno@clisp.org>
15225
15226         truncl: Move AC_LIBOBJ invocations to module description.
15227         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15228         * modules/truncl (configure.ac): ... to here.
15229
15230 2011-05-21  Bruno Haible  <bruno@clisp.org>
15231
15232         trunc: Move AC_LIBOBJ invocations to module description.
15233         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15234         * modules/trunc (configure.ac): ... to here.
15235
15236 2011-05-21  Bruno Haible  <bruno@clisp.org>
15237
15238         truncf: Move AC_LIBOBJ invocations to module description.
15239         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15240         * modules/truncf (configure.ac): ... to here.
15241
15242 2011-05-21  Bruno Haible  <bruno@clisp.org>
15243
15244         ceill: Move AC_LIBOBJ invocations to module description.
15245         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15246         * modules/ceill (configure.ac): ... to here.
15247
15248 2011-05-21  Bruno Haible  <bruno@clisp.org>
15249
15250         ceil: Move AC_LIBOBJ invocations to module description.
15251         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15252         * modules/ceil (configure.ac): ... to here.
15253
15254 2011-05-21  Bruno Haible  <bruno@clisp.org>
15255
15256         ceilf: Move AC_LIBOBJ invocations to module description.
15257         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15258         * modules/ceilf (configure.ac): ... to here.
15259
15260 2011-05-21  Bruno Haible  <bruno@clisp.org>
15261
15262         floorl: Respect rules for use of AC_LIBOBJ.
15263         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15264         * modules/floorl (configure.ac): ... to here.
15265
15266 2011-05-21  Bruno Haible  <bruno@clisp.org>
15267
15268         floor: Respect rules for use of AC_LIBOBJ.
15269         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15270         * modules/floor (configure.ac): ... to here.
15271
15272 2011-05-21  Bruno Haible  <bruno@clisp.org>
15273
15274         floorf: Move AC_LIBOBJ invocations to module description.
15275         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15276         * modules/floorf (configure.ac): ... to here.
15277
15278 2011-05-20  Bruno Haible  <bruno@clisp.org>
15279
15280         sqrtl: Respect rules for use of AC_LIBOBJ.
15281         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15282         * modules/sqrtl (configure.ac): ... to here.
15283
15284 2011-05-20  Bruno Haible  <bruno@clisp.org>
15285
15286         ldexpl: Respect rules for use of AC_LIBOBJ.
15287         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15288         * modules/ldexpl (configure.ac): ... to here.
15289
15290 2011-05-20  Bruno Haible  <bruno@clisp.org>
15291
15292         frexpl*: Respect rules for use of AC_LIBOBJ.
15293         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
15294         invocation from here...
15295         * modules/frexpl (configure.ac): ... to here.
15296         * modules/frexpl-nolibm (configure.ac): ... and here.
15297
15298 2011-05-20  Bruno Haible  <bruno@clisp.org>
15299
15300         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15301         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15302         invocation from here...
15303         * modules/frexp (configure.ac): ... to here.
15304         * modules/frexp-nolibm (configure.ac): ... and here.
15305
15306 2011-05-20  Bruno Haible  <bruno@clisp.org>
15307
15308         isnan: Respect rules for use of AC_LIBOBJ.
15309         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15310         invocations here.
15311         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15312         REPLACE_ISNAN.
15313         * modules/isnand (configure.ac): Likewise.
15314         * modules/isnanl (configure.ac): Likewise.
15315
15316 2011-05-20  Bruno Haible  <bruno@clisp.org>
15317
15318         isnanl*: Respect rules for use of AC_LIBOBJ.
15319         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15320         invocation from here...
15321         * modules/isnanl (configure.ac): ... to here.
15322         * modules/isnanl-nolibm (configure.ac): ... and here.
15323
15324 2011-05-20  Bruno Haible  <bruno@clisp.org>
15325
15326         isnand*: Move AC_LIBOBJ invocations to module description.
15327         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15328         invocation from here...
15329         * modules/isnand (configure.ac): ... to here.
15330         * modules/isnand-nolibm (configure.ac): ... and here.
15331
15332 2011-05-20  Bruno Haible  <bruno@clisp.org>
15333
15334         isnanf*: Move AC_LIBOBJ invocations to module description.
15335         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15336         invocation from here...
15337         * modules/isnanf (configure.ac): ... to here.
15338         * modules/isnanf-nolibm (configure.ac): ... and here.
15339
15340 2011-05-20  Bruno Haible  <bruno@clisp.org>
15341
15342         isnan*: Separate the AC_LIBOBJ invocations.
15343         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15344         AC_LIBOBJ invocation.
15345         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15346         here.
15347         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15348         AC_LIBOBJ invocation.
15349         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15350         here.
15351         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15352         AC_LIBOBJ invocation.
15353         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15354         here.
15355         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15356
15357 2011-05-08  Bruno Haible  <bruno@clisp.org>
15358
15359         isinf: Move AC_LIBOBJ invocations to module description.
15360         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15361         * modules/isinf (configure.ac): ... to here.
15362
15363 2011-05-08  Bruno Haible  <bruno@clisp.org>
15364
15365         isfinite: Move AC_LIBOBJ invocations to module description.
15366         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
15367         * modules/isfinite (configure.ac): ... to here.
15368
15369 2011-05-08  Bruno Haible  <bruno@clisp.org>
15370
15371         isblank: Move AC_LIBOBJ invocations to module description.
15372         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
15373         here...
15374         * modules/isblank (configure.ac): ... to here.
15375
15376 2011-05-08  Bruno Haible  <bruno@clisp.org>
15377
15378         isapipe: Move AC_LIBOBJ invocations to module description.
15379         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
15380         gl_PREREQ_ISAPIPE invocations from here...
15381         * modules/isapipe (configure.ac): ... to here.
15382         (Depends-on): Update condition.
15383
15384 2011-05-08  Bruno Haible  <bruno@clisp.org>
15385
15386         ioctl: Move AC_LIBOBJ invocations to module description.
15387         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
15388         invocations from here...
15389         * modules/ioctl (configure.ac): ... to here.
15390         (Depends-on): Update condition.
15391
15392 2011-05-08  Bruno Haible  <bruno@clisp.org>
15393
15394         imaxdiv: Move AC_LIBOBJ invocations to module description.
15395         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
15396         invocations from here...
15397         * modules/imaxdiv (configure.ac): ... to here.
15398
15399 2011-05-08  Bruno Haible  <bruno@clisp.org>
15400
15401         imaxabs: Move AC_LIBOBJ invocations to module description.
15402         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
15403         invocations from here...
15404         * modules/imaxabs (configure.ac): ... to here.
15405
15406 2011-05-08  Bruno Haible  <bruno@clisp.org>
15407
15408         getaddrinfo: Move AC_LIBOBJ invocations to module description.
15409         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
15410         AC_LIBOBJ invocations from here...
15411         * modules/getaddrinfo (configure.ac): ... to here.
15412         (Depends-on): Add conditions.
15413
15414 2011-05-08  Bruno Haible  <bruno@clisp.org>
15415
15416         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15417         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
15418         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15419         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
15420         (gl_PREREQ_INET_PTON): ... from here.
15421         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15422         gl_PREREQ_INET_PTON here.
15423         (Depends-on): Update condition.
15424
15425 2011-05-08  Bruno Haible  <bruno@clisp.org>
15426
15427         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15428         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15429         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15430         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15431         (gl_PREREQ_INET_NTOP): ... from here.
15432         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15433         gl_PREREQ_INET_NTOP here.
15434         (Depends-on): Update condition.
15435
15436 2011-05-08  Bruno Haible  <bruno@clisp.org>
15437
15438         iconv_open: Move AC_LIBOBJ invocations to module description.
15439         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15440         AC_LIBOBJ invocations from here...
15441         * modules/iconv_open (configure.ac): ... to here.
15442
15443 2011-05-08  Bruno Haible  <bruno@clisp.org>
15444
15445         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
15446         If module 'iconv_open' is among the main modules and module
15447         'iconv_open-utf' is among the tests dependencies, then
15448         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
15449         return the special iconv_t values. Therefore iconv() and iconv_close()
15450         must support these special iconv_t values, already in lib, not only in
15451         tests.
15452         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
15453         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
15454         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
15455         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
15456         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
15457         (Depends-on): Add the dependencies of iconv_open-utf.
15458         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
15459         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
15460         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
15461
15462 2011-05-08  Bruno Haible  <bruno@clisp.org>
15463
15464         group-member: Move AC_LIBOBJ invocations to module description.
15465         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15466         gl_PREREQ_GROUP_MEMBER invocations from here...
15467         * modules/group-member (configure.ac): ... to here.
15468
15469 2011-05-08  Bruno Haible  <bruno@clisp.org>
15470
15471         grantpt: Move AC_LIBOBJ invocations to module description.
15472         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
15473         invocations from here...
15474         * modules/grantpt (configure.ac): ... to here.
15475
15476 2011-05-08  Bruno Haible  <bruno@clisp.org>
15477
15478         glob: Move AC_LIBOBJ invocations to module description.
15479         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
15480         from here...
15481         * modules/glob (configure.ac): ... to here.
15482
15483 2011-05-08  Bruno Haible  <bruno@clisp.org>
15484
15485         getusershell: Move AC_LIBOBJ invocations to module description.
15486         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
15487         Move AC_LIBOBJ invocation from here...
15488         * modules/getusershell (configure.ac): ... to here.
15489         (Depends-on): Update condition.
15490
15491 2011-05-08  Bruno Haible  <bruno@clisp.org>
15492
15493         gettimeofday: Move AC_LIBOBJ invocations to module description.
15494         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15495         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
15496         gl_PREREQ_GETTIMEOFDAY invocations from here...
15497         * modules/gettimeofday (configure.ac): ... to here.
15498
15499 2011-05-08  Bruno Haible  <bruno@clisp.org>
15500
15501         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
15502         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
15503         just gl_FUNC_TZSET.
15504         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
15505         (gl_FUNC_TZSET_CLOBBER): Remove actions.
15506         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
15507         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
15508
15509 2011-05-08  Bruno Haible  <bruno@clisp.org>
15510
15511         getsubopt: Move AC_LIBOBJ invocations to module description.
15512         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
15513         gl_PREREQ_GETSUBOPT invocations from here...
15514         * modules/getsubopt (configure.ac): ... to here.
15515
15516 2011-05-08  Bruno Haible  <bruno@clisp.org>
15517
15518         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15519         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15520         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15521         * modules/getpass-gnu (configure.ac): ... to here.
15522
15523 2011-05-08  Bruno Haible  <bruno@clisp.org>
15524
15525         getpass: Move AC_LIBOBJ invocations to module description.
15526         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15527         gl_PREREQ_GETPASS invocations from here...
15528         * modules/getpass (configure.ac): ... to here.
15529
15530 2011-05-08  Bruno Haible  <bruno@clisp.org>
15531
15532         getpagesize: Move AC_LIBOBJ invocations to module description.
15533         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15534         from here...
15535         * modules/getpagesize (configure.ac): ... to here.
15536
15537 2011-05-08  Bruno Haible  <bruno@clisp.org>
15538
15539         getopt: Move AC_LIBOBJ invocations to module description.
15540         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15541         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15542         invocations from here...
15543         * modules/getopt-gnu (configure.ac): ... to here.
15544         * modules/getopt-posix (configure.ac): ... and here.
15545         (Depends-on): Update condition.
15546
15547 2011-05-08  Bruno Haible  <bruno@clisp.org>
15548
15549         getopt, argp: Respect rules for use of AC_LIBOBJ.
15550         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15551         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15552         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15553         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15554
15555 2011-05-08  Bruno Haible  <bruno@clisp.org>
15556
15557         getlogin_r: Move AC_LIBOBJ invocations to module description.
15558         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15559         gl_PREREQ_GETLOGIN_R invocations from here...
15560         * modules/getlogin_r (configure.ac): ... to here.
15561
15562 2011-05-08  Bruno Haible  <bruno@clisp.org>
15563
15564         getlogin: Move AC_LIBOBJ invocations to module description.
15565         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15566         here...
15567         * modules/getlogin (configure.ac): ... to here.
15568
15569 2011-05-08  Bruno Haible  <bruno@clisp.org>
15570
15571         getloadavg: Move AC_LIBOBJ invocations to module description.
15572         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15573         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15574         * modules/getloadavg (configure.ac): ... to here.
15575
15576 2011-05-08  Bruno Haible  <bruno@clisp.org>
15577
15578         gethrxtime: Move AC_LIBOBJ invocations to module description.
15579         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15580         LIB_GETHRXTIME from here...
15581         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15582         invocations from here...
15583         * modules/gethrxtime (configure.ac): ... to here.
15584
15585 2011-05-08  Bruno Haible  <bruno@clisp.org>
15586
15587         gethostname: Move AC_LIBOBJ invocations to module description.
15588         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15589         gl_PREREQ_GETHOSTNAME invocations from here...
15590         * modules/gethostname (configure.ac): ... to here.
15591
15592 2011-05-08  Bruno Haible  <bruno@clisp.org>
15593
15594         getgroups: Move AC_LIBOBJ invocations to module description.
15595         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15596         here...
15597         * modules/getgroups (configure.ac): ... to here.
15598
15599 2011-05-08  Bruno Haible  <bruno@clisp.org>
15600
15601         getdtablesize: Move AC_LIBOBJ invocations to module description.
15602         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15603         invocation from here...
15604         * modules/getdtablesize (configure.ac): ... to here.
15605
15606 2011-05-08  Bruno Haible  <bruno@clisp.org>
15607
15608         getdomainname: Move AC_LIBOBJ invocations to module description.
15609         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15610         gl_PREREQ_GETDOMAINNAME invocations from here...
15611         * modules/getdomainname (configure.ac): ... to here.
15612
15613 2011-05-08  Bruno Haible  <bruno@clisp.org>
15614
15615         getline: Move AC_LIBOBJ invocations to module description.
15616         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15617         invocations from here...
15618         * modules/getline (configure.ac): ... to here.
15619
15620 2011-05-08  Bruno Haible  <bruno@clisp.org>
15621
15622         getline: Simplify.
15623         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15624         It's already handled through the module dependency.
15625
15626 2011-05-08  Bruno Haible  <bruno@clisp.org>
15627
15628         getdelim: Move AC_LIBOBJ invocations to module description.
15629         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15630         and gl_PREREQ_GETDELIM invocations from here...
15631         * modules/getdelim (configure.ac): ... to here.
15632         (Depends-on): Fix condition.
15633
15634 2011-05-08  Bruno Haible  <bruno@clisp.org>
15635
15636         getcwd: Move AC_LIBOBJ invocations to module description.
15637         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15638         invocations from here...
15639         * modules/getcwd (configure.ac): ... to here.
15640
15641 2011-05-08  Bruno Haible  <bruno@clisp.org>
15642
15643         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15644         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15645         here...
15646         * modules/getcwd-lgpl (configure.ac): ... to here.
15647
15648 2011-05-07  Bruno Haible  <bruno@clisp.org>
15649
15650         crypto/gc: Move AC_LIBOBJ invocations to module description.
15651         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15652         * modules/crypto/gc (configure.ac): ... to here.
15653
15654 2011-05-07  Bruno Haible  <bruno@clisp.org>
15655
15656         fwriting: Move AC_LIBOBJ invocations to module description.
15657         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15658         here...
15659         * modules/fwriting (configure.ac): ... to here.
15660
15661 2011-05-07  Bruno Haible  <bruno@clisp.org>
15662
15663         fwritable: Move AC_LIBOBJ invocations to module description.
15664         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15665         here...
15666         * modules/fwritable (configure.ac): ... to here.
15667
15668 2011-05-07  Bruno Haible  <bruno@clisp.org>
15669
15670         futimens: Move AC_LIBOBJ invocations to module description.
15671         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15672         here...
15673         * modules/futimens (configure.ac): ... to here.
15674
15675 2011-05-07  Bruno Haible  <bruno@clisp.org>
15676
15677         ftruncate: Move AC_LIBOBJ invocations to module description.
15678         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15679         gl_PREREQ_FTRUNCATE invocations from here...
15680         * modules/ftruncate (configure.ac): ... to here.
15681
15682 2011-05-07  Bruno Haible  <bruno@clisp.org>
15683
15684         fsync: Move AC_LIBOBJ invocations to module description.
15685         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15686         invocations from here...
15687         * modules/fsync (configure.ac): ... to here.
15688
15689 2011-05-07  Bruno Haible  <bruno@clisp.org>
15690
15691         fsusage: Move AC_LIBOBJ invocations to module description.
15692         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15693         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15694         * modules/fsusage (configure.ac): ... to here.
15695
15696 2011-05-07  Bruno Haible  <bruno@clisp.org>
15697
15698         freopen: Move AC_LIBOBJ invocations to module description.
15699         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15700         invocations from here...
15701         * modules/freopen (configure.ac): ... to here.
15702
15703 2011-05-07  Bruno Haible  <bruno@clisp.org>
15704
15705         free: Move AC_LIBOBJ invocations to module description.
15706         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15707         invocations from here...
15708         * modules/free (configure.ac): ... to here.
15709
15710 2011-05-07  Bruno Haible  <bruno@clisp.org>
15711
15712         freadable: Move AC_LIBOBJ invocations to module description.
15713         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15714         here...
15715         * modules/freadable (configure.ac): ... to here.
15716
15717 2011-05-07  Bruno Haible  <bruno@clisp.org>
15718
15719         fpurge: Move AC_LIBOBJ invocations to module description.
15720         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15721         invocations from here...
15722         * modules/fpurge (configure.ac): ... to here.
15723
15724 2011-05-07  Bruno Haible  <bruno@clisp.org>
15725
15726         fpending: Move AC_LIBOBJ invocations to module description.
15727         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15728         gl_FUNC_FPENDING.
15729         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15730         invocations from here...
15731         * modules/fpending (configure.ac): ... to here.
15732
15733 2011-05-07  Bruno Haible  <bruno@clisp.org>
15734
15735         fopen: Move AC_LIBOBJ invocations to module description.
15736         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15737         invocations from here...
15738         * modules/fopen (configure.ac): ... to here.
15739
15740 2011-05-07  Bruno Haible  <bruno@clisp.org>
15741
15742         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15743         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15744         gl_FUNC_FNMATCH_POSIX.
15745         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15746         invocations from here...
15747         * modules/fnmatch (configure.ac): ... to here.
15748         * modules/fnmatch-gnu (configure.ac): ... and here.
15749
15750 2011-05-07  Bruno Haible  <bruno@clisp.org>
15751
15752         flock: Move AC_LIBOBJ invocations to module description.
15753         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15754         invocations from here...
15755         * modules/flock (configure.ac): ... to here.
15756
15757 2011-05-07  Bruno Haible  <bruno@clisp.org>
15758
15759         fileblocks: Move AC_LIBOBJ invocations to module description.
15760         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15761         gl_PREREQ_FILEBLOCKS invocations from here...
15762         * modules/fileblocks (configure.ac): ... to here.
15763
15764 2011-05-06  Bruno Haible  <bruno@clisp.org>
15765
15766         fflush: Move AC_LIBOBJ invocations to module description.
15767         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15768         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15769         invocations from here...
15770         * modules/fflush (configure.ac): ... to here.
15771
15772 2011-05-06  Bruno Haible  <bruno@clisp.org>
15773
15774         fdopendir: Move AC_LIBOBJ invocations to module description.
15775         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15776         here...
15777         * modules/fdopendir (configure.ac): ... to here.
15778         (Depends-on): Improve conditions.
15779
15780 2011-05-06  Bruno Haible  <bruno@clisp.org>
15781
15782         _Exit: Move AC_LIBOBJ invocations to module description.
15783         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15784         invocations from here...
15785         * modules/_Exit (configure.ac): ... to here.
15786
15787 2011-05-21  Bruno Haible  <bruno@clisp.org>
15788
15789         euidaccess: Respect rules for use of AC_LIBOBJ.
15790         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15791         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15792         from here...
15793         * modules/euidaccess (configure.ac): ... to here.
15794
15795 2011-05-06  Bruno Haible  <bruno@clisp.org>
15796
15797         error: Move AC_LIBOBJ invocations to module description.
15798         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15799         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15800         invocations from here...
15801         * modules/error (configure.ac): ... to here.
15802
15803 2011-05-06  Bruno Haible  <bruno@clisp.org>
15804
15805         duplocale: Move AC_LIBOBJ invocations to module description.
15806         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15807         gl_PREREQ_DUPLOCALE invocations from here...
15808         * modules/duplocale (configure.ac): ... to here.
15809
15810 2011-05-05  Bruno Haible  <bruno@clisp.org>
15811
15812         dirfd: Move AC_LIBOBJ invocations to module description.
15813         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15814         gl_FUNC_DIRFD.
15815         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15816         here...
15817         * modules/dirfd (configure.ac): ... to here.
15818         (Depends-on): Fix condition.
15819
15820 2011-05-05  Bruno Haible  <bruno@clisp.org>
15821
15822         chown: Respect rules for use of AC_LIBOBJ.
15823         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15824         * modules/chown (configure.ac): ... to here.
15825
15826 2011-05-05  Bruno Haible  <bruno@clisp.org>
15827
15828         chdir-long: Move AC_LIBOBJ invocations to module description.
15829         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15830         gl_PREREQ_CHDIR_LONG invocations from here...
15831         * modules/chdir-long (configure.ac): ... to here.
15832
15833 2011-05-05  Bruno Haible  <bruno@clisp.org>
15834
15835         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15836         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15837         from here...
15838         * modules/canonicalize-lgpl (configure.ac): ... to here.
15839
15840 2011-05-05  Bruno Haible  <bruno@clisp.org>
15841
15842         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15843         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15844         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15845         REPLACE_CALLOC.
15846         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15847         * modules/calloc-gnu (configure.ac): Likewise.
15848
15849 2011-05-05  Bruno Haible  <bruno@clisp.org>
15850
15851         btowc: Move AC_LIBOBJ invocations to module description.
15852         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15853         invocations from here...
15854         * modules/btowc (configure.ac): ... to here.
15855
15856 2011-05-21  Bruno Haible  <bruno@clisp.org>
15857
15858         atexit: Move AC_LIBOBJ invocations to module description.
15859         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15860         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15861         here...
15862         * modules/atexit (configure.ac): ... to here.
15863
15864 2011-05-05  Bruno Haible  <bruno@clisp.org>
15865
15866         atoll: Move AC_LIBOBJ invocations to module description.
15867         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15868         invocations from here...
15869         * modules/atoll (configure.ac): ... to here.
15870
15871 2011-05-05  Bruno Haible  <bruno@clisp.org>
15872
15873         argz: Move AC_LIBOBJ invocations to module description.
15874         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15875         * modules/argz (configure.ac): ... to here.
15876
15877 2011-05-05  Bruno Haible  <bruno@clisp.org>
15878
15879         alphasort: Move AC_LIBOBJ invocations to module description.
15880         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15881         gl_PREREQ_ALPHASORT invocations from here...
15882         * modules/alphasort (configure.ac): ... to here.
15883
15884 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15885
15886         verify: new macro verify_expr; verify_true deprecated
15887         * NEWS: Mention this.
15888         * doc/verify.texi (Compile-time Assertions): Document this.
15889         * lib/verify.h (verify_true): Deprecate.
15890         (verify_expr): New macro.
15891         * tests/test-verify.c (function): Test verify_expr.
15892
15893 2011-06-14  Jim Meyering  <meyering@redhat.com>
15894
15895         init.sh: give more portable redirection-related advice in a comment
15896         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15897         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15898         for lots of discussion.  Stefano Lattarini suggested the solution
15899         of putting "9>&2" after the command.  Reported by Bruno Haible.
15900
15901 2011-06-13  Bruno Haible  <bruno@clisp.org>
15902
15903         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15904         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15905         'none'.
15906
15907 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15908
15909         ftoastr: use strtof only if HAVE_STRTOF
15910         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15912         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15913         * modules/ftoastr (configure.ac): Check for strtof.
15914
15915 2011-06-13  Bruno Haible  <bruno@clisp.org>
15916
15917         gnulib-tool: Addendum to 2011-06-08 commit.
15918         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15919         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15920
15921 2011-06-13  Bruno Haible  <bruno@clisp.org>
15922
15923         fseeko: Provide a non-inline replacement of fseek().
15924         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15925         * modules/fseeko (Depends-on): Add fseek.
15926         * modules/fseek (License): Change to LGPLv2+.
15927
15928 2011-06-13  Bruno Haible  <bruno@clisp.org>
15929
15930         ftello: Provide a non-inline replacement of ftell().
15931         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15932         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15933         not have ftello() (such as on mingw).
15934         * modules/ftello (Depends-on): Add ftell.
15935         * modules/ftell (License): Change to LGPLv2+.
15936
15937 2011-05-07  Bruno Haible  <bruno@clisp.org>
15938
15939         ftell: Move AC_LIBOBJ invocations to module description.
15940         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15941         * modules/ftell (configure.ac): ... to here.
15942
15943 2011-05-07  Bruno Haible  <bruno@clisp.org>
15944
15945         ftello: Respect rules for use of AC_LIBOBJ.
15946         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15947         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15948         here...
15949         * modules/ftello (configure.ac): ... to here.
15950
15951 2011-05-07  Bruno Haible  <bruno@clisp.org>
15952
15953         fseeko: Simplify.
15954         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15955         (gl_FUNC_FSEEKO): Inline it here.
15956
15957 2011-05-07  Bruno Haible  <bruno@clisp.org>
15958
15959         fseek: Move AC_LIBOBJ invocations to module description.
15960         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15961         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15962         * modules/fseek (configure.ac): ... to here.
15963
15964 2011-05-07  Bruno Haible  <bruno@clisp.org>
15965
15966         fseek: Respect rules for use of AC_LIBOBJ.
15967         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15968         here...
15969         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15970
15971 2011-05-07  Bruno Haible  <bruno@clisp.org>
15972
15973         fseeko: Respect rules for use of AC_LIBOBJ.
15974         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15975         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15976         here...
15977         * modules/fseeko (configure.ac): ... to here.
15978
15979 2011-06-13  Bruno Haible  <bruno@clisp.org>
15980
15981         gnulib-tool: Allow comments in the 'Depends-on' section.
15982         * doc/gnulib.texi (Module description): Mention comment syntax in the
15983         Depends-on section.
15984         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15985
15986 2011-06-13  Bruno Haible  <bruno@clisp.org>
15987
15988         file-set.h: guard __attibute__ use, now that it's not always defined
15989         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15990         versions that support it.  This fixes a coreutils build failure with
15991         the vendor cc on HP-UX 11.31.
15992
15993 2011-06-12  Bruno Haible  <bruno@clisp.org>
15994
15995         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15996         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15997         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15998         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15999         (acl, aclsort): New declarations.
16000         (aclv_nontrivial): New declaration.
16001         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
16002         (file_has_acl): Read also the second kind of HP-UX ACLs.
16003         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
16004         kind of HP-UX ACLs if the first kind fails.
16005         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
16006         second kind of HP-UX ACLs.
16007         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
16008         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
16009         agree.
16010         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16011         hpuxjfs.
16012         Handle hpuxjfs.
16013         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16014         hpuxjfs.
16015         Handle hpuxjfs.
16016         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16017         (func_test_same_acls): Use both lsacl and getacl.
16018         Handle hpuxjfs.
16019         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16020         (func_test_same_acls): Use both lsacl and getacl.
16021         Handle hpuxjfs.
16022
16023 2011-06-12  Bruno Haible  <bruno@clisp.org>
16024
16025         acl: Complete the 2010-08-10 fix.
16026         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
16027         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
16028         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
16029         explicitly.
16030         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
16031         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
16032
16033 2011-06-12  Bruno Haible  <bruno@clisp.org>
16034
16035         spawn-pipe tests: Comments.
16036         * tests/test-spawn-pipe-child.c (main): Update comment.
16037         Reported by James Youngman <jay@gnu.org>.
16038
16039 2011-06-11  James Youngman  <jay@gnu.org>
16040
16041         New module 'stat-size'.
16042         * modules/stat-size: New module.  Provides macros for accessing
16043         file size information in instances of struct stat.  Depends on the
16044         fileblocks module because it calls st_blocks.
16045         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16046         * doc/gnulib.texi: Include stat-size.texi.
16047         * doc/stat-size.texi: Documentation for this module.
16048         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16049         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16050         AC_STRUCT_ST_BLOCKS.
16051
16052 2011-06-09  Bruno Haible  <bruno@clisp.org>
16053
16054         thread: Support pthreads-win32.
16055         * lib/glthread/thread.h (gl_thread_self): Define differently on
16056         pthreads-win32.
16057         (gl_null_thread): New declaration.
16058         (gl_thread_self_pointer): New macro.
16059         * lib/glthread/thread.c (gl_null_thread): New constant.
16060         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16061         gl_thread_self.
16062         * tests/test-tls.c: Likewise.
16063         Suggested by Paul Eggert. Reported by Eric Blake.
16064
16065 2011-06-09  Bruno Haible  <bruno@clisp.org>
16066
16067         thread: Fix confusion between NULL and 0.
16068         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16069         Reported by Paul Eggert.
16070
16071 2011-06-09  Bruno Haible  <bruno@clisp.org>
16072
16073         spawn-pipe tests: Avoid test failure on HP-UX 11.
16074         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16075         is closed.
16076
16077 2011-06-09  Bruno Haible  <bruno@clisp.org>
16078
16079         acl tests: Fix compilation error on HP-UX 11.
16080         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16081
16082 2011-06-09  Bruno Haible  <bruno@clisp.org>
16083
16084         rmdir: Avoid test failure on HP-UX 10.20.
16085         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16086         EEXIST.
16087
16088 2011-06-08  Eric Blake  <eblake@redhat.com>
16089
16090         perror: fix test on mingw
16091         * modules/perror-tests (Depends-on): Add dup2.
16092
16093         strerror_r-posix: fix on MacOS
16094         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16095         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16096         logic bug.
16097         * lib/strerror_r.c (strerror_r): Fix the bug.
16098         * lib/strerror.c (strerror): Likewise.
16099         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16100         problem.
16101         * doc/posix-functions/strerror.texi (strerror): Likewise.
16102         * doc/posix-functions/perror.texi (perror): Likewise.
16103         * tests/test-strerror.c (main): Enhance test.
16104         * tests/test-strerror_r.c (main): Likewise.
16105
16106 2011-06-08  Bruno Haible  <bruno@clisp.org>
16107
16108         gnulib-tool: Better isolation between different gnulib-tool invocations.
16109         * gnulib-tool: New option --witness-c-macro.
16110         (witness_c_macro): New variable.
16111         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16112         AM_CPPFLAGS define it as a C macro.
16113         (func_emit_tests_Makefile_am): Likewise.
16114         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16115         read it from there.
16116         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16117         m4_define, not AC_DEFUN.
16118         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16119         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16120         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16121         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16122         s|...|...|, to substitute the values of the GNULIB_* module indicator
16123         variables.
16124         * modules/dirent (Makefile.am): Likewise.
16125         * modules/fcntl-h (Makefile.am): Likewise.
16126         * modules/iconv-h (Makefile.am): Likewise.
16127         * modules/langinfo (Makefile.am): Likewise.
16128         * modules/locale (Makefile.am): Likewise.
16129         * modules/math (Makefile.am): Likewise.
16130         * modules/netdb (Makefile.am): Likewise.
16131         * modules/poll-h (Makefile.am): Likewise.
16132         * modules/pty (Makefile.am): Likewise.
16133         * modules/search (Makefile.am): Likewise.
16134         * modules/signal (Makefile.am): Likewise.
16135         * modules/spawn (Makefile.am): Likewise.
16136         * modules/stdio (Makefile.am): Likewise.
16137         * modules/stdlib (Makefile.am): Likewise.
16138         * modules/string (Makefile.am): Likewise.
16139         * modules/sys_ioctl (Makefile.am): Likewise.
16140         * modules/sys_select (Makefile.am): Likewise.
16141         * modules/sys_socket (Makefile.am): Likewise.
16142         * modules/sys_stat (Makefile.am): Likewise.
16143         * modules/sys_times (Makefile.am): Likewise.
16144         * modules/sys_utsname (Makefile.am): Likewise.
16145         * modules/sys_wait (Makefile.am): Likewise.
16146         * modules/termios (Makefile.am): Likewise.
16147         * modules/time (Makefile.am): Likewise.
16148         * modules/unistd (Makefile.am): Likewise.
16149         * modules/wchar (Makefile.am): Likewise.
16150
16151 2011-06-08  Eric Blake  <eblake@redhat.com>
16152
16153         strerror: simplify replacement
16154         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16155         * modules/strerror (configure.ac): No prereqs needed here...
16156         * modules/strerror-override (configure.ac): ...but this needs it.
16157         (Files): Add file for needed prereq macro.
16158
16159 2011-06-08  Bruno Haible  <bruno@clisp.org>
16160
16161         strerror_r-posix: Tweaks.
16162         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16163         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16164         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16165         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16166         (gl_FUNC_STRERROR_R): ... to here.
16167         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16168
16169 2011-06-07  Eric Blake  <eblake@redhat.com>
16170
16171         perror: document fixed bugs
16172         * doc/posix-functions/perror.texi (perror): Document recent
16173         patches.
16174
16175 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16176
16177         stat-time: get_stat_birthtime failure is better-defined
16178         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16179         return a timestamp whose tv_sec and tv_nsec values are both -1.
16180         Previously, the spec said only that the tv_nsec value was negative.
16181         This upward-compatible change simplifies GNU tar a bit.
16182
16183 2011-06-07  Eric Blake  <eblake@redhat.com>
16184
16185         strerror_r-posix: work around cygwin 1.7.9
16186         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16187         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16188         bug without replacing strerror_r.
16189         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16190         strerror_r is buggy, but without requiring strerror_r compilation.
16191         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16192
16193         test-perror: relax test to ignore cygwin bug
16194         * tests/test-perror2.c (main): Relax test on requiring detection
16195         of stream errors, and use unbuffered stream.
16196         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16197         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16198         * doc/posix-functions/fputc.texi (fputc): Likewise.
16199         * doc/posix-functions/fputs.texi (fputs): Likewise.
16200         * doc/posix-functions/fputws.texi (fputws): Likewise.
16201         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16202         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16203         * doc/posix-functions/getopt.texi (getopt): Likewise.
16204         * doc/posix-functions/perror.texi (perror): Likewise.
16205         * doc/posix-functions/printf.texi (printf): Likewise.
16206         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16207         * doc/posix-functions/psignal.texi (psignal): Likewise.
16208         * doc/posix-functions/putc.texi (putc): Likewise.
16209         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16210         Likewise.
16211         * doc/posix-functions/putchar.texi (putchar): Likewise.
16212         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16213         Likewise.
16214         * doc/posix-functions/puts.texi (puts): Likewise.
16215         * doc/posix-functions/putwc.texi (putwc): Likewise.
16216         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16217         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16218         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16219         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16220         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16221         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16222         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16223         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16224
16225 2011-05-22  Bruno Haible  <bruno@clisp.org>
16226
16227         strerror: Move AC_LIBOBJ invocations to module description.
16228         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16229         gl_PREREQ_STRERROR invocations from here...
16230         * modules/strerror (configure.ac): ... to here.
16231
16232 2011-05-21  Bruno Haible  <bruno@clisp.org>
16233
16234         perror: Use common idiom.
16235         * modules/perror (configure.ac): Reorder statements.
16236
16237 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16238
16239         tests: fix usage message in 'mktempd_'
16240         * tests/init.sh (mktempd_): In the usage message, use literal
16241         'mktempd_', not '$ME' (which is even undefined), as the name of
16242         the subroutine.
16243
16244 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16245
16246         tests init: new function 'fatal_', for hard errors
16247         Before this patch, the only way offered by tests/init.sh to
16248         properly signal a hard error was the `framework_failure_'
16249         function.  But the error message issued by that function,
16250         as its name would suggest, refers to a set-up failure in the
16251         testsuite, while hard errors can obviously also be due to
16252         other reasons.  The best way to fix this inconsistency is to
16253         introduce a new function with a more general error message.
16254         * tests/init.sh (fatal_): New function.
16255
16256 2011-06-06  Eric Blake  <eblake@redhat.com>
16257
16258         canonicalize-lgpl: use common idiom
16259         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16260         over newer POSIX -Rf.
16261         Reported by Bruno Haible.
16262
16263         canonicalize-lgpl: work around AIX realpath bug
16264         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16265         * doc/posix-functions/realpath.texi (realpath): Document it.
16266         Reported by Bruno Haible.
16267
16268         strerror: work around FreeBSD bug
16269         * lib/strerror.c (strerror): Special case 0.
16270         Reported by Bruno Haible.
16271
16272         strerror-override: avoid bloating errno module
16273         * modules/errno (Files, configure.ac): Move replacement strings...
16274         * modules/strerror-override: ...to new module.
16275         * modules/strerror (Depends-on): Add strerror-override.
16276         * modules/strerror_r-posix (Depends-on): Likewise.
16277         * MODULES.html.sh: Document new module.
16278         Reported by Bruno Haible.
16279
16280 2011-06-06  Bruno Haible  <bruno@clisp.org>
16281
16282         spawn-pipe tests: Rename program.
16283         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16284         * tests/test-spawn-pipe-child.c: Update comment.
16285         * tests/test-spawn-pipe.sh: Update.
16286         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16287
16288         spawn-pipe tests: Link the child program only against libc.
16289         * tests/test-spawn-pipe-child.c: New file, extracted from
16290         tests/test-spawn-pipe.c.
16291         (main): Expect only one argument.
16292         (is_open): New function, copied from tests/test-pipe.c.
16293         * tests/test-spawn-pipe.c: Don't include <errno.h>.
16294         (child_main): Remove function.
16295         (test_pipe): Pass only one argument to the child program.
16296         (main): Remove child process code. Expect the child program's name as
16297         first argument.
16298         * tests/test-spawn-pipe.sh: Pass the child program's name as first
16299         argument.
16300         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16301         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16302         test-spawn-pipe-child against no libraries.
16303
16304 2011-06-06  Bruno Haible  <bruno@clisp.org>
16305
16306         careadlinkat: Avoid mismatch between ssize_t and int.
16307         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16308         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16309
16310 2011-06-06  Jim Meyering  <meyering@redhat.com>
16311
16312         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16313         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16314         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16315
16316 2011-06-05  Bruno Haible  <bruno@clisp.org>
16317
16318         ansi-c++-opt: Interoperability with libtool.
16319         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16320         set the variable to "no", not to ":".
16321         * NEWS: Mention the change.
16322
16323 2011-06-05  Bruno Haible  <bruno@clisp.org>
16324
16325         acl: Fix test failure on AIX 7.
16326         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16327         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16328
16329 2011-06-05  Bruno Haible  <bruno@clisp.org>
16330
16331         pipe-filter-ii: Fix test failure on AIX and IRIX.
16332         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16333         with EAGAIN, retry with a smaller buffer size.
16334
16335 2011-06-05  Bruno Haible  <bruno@clisp.org>
16336
16337         localename: Fix link dependencies.
16338         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16339         * modules/localename-tests (Makefile.am): Link test-localename with
16340         $(LIBTHREAD).
16341
16342 2011-06-05  Bruno Haible  <bruno@clisp.org>
16343
16344         error: Avoid gcc warning.
16345         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16346
16347 2011-06-05  Bruno Haible  <bruno@clisp.org>
16348
16349         unsetenv: Avoid gcc warning.
16350         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16351
16352 2011-06-05  Bruno Haible  <bruno@clisp.org>
16353
16354         setenv: Avoid gcc warning.
16355         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16356
16357 2011-06-05  Bruno Haible  <bruno@clisp.org>
16358
16359         sys_select: Ensure memset is declared also on AIX 7.
16360         * lib/sys_select.in.h: Include <string.h> also on AIX.
16361         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16362         self-contained also on AIX 7.1.
16363
16364 2011-06-04  Jim Meyering  <meyering@redhat.com>
16365
16366         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
16367         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
16368         function name, "error".
16369         (_gl_translatable_diag_func_re): New configurable variable.
16370
16371 2011-06-04  Bruno Haible  <bruno@clisp.org>
16372
16373         getopt: Avoid gcc warning.
16374         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
16375
16376 2011-06-04  Bruno Haible  <bruno@clisp.org>
16377
16378         strerror_r: Fix comments.
16379         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
16380         commit.
16381
16382 2011-06-04  Bruno Haible  <bruno@clisp.org>
16383
16384         perror: Fix compilation error.
16385         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
16386         Undefine fprintf, not sprintf.
16387         * modules/perror (Depends-on): Remove intprops, verify.
16388
16389 2011-06-04  Bruno Haible  <bruno@clisp.org>
16390
16391         setlocale: Enable replacement on Cygwin 1.5.
16392         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
16393         Cygwin 1.5.x.
16394         * doc/posix-functions/setlocale.texi: Mention that the problem with the
16395         LC_CTYPE category also exists on Cygwin 1.5.x.
16396
16397 2011-06-04  Bruno Haible  <bruno@clisp.org>
16398
16399         strerror-override: Don't disable symbol renamings.
16400         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
16401         * lib/strerror-override.c: Include config.h.
16402         (strerror_override): Don't undefine.
16403
16404 2011-06-03  Bruno Haible  <bruno@clisp.org>
16405
16406         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
16407         * lib/localename.h: Update copyright header.
16408         * lib/localename.c: Likewise.
16409         * lib/relocatable.h: Likewise.
16410         * lib/relocatable.c: Likewise.
16411
16412 2011-06-02  Bruno Haible  <bruno@clisp.org>
16413
16414         doc: Fix a module name.
16415         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
16416
16417 2011-06-02  Bruno Haible  <bruno@clisp.org>
16418
16419         pipe2: Remove dependency on 'nonblocking' module.
16420         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16421         O_NONBLOCK is defined by gnulib.
16422         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16423         is zero.
16424         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16425         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16426         defined by gnulib.
16427         (get_nonblocking_flag): New function.
16428         (main): Test O_NONBLOCK flag only if it is nonzero.
16429         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16430
16431 2011-06-03  Jim Meyering  <meyering@redhat.com>
16432
16433         maint: three new prohibit-header-without-use rules
16434         Prohibit use of cloexec.h, posixver.h, same.h without use.
16435         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16436         (sc_prohibit_posixver_without_use): Likewise.
16437         (sc_prohibit_same_without_use): Likewise.
16438
16439 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16440
16441         allocator: 'die' routine is now given requested size
16442         * lib/allocator.h (struct allocator.die): New size arg.
16443         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
16444         If the actual problem is an ssize_t limitation, not a size_t or
16445         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
16446
16447 2011-06-01  Eric Blake  <eblake@redhat.com>
16448
16449         strerror: drop strerror_r dependency
16450         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
16451         * lib/strerror-override.c (strerror_override): ...to new file.
16452         * lib/strerror-override.h: Add prototype.
16453         * lib/strerror-impl.h: Delete.
16454         * lib/strerror.c (strerror): New implementation.
16455         * modules/errno (Files): Add new files.
16456         (configure.ac): Compile new file as appropriate.
16457         * modules/strerror (Files): Drop unused file.
16458         (Depends-on): Drop strerror_r-posix.
16459         * MODULES.html.sh: Document strerror_r-posix.
16460         Requested by Sam Steingold.
16461
16462         perror: call strerror_r directly
16463         * modules/perror (Files): Drop strerror-impl.h.
16464         * lib/perror.c (perror): Use our own stack buffer, rather than
16465         calling a wrapper that uses static storage.
16466         * doc/posix-functions/perror.texi (perror): Document a limitation
16467         of our replacement.
16468
16469         strerror_r: fix includes for FreeBSD
16470         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16471         since we use abort on some platforms.
16472         Reported by Matthias Bolte.
16473
16474 2011-05-31  Bruno Haible  <bruno@clisp.org>
16475
16476         Fix link errors in tests: openat-die uses gettext-h.
16477         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
16478         against $(LIBINTL).
16479         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
16480         against $(LIBINTL).
16481         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
16482         $(LIBINTL).
16483         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
16484         against $(LIBINTL).
16485         * modules/linkat-tests (Makefile.am): Link test-linkat against
16486         $(LIBINTL).
16487         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
16488         $(LIBINTL).
16489         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
16490         against $(LIBINTL).
16491         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
16492         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
16493         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
16494         $(LIBINTL).
16495         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
16496         $(LIBINTL).
16497         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
16498         $(LIBINTL).
16499         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16500
16501 2011-05-31  Bruno Haible  <bruno@clisp.org>
16502
16503         Fix link errors in tests: wait-process uses gettext-h.
16504         * modules/nonblocking-pipe-tests (Makefile.am): Set
16505         test_nonblocking_pipe_main_LDADD.
16506         * modules/nonblocking-socket-tests (Makefile.am): Link
16507         test-nonblocking-socket-main against $(LIBINTL).
16508         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16509
16510 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16511
16512         assert-h: work around 'verify' incompatibility
16513         * lib/verify.h: Use @...@ directives, not ifdef.
16514         * modules/assert-h (assert.h): Implement the directives.
16515         (assert.h): Substitute the symbol-prefix more consistently.
16516
16517 2011-05-29  Jim Meyering  <meyering@redhat.com>
16518
16519         trim: remove three superfluous assignments
16520         * lib/trim.c (trim2): Remove three superfluous assignments
16521         and correct brace positioning.
16522
16523 2011-05-29  Bruno Haible  <bruno@clisp.org>
16524
16525         wctype-h: Avoid namespace pollution on Solaris 2.6.
16526         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16527         identifiers.
16528         * doc/posix-headers/wctype.texi: Mention the problem.
16529         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16530
16531 2011-05-28  Jim Meyering  <meyering@redhat.com>
16532
16533         parse-datetime.y: accommodate -Wstrict-overflow
16534         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16535         placate -Wstrict-overflow.
16536
16537         trim: avoid a warning from -O2 -Wstrict-overflow
16538         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16539
16540 2011-05-29  Bruno Haible  <bruno@clisp.org>
16541
16542         gnulib-tool: Fix bug in yesterday's commit.
16543         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16544         twice.
16545
16546 2011-05-29  Bruno Haible  <bruno@clisp.org>
16547
16548         Allow multiple gnulib generated include files to be combined.
16549         * gnulib-tool (func_compute_include_guard_prefix): New function.
16550         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16551         ${gl_include_guard_prefix} references.
16552         (func_import, func_create_testdir): Invoke
16553         func_compute_include_guard_prefix.
16554         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16555         * lib/ctype.in.h: Likewise.
16556         * lib/dirent.in.h: Likewise.
16557         * lib/errno.in.h: Likewise.
16558         * lib/fcntl.in.h: Likewise.
16559         * lib/float.in.h: Likewise.
16560         * lib/getopt.in.h: Likewise.
16561         * lib/iconv.in.h: Likewise.
16562         * lib/langinfo.in.h: Likewise.
16563         * lib/locale.in.h: Likewise.
16564         * lib/math.in.h: Likewise.
16565         * lib/netdb.in.h: Likewise.
16566         * lib/netinet_in.in.h: Likewise.
16567         * lib/poll.in.h: Likewise.
16568         * lib/pthread.in.h: Likewise.
16569         * lib/pty.in.h: Likewise.
16570         * lib/sched.in.h: Likewise.
16571         * lib/se-selinux.in.h: Likewise.
16572         * lib/search.in.h: Likewise.
16573         * lib/signal.in.h: Likewise.
16574         * lib/spawn.in.h: Likewise.
16575         * lib/stdarg.in.h: Likewise.
16576         * lib/stddef.in.h: Likewise.
16577         * lib/stdint.in.h: Likewise.
16578         * lib/stdio.in.h: Likewise.
16579         * lib/stdlib.in.h: Likewise.
16580         * lib/string.in.h: Likewise.
16581         * lib/strings.in.h: Likewise.
16582         * lib/sys_file.in.h: Likewise.
16583         * lib/sys_ioctl.in.h: Likewise.
16584         * lib/sys_select.in.h: Likewise.
16585         * lib/sys_socket.in.h: Likewise.
16586         * lib/sys_stat.in.h: Likewise.
16587         * lib/sys_time.in.h: Likewise.
16588         * lib/sys_times.in.h: Likewise.
16589         * lib/sys_uio.in.h: Likewise.
16590         * lib/sys_utsname.in.h: Likewise.
16591         * lib/sys_wait.in.h: Likewise.
16592         * lib/sysexits.in.h: Likewise.
16593         * lib/termios.in.h: Likewise.
16594         * lib/time.in.h: Likewise.
16595         * lib/unistd.in.h: Likewise.
16596         * lib/wchar.in.h: Likewise.
16597         * lib/wctype.in.h: Likewise.
16598         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16599         * modules/ctype (Makefile.am): Likewise.
16600         * modules/dirent (Makefile.am): Likewise.
16601         * modules/errno (Makefile.am): Likewise.
16602         * modules/fcntl-h (Makefile.am): Likewise.
16603         * modules/float (Makefile.am): Likewise.
16604         * modules/getopt-posix (Makefile.am): Likewise.
16605         * modules/iconv-h (Makefile.am): Likewise.
16606         * modules/langinfo (Makefile.am): Likewise.
16607         * modules/locale (Makefile.am): Likewise.
16608         * modules/math (Makefile.am): Likewise.
16609         * modules/netdb (Makefile.am): Likewise.
16610         * modules/netinet_in (Makefile.am): Likewise.
16611         * modules/poll-h (Makefile.am): Likewise.
16612         * modules/pthread (Makefile.am): Likewise.
16613         * modules/pty (Makefile.am): Likewise.
16614         * modules/sched (Makefile.am): Likewise.
16615         * modules/search (Makefile.am): Likewise.
16616         * modules/selinux-h (Makefile.am): Likewise.
16617         * modules/signal (Makefile.am): Likewise.
16618         * modules/spawn (Makefile.am): Likewise.
16619         * modules/stdarg (Makefile.am): Likewise.
16620         * modules/stddef (Makefile.am): Likewise.
16621         * modules/stdint (Makefile.am): Likewise.
16622         * modules/stdio (Makefile.am): Likewise.
16623         * modules/stdlib (Makefile.am): Likewise.
16624         * modules/string (Makefile.am): Likewise.
16625         * modules/strings (Makefile.am): Likewise.
16626         * modules/sys_file (Makefile.am): Likewise.
16627         * modules/sys_ioctl (Makefile.am): Likewise.
16628         * modules/sys_select (Makefile.am): Likewise.
16629         * modules/sys_socket (Makefile.am): Likewise.
16630         * modules/sys_stat (Makefile.am): Likewise.
16631         * modules/sys_time (Makefile.am): Likewise.
16632         * modules/sys_times (Makefile.am): Likewise.
16633         * modules/sys_uio (Makefile.am): Likewise.
16634         * modules/sys_utsname (Makefile.am): Likewise.
16635         * modules/sys_wait (Makefile.am): Likewise.
16636         * modules/sysexits (Makefile.am): Likewise.
16637         * modules/termios (Makefile.am): Likewise.
16638         * modules/time (Makefile.am): Likewise.
16639         * modules/unistd (Makefile.am): Likewise.
16640         * modules/wchar (Makefile.am): Likewise.
16641         * modules/wctype-h (Makefile.am): Likewise.
16642         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16643
16644 2011-05-29  Bruno Haible  <bruno@clisp.org>
16645
16646         assert-h: Allow multiple gnulib generated replacements to coexist.
16647         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16648
16649 2011-05-29  Bruno Haible  <bruno@clisp.org>
16650
16651         argp: Allow coexistence with strerror_r-posix module.
16652         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16653         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16654         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16655         not the glibc signature.
16656
16657 2011-05-28  Bruno Haible  <bruno@clisp.org>
16658
16659         gnulib-tool: Alternative structure of testdirs, similar to --import.
16660         * gnulib-tool: New option --single-configure.
16661         (func_usage): Document it.
16662         (single_configure): New variable.
16663         (func_modules_transitive_closure_separately,
16664         func_modules_transitive_closure_separately,
16665         func_determine_use_libtests, func_modules_add_dummy_separately,
16666         func_modules_to_filelist_separately): New functions, extracted from
16667         func_import.
16668         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16669         (func_import): Use the new functions.
16670         (func_create_testdir): Set final_modules. Handle $single_configure =
16671         true case.
16672
16673 2011-05-28  Bruno Haible  <bruno@clisp.org>
16674
16675         getloadavg: Remove an unreliable safety check.
16676         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16677         getloadavg.c is in place.
16678         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16679         Reported by Sam Steingold <sds@gnu.org>.
16680
16681 2011-05-28  Bruno Haible  <bruno@clisp.org>
16682
16683         doc: Cleanup yet another file produced by texinfo.tex.
16684         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16685
16686 2011-05-28  Bruno Haible  <bruno@clisp.org>
16687
16688         Finish the conditional dependencies mechanism.
16689         * gnulib-tool: New option --no-conditional-dependencies.
16690         (func_usage): Document it. Don't mark --conditional-dependencies as
16691         experimental.
16692         (cond_dependencies): The possible values can now be true, false, empty.
16693         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16694         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16695         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16696
16697 2011-05-28  Bruno Haible  <bruno@clisp.org>
16698
16699         doc: Use a recent texinfo.tex.
16700         * doc/Makefile (tex_opts): New variable.
16701         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16702
16703 2011-05-28  Jim Meyering  <meyering@redhat.com>
16704
16705         intprops.h: adjust comment to match code change
16706         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16707         only once, it *may* have side effects.  Also fix an unrelated typo.
16708         (_GL_INT_SIGNED): Likewise.
16709
16710 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16711
16712         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16713
16714 2011-05-26  Bruno Haible  <bruno@clisp.org>
16715
16716         mbsrchr: Avoid collision with system function on Interix.
16717         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16718         Reported by Markus Duft <mduft@gentoo.org>.
16719
16720 2011-05-15  James Youngman  <jay@gnu.org>
16721
16722         getopt: for ambiguous options, enumerate the possibilities.
16723         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16724         the ambiguous options when an ambiguous prefix is given. This was
16725         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16726         glibc change was
16727         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16728
16729 2011-05-25  Eric Blake  <eblake@redhat.com>
16730
16731         getcwd: work around mingw bug
16732         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16733         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16734         Reported by Matthias Bolte.
16735
16736 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16737
16738         test-intprops: disable -Wtype-limits diagnostics
16739         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16740         diagnostics.  Otherwise, the integer overflow macros generate many
16741         diagnostics.  Reported by Jim Meyering in
16742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16743
16744         intprops: shorten, to pacify gcc -Woverlength-strings
16745         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16746         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16747         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16748         likely to run afoul of C compiler limits for string constant lengths.
16749         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16750
16751 2011-05-24  Eric Blake  <eblake@redhat.com>
16752
16753         docs: document recently fixed glibc printf bug
16754         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16755         * doc/posix-functions/printf.texi (printf): Likewise.
16756         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16757         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16758
16759         closein-tests: convert to init.sh
16760         * modules/closein-tests (Files): Add init.sh
16761         * tests/test-closein.sh Use it.
16762
16763         yesno-tests: convert to init.sh
16764         * modules/yesno-tests (Files): Add init.sh.
16765         * tests/test-yesno.sh: Use it.
16766
16767         atexit-tests: ensure reliable exit status
16768         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16769         Reported by Bruno Haible.
16770
16771 2011-05-24  Bruno Haible  <bruno@clisp.org>
16772
16773         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16774         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16775         gl_PREREQ_STRERROR_R invocations from here...
16776         * modules/strerror_r-posix (configure.ac): ... to here.
16777
16778 2011-05-24  Eric Blake  <eblake@redhat.com>
16779
16780         strerror_r: fix missing header
16781         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16782
16783         strerror_r: fix AIX test failures
16784         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16785         ERANGE failure.
16786
16787         strerror_r: fix Solaris test failures
16788         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16789         failures.
16790         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16791
16792         strerror_r: enforce POSIX recommendations
16793         * lib/strerror_r.c (safe_copy): New helper method.
16794         (strerror_r): Guarantee a non-empty string.
16795         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16796         recent POSIX rulings and to match our strerror guarantees.
16797         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16798
16799 2011-05-24  Jim Meyering  <meyering@redhat.com>
16800
16801         test-perror2.c: avoid warning about unused variable
16802         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16803
16804 2011-05-24  Eric Blake  <eblake@redhat.com>
16805
16806         perror: avoid spurious test failure on HP-UX
16807         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16808
16809         tests: fix logic bug in init.sh
16810         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16811         shell.
16812
16813 2011-05-24  Jim Meyering  <meyering@redhat.com>
16814
16815         utimensat: do not reference an out-of-scope buffer
16816         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16817         declared in an inner scope, yet "times" would be dereferenced outside
16818         the scope in which "ts" was valid.
16819         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16820         of ts[2] "out/up", so that the use of aliased "times" (via
16821         "times = ts;") does not end up referencing an out-of-scope "ts"
16822
16823         opendir-safer.c: don't clobber errno; don't close negative FD
16824         * lib/opendir-safer.c (opendir_safer):
16825         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16826         file descriptor, and more importantly, don't clobber the
16827         offending errno value with EINVAL.  Before, upon failure
16828         of dup_safer, we would pass the negative file descriptor to
16829         fdopendir, which would clobber errno.
16830
16831 2011-05-23  Bruno Haible  <bruno@clisp.org>
16832
16833         idcache: Fix module description.
16834         * modules/idcache (Include): Set to "idcache.h".
16835
16836 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16837
16838         gnulib-tool: fix portability problem with MacOS sed
16839         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16840         before the "}".  Problem reported by Leo in
16841         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16842         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16843         sed_extract_condition1, sed_extract_condition2.
16844
16845 2011-05-23  Bruno Haible  <bruno@clisp.org>
16846
16847         hash: Simplify autoconf macro.
16848         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16849
16850 2011-05-23  Bruno Haible  <bruno@clisp.org>
16851
16852         getugroups: Fix module description.
16853         * modules/getugroups (Include): Set to "getugroups.h".
16854
16855 2011-05-23  Bruno Haible  <bruno@clisp.org>
16856
16857         linkat: Simplify autoconf macro.
16858         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16859
16860 2011-05-23  Bruno Haible  <bruno@clisp.org>
16861             Eric Blake  <eblake@redhat.com>
16862
16863         linkat, renameat: Update dependencies.
16864         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16865         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16866         symlinkat.
16867
16868 2011-05-23  Jim Meyering  <meyering@redhat.com>
16869
16870         maint.mk: more tight_scope improvements
16871         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16872         (_gl_TS_headers): Define only in if-0'd block.
16873         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16874         sometimes we must *not* use it.  Adjust uses accordingly.
16875         (sc_tight_scope): Use much simpler grep-based test to determine
16876         whether we skip this rule.
16877
16878         maint.mk: generalize/improve the tight-scope rule
16879         * top/maint.mk: Emit a warning when the test is skipped.
16880         (_gl_TS_dir): Add $(srcdir)/ prefix.
16881         (_gl_TS_function_match): Simplify, rather than trying
16882         to enumerate common types.  Otherwise, it would fail to match an
16883         "extern unsigned char const *" declaration in idutils.
16884         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16885         a way to support use of that type of macro.
16886         (_gl_TS_var_match): Simplify regexp.
16887         (_gl_TS_obj_files): New configurable variable.
16888         (_gl_TS_headers): Likewise.
16889
16890 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16891
16892         verify: fix bug when gnulib <assert.h> is also included
16893         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16894         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16895         Perhaps there's a better way, but this fixes the immediate problem.
16896         Problem reported by Bruno Haible in
16897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16898
16899 2011-05-22  Bruno Haible  <bruno@clisp.org>
16900
16901         xgetcwd: Simplify autoconf macro.
16902         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16903
16904 2011-05-22  Bruno Haible  <bruno@clisp.org>
16905
16906         New module 'mktime-internal'.
16907         * modules/mktime-internal: New file.
16908         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16909         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16910         mktime_internal as a C macro if libc has __mktime_internal.
16911         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16912         conditions.
16913         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16914
16915 2011-05-22  Bruno Haible  <bruno@clisp.org>
16916
16917         timegm: Correct mktime replacement statements.
16918         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16919         defining mktime as a C macro. This completes a 2009-07-28 commit.
16920
16921 2011-05-22  Bruno Haible  <bruno@clisp.org>
16922
16923         timegm: Simplify autoconf macro.
16924         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16925
16926 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16927
16928         clock-time: change to LGPLv2+.
16929         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16930         BSD-like but we have no mark for that; this is good enough for now.
16931
16932 2011-05-21  Bruno Haible  <bruno@clisp.org>
16933
16934         strerror_r: Fix comments.
16935         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16936
16937 2011-05-21  Bruno Haible  <bruno@clisp.org>
16938
16939         relocatable-prog-wrapper: Fix possible link error.
16940         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16941         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16942         (gl_FUNC_SETENV): ... to here.
16943         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16944         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16945
16946 2011-05-21  Bruno Haible  <bruno@clisp.org>
16947
16948         relocatable-prog-wrapper: Assume strerror() exists.
16949         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16950         m4/strerror.m4.
16951         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16952         * lib/relocwrapper.c: Remove mention of strerror module.
16953         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16954         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16955         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16956         C macro.
16957
16958 2011-05-21  Bruno Haible  <bruno@clisp.org>
16959
16960         select: Simplify replacement idiom.
16961         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16962         Win32 platforms.
16963         * lib/sys_select.in.h (select): Simplify accordingly.
16964         * modules/select (Depends-on): Likewise.
16965
16966 2011-05-21  Bruno Haible  <bruno@clisp.org>
16967
16968         mkdir-p: Simplify autoconf macro.
16969         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16970         gl_FUNC_LCHOWN.
16971
16972 2011-05-21  Eric Blake  <eblake@redhat.com>
16973
16974         strerror_r: avoid clobbering strerror on cygwin
16975         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16976         fall back instead to sys_errlist.
16977         * modules/strerror (configure.ac): Add witness.
16978         * tests/test-strerror_r.c (main): Enhance test.
16979         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16980         * tests/test-perror2.c (main): Free memory before exit.
16981
16982 2011-05-21  Bruno Haible  <bruno@clisp.org>
16983
16984         mkdtemp: Use gnulib naming conventions.
16985         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16986         * modules/mkdtemp (configure.ac): Update.
16987
16988 2011-05-20  Eric Blake  <eblake@redhat.com>
16989
16990         strerror_r: avoid corrupting errno on Solaris
16991         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16992         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16993
16994         strerror_r: avoid compiler warning
16995         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16996
16997         strerror_r: simplify AIX code
16998         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16999
17000         test-perror: avoid spurious failure on FreeBSD
17001         * modules/perror-tests (Depends-on): Add strerror, now that
17002         strerror_r no longer pulls it in.
17003
17004 2011-05-20  Bruno Haible  <bruno@clisp.org>
17005
17006         strerror_r-posix: Remove unused dependencies.
17007         * modules/strerror_r-posix (Depends-on): Remove strerror.
17008         Reported by Eric Blake.
17009
17010 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17011
17012         intprops: remove assumption about A|B representation
17013         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
17014         is a valid integer if both A and B are.  Although this is true for
17015         all known practical hosts, the C standard doesn't guarantee it,
17016         and the code need not assume it.  Also, this change may work around
17017         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
17018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
17019
17020 2011-05-20  Eric Blake  <eblake@redhat.com>
17021
17022         perror: work around FreeBSD bug
17023         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
17024         is broken.  Move AC_LIBOBJ...
17025         * modules/perror (configure.ac): Here.
17026         * doc/posix-functions/perror.texi (perror): Document this.
17027         * tests/test-perror2.c (main): Enhance test.
17028
17029         test-perror: check for strerror interactions
17030         * tests/macros.h (STREQ): Add macro.
17031         * modules/perror-tests (Files): Add second test.
17032         * tests/test-perror2.c (main): New file.
17033         * doc/posix-functions/perror.texi (perror): Document glibc bug.
17034
17035         test-perror: rewrite to use init script
17036         * modules/perror-tests (Files): Add init.sh.
17037         * tests/test-perror.sh: Use temporary directory.
17038
17039 2011-05-20  Jim Meyering  <meyering@redhat.com>
17040
17041         maint: replace misused "a" with "an"
17042         * doc/intprops.texi: "a integer"
17043         * doc/regex.texi: "a explanation"
17044         * lib/alignof.h: "a object"
17045         * lib/argmatch.h: "a explanation"
17046         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17047         * lib/stdint.in.h: "a integer"
17048         * lib/userspec.c: "a owner"
17049         * doc/gnulib.texi: Fix "a idea", and reword.
17050
17051 2011-05-19  Jim Meyering  <meyering@redhat.com>
17052
17053         maint: correct misuse of "a" and "an"
17054         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17055         * lib/argp-help.c: "an docum...": s/an/a/
17056         * lib/argp-parse.c: "An vector": s/An/A/
17057         * lib/execute.c: "an native": s/an/a/
17058         * lib/spawn-pipe.c: Likewise.
17059         * lib/gc.h: "an Gc_rc": s/an/a/
17060         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17061         * lib/fts.c: "an stat.st_dev": s/an/a/
17062
17063 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17064
17065         intprops-tests: work around HP-UX 11.23 cc bug with constants
17066         * tests/test-intprops.c (VERIFY): New macro.
17067         (main): Use it, instead of verify, to work around the compiler bug; see
17068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17069
17070         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17071         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17072         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17073         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17074         (_GL_REMAINDER_OVERFLOW): Use it.
17075
17076         intprops-tests: revert unsigned part of previous change
17077         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17078         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17079         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17081
17082 2011-05-19  Bruno Haible  <bruno@clisp.org>
17083
17084         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17085         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17086         strerror_r() returned without filling the buffer.
17087         Reported by Eric Blake.
17088
17089 2011-05-19  Eric Blake  <eblake@redhat.com>
17090
17091         strerror_r: guarantee unchanged errno
17092         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17093         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17094         failure.
17095         * tests/test-strerror_r.c (main): Enhance test.
17096
17097 2011-05-19  Bruno Haible  <bruno@clisp.org>
17098
17099         strerror_r: Reorder #if blocks.
17100         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17101         for consistency with the previous commit.
17102
17103 2011-05-19  Bruno Haible  <bruno@clisp.org>
17104
17105         perror: Avoid clobbering the strerror buffer when possible.
17106         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17107         * lib/strerror.c: Include it.
17108         * modules/strerror (Files): Add lib/strerror-impl.h.
17109         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17110         (my_strerror): New function, defined through lib/strerror-impl.h.
17111         (perror): Use it instead of strerror.
17112         * modules/perror (Files): Add lib/strerror-impl.h.
17113         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17114
17115 2011-05-19  Eric Blake  <eblake@redhat.com>
17116
17117         strerror_r: fix on newer cygwin
17118         * lib/strerror_r.c (strerror_r): Cygwin now has
17119         __xpg_strerror_r, use it.
17120
17121 2011-05-19  Bruno Haible  <bruno@clisp.org>
17122
17123         strerror_r: Avoid clobbering the strerror buffer when possible.
17124         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17125         (sys_nerr, sys_errlist): New declarations.
17126         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17127         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17128         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17129
17130 2011-05-19  Bruno Haible  <bruno@clisp.org>
17131
17132         strerror_r: Fix test failure on mingw.
17133         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17134         EXTEND_STRERROR_R.
17135         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17136         macros from errno.in.h instead.
17137
17138 2011-05-19  Eric Blake  <eblake@redhat.com>
17139
17140         strerror: relax test for Solaris
17141         * tests/test-strerror.c (main): Permit Solaris behavior.
17142         * tests/test-strerror_r.c (main): Likewise.
17143
17144         strerror: enforce POSIX ruling on strerror(0)
17145         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17146         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17147         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17148         * doc/posix-functions/strerror.texi (strerror): Document it.
17149         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17150         * tests/test-strerror.c (main): Strengthen test.
17151         * tests/test-strerror_r.c (main): Likewise.
17152
17153 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17154
17155         intprop-tests: port to older and more-pedantic compilers
17156         * modules/intprops-tests (Files): Add tests/macros.h.
17157         * tests/test-intprops.c: Include macros.h.
17158         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17159         it's no longer documented to expand to an integer constant expression.
17160         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17161         argument is floating point, as it's no longer documented to expand
17162         to an integer constant expression in that case.
17163         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17164         compiler bugs reported by Bruno Haible.  See
17165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17166         (U0, U1): New constants, to work around the same bugs.  Also,
17167         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17168
17169         intprops: work around C compiler bugs
17170         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17171         bug in Sun C 5.11 2010/08/13 and other compilers; see
17172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17173
17174         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17175         * doc/intprops.texi (Integer Type Determination): Fix
17176         documentation for TYPE_IS_INTEGER: it returns an constant
17177         expression, not an integer constant expression.  Fix doc for
17178         TYPE_SIGNED: it returns an integer constant expression only if its
17179         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17180         hardly worth documented that way....)
17181
17182 2011-05-18  Bruno Haible  <bruno@clisp.org>
17183
17184         strerror_r: Avoid clobbering the strerror buffer when possible.
17185         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17186         Handle gnulib defined errno values here. When strerror() returns NULL
17187         or an empty string, return EINVAL.
17188         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17189         gnulib defined errno values here.
17190         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17191
17192 2011-05-18  Eric Blake  <eblake@redhat.com>
17193
17194         fnmatch: avoid compiler warning
17195         * lib/fnmatch_loop.c (FCT): Use correct type.
17196         Reported by Matthias Bolte.
17197
17198 2011-05-13  Jim Meyering  <meyering@redhat.com>
17199
17200         maint.mk: three new prohibit_<HDR>_without_use rules
17201         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17202         (sc_prohibit_stdio-safer_without_use): Likewise.
17203         (sc_prohibit_xfreopen_without_use): Likewise.
17204
17205 2011-05-17  Jim Meyering  <meyering@redhat.com>
17206
17207         announce-gen: fail if the NEWS delta is empty
17208         If there's nothing noteworthy in NEWS, then either you forgot
17209         or you shouldn't be releasing.
17210         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17211
17212 2011-05-17  Pádraig Brady <P@draigBrady.com>
17213
17214         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17215         reserved symbols starting with double underscore from the check.
17216
17217 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17218
17219         intprops: add doc
17220         * doc/intprops.texi: New file, documenting intprops.
17221         * doc/gnulib.texi (Particular Modules): Include it.
17222
17223         verify: add doc to gnulib manual and fix example
17224         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17225         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17226         (Compile-time Assertions): Fix example so it can't overflow.
17227
17228 2011-05-17  Jim Meyering  <meyering@redhat.com>
17229
17230         warnings.m4: don't usurp save_CPPFLAGS variable name
17231         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17232
17233         doc: fix typo
17234         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17235
17236 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17237             Bruno Haible  <bruno@clisp.org>
17238
17239         doc: Tweak recent change.
17240         * README (Portability guidelines): Tweak new text.
17241         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17242         Interix 6.1.
17243
17244 2011-05-16  Eric Blake  <eblake@redhat.com>
17245
17246         inttypes: avoid autoconf warning
17247         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17248         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17249
17250 2011-05-16  Sam Steingold <sds@gnu.org>
17251         and Eric Blake  <eblake@redhat.com>
17252
17253         vc-list-files: accept multiple directory operands
17254         * build-aux/vc-list-files: Iterate over all remaining operands.
17255
17256 2011-05-16  Bruno Haible  <bruno@clisp.org>
17257
17258         Fix confusion regarding deprecated modules.
17259         * modules/calloc (Status, Notice): Mark module as deprecated, not
17260         obsolete.
17261         * modules/fnmatch-posix (Status, Notice): Likewise.
17262         * modules/getdate (Status, Notice): Likewise.
17263         * modules/getopt (Status, Notice): Likewise.
17264         * modules/malloc (Status, Notice): Likewise.
17265         * modules/pipe (Status, Notice): Likewise.
17266         * modules/realloc (Status, Notice): Likewise.
17267         * modules/rename-dest-slash (Status, Notice): Likewise.
17268         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17269         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17270         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17271         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17272         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17273
17274 2011-05-16  Bruno Haible  <bruno@clisp.org>
17275
17276         doc: List the target platforms.
17277         * doc/gnulib-intro.texi (Target Platforms): New section.
17278         * doc/gnulib.texi (Introduction): Update menu.
17279         * README (Portability guidelines): Refer to the new section. Update
17280         statement about oldest supported environment. Remove rationale why
17281         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17282         unportable C89 function.
17283         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17284         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17285
17286 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17287
17288         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17289
17290 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17291
17292         intprops-tests: new module
17293         * modules/intprops-tests, tests/test-intprops.c: New files.
17294
17295         intprops: add safe, portable integer overflow checking
17296         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
17297         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
17298         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
17299         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
17300         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17301         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17302         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17303         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17304         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17305         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17306         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17307
17308 2011-05-12  James Youngman  <jay@gnu.org>
17309
17310         Add a test for glibc's Bugzilla bug #12378.
17311         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17312         doesn't allow the literal matching of a lone "[" (which is
17313         required by POSIX).
17314         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17315
17316 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17317
17318         Sync glibc change fixing Bugzilla bug #12378.
17319         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17320         beginning and fall back to matching as normal character if the
17321         string ends before the matching ']' is found.  This is what POSIX
17322         requires.
17323
17324 2011-05-13  Eric Blake  <eblake@redhat.com>
17325
17326         getcwd-lgpl: relax test for FreeBSD
17327         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17328         issue.
17329         * tests/test-getcwd-lgpl.c (main): Relax test.
17330         Reported by Matthias Bolte.
17331
17332 2011-05-11  Eric Blake  <eblake@redhat.com>
17333
17334         test-fflush: silence compiler warning
17335         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17336
17337 2011-05-11  Bruno Haible  <bruno@clisp.org>
17338
17339         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17340         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17341         * modules/canonicalize (Depends-on): Add 'nocrash'.
17342         * modules/canonicalize-lgpl (Depends-on): Likewise.
17343         * doc/posix-functions/realpath.texi: Update platforms list.
17344         Reported by Ryan Schmidt <ryandesign@macports.org>.
17345
17346 2011-05-11  Bruno Haible  <bruno@clisp.org>
17347
17348         group-member: Declare function in <unistd.h>.
17349         * lib/unistd.in.h (group_member): New declaration.
17350         * lib/group-member.h: Remove file.
17351         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17352         * tests/test-unistd-c++.cc: Check signature of group_member.
17353         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17354         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17355         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17356         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17357         HAVE_GROUP_MEMBER.
17358         * modules/group-member (Files): Remove lib/group-member.h.
17359         (Depends-on): Add unistd. Specify conditions.
17360         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17361         (Include): Change to <unistd.h>.
17362         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17363         HAVE_GROUP_MEMBER.
17364         * NEWS: Mention the change.
17365         * lib/euidaccess.c: Don't include group-member.h.
17366
17367 2011-05-11  Bruno Haible  <bruno@clisp.org>
17368
17369         group-member: Document module.
17370         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
17371         module.
17372
17373 2011-05-11  Bruno Haible  <bruno@clisp.org>
17374
17375         fclose: Fix mistake earlier today.
17376         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
17377
17378 2011-05-11  Eric Blake  <eblake@redhat.com>
17379
17380         fclose: preserve fflush errors
17381         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
17382         Reported by Jim Meyering.
17383
17384         bootstrap: support a prereq of 'rpcgen -' on RHEL5
17385         * build-aux/bootstrap (check_versions): When no specific version
17386         is required, merely check that the app produces an exit status
17387         that indicates its existence.
17388
17389         maint.mk: drop redundant check
17390         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
17391         the same but better.
17392
17393 2011-05-11  Bruno Haible  <bruno@clisp.org>
17394
17395         fclose: Fix possible link error.
17396         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
17397         unregister_shadow_fd. Improve comments.
17398         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
17399         Eric Blake.
17400
17401 2011-05-11  Jim Meyering  <meyering@redhat.com>
17402
17403         maint.mk: improve "can not" detection and generalize rule name
17404         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
17405         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
17406         Use the same technique as in sc_prohibit_doubled_word, so that
17407         we recognize "can not" also when the words are separated by a newline.
17408         Suggested by Eric Blake.
17409         (perl_filename_lineno_text_): Define.  Factored out of...
17410         (prohibit_doubled_word_): ...here.  Use the new definition.
17411         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
17412         (prohibit_undesirable_word_seq_RE_): New overridable variable.
17413         (ignore_undesirable_word_sequence_RE_): New overridable variable.
17414
17415 2011-05-10  Eric Blake  <eblake@redhat.com>
17416
17417         fclose: avoid double close race when possible
17418         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
17419         all but WINDOWS_SOCKETS.
17420
17421 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17422
17423         openat: correct new comment
17424         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17425
17426 2011-05-10  Jim Meyering  <meyering@redhat.com>
17427
17428         openat: add comments
17429         * lib/openat-proc.c (openat_proc_name): Add comments,
17430         mostly from Eric Blake.
17431
17432 2011-05-09  Eric Blake  <eblake@redhat.com>
17433
17434         openat: reduce syscalls in first probe of /proc
17435         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17436         be a directory.  Simplify the probe for .. bugs.
17437         * modules/openat (Depends-on): Drop same-inode.
17438         Reported by Bastien ROUCARIES.
17439
17440 2011-05-09  Jim Meyering  <meyering@redhat.com>
17441
17442         maint.mk: change semantics/name of tight_scope variables
17443         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
17444         Rename variables to align with semantics that make them more useful.
17445
17446         maint.mk: tweak new rule's name not to impinge
17447         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
17448         (sc_tight_scope): Use new rule name rather than $@-0.
17449
17450         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
17451         * top/maint.mk (sc_tight_scope): New rule.
17452         (sc_tight_scope-0): New rule, ifdef'd out.
17453         (_gl_TS_dir): Default.
17454         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
17455         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
17456
17457 2011-05-09  Simon Josefsson  <simon@josefsson.org>
17458
17459         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
17460         Haible <bruno@clisp.org>.
17461
17462 2011-05-08  Bruno Haible  <bruno@clisp.org>
17463
17464         Comments.
17465         * m4/isnanf.m4: Add comment.
17466         * m4/isnanl.m4: Likewise.
17467
17468 2011-05-08  Bruno Haible  <bruno@clisp.org>
17469
17470         glob: Remove obsolete macro.
17471         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
17472
17473 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17474
17475         intprops: Sun C 5.11 supports __typeof__
17476         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
17477         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
17478         which is new.
17479         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
17480
17481         intprops: switch to usual gnulib indenting and naming
17482         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
17483         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
17484
17485         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
17486
17487 2011-05-08  Jim Meyering  <meyering@redhat.com>
17488
17489         maint.mk: suppress "Entering/Leaving directory" diag in announcement
17490         * top/maint.mk (release-prep): Use make's --no-print-directory
17491         option when generating the announcement.  This eliminates the
17492         pesky "make[2]: Entering/Leaving directory" diagnostics in the
17493         generated announcement template.
17494
17495 2011-05-08  Bruno Haible  <bruno@clisp.org>
17496
17497         tzset: Fix gettimeofday wrapper on Solaris 2.6.
17498         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
17499         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
17500
17501 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17502
17503         ignore-value, verify: Omit include files from lib_SOURCES.
17504         * modules/ignore-value, modules/verify (Makefile.am):
17505         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
17506         that leads Automake to duplicate use of am__objects_... variables
17507         in Makefile.in.  See
17508         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
17509
17510 2011-05-07  Bruno Haible  <bruno@clisp.org>
17511
17512         fclose: Simplify autoconf macro.
17513         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
17514         defined.
17515
17516 2011-05-07  Bruno Haible  <bruno@clisp.org>
17517
17518         canonicalize-lgpl: Fix autoconf macro ordering bug.
17519         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17520         gl_STDLIB_H_DEFAULTS.
17521
17522 2011-05-06  Eric Blake  <eblake@redhat.com>
17523
17524         maintainer-makefile: make sc_po_check easier to tune
17525         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17526         to probe for strings, such as an alternate location for gnulib.
17527
17528         fclose: guarantee behavior on seekable stdin
17529         * modules/fclose (Depends-on): Add fflush.
17530         * doc/posix-functions/fclose.texi (fclose): Document this.
17531         * tests/test-fclose.c (main): Make test for this unconditional.
17532
17533 2011-05-06  Bruno Haible  <bruno@clisp.org>
17534
17535         fflush, fpurge: Relicense under LGPLv2+.
17536         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17537         * modules/fpurge (License): Likewise.
17538         With permission from Eric Blake and Jim Meyering.
17539         Suggested by Eric Blake.
17540
17541 2011-05-06  Karl Berry  <karl@gnu.org>
17542
17543         * MODULES.html.sh (func_all_modules): remove exit.
17544
17545 2011-05-06  Jim Meyering  <meyering@redhat.com>
17546
17547         maint.mk: use info-gnu@ as the default only for a stable release
17548         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17549         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17550         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17551         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17552
17553 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17554
17555         assert-h: new module, which supports C1X-style static_assert
17556         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17557         * lib/verify.h: Revamp so that this can be copied into assert.h,
17558         while retaining the ability to use it standalone as before.
17559         Rename private identifiers so as not to encroach on the
17560         standard C namespace, since this is now used by assert.h.
17561         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17562         the old verify_true.
17563         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17564         the old verify_true.  Use _GL_VERIFY_TYPE.
17565         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17566         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17567         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17568         defined when this file is copied into the replacement assert.h.
17569         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17570         and _Static_assert is not built in.
17571         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17572         defined, and use the new macros mentioned above.
17573         * doc/posix-headers/assert.texi: Document this.
17574
17575 2011-05-05  Bruno Haible  <bruno@clisp.org>
17576
17577         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17578         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17579         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17580         gl_REPLACE_FCLOSE here.
17581         * modules/fflush (Depends-on): Remove fclose.
17582         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17583         combination with module 'fclose'.
17584
17585 2011-05-05  Bruno Haible  <bruno@clisp.org>
17586
17587         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17588         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17589         gl_FUNC_FFLUSH.
17590         (gl_FUNC_FFLUSH): Use it.
17591         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17592         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17593         gl_REPLACE_FSEEKO here.
17594
17595 2011-05-05  Bruno Haible  <bruno@clisp.org>
17596
17597         tzset: Relicense under LGPL.
17598         * modules/tzset (License): Change to LGPL.
17599         No agreement needed; it's a no-op.
17600
17601         strtoimax, strtoumax: Relicense under LGPL.
17602         * modules/strtoimax (License): Change to LGPL.
17603         * modules/strtoumax (License): Likewise.
17604         With permission from Jim Meyering, Paul Eggert:
17605         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17606         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17607
17608         getgroups: Relicense under LGPL.
17609         * modules/getgroups (License): Change to LGPL.
17610         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17611         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17614
17615         nanosleep: Relicense under LGPL.
17616         * modules/nanosleep (License): Change to LGPL.
17617         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17618         Haible:
17619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17622         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17623
17624         futimens: Relicense under LGPL.
17625         * modules/futimens (License): Change to LGPL.
17626         With permission from Eric Blake:
17627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17628
17629         fflush: Relicense under LGPL.
17630         * modules/fflush (License): Change to LGPL.
17631         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17635
17636         tmpfile: Relicense under LGPL.
17637         * modules/tmpfile (License): Change to LGPL.
17638         With permission from Ben Pfaff:
17639         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17640
17641         isfinite: Relicense under LGPL.
17642         * modules/isfinite (License): Change to LGPL.
17643         With permission from Ben Pfaff, Bruno Haible:
17644         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17645         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17646
17647         acosl..tanl: Relicense under LGPL.
17648         * modules/acosl (License): Change to LGPL.
17649         * modules/asinl (License): Likewise.
17650         * modules/atanl (License): Likewise.
17651         * modules/cosl (License): Likewise.
17652         * modules/expl (License): Likewise.
17653         * modules/logl (License): Likewise.
17654         * modules/sinl (License): Likewise.
17655         * modules/sqrtl (License): Likewise.
17656         * modules/tanl (License): Likewise.
17657         Source code originally from glibc and Paolo Bonzini. Agreements:
17658         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17660
17661 2011-05-05  Bruno Haible  <bruno@clisp.org>
17662
17663         signal: Define sighandler_t.
17664         * lib/signal.in.h (sighandler_t): New type.
17665         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17666         whether sighandler_t is defined.
17667         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17668         * modules/signal (Depends-on): Add extensions.
17669         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17670         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17671         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17672
17673 2011-05-05  Eric Blake  <eblake@redhat.com>
17674
17675         maint: remove useless REPLACE_*_H macros
17676         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17677         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17678         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17679         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17680         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17681         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17682         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17683         * m4/btowc.m4: Update callers.
17684         * m4/dirfd.m4: Likewise.
17685         * m4/duplocale.m4: Likewise.
17686         * m4/fchdir.m4: Likewise.
17687         * m4/fdopendir.m4: Likewise.
17688         * m4/inet_ntop.m4: Likewise.
17689         * m4/inet_pton.m4: Likewise.
17690         * m4/ioctl.m4: Likewise.
17691         * m4/mbrlen.m4: Likewise.
17692         * m4/mbrtowc.m4: Likewise.
17693         * m4/mbsinit.m4: Likewise.
17694         * m4/mbsnrtowcs.m4: Likewise.
17695         * m4/mbsrtowcs.m4: Likewise.
17696         * m4/poll.m4: Likewise.
17697         * m4/setlocale.m4: Likewise.
17698         * m4/wcrtomb.m4: Likewise.
17699         * m4/wcsnrtombs.m4: Likewise.
17700         * m4/wcsrtombs.m4: Likewise.
17701         * m4/wctob.m4: Likewise.
17702         * m4/wcwidth.m4: Likewise.
17703         * modules/posix_spawn: Likewise.
17704         * modules/posix_spawn_file_actions_addclose: Likewise.
17705         * modules/posix_spawn_file_actions_adddup2: Likewise.
17706         * modules/posix_spawn_file_actions_addopen: Likewise.
17707         * modules/posix_spawn_file_actions_destroy: Likewise.
17708         * modules/posix_spawn_file_actions_init: Likewise.
17709         * modules/posix_spawnattr_destroy: Likewise.
17710         * modules/posix_spawnattr_getflags: Likewise.
17711         * modules/posix_spawnattr_getpgroup: Likewise.
17712         * modules/posix_spawnattr_getschedparam: Likewise.
17713         * modules/posix_spawnattr_getschedpolicy: Likewise.
17714         * modules/posix_spawnattr_getsigdefault: Likewise.
17715         * modules/posix_spawnattr_getsigmask: Likewise.
17716         * modules/posix_spawnattr_init: Likewise.
17717         * modules/posix_spawnattr_setflags: Likewise.
17718         * modules/posix_spawnattr_setpgroup: Likewise.
17719         * modules/posix_spawnattr_setschedparam: Likewise.
17720         * modules/posix_spawnattr_setschedpolicy: Likewise.
17721         * modules/posix_spawnattr_setsigdefault: Likewise.
17722         * modules/posix_spawnattr_setsigmask: Likewise.
17723         * modules/posix_spawnp: Likewise.
17724
17725 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17726
17727         Add option to do-release-commit-and-tag to specify branch.
17728         * build-aux/do-release-commit-and-tag: Add --branch.
17729
17730 2011-05-03  Bruno Haible  <bruno@clisp.org>
17731
17732         Avoid unnecessary compilation units, through conditional dependencies.
17733         * modules/accept (Depends-on): Add conditions to the dependencies.
17734         * modules/acosl (Depends-on): Likewise.
17735         * modules/argz (Depends-on): Likewise.
17736         * modules/asinl (Depends-on): Likewise.
17737         * modules/atanl (Depends-on): Likewise.
17738         * modules/atoll (Depends-on): Likewise.
17739         * modules/bind (Depends-on): Likewise.
17740         * modules/btowc (Depends-on): Likewise.
17741         * modules/canonicalize-lgpl (Depends-on): Likewise.
17742         * modules/ceil (Depends-on): Likewise.
17743         * modules/ceilf (Depends-on): Likewise.
17744         * modules/ceill (Depends-on): Likewise.
17745         * modules/chdir-long (Depends-on): Likewise.
17746         * modules/chown (Depends-on): Likewise.
17747         * modules/close (Depends-on): Likewise.
17748         * modules/connect (Depends-on): Likewise.
17749         * modules/cosl (Depends-on): Likewise.
17750         * modules/dirfd (Depends-on): Likewise.
17751         * modules/dprintf (Depends-on): Likewise.
17752         * modules/dprintf-posix (Depends-on): Likewise.
17753         * modules/error (Depends-on): Likewise.
17754         * modules/euidaccess (Depends-on): Likewise.
17755         * modules/expl (Depends-on): Likewise.
17756         * modules/faccessat (Depends-on): Likewise.
17757         * modules/fchdir (Depends-on): Likewise.
17758         * modules/fclose (Depends-on): Likewise.
17759         * modules/fcntl (Depends-on): Likewise.
17760         * modules/fdopendir (Depends-on): Likewise.
17761         * modules/fflush (Depends-on): Likewise.
17762         * modules/floor (Depends-on): Likewise.
17763         * modules/floorf (Depends-on): Likewise.
17764         * modules/floorl (Depends-on): Likewise.
17765         * modules/fnmatch (Depends-on): Likewise.
17766         * modules/fopen (Depends-on): Likewise.
17767         * modules/fprintf-posix (Depends-on): Likewise.
17768         * modules/frexp (Depends-on): Likewise.
17769         * modules/frexp-nolibm (Depends-on): Likewise.
17770         * modules/frexpl (Depends-on): Likewise.
17771         * modules/frexpl-nolibm (Depends-on): Likewise.
17772         * modules/fseek (Depends-on): Likewise.
17773         * modules/fsusage (Depends-on): Likewise.
17774         * modules/ftell (Depends-on): Likewise.
17775         * modules/ftello (Depends-on): Likewise.
17776         * modules/futimens (Depends-on): Likewise.
17777         * modules/getcwd (Depends-on): Likewise.
17778         * modules/getcwd-lgpl (Depends-on): Likewise.
17779         * modules/getdelim (Depends-on): Likewise.
17780         * modules/getdomainname (Depends-on): Likewise.
17781         * modules/getgroups (Depends-on): Likewise.
17782         * modules/gethostname (Depends-on): Likewise.
17783         * modules/getline (Depends-on): Likewise.
17784         * modules/getlogin_r (Depends-on): Likewise.
17785         * modules/getopt-posix (Depends-on): Likewise.
17786         * modules/getpeername (Depends-on): Likewise.
17787         * modules/getsockname (Depends-on): Likewise.
17788         * modules/getsockopt (Depends-on): Likewise.
17789         * modules/getsubopt (Depends-on): Likewise.
17790         * modules/getusershell (Depends-on): Likewise.
17791         * modules/glob (Depends-on): Likewise.
17792         * modules/grantpt (Depends-on): Likewise.
17793         * modules/iconv_open (Depends-on): Likewise.
17794         * modules/iconv_open-utf (Depends-on): Likewise.
17795         * modules/inet_ntop (Depends-on): Likewise.
17796         * modules/inet_pton (Depends-on): Likewise.
17797         * modules/ioctl (Depends-on): Likewise.
17798         * modules/isapipe (Depends-on): Likewise.
17799         * modules/isfinite (Depends-on): Likewise.
17800         * modules/isinf (Depends-on): Likewise.
17801         * modules/lchown (Depends-on): Likewise.
17802         * modules/ldexpl (Depends-on): Likewise.
17803         * modules/link (Depends-on): Likewise.
17804         * modules/linkat (Depends-on): Likewise.
17805         * modules/listen (Depends-on): Likewise.
17806         * modules/logl (Depends-on): Likewise.
17807         * modules/lstat (Depends-on): Likewise.
17808         * modules/mbrlen (Depends-on): Likewise.
17809         * modules/mbrtowc (Depends-on): Likewise.
17810         * modules/mbsinit (Depends-on): Likewise.
17811         * modules/mbsnrtowcs (Depends-on): Likewise.
17812         * modules/mbsrtowcs (Depends-on): Likewise.
17813         * modules/mbtowc (Depends-on): Likewise.
17814         * modules/memcmp (Depends-on): Likewise.
17815         * modules/mkdir (Depends-on): Likewise.
17816         * modules/mkdtemp (Depends-on): Likewise.
17817         * modules/mkfifo (Depends-on): Likewise.
17818         * modules/mkfifoat (Depends-on): Likewise.
17819         * modules/mknod (Depends-on): Likewise.
17820         * modules/mkostemp (Depends-on): Likewise.
17821         * modules/mkostemps (Depends-on): Likewise.
17822         * modules/mkstemp (Depends-on): Likewise.
17823         * modules/mkstemps (Depends-on): Likewise.
17824         * modules/mktime (Depends-on): Likewise.
17825         * modules/nanosleep (Depends-on): Likewise.
17826         * modules/open (Depends-on): Likewise.
17827         * modules/openat (Depends-on): Likewise.
17828         * modules/perror (Depends-on): Likewise.
17829         * modules/poll (Depends-on): Likewise.
17830         * modules/popen (Depends-on): Likewise.
17831         * modules/posix_spawn (Depends-on): Likewise.
17832         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17833         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17834         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17835         * modules/posix_spawnp (Depends-on): Likewise.
17836         * modules/pread (Depends-on): Likewise.
17837         * modules/printf-posix (Depends-on): Likewise.
17838         * modules/ptsname (Depends-on): Likewise.
17839         * modules/putenv (Depends-on): Likewise.
17840         * modules/pwrite (Depends-on): Likewise.
17841         * modules/readline (Depends-on): Likewise.
17842         * modules/readlink (Depends-on): Likewise.
17843         * modules/readlinkat (Depends-on): Likewise.
17844         * modules/recv (Depends-on): Likewise.
17845         * modules/recvfrom (Depends-on): Likewise.
17846         * modules/regex (Depends-on): Likewise.
17847         * modules/remove (Depends-on): Likewise.
17848         * modules/rename (Depends-on): Likewise.
17849         * modules/renameat (Depends-on): Likewise.
17850         * modules/rmdir (Depends-on): Likewise.
17851         * modules/round (Depends-on): Likewise.
17852         * modules/roundf (Depends-on): Likewise.
17853         * modules/roundl (Depends-on): Likewise.
17854         * modules/rpmatch (Depends-on): Likewise.
17855         * modules/select (Depends-on): Likewise.
17856         * modules/send (Depends-on): Likewise.
17857         * modules/sendto (Depends-on): Likewise.
17858         * modules/setenv (Depends-on): Likewise.
17859         * modules/setlocale (Depends-on): Likewise.
17860         * modules/setsockopt (Depends-on): Likewise.
17861         * modules/shutdown (Depends-on): Likewise.
17862         * modules/sigaction (Depends-on): Likewise.
17863         * modules/signbit (Depends-on): Likewise.
17864         * modules/sigprocmask (Depends-on): Likewise.
17865         * modules/sinl (Depends-on): Likewise.
17866         * modules/sleep (Depends-on): Likewise.
17867         * modules/snprintf (Depends-on): Likewise.
17868         * modules/snprintf-posix (Depends-on): Likewise.
17869         * modules/socket (Depends-on): Likewise.
17870         * modules/sprintf-posix (Depends-on): Likewise.
17871         * modules/sqrtl (Depends-on): Likewise.
17872         * modules/stat (Depends-on): Likewise.
17873         * modules/strchrnul (Depends-on): Likewise.
17874         * modules/strdup-posix (Depends-on): Likewise.
17875         * modules/strerror (Depends-on): Likewise.
17876         * modules/strerror_r-posix (Depends-on): Likewise.
17877         * modules/strndup (Depends-on): Likewise.
17878         * modules/strnlen (Depends-on): Likewise.
17879         * modules/strptime (Depends-on): Likewise.
17880         * modules/strsep (Depends-on): Likewise.
17881         * modules/strsignal (Depends-on): Likewise.
17882         * modules/strstr-simple (Depends-on): Likewise.
17883         * modules/strtod (Depends-on): Likewise.
17884         * modules/strtoimax (Depends-on): Likewise.
17885         * modules/strtok_r (Depends-on): Likewise.
17886         * modules/strtoumax (Depends-on): Likewise.
17887         * modules/symlink (Depends-on): Likewise.
17888         * modules/symlinkat (Depends-on): Likewise.
17889         * modules/tanl (Depends-on): Likewise.
17890         * modules/tcgetsid (Depends-on): Likewise.
17891         * modules/tmpfile (Depends-on): Likewise.
17892         * modules/trunc (Depends-on): Likewise.
17893         * modules/truncf (Depends-on): Likewise.
17894         * modules/truncl (Depends-on): Likewise.
17895         * modules/uname (Depends-on): Likewise.
17896         * modules/unlink (Depends-on): Likewise.
17897         * modules/unlockpt (Depends-on): Likewise.
17898         * modules/unsetenv (Depends-on): Likewise.
17899         * modules/usleep (Depends-on): Likewise.
17900         * modules/utimensat (Depends-on): Likewise.
17901         * modules/vasprintf (Depends-on): Likewise.
17902         * modules/vdprintf (Depends-on): Likewise.
17903         * modules/vdprintf-posix (Depends-on): Likewise.
17904         * modules/vfprintf-posix (Depends-on): Likewise.
17905         * modules/vprintf-posix (Depends-on): Likewise.
17906         * modules/vsnprintf (Depends-on): Likewise.
17907         * modules/vsnprintf-posix (Depends-on): Likewise.
17908         * modules/vsprintf-posix (Depends-on): Likewise.
17909         * modules/wcrtomb (Depends-on): Likewise.
17910         * modules/wcscasecmp (Depends-on): Likewise.
17911         * modules/wcscspn (Depends-on): Likewise.
17912         * modules/wcsdup (Depends-on): Likewise.
17913         * modules/wcsncasecmp (Depends-on): Likewise.
17914         * modules/wcsnrtombs (Depends-on): Likewise.
17915         * modules/wcspbrk (Depends-on): Likewise.
17916         * modules/wcsrtombs (Depends-on): Likewise.
17917         * modules/wcsspn (Depends-on): Likewise.
17918         * modules/wcsstr (Depends-on): Likewise.
17919         * modules/wcstok (Depends-on): Likewise.
17920         * modules/wcswidth (Depends-on): Likewise.
17921         * modules/wctob (Depends-on): Likewise.
17922         * modules/wctomb (Depends-on): Likewise.
17923         * modules/wctype (Depends-on): Likewise.
17924         * modules/wcwidth (Depends-on): Likewise.
17925         * modules/write (Depends-on): Likewise.
17926
17927 2011-05-03  Bruno Haible  <bruno@clisp.org>
17928
17929         Support for conditional dependencies.
17930         * doc/gnulib.texi (Module description): Document the syntax of
17931         conditional dependencies.
17932         * gnulib-tool: New option --conditional-dependencies.
17933         (func_usage): Document it.
17934         (cond_dependencies): New variable.
17935         (func_get_automake_snippet_conditional,
17936         func_get_automake_snippet_unconditional): New functions, extracted from
17937         func_get_automake_snippet.
17938         (func_get_automake_snippet): Use them.
17939         (sed_first_32_chars): New variable.
17940         (func_module_shellfunc_name): New function.
17941         (func_module_shellvar_name): New function.
17942         (func_module_conditional_name): New function.
17943         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17944         func_cond_module_condition): New functions.
17945         (func_modules_transitive_closure): Add support for conditional
17946         dependencies.
17947         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17948         conditional automake snippet in an automake conditional.
17949         (func_emit_autoconf_snippets): Emit shell functions that contain the
17950         code for conditional modules.
17951         (func_import, func_create_testdir): Update specification.
17952
17953 2011-05-03  Eric Blake  <eblake@redhat.com>
17954
17955         test-getaddrinfo: report error information
17956         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17957
17958 2011-05-03  Jim Meyering  <meyering@redhat.com>
17959
17960         bootstrap: avoid build failure when $GZIP is set
17961         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17962         program name.  If defined at all, it is supposed to list gzip options.
17963         Reported by Alan Curry in http://debbugs.gnu.org/8609
17964
17965 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17966
17967         readme-release: new module with release instructions
17968         * modules/readme-release: New module.
17969         * top/README-release: New file, from coreutils, grep, diffutils.
17970         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17971
17972 2011-05-02  Eric Blake  <eblake@redhat.com>
17973
17974         fflush: also replace fclose when fixing fflush
17975         * modules/fflush (Depends-on): Add fclose.
17976         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17977         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17978         memstreams with no backing fd.
17979         * doc/posix-functions/fclose.texi (fclose): Document the use of
17980         fflush module to fix the bug.
17981         * tests/test-fclose.c (main): Relax test when fclose is used in
17982         isolation.
17983
17984         fclose: add some tests
17985         * modules/fclose-tests: New test module.
17986         * tests/test-fclose.c: New file.
17987         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17988
17989         fclose: reduced dependencies
17990         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17991         simpler lseek.
17992         * lib/fclose.c (rpl_fclose): Likewise.
17993         Reported by Simon Josefsson.
17994
17995         exit: drop remaining clients
17996         * modules/argmatch (Depends-on): Replace exit with stdlib.
17997         * modules/copy-file (Depends-on): Likewise.
17998         * modules/execute (Depends-on): Likewise.
17999         * modules/exitfail (Depends-on): Likewise.
18000         * modules/obstack (Depends-on): Likewise.
18001         * modules/pagealign_alloc (Depends-on): Likewise.
18002         * modules/pipe-filter-gi (Depends-on): Likewise.
18003         * modules/pipe-filter-ii (Depends-on): Likewise.
18004         * modules/savewd (Depends-on): Likewise.
18005         * modules/spawn-pipe (Depends-on): Likewise.
18006         * modules/wait-process (Depends-on): Likewise.
18007         * modules/xsetenv (Depends-on): Likewise.
18008         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
18009         * modules/git-merge-changelog (Depends-on): Likewise.
18010         * modules/long-options (Depends-on): Likewise.
18011         * modules/pt_chown (Depends-on): Likewise.
18012         * modules/sysexits (Depends-on): Likewise.
18013
18014         freading: relax license from LGPLv3+ to LGPLv2+
18015         * modules/freading (License): Relax LGPL version.
18016
18017 2011-05-02  Bruno Haible  <bruno@clisp.org>
18018
18019         fchdir: Remove unused dependencies.
18020         * modules/fchdir (Depends-on): Remove include_next.
18021
18022 2011-05-02  Bruno Haible  <bruno@clisp.org>
18023
18024         gnulib-tool: Refactor.
18025         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
18026         from func_emit_autoconf_snippets.
18027         (func_emit_autoconf_snippets): Use it.
18028
18029 2011-05-02  Simon Josefsson  <simon@josefsson.org>
18030
18031         * NEWS: Document removal of 'exit'.
18032         * modules/exit: Remove file.
18033
18034 2011-05-01  Bruno Haible  <bruno@clisp.org>
18035
18036         Update DEPENDENCIES.
18037         * DEPENDENCIES (gettext): Recommend the newest release.
18038         Reported by Simon Josefsson.
18039
18040 2011-05-01  Bruno Haible  <bruno@clisp.org>
18041
18042         gnulib-tool: Reduce code duplication.
18043         * gnulib-tool (func_emit_autoconf_snippets): New function.
18044         (func_import, func_create_testdir): Use it.
18045
18046 2011-04-30  Eric Blake  <eblake@redhat.com>
18047
18048         fclose: don't fail on non-seekable input stream
18049         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18050         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18051         since fflush is allowed to fail in that case.
18052
18053 2011-04-30  Bruno Haible  <bruno@clisp.org>
18054
18055         dup3: cleanup
18056         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18057
18058 2011-04-30  Bruno Haible  <bruno@clisp.org>
18059
18060         netdb: Make it work in C++ mode.
18061         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18062         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18063         module.
18064         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18065         gl_MODULE_INDICATOR_FOR_TESTS.
18066         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18067         * modules/netdb-c++-tests: New file.
18068         * tests/test-netdb-c++.cc: New file.
18069
18070 2011-04-30  Bruno Haible  <bruno@clisp.org>
18071
18072         New modules 'vfscanf', 'vscanf'.
18073         * modules/vfscanf: New file.
18074         * modules/vscanf: New file.
18075         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18076         here.
18077         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18078         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18079
18080 2011-04-30  Bruno Haible  <bruno@clisp.org>
18081
18082         passfd: Add comments.
18083         * lib/passfd.c: Add comments about platforms.
18084
18085 2011-04-30  Bruno Haible  <bruno@clisp.org>
18086
18087         sys_uio: Make <sys/uio.h> self-contained.
18088         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18089         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18090
18091 2011-04-30  Bruno Haible  <bruno@clisp.org>
18092
18093         sys_socket: Ensure 'struct iovec' definition.
18094         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18095         <sys/socket.h>.
18096         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18097
18098 2011-04-30  Bruno Haible  <bruno@clisp.org>
18099
18100         sys_uio: Protect definition of 'struct iovec'.
18101         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18102         it as a C struct.
18103
18104 2011-04-30  Bruno Haible  <bruno@clisp.org>
18105
18106         manywarnings: fix indentation
18107         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18108
18109 2011-04-30  Pádraig Brady <P@draigBrady.com>
18110
18111         manywarnings: add -Wno-missing-field-initializers if needed.
18112         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18113         option if it's needed to allow initialization with { 0, }
18114
18115 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18116
18117         announce-gen: cosmetic improvement
18118         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18119
18120 2011-04-29  Jim Meyering  <meyering@redhat.com>
18121
18122         vc-list-files: indent with spaces, not TABs
18123         * build-aux/vc-list-files: Convert leading TABs to spaces,
18124         to match the style of most other files in gnulib.
18125
18126         announce-gen: indent with spaces, not TABs
18127         * build-aux/announce-gen: Convert all TABs to spaces, to match
18128         the style of most other files in gnulib.
18129
18130 2011-04-29  Eric Blake  <eblake@redhat.com>
18131
18132         quotearg: avoid uninitialized variable use
18133         * lib/quotearg.c (quoting_options_from_style): Initialize
18134         remaining fields, and ensure that custom styles are only used via
18135         quoting_options rather than quoting_style.
18136
18137 2011-04-29  Jim Meyering  <meyering@redhat.com>
18138
18139         maint.mk: remove unused VC-tag variable
18140         * top/maint.mk (VC-tag): Remove unused variable.
18141
18142 2011-04-29  Bruno Haible  <bruno@clisp.org>
18143
18144         netdb: fix gai_strerror replacements
18145         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18146         * modules/netdb: Substitute it.
18147
18148 2011-04-29  Jim Meyering  <meyering@redhat.com>
18149
18150         test-getcwd.c: avoid new set-but-not-used warning
18151         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18152         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18153         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18154         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18155
18156         test-hash.c: avoid a new shadowing warning
18157         * tests/test-hash.c (main): Don't shadow "dup".
18158
18159 2011-04-28  Eric Blake  <eblake@redhat.com>
18160
18161         getaddrinfo: fix gai_strerror signature
18162         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18163         and work around mingw with UNICODE defined.
18164         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18165         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18166         * modules/netdb (Makefile.am): Substitute it.
18167         * lib/netdb.in.h (gai_strerror): Declare replacement.
18168         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18169         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18170         the fix.
18171
18172         getsockopt: avoid compiler warning
18173         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18174         Reported by Matthias Bolte.
18175
18176         tests: drop unused link dependency
18177         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18178         * modules/dirent-safer-tests (Makefile.am): Likewise.
18179         * modules/fdopendir-tests (Makefile.am): Likewise.
18180         * modules/mkfifoat-tests (Makefile.am): Likewise.
18181         * modules/openat-safer-tests (Makefile.am): Likewise.
18182         * modules/openat-tests (Makefile.am): Likewise.
18183         * modules/readlinkat-tests (Makefile.am): Likewise.
18184         * modules/symlinkat-tests (Makefile.am): Likewise.
18185         * modules/linkat-tests (Makefile.am): Likewise.
18186         (Depends-on): Switch to filenamecat-lgpl.
18187         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18188         LIBINTL.
18189         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18190         * tests/test-linkat.c (main): Don't require xalloc.
18191
18192         hash, mgetgroups: drop xalloc dependency
18193         * lib/hash.c (includes): Adjust includes.
18194         * lib/mgetgroups.c (includes): Likewise.
18195         (xgetgroups): Move...
18196         * lib/xgetgroups.c: ...to new file.
18197         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18198         * modules/xgetgroups: New file, split from...
18199         * modules/mgetgroups: ...here.
18200         (Depends-on): Add xalloc-oversized.
18201         * modules/hash (Depends-on): Likewise.
18202         * modules/hash-tests (Depends-on): Drop xalloc.
18203         (test_hash_LDADD): Drop unused library.
18204         * tests/test-hash.c (main): Break xalloc dependency.
18205         (includes): Drop unused include.
18206
18207         xalloc-oversized: new module
18208         * modules/xalloc-oversized: New module.
18209         * modules/xalloc (Depends-on): Add it.
18210         * lib/xalloc.h (xalloc_oversized): Move...
18211         * lib/xalloc-oversized.h: ...into new file.
18212
18213         utimecmp: drop dependency on xmalloc
18214         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18215         due to memory pressure.
18216         * modules/utimecmp (Depends-on): Drop xalloc.
18217
18218 2011-04-27  Eric Blake  <eblake@redhat.com>
18219
18220         getcwd: fix mingw bugs
18221         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18222         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18223         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18224
18225 2011-04-27  Bruno Haible  <bruno@clisp.org>
18226
18227         mkstemps: Ensure declaration on MacOS X 10.5.
18228         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18229         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18230         MacOS X.
18231
18232 2011-04-27  Bruno Haible  <bruno@clisp.org>
18233
18234         mkstemp: More documentation.
18235         * doc/posix-functions/mkstemp.texi: Document header file problem on
18236         MacOS X.
18237
18238 2011-04-27  Bruno Haible  <bruno@clisp.org>
18239
18240         mkstemp: Tweak configure message when cross-compiling.
18241         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18242         result as a guess.
18243
18244 2011-04-27  Bruno Haible  <bruno@clisp.org>
18245
18246         clean-temp: Clarify what it does.
18247         * lib/clean-temp.h: Add more comments.
18248         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18249         module.
18250         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18251         * doc/glibc-functions/mkstemps.texi: Likewise.
18252         * doc/glibc-functions/mkostemps.texi: Likewise.
18253
18254 2011-04-27  Eric Blake  <eblake@redhat.com>
18255
18256         fchdir: avoid extra chdir and fix test
18257         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18258         getcwd-lgpl.
18259         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18260         have to be canonical.
18261         (canonicalize_file_name): Drop unused macro.
18262         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18263
18264         filenamecat-lgpl: fix licence
18265         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18266         when it was first created.
18267
18268         linkat, renameat: add missing dependency
18269         * modules/linkat (Depends-on): Require getcwd-lgpl.
18270         * modules/renameat (Depends-on): Likewise.
18271
18272         tests: reduce dependencies
18273         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18274         * tests/test-renameat.c (main): Likewise.
18275         * modules/linkat-tests (Depends-on): Relax dependency.
18276         * modules/renameat-tests (Depends-on): Likewise.
18277         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18278         dependency explicit.
18279
18280         save-cwd: reduce default dependency
18281         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18282         * lib/save-cwd.c: Update comments.
18283         * NEWS: Document the semantic change.
18284
18285         getcwd: enhance tests
18286         * tests/test-getcwd-lgpl.c: New file, taken from...
18287         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18288         repeat long path stress tests from m4 probe.
18289         * modules/getcwd-lgpl-tests: New module.
18290         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
18291         * m4/getcwd-abort-bug.m4: Update comment.
18292         * m4/getcwd-path-max.m4: Likewise.
18293
18294         getcwd-lgpl: new module
18295         * modules/getcwd-lgpl: New module.
18296         * lib/getcwd-lgpl.c: New file.
18297         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18298         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18299         * modules/getcwd (configure.ac): Set C witness.
18300         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18301
18302         getcwd: tweak comments
18303         * m4/getcwd-abort-bug.m4: Fix comments.
18304         * m4/getcwd-path-max.m4: Likewise.
18305         * m4/getcwd.m4: Likewise.
18306
18307 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18308         and Eric Blake  <eblake@redhat.com>
18309
18310         mkstemp: replace if system version uses wrong permissions
18311         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18312         read/write mode bits set in file created by mkstemp.
18313         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18314
18315 2011-04-27  Eric Blake  <eblake@redhat.com>
18316
18317         passfd: avoid compiler warning
18318         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18319         Reported by Laine Stump.
18320
18321 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18322
18323         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18324         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18325
18326 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18327         and Eric Blake  <eblake@redhat.com>
18328
18329         mkstemp: mention clean-temp module
18330         * lib/mkstemp.c: Add comment.
18331         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18332
18333 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18334
18335         inttypes: also provide default values for 32-bit tests
18336         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18337         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18338
18339 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18340
18341         strtoumax: remove dependency on strtoimax
18342         This is like the strtoull change of yesterday.
18343         * modules/strtoumax (Files): Add lib/strtoimax.c.
18344         (Depends-on): Remove strtoimax and add verify.
18345
18346         inttypes-incomplete: new module
18347         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18348         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18349         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18350         of gl_INTTYPES_H.
18351         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18352         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18353         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18354         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18355         * modules/strtoumax, modules/xstrtol (Depends-on):
18356         Depend on inttypes-incomplete, not inttypes.
18357         * modules/inttypes-incomplete: New module, containing the contents
18358         of the old modules/inttypes module, except that the Files: section
18359         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18360         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18361         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18362         (Depends-on): Depend only on inttypes-incomplete.
18363         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
18364
18365         inttypes: omit now-redundant strtoimax and strtoumax work
18366         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
18367         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
18368
18369         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
18370         This supports apps that need pointers to strtoimax and strtoumax,
18371         and ports to HP-UX 11.00 64.bit, which has macros that expand to
18372         nonexistent functions.  See
18373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
18374         et seq.
18375         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
18376         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
18377         a macro.
18378         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18379
18380 2011-04-25  Simon Josefsson  <simon@josefsson.org>
18381
18382         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
18383
18384 2011-04-25  Bruno Haible  <bruno@clisp.org>
18385
18386         strtol, strtoul: Mark modules as obsolete.
18387         * modules/strtol (Status, Notice): New sections.
18388         * modules/strtoul (Status, Notice): New sections.
18389
18390 2011-04-25  Bruno Haible  <bruno@clisp.org>
18391
18392         strtod: Remove check for strtod, unless supporting old platforms.
18393         * modules/strtod-obsolete: New file.
18394         * m4/strtod-obsolete.m4: New file.
18395         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
18396         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
18397         * modules/strtod (Depends-on): Add strtod-obsolete.
18398         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
18399
18400 2011-04-25  Bruno Haible  <bruno@clisp.org>
18401
18402         strcase: Make module obsolete.
18403         * modules/strcase (Status, Notice): New sections.
18404
18405 2011-04-25  Bruno Haible  <bruno@clisp.org>
18406
18407         dup2: Remove check for dup2, unless supporting old obsolete platforms.
18408         * modules/dup2-obsolete: New file.
18409         * m4/dup2-obsolete.m4: New file.
18410         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
18411         gl_FUNC_DUP2_OBSOLETE is not also defined.
18412         * modules/dup2 (Depends-on): Add dup2-obsolete.
18413         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
18414
18415 2011-04-25  Bruno Haible  <bruno@clisp.org>
18416
18417         strnlen: Avoid memchr related link error on old obsolete platforms.
18418         * modules/memchr-obsolete: New file.
18419         * m4/memchr-obsolete.m4: New file.
18420         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18421         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18422         * modules/memchr (Depends-on): Add memchr-obsolete.
18423         * modules/strnlen (Depends-on): Likewise.
18424         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18425
18426 2011-04-25  Jim Meyering  <meyering@redhat.com>
18427
18428         maint.mk: makefile_at_at_check extend and clean up
18429         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18430         in addition to */Makefile.am.
18431         Exempt legitimate uses of @VAR@ notation, e.g.,
18432         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18433         Remove obsolete coreutils-specific comment.
18434         Prompted by discussion here:
18435         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18436
18437 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18438
18439         strtoul: remove dependency on strtol
18440         This is so that 'configure' need not check for strtol merely because
18441         the application needs strtoul.
18442         * modules/strtoul (Files): Add lib/strtol.c.
18443         (Depends-on): Remove strtol.
18444
18445         strtoull: remove dependency on strtoul
18446         This is like the strtoll change.
18447         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
18448         (Depends-on): Remove strtoul.
18449
18450         strtoll: remove dependency on strtol
18451         This is so that 'configure' need not check for strtol merely because
18452         the application needs strtoll.
18453         * modules/strtoll (Files): Add lib/strtol.c.
18454         (Depends-on): Remove strtol.
18455
18456 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18457
18458         inttypes: Move some configure check to module 'imaxdiv'.
18459         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
18460         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
18461         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18462
18463 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18464
18465         inttypes: Move some configure check to module 'imaxabs'.
18466         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18467         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18468         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18469
18470 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18471
18472         inttypes: Remove configure tests that are not needed since 2009-12-31.
18473         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
18474         gl_cv_header_working_inttypes_h.
18475
18476 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18477
18478         * modules/strnlen (Depends-on): Remove memchr.
18479         The strnlen implementation doesn't need the memchr module's fixes; see
18480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
18481
18482         strtol: remove dependency on wchar
18483         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
18484         * modules/strtol (Depends-on): Remove wchar.
18485
18486 2011-04-21  Eric Blake  <eblake@redhat.com>
18487
18488         passfd: fix test regression on Linux
18489         * modules/passfd-tests (configure.ac): Correct socketpair check.
18490
18491         passfd: speed up configure and drop unused code
18492         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
18493         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
18494         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
18495         Instead of probing at configure for unix_scm_rights_bsd44_way,
18496         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
18497         check to a struct member probe.
18498         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
18499         (sendfd, recvfd): Update preprocessor checks.
18500         * modules/passfd (Files): Reflect rename, and drop unused file.
18501         (Depends-on): Drop unused dependency.
18502
18503         passfd: allow compilation on mingw
18504         * modules/sys_socket (Depends-on): Add sys_uio.
18505         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
18506         iovec and a minimal struct msghdr.
18507         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
18508         * tests/test-sys_socket.c (main): Enhance test.
18509         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
18510         guaranteed to provide what we need.
18511         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
18512         * modules/passfd-tests (Depends-on): Add sys_wait.
18513         * tests/test-passfd.c (main): Skip test on mingw, for now.
18514         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
18515         partial 'struct msghdr' implementation.
18516
18517         sys_uio: new module
18518         * modules/sys_uio: New module.
18519         * modules/sys_uio-tests: Likewise.
18520         * lib/sys_uio.in.h: New file.
18521         * m4/sys_uio_h.m4: Likewise.
18522         * tests/test-sys_uio.c: Likewise.
18523         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18524         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18525
18526 2011-04-20  Jim Meyering  <meyering@redhat.com>
18527
18528         useless-if-before-free: avoid false-positive
18529         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18530         disjunct so that it too requires a terminating ";".  Without that,
18531         this script would identify as useless one statement from gcc that
18532         was not:
18533           if (aligned_ptr)
18534             free (((void **) aligned_ptr) [-1]);
18535
18536 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18537
18538         doc: update users.txt.
18539         * users.txt: Add barcode.
18540
18541 2011-04-19  Bruno Haible  <bruno@clisp.org>
18542
18543         ioctl: Remove link dependency on native Windows.
18544         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18545         (gl_close_fn, gl_ioctl_fn): New types.
18546         (struct fd_hook): Renamed from struct close_hook. Change type of
18547         private_close_fn field. Add private_ioctl_fn field.
18548         (close_hook_fn): Add parameter for primary close method.
18549         (execute_close_hooks, execute_all_close_hooks): Likewise.
18550         (ioctl_hook_fn): New type.
18551         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18552         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18553         argument.
18554         (unregister_fd_hook): Renamed from unregister_close_hook.
18555         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18556         Don't include <unistd.h>.
18557         (close): Remove undef.
18558         (anchor): Update.
18559         (execute_close_hooks): Add argument for primary close method.
18560         (execute_all_close_hooks): Likewise.
18561         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18562         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18563         argument. Allow each argument to be NULL.
18564         (unregister_fd_hook): Renamed from unregister_close_hook.
18565         * lib/close.c (rpl_close): Pass 'close' function pointer to
18566         execute_all_close_hooks.
18567         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18568         (primary_ioctl): New function.
18569         (ioctl): Don't call ioctlsocket here. Instead, call
18570         execute_all_ioctl_hooks.
18571         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18572         close method.
18573         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18574         (fd_sockets_hook): Renamed from close_sockets_hook.
18575         (gl_sockets_startup, gl_sockets_cleanup): Update.
18576         * modules/fd-hook: Renamed from modules/close-hook. Update.
18577         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18578         * modules/sockets (Depends-on): Likewise.
18579         * modules/ioctl (Depends-on): Add fd-hook.
18580         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18581         GNULIB_SOCKET.
18582
18583 2011-04-19  Bruno Haible  <bruno@clisp.org>
18584
18585         Move the support of O_NONBLOCK in open() to the 'open' module.
18586         * modules/nonblocking (Depends-on): Remove 'open'.
18587         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18588         gl_cv_have_open_O_NONBLOCK.
18589         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18590         O_NONBLOCK support.
18591         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18592
18593 2011-04-17  Bruno Haible  <bruno@clisp.org>
18594
18595         pipe2: Simplify code.
18596         * lib/pipe2.c (pipe2): Reduce code duplication.
18597
18598 2011-04-17  Bruno Haible  <bruno@clisp.org>
18599
18600         nonblocking: Add comment.
18601         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18602
18603 2011-04-17  Bruno Haible  <bruno@clisp.org>
18604
18605         nonblocking: Add tests for sockets.
18606         * tests/test-nonblocking-socket.sh: New file.
18607         * tests/test-nonblocking-socket-main.c: New file.
18608         * tests/test-nonblocking-socket-child.c: New file.
18609         * tests/test-nonblocking-socket.h: New file.
18610         * tests/socket-server.h: New file.
18611         * tests/socket-client.h: New file.
18612         * modules/nonblocking-socket-tests: New file.
18613         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18614
18615 2011-04-17  Bruno Haible  <bruno@clisp.org>
18616
18617         nonblocking: Add tests for pipes.
18618         * tests/test-nonblocking-pipe.sh: New file.
18619         * tests/test-nonblocking-pipe-main.c: New file.
18620         * tests/test-nonblocking-pipe-child.c: New file.
18621         * tests/test-nonblocking-pipe.h: New file.
18622         * tests/test-nonblocking-writer.h: New file.
18623         * tests/test-nonblocking-reader.h: New file.
18624         * tests/test-nonblocking-misc.h: New file.
18625         * modules/nonblocking-pipe-tests: New file.
18626         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18627
18628 2011-04-16  Bruno Haible  <bruno@clisp.org>
18629
18630         gettext: Clarify the needed programmer actions.
18631         * modules/gettext (Notice): New field.
18632         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18633
18634 2011-04-16  Bruno Haible  <bruno@clisp.org>
18635
18636         strchrnul: Tweak last commit.
18637         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18638         bug.
18639         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18640         as in _GL_FUNCDECL_SYS.
18641         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18642         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18643
18644 2011-04-15  Eric Blake  <eblake@redhat.com>
18645
18646         strchrnul: work around cygwin bug
18647         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18648         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18649         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18650         * modules/string (Makefile.am): Substitute it.
18651         * lib/string.in.h (strchrnul): Use it.
18652
18653 2011-04-15  Bruno Haible  <bruno@clisp.org>
18654
18655         Don't require lib/stdio-write.c when only module 'stdio' is used.
18656         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18657         invocation.
18658         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18659
18660 2011-04-14  Bruno Haible  <bruno@clisp.org>
18661
18662         Support non-blocking pipe I/O in read() on native Windows.
18663         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18664         (read): New declaration.
18665         * lib/read.c: New file.
18666         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18667         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18668         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18669         vscanf): New declarations.
18670         * lib/stdio-read.c: New file.
18671         * m4/read.m4: New file.
18672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18673         REPLACE_READ.
18674         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18675         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18676         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18677         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18678         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18679         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18680         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18681         * modules/read: New file.
18682         * modules/nonblocking (Files): Add lib/stdio-read.c.
18683         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18684         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18685         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18686         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18687         * modules/pread (Depends-on): Add read.
18688         * modules/safe-read (Depends-on): Likewise.
18689         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18690         gets, scanf, vfscanf, vscanf): Verify signatures.
18691         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18692         problem with non-blocking pipes.
18693         * doc/posix-functions/fgetc.texi: Likewise.
18694         * doc/posix-functions/fgets.texi: Likewise.
18695         * doc/posix-functions/fread.texi: Likewise.
18696         * doc/posix-functions/fscanf.texi: Likewise.
18697         * doc/posix-functions/getc.texi: Likewise.
18698         * doc/posix-functions/getchar.texi: Likewise.
18699         * doc/posix-functions/gets.texi: Likewise.
18700         * doc/posix-functions/scanf.texi: Likewise.
18701         * doc/posix-functions/vfscanf.texi: Likewise.
18702         * doc/posix-functions/vscanf.texi: Likewise.
18703
18704 2011-04-14  Bruno Haible  <bruno@clisp.org>
18705
18706         Support non-blocking pipe I/O in write() on native Windows.
18707         * lib/write.c (rpl_write): Split a write request that failed merely
18708         because the byte count was larger than the pipe buffer's size.
18709         * doc/posix-functions/write.texi: Mention the problem with large byte
18710         counts.
18711
18712 2011-04-14  Bruno Haible  <bruno@clisp.org>
18713
18714         wchar: Ensure that wchar_t gets defined on uClibc.
18715         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18716         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18717
18718 2011-04-13  Bruno Haible  <bruno@clisp.org>
18719
18720         safe-write, full-read: Avoid unnecessary compilation units.
18721         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18722         (Depends-on): Remove safe-read. Add ssize_t.
18723         * modules/full-read (Files): Add lib/full-write.c.
18724         (Depends-on): Add full-write.
18725
18726 2011-04-13  Bruno Haible  <bruno@clisp.org>
18727
18728         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18729         * modules/pwrite (Depends-on): Add 'write'.
18730
18731 2011-04-13  Bruno Haible  <bruno@clisp.org>
18732
18733         Support non-blocking pipe I/O in write() on native Windows.
18734         * lib/unistd.in.h (write): Enable replacement also if
18735         GNULIB_UNISTD_H_NONBLOCKING is 1.
18736         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18737         (rpl_write): When failing to write on a non-blocking pipe, change
18738         errno from ENOSPC to EAGAIN.
18739         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18740         putchar, puts, vfprintf, vprintf): Enable replacement also if
18741         GNULIB_STDIO_H_NONBLOCKING is 1.
18742         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18743         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18744         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18745         CALL_WITH_SIGPIPE_EMULATION.
18746         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18747         * m4/nonblocking.m4: New file.
18748         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18749         for non-blocking I/O support.
18750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18751         GNULIB_UNISTD_H_NONBLOCKING.
18752         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18753         required for non-blocking I/O support.
18754         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18755         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18756         lib/stdio-write.c, m4/asm-underscore.m4.
18757         (Depends-on): Add stdio, unistd.
18758         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18759         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18760         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18761         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18762         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18763         problem with non-blocking pipes.
18764         * doc/posix-functions/fputc.texi: Likewise.
18765         * doc/posix-functions/fputs.texi: Likewise.
18766         * doc/posix-functions/fwrite.texi: Likewise.
18767         * doc/posix-functions/printf.texi: Likewise.
18768         * doc/posix-functions/putc.texi: Likewise.
18769         * doc/posix-functions/putchar.texi: Likewise.
18770         * doc/posix-functions/puts.texi: Likewise.
18771         * doc/posix-functions/vfprintf.texi: Likewise.
18772         * doc/posix-functions/vprintf.texi: Likewise.
18773         * doc/posix-functions/write.texi: Likewise.
18774
18775 2011-04-10  Jim Meyering  <meyering@redhat.com>
18776
18777         maint.mk: prohibit doubled words
18778         Detect them also when they're separated by a newline.
18779         There are 3 ways to customize it:
18780           - disable the test on a per file basis, as usual with rules using
18781             $(VC_LIST_EXCEPT)
18782           - replace the default doubled-word-selecting regexp (affects all files)
18783           - ignore a particular file-vs-doubled-word match
18784         I nearly used that last one to ignore the "is is" match in
18785         coreutils' NEWS file, since the text was "ls -is is ..."
18786         To do that, I would have added this line to cfg.mk:
18787           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18788         but it would have ignored any "is is" match in NEWS.
18789         Low probability, but still...
18790         Instead, I changed the text, slightly:
18791           -  ls -is is now consistent with ls -lis in ignoring values returned
18792           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18793         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18794         (prohibit_doubled_word_): Define.
18795         (sc_prohibit_doubled_word): New rule.
18796         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18797
18798 2011-04-10  Jim Meyering  <meyering@redhat.com>
18799
18800         maint: fix doubled-word typo in comment
18801         * m4/gethostname.m4: s/is is/it is/
18802         * m4/getdomainname.m4: Likewise.
18803
18804 2011-04-10  Jim Meyering  <meyering@redhat.com>
18805
18806         maint: remove doubled word: s/it it/it/
18807         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18808
18809 2011-04-10  Jim Meyering  <meyering@redhat.com>
18810
18811         maint.mk: remove useless semicolon and backslash
18812         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18813         semicolon and backslash.
18814
18815 2011-04-10  Bruno Haible  <bruno@clisp.org>
18816
18817         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18818         * modules/stdint-tests (Depends-on): Add wchar.
18819
18820 2011-04-10  Jim Meyering  <meyering@redhat.com>
18821
18822         maint: remove doubled words in comments, e.g., s/a a/a/
18823         * lib/strptime.c (day_of_the_week): s/the the/the/
18824         * tests/test-chown.h (test_chown): s/a a/a/
18825
18826         test-chown.h: correct a cast
18827         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18828         when the destination is a stat.st_gid.
18829
18830 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18831
18832         getaddrinfo: Fix test for sa_len member.
18833         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18834         include <sys/types.h> before <sys/socket.h>.
18835
18836 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18837
18838         maint: change "can not" to "cannot"
18839         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18840         boundaries.
18841
18842 2011-04-09  Jim Meyering  <meyering@redhat.com>
18843
18844         maint: change "a a" to "a"
18845         * tests/test-lchown.h (test_lchown): s/a a/a/
18846
18847         maint.mk: prohibit \<the the\>
18848         * top/maint.mk (sc_prohibit_the_the): New rule.
18849
18850         maint: fix "the the" in comment
18851         * lib/count-one-bits.h: s/the the/the/
18852
18853         maint: change "can not" to "cannot"
18854         But do not change the occurrences in maintain.texi or in
18855         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18856         * doc/gnulib-tool.texi: s/can not/cannot/
18857         * doc/posix-functions/accept.texi (accept): Likewise.
18858         * doc/posix-functions/socket.texi (socket): Likewise.
18859         * lib/mbrtowc.c: Likewise.
18860
18861         maint.mk: prohibit use of "can not"
18862         * top/maint.mk (sc_prohibit_can_not): New rule.
18863         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18864
18865 2011-04-09  Bruno Haible  <bruno@clisp.org>
18866
18867         careadlinkat: Guard against misuse of careadlinkatcwd.
18868         * lib/careadlinkat.c: Include <stdlib.h>.
18869         (careadlinkatcwd): Check that the fd argument is as expected.
18870
18871 2011-04-09  Bruno Haible  <bruno@clisp.org>
18872
18873         careadlinkat: Use common coding style.
18874         * lib/careadlinkat.c: Move gnulib includes after system includes.
18875
18876 2011-04-09  Bruno Haible  <bruno@clisp.org>
18877
18878         careadlinkat: Clarify specification.
18879         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18880         (careadlinkatcwd): Add comment.
18881         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18882
18883 2011-04-09  Bruno Haible  <bruno@clisp.org>
18884
18885         areadlinkat: Avoid link error on many platforms.
18886         * modules/areadlinkat (Depends-on): Add areadlink.
18887
18888 2011-04-09  Bruno Haible  <bruno@clisp.org>
18889
18890         allocator, careadlinkat: Fix double-inclusion guard.
18891         * lib/allocator.h: Fix double-inclusion guard.
18892         * lib/careadlinkat.h: Likewise.
18893
18894 2011-04-09  Bruno Haible  <bruno@clisp.org>
18895
18896         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18897         * lib/relocwrapper.c: Update dependencies hierarchy.
18898         * build-aux/install-reloc: Update list of files to be compiled.
18899         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18900         lib/allocator.[hc].
18901
18902 2011-04-08  Eric Blake  <eblake@redhat.com>
18903
18904         strftime: silence gnulib-tool warning
18905         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18906
18907 2011-04-08  Bruno Haible  <bruno@clisp.org>
18908
18909         verify: Fix syntax error with GCC 4.6 in C++ mode.
18910         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18911         (HAVE_STATIC_ASSERT): New macro.
18912         (verify_true, verify): Use 'static_assert' if it is supported and
18913         '_Static_assert' is not supported.
18914
18915 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18916
18917         allocator: New module.
18918         * modules/allocator, lib/allocator.c: New files.
18919         * lib/allocator.h (stdlib_allocator): New decl.
18920         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18921         Remove.  Do not include <stdlib.h>.
18922         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18923         * modules/careadlinkat (Files): Remove lib/allocator.h.
18924         (Depends-on): Add allocator.
18925
18926         stdlib: let modules use system malloc, realloc
18927         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18928         if !_GL_USE_STDLIB_ALLOC.
18929         (malloc, realloc): Limit this change to a smaller scope.
18930
18931         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18932         (malloc, realloc): Don't #undef; no longer needed.
18933         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18934         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18935         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18936         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18937         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18938         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18939         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18940         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18941
18942         careadlinkat: rename members to avoid problem
18943         * lib/allocator.h (struct allocator): Rename members from
18944         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18945         and realloc are #define'd.  Reported by Eric Blake in
18946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18947         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18948
18949 2011-04-08  Eric Blake  <eblake@redhat.com>
18950
18951         nonblocking: reduce dependency
18952         * tests/test-nonblocking.c: Only test sockets when in use.
18953         * modules/nonblocking-tests (Depends-on): Drop socket.
18954         (Makefile.am): Link even if sockets are not present.
18955         * modules/pipe2-tests (Makefile.am): Likewise.
18956         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18957
18958         pipe2: fix O_NONBLOCK support on mingw
18959         * modules/pipe2 (Depends-on): Add nonblocking.
18960         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18961         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18962         * tests/test-nonblocking.c (main): Likewise.
18963         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18964
18965         fcntl-h: fix O_ACCMODE on cygwin
18966         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18967         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18968
18969         pipe-filter: drop O_NONBLOCK workarounds
18970         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18971         * modules/pipe-filter-ii (Depends-on): Likewise.
18972         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18973
18974         nonblocking: provide O_NONBLOCK for mingw
18975         * modules/nonblocking (Depends-on): Add open.
18976         (configure.ac): Set new witness macro.
18977         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18978         * modules/fcntl-h (Makefile.am): Substitute it.
18979         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18980         nonblocking module is in use.
18981         * lib/nonblocking.c: Adjust portability test.
18982         * lib/open.c (open): Don't let native open see gnulib flag.
18983         * tests/test-fcntl-h.c (main): Enhance test.
18984         * tests/test-open.h (test_open): Likewise.
18985         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18986
18987         careadlinkat: fix compilation error on mingw
18988         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18989         within struct allocator.
18990
18991 2011-04-06  Eric Blake  <eblake@redhat.com>
18992
18993         binary-io: relicense under LGPLv2+
18994         * modules/binary-io (License): Relax to LGPLv2+.
18995         Requested for libvirt, and required by pipe2.
18996
18997 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18998
18999         verify: use _Static_assert if available
19000         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
19001         (verify_true, verify): Use it if available.  This generates better
19002         diagnostics with GCC 4.6.0 and later.
19003
19004 2011-04-05  Bruno Haible  <bruno@clisp.org>
19005
19006         Remove leftover generated .h files after config.status changed.
19007
19008         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
19009         GL_GENERATE_ALLOCA_H.
19010         * modules/alloca-opt (Makefile.am): Remove alloca.h if
19011         GL_GENERATE_ALLOCA_H evaluates to false.
19012
19013         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
19014         GL_GENERATE_ARGZ_H.
19015         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
19016         evaluates to false.
19017
19018         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
19019         GL_GENERATE_BYTESWAP_H.
19020         * modules/byteswap (Makefile.am): Remove byteswap.h if
19021         GL_GENERATE_BYTESWAP_H evaluates to false.
19022
19023         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
19024         GL_GENERATE_ERRNO_H.
19025         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
19026         evaluates to false.
19027
19028         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
19029         GL_GENERATE_FLOAT_H.
19030         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
19031         evaluates to false.
19032
19033         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
19034         GL_GENERATE_FNMATCH_H.
19035         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19036         GL_GENERATE_FNMATCH_H evaluates to false.
19037
19038         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19039         GL_GENERATE_GLOB_H.
19040         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19041         evaluates to false.
19042
19043         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19044         automake conditional GL_GENERATE_ICONV_H.
19045         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19046         evaluates to false.
19047
19048         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19049         GL_GENERATE_NETINET_IN_H.
19050         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19051         GL_GENERATE_NETINET_IN_H evaluates to false.
19052
19053         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19054         conditional GL_GENERATE_PTHREAD_H.
19055         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19056         * modules/pthread (Makefile.am): Remove pthread.h if
19057         GL_GENERATE_PTHREAD_H evaluates to false.
19058
19059         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19060         GL_GENERATE_SCHED_H.
19061         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19062         evaluates to false.
19063
19064         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19065         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19066         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19067         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19068
19069         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19070         GL_GENERATE_STDARG_H.
19071         * modules/stdarg (Makefile.am): Remove stdarg.h if
19072         GL_GENERATE_STDARG_H evaluates to false.
19073
19074         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19075         GL_GENERATE_STDBOOL_H.
19076         * modules/stdbool (Makefile.am): Remove stdbool.h if
19077         GL_GENERATE_STDBOOL_H evaluates to false.
19078
19079         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19080         conditional GL_GENERATE_STDDEF_H.
19081         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19082         * modules/stddef (Makefile.am): Remove stddef.h if
19083         GL_GENERATE_STDDEF_H evaluates to false.
19084
19085         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19086         GL_GENERATE_STDINT_H.
19087         * modules/stdint (Makefile.am): Remove stdint.h if
19088         GL_GENERATE_STDINT_H evaluates to false.
19089
19090         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19091         GL_GENERATE_SYSEXITS_H.
19092         * modules/sysexits (Makefile.am): Remove sysexits.h if
19093         GL_GENERATE_SYSEXITS_H evaluates to false.
19094
19095         Reported by Karl Berry and Ralf Wildenhues.
19096
19097 2011-04-05  Bruno Haible  <bruno@clisp.org>
19098
19099         Ensure to rebuild generated .h files when config.status has changed.
19100         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19101         config.status.
19102         * modules/ctype (Makefile.am): Likewise.
19103         * modules/dirent (Makefile.am): Likewise.
19104         * modules/errno (Makefile.am): Likewise.
19105         * modules/fcntl-h (Makefile.am): Likewise.
19106         * modules/float (Makefile.am): Likewise.
19107         * modules/getopt-posix (Makefile.am): Likewise.
19108         * modules/glob (Makefile.am): Likewise.
19109         * modules/iconv-h (Makefile.am): Likewise.
19110         * modules/inttypes (Makefile.am): Likewise.
19111         * modules/langinfo (Makefile.am): Likewise.
19112         * modules/locale (Makefile.am): Likewise.
19113         * modules/math (Makefile.am): Likewise.
19114         * modules/netdb (Makefile.am): Likewise.
19115         * modules/netinet_in (Makefile.am): Likewise.
19116         * modules/poll-h (Makefile.am): Likewise.
19117         * modules/pthread (Makefile.am): Likewise.
19118         * modules/pty (Makefile.am): Likewise.
19119         * modules/sched (Makefile.am): Likewise.
19120         * modules/search (Makefile.am): Likewise.
19121         * modules/selinux-h (Makefile.am): Likewise.
19122         * modules/signal (Makefile.am): Likewise.
19123         * modules/spawn (Makefile.am): Likewise.
19124         * modules/stdarg (Makefile.am): Likewise.
19125         * modules/stdbool (Makefile.am): Likewise.
19126         * modules/stddef (Makefile.am): Likewise.
19127         * modules/stdint (Makefile.am): Likewise.
19128         * modules/stdio (Makefile.am): Likewise.
19129         * modules/stdlib (Makefile.am): Likewise.
19130         * modules/string (Makefile.am): Likewise.
19131         * modules/strings (Makefile.am): Likewise.
19132         * modules/sys_file (Makefile.am): Likewise.
19133         * modules/sys_ioctl (Makefile.am): Likewise.
19134         * modules/sys_select (Makefile.am): Likewise.
19135         * modules/sys_socket (Makefile.am): Likewise.
19136         * modules/sys_stat (Makefile.am): Likewise.
19137         * modules/sys_time (Makefile.am): Likewise.
19138         * modules/sys_times (Makefile.am): Likewise.
19139         * modules/sys_utsname (Makefile.am): Likewise.
19140         * modules/sys_wait (Makefile.am): Likewise.
19141         * modules/sysexits (Makefile.am): Likewise.
19142         * modules/termios (Makefile.am): Likewise.
19143         * modules/time (Makefile.am): Likewise.
19144         * modules/unistd (Makefile.am): Likewise.
19145         * modules/wchar (Makefile.am): Likewise.
19146         * modules/wctype-h (Makefile.am): Likewise.
19147         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19148
19149 2011-04-05  Bruno Haible  <bruno@clisp.org>
19150
19151         pipe2: Relicense under LGPLv2+.
19152         * modules/pipe2 (License): Change to LGPLv2+.
19153         Requested by Eric Blake, for libvirt.
19154
19155 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19156
19157         bootstrap: compute gnulib_extra_files after updating build_aux
19158         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19159         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19160
19161 2011-04-05  Eric Blake  <eblake@redhat.com>
19162
19163         bootstrap: preserve git whitelist item sorting
19164         * build-aux/bootstrap (sort_patterns): New function.
19165         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19166
19167 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19168
19169         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19170         sc_space_tab check.
19171
19172 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19173
19174         areadlink, areadlinkat: rewrite in terms of careadlinkat
19175         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19176         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19177         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19178         (malloc, realloc): Remove #undefs.
19179         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19180         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19181         readlink, ssize_t, stdint, unistd.
19182         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19183         areadlink, stdint.
19184
19185         careadlinkat: new module
19186         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19187         * modules/careadlinkat: New files, written by me with
19188         a review and feedback from Ben Pfaff in
19189         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19190
19191 2011-04-01  Bruno Haible  <bruno@clisp.org>
19192
19193         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19194         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19195         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19196         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19197         Reported by Bruce Korb <bruce.korb@gmail.com>.
19198
19199 2011-04-01  Bruno Haible  <bruno@clisp.org>
19200
19201         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19202         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19203         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19204         * modules/wcpcpy (Depends-on): Add extensions.
19205         * modules/wcpncpy (Depends-on): Likewise.
19206         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19207         systems.
19208         * doc/posix-functions/wcpncpy.texi: Likewise.
19209         * doc/posix-functions/wcwidth.texi: Likewise.
19210
19211 2011-03-31  Eric Blake  <eblake@redhat.com>
19212
19213         nonblocking: fix mingw test failures
19214         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19215         non-blocking flag on regular file.
19216         (get_nonblocking_flag): Set errno on invalid fd.
19217         * tests/test-nonblocking.c (main): Avoid test failure on
19218         directories if fchdir is not active.
19219         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19220
19221 2011-03-31  Bruno Haible  <bruno@clisp.org>
19222
19223         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19224         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19225         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19226         Reported by Simon Josefsson <simon@josefsson.org>.
19227
19228 2011-03-31  Bruno Haible  <bruno@clisp.org>
19229         and Eric Blake  <eblake@redhat.com>
19230
19231         nonblocking: new module
19232         * modules/nonblocking: New module.
19233         * modules/nonblocking-tests: Likewise.
19234         * lib/nonblocking.h: New file.
19235         * lib/nonblocking.c: Likewise.
19236         * tests/test-nonblocking.c: New test.
19237         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19238
19239 2011-03-30  Bruno Haible  <bruno@clisp.org>
19240
19241         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19242         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19243         instead of 'printf' format for GCC >= 4.4.
19244         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19245         (fprintf, printf, vfprintf, vprintf): Declare with
19246         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19247         the system's vfprintf() function.
19248         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19249
19250 2011-03-30  Eric Blake  <eblake@redhat.com>
19251
19252         passfd: fix scoping bug
19253         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19254         before sendmsg/recvmsg.
19255
19256         passfd: standardize coding conventions
19257         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19258         can be learned at compile time.
19259         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19260         ifdefs.
19261         (sendfd, recvfd): Follow gnulib code conventions.
19262
19263         passfd: fix incorrect sendmsg arguments
19264         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19265         incorrect msg_controllen value.
19266         * modules/passfd-tests (Depends-on): Check for alarm.
19267         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19268         Reported by Bastien ROUCARIES.
19269
19270 2011-03-30  Bruno Haible  <bruno@clisp.org>
19271
19272         c-strcasestr: Relicense under LGPLv2+.
19273         * modules/c-strcasestr (License): Change to LGPLv2+.
19274         Requested by Eric Blake, for libvirt.
19275
19276 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19277
19278         * users.txt: Add libidn2.  Fix libtasn1 link.
19279
19280 2011-03-30  Jim Meyering  <meyering@redhat.com>
19281
19282         tests: readlink* ("",... fails with EINVAL on newer kernels
19283         readlink and readlinkat have typically failed with ENOENT for
19284         the invalid, empty file name,  "".  However, with the advent
19285         of linux-2.6.39, they fail with EINVAL.
19286         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19287         when operating on the empty file name.
19288         * tests/test-readlink.h (test_readlink): Likewise.
19289
19290 2011-03-29  Bruno Haible  <bruno@clisp.org>
19291
19292         Relicense some modules under LGPLv2+, for libidn2.
19293         * modules/array-mergesort (License): Change to LGPLv2+.
19294         * modules/c-strcaseeq (License): Likewise.
19295         * modules/striconveh (License): Likewise.
19296         * modules/striconveha (License): Likewise.
19297         * modules/uniconv/base (License): Likewise.
19298         * modules/uniconv/u8-conv-from-enc (License): Likewise.
19299         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
19300         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19301         * modules/unictype/base (License): Likewise.
19302         * modules/unictype/bidiclass-of (License): Likewise.
19303         * modules/unictype/category-M (License): Likewise.
19304         * modules/unictype/category-none (License): Likewise.
19305         * modules/unictype/category-of (License): Likewise.
19306         * modules/unictype/category-test (License): Likewise.
19307         * modules/unictype/category-test-withtable (License): Likewise.
19308         * modules/unictype/combining-class (License): Likewise.
19309         * modules/unictype/joiningtype-of (License): Likewise.
19310         * modules/unictype/scripts (License): Likewise.
19311         * modules/uninorm/base (License): Likewise.
19312         * modules/uninorm/canonical-decomposition (License): Likewise.
19313         * modules/uninorm/composition (License): Likewise.
19314         * modules/uninorm/decompose-internal (License): Likewise.
19315         * modules/uninorm/decomposition-table (License): Likewise.
19316         * modules/uninorm/nfc (License): Likewise.
19317         * modules/uninorm/nfd (License): Likewise.
19318         * modules/uninorm/u32-normalize (License): Likewise.
19319         * modules/unistr/base (License): Likewise.
19320         * modules/unistr/u32-cpy (License): Likewise.
19321         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19322         * modules/unistr/u32-to-u8 (License): Likewise.
19323         * modules/unistr/u32-uctomb (License): Likewise.
19324         * modules/unistr/u8-check (License): Likewise.
19325         * modules/unistr/u8-mblen (License): Likewise.
19326         * modules/unistr/u8-mbtouc (License): Likewise.
19327         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19328         * modules/unistr/u8-mbtoucr (License): Likewise.
19329         * modules/unistr/u8-prev (License): Likewise.
19330         * modules/unistr/u8-strlen (License): Likewise.
19331         * modules/unistr/u8-to-u32 (License): Likewise.
19332         * modules/unistr/u8-uctomb (License): Likewise.
19333         * modules/unitypes (License): Likewise.
19334         Requested by Simon Josefsson.
19335
19336 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19337
19338         lib-symbol-visibility: Add a notice.
19339         * modules/lib-symbol-visibility (Notice): New field.
19340
19341 2011-03-29  Bruno Haible  <bruno@clisp.org>
19342
19343         getaddrinfo: Doc fix.
19344         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19345         section "fixed in Gnulib".
19346
19347 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19348
19349         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19350         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19351
19352 2011-03-26  Bruno Haible  <bruno@clisp.org>
19353
19354         unictype/property-byname: Reduce the number of load-time relocations.
19355         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19356         (UC_PROPERTY_INDEX_*): New enumeration values.
19357         (uc_property_byname): Convert an index from the lookup table to an
19358         uc_property_t.
19359         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19360         values.
19361
19362 2011-03-26  Bruno Haible  <bruno@clisp.org>
19363
19364         unictype/property-byname: Allow omitted word separators and aliases.
19365         * lib/unictype/pr_byname.gperf: Add property names without word
19366         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
19367         for 'space'.
19368
19369 2011-03-26  Bruno Haible  <bruno@clisp.org>
19370
19371         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
19372         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
19373         also hyphens to space.
19374         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
19375         without spaces.
19376         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
19377
19378 2011-03-26  Bruno Haible  <bruno@clisp.org>
19379
19380         unictype/joiningtype-byname: Recognize long names as well.
19381         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
19382         a long name.
19383         * lib/unictype/joiningtype_byname.c: Include <string.h>,
19384         unictype/joiningtype_byname.h.
19385         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
19386         * lib/unictype/joiningtype_byname.gperf: New file.
19387         * modules/unictype/joiningtype-byname (Files): Add
19388         lib/unictype/joiningtype_byname.gperf.
19389         (Depends-on): Add gperf.
19390         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
19391         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
19392         long names.
19393
19394         Tests for module 'unictype/joiningtype-longname'.
19395         * modules/unictype/joiningtype-longname-tests: New file.
19396         * tests/unictype/test-joiningtype_longname.c: New file.
19397
19398         New module 'unictype/joiningtype-longname'.
19399         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
19400         * lib/unictype/joiningtype_longname.c: New file.
19401         * modules/unictype/joiningtype-longname: New file.
19402         * modules/unictype/joiningtype-all (Depends-on): Add
19403         unictype/joiningtype-longname.
19404
19405 2011-03-26  Bruno Haible  <bruno@clisp.org>
19406
19407         unictype/bidiclass-byname: Recognize long names as well.
19408         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
19409         name.
19410         * lib/unictype/bidi_byname.c: Include <string.h>,
19411         unictype/bidi_byname.h.
19412         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
19413         * lib/unictype/bidi_byname.gperf: New file.
19414         * modules/unictype/bidiclass-byname (Files): Add
19415         lib/unictype/bidi_byname.gperf.
19416         (Depends-on): Add gperf.
19417         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
19418         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
19419         long names.
19420
19421         Tests for module 'unictype/bidiclass-longname'.
19422         * modules/unictype/bidiclass-longname-tests: New file.
19423         * tests/unictype/test-bidi_longname.c: New file.
19424
19425         New module 'unictype/bidiclass-longname'.
19426         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19427         * lib/unictype/bidi_longname.c: New file.
19428         * modules/unictype/bidiclass-longname: New file.
19429         * modules/unictype/bidiclass-all (Depends-on): Add
19430         unictype/bidiclass-longname.
19431
19432 2011-03-26  Bruno Haible  <bruno@clisp.org>
19433
19434         unictype/bidi*: Rename modules.
19435         * modules/unictype/bidiclass-all: Renamed from
19436         modules/unictype/bidicategory-all.
19437         * modules/unictype/bidiclass-name: Renamed from
19438         modules/unictype/bidiclass-name.
19439         (Description): Update.
19440         * modules/unictype/bidiclass-name-tests: Renamed from
19441         modules/unictype/bidicategory-name-tests.
19442         * modules/unictype/bidiclass-byname: Renamed from
19443         modules/unictype/bidicategory-byname.
19444         (Description): Update.
19445         * modules/unictype/bidiclass-byname-tests: Renamed from
19446         modules/unictype/bidicategory-byname-tests.
19447         * modules/unictype/bidiclass-of: Renamed from
19448         modules/unictype/bidicategory-of.
19449         (Description): Update.
19450         * modules/unictype/bidiclass-of-tests: Renamed from
19451         modules/unictype/bidicategory-of-tests.
19452         * modules/unictype/bidiclass-test: Renamed from
19453         modules/unictype/bidicategory-test.
19454         (Description): Update.
19455         * modules/unictype/bidiclass-test-tests: Renamed from
19456         modules/unictype/bidicategory-test-tests.
19457         * modules/unictype/bidicategory-all: New file, a simple redirection.
19458         * modules/unictype/bidicategory-name: Likewise.
19459         * modules/unictype/bidicategory-byname: Likewise.
19460         * modules/unictype/bidicategory-of: Likewise.
19461         * modules/unictype/bidicategory-test: Likewise.
19462         * modules/unictype/property-bidi-* (Dependencies): Update.
19463         * lib/unictype/bidi_*.c: Update comment.
19464
19465 2011-03-26  Bruno Haible  <bruno@clisp.org>
19466
19467         unictype/bidi*: Rename functions, part 2.
19468         * modules/unictype/bidicategory-name (configure.ac): Update required
19469         libunistring version.
19470         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19471
19472 2011-03-25  Bruno Haible  <bruno@clisp.org>
19473
19474         New module 'unictype/combining-class-all'.
19475         * modules/unictype/combining-class-all: New file.
19476
19477         Tests for module 'unictype/combining-class-byname'.
19478         * modules/unictype/combining-class-byname-tests: New file.
19479         * tests/unictype/test-combiningclass_byname.c: New file.
19480
19481         New module 'unictype/combining-class-byname'.
19482         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19483         * lib/unictype/combiningclass_byname.c: New file.
19484         * lib/unictype/combiningclass_byname.gperf: New file.
19485         * modules/unictype/combining-class-byname: New file.
19486
19487         Tests for module 'unictype/combining-class-longname'.
19488         * modules/unictype/combining-class-longname-tests: New file.
19489         * tests/unictype/test-combiningclass_longname.c: New file.
19490
19491         New module 'unictype/combining-class-longname'.
19492         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
19493         * lib/unictype/combiningclass_longname.c: New file.
19494         * modules/unictype/combining-class-longname: New file.
19495
19496         Tests for module 'unictype/combining-class-name'.
19497         * modules/unictype/combining-class-name-tests: New file.
19498         * tests/unictype/test-combiningclass_name.c: New file.
19499
19500         New module 'unictype/combining-class-name'.
19501         * lib/unictype.in.h (uc_combining_class_name): New declaration.
19502         * lib/unictype/combiningclass_name.c: New file.
19503         * modules/unictype/combining-class-name: New file.
19504
19505 2011-03-25  Bruno Haible  <bruno@clisp.org>
19506
19507         unictype/combining-class: Rename source files.
19508         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
19509         of unictype/combining.h.
19510         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
19511         Update.
19512         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
19513         * modules/unictype/combining-class (Description): Fix.
19514         (Files, Makefile.am): Update.
19515         * tests/unictype/test-combiningclass.c: Renamed from
19516         tests/unictype/test-combining.c.
19517         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19518
19519 2011-03-25  Bruno Haible  <bruno@clisp.org>
19520
19521         unictype: Update list of canonical combining classes.
19522         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19523
19524 2011-03-25  Bruno Haible  <bruno@clisp.org>
19525
19526         unictype/category-byname: Recognize long names as well.
19527         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19528         a long name.
19529         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19530         unictype/categ_byname.h.
19531         (UC_CATEGORY_INDEX_*): New enumeration values.
19532         (uc_general_category_byname): Use uc_general_category_lookup and
19533         convert from index to value.
19534         * lib/unictype/categ_byname.gperf: New file.
19535         * modules/unictype/category-byname (Files): Add
19536         lib/unictype/categ_byname.gperf.
19537         (Depends-on): Add gperf.
19538         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19539         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19540         long names.
19541
19542         Tests for module 'unictype/category-longname'.
19543         * modules/unictype/category-longname-tests: New file.
19544         * tests/unictype/test-categ_longname.c: New file.
19545
19546         New module 'unictype/category-longname'.
19547         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19548         * lib/unictype/categ_longname.c: New file.
19549         * modules/unictype/category-longname: New file.
19550         * modules/unictype/category-all (Depends-on): Add it.
19551
19552 2011-03-25  Bruno Haible  <bruno@clisp.org>
19553
19554         Tests for module 'unictype/category-LC'.
19555         * modules/unictype/category-LC-tests: New file.
19556         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19557
19558         New module 'unictype/category-LC'.
19559         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19560         (UC_CATEGORY_LC): New declaration.
19561         (UC_CASED_LETTER): New macro.
19562         * lib/gen-uni-tables.c (is_category_LC): New function.
19563         (output_categories): Also handle category LC.
19564         (UC_CATEGORY_MASK_LC): New enumeration value.
19565         (general_category_byname): Also handle category LC.
19566         * lib/unictype/categ_LC.c: New file.
19567         * lib/unictype/categ_LC.h: New file, automatically generated.
19568         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19569         category LC.
19570         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19571         * modules/unictype/category-LC: New file.
19572         * modules/unictype/category-byname (Depends-on): Add
19573         unictype/category-LC.
19574         * modules/unictype/category-all (Depends-on): Likewise.
19575
19576 2011-03-25  Eric Blake  <eblake@redhat.com>
19577
19578         xmalloc: revert yesterday's regression
19579         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19580         realloc's underlying behavior (allowing allocation of zero-size
19581         objects, especially if malloc-gnu is also in use).
19582
19583 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19584
19585         maint.mk: add missing version to VC-tag
19586         * top/maint.mk: git tag was missing actual tag name; add it.
19587
19588         valgrind: do leak checking, and exit with code 1 on error (not 0)
19589         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19590         to VALGRIND.
19591
19592 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19593
19594         posix-modules: say what it does.
19595         * posix-modules: Add a line to the --help output saying what it does.
19596
19597 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19598
19599         xmalloc: Do not leak if underlying realloc is C99 compatible.
19600         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19601         This avoids a leak on C99-based systems.  See
19602         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19603
19604 2011-03-24  Eric Blake  <eblake@redhat.com>
19605
19606         realloc: document portability problem
19607         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19608         passing 0 size to realloc.
19609
19610 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19611
19612         doc: update users.txt
19613         * users.txt: Add cvsps, tmpwatch
19614
19615 2011-03-23  Matt Rice  <ratmice@gmail.com>
19616
19617         doc: update users.txt
19618         * users.txt: Add gdb.
19619
19620 2011-03-23  Jim Meyering  <meyering@redhat.com>
19621
19622         doc: update users.txt
19623         Looking through matches up to the following URL (there are still
19624         several more pages), I found several projects that use gnulib:
19625         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19626         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19627         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19628
19629 2011-03-22  Bruno Haible  <bruno@clisp.org>
19630
19631         unictype/bidi*: Rename functions.
19632         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19633         uc_bidi_class, uc_is_bidi_class): New declarations.
19634         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19635         uc_bidi_category_byname.
19636         (uc_bidi_category_byname): New function.
19637         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19638         u_bidi_category_name.
19639         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19640         (uc_bidi_category_name): New function.
19641         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19642         uc_bidi_category.
19643         (uc_bidi_category): New function.
19644         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19645         uc_is_bidi_category. Invoke uc_bidi_class.
19646         (uc_is_bidi_category): New function.
19647         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19648         instead of uc_bidi_category_byname.
19649         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19650         instead of uc_bidi_category_name.
19651         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19652         uc_bidi_category.
19653         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19654         instead of uc_is_bidi_category.
19655
19656 2011-03-21  Bruno Haible  <bruno@clisp.org>
19657
19658         New module 'unictype/joininggroup-all'.
19659         * modules/unictype/joininggroup-all: New file.
19660
19661         Tests for module 'unictype/joininggroup-of'.
19662         * modules/unictype/joininggroup-of-tests: New file.
19663         * tests/unictype/test-joininggroup_of.c: New file.
19664         * tests/unictype/test-joininggroup_of.h: New file, automatically
19665         generated by gen-uni-tables.
19666
19667         New module 'unictype/joininggroup-of'.
19668         * modules/unictype/joininggroup-of: New file.
19669         * lib/unictype/joininggroup_of.c: New file.
19670         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19671         gen-uni-tables.
19672
19673         Tests for module 'unictype/joininggroup-byname'.
19674         * modules/unictype/joininggroup-byname-tests: New file.
19675         * tests/unictype/test-joininggroup_byname.c: New file.
19676
19677         New module 'unictype/joininggroup-byname'.
19678         * modules/unictype/joininggroup-byname: New file.
19679         * lib/unictype/joininggroup_byname.c: New file.
19680         * lib/unictype/joininggroup_byname.gperf: New file.
19681
19682         Tests for module 'unictype/joininggroup-name'.
19683         * modules/unictype/joininggroup-name-tests: New file.
19684         * tests/unictype/test-joininggroup_name.c: New file.
19685
19686         New module 'unictype/joininggroup-name'.
19687         * modules/unictype/joininggroup-name: New file.
19688         * lib/unictype/joininggroup_name.c: New file.
19689         * lib/unictype/joininggroup_name.h: New file.
19690
19691         New module 'unictype/joiningtype-all'.
19692         * modules/unictype/joiningtype-all: New file.
19693
19694         Tests for module 'unictype/joiningtype-of'.
19695         * modules/unictype/joiningtype-of-tests: New file.
19696         * tests/unictype/test-joiningtype_of.c: New file.
19697         * tests/unictype/test-joiningtype_of.h: New file, automatically
19698         generated by gen-uni-tables.
19699
19700         New module 'unictype/joiningtype-of'.
19701         * modules/unictype/joiningtype-of: New file.
19702         * lib/unictype/joiningtype_of.c: New file.
19703         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19704         gen-uni-tables.
19705
19706         Tests for module 'unictype/joiningtype-byname'.
19707         * modules/unictype/joiningtype-byname-tests: New file.
19708         * tests/unictype/test-joiningtype_byname.c: New file.
19709
19710         New module 'unictype/joiningtype-byname'.
19711         * modules/unictype/joiningtype-byname: New file.
19712         * lib/unictype/joiningtype_byname.c: New file.
19713
19714         Tests for module 'unictype/joiningtype-name'.
19715         * modules/unictype/joiningtype-name-tests: New file.
19716         * tests/unictype/test-joiningtype_name.c: New file.
19717
19718         New module 'unictype/joiningtype-name'.
19719         * modules/unictype/joiningtype-name: New file.
19720         * lib/unictype/joiningtype_name.c: New file.
19721
19722         unictype: Add support for Arabic shaping properties.
19723         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19724         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19725         declarations.
19726         (UC_JOINING_GROUP_*): New enumeration values.
19727         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19728         declarations.
19729         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19730         (unicode_joining_type): New variable.
19731         (UC_JOINING_GROUP_*): New enumeration values.
19732         (unicode_joining_group): New variable.
19733         (fill_arabicshaping, joining_type_as_c_identifier,
19734         output_joining_type_test, output_joining_type,
19735         joining_group_as_c_identifier, output_joining_group_test,
19736         output_joining_group): New functions.
19737         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19738         fill_arabicshaping and output_joining_type_test, output_joining_type,
19739         output_joining_group_test, output_joining_group.
19740         Reported by Simon Josefsson.
19741
19742 2011-03-21  Jim Meyering  <meyering@redhat.com>
19743
19744         strftime: fix a bug in yesterday's change
19745         * lib/strftime.c (add): Accommodate width's initial value of -1.
19746         Otherwise, nstrftime would copy uninitialized data into
19747         the result buffer.
19748
19749 2011-03-21  Jim Meyering  <meyering@redhat.com>
19750
19751         tests: add strftime-tests module
19752         * tests/test-strftime.c: New file.
19753         * modules/strftime-tests: New module.
19754
19755 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19756
19757         strftime: don't assume a byte count fits in 'int'
19758         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19759         found this problem by static analysis, using gcc -Wstrict-overflow
19760         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19761         on an integer overflow having undefined behavior, but it turns out
19762         that the argument is a size, which might not fit in 'int' anyway,
19763
19764 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19765
19766         stdio: don't require ignore_value around fwrite
19767
19768         This patch works around libc bug 11959
19769         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19770         Without this patch, applications must often write
19771         ignore_value (fwrite (...)) even though the ignore_value is
19772         not helpful here.  It's common to write many objects, using
19773         fwrite/printf/etc., and then use ferror to detect output error.
19774
19775         I considered making this patch optional, but decided against it,
19776         because libc is obviously being inconsistent here: there is no
19777         reason libc should insist that user code must inspect fwrite
19778         return's value without also insisting that it inspect printf's,
19779         putchar's, etc.  If user code wants to have a strict style where
19780         all these functions' values are checked (so that ferror need not
19781         be checked), we could add support for that style in a new gnulib
19782         module, but in the meantime it's better to be consistent and to
19783         support common usage.
19784
19785         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19786         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19787         that we are compiling in checking mode, and if not C++, and
19788         if not already wrapping fwrite for some other reason.
19789         (fwrite): #define to rpl_fwrite if the latter is defined.
19790
19791 2011-03-20  Bruno Haible  <bruno@clisp.org>
19792
19793         verror: Fix compilation error introduced on 2011-02-13.
19794         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19795         instead of __attribute__.
19796         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19797
19798 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19799             Bruno Haible  <bruno@clisp.org>
19800
19801         socklen: do not depend on sys_socket
19802         While trying to modify Emacs to use gnulib's socklen module,
19803         I discovered a circular dependency: socklen depends on sys_socket
19804         and vice versa.  Emacs can use socklen, but it does not need
19805         sys_socket because it has its own substitute for sys/socket.h.
19806         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19807         gl_TYPE_SOCKLEN_T.
19808         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19809         gl_PREREQ_SYS_H_SOCKET.
19810         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19811         gl_PREREQ_SYS_H_SOCKET.
19812         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19813         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19814         * modules/socklen (Depends-on): Do not depend on sys_socket.
19815         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19816
19817 2011-03-20  Jim Meyering  <meyering@redhat.com>
19818
19819         maint.mk: sort file names *after* new transformation
19820         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19821         prefix would have led to an unwarranted failure in GNU parted.
19822         Sort after that transformation.
19823
19824 2011-03-19  Jim Meyering  <meyering@redhat.com>
19825
19826         maint.mk: fix po-file syntax-check rule
19827         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19828         Patch by Bruno Haible.
19829
19830 2011-03-19  Bruno Haible  <bruno@clisp.org>
19831
19832         socklen: Update comment.
19833         * m4/socklen.m4: Update comment about platforms.
19834
19835 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19836             Bruno Haible  <bruno@clisp.org>
19837
19838         inet_ntop, inet_pton: Simplify.
19839         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19840         documented to provide socklen_t and we already depend on sys_socket.
19841         * modules/inet_pton (Depends-on): Likewise.
19842         * lib/arpa_inet.in.h: Adjust comment.
19843
19844 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19845             Bruno Haible  <bruno@clisp.org>
19846
19847         netdb: Simplify.
19848         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19849         documented to provide socklen_t and we already depend on sys_socket.
19850         * lib/netdb.in.h: Adjust comment.
19851
19852 2011-03-19  Bruno Haible  <bruno@clisp.org>
19853
19854         sys_socket, netdb: Document problem with socklen_t.
19855         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19856         platforms.
19857         * doc/posix-headers/netdb.texi: Likewise.
19858
19859 2011-03-18  Eric Blake  <eblake@redhat.com>
19860
19861         maint.mk: let po check work in VPATH build
19862         * top/maint.mk (po_file): Allow cfg.mk override.
19863         (sc_po_check): Allow VPATH use.
19864         Reported by Jiri Denemark.
19865
19866 2011-03-16  Jim Meyering  <meyering@redhat.com>
19867
19868         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19869         Before, you would have had to create one .x-sc_ file per rule in order
19870         to exempt offending files.  Now, you may instead use a Make variable --
19871         usually defined in cfg.mk -- whose name identifies the affected rule.
19872         * top/maint.mk (_sc_excl): Define.
19873         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19874         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19875
19876 2011-03-13  Bruno Haible  <bruno@clisp.org>
19877
19878         ignore-value tests: Avoid warnings.
19879         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19880         empty for gcc < 3.4.
19881
19882 2011-03-13  Bruno Haible  <bruno@clisp.org>
19883
19884         passfd: Fix link error on Solaris.
19885         * modules/passfd (Description): Correct.
19886         (Depends-on): Add socketlib.
19887         (Link): New section.
19888         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19889
19890 2011-03-13  Bruno Haible  <bruno@clisp.org>
19891
19892         passfd: Fix link error on AIX 5.2.
19893         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19894
19895 2011-03-13  Bruno Haible  <bruno@clisp.org>
19896
19897         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19898         * lib/sys_socket.in.h: Include <stddef.h>.
19899         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19900         CMSG_FIRSTHDR. Remove unused variable.
19901
19902 2011-03-13  Bruno Haible  <bruno@clisp.org>
19903
19904         passfd: Fix compilation error on OpenBSD.
19905         * lib/passfd.c: Include <sys/uio.h>.
19906
19907 2011-03-13  Bruno Haible  <bruno@clisp.org>
19908
19909         passfd test: Fix warnings.
19910         * tests/test-passfd.c: Include <sys/wait.h>.
19911         (main): Fix typo.
19912
19913 2011-03-13  Bruno Haible  <bruno@clisp.org>
19914
19915         passfd module, part 4, tweaks.
19916         * tests/test-passfd.c: Reorder includes.
19917         (main): Fix perror and printf calls.
19918
19919 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19920
19921         passfd module, part 4.
19922         * modules/passfd-tests: New file.
19923         * tests/test-passfd.c: New file.
19924
19925 2011-03-13  Jim Meyering  <meyering@redhat.com>
19926
19927         Makefile: rely on GNU make; derive syntax-check rule names
19928         Rather than requiring that each sc_ rule be listed as a dependent
19929         of "check", use features of GNU make to derive the list.
19930         * Makefile (syntax-check-rules): Define.
19931         (check): Depend on the new variable, not the hard-coded list.
19932
19933 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19934             Bruno Haible  <bruno@clisp.org>
19935
19936         passfd module, part 3.
19937         * lib/passfd.h (recvfd): Add a flags argument.
19938         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19939         (recvfd): Add a flags argument.
19940         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19941         exists.
19942         * modules/passfd (Depends-on): Add cloexec.
19943         Suggested by Eric Blake.
19944
19945 2011-03-13  Bruno Haible  <bruno@clisp.org>
19946
19947         passfd module, part 2, tweaks.
19948         * modules/passfd (Files): Reorder.
19949         (Depends-on): Remove errno.
19950         (Include): Remove <sys/socket.h>, <sys/un.h>.
19951         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19952         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19953         specification header. Include <sys/socket.h> always. Don't include
19954         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19955         (sendfd): Clarify that it sets errno when it fails.
19956         (recvfd): Fix specification.
19957
19958 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19959
19960         passfd module, part 2.
19961         * modules/passfd: New file.
19962         * lib/passfd.h: New file.
19963         * lib/passfd.c: New file.
19964
19965 2011-03-12  Bruno Haible  <bruno@clisp.org>
19966
19967         wcswidth, mbswidth: Avoid integer overflow.
19968         * lib/wcswidth.c: Include <limits.h>.
19969         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19970         * lib/mbswidth.c: Include <limits.h>.
19971         (mbsnwidth): Avoid 'int' overflow.
19972         Reported by Jim Meyering.
19973
19974 2011-03-12  Bruno Haible  <bruno@clisp.org>
19975
19976         futimens, utimensat: Avoid endless recursion on Solaris 10.
19977         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19978         Solaris.
19979         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19980         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19981
19982 2011-03-11  Jim Meyering  <meyering@redhat.com>
19983
19984         maint.mk: relax a regexp to accommodate other formatting styles
19985         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19986         between "ngettext" and the following "(".
19987
19988 2011-03-11  Pádraig Brady <P@draigBrady.com>
19989
19990         maint.mk: suppress a false positive warning
19991         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19992         diagnostics are marked with ngettext.
19993
19994 2011-03-10  Eric Blake  <eblake@redhat.com>
19995
19996         wchar: add explicit dependencies, for Tru64
19997         * modules/mbmemcasecoll (Depends-on): Add wchar.
19998         * modules/mbtowc (Depends-on): Likewise.
19999         * modules/vasnprintf (Depends-on): Likewise.
20000         * modules/unistdio/u-printf-args (Depends-on): Likewise.
20001         * modules/wctomb (Depends-on): Likewise.
20002         Reported by Peter O'Gorman.
20003
20004 2011-03-08  Bruno Haible  <bruno@clisp.org>
20005
20006         passfd module, part 1, tweaks.
20007         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
20008         Improve indentation. Improve AC_MSG_CHECKING messages.
20009         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
20010         gl_SOCKET_FAMILIES.
20011
20012 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20013
20014         passfd module, part 1.
20015         * m4/afunix.m4: New file.
20016         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
20017         sockets.
20018
20019 2011-03-08  Bruno Haible  <bruno@clisp.org>
20020
20021         regex-quote: New API.
20022         * lib/regex-quote.h: Include <stdbool.h>.
20023         (struct regex_quote_spec): New type.
20024         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20025         New declarations.
20026         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20027         'const struct regex_quote_spec *' argument.
20028         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
20029         (pcre_special): New constant.
20030         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20031         New functions.
20032         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20033         'const struct regex_quote_spec *' argument.
20034         * modules/regex-quote (Depends-on): Add stdbool.
20035         * tests/test-regex-quote.c (check): Update for new API. Add test for
20036         anchored results.
20037         * NEWS: Mention the API change.
20038         Reported by Reuben Thomas and Eric Blake.
20039
20040 2011-03-06  Bruno Haible  <bruno@clisp.org>
20041
20042         regex-quote: Fix creation of POSIX extended regular expressions.
20043         * lib/regex-quote.c (ere_special): Add grouping and alternation
20044         operators.
20045
20046 2011-03-05  Bruno Haible  <bruno@clisp.org>
20047
20048         doc: Improve doc regarding autopoint vs. gnulib.
20049         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20050         disable autopoint while running autoreconf.
20051         Suggested by Ralf Wildenhues.
20052
20053 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20054
20055         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20056         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20057
20058 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20059
20060         parse-duration: remove xalloc.h dependency
20061         * lib/parse-duration.c (parse_period): handle NULL return from
20062         strdup instead of calling xstrdup().
20063         * modules/parse-duration: remove "xalloc" dependency
20064
20065 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20066
20067         bootstrap: honor m4_base when running aclocal
20068         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20069
20070 2011-03-02  Jim Meyering  <meyering@redhat.com>
20071
20072         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20073         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20074         on request from Matt Booth.
20075
20076 2011-03-01  Eric Blake  <eblake@redhat.com>
20077
20078         test-link: work on Hurd
20079         * tests/test-link.h (test_link): Hurd rejects linking directories
20080         with EISDIR instead of the POSIX-mandated EPERM.
20081
20082 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20083
20084         stdio: simplify by moving files to printf-posix, sigpipe
20085         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20086         since this symbol is needed only if printf is replaced.
20087         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20088         Require gl_ASM_SYMBOL_PREFIX.
20089         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20090         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20091         (Depends-on): Add 'raise'.
20092         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20093         * modules/stdio (Files): Remove lib/stdio-write.c,
20094         m4/asm-underscore.m4.
20095         (Depends-on): Remove 'raise'.
20096
20097         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20098         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20099         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20100         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20101
20102 2011-02-28  Bruno Haible  <bruno@clisp.org>
20103
20104         localcharset: Assume ANSI C behaviour of free().
20105         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20106         calling free().
20107         Suggested by Simon Josefsson <simon@josefsson.org>.
20108
20109 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20110             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20111             Bruno Haible  <bruno@clisp.org>  (tiny change)
20112
20113         On Cygwin, use /proc file system instead of win32 API.
20114         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20115         Win32 file names.
20116         (DllMain): Simplify by removing Cygwin specific code.
20117         (find_shared_library_fullname): Use Linux specific implementation also
20118         for Cygwin.
20119         (get_shared_library_fullname): Update accordingly.
20120         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20121         Win32 file names.
20122         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20123         Cygwin specific code.
20124
20125 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20126             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20127
20128         Fix OpenMP flag detection for various Fortran compilers.
20129         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20130         OpenMP-conditional compilation construct, to force compile
20131         failure with missing OpenMP flag.
20132         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20133
20134 2011-02-25  Eric Blake  <eblake@redhat.com>
20135
20136         strstr: expand test coverage
20137         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20138         compilation.
20139         * tests/test-memmem.c (main): Duplicate tests.
20140         * tests/test-strcasestr.c (main): Likewise.
20141         * tests/test-c-strcasestr.c (main): Likewise.
20142
20143 2011-02-25  Jim Meyering  <meyering@redhat.com>
20144
20145         maint.mk: detect missing-NL-at-EOF, too
20146         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20147         it also detects when a file lacks a newline at EOF.
20148         (require_exactly_one_NL_at_EOF_): Renamed from
20149         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20150         since people may well have .x-sc_... file names tied to the
20151         existing name.  Suggested by Eric Blake.
20152
20153 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20154
20155         dirname: move m4/dos.m4 functionality into lib/dosname.h
20156
20157         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20158         extracts symbols from it, puts them into config.h; but it's much
20159         easier to use the symbols directly.  filename.h already does this,
20160         but it disagrees with dos.m4 in some respects.  This patch
20161         introduces a different include file dosname.h that packages up
20162         dos.m4, and then later we can work on merging filename.h and
20163         dosname.h.  Applications that need only the easy-to-configure
20164         symbols should consider including dosname.h rather than dirname.h.
20165         * NEWS: Mention incompatible changes.
20166         * m4/dos.m4: Remove.
20167         * lib/dosname.h, modules/dosname: New files.
20168         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20169         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20170         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20171         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20172         Include dosname.h, not dirname.h.
20173         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20174         Include dosname.h, for definitions of symbols like ISSLASH
20175         that used to be in config.h.
20176         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20177         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20178         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20179         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20180         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20181         * modules/rmdir (Files): Likewise.
20182         * modules/stat (Files): Likewise.
20183         * modules/unlink (Files): Likewise.
20184         * modules/dirname-lgpl (Depends-on): Add dosname.
20185         * modules/lstat (Depends-on): Likewise.
20186         * modules/openat (Depends-on): Likewise.
20187         * modules/rmdir (Depends-on): Likewise.
20188         * modules/savewd (Depends-on): Likewise.
20189         * modules/stat (Depends-on): Likewise.
20190         * modules/unlink (Depends-on): Likewise.
20191         * modules/openat (Depends-on): Remove dirname-lgpl.
20192         * modules/savewd (Depends-on): Likewise.
20193         * tests/test-dirname.c: Do not use removed symbols like
20194         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20195         the remaining symbols, e.g., ISSLASH ('\\').
20196
20197 2011-02-25  Eric Blake  <eblake@redhat.com>
20198
20199         strstr: revert patches that introduced bug and pessimization
20200         * lib/str-two-way.h: Add another reference.
20201         (two_way_short_needle, two_way_long_needle): Revert changes from
20202         2011-02-24; they pessimize search speed.
20203         (critical_factorization): Partially revert changes from
20204         2010-06-22; they violate the requirement that the left half of the
20205         needle be smaller than the period of the needle.
20206
20207 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20208
20209         filenamecat: remove unnecessary dependency on dirname-lgpl
20210         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20211         is no direct dependency, just an indirect one via filenamecat-lgpl.
20212
20213         remove: remove unnecessary use of m4/dos.m4
20214         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20215         * modules/remove (FILES): Remove m4/dos.m4.
20216
20217         * lib/openat-proc.c: Don't include dirname.h; not needed.
20218
20219         backupfile: remove unnecessary use of m4/dos.m4
20220         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20221         of its symbols are used by the backupfile code.  backupfile.c does
20222         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20223         for the rare case of programs that want all their backup file
20224         names to live within 8+3 limits, and dos.m4 doesn't address that.
20225         * modules/backupfile (Files): Remove m4/dos.m4.
20226
20227 2011-02-24  Jim Meyering  <meyering@redhat.com>
20228
20229         strstr: fix a bug whereby strstr would mistakenly return NULL
20230         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20231         in period calculation.
20232         (two_way_long_needle): Likewise.
20233         The original problem was reported by Mike Stump in
20234         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20235         Ralf Wildenhues provided the short needle and haystack.
20236         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20237         Add a more involved test to trigger the bug in two_way_long_needle.
20238
20239 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20240
20241         gnulib-tool: remove use of bold display in help screen
20242         * gnulib-tool (func_usage): Do not use bold display anymore in the
20243         help screen.  That was just meant to be a temporary emphasis for a
20244         backward-incompatible change.
20245
20246 2011-02-23  Bruno Haible  <bruno@clisp.org>
20247
20248         Fix misindentation of preprocessor directives.
20249         * lib/argp-namefrob.h: Reindent preprocessor directives.
20250         * lib/getopt_int.h (struct _getopt_data): Likewise.
20251         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20252         * lib/vasnprintf.c (decode_long_double): Likewise.
20253         * tests/test-argmatch.c: Insert blank lines, for clarity.
20254         * tests/test-exclude.c: Likewise.
20255
20256 2011-02-22  Bruno Haible  <bruno@clisp.org>
20257
20258         ioctl: Fix for MacOS X in 64-bit mode.
20259         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20260         value.
20261         Suggested by Eric Blake.
20262         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20263
20264 2011-02-22  Jim Meyering  <meyering@redhat.com>
20265
20266         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20267         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20268         in lib/.
20269
20270 2011-02-22  Eric Blake  <eblake@redhat.com>
20271
20272         maint: avoid any CDPATH issue
20273         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20274
20275         maint: adjust cpp indentation for my modules, as well
20276         * Makefile (sc_cpp_indent_check): Add my name.
20277         * lib/fbufmode.c: Filter through cppi.
20278         * lib/fpurge.c: Likewise.
20279         * lib/freadable.c: Likewise.
20280         * lib/freading.c: Likewise.
20281         * lib/fwritable.c: Likewise.
20282         * lib/fwriting.c: Likewise.
20283         * lib/sigaction.c: Likewise.
20284
20285 2011-02-22  Jim Meyering  <meyering@redhat.com>
20286
20287         maint: adjust cpp indentation to reflect nesting depth
20288         I.e., in a block of code that begins with an unnested "#if",
20289         put one space between the "#" in column 1 and following token.
20290         For example,
20291         -#include <sys/vfs.h>
20292         +# include <sys/vfs.h>
20293         Do this only in .c files that are part of a module I maintain.
20294         * lib/linkat.c: Filter through cppi.
20295         * lib/nanosleep.c: Likewise.
20296         * lib/openat.c: Likewise.
20297         * lib/openat-die.c: Likewise.
20298         * lib/dup3.c: Likewise.
20299         * lib/fchownat.c: Likewise.
20300         * lib/flock.c: Likewise.
20301         * lib/fsync.c: Likewise.
20302         * lib/fts.c: Likewise.
20303         * lib/getpass.c: Likewise.
20304         * lib/gettimeofday.c: Likewise.
20305         * lib/userspec.c: Likewise.
20306         * Makefile (sc_cpp_indent_check): New rule, to check this.
20307
20308 2011-02-22  Bruno Haible  <bruno@clisp.org>
20309
20310         New module 'wctomb'.
20311         * lib/stdlib.in.h (wctomb): New declaration.
20312         * lib/wctomb.c: New file.
20313         * lib/wctomb-impl.h: New file.
20314         * m4/wctomb.m4: New file.
20315         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20316         REPLACE_WCTOMB.
20317         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20318         REPLACE_WCTOMB.
20319         * modules/wctomb: New file.
20320         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20321         * doc/posix-functions/wctomb.texi: Mention the new module.
20322         * modules/wctob (Depends-on): Add wctomb.
20323
20324 2011-02-22  Bruno Haible  <bruno@clisp.org>
20325
20326         New module 'mbtowc'.
20327         * lib/stdlib.in.h (mbtowc): New declaration.
20328         * lib/mbtowc.c: New file.
20329         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20330         * m4/mbtowc.m4: New file.
20331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20332         REPLACE_MBTOWC.
20333         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20334         REPLACE_MBTOWC.
20335         * modules/mbtowc: New file.
20336         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20337         * doc/posix-functions/mbtowc.texi: Mention the new module.
20338         * modules/btowc (Depends-on): Add mbtowc.
20339
20340 2011-02-22  Bruno Haible  <bruno@clisp.org>
20341
20342         wcrtomb: Add more tests for native Windows platforms.
20343         * tests/test-wcrtomb-w32-1.sh: New file.
20344         * tests/test-wcrtomb-w32-2.sh: New file.
20345         * tests/test-wcrtomb-w32-3.sh: New file.
20346         * tests/test-wcrtomb-w32-4.sh: New file.
20347         * tests/test-wcrtomb-w32-5.sh: New file.
20348         * tests/test-wcrtomb-w32.c: New file.
20349         * modules/wcrtomb-tests (Files): Add them.
20350         (Makefile.am): Arrange to run these tests.
20351         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20352         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20353
20354 2011-02-20  Bruno Haible  <bruno@clisp.org>
20355
20356         wcrtomb: Enhance test.
20357         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20358
20359 2011-02-20  Bruno Haible  <bruno@clisp.org>
20360
20361         mbrtowc: Tiny optimization.
20362         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20363
20364 2011-02-20  Jim Meyering  <meyering@redhat.com>
20365
20366         test-exclude.c: remove unmatched #endif
20367         * tests/test-exclude.c: Remove stray #endif, left over from
20368         the change of a week ago.
20369
20370 2011-02-19  Jim Meyering  <meyering@redhat.com>
20371
20372         git-version-gen: skip "-dirty" check when appropriate
20373         * build-aux/git-version-gen: Don't run any git commands when the
20374         version string comes from .tarball-version.  Prior to this, we
20375         would run git update-index --refresh even from a just-unpacked
20376         tarball directory, and that could affect a .git/ directory in a
20377         parent of the build directory.  Reported by Mike Frysinger.
20378
20379 2011-02-19  Bruno Haible  <bruno@clisp.org>
20380
20381         unictype/property-byname: Reduce the size of the 'data' segment.
20382         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
20383
20384 2011-02-19  Bruno Haible  <bruno@clisp.org>
20385
20386         unictype/scripts: Reduce the size of the 'data' segment.
20387         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
20388         '%pic'.
20389         * lib/unictype/scripts_byname.gperf: Regenerated.
20390
20391 2011-02-19  Bruno Haible  <bruno@clisp.org>
20392
20393         stdint: Update documentation.
20394         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
20395
20396 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20397
20398         stdint: omit redundant check for wchar.h
20399         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
20400         always tests whether wchar.h exists, so remove the now-redundant test.
20401
20402 2011-02-18  Bruno Haible  <bruno@clisp.org>
20403
20404         stdint: Cut dependency to module 'wchar'.
20405         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
20406         include the necessary prerequisites.
20407         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
20408         * modules/stdint (Depends-on): Remove wchar.
20409         (Makefile.am): Substitute HAVE_WCHAR_H.
20410         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
20411
20412 2011-02-18  Eric Blake  <eblake@redhat.com>
20413
20414         longlong: skip, rather than fail, on cross-compilation
20415         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
20416         when cross-compiling; regression from 2011-02-16.
20417
20418 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20419
20420         * NEWS: Mention 2011-02-08 change to stdlib.
20421
20422 2011-02-17  Bruno Haible  <bruno@clisp.org>
20423
20424         getloadavg: Add comments about platforms.
20425         * m4/getloadavg.m4: Add comment.
20426         * lib/getloadavg.c: Likewise.
20427
20428 2011-02-17  Bruno Haible  <bruno@clisp.org>
20429
20430         getloadavg: Fix link error on Solaris 2.6.
20431         * modules/getloadavg (Link): New section.
20432         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20433         linking test-getloadavg.
20434         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20435         getloadavg.
20436
20437 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20438
20439         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20440         It was 'int', but this doesn't match the IRIX 6.5 manual.
20441         Suggested by Bruno Haible in
20442         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
20443
20444 2011-02-17  Bruno Haible  <bruno@clisp.org>
20445
20446         havelib: Fix comments.
20447         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
20448         change.
20449
20450 2011-02-17  Bruno Haible  <bruno@clisp.org>
20451
20452         havelib: Update config.rpath.
20453         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
20454
20455 2011-02-17  Bruno Haible  <bruno@clisp.org>
20456
20457         getloadavg test: Add some plausibility checks.
20458         * tests/test-getloadavg.c (check_avg): Print a warning when the value
20459         is improbable.
20460
20461 2011-02-16  Eric Blake  <eblake@redhat.com>
20462
20463         maintainer-makefile: make syntax-check a no-op from tarballs
20464         * top/maint.mk (no-vc-detected): New rule.
20465         (local-checks-available): Use it to avoid hanging if someone tries
20466         'make syntax-check' from a tarball.  Also append to any non-syntax
20467         checks already defined in cfg.mk.
20468
20469 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20470
20471         longlong: tune, particularly for common case of c99
20472
20473         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
20474         or running anything if c99, or if unsigned long long int does not
20475         work.  In either case, we know the answer without further tests.
20476         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
20477         it at most once, and use its results for both long long int and
20478         unsigned long long int.  This is more likely to be efficient in
20479         the common case where the program wants to check for both long
20480         long int and unsigned long long int.
20481         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
20482         since the answer is already known.
20483
20484 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20485
20486         getloadavg: set errno
20487         * lib/getloadavg.c: Set errno when returning -1.  If no other
20488         error number looks appropriate, set it to ENOSYS if the getloadavg
20489         looks like it can't possibly ever work, ENOTSUP otherwise.
20490         Suggested by Bruno Haible in
20491         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
20492
20493         getloadavg: trim unused parts and speed up 'configure'
20494         * NEWS: Document this.
20495         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
20496         always compiled if getloadavg is absent.
20497         Move test code to ...
20498         * tests/test-getloadavg.c: New file, containing previous
20499         contents of test from lib/getloadavg.c.  It also contains
20500         suggestions by Bruno Haible in
20501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
20502         * modules/getloadavg-tests: New file.
20503         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
20504         Do tests in the same order as they're needed for getloadavg.c.
20505         Omit setgid-related tests that generate symbols KMEM_GROUP,
20506         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
20507         Do only the tests that are needed to see whether the system has
20508         getloadavg, moving the other tests into ...
20509         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
20510         NLIST_NAME_UNION; nobody should be using it.  Do not define
20511         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
20512         relevant, as the user of this module shouldn't care how getloadavg
20513         is implemented.
20514
20515         getloadavg: omit unused var
20516         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20517
20518 2011-02-15  Jim Meyering  <meyering@redhat.com>
20519
20520         doc: update users.txt
20521         * users.txt: Update iwhd's URL.
20522
20523 2011-02-13  Bruno Haible  <bruno@clisp.org>
20524
20525         Consistent macro naming for macros that use GCC __attribute__.
20526         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20527         _ATTRIBUTE_NONNULL_.
20528         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20529         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20530         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20531         ATTRIBUTE_DEPRECATED.
20532         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20533         ATTRIBUTE_NORETURN.
20534         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20535         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20536         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20537         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20538         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20539         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20540         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20541         ATTRIBUTE_SENTINEL.
20542         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20543         ATTRIBUTE_RETURN_CHECK.
20544         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20545         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20546         ATTRIBUTE_NORETURN.
20547         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20548         Reported by Paul Eggert.
20549
20550 2011-02-13  Bruno Haible  <bruno@clisp.org>
20551
20552         Don't interfere with a program's definition of __attribute__.
20553         * lib/argp.h (__attribute__): Remove definition.
20554         (_GL_ATTRIBUTE_FORMAT): New macro.
20555         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20556         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20557         (_GL_ATTRIBUTE_FORMAT): New macro.
20558         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20559         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20560         GCC 3 or newer.
20561         * lib/error.h (__attribute__): Remove definition.
20562         (_GL_ATTRIBUTE_FORMAT): New macro.
20563         (error, error_at_line): Use it.
20564         * lib/hash.h (__attribute__): Remove definition.
20565         (ATTRIBUTE_WUR): Update definition. Define always.
20566         * lib/openat.h (__attribute__): Remove definition.
20567         (ATTRIBUTE_NORETURN): Update definition. Define always.
20568         * lib/sigpipe-die.h (__attribute__): Remove definition.
20569         (ATTRIBUTE_NORETURN): Update definition. Define always.
20570         * lib/vasnprintf.h (__attribute__): Remove definition.
20571         (_GL_ATTRIBUTE_FORMAT): New macro.
20572         (asnprintf, vasnprintf): Use it.
20573         * lib/xalloc.h (__attribute__): Remove definition.
20574         (ATTRIBUTE_NORETURN): Update definition. Define always.
20575         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20576         * lib/xmemdup0.h (__attribute__): Remove definition.
20577         (ATTRIBUTE_NORETURN): Update definition. Define always.
20578         * lib/xprintf.h (__attribute__): Remove definition.
20579         (_GL_ATTRIBUTE_FORMAT): New macro.
20580         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20581         * lib/xstrtol.h (__attribute__): Remove definition.
20582         (ATTRIBUTE_NORETURN): Update definition. Define always.
20583         * lib/xvasprintf.h (__attribute__): Remove definition.
20584         (_GL_ATTRIBUTE_FORMAT): New macro.
20585         (xasprintf, xvasprintf): Use it.
20586         * tests/test-argmatch.c (__attribute__): Remove definition.
20587         (ATTRIBUTE_NORETURN): Update definition. Define always.
20588         * tests/test-exclude.c (__attribute__): Remove definition.
20589         (ATTRIBUTE_NORETURN): Update definition. Define always.
20590         Reported by Paul Eggert.
20591
20592 2011-02-13  Bruno Haible  <bruno@clisp.org>
20593
20594         mbrtowc: Add more tests for native Windows platforms.
20595         * tests/test-mbrtowc-w32-1.sh: New file.
20596         * tests/test-mbrtowc-w32-2.sh: New file.
20597         * tests/test-mbrtowc-w32-3.sh: New file.
20598         * tests/test-mbrtowc-w32-4.sh: New file.
20599         * tests/test-mbrtowc-w32-5.sh: New file.
20600         * tests/test-mbrtowc-w32.c: New file.
20601         * modules/mbrtowc-tests (Files): Add them.
20602         (Makefile.am): Arrange to run these tests.
20603         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20604         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20605
20606 2011-02-13  Bruno Haible  <bruno@clisp.org>
20607
20608         mbrtowc: Work around native Windows bug.
20609         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20610         guess when no suitable locale for testing was found.
20611         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20612
20613 2011-02-13  Bruno Haible  <bruno@clisp.org>
20614
20615         mbsinit: Work around mingw bug.
20616         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20617         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20618         Windows.
20619         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20620
20621 2011-02-13  Bruno Haible  <bruno@clisp.org>
20622
20623         mbsinit: Don't crash for a NULL argument.
20624         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20625         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20626
20627 2011-02-13  Bruno Haible  <bruno@clisp.org>
20628
20629         Don't interfere with a program's definition of __attribute__.
20630         * lib/stdio.in.h (__attribute__): Remove definition.
20631         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20632         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20633         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20634         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20635         * lib/string.in.h (__attribute__): Remove definition.
20636         Reported by Paul Eggert.
20637
20638 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20639
20640         stdlib: don't get in the way of non-GCC __attribute__
20641         See thread starting at
20642         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20643         Revert previous stdlib change, installing the following instead:
20644         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20645         to get in the way of a non-GCC compiler that supports __attribute__.
20646         (_GL_ATTRIBUTE_RETURN): New macro.
20647         (_Exit): Use it instead of __attribute__.
20648
20649 2011-02-12  Bruno Haible  <bruno@clisp.org>
20650
20651         quotearg test: Avoid test failure on mingw.
20652         * tests/test-quotearg.sh: Convert the locale identifier from native
20653         Windows syntax to Unix syntax.
20654
20655 2011-02-12  Bruno Haible  <bruno@clisp.org>
20656
20657         setlocale: Prefer gnulib's override over libintl's override.
20658         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20659         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20660         GNULIB_defined_setlocale is set.
20661
20662 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20663
20664         stdlib: support non-GCC __attribute__
20665
20666         Fix a serious and tricky problem encountered when attempting to
20667         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20668         5.5, but it crashed due to memory corruption on Solaris 10 with
20669         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20670         bits that are otherwise zero.  This tagging is optional inside
20671         Emacs but is preferred and is used when __attribute__ ((__aligned
20672         (8))) works, as it does with both recent-enough GCC and with Sun C
20673         5.11.  However, Sun C 5.11 is not GCC and does not #define
20674         __GNUC__ and __GNUC_MINOR__.
20675
20676         When I added the getloadavg module to Emacs, it brought in
20677         stdlib.in.h, which contained this fragment:
20678
20679            #ifndef __attribute__
20680            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20681            #  define __attribute__(Spec)   /* empty */
20682            # endif
20683            #endif
20684
20685         When files that include <stdlib.h> were compiled with Sun C 5.11,
20686         the above code disabled __attribute__ ((__aligned (8))), which
20687         caused variables to not be properly aligned, which eventually led
20688         to the pointer corruption mentioned above.  (This was a bit hard
20689         to diagnose, unfortunately.)
20690
20691         Several "#define __attribute__(X) /* empty */" code snippets need
20692         to be eradicated from Gnulib to work with non-GCC compilers that
20693         support __attribute__.  The Autoconf way to do this is to test for
20694         each kind of attribute that we want support for, and selectively
20695         enable that in source code.
20696
20697         Fix this problem just for stdlib.h, by adding a test for the
20698         __noreturn__ attribute, and change stdlib.in.h to use that test
20699         when needed.  This technique can be easily generalized to the
20700         other *.in.h files and attributes, and a similar technique can be
20701         used for *.h and *.c files.  This patch is enough to solve the
20702         problem for Emacs + getloadavg, and I thought I'd publish it for
20703         feedback before undertaking further, similar fixes in other
20704         modules.
20705
20706         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20707         because it's not needed for stdlib.h.  It merely substitutes the
20708         value directly into stdlib.h.  We may well need to #define it, or
20709         similar symbols, for other modules, but it's nice to also have an
20710         option to not #define it for applications like Emacs that do not
20711         need it.
20712
20713         * lib/stdlib.in.h (__attribute__): Do not #define.
20714         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20715         be defined only if the _Exit module is also used.
20716         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20717         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20718         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20719         platforms.
20720         * modules/_Exit (Files): Add m4/attribute.m4.
20721         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20722         * m4/attribute.m4: New file.
20723
20724 2011-02-12  Bruno Haible  <bruno@clisp.org>
20725
20726         wcsrtombs: Work around bug on native Windows.
20727         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20728         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20729         instead of len.
20730         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20731
20732 2011-02-12  Bruno Haible  <bruno@clisp.org>
20733
20734         mbsrtowcs: Work around bug on native Windows.
20735         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20736         against mingw bug.
20737         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20738
20739 2011-02-12  Bruno Haible  <bruno@clisp.org>
20740
20741         Avoid setlocale bugs in tests.
20742         * modules/btowc (Dependencies): Add setlocale.
20743         * modules/c-strcase (Dependencies): Likewise.
20744         * modules/mbmemcasecmp (Dependencies): Likewise.
20745         * modules/mbmemcasecoll (Dependencies): Likewise.
20746         * modules/mbrtowc (Dependencies): Likewise.
20747         * modules/mbscasecmp (Dependencies): Likewise.
20748         * modules/mbscasestr (Dependencies): Likewise.
20749         * modules/mbschr (Dependencies): Likewise.
20750         * modules/mbscspn (Dependencies): Likewise.
20751         * modules/mbsinit (Dependencies): Likewise.
20752         * modules/mbsncasecmp (Dependencies): Likewise.
20753         * modules/mbsnrtowcs (Dependencies): Likewise.
20754         * modules/mbspbrk (Dependencies): Likewise.
20755         * modules/mbspcasecmp (Dependencies): Likewise.
20756         * modules/mbsrchr (Dependencies): Likewise.
20757         * modules/mbsrtowcs (Dependencies): Likewise.
20758         * modules/mbsspn (Dependencies): Likewise.
20759         * modules/mbsstr (Dependencies): Likewise.
20760         * modules/nl_langinfo (Dependencies): Likewise.
20761         * modules/quotearg (Dependencies): Likewise.
20762         * modules/unicase/locale-language (Dependencies): Likewise.
20763         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20764         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20765         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20766         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20767         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20768         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20769         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20770         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20771         * modules/vasnprintf-posix (Dependencies): Likewise.
20772         * modules/wcrtomb (Dependencies): Likewise.
20773         * modules/wcsnrtombs (Dependencies): Likewise.
20774         * modules/wcsrtombs (Dependencies): Likewise.
20775
20776 2011-02-12  Bruno Haible  <bruno@clisp.org>
20777
20778         setlocale: Workaround native Windows bug.
20779         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20780         succeeds but sets LC_CTYPE to "C", report a failure.
20781         * tests/test-setlocale2.sh: New file.
20782         * tests/test-setlocale2.c: New file.
20783         * modules/setlocale-tests (Files): Add the new files.
20784         (Makefile.am): Enable test-setlocale2.sh test.
20785         * doc/posix-functions/setlocale.texi: Mention workaround.
20786
20787 2011-02-11  Bruno Haible  <bruno@clisp.org>
20788
20789         Tests for module 'setlocale'.
20790         * modules/setlocale-tests: New file.
20791         * tests/test-setlocale1.sh: New file.
20792         * tests/test-setlocale1.c: New file.
20793
20794         New module 'setlocale'.
20795         * lib/locale.in.h (setlocale): New declaration.
20796         * lib/setlocale.c: New file, based on
20797         gettext/gettext-runtime/intl/setlocale.c.
20798         * m4/setlocale.m4: New file.
20799         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20800         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20801         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20802         REPLACE_SETLOCALE.
20803         * modules/setlocale: New file.
20804         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20805         * doc/posix-functions/setlocale.texi: Mention the new module.
20806
20807 2011-02-11  Bruno Haible  <bruno@clisp.org>
20808
20809         Prepare for locale dependent tests on mingw.
20810         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20811         because it has the wrong locale encoding.
20812         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20813         French_France.1252 instead of "fr".
20814         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20815         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20816         because it has the wrong locale encoding.
20817         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20818         native Windows, try Turkish_Turkey.65001.
20819         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20820         Chinese_China.54936.
20821
20822         Prepare for locale dependent tests on mingw.
20823         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20824         differently.
20825         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20826         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20827         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20828         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20829
20830 2011-02-11  Eric Blake  <eblake@redhat.com>
20831
20832         strptime: avoid compiler warnings
20833         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20834         compiler warnings about dead code.
20835         Reported by Daniel P. Berrange.
20836
20837 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20838
20839         doc: update users.txt
20840         * users.txt: Add rcs.
20841
20842 2011-02-10  John W. Eaton  <jwe@gnu.org>
20843
20844         doc: update users.txt
20845         * users.txt: Add octave.
20846
20847 2011-02-10  Jim Meyering  <meyering@redhat.com>
20848
20849         doc: update users.txt
20850         * users.txt: Add iwhd.
20851
20852 2011-02-09  Bruno Haible  <bruno@clisp.org>
20853
20854         gnulib-tool: Make copyright notice adjustment more robust.
20855         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20856         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20857         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20858         License".
20859         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20860
20861 2011-02-06  Bruno Haible  <bruno@clisp.org>
20862
20863         New module 'towctrans'.
20864         * modules/towctrans: New file.
20865         * lib/wctype.in.h (towctrans): New declaration.
20866         * lib/towctrans.c: New file.
20867         * lib/towctrans-impl.h: New file.
20868         * m4/towctrans.m4: New file.
20869         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20870         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20871         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20872         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20873         * doc/posix-functions/towctrans.texi: Mention the new module.
20874
20875 2011-02-06  Bruno Haible  <bruno@clisp.org>
20876
20877         New module 'wctrans'.
20878         * modules/wctrans: New file.
20879         * lib/wctype.in.h (wctrans): New declaration.
20880         * lib/wctrans.c: New file.
20881         * lib/wctrans-impl.h: New file.
20882         * m4/wctrans.m4: New file.
20883         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20884         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20885         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20886         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20887         * doc/posix-functions/wctrans.texi: Mention the new module.
20888
20889 2011-02-06  Bruno Haible  <bruno@clisp.org>
20890
20891         New module 'iswctype'.
20892         * modules/iswctype: New file.
20893         * lib/wctype.in.h (iswctype): New declaration.
20894         * lib/iswctype.c: New file.
20895         * lib/iswctype-impl.h: New file.
20896         * m4/iswctype.m4: New file.
20897         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20898         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20899         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20900         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20901         * doc/posix-functions/iswctype.texi: Mention the new module and the
20902         HP-UX 11.00 problem.
20903
20904 2011-02-06  Bruno Haible  <bruno@clisp.org>
20905
20906         New module 'wctype'.
20907         * modules/wctype: Change to represent the wctype() substitute.
20908         * lib/wctype.in.h (wctype): New declaration.
20909         * lib/wctype.c: New file.
20910         * lib/wctype-impl.h: New file.
20911         * m4/wctype.m4: New file.
20912         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20913         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20914         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20915         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20916         * doc/posix-functions/wctype.texi: Mention the new module and the
20917         HP-UX 11.00 problem.
20918
20919 2011-02-06  Bruno Haible  <bruno@clisp.org>
20920
20921         wctype-h: Ensure wctype_t and wctrans_t are defined.
20922         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20923         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20924         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20925         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20926         HAVE_WCTRANS_T.
20927         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20928
20929 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20930
20931         flock: fix license typo
20932
20933         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20934         omitted.
20935
20936 2011-02-08  Bruno Haible  <bruno@clisp.org>
20937
20938         Split large sed scripts, for HP-UX sed.
20939         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20940         to avoid HP-UX limit of 99 commands, in the near future.
20941         * modules/stdlib (Makefile.am): Likewise.
20942         * modules/unistd (Makefile.am): Likewise.
20943         * modules/wchar (Makefile.am): Likewise.
20944         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20945         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20946         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20947
20948 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20949             Bruno Haible  <bruno@clisp.org>
20950
20951         stdlib: improve random_r modularization
20952         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20953         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20954         you also need the random_r module to get this material right.
20955         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20956         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20957         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20958
20959 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20960
20961         stdlib: don't depend on stdint
20962         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20963         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20964         be independent of whether stdint.h is needed.
20965         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20966         here, instead of ...
20967         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20968         struct random_data should be using the random_r module, not just
20969         the stdlib module (which wouldn't make sense: what package needs
20970         just struct random_data without also needing random_r?).
20971         * modules/stdlib (Depends-on): Remove stdint.
20972
20973         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20974         See the thread rooted at
20975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20976         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20977         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20978         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20979         __VMS)); previously it was always included (via fcntl--.h).
20980         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20981         hand; this is good enough for load averages.  Also, do not use
20982         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20983         flags directly if available and don't bother otherwise.  (Packages
20984         that need the extra reliability should use the modules that define
20985         these flags on older platforms that lack them.)
20986         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20987         fcntl-safer.
20988
20989 2011-02-08  Jim Meyering  <meyering@redhat.com>
20990
20991         di-set.h, ino-map.h: add multiple-inclusion guard
20992         Technically, the guard is required only for ino-map.h, due to its
20993         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20994         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20995         * lib/ino-map.h: Likewise.
20996
20997 2011-02-06  Bruno Haible  <bruno@clisp.org>
20998
20999         iswblank: Ensure declaration on glibc systems.
21000         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
21001         * modules/iswblank (Dependencies): Add 'extensions'.
21002         * doc/posix-functions/iswblank.texi: Document the glibc problem.
21003
21004 2011-02-06  Bruno Haible  <bruno@clisp.org>
21005
21006         New module 'iswblank'.
21007         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
21008         * modules/iswblank: New file.
21009         * modules/wctype-h (Files): Remove lib/iswblank.c.
21010         (Makefile.am): Substitute GNULIB_ISWBLANK.
21011         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
21012         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
21013         (gl_WCTYPE_H_DEFAULTS): New macro.
21014         (gl_WCTYPE_H): Require it. Remove iswblank related code.
21015         * modules/iswblank-tests: New file.
21016         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21017         * tests/test-wctype-h.c (main): Remove iswblank tests.
21018         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
21019         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
21020         of 'wctype-h'.
21021         * NEWS: Mention the change.
21022         * modules/mbchar (Depends-on): Add iswblank.
21023
21024 2011-02-08  Bruno Haible  <bruno@clisp.org>
21025
21026         di-set tests: Refactor.
21027         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
21028         unnecessary includes.
21029         (ASSERT): Remove macro.
21030         (main): Make C90 compliant by avoiding variable declaration after
21031         statement.
21032         * modules/di-set-tests (Files): Add tests/macros.h.
21033
21034 2011-02-08  Bruno Haible  <bruno@clisp.org>
21035
21036         ino-map tests: Refactor.
21037         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21038         unnecessary includes.
21039         (ASSERT): Remove macro.
21040         (main): Make C90 compliant by avoiding variable declaration after
21041         statement.
21042         * modules/ino-map-tests (Files): Add tests/macros.h.
21043
21044 2011-02-08  Jim Meyering  <meyering@redhat.com>
21045
21046         di-set: add "const" to a cast
21047         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21048         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21049
21050 2011-02-06  Bruno Haible  <bruno@clisp.org>
21051
21052         Rename module 'wctype' to 'wctype-h'.
21053         * modules/wctype-h: Renamed from modules/wctype.
21054         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21055         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21056         (Files, Depends-on, Makefile.am): Update.
21057         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21058         (Files, Makefile.am): Update.
21059         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21060         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21061         * doc/posix-headers/wctype.texi: Update.
21062         * doc/posix-functions/iswalnum.texi: Update.
21063         * doc/posix-functions/iswalpha.texi: Update.
21064         * doc/posix-functions/iswblank.texi: Update.
21065         * doc/posix-functions/iswcntrl.texi: Update.
21066         * doc/posix-functions/iswdigit.texi: Update.
21067         * doc/posix-functions/iswgraph.texi: Update.
21068         * doc/posix-functions/iswlower.texi: Update.
21069         * doc/posix-functions/iswprint.texi: Update.
21070         * doc/posix-functions/iswpunct.texi: Update.
21071         * doc/posix-functions/iswspace.texi: Update.
21072         * doc/posix-functions/iswupper.texi: Update.
21073         * doc/posix-functions/iswxdigit.texi: Update.
21074         * doc/posix-functions/towlower.texi: Update.
21075         * doc/posix-functions/towupper.texi: Update.
21076         * NEWS: Mention the change.
21077         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21078         * modules/mbchar (Dependencies): Likewise.
21079         * modules/mbswidth (Dependencies): Likewise.
21080         * modules/quotearg (Dependencies): Likewise.
21081         * modules/regex (Dependencies): Likewise.
21082         * modules/wcscasecmp (Dependencies): Likewise.
21083         * modules/wcsncasecmp (Dependencies): Likewise.
21084         * modules/wcwidth (Dependencies): Likewise.
21085
21086 2011-02-06  Bruno Haible  <bruno@clisp.org>
21087
21088         New module 'wcswidth'.
21089         * modules/wcswidth: New file.
21090         * lib/wchar.in.h (wcswidth): New declaration.
21091         * lib/wcswidth.c: New file.
21092         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21093         * m4/wcswidth.m4: New file.
21094         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21095         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21096         REPLACE_WCSWIDTH.
21097         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21098         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21099         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21100         * doc/posix-functions/wcswidth.texi: Mention the new module.
21101
21102 2011-02-06  Bruno Haible  <bruno@clisp.org>
21103
21104         New module 'wcstok'.
21105         * modules/wcstok: New file.
21106         * lib/wchar.in.h (wcstok): New declaration.
21107         * lib/wcstok.c: New file.
21108         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21109         * m4/wcstok.m4: New file.
21110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21112         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21113         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21114         * doc/posix-functions/wcstok.texi: Mention the new module.
21115
21116 2011-02-06  Bruno Haible  <bruno@clisp.org>
21117
21118         New module 'wcsstr'.
21119         * modules/wcsstr: New file.
21120         * lib/wchar.in.h (wcsstr): New declaration.
21121         * lib/wcsstr.c: New file.
21122         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21123         * m4/wcsstr.m4: New file.
21124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21126         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21127         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21128         * doc/posix-functions/wcsstr.texi: Mention the new module.
21129
21130 2011-02-06  Bruno Haible  <bruno@clisp.org>
21131
21132         New module 'wcspbrk'.
21133         * modules/wcspbrk: New file.
21134         * lib/wchar.in.h (wcspbrk): New declaration.
21135         * lib/wcspbrk.c: New file.
21136         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21137         * m4/wcspbrk.m4: New file.
21138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21141         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21142         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21143
21144 2011-02-06  Bruno Haible  <bruno@clisp.org>
21145
21146         New module 'wcsspn'.
21147         * modules/wcsspn: New file.
21148         * lib/wchar.in.h (wcsspn): New declaration.
21149         * lib/wcsspn.c: New file.
21150         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21151         * m4/wcsspn.m4: New file.
21152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21154         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21155         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21156         * doc/posix-functions/wcsspn.texi: Mention the new module.
21157
21158 2011-02-06  Bruno Haible  <bruno@clisp.org>
21159
21160         New module 'wcscspn'.
21161         * modules/wcscspn: New file.
21162         * lib/wchar.in.h (wcscspn): New declaration.
21163         * lib/wcscspn.c: New file.
21164         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21165         * m4/wcscspn.m4: New file.
21166         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21167         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21168         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21169         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21170         * doc/posix-functions/wcscspn.texi: Mention the new module.
21171
21172 2011-02-06  Bruno Haible  <bruno@clisp.org>
21173
21174         New module 'wcsrchr'.
21175         * modules/wcsrchr: New file.
21176         * lib/wchar.in.h (wcsrchr): New declaration.
21177         * lib/wcsrchr.c: New file.
21178         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21179         * m4/wcsrchr.m4: New file.
21180         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21181         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21182         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21183         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21184         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21185
21186 2011-02-06  Bruno Haible  <bruno@clisp.org>
21187
21188         New module 'wcschr'.
21189         * modules/wcschr: New file.
21190         * lib/wchar.in.h (wcschr): New declaration.
21191         * lib/wcschr.c: New file.
21192         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21193         * m4/wcschr.m4: New file.
21194         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21195         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21196         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21197         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21198         * doc/posix-functions/wcschr.texi: Mention the new module.
21199
21200 2011-02-06  Bruno Haible  <bruno@clisp.org>
21201
21202         New module 'wcsdup'.
21203         * modules/wcsdup: New file.
21204         * lib/wchar.in.h (wcsdup): New declaration.
21205         * lib/wcsdup.c: New file.
21206         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21207         * m4/wcsdup.m4: New file.
21208         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21209         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21210         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21211         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21212         * doc/posix-functions/wcsdup.texi: Mention the new module.
21213
21214 2011-02-06  Bruno Haible  <bruno@clisp.org>
21215
21216         New module 'wcsxfrm'.
21217         * modules/wcsxfrm: New file.
21218         * lib/wchar.in.h (wcsxfrm): New declaration.
21219         * lib/wcsxfrm.c: New file.
21220         * lib/wcsxfrm-impl.h: New file.
21221         * m4/wcsxfrm.m4: New file.
21222         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21223         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21224         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21225         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21226         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21227
21228 2011-02-06  Bruno Haible  <bruno@clisp.org>
21229
21230         New module 'wcscoll'.
21231         * modules/wcscoll: New file.
21232         * lib/wchar.in.h (wcscoll): New declaration.
21233         * lib/wcscoll.c: New file.
21234         * lib/wcscoll-impl.h: New file.
21235         * m4/wcscoll.m4: New file.
21236         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21237         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21238         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21239         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21240         * doc/posix-functions/wcscoll.texi: Mention the new module.
21241
21242 2011-02-06  Bruno Haible  <bruno@clisp.org>
21243
21244         New module 'wcsncasecmp'.
21245         * modules/wcsncasecmp: New file.
21246         * lib/wchar.in.h (wcsncasecmp): New declaration.
21247         * lib/wcsncasecmp.c: New file.
21248         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21249         * m4/wcsncasecmp.m4: New file.
21250         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21251         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21252         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21253         HAVE_WCSNCASECMP.
21254         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21255         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21256
21257 2011-02-06  Bruno Haible  <bruno@clisp.org>
21258
21259         New module 'wcscasecmp'.
21260         * modules/wcscasecmp: New file.
21261         * lib/wchar.in.h (wcscasecmp): New declaration.
21262         * lib/wcscasecmp.c: New file.
21263         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21264         * m4/wcscasecmp.m4: New file.
21265         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21266         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21267         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21268         HAVE_WCSCASECMP.
21269         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21270         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21271
21272 2011-02-05  Bruno Haible  <bruno@clisp.org>
21273
21274         New module 'wcsncmp'.
21275         * modules/wcsncmp: New file.
21276         * lib/wchar.in.h (wcsncmp): New declaration.
21277         * lib/wcsncmp.c: New file.
21278         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21279         * m4/wcsncmp.m4: New file.
21280         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21281         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21282         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21283         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21284         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21285
21286 2011-02-05  Bruno Haible  <bruno@clisp.org>
21287
21288         New module 'wcscmp'.
21289         * modules/wcscmp: New file.
21290         * lib/wchar.in.h (wcscmp): New declaration.
21291         * lib/wcscmp.c: New file.
21292         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
21293         * m4/wcscmp.m4: New file.
21294         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
21295         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
21296         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
21297         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
21298         * doc/posix-functions/wcscmp.texi: Mention the new module.
21299
21300 2011-02-05  Bruno Haible  <bruno@clisp.org>
21301
21302         New module 'wcsncat'.
21303         * modules/wcsncat: New file.
21304         * lib/wchar.in.h (wcsncat): New declaration.
21305         * lib/wcsncat.c: New file.
21306         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21307         * m4/wcsncat.m4: New file.
21308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21310         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21311         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21312         * doc/posix-functions/wcsncat.texi: Mention the new module.
21313
21314 2011-02-05  Bruno Haible  <bruno@clisp.org>
21315
21316         New module 'wcscat'.
21317         * modules/wcscat: New file.
21318         * lib/wchar.in.h (wcscat): New declaration.
21319         * lib/wcscat.c: New file.
21320         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21321         * m4/wcscat.m4: New file.
21322         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21323         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21324         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21325         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21326         * doc/posix-functions/wcscat.texi: Mention the new module.
21327
21328 2011-02-05  Bruno Haible  <bruno@clisp.org>
21329
21330         New module 'wcpncpy'.
21331         * modules/wcpncpy: New file.
21332         * lib/wchar.in.h (wcpncpy): New declaration.
21333         * lib/wcpncpy.c: New file.
21334         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21335         * m4/wcpncpy.m4: New file.
21336         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21337         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21338         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21339         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21340         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21341
21342 2011-02-05  Bruno Haible  <bruno@clisp.org>
21343
21344         New module 'wcsncpy'.
21345         * modules/wcsncpy: New file.
21346         * lib/wchar.in.h (wcsncpy): New declaration.
21347         * lib/wcsncpy.c: New file.
21348         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21349         * m4/wcsncpy.m4: New file.
21350         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21351         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21352         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21353         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21354         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21355
21356 2011-02-05  Bruno Haible  <bruno@clisp.org>
21357
21358         New module 'wcpcpy'.
21359         * modules/wcpcpy: New file.
21360         * lib/wchar.in.h (wcpcpy): New declaration.
21361         * lib/wcpcpy.c: New file.
21362         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21363         * m4/wcpcpy.m4: New file.
21364         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
21365         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
21366         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
21367         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
21368         * doc/posix-functions/wcpcpy.texi: Mention the new module.
21369
21370 2011-02-05  Bruno Haible  <bruno@clisp.org>
21371
21372         New module 'wcscpy'.
21373         * modules/wcscpy: New file.
21374         * lib/wchar.in.h (wcscpy): New declaration.
21375         * lib/wcscpy.c: New file.
21376         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
21377         * m4/wcscpy.m4: New file.
21378         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
21379         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
21380         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
21381         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
21382         * doc/posix-functions/wcscpy.texi: Mention the new module.
21383
21384 2011-02-05  Bruno Haible  <bruno@clisp.org>
21385
21386         New module 'wcsnlen'.
21387         * modules/wcsnlen: New file.
21388         * lib/wchar.in.h (wcsnlen): New declaration.
21389         * lib/wcsnlen.c: New file.
21390         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
21391         * m4/wcsnlen.m4: New file.
21392         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
21393         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
21394         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
21395         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
21396         * doc/posix-functions/wcsnlen.texi: Mention the new module.
21397
21398 2011-02-05  Bruno Haible  <bruno@clisp.org>
21399
21400         New module 'wcslen'.
21401         * modules/wcslen: New file.
21402         * lib/wchar.in.h (wcslen): New declaration.
21403         * lib/wcslen.c: New file.
21404         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
21405         * m4/wcslen.m4: New file.
21406         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
21407         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
21408         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
21409         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
21410         * doc/posix-functions/wcslen.texi: Mention the new module.
21411
21412 2011-02-05  Bruno Haible  <bruno@clisp.org>
21413
21414         New module 'wmemset'.
21415         * modules/wmemset: New file.
21416         * lib/wchar.in.h (wmemset): New declaration.
21417         * lib/wmemset.c: New file.
21418         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
21419         * m4/wmemset.m4: New file.
21420         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21421         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21422         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21423         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21424         * doc/posix-functions/wmemset.texi: Mention the new module.
21425
21426 2011-02-05  Bruno Haible  <bruno@clisp.org>
21427
21428         New module 'wmemmove'.
21429         * modules/wmemmove: New file.
21430         * lib/wchar.in.h (wmemmove): New declaration.
21431         * lib/wmemmove.c: New file.
21432         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21433         * m4/wmemmove.m4: New file.
21434         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21435         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21436         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21437         HAVE_WMEMMOVE.
21438         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21439         * doc/posix-functions/wmemmove.texi: Mention the new module.
21440
21441 2011-02-05  Bruno Haible  <bruno@clisp.org>
21442
21443         New module 'wmemcpy'.
21444         * modules/wmemcpy: New file.
21445         * lib/wchar.in.h (wmemcpy): New declaration.
21446         * lib/wmemcpy.c: New file.
21447         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
21448         * m4/wmemcpy.m4: New file.
21449         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
21450         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
21451         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
21452         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
21453         * doc/posix-functions/wmemcpy.texi: Mention the new module.
21454
21455 2011-02-05  Bruno Haible  <bruno@clisp.org>
21456
21457         New module 'wmemcmp'.
21458         * modules/wmemcmp: New file.
21459         * lib/wchar.in.h (wmemcmp): New declaration.
21460         * lib/wmemcmp.c: New file.
21461         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21462         * m4/wmemcmp.m4: New file.
21463         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21464         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21465         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21466         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21467         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21468
21469 2011-02-07  Jim Meyering  <meyering@redhat.com>
21470
21471         di-set, ino-map: new modules, from coreutils
21472         * lib/di-set.c: New file.
21473         * lib/di-set.h: Likewise.
21474         * lib/ino-map.c: Likewise.
21475         * lib/ino-map.h: Likewise.
21476         * modules/di-set: Likewise.
21477         * modules/di-set-tests: Likewise.
21478         * modules/ino-map: Likewise.
21479         * modules/ino-map-tests: Likewise.
21480         * tests/test-di-set.c: Likewise.
21481         * tests/test-ino-map.c: Likewise.
21482
21483 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
21484
21485         getloadavg: merge minor changes from Emacs
21486
21487         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
21488         (getloadavg): Use memset, not bzero.
21489
21490         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
21491         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
21492         clash (bug#86).
21493
21494 2010-11-14  Bruno Haible  <bruno@clisp.org>
21495
21496         Allow multiple gnulib generated replacements to coexist.
21497         * lib/getopt.in.h (struct option): Avoid identical redefinition.
21498         * lib/inttypes.in.h (imaxdiv_t): Likewise.
21499         * lib/langinfo.in.h (nl_item): Likewise.
21500         * lib/math.in.h (_NaN, NAN): Likewise.
21501         * lib/netdb.in.h (struct addrinfo): Likewise.
21502         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
21503         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
21504         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
21505         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
21506         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
21507         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
21508         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
21509         pthread_mutexattr_init, pthread_mutexattr_settype,
21510         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
21511         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
21512         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
21513         pthread_spin_trylock, pthread_spin_unlock): Likewise.
21514         * lib/sched.in.h (struct sched_param): Likewise.
21515         * lib/se-selinux.in.h (security_class_t, security_context_t,
21516         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21517         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21518         lsetfilecon, fsetfilecon, security_check_context,
21519         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21520         Likewise.
21521         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21522         Likewise.
21523         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21524         _gl_function_taking_int_returning_void_t, union sigval,
21525         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21526         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21527         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21528         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21529         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21530         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21531         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21532         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21533         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21534         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21535         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21536         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21537         socklen_t, rpl_fd_isset): Likewise.
21538         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21539         * lib/sys_time.in.h (struct timeval): Likewise.
21540         * lib/sys_times.in.h (struct tms): Likewise.
21541         * lib/sys_utsname.in.h (struct utsname):
21542         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21543         * lib/unistd.in.h (getpagesize): Likewise.
21544         * lib/wchar.in.h (mbstate_t): Likewise.
21545         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21546         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21547         towlower, towupper): Likewise.
21548         Reported by Sam Steingold <sds@gnu.org>.
21549
21550 2011-02-05  Eric Blake  <eblake@redhat.com>
21551
21552         unsetenv: work around Haiku issues
21553         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21554         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21555
21556 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21557
21558         libposix: avoid calling error() within libposix
21559         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21560         is defined.
21561
21562 2011-02-05  Eric Blake  <eblake@redhat.com>
21563
21564         strerror_r-posix: port to cygwin
21565         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21566         implementation.
21567         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21568         * tests/test-strerror_r.c (main): Fix test.
21569         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21570         issue.
21571
21572 2011-02-05  Bruno Haible  <bruno@clisp.org>
21573
21574         New module 'wmemchr'.
21575         * modules/wmemchr: New file.
21576         * lib/wchar.in.h (wmemchr): New declaration.
21577         * lib/wmemchr.c: New file.
21578         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21579         * m4/wmemchr.m4: New file.
21580         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21581         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21582         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21583         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21584         * doc/posix-functions/wmemchr.texi: Mention the new module.
21585
21586 2011-02-04  Eric Blake  <eblake@redhat.com>
21587
21588         fdopendir: detect FreeBSD bug
21589         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21590         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21591
21592 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21593
21594         stdbool: do not define HAVE_STDBOOL_H
21595         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21596         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21597         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21598         imported from the latest Autoconf git.  It was motivated by Emacs,
21599         which uses gnulib but does not need HAVE_STDBOOL_H.
21600
21601 2011-02-04  Bruno Haible  <bruno@clisp.org>
21602
21603         wcsnrtombs: Prepare for new module wwcsnrtombs.
21604         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21605         * lib/wcsnrtombs.c: Include it.
21606         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21607
21608         wcsrtombs: Prepare for new module wwcsrtombs.
21609         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21610         * lib/wcsrtombs.c: Include it.
21611         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21612
21613         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21614         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21615         * lib/mbsnrtowcs.c: Include it.
21616         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21617
21618         mbsrtowcs: Prepare for new module mbsrtowwcs.
21619         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21620         * lib/mbsrtowcs.c: Include it.
21621         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21622
21623 2011-02-04  Bruno Haible  <bruno@clisp.org>
21624
21625         vasnprintf: Reduce use of malloc for small format strings.
21626         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21627         (arguments): Add room for the first 7 arguments.
21628         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21629         (char_directives, u8_directives, u16_directives, u32_directives): Add
21630         room for the first 7 directives.
21631         * lib/printf-parse.c: Include <string.h>.
21632         (PRINTF_PARSE): Change memory handling code so that it uses the first
21633         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21634         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21635         Reported by Pádraig Brady <P@draigbrady.com>.
21636
21637 2011-01-31  Eric Blake  <eblake@redhat.com>
21638
21639         dup2: work around Haiku bug
21640         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21641         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21642         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21643         * tests/test-dup2.c (main): Enhance test.
21644
21645 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21646
21647         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21648         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21649         declared by eglibc 2.11.2.
21650         * lib/stdio.in.h: Likewise.
21651
21652 2011-01-31  Eric Blake  <eblake@redhat.com>
21653
21654         ignore-value: add missing test dependency
21655         * tests/test-ignore-value.c: Revert previous change; stdio.h
21656         provides off_t.
21657         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21658
21659 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21660
21661         mktime: clarify long_int width checking
21662         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21663         the top level, to make it clearer that the assumption about
21664         long_int width is being checked.  See
21665         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21666
21667 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21668
21669         ignore-value: Fix self-test.
21670         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21671
21672 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21673
21674         TYPE_MAXIMUM: avoid theoretically undefined behavior
21675         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21676         negative number, which the C Standard says has undefined behavior.
21677         In practice this is not a problem, but might as well do it by the book.
21678         Reported by Rich Felker and Eric Blake; see
21679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21680         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21681         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21682         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21683         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21684         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21685         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21686
21687         mktime: #undef mktime before #defining it
21688         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21689
21690         mktime: systematically normalize tm_isdst comparisons
21691         * lib/mktime.c (isdst_differ): New function.
21692         (__mktime_internal): Use it systematically for all isdst comparisons.
21693         This completes the fix for libc BZ #6723, and removes the need for
21694         normalizing tm_isdst.  See
21695         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21696         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21697
21698         mktime: fix some integer overflow issues and sidestep the rest
21699
21700         This was prompted by a bug report by Benjamin Lindner for MinGW
21701         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21702         His bug is due to signed integer overflow (0 - INT_MIN), and I
21703         I scanned through mktime.c looking for other integer overflow
21704         problems, fixing all the bugs I found.
21705
21706         Although the C Standard says the resulting code is still not safe
21707         in the presence of integer overflow, in practice it should be good
21708         enough for all real-world two's-complement implementations, except
21709         for debugging environments that deliberately trap on integer
21710         overflow (e.g., gcc -ftrapv).
21711
21712         * lib/mktime.c (WRAPV): New macro.
21713         (SHR): Also check that long_int and time_t shift right in the
21714         usual way, before using the fast-but-unportable method.
21715         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21716         used.  The code already assumed two's complement, so there's
21717         no need to test for alternatives.  All uses removed.
21718         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21719         the C standard.  Problem reported by Rich Felker in
21720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21721         (twos_complement_arithmetic): Also check long_int and time_t.
21722         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21723         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21724         (__mktime_internal): Avoid integer overflow with unary subtraction
21725         in two instances where -1 - X is an adequate replacement for -X,
21726         since the calculations are approximate.
21727
21728 2011-01-29  Eric Blake  <eblake@redhat.com>
21729
21730         mktime: avoid infinite loop
21731         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21732         type; behavior is still undefined but portable to all known targets.
21733         Reported by Rich Felker.
21734
21735 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21736
21737         rename, unlink, same-inode: Relicense.
21738         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21739         * modules/unlink (License): Likewise.
21740         * modules/same-inode (License): Likewise.
21741
21742 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21743
21744         mktime: avoid problems on NetBSD 5 / i386
21745         * lib/mktime.c (long_int): New type.  This works around a problem
21746         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21747         but time_t is 64 bits, and where I expect the existing code is
21748         wrong in some cases.
21749         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21750         (ydhms_diff): Bring back the compile-time check for wide-enough
21751         year and yday.
21752
21753         mktime: fix misspelling in comment
21754         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21755         This merges all recent glibc changes of importance.
21756
21757 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21758
21759         move-if-change: cope with concurrent mv of identical file.
21760         * build-aux/move-if-change (CMPPROG): Accept environment
21761         variable as an override for `cmp'.
21762         (usage): Document CMPPROG.
21763         Adjust comparison to drop stdout.  Cope with failure of mv if
21764         the target file exists and is identical to the source, for
21765         parallel builds.
21766         Report from H.J. Lu against binutils in PR binutils/12283.
21767
21768 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21769
21770         * users.txt: Mention sharutils.
21771
21772 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21773
21774         * users.txt: Mention OATH Toolkit.
21775
21776 2011-01-27  Bruno Haible  <bruno@clisp.org>
21777
21778         Prepare for supporting FreeBSD 10.
21779         * build-aux/config.libpath: Remove handling of freebsd1*.
21780
21781 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21782
21783         Prepare for supporting FreeBSD 10.
21784         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21785         match FreeBSD 10.0.
21786
21787 2011-01-27  Bruno Haible  <bruno@clisp.org>
21788
21789         vma-iter, get-rusage-as: Add OpenBSD support.
21790         * modules/vma-iter (configure.ac): Test for mquery.
21791         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21792         * lib/vma-iter.c: Include <sys/mman.h>.
21793         (vma_iterate): Add an implementation based on mquery().
21794         * lib/resource-ext.h (get_rusage_as): Update comments.
21795         * lib/get-rusage-as.c: Likewise.
21796         * lib/get-rusage-data.c: Likewise.
21797
21798 2011-01-26  Karl Berry  <karl@gnu.org>
21799
21800         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21801         variables to make it easier to override the makeinfo program used.
21802
21803 2011-01-26  Eric Blake  <eblake@redhat.com>
21804
21805         fcntl: work around Haiku F_DUPFD bugs
21806         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21807         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21808         cloexec bit on duplication.
21809         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21810
21811 2011-01-26  Bruno Haible  <bruno@clisp.org>
21812
21813         Enable memory leak tests on AIX.
21814         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21815         * tests/test-fprintf-posix3.c (main): Likewise.
21816
21817 2011-01-26  Bruno Haible  <bruno@clisp.org>
21818
21819         Tests for module 'get-rusage-data'.
21820         * modules/get-rusage-data-tests: New file.
21821         * tests/test-get-rusage-data.c: New file.
21822
21823         New module 'get-rusage-data'.
21824         * lib/resource-ext.h (get_rusage_data): New declaration.
21825         * lib/get-rusage-data.c: New file.
21826         * modules/get-rusage-data: New file.
21827
21828 2011-01-25  Bruno Haible  <bruno@clisp.org>
21829
21830         get-rusage-as: Allow for easier testing.
21831         * lib/resource-ext.h (get_rusage_as): Add comment.
21832         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21833         (main): New function for interactive testing.
21834
21835 2011-01-25  Bruno Haible  <bruno@clisp.org>
21836
21837         vma-iter: Treat Haiku like BeOS.
21838         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21839         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21840
21841 2011-01-25  Eric Blake  <eblake@redhat.com>
21842
21843         c-stack: fix regression on cygwin when libsigsegv is present
21844         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21845
21846 2011-01-24  Bruno Haible  <bruno@clisp.org>
21847
21848         vma-iter: Avoid empty intervals.
21849         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21850         on an empty interval.
21851
21852 2011-01-24  Jim Meyering  <meyering@redhat.com>
21853
21854         u64: remove unnecessary #include
21855         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21856
21857 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21858
21859         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21860         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21861
21862 2011-01-23  Bruno Haible  <bruno@clisp.org>
21863
21864         New module 'vma-iter'.
21865         * lib/vma-iter.h: New file.
21866         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21867         * modules/vma-iter: New file.
21868         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21869         for get_rusage_as_via_iterator.
21870         (vma_iterate_callback): New function.
21871         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21872         * modules/get-rusage-as (Depends-on): Add vma-iter.
21873
21874 2011-01-23  Bruno Haible  <bruno@clisp.org>
21875
21876         uninorm: Tweak includes.
21877         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21878         Reported by Jim Meyering.
21879
21880 2011-01-23  Bruno Haible  <bruno@clisp.org>
21881
21882         get-rusage-as: Improve on NetBSD.
21883         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21884         /proc, like on FreeBSD.
21885
21886 2011-01-23  Jim Meyering  <meyering@redhat.com>
21887
21888         xreadlink.h: remove unnecessary #include
21889         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21890
21891         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21892         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21893
21894 2011-01-23  Bruno Haible  <bruno@clisp.org>
21895
21896         get-rusage-as: Fix bug.
21897         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21898         original limit when aborting the first loop.
21899
21900 2011-01-23  Bruno Haible  <bruno@clisp.org>
21901
21902         wctype: Ensure valid C syntax.
21903         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21904         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21905
21906 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21907
21908         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21910         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21911         as they are needed only for configure's test case.
21912         This removes two unnecessary symbols from config.h.
21913
21914         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21915         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21916         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21917         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21918         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21919         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21920         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21921         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21922         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21923         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21924         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21925         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21926         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21927         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21928         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21929         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21930         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21931         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21932
21933 2011-01-21  Eric Blake  <eblake@redhat.com>
21934
21935         maintainer-makefile: work with older git for submodule check
21936         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21937         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21938         Reported by Matthias Bolte.
21939
21940         bootstrap: minor portability fixes
21941         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21942         (usage): Omit leading capital and trailing . on help phrases, per
21943         GNU Coding Standards.
21944         (check_versions, top level): Prefix messages with script name.
21945
21946 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21947
21948         bootstrap: support --no-git option
21949         * build-aux/bootstrap: Add --no-git option, to be used when
21950         --gnulib-srcdir points to the exact desired checkout.
21951
21952 2011-01-21  Eric Blake  <eblake@redhat.com>
21953
21954         strerror_r-posix: work with glibc 2.13
21955         * lib/strerror_r.c (strerror_r): Fix return type.
21956
21957 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21958             Bruno Haible  <bruno@clisp.org>
21959
21960         uN_strstr: New unit tests.
21961         * modules/unistr/u8-strstr-tests: New file.
21962         * modules/unistr/u16-strstr-tests: New file.
21963         * modules/unistr/u32-strstr-tests: New file.
21964         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21965         * tests/unistr/test-u8-strstr.c: New file.
21966         * tests/unistr/test-u16-strstr.c: New file.
21967         * tests/unistr/test-u32-strstr.c: New file.
21968
21969 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21970             Bruno Haible  <bruno@clisp.org>
21971
21972         Make uN_strstr functions O(n) worst-case.
21973         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21974         16-bit and 32-bit unit cases, use the unibyte algorithm from
21975         lib/mbsstr.c.
21976         * lib/unistr/u8-strstr.c: Include <string.h>.
21977         (UNIT_IS_UINT8_T): New macro.
21978         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21979         (U_STRLEN, U_STRNLEN): New macros.
21980         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21981         (U_STRLEN, U_STRNLEN): New macros.
21982         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21983         (configure.ac): Update required libunistring version.
21984         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21985         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21986         malloca.
21987         (configure.ac): Update required libunistring version.
21988         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21989         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21990         malloca.
21991         (configure.ac): Update required libunistring version.
21992
21993 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21994             Bruno Haible  <bruno@clisp.org>
21995
21996         Prepare for faster uN_strstr functions.
21997         * lib/str-kmp.h: Support definable UNITs.
21998         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21999         needle_len argument.
22000         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
22001         * lib/mbscasestr.c (mbscasestr): Likewise.
22002
22003 2011-01-21  Pádraig Brady <P@draigBrady.com>
22004
22005         malloca-tests: make faster by unsetting MALLOC_PERTURB_
22006         * tests/test-malloca.c (main): Unset the environment variable
22007         to greatly speed up the test.
22008         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
22009         * modules/malloca-tests: Depend on unsetenv.
22010
22011 2011-01-21  Pádraig Brady <P@draigBrady.com>
22012
22013         ignore-value: remove stdint dependency
22014         * lib/ignore-value.h: Remove <stdint.h>
22015         * modules/ignore-value: Remove stdint dependency.
22016
22017 2011-01-21  Jim Meyering  <meyering@redhat.com>
22018
22019         maint.mk: adjust variable name to be consistent with other gl_ vars
22020         * top/maint.mk (gl_public_submodule_commit): Rename the variable
22021         to be lower case.
22022
22023 2011-01-20  Jim Meyering  <meyering@redhat.com>
22024
22025         maint.mk: make "check" depend on public-submodule-commit by default
22026         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
22027
22028 2011-01-20  Bruno Haible  <bruno@clisp.org>
22029
22030         mbfile, mbiter: Complete change from 2008-12-21.
22031         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
22032         * m4/mbiter.m4 (gl_MBITER): Likewise.
22033
22034 2011-01-20  Jim Meyering  <meyering@redhat.com>
22035
22036         init.sh: insert space between each function name and "()"
22037         * tests/init.sh: Make it a little easier to see that a function's
22038         name is "warn_", and not "warn" when looking at the first part of
22039         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22040
22041 2011-01-20  Jim Meyering  <meyering@redhat.com>
22042
22043         mountlist: clean up code formatting
22044         * lib/mountlist.c (read_file_system_list): Split a long line,
22045         correct bracing style, use NULL in place of "(struct statfs *)0",
22046         don't parenthesize return value, add spaces around "=" and after
22047         ";-in-for-stmt".
22048
22049 2011-01-14  Markus Duft <mduft@gentoo.org>
22050
22051         mountlist: add support for Interix
22052         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22053         Apply statvfs to all entries of /dev/fs.
22054         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22055         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22056
22057 2011-01-20  Jim Meyering  <meyering@redhat.com>
22058
22059         maint.mk: improve the public-submodule-commit rule
22060         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22061         to suppress printing of its commands... unless V=1.
22062         Add git submodule's --quiet option to suppress printing of e.g.,
22063         "Entering gnulib" output.
22064         "cd" into $(srcdir) before running git submodule.
22065
22066 2011-01-20  Bruno Haible  <bruno@clisp.org>
22067
22068         include_next: Fix bug introduced on 2011-01-18.
22069         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22070         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22071         ac_cv_header_... variable if the second argument is not 'check'.
22072         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22073         gl_NEXT_HEADERS_INTERNAL.
22074
22075 2011-01-20  Bruno Haible  <bruno@clisp.org>
22076
22077         Allow the user to avoid the GNULIB_TEST_* macros.
22078         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22079         Suggested by Paul Eggert.
22080
22081 2011-01-14  Jim Meyering  <meyering@redhat.com>
22082
22083         bootstrap: avoid failure when there is no .gitmodules file
22084         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22085         has been assigned to, even when its value is the empty string.
22086         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22087         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22088         Reported by John W. Eaton <jwe@gnu.org>.
22089
22090 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22091
22092         assume <ctype.h>, ..., <time.h> exist
22093         For years gnulib has been assuming the existence of the headers
22094         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22095         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22096         them, since they don't appear to be needed.
22097         * README (Portability guidelines): Document this.
22098         * lib/flock.c: Assume <fcntl.h> exists.
22099         * lib/regex_internal.h: Assume <locale.h> exists.
22100         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22101         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22102         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22103         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22104         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22105         * m4/regex.m4 (gl_REGEX): Likewise.
22106         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22107         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22108         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22109         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22110         * tests/test-argp.c: Likewise.
22111         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22112
22113         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22114         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22115         AA_APPLE_UNIVERSAL_BUILD.  See
22116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22117         * NEWS: Document this.
22118
22119 2011-01-19  Eric Blake  <eblake@redhat.com>
22120
22121         c-stack: assume stack overflow if SA_SIGINFO unsupported
22122         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22123         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22124         sigaction will work.
22125         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22126         behavior match Linux.
22127         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22128
22129         stdbool-tests: accommodate Haiku
22130         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22131
22132         binary-io: fix O_TEXT on Haiku
22133         * modules/binary-io (Depends-on): Add fcntl-h.
22134         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22135         than blindly undefining O_TEXT.
22136         Reported by Scott McCreary.
22137
22138 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22139
22140         include_next: do not check for standard headers like stddef.h
22141
22142         I found this problem when modifying Emacs to use gnulib.
22143         I noticed that it added HAVE_STDDEF_H to config.h, even though
22144         gnulib always assumes <stddef.h> exists as per README and this
22145         symbol is unnecessary.
22146         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22147         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22148         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22149         faster for headers like stddef.h that are known to exist.
22150         (gl_CHECK_NEXT_HEADERS): Use it.
22151         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22152         rather than gl_CHECK_NEXT_HEADERS.
22153         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22154         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22155
22156 2011-01-18  Eric Blake  <eblake@redhat.com>
22157
22158         ansi-c++-opt: skip C++ dependency style if C++ is unused
22159         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22160         tests when we know C++ compilation is not desired.
22161         Reported by Scott McCreary.
22162
22163 2011-01-18  Bruno Haible  <bruno@clisp.org>
22164
22165         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22166         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22167         (main): Perform test also when getrlimit and setrlimit don't exist or
22168         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22169         limiting the address space size using setrlimit, compare the address
22170         space size before and after the the test.
22171         * tests/test-dprintf-posix2.c: Likewise.
22172         * tests/test-fprintf-posix3.sh: Update skip messages.
22173         * tests/test-dprintf-posix2.sh: Likewise.
22174         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22175         * modules/dprintf-posix-tests (Depends-on): Likewise.
22176         Reported by Bruce Korb <bkorb@gnu.org> and
22177         Gary V. Vaughan <gary@gnu.org>.
22178
22179 2011-01-18  Bruno Haible  <bruno@clisp.org>
22180
22181         get-rusage-as: Improvement for Cygwin.
22182         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22183         areas that are merely reserved.
22184
22185 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22186
22187         strftime: remove dependencies on multibyte modules
22188
22189         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22190         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22191         only if __osf__ is defined, and I suspect OSF doesn't need these
22192         other modules.  If my guess is wrong, we'll need to come up with a
22193         variant of strftime that doesn't need the multibyte modules.
22194
22195         I discovered this problem when attempting modify Emacs to use the
22196         strftime module.  With the previous gnulib, this caused Emacs to
22197         need 31 new files, ranging from lib/config.charset to
22198         m4/wint_t.m4.  This was overkill and I expect would be offputting
22199         to the Emacs maintainers.  After this change, only 6 new files are
22200         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22201         stdbool.m4, and tm_gmtoff.m4.
22202
22203         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22204         Suggested by Bruno Haible in
22205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22206         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22207         and do not check for wchar.h.
22208         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22209         (Depends-on): Remove mbrlen, mbsinit, wchar.
22210
22211 2011-01-18  Bruno Haible  <bruno@clisp.org>
22212
22213         Tests for module 'get-rusage-as'.
22214         * modules/get-rusage-as-tests: New file.
22215         * tests/test-get-rusage-as.c: New file.
22216
22217         New module 'get-rusage-as'.
22218         * modules/get-rusage-as: New file.
22219         * lib/resource-ext.h: New file.
22220         * lib/get-rusage-as.c: New file.
22221
22222 2011-01-17  Eric Blake  <eblake@redhat.com>
22223
22224         sigaction: relax license from LGPLv3+ to LGPLv2+
22225         * modules/sigaction (License): Relax to LGPLv2+.
22226
22227 2011-01-14  Bruno Haible  <bruno@clisp.org>
22228
22229         filemode: Make function declarations usable in C++ mode.
22230         * lib/filemode.h: Enclose function declarations in extern "C" block.
22231         Reported by John W. Eaton <jwe@gnu.org>.
22232
22233 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22234
22235         save-cwd: no longer include "xgetcwd.h"
22236         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22237         This avoids a compilation failure in projects that use save-cwd
22238         without also using the xgetcwd module.
22239
22240 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22241
22242         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22243         This is so that a program like Emacs, which needs only dtoastr,
22244         does not have to bother with distributing and compiling ftoastr
22245         and ldtoastr.
22246         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22247         * modules/dtoastr, modules/ldtoastr: New files.
22248         * modules/ftoastr: Now works just for 'float'.
22249         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22250         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22251         dtoastr.c, ldtoastr.c.
22252
22253 2011-01-11  Jim Meyering  <meyering@redhat.com>
22254
22255         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22256         There is no need to work around the lack of the fchdir function,
22257         since gnulib can now provide a replacement when required.
22258         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22259         * modules/save-cwd (Depends-on): Add fchdir.
22260
22261 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22262
22263         openat, save-cwd: avoid xmalloc
22264
22265         This removes a direct (but undocumented) dependency of openat on
22266         xalloc, along with an indirect dependency via save-cwd.  It also
22267         removes a dependency of save-cwd on xgetcwd, and thereby
22268         indirectly on xalloc.  This change causes the openat substitute
22269         to fall back on save_cwd when memory is tight, and for save_cwd to
22270         fail instead of dying when memory is tight, but that's good enough.
22271         Problem and initial idea for fix reported by Bastien Roucaries in
22272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22273
22274         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22275         xalloc.h (for xmalloc).
22276         (openat_proc_name): Use malloc, not xmalloc.
22277         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22278         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22279
22280         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22281         This avoids heap allocation for file names whose lengths are in
22282         the range 512..1023, with the upper bound increasing to at most
22283         4031 depending on the platform's PATH_MAX.  (We do not want
22284         pathmax.h here as it might supply a non-constant PATH_MAX.)
22285         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22286         Perhaps they should be moved to malloca.h?
22287         (OPENAT_BUFFER_SIZE): Use them.
22288
22289 2011-01-10  Bruno Haible  <bruno@clisp.org>
22290
22291         doc: Update users.txt.
22292         * users.txt: Add recutils.
22293
22294 2011-01-09  Karl Berry  <karl@gnu.org>
22295
22296         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
22297
22298         * doc/configmake.texi: New file.
22299         * doc/gnulib.texi: Include it.
22300         * modules/configmake: Move documentation from here.
22301
22302 2011-01-09  Bruno Haible  <bruno@clisp.org>
22303
22304         Update to Unicode 6.0.0.
22305         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22306         (get_lbp): Update for Unicode 6.0.0.
22307         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22308         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22309         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22310         U+11001, U+11038..U+11046. Remove U+06DE.
22311         (uc_width): Fix bounds of planes.
22312         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22313         lib/uniwidth/width.c.
22314         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22315         trailing whitespace removed.
22316         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22317         without comments, but with the original copyright notice.
22318         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22319         * lib/unicase/ignorable.h: Likewise.
22320         * lib/unicase/tocasefold.h: Likewise.
22321         * lib/unicase/tolower.h: Likewise.
22322         * lib/unicase/totitle.h: Likewise.
22323         * lib/unicase/toupper.h: Likewise.
22324         * lib/unictype/bidi_of.h: Likewise.
22325         * lib/unictype/blocks.h: Likewise.
22326         * lib/unictype/categ_C.h: Likewise.
22327         * lib/unictype/categ_Cn.h: Likewise.
22328         * lib/unictype/categ_L.h: Likewise.
22329         * lib/unictype/categ_Ll.h: Likewise.
22330         * lib/unictype/categ_Lm.h: Likewise.
22331         * lib/unictype/categ_Lo.h: Likewise.
22332         * lib/unictype/categ_Lu.h: Likewise.
22333         * lib/unictype/categ_M.h: Likewise.
22334         * lib/unictype/categ_Mc.h: Likewise.
22335         * lib/unictype/categ_Me.h: Likewise.
22336         * lib/unictype/categ_Mn.h: Likewise.
22337         * lib/unictype/categ_N.h: Likewise.
22338         * lib/unictype/categ_Nd.h: Likewise.
22339         * lib/unictype/categ_No.h: Likewise.
22340         * lib/unictype/categ_P.h: Likewise.
22341         * lib/unictype/categ_Po.h: Likewise.
22342         * lib/unictype/categ_S.h: Likewise.
22343         * lib/unictype/categ_Sc.h: Likewise.
22344         * lib/unictype/categ_Sk.h: Likewise.
22345         * lib/unictype/categ_Sm.h: Likewise.
22346         * lib/unictype/categ_So.h: Likewise.
22347         * lib/unictype/categ_of.h: Likewise.
22348         * lib/unictype/combining.h: Likewise.
22349         * lib/unictype/ctype_alnum.h: Likewise.
22350         * lib/unictype/ctype_alpha.h: Likewise.
22351         * lib/unictype/ctype_graph.h: Likewise.
22352         * lib/unictype/ctype_lower.h: Likewise.
22353         * lib/unictype/ctype_print.h: Likewise.
22354         * lib/unictype/ctype_punct.h: Likewise.
22355         * lib/unictype/ctype_upper.h: Likewise.
22356         * lib/unictype/decdigit.h: Likewise.
22357         * lib/unictype/digit.h: Likewise.
22358         * lib/unictype/numeric.h: Likewise.
22359         * lib/unictype/pr_alphabetic.h: Likewise.
22360         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22361         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22362         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22363         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22364         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22365         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22366         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22367         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22368         * lib/unictype/pr_case_ignorable.h: Likewise.
22369         * lib/unictype/pr_cased.h: Likewise.
22370         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
22371         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
22372         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
22373         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
22374         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
22375         * lib/unictype/pr_combining.h: Likewise.
22376         * lib/unictype/pr_composite.h: Likewise.
22377         * lib/unictype/pr_currency_symbol.h: Likewise.
22378         * lib/unictype/pr_decimal_digit.h: Likewise.
22379         * lib/unictype/pr_deprecated.h: Likewise.
22380         * lib/unictype/pr_format_control.h: Likewise.
22381         * lib/unictype/pr_grapheme_base.h: Likewise.
22382         * lib/unictype/pr_grapheme_extend.h: Likewise.
22383         * lib/unictype/pr_grapheme_link.h: Likewise.
22384         * lib/unictype/pr_id_continue.h: Likewise.
22385         * lib/unictype/pr_id_start.h: Likewise.
22386         * lib/unictype/pr_ideographic.h: Likewise.
22387         * lib/unictype/pr_lowercase.h: Likewise.
22388         * lib/unictype/pr_math.h: Likewise.
22389         * lib/unictype/pr_numeric.h: Likewise.
22390         * lib/unictype/pr_other_alphabetic.h: Likewise.
22391         * lib/unictype/pr_other_id_continue.h: Likewise.
22392         * lib/unictype/pr_other_math.h: Likewise.
22393         * lib/unictype/pr_punctuation.h: Likewise.
22394         * lib/unictype/pr_sentence_terminal.h: Likewise.
22395         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22396         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22397         * lib/unictype/pr_unified_ideograph.h: Likewise.
22398         * lib/unictype/pr_uppercase.h: Likewise.
22399         * lib/unictype/pr_xid_continue.h: Likewise.
22400         * lib/unictype/pr_xid_start.h: Likewise.
22401         * lib/unictype/scripts.h: Likewise.
22402         * lib/unictype/scripts_byname.gperf: Likewise.
22403         * lib/unictype/sy_java_ident.h: Likewise.
22404         * lib/unigbrk/gbrkprop.h: Likewise.
22405         * lib/unilbrk/lbrkprop1.h: Likewise.
22406         * lib/unilbrk/lbrkprop2.h: Likewise.
22407         * lib/uninorm/decomposition-table2.h: Likewise.
22408         * lib/uniwbrk/wbrkprop.h: Likewise.
22409         * tests/unicase/test-cased.c: Likewise.
22410         * tests/unicase/test-ignorable.c: Likewise.
22411         * tests/unicase/test-uc_tolower.c: Likewise.
22412         * tests/unicase/test-uc_totitle.c: Likewise.
22413         * tests/unicase/test-uc_toupper.c: Likewise.
22414         * tests/unictype/test-categ_C.c: Likewise.
22415         * tests/unictype/test-categ_Cn.c: Likewise.
22416         * tests/unictype/test-categ_L.c: Likewise.
22417         * tests/unictype/test-categ_Ll.c: Likewise.
22418         * tests/unictype/test-categ_Lm.c: Likewise.
22419         * tests/unictype/test-categ_Lo.c: Likewise.
22420         * tests/unictype/test-categ_Lu.c: Likewise.
22421         * tests/unictype/test-categ_M.c: Likewise.
22422         * tests/unictype/test-categ_Mc.c: Likewise.
22423         * tests/unictype/test-categ_Me.c: Likewise.
22424         * tests/unictype/test-categ_Mn.c: Likewise.
22425         * tests/unictype/test-categ_N.c: Likewise.
22426         * tests/unictype/test-categ_Nd.c: Likewise.
22427         * tests/unictype/test-categ_No.c: Likewise.
22428         * tests/unictype/test-categ_P.c: Likewise.
22429         * tests/unictype/test-categ_Po.c: Likewise.
22430         * tests/unictype/test-categ_S.c: Likewise.
22431         * tests/unictype/test-categ_Sc.c: Likewise.
22432         * tests/unictype/test-categ_Sk.c: Likewise.
22433         * tests/unictype/test-categ_Sm.c: Likewise.
22434         * tests/unictype/test-categ_So.c: Likewise.
22435         * tests/unictype/test-ctype_alnum.c: Likewise.
22436         * tests/unictype/test-ctype_alpha.c: Likewise.
22437         * tests/unictype/test-ctype_graph.c: Likewise.
22438         * tests/unictype/test-ctype_lower.c: Likewise.
22439         * tests/unictype/test-ctype_print.c: Likewise.
22440         * tests/unictype/test-ctype_punct.c: Likewise.
22441         * tests/unictype/test-ctype_upper.c: Likewise.
22442         * tests/unictype/test-decdigit.h: Likewise.
22443         * tests/unictype/test-digit.h: Likewise.
22444         * tests/unictype/test-numeric.h: Likewise.
22445         * tests/unictype/test-pr_alphabetic.c: Likewise.
22446         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22447         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22448         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22449         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22450         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22451         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22452         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22453         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22454         * tests/unictype/test-pr_case_ignorable.c: Likewise.
22455         * tests/unictype/test-pr_cased.c: Likewise.
22456         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
22457         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
22458         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
22459         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
22460         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
22461         * tests/unictype/test-pr_combining.c: Likewise.
22462         * tests/unictype/test-pr_composite.c: Likewise.
22463         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22464         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22465         * tests/unictype/test-pr_deprecated.c: Likewise.
22466         * tests/unictype/test-pr_format_control.c: Likewise.
22467         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22468         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22469         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22470         * tests/unictype/test-pr_id_continue.c: Likewise.
22471         * tests/unictype/test-pr_id_start.c: Likewise.
22472         * tests/unictype/test-pr_ideographic.c: Likewise.
22473         * tests/unictype/test-pr_lowercase.c: Likewise.
22474         * tests/unictype/test-pr_math.c: Likewise.
22475         * tests/unictype/test-pr_numeric.c: Likewise.
22476         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22477         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22478         * tests/unictype/test-pr_other_math.c: Likewise.
22479         * tests/unictype/test-pr_punctuation.c: Likewise.
22480         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22481         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22482         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22483         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22484         * tests/unictype/test-pr_uppercase.c: Likewise.
22485         * tests/unictype/test-pr_xid_continue.c: Likewise.
22486         * tests/unictype/test-pr_xid_start.c: Likewise.
22487         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22488         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22489         changes.
22490         * lib/unictype/categ_Cc.h: Likewise.
22491         * lib/unictype/categ_Cf.h: Likewise.
22492         * lib/unictype/categ_Co.h: Likewise.
22493         * lib/unictype/categ_Cs.h: Likewise.
22494         * lib/unictype/categ_Lt.h: Likewise.
22495         * lib/unictype/categ_Nl.h: Likewise.
22496         * lib/unictype/categ_Pc.h: Likewise.
22497         * lib/unictype/categ_Pd.h: Likewise.
22498         * lib/unictype/categ_Pe.h: Likewise.
22499         * lib/unictype/categ_Pf.h: Likewise.
22500         * lib/unictype/categ_Pi.h: Likewise.
22501         * lib/unictype/categ_Ps.h: Likewise.
22502         * lib/unictype/categ_Z.h: Likewise.
22503         * lib/unictype/categ_Zl.h: Likewise.
22504         * lib/unictype/categ_Zp.h: Likewise.
22505         * lib/unictype/categ_Zs.h: Likewise.
22506         * lib/unictype/ctype_blank.h: Likewise.
22507         * lib/unictype/ctype_cntrl.h: Likewise.
22508         * lib/unictype/ctype_digit.h: Likewise.
22509         * lib/unictype/ctype_space.h: Likewise.
22510         * lib/unictype/ctype_xdigit.h: Likewise.
22511         * lib/unictype/mirror.h: Likewise.
22512         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22513         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22514         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22515         * lib/unictype/pr_bidi_control.h: Likewise.
22516         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22517         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22518         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22519         * lib/unictype/pr_bidi_pdf.h: Likewise.
22520         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22521         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22522         * lib/unictype/pr_dash.h: Likewise.
22523         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22524         * lib/unictype/pr_diacritic.h: Likewise.
22525         * lib/unictype/pr_extender.h: Likewise.
22526         * lib/unictype/pr_hex_digit.h: Likewise.
22527         * lib/unictype/pr_hyphen.h: Likewise.
22528         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22529         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22530         * lib/unictype/pr_ignorable_control.h: Likewise.
22531         * lib/unictype/pr_iso_control.h: Likewise.
22532         * lib/unictype/pr_join_control.h: Likewise.
22533         * lib/unictype/pr_left_of_pair.h: Likewise.
22534         * lib/unictype/pr_line_separator.h: Likewise.
22535         * lib/unictype/pr_logical_order_exception.h: Likewise.
22536         * lib/unictype/pr_non_break.h: Likewise.
22537         * lib/unictype/pr_not_a_character.h: Likewise.
22538         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22539         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22540         * lib/unictype/pr_other_id_start.h: Likewise.
22541         * lib/unictype/pr_other_lowercase.h: Likewise.
22542         * lib/unictype/pr_other_uppercase.h: Likewise.
22543         * lib/unictype/pr_paired_punctuation.h: Likewise.
22544         * lib/unictype/pr_paragraph_separator.h: Likewise.
22545         * lib/unictype/pr_pattern_syntax.h: Likewise.
22546         * lib/unictype/pr_pattern_white_space.h: Likewise.
22547         * lib/unictype/pr_private_use.h: Likewise.
22548         * lib/unictype/pr_quotation_mark.h: Likewise.
22549         * lib/unictype/pr_radical.h: Likewise.
22550         * lib/unictype/pr_soft_dotted.h: Likewise.
22551         * lib/unictype/pr_space.h: Likewise.
22552         * lib/unictype/pr_titlecase.h: Likewise.
22553         * lib/unictype/pr_variation_selector.h: Likewise.
22554         * lib/unictype/pr_white_space.h: Likewise.
22555         * lib/unictype/pr_zero_width.h: Likewise.
22556         * lib/unictype/sy_c_ident.h: Likewise.
22557         * lib/unictype/sy_c_whitespace.h: Likewise.
22558         * lib/unictype/sy_java_whitespace.h: Likewise.
22559         * lib/uninorm/composition-table.gperf: Likewise.
22560         * lib/uninorm/decomposition-table1.h: Likewise.
22561         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22562         LB8.
22563         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22564         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22565         * modules/unictype/*: Bump version number of expected libunistring
22566         version.
22567
22568 2011-01-09  Bruno Haible  <bruno@clisp.org>
22569
22570         Update to Unicode 5.2.0.
22571         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22572         trailing whitespace removed.
22573
22574 2011-01-09  Bruno Haible  <bruno@clisp.org>
22575
22576         New Unicode character properties, from Unicode 5.2.0.
22577         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22578         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22579         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22580         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22581         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22582         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22583         uc_is_property_cased, uc_is_property_case_ignorable,
22584         uc_is_property_changes_when_lowercased,
22585         uc_is_property_changes_when_uppercased,
22586         uc_is_property_changes_when_titlecased,
22587         uc_is_property_changes_when_casefolded,
22588         uc_is_property_changes_when_casemapped): New declarations.
22589         * lib/unictype/pr_byname.gperf: Add the new properties.
22590         * modules/unictype/property-byname (Depends-on): Depend on the new
22591         properties modules.
22592         * modules/unictype/property-all (Depends-on): Likewise.
22593         * MODULES.html.sh (Unicode string functions): Add
22594         unictype/property-case-ignorable, unictype/property-cased,
22595         unictype/property-changes-when-casefolded,
22596         unictype/property-changes-when-casemapped,
22597         unictype/property-changes-when-lowercased,
22598         unictype/property-changes-when-titlecased,
22599         unictype/property-changes-when-uppercased.
22600
22601         New module 'unictype/property-changes-when-casemapped'.
22602         * modules/unictype/property-changes-when-casemapped: New file.
22603         * lib/unictype/pr_changes_when_casemapped.c: New file.
22604         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22605         generated by gen-uni-tables.
22606         * modules/unictype/property-changes-when-casemapped-tests: New file.
22607         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22608         automatically generated by gen-uni-tables.
22609
22610         New module 'unictype/property-changes-when-casefolded'.
22611         * modules/unictype/property-changes-when-casefolded: New file.
22612         * lib/unictype/pr_changes_when_casefolded.c: New file.
22613         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22614         generated by gen-uni-tables.
22615         * modules/unictype/property-changes-when-casefolded-tests: New file.
22616         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22617         automatically generated by gen-uni-tables.
22618
22619         New module 'unictype/property-changes-when-titlecased'.
22620         * modules/unictype/property-changes-when-titlecased: New file.
22621         * lib/unictype/pr_changes_when_titlecased.c: New file.
22622         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22623         generated by gen-uni-tables.
22624         * modules/unictype/property-changes-when-titlecased-tests: New file.
22625         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22626         automatically generated by gen-uni-tables.
22627
22628         New module 'unictype/property-changes-when-uppercased'.
22629         * modules/unictype/property-changes-when-uppercased: New file.
22630         * lib/unictype/pr_changes_when_uppercased.c: New file.
22631         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22632         generated by gen-uni-tables.
22633         * modules/unictype/property-changes-when-uppercased-tests: New file.
22634         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22635         automatically generated by gen-uni-tables.
22636
22637         New module 'unictype/property-changes-when-lowercased'.
22638         * modules/unictype/property-changes-when-lowercased: New file.
22639         * lib/unictype/pr_changes_when_lowercased.c: New file.
22640         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22641         generated by gen-uni-tables.
22642         * modules/unictype/property-changes-when-lowercased-tests: New file.
22643         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22644         automatically generated by gen-uni-tables.
22645
22646         New module 'unictype/property-case-ignorable'.
22647         * modules/unictype/property-case-ignorable: New file.
22648         * lib/unictype/pr_case_ignorable.c: New file.
22649         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22650         by gen-uni-tables.
22651         * modules/unictype/property-case-ignorable-tests: New file.
22652         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22653         generated by gen-uni-tables.
22654
22655         New module 'unictype/property-cased'.
22656         * modules/unictype/property-cased: New file.
22657         * lib/unictype/pr_cased.c: New file.
22658         * lib/unictype/pr_cased.h: New file, automatically generated by
22659         gen-uni-tables.
22660         * modules/unictype/property-cased-tests: New file.
22661         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22662         gen-uni-tables.
22663
22664 2011-01-09  Bruno Haible  <bruno@clisp.org>
22665
22666         Update to Unicode 5.2.0.
22667         * lib/gen-uni-tables.c (output_predicate, output_category,
22668         output_combclass, output_bidi_category, output_decimal_digit_test,
22669         output_decimal_digit, output_digit_test, output_digit,
22670         output_numeric_test, output_numeric, output_mirror, output_scripts,
22671         output_scripts_byname, output_blocks, output_ident_category): Fix
22672         comment header.
22673         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22674         get_wbp.
22675         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22676         items.
22677         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22678         Changes_When_Lowercased, Changes_When_Uppercased,
22679         Changes_When_Titlecased, Changes_When_Casefolded,
22680         Changes_When_Casemapped.
22681         (is_property_alphabetic, is_property_default_ignorable_code_point):
22682         Update for Unicode 5.2.0.
22683         (is_property_cased, is_property_case_ignorable,
22684         is_property_changes_when_lowercased,
22685         is_property_changes_when_uppercased,
22686         is_property_changes_when_titlecased,
22687         is_property_changes_when_casefolded,
22688         is_property_changes_when_casemapped): New functions.
22689         (output_properties): Output also the properties cased, case_ignorable,
22690         changes_when_lowercased, changes_when_uppercased,
22691         changes_when_titlecased, changes_when_casefolded,
22692         changes_when_casemapped.
22693         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22694         Unicode TR#11 revision 17 -> 19.
22695         (LBP_CP): New enumeration value.
22696         (LBP_*): Adjust values accordingly.
22697         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22698         TR#14 revision 22 -> 24.
22699         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22700         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22701         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22702         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22703         is_WBP_MIDLETTER.
22704         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22705         the code1 and code2 of each composition rule.
22706         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22707         * lib/unicase/ignorable.h: Likewise.
22708         * lib/unicase/tocasefold.h: Likewise.
22709         * lib/unicase/tolower.h: Likewise.
22710         * lib/unicase/totitle.h: Likewise.
22711         * lib/unicase/toupper.h: Likewise.
22712         * lib/unictype/bidi_of.h: Likewise.
22713         * lib/unictype/blocks.h: Likewise.
22714         * lib/unictype/categ_C.h: Likewise.
22715         * lib/unictype/categ_Cf.h: Likewise.
22716         * lib/unictype/categ_Cn.h: Likewise.
22717         * lib/unictype/categ_L.h: Likewise.
22718         * lib/unictype/categ_Ll.h: Likewise.
22719         * lib/unictype/categ_Lm.h: Likewise.
22720         * lib/unictype/categ_Lo.h: Likewise.
22721         * lib/unictype/categ_Lu.h: Likewise.
22722         * lib/unictype/categ_M.h: Likewise.
22723         * lib/unictype/categ_Mc.h: Likewise.
22724         * lib/unictype/categ_Mn.h: Likewise.
22725         * lib/unictype/categ_N.h: Likewise.
22726         * lib/unictype/categ_Nd.h: Likewise.
22727         * lib/unictype/categ_Nl.h: Likewise.
22728         * lib/unictype/categ_No.h: Likewise.
22729         * lib/unictype/categ_P.h: Likewise.
22730         * lib/unictype/categ_Pd.h: Likewise.
22731         * lib/unictype/categ_Po.h: Likewise.
22732         * lib/unictype/categ_S.h: Likewise.
22733         * lib/unictype/categ_Sc.h: Likewise.
22734         * lib/unictype/categ_So.h: Likewise.
22735         * lib/unictype/categ_of.h: Likewise.
22736         * lib/unictype/combining.h: Likewise.
22737         * lib/unictype/ctype_alnum.h: Likewise.
22738         * lib/unictype/ctype_alpha.h: Likewise.
22739         * lib/unictype/ctype_graph.h: Likewise.
22740         * lib/unictype/ctype_lower.h: Likewise.
22741         * lib/unictype/ctype_print.h: Likewise.
22742         * lib/unictype/ctype_punct.h: Likewise.
22743         * lib/unictype/ctype_upper.h: Likewise.
22744         * lib/unictype/decdigit.h: Likewise.
22745         * lib/unictype/digit.h: Likewise.
22746         * lib/unictype/numeric.h: Likewise.
22747         * lib/unictype/pr_alphabetic.h: Likewise.
22748         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22749         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22750         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22751         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22752         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22753         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22754         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22755         * lib/unictype/pr_combining.h: Likewise.
22756         * lib/unictype/pr_composite.h: Likewise.
22757         * lib/unictype/pr_currency_symbol.h: Likewise.
22758         * lib/unictype/pr_dash.h: Likewise.
22759         * lib/unictype/pr_decimal_digit.h: Likewise.
22760         * lib/unictype/pr_deprecated.h: Likewise.
22761         * lib/unictype/pr_diacritic.h: Likewise.
22762         * lib/unictype/pr_extender.h: Likewise.
22763         * lib/unictype/pr_grapheme_base.h: Likewise.
22764         * lib/unictype/pr_grapheme_extend.h: Likewise.
22765         * lib/unictype/pr_grapheme_link.h: Likewise.
22766         * lib/unictype/pr_id_continue.h: Likewise.
22767         * lib/unictype/pr_id_start.h: Likewise.
22768         * lib/unictype/pr_ideographic.h: Likewise.
22769         * lib/unictype/pr_ignorable_control.h: Likewise.
22770         * lib/unictype/pr_logical_order_exception.h: Likewise.
22771         * lib/unictype/pr_lowercase.h: Likewise.
22772         * lib/unictype/pr_numeric.h: Likewise.
22773         * lib/unictype/pr_other_alphabetic.h: Likewise.
22774         * lib/unictype/pr_punctuation.h: Likewise.
22775         * lib/unictype/pr_sentence_terminal.h: Likewise.
22776         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22777         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22778         * lib/unictype/pr_unified_ideograph.h: Likewise.
22779         * lib/unictype/pr_uppercase.h: Likewise.
22780         * lib/unictype/pr_xid_continue.h: Likewise.
22781         * lib/unictype/pr_xid_start.h: Likewise.
22782         * lib/unictype/pr_zero_width.h: Likewise.
22783         * lib/unictype/scripts.h: Likewise.
22784         * lib/unictype/scripts_byname.gperf: Likewise.
22785         * lib/unictype/sy_java_ident.h: Likewise.
22786         * lib/unigbrk/gbrkprop.h: Likewise.
22787         * lib/unilbrk/lbrkprop1.h: Likewise.
22788         * lib/unilbrk/lbrkprop2.h: Likewise.
22789         * lib/unilbrk/lbrktables.h: Likewise.
22790         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22791         LBP_CP. Implement rule LB30.
22792         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22793         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22794         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22795         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22796         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22797         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22798         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22799         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22800         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22801         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22802         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22803         bits instead of 16 bits in the code1 and code2 of each composition
22804         rule.
22805         (uc_composition): Update for Unicode 5.2.0.
22806         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22807         * lib/uninorm/decomposition-table2.h: Likewise.
22808         * lib/uniwbrk/wbrkprop.h: Likewise.
22809         * tests/unicase/test-cased.c: Likewise.
22810         * tests/unicase/test-ignorable.c: Likewise.
22811         * tests/unicase/test-uc_tolower.c: Likewise.
22812         * tests/unicase/test-uc_totitle.c: Likewise.
22813         * tests/unicase/test-uc_toupper.c: Likewise.
22814         * tests/unictype/test-categ_C.c: Likewise.
22815         * tests/unictype/test-categ_Cf.c: Likewise.
22816         * tests/unictype/test-categ_Cn.c: Likewise.
22817         * tests/unictype/test-categ_L.c: Likewise.
22818         * tests/unictype/test-categ_Ll.c: Likewise.
22819         * tests/unictype/test-categ_Lm.c: Likewise.
22820         * tests/unictype/test-categ_Lo.c: Likewise.
22821         * tests/unictype/test-categ_Lu.c: Likewise.
22822         * tests/unictype/test-categ_M.c: Likewise.
22823         * tests/unictype/test-categ_Mc.c: Likewise.
22824         * tests/unictype/test-categ_Mn.c: Likewise.
22825         * tests/unictype/test-categ_N.c: Likewise.
22826         * tests/unictype/test-categ_Nd.c: Likewise.
22827         * tests/unictype/test-categ_Nl.c: Likewise.
22828         * tests/unictype/test-categ_No.c: Likewise.
22829         * tests/unictype/test-categ_P.c: Likewise.
22830         * tests/unictype/test-categ_Pd.c: Likewise.
22831         * tests/unictype/test-categ_Po.c: Likewise.
22832         * tests/unictype/test-categ_S.c: Likewise.
22833         * tests/unictype/test-categ_Sc.c: Likewise.
22834         * tests/unictype/test-categ_So.c: Likewise.
22835         * tests/unictype/test-ctype_alnum.c: Likewise.
22836         * tests/unictype/test-ctype_alpha.c: Likewise.
22837         * tests/unictype/test-ctype_graph.c: Likewise.
22838         * tests/unictype/test-ctype_lower.c: Likewise.
22839         * tests/unictype/test-ctype_print.c: Likewise.
22840         * tests/unictype/test-ctype_punct.c: Likewise.
22841         * tests/unictype/test-ctype_upper.c: Likewise.
22842         * tests/unictype/test-decdigit.h: Likewise.
22843         * tests/unictype/test-digit.h: Likewise.
22844         * tests/unictype/test-numeric.h: Likewise.
22845         * tests/unictype/test-pr_alphabetic.c: Likewise.
22846         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22847         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22848         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22849         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22850         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22851         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22852         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22853         * tests/unictype/test-pr_combining.c: Likewise.
22854         * tests/unictype/test-pr_composite.c: Likewise.
22855         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22856         * tests/unictype/test-pr_dash.c: Likewise.
22857         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22858         * tests/unictype/test-pr_deprecated.c: Likewise.
22859         * tests/unictype/test-pr_diacritic.c: Likewise.
22860         * tests/unictype/test-pr_extender.c: Likewise.
22861         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22862         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22863         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22864         * tests/unictype/test-pr_id_continue.c: Likewise.
22865         * tests/unictype/test-pr_id_start.c: Likewise.
22866         * tests/unictype/test-pr_ideographic.c: Likewise.
22867         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22868         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22869         * tests/unictype/test-pr_lowercase.c: Likewise.
22870         * tests/unictype/test-pr_numeric.c: Likewise.
22871         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22872         * tests/unictype/test-pr_punctuation.c: Likewise.
22873         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22874         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22875         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22876         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22877         * tests/unictype/test-pr_uppercase.c: Likewise.
22878         * tests/unictype/test-pr_xid_continue.c: Likewise.
22879         * tests/unictype/test-pr_xid_start.c: Likewise.
22880         * tests/unictype/test-pr_zero_width.c: Likewise.
22881         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22882         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22883         changed behaviour: line breaking is now disallowed between a letter
22884         or '=' and '('.
22885         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22886         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22887         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22888         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22889         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22890         lib/uniwidth/width.c.
22891         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22892         without comments, but with the original copyright notice.
22893         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22894         changes.
22895         * lib/unictype/categ_Cc.h: Likewise.
22896         * lib/unictype/categ_Co.h: Likewise.
22897         * lib/unictype/categ_Cs.h: Likewise.
22898         * lib/unictype/categ_Lt.h: Likewise.
22899         * lib/unictype/categ_Me.h: Likewise.
22900         * lib/unictype/categ_Pc.h: Likewise.
22901         * lib/unictype/categ_Pe.h: Likewise.
22902         * lib/unictype/categ_Pf.h: Likewise.
22903         * lib/unictype/categ_Pi.h: Likewise.
22904         * lib/unictype/categ_Ps.h: Likewise.
22905         * lib/unictype/categ_Sk.h: Likewise.
22906         * lib/unictype/categ_Sm.h: Likewise.
22907         * lib/unictype/categ_Z.h: Likewise.
22908         * lib/unictype/categ_Zl.h: Likewise.
22909         * lib/unictype/categ_Zp.h: Likewise.
22910         * lib/unictype/categ_Zs.h: Likewise.
22911         * lib/unictype/ctype_blank.h: Likewise.
22912         * lib/unictype/ctype_cntrl.h: Likewise.
22913         * lib/unictype/ctype_digit.h: Likewise.
22914         * lib/unictype/ctype_space.h: Likewise.
22915         * lib/unictype/ctype_xdigit.h: Likewise.
22916         * lib/unictype/mirror.h: Likewise.
22917         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22918         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22919         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22920         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22921         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22922         * lib/unictype/pr_bidi_control.h: Likewise.
22923         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22924         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22925         * lib/unictype/pr_bidi_pdf.h: Likewise.
22926         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22927         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22928         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22929         * lib/unictype/pr_format_control.h: Likewise.
22930         * lib/unictype/pr_hex_digit.h: Likewise.
22931         * lib/unictype/pr_hyphen.h: Likewise.
22932         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22933         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22934         * lib/unictype/pr_iso_control.h: Likewise.
22935         * lib/unictype/pr_join_control.h: Likewise.
22936         * lib/unictype/pr_left_of_pair.h: Likewise.
22937         * lib/unictype/pr_line_separator.h: Likewise.
22938         * lib/unictype/pr_math.h: Likewise.
22939         * lib/unictype/pr_non_break.h: Likewise.
22940         * lib/unictype/pr_not_a_character.h: Likewise.
22941         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22942         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22943         * lib/unictype/pr_other_id_continue.h: Likewise.
22944         * lib/unictype/pr_other_id_start.h: Likewise.
22945         * lib/unictype/pr_other_lowercase.h: Likewise.
22946         * lib/unictype/pr_other_math.h: Likewise.
22947         * lib/unictype/pr_other_uppercase.h: Likewise.
22948         * lib/unictype/pr_paired_punctuation.h: Likewise.
22949         * lib/unictype/pr_paragraph_separator.h: Likewise.
22950         * lib/unictype/pr_pattern_syntax.h: Likewise.
22951         * lib/unictype/pr_pattern_white_space.h: Likewise.
22952         * lib/unictype/pr_private_use.h: Likewise.
22953         * lib/unictype/pr_quotation_mark.h: Likewise.
22954         * lib/unictype/pr_radical.h: Likewise.
22955         * lib/unictype/pr_soft_dotted.h: Likewise.
22956         * lib/unictype/pr_space.h: Likewise.
22957         * lib/unictype/pr_titlecase.h: Likewise.
22958         * lib/unictype/pr_variation_selector.h: Likewise.
22959         * lib/unictype/pr_white_space.h: Likewise.
22960         * lib/unictype/sy_c_ident.h: Likewise.
22961         * lib/unictype/sy_c_whitespace.h: Likewise.
22962         * lib/unictype/sy_java_whitespace.h: Likewise.
22963         * modules/uni*/*: Bump version number of expected libunistring version.
22964         Reported by Simon Josefsson.
22965
22966 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22967
22968         useless-if-before-free: fix typo in --help and make the internal,
22969         automatic version date update process work once again.
22970         --help output contained a NUL character instead of the
22971         backslash-zero that was intended.  Also, the "must lie within
22972         the first 8 lines" line is on line 9, and hence not getting
22973         automatically updated.
22974         * build-aux/useless-if-before-free: Fix the former by adding a
22975         backslash, and the latter by condensing the three lines of what-it-does
22976         to a single line, leaving one line of slack for the future.
22977
22978 2011-01-09  Bruno Haible  <bruno@clisp.org>
22979
22980         uniwidth/width: Fix width of U+1D173..U+1D17A.
22981         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22982         symbolic_width, output_width_property_test): New functions.
22983         (main): Invoke output_nonspacing_property, output_width_property_test.
22984         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22985         U+1D173..U+1D17A.
22986         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22987         1.
22988         * modules/uniwidth/*: Bump version number of expected libunistring
22989         version.
22990         * modules/unilbrk/*: Likewise.
22991
22992 2011-01-08  Bruno Haible  <bruno@clisp.org>
22993
22994         uninorm tests: Preserve copyright of Unicode data file.
22995         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22996         Mention modifications.
22997
22998 2011-01-08  Bruno Haible  <bruno@clisp.org>
22999
23000         gen-uni-tables: Prepare for Unicode 5.2.0.
23001         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
23002         (debug_output_lbp, output_lbp): Update.
23003
23004 2011-01-08  Bruno Haible  <bruno@clisp.org>
23005
23006         unilbrk: Clarify gen-uni-tables.c code.
23007         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
23008         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
23009         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
23010
23011 2011-01-07  Bruno Haible  <bruno@clisp.org>
23012
23013         strtod: Restore errno when successfully parsing Infinity or NaN.
23014         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
23015         restore the original errno.
23016
23017 2011-01-07  Bruno Haible  <bruno@clisp.org>
23018
23019         remove test: Avoid failure on HP-UX 11.
23020         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
23021
23022 2011-01-07  Bruno Haible  <bruno@clisp.org>
23023
23024         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
23025         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
23026         error code.
23027
23028 2011-01-07  Pádraig Brady <P@draigBrady.com>
23029
23030         ignore-value: fixup comments, and add Eric Blake
23031         as an author since he rewrote the macros.
23032         * lib/ignore-value.h (ignore_value):  State that
23033         we now support aggregates.  Also specify exactly
23034         when the GCC warn_unused_result feature was added.
23035
23036 2011-01-06  Eric Blake  <eblake@redhat.com>
23037
23038         ignore-value: support aggregate types
23039         * lib/ignore-value.h (ignore_value): Provide separate gcc
23040         definition.
23041         * modules/ignore-value-tests: New test module.
23042         * tests/test-ignore-value.c: New test.
23043
23044         maint.mk: improve sc_prohibit_strcmp regex
23045         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23046         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23047         definition of STRNEQ.
23048
23049         signal: work around Haiku issue with SIGBUS
23050         * lib/siglist.h: Add comment.
23051         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23052         strsignal's favoring of SIGSEGV.
23053         * tests/test-signal.c (main): Avoid test failure.
23054         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23055         Reported by Scott McCreary.
23056
23057         maint.mk: add pre-release check to ensure submodule commits are public
23058         * top/maint.mk (public-submodule-commit): New rule.
23059         (submodule-checks): New variable.
23060         (alpha beta stable): Depend on the variable.
23061
23062 2011-01-05  Pádraig Brady <P@draigBrady.com>
23063         and Jim Meyering  <meyering@redhat.com>
23064
23065         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23066         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23067         (ATTRIBUTE_DEPRECATED): Define.
23068         (_ignore_case): New function.
23069         (ignore_value): New macro, to replace the old function.
23070         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23071         * modules/ignore-value (Depends-on): Add stdint.
23072
23073 2011-01-04  Eric Blake  <eblake@redhat.com>
23074
23075         doc: regenerate INSTALL
23076         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23077         @firstparagraphindent support, now that autoconf dropped it.
23078         (INSTALL_PRELUDE): Reinstate old macro.
23079         * doc/install.texi: Resync from autoconf.
23080         * doc/INSTALL: Reflect recent autoconf update.
23081         * doc/INSTALL.ISO: Likewise.
23082         * doc/INSTALL.UTF-8: Likewise.
23083         Reported by Karl Berry.
23084
23085 2011-01-04  Bruce Korb  <address@hidden>
23086
23087         git-version-gen: avoid a sub-shell
23088         * build-aux/git-version-gen: Redirect stderr in `...` via
23089         "exec 2>...", rather than via an added sub-shell.
23090
23091 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23092
23093         git-version-gen: use (...) rather than sh -c '...'
23094         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23095         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23096
23097 2011-01-03  Jim Meyering  <meyering@redhat.com>
23098
23099         git-version-gen: convert leading TABs to spaces
23100         * build-aux/git-version-gen: Expand leading TABs.
23101
23102         git-version-gen: handle failed "git rev-list"
23103         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23104         from git and proceeding as if it had succeeded but printed no SHA1
23105         checksums, suppress the diagnostic and handle the failure.
23106         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23107
23108         git-version-gen: include command name in one more diagnostic
23109         * build-aux/git-version-gen: When the required .tarball-version file
23110         was missing or unreadable, you might see the diagnostic from "cat",
23111         but no trace of the name of the invoking script.  Now, you still see
23112         the diagnostic from cat, but also get one from "git-version-gen: ".
23113         Inspired by a patch from Bruce Korb.
23114
23115         update-copyright: adjust test to match changed code
23116         * tests/test-update-copyright.sh: Change test's expected output
23117         to match new actual output.
23118
23119 2011-01-02  Bruno Haible  <bruno@clisp.org>
23120
23121         getlogin_r: Avoid test failure on HP-UX 11.
23122         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23123         ERANGE when the second argument is zero.
23124         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23125         portability problem.
23126
23127 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23128
23129         * build-aux/update-copyright: doc Simon's changes
23130
23131 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23132
23133         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23134         environment variable.
23135
23136 2011-01-02  Bruno Haible  <bruno@clisp.org>
23137
23138         unigbrk: Avoid gcc warnings.
23139         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23140         unused variable.
23141         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23142         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23143         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23144         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23145         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23146         Change type of first argument to 'const char *'.
23147         (main): Remove unused variable.
23148         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23149         type of first argument to 'const char *'.
23150         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23151         Likewise.
23152         (main): Change type of variable 's'.
23153         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23154         to 'int'.
23155
23156 2011-01-02  Bruno Haible  <bruno@clisp.org>
23157
23158         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23159         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23160         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23161         bug.
23162         * lib/pwrite.c: Undo 2010-12-31 patch.
23163         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23164
23165 2011-01-02  Bruno Haible  <bruno@clisp.org>
23166
23167         pread: Fix test whether it works.
23168         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23169
23170 2011-01-02  Bruno Haible  <bruno@clisp.org>
23171
23172         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23173         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23174         ends in "6". Don't require a specific month name. Try also the locale
23175         names found on HP-UX 11 and Solaris 7.
23176
23177 2011-01-02  Bruno Haible  <bruno@clisp.org>
23178
23179         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23180         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23181         C linkage.
23182         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23183
23184 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23185
23186         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23187         for consistency, since the "cluster" term is not used elsewhere.
23188         * lib/unigbrk.in.h: Update name.
23189         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23190         * lib/unigbrk/u16-grapheme-next.c: Update name.
23191         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23192         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23193         * lib/unigbrk/u32-grapheme-next.c: Update name.
23194         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23195         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23196         * lib/unigbrk/u8-grapheme-next.c: Update name.
23197         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23198         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23199         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23200         Suggested by Bruno Haible.
23201
23202 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23203
23204         Remove module 'u8-grapheme-len' as too redundant with
23205         'u8-grapheme-next'.
23206         * modules/unigbrk/u8-grapheme-len: Delete file.
23207         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23208         * lib/unigbrk.in.h: Remove prototype for deleted function.
23209         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23210         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23211
23212         Remove module 'u16-grapheme-len' as too redundant with
23213         'u16-grapheme-next'.
23214         * modules/unigbrk/u16-grapheme-len: Delete file.
23215         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23216         * lib/unigbrk.in.h: Remove prototype for deleted function.
23217         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23218         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23219
23220         Remove module 'u32-grapheme-len' as too redundant with
23221         'u32-grapheme-next'.
23222         * modules/unigbrk/u32-grapheme-len: Delete file.
23223         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23224         * lib/unigbrk.in.h: Remove prototype for deleted function.
23225         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23226         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23227
23228         Suggested by Bruno Haible.
23229
23230 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23231
23232         * unigbrk.in.h: Fix typo: "ben" => "been".
23233         Reported by Bruno Haible.
23234
23235 2011-01-01  Jim Meyering  <meyering@redhat.com>
23236
23237         maint: update almost all copyright ranges to include 2011
23238         Run the new "make update-copyright" rule.
23239
23240 2011-01-01  Jim Meyering  <meyering@redhat.com>
23241
23242         maint: update-copyright: exempt doc/INSTALL*
23243         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23244         since they are generated.  Suggested by Bruno Haible.
23245
23246 2011-01-01  Jim Meyering  <meyering@redhat.com>
23247
23248         maint: refine the update-copyright rule
23249         * Makefile (update-copyright): Also exclude any file that includes
23250         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23251         code that merely generates the comment.
23252
23253 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23254
23255         New module 'u8-grapheme-len'.
23256         * modules/unigbrk/u8-grapheme-len: New file.
23257         * modules/unigbrk/u8-grapheme-len-tests: New file.
23258         * lib/unigbrk.in.h: Add prototype for new function.
23259         * lib/unigbrk/u8-grapheme-len.c: New file.
23260         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23261
23262         New module 'u16-grapheme-len'.
23263         * modules/unigbrk/u16-grapheme-len: New file.
23264         * modules/unigbrk/u16-grapheme-len-tests: New file.
23265         * lib/unigbrk.in.h: Add prototype for new function.
23266         * lib/unigbrk/u16-grapheme-len.c: New file.
23267         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23268
23269         New module 'u32-grapheme-len'.
23270         * modules/unigbrk/u32-grapheme-len: New file.
23271         * modules/unigbrk/u32-grapheme-len-tests: New file.
23272         * lib/unigbrk.in.h: Add prototype for new function.
23273         * lib/unigbrk/u32-grapheme-len.c: New file.
23274         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23275
23276         New module 'u8-grapheme-next'.
23277         * modules/unigbrk/u8-grapheme-next: New file.
23278         * modules/unigbrk/u8-grapheme-next-tests: New file.
23279         * lib/unigbrk.in.h: Add prototype for new function.
23280         * lib/unigbrk/u8-grapheme-next.c: New file.
23281         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23282
23283         New module 'u16-grapheme-next'.
23284         * modules/unigbrk/u16-grapheme-next: New file.
23285         * modules/unigbrk/u16-grapheme-next-tests: New file.
23286         * lib/unigbrk.in.h: Add prototype for new function.
23287         * lib/unigbrk/u16-grapheme-next.c: New file.
23288         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23289
23290         New module 'u32-grapheme-next'.
23291         * modules/unigbrk/u32-grapheme-next: New file.
23292         * modules/unigbrk/u32-grapheme-next-tests: New file.
23293         * lib/unigbrk.in.h: Add prototype for new function.
23294         * lib/unigbrk/u32-grapheme-next.c: New file.
23295         * tests/unigbrk/test-u32-grapheme-next.c: New file.
23296
23297         New module 'u8-grapheme-prev'.
23298         * modules/unigbrk/u8-grapheme-prev: New file.
23299         * modules/unigbrk/u8-grapheme-prev-tests: New file.
23300         * lib/unigbrk.in.h: Add prototype for new function.
23301         * lib/unigbrk/u8-grapheme-prev.c: New file.
23302         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23303
23304         New module 'u16-grapheme-prev'.
23305         * modules/unigbrk/u16-grapheme-prev: New file.
23306         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23307         * lib/unigbrk.in.h: Add prototype for new function.
23308         * lib/unigbrk/u16-grapheme-prev.c: New file.
23309         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23310
23311         New module 'u32-grapheme-prev'.
23312         * modules/unigbrk/u32-grapheme-prev: New file.
23313         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23314         * lib/unigbrk.in.h: Add prototype for new function.
23315         * lib/unigbrk/u32-grapheme-prev.c: New file.
23316         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23317
23318         New module 'u8-grapheme-breaks'.
23319         * modules/unigbrk/u8-grapheme-breaks: New file.
23320         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23321         * lib/unigbrk.in.h: Add prototype for new function.
23322         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23323         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23324
23325         New module 'u16-grapheme-breaks'.
23326         * modules/unigbrk/u16-grapheme-breaks: New file.
23327         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23328         * lib/unigbrk.in.h: Add prototype for new function.
23329         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23330         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23331
23332         New module 'u32-grapheme-breaks'.
23333         * modules/unigbrk/u32-grapheme-breaks: New file.
23334         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23335         * lib/unigbrk.in.h: Add prototype for new function.
23336         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23337         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23338
23339         New module 'ulc-grapheme-breaks'.
23340         * modules/unigbrk/ulc-grapheme-breaks: New file.
23341         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23342         * m4/locale-ar.m4: New file.
23343         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23344         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23345         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23346
23347 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23348
23349         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23350         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23351         modified how this file was generated before I initially submitted
23352         the module, but failed to regenerate it.  This meant that several
23353         of the level2 entries were wrong.
23354         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23355         Remove the division-by-2 that is folded into the table now that
23356         gbrkprop.h has been regenerated properly.  Now -1 entries are
23357         handled correctly.
23358
23359         New module 'unigbrk/uc-gbrk-prop-tests'.
23360         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23361         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23362         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23363         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
23364
23365 2011-01-01  Bruno Haible  <bruno@clisp.org>
23366
23367         Avoid use of hexadecimal escapes.
23368         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
23369         instead of hexadecimal escapes.
23370
23371 2011-01-01  Jim Meyering  <meyering@redhat.com>
23372
23373         maint: new rule to update copyright year ranges
23374         * Makefile (update-copyright): New rule.
23375
23376         maint: indent with TABs in Makefile
23377         * Makefile: Expand leading sequences of spaces to TABs
23378
23379         version-etc: update the copyright year it reports
23380         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
23381
23382 2010-12-31  Bruno Haible  <bruno@clisp.org>
23383
23384         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
23385         * lib/isfinite.c (zerof, zerod, zerol): New variables.
23386         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
23387         zero.
23388
23389 2010-12-31  Bruno Haible  <bruno@clisp.org>
23390
23391         pwrite: Work around HP-UX 11.11 bug.
23392         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
23393         works and set REPLACE_PWRITE if not.
23394         * lib/pwrite.c (pwrite): Add an implementation that uses the system
23395         function.
23396         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
23397
23398 2010-12-31  Bruno Haible  <bruno@clisp.org>
23399
23400         pread: Work around HP-UX 11 bugs.
23401         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
23402         and set REPLACE_PREAD if not.
23403         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
23404
23405 2010-12-31  Eric Blake  <eblake@redhat.com>
23406
23407         nl_langinfo: fix YESEXPR on Irix 6.5
23408         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
23409         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
23410         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
23411         it.
23412
23413 2010-12-31  Bruno Haible  <bruno@clisp.org>
23414
23415         iconv: Document HP-UX 11 bug.
23416         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
23417
23418 2010-12-31  Bruno Haible  <bruno@clisp.org>
23419
23420         ldexpl: Fix link error on HP-UX 11.
23421         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23422         LDEXPL_LIBM, using $ISNANL_LIBM.
23423
23424 2010-12-31  Eric Blake  <eblake@redhat.com>
23425
23426         ftello: avoid compilation failure with SunStudio c89
23427         * lib/ftello.c (ftello): Use lseek, not llseek.
23428
23429         tests: avoid failing coreutils tests on cygwin
23430         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23431         (create_exe_shims_): Return 0 when skipping.
23432
23433 2010-12-31  Bruno Haible  <bruno@clisp.org>
23434
23435         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23436         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23437
23438 2010-12-31  Bruno Haible  <bruno@clisp.org>
23439
23440         waitpid: Fix link error in C++ mode.
23441         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
23442
23443 2010-12-31  Bruno Haible  <bruno@clisp.org>
23444
23445         isnan: Use GCC built-ins when possible.
23446         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
23447         __builtin_isnan.
23448         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
23449         (isnan): Define using GCC built-ins for GCC >= 4.0.
23450
23451 2010-12-31  Bruno Haible  <bruno@clisp.org>
23452
23453         isnand: Fix mistake.
23454         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
23455         __builtin_isnand.
23456
23457 2010-12-31  Bruno Haible  <bruno@clisp.org>
23458
23459         open: Avoid C++ error on HP-UX 11.
23460         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
23461
23462 2010-12-31  Bruno Haible  <bruno@clisp.org>
23463
23464         time_r: Add missing declarations on HP-UX 11.
23465         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23466         instead of HAVE_LOCALTIME_R.
23467         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23468         HAVE_LOCALTIME_R always.
23469         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23470         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23471         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
23472         HAVE_LOCALTIME_R.
23473         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
23474         * doc/posix-functions/localtime_r.texi: Likewise.
23475
23476 2010-12-29  Eric Blake  <eblake@redhat.com>
23477
23478         mountlist: tweak previous commit
23479         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
23480         Reported by Paul Eggert.
23481
23482         mountlist: fix local drive detection on cygwin
23483         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
23484         that works for cygwin.
23485
23486 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23487
23488         ftoastr, snprintf: ftoastr + snprintf module
23489         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
23490         since the snprintf module now should be good enough here.
23491         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
23492         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
23493         and gl_MODULE_INDICATOR([snprintf]), but the former enables
23494         GNULIB_SNPRINTF only for the test directory, and the latter
23495         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
23496         seems to suffice by itself.
23497
23498 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23499
23500         alloca: one step towards thread-safety
23501         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
23502         need for a static variable.  All callers changed.  This does not
23503         make the alloca replacement thread-safe, but it's one step.
23504
23505         tests: minor indenting change
23506         * tests/init.sh: Sync from coreutils housekeeping patch
23507         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
23508         to keep lines within 80 columns.
23509
23510 2010-12-28  Jim Meyering  <meyering@redhat.com>
23511
23512         regex: don't infloop on persistent failing calloc
23513         * lib/regexec.c (build_trtable): Return failure indication upon
23514         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23515         In glibc, this was fixed for version 2.13:
23516         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23517
23518 2010-12-28  Bruno Haible  <bruno@clisp.org>
23519             Paul Eggert <eggert@cs.ucla.edu>
23520
23521         linkat: Make implementation robust against system behaviour variations.
23522         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23523         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23524         way, and to -2 if it needs a generic runtime test.
23525         * lib/linkat.c (solaris_optimized_link_immediate,
23526         solaris_optimized_link_follow): New functions.
23527         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23528         (check_same_link): Use it.
23529
23530 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23531
23532         New module 'unigbrk/base'.
23533         * modules/unigbrk/base: New file.
23534         * lib/unigbrk.in.h: New file.
23535
23536         New module 'unigbrk/uc-gbrk-prop'.
23537         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23538         * modules/unigbrk/uc-gbrk-prop: New file.
23539         * lib/unigbrk/gbrkprop.h: New file.
23540         * lib/unigbrk/uc-gbrk-prop.c: New file.
23541
23542         New module 'unigbrk/uc-is-grapheme-break'.
23543         * modules/unigbrk/uc-is-grapheme-break: New file.
23544         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23545         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23546         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23547         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23548         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23549
23550         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23551
23552 2010-12-27  Bruno Haible  <bruno@clisp.org>
23553
23554         linkat test: Avoid failure on Solaris 11 2010-11.
23555         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23556
23557 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23558
23559         utimens: work around glibc rounding bug on more platforms
23560         * lib/utimens.c (fdutimens): Work around rounding bug even if
23561         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23562         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23563
23564 2010-12-27  Bruno Haible  <bruno@clisp.org>
23565
23566         select tests: Improve comments.
23567         * tests/test-select.c (do_select): Add comments.
23568
23569 2010-12-27  Bruno Haible  <bruno@clisp.org>
23570
23571         select tests: Safer way of handling timeout.
23572         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23573         at every invocation.
23574
23575 2010-12-27  Bruno Haible  <bruno@clisp.org>
23576
23577         select tests: Use 'bool' where appropriate.
23578         * tests/test-select.c (connect_to_socket): Change argument type to
23579         'bool'.
23580
23581 2010-12-27  Bruno Haible  <bruno@clisp.org>
23582
23583         select tests: Use existing modules.
23584         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23585         (configure.ac): Don't test for unistd.h.
23586         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23587         declared in <unistd.h>.
23588
23589 2010-12-27  Bruno Haible  <bruno@clisp.org>
23590
23591         mbrtowc: Work around a Solaris 7 bug.
23592         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23593         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23594         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23595         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23596         MBRTOWC_NULL_ARG1_BUG.
23597         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23598         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23599         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23600         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23601
23602 2010-12-27  Jim Meyering  <meyering@redhat.com>
23603
23604         read-file.c: tweak syntax
23605         * lib/read-file.c (fread_file): Remove space after "*" in function
23606         definitions.
23607
23608 2010-12-27  Bruno Haible  <bruno@clisp.org>
23609
23610         times test: Avoid gcc warnings on OSF/1.
23611         * tests/test-times.c (main): Cast printf arguments from clock_t to
23612         'long int'.
23613
23614 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23615
23616         utimens: work around glibc rounding bug on older Linux kernels
23617         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23618         on Linux with a glibc whose utimes might not work, then work
23619         around a longstanding glibc bug involving rounding rather than
23620         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23621         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23622
23623 2010-12-26  Bruno Haible  <bruno@clisp.org>
23624
23625         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23626         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23627         _GL_CXXALIAS_SYS.
23628         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23629
23630 2010-12-26  Bruno Haible  <bruno@clisp.org>
23631
23632         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23633         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23634         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23635         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23636         looking for the declaration.
23637         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23638         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23639         problem.
23640         * doc/posix-functions/inet_pton.texi: Likewise.
23641
23642 2010-12-26  Bruno Haible  <bruno@clisp.org>
23643
23644         arpa_inet: Use the common idioms with C++ support.
23645         * lib/arpa_inet.in.h: Include c++defs.h.
23646         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23647         support.
23648         * modules/arpa_inet (Depends-on): Add c++defs.
23649         (Makefile.am): Substitute the contents of c++defs.h.
23650         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23651         * modules/arpa_inet-c++-tests: New file.
23652         * tests/test-arpa_inet-c++.cc: New file.
23653
23654 2010-12-25  Bruno Haible  <bruno@clisp.org>
23655
23656         Fix more C++ link errors on Solaris 8.
23657         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23658         $(LIB_EACCESS).
23659         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23660         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23661         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23662         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23663         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23664
23665 2010-12-25  Bruno Haible  <bruno@clisp.org>
23666
23667         printf-posix: Fix link error when a non-GCC compiler is used.
23668         * lib/stdio.in.h (printf): When not using GCC, override printf
23669         correctly.
23670         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23671
23672 2010-12-25  Bruno Haible  <bruno@clisp.org>
23673
23674         strerror_r-posix: Update doc.
23675         * doc/posix-functions/strerror_r.texi: Update doc about the return
23676         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23677
23678 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23679
23680         utimens: simplify the logic of the previous change
23681         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23682         This should not affect whether the test succeeds or fails.
23683
23684         utimens: configure better on hosts with NFS clock skew
23685         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23686         uses the clock of the local host.  It might use the clock of the
23687         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23688         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23689
23690 2010-12-25  Bruno Haible  <bruno@clisp.org>
23691
23692         ptsname test: Avoid failure on Solaris.
23693         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23694         open a pseudo-terminal; don't use BSD-style ptys.
23695         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23696
23697 2010-12-25  Bruno Haible  <bruno@clisp.org>
23698
23699         ptsname: Avoid ERANGE failure on some systems.
23700         * lib/ptsname.c (buffer): Increase size.
23701
23702 2010-12-25  Bruno Haible  <bruno@clisp.org>
23703
23704         rename, renameat: Avoid test failures at NFS mounted locations.
23705         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23706         so that subsequent mkdir calls succeed.
23707
23708 2010-12-25  Bruno Haible  <bruno@clisp.org>
23709
23710         iswblank: Fix C++ link error on Solaris 8.
23711         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23712         _GL_FUNCDECL_SYS.
23713
23714 2010-12-25  Bruno Haible  <bruno@clisp.org>
23715
23716         unistd: Fix C++ link error on Solaris 8.
23717         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23718
23719 2010-12-25  Bruno Haible  <bruno@clisp.org>
23720
23721         readlink doc: Mention an old glibc bug.
23722         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23723
23724 2010-12-25  Bruno Haible  <bruno@clisp.org>
23725
23726         fcntl-h: Fix for use of C++ on glibc systems.
23727         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23728         also on glibc systems in C++ mode.
23729         Reported by Gary V. Vaughan <gary@gnu.org>.
23730
23731 2010-12-25  Bruno Haible  <bruno@clisp.org>
23732
23733         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23734         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23735
23736 2010-12-25  Bruno Haible  <bruno@clisp.org>
23737
23738         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23739         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23740         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23741         test whether truncl works according to ISO C 99 with IEC 60559.
23742         * m4/truncl-ieee.m4: New file.
23743         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23744         m4/signbit.m4.
23745         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23746
23747 2010-12-25  Bruno Haible  <bruno@clisp.org>
23748
23749         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23750         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23751         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23752         test whether ceill works according to ISO C 99 with IEC 60559.
23753         * m4/ceill-ieee.m4: New file.
23754         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23755         m4/signbit.m4.
23756         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23757
23758 2010-12-25  Bruno Haible  <bruno@clisp.org>
23759
23760         Ensure all prerequisites of <wchar.h> are included.
23761         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23762         before <wchar.h>.
23763         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23764         gl_MBRLEN_NUL_RETVAL): Likewise.
23765         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23766         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23767         AC_FUNC_MBRTOWC): Likewise.
23768         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23769         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23770         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23771         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23772         Likewise.
23773         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23774         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23775         (gl_WCHAR_H): Improve comments.
23776         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23777
23778 2010-12-25  Bruno Haible  <bruno@clisp.org>
23779
23780         strtok_r: Fix C syntax error in autoconf macro.
23781         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23782         characters in test program.
23783
23784 2010-12-24  Bruno Haible  <bruno@clisp.org>
23785
23786         ceil, trunc, round: Fix gcc warnings.
23787         * lib/ceil.c (MIN): Undefine before redefining.
23788         * lib/trunc.c (MIN): Likewise.
23789         * lib/round.c (MIN): Likewise.
23790         Include <math.h> first.
23791
23792 2010-12-24  Bruno Haible  <bruno@clisp.org>
23793
23794         select tests: Avoid failures on OSF/1 5.1.
23795         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23796         failure of closing the last socket; it may fail with ECONNRESET.
23797
23798 2010-12-24  Eric Blake  <eblake@redhat.com>
23799
23800         stdint: avoid HP-UX 10.20 preprocessor bug
23801         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23802         than #if.
23803         * tests/test-floor2.c (main): Likewise.
23804         Reported by Peter O'Gorman.
23805
23806         pipe: make obsoletion transition easier
23807         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23808         * modules/pipe (Files): Include revived file.
23809         (Include): Drop reference, to mirror getdate's behavior.
23810
23811 2010-12-24  Bruno Haible  <bruno@clisp.org>
23812
23813         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23814         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23815         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23816         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23817
23818 2010-12-24  Bruno Haible  <bruno@clisp.org>
23819
23820         gethostname: Ensure declaration on NonStop Kernel.
23821         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23822         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23823
23824 2010-12-24  Bruno Haible  <bruno@clisp.org>
23825
23826         sys_select: Ensure all necessary types on NonStop Kernel.
23827         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23828         include <sys/time.h>.
23829         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23830         NonStop Kernel.
23831         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23832
23833 2010-12-24  Bruno Haible  <bruno@clisp.org>
23834
23835         sys_select: Remove unneeded include.
23836         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23837         have <sys/select.h>.
23838
23839 2010-12-24  Bruno Haible  <bruno@clisp.org>
23840
23841         gethostname: Provide a fallback for HOST_NAME_MAX.
23842         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23843         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23844         instead.
23845         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23846
23847 2010-12-24  Bruno Haible  <bruno@clisp.org>
23848
23849         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23850         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23851         (SA_RESTART): Likewise.
23852         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23853
23854 2010-12-24  Bruno Haible  <bruno@clisp.org>
23855
23856         signal: Define NSIG.
23857         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23858         * tests/test-signal.c (nsig): New variable.
23859         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23860
23861 2010-12-24  Bruno Haible  <bruno@clisp.org>
23862
23863         rename, renameat: Avoid test failures on OSF/1 5.1.
23864         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23865         alternative error codes.
23866         * tests/test-renameat.c (main): Likewise.
23867
23868 2010-12-24  Bruno Haible  <bruno@clisp.org>
23869
23870         *printf: Detect large precisions bug on Solaris 10/SPARC.
23871         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23872         by Paul Eggert.
23873         * tests/test-snprintf-posix.h (test_function): Add this test code here
23874         too.
23875         * tests/test-sprintf-posix.h (test_function): Likewise.
23876         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23877         * tests/test-vasprintf-posix.c (test_function): Likewise.
23878         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23879         around by gnulib.
23880         * doc/posix-functions/printf.texi: Likewise.
23881         * doc/posix-functions/snprintf.texi: Likewise.
23882         * doc/posix-functions/sprintf.texi: Likewise.
23883         * doc/posix-functions/vfprintf.texi: Likewise.
23884         * doc/posix-functions/vprintf.texi: Likewise.
23885         * doc/posix-functions/vsnprintf.texi: Likewise.
23886         * doc/posix-functions/vsprintf.texi: Likewise.
23887         * doc/posix-functions/dprintf.texi: Undo last commit.
23888         * doc/posix-functions/vdprintf.texi: Likewise.
23889
23890 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23891
23892         tests: port test-fdutimensat.c to Solaris 8
23893         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23894         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23895         On Solaris 8, it fails with errno == ENOSYS, because there is no
23896         futimens (so it can't use the fd), and there is no lutimens (so it
23897         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23898
23899         vsnprintf: make more consistent with snprintf; doc fixes
23900
23901         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23902         the byte count return problem was promoted from the snprintf-posix
23903         to the snprintf module.
23904         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23905         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23906         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23907         * tests/test-snprintf.c (main): Check the byte count returned.
23908         * tests/test-vsnprintf.c (main): Likewise.
23909
23910 2010-12-23  Eric Blake  <eblake@redhat.com>
23911
23912         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23913         * modules/sigpipe (License): Relax license.
23914
23915 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23916
23917         doc: document Solaris printf bug with large float precisions
23918         * doc/posix-functions/dprintf.texi (dprintf):
23919         * doc/posix-functions/fprintf.texi (fprintf):
23920         * doc/posix-functions/printf.texi (printf):
23921         * doc/posix-functions/snprintf.texi (snprintf):
23922         * doc/posix-functions/sprintf.texi (sprintf):
23923         * doc/posix-functions/vdprintf.texi (vdprintf):
23924         * doc/posix-functions/vfprintf.texi (vfprintf):
23925         * doc/posix-functions/vprintf.texi (vprintf):
23926         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23927         * doc/posix-functions/vsprintf.texi (vsprintf):
23928         Mention that these functions mishandle large floating point
23929         precisions on Solaris 10.  The same bug is also present in Solaris
23930         8, and I assume earlier.  This causes "cd gnulib-tests; make
23931         check" to fail on Solaris 8 (and I assume, later) when building
23932         the latest coreutils, in test-vasprintf-posix's call to
23933         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23934         the wide flavors (e.g., wprintf) so this patch just updates the
23935         documentation for the narrow ones.
23936
23937         test-posixtm.c: add two tests
23938         * tests/test-posixtm.c: Add two tests, to highlight the
23939         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23940         around this bug; this is merely to document it.
23941
23942 2010-12-22  Bruno Haible  <bruno@clisp.org>
23943
23944         getlogin_r: Work around portability problem on OSF/1.
23945         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23946         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23947         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23948         test for a truncated result.
23949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23950         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23951         * modules/getlogin_r (Depends-on): Add memchr.
23952         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23953
23954 2010-12-22  Bruno Haible  <bruno@clisp.org>
23955
23956         ptsname: Avoid test failure on OSF/1 5.1.
23957         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23958         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23959         (same_slave): New function.
23960         (main): Use it to compare ptsname's result with the expected file name.
23961
23962 2010-12-22  Bruno Haible  <bruno@clisp.org>
23963
23964         Port extended stdio modules to HP NonStop Kernel.
23965         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23966         macros.
23967         * lib/fbufmode.c: Update comments.
23968         * lib/fflush.c: Likewise.
23969         * lib/fpurge.c: Likewise.
23970         * lib/freadable.c: Likewise.
23971         * lib/freadahead.c: Likewise.
23972         * lib/freading.c: Likewise.
23973         * lib/freadptr.c: Likewise.
23974         * lib/freadseek.c: Likewise.
23975         * lib/fseeko.c: Likewise.
23976         * lib/fseterr.c: Likewise.
23977         * lib/fwritable.c: Likewise.
23978         * lib/fwriting.c: Likewise.
23979         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23980
23981 2010-12-22  Bruno Haible  <bruno@clisp.org>
23982
23983         ttyname_r: Work around bug on OSF/1 5.1.
23984         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23985         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23986         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23987         present.
23988         * lib/ttyname_r.c (ttyname_r): Update comments.
23989
23990 2010-12-22  Bruno Haible  <bruno@clisp.org>
23991
23992         round: Implement result sign according to IEEE 754.
23993         * lib/round.c (MIN, MINUS_ZERO): New macros.
23994         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23995         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23996         * tests/test-round-ieee.c (main): Likewise.
23997         * tests/test-roundl-ieee.c (main): Likewise.
23998
23999         trunc: Implement result sign according to IEEE 754.
24000         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
24001         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
24002         * tests/test-trunc2.c: Include minus-zero.h.
24003         (MINUS_ZERO): New macro.
24004         (trunc_reference): Keep in sync with lib/trunc.c.
24005         * tests/test-truncf2.c: Include minus-zero.h.
24006         (MINUS_ZERO): New macro.
24007         (truncf_reference): Keep in sync with lib/trunc.c.
24008         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
24009         * tests/test-trunc-ieee.c (main): Likewise.
24010         * tests/test-truncl-ieee.c (main): Likewise.
24011
24012         ceil: Implement result sign according to IEEE 754.
24013         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
24014         (FUNC): Return -0.0 for -1 < x < 0.
24015         * tests/test-ceil2.c: Include minus-zero.h.
24016         (MINUS_ZERO): New macro.
24017         (ceil_reference): Keep in sync with lib/ceil.c.
24018         * tests/test-ceilf2.c: Include minus-zero.h.
24019         (MINUS_ZERO): New macro.
24020         (ceilf_reference): Keep in sync with lib/ceil.c.
24021         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
24022         * tests/test-ceil-ieee.c (main): Likewise.
24023         * tests/test-ceill-ieee.c (main): Likewise.
24024
24025         floor: Implement result sign according to IEEE 754.
24026         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
24027         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
24028         * tests/test-floorf2.c (floorf_reference): Likewise.
24029         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
24030         * tests/test-floor-ieee.c (main): Likewise.
24031         * tests/test-floorl-ieee.c (main): Likewise.
24032
24033 2010-12-22  Bruno Haible  <bruno@clisp.org>
24034
24035         getaddrinfo: Update doc.
24036         * doc/posix-functions/gai_strerror.texi: Return type is also different
24037         on AIX and HP-UX.
24038
24039 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24040
24041         getaddrinfo, inet_ntop: Update doc for Solaris.
24042         * doc/posix-functions/gai_strerror.texi: Return type is also an
24043         issue on Solaris 9 and earlier.
24044         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24045         on Solaris 10 and earlier.
24046
24047 2010-12-21  Bruno Haible  <bruno@clisp.org>
24048
24049         New module 'roundl-ieee'.
24050         * modules/roundl-ieee: New file.
24051         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24052         test whether roundl works according to ISO C 99 with IEC 60559.
24053         * m4/roundl-ieee.m4: New file.
24054         * modules/roundl-ieee-tests: New file.
24055         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24056         * tests/test-roundl.c (main): Remove signbit tests.
24057         * modules/roundl-tests (Depends-on): Remove signbit.
24058         * doc/posix-functions/roundl.texi: Mention the new module.
24059
24060 2010-12-21  Bruno Haible  <bruno@clisp.org>
24061
24062         New module 'truncl-ieee'.
24063         * modules/truncl-ieee: New file.
24064         * modules/truncl-ieee-tests: New file.
24065         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24066         * tests/test-truncl.c (main): Remove signbit tests.
24067         * modules/truncl-tests (Depends-on): Remove signbit.
24068         * doc/posix-functions/truncl.texi: Mention the new module.
24069
24070 2010-12-21  Bruno Haible  <bruno@clisp.org>
24071
24072         New module 'ceill-ieee'.
24073         * modules/ceill-ieee: New file.
24074         * modules/ceill-ieee-tests: New file.
24075         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24076         * tests/test-ceill.c (main): Remove signbit tests.
24077         * modules/ceill-tests (Depends-on): Remove signbit.
24078         * doc/posix-functions/ceill.texi: Mention the new module.
24079
24080 2010-12-21  Bruno Haible  <bruno@clisp.org>
24081
24082         New module 'floorl-ieee'.
24083         * modules/floorl-ieee: New file.
24084         * modules/floorl-ieee-tests: New file.
24085         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24086         * tests/test-floorl.c (main): Remove signbit tests.
24087         * modules/floorl-tests (Depends-on): Remove signbit.
24088         * doc/posix-functions/floorl.texi: Mention the new module.
24089
24090 2010-12-21  Bruno Haible  <bruno@clisp.org>
24091
24092         New module 'round-ieee'.
24093         * modules/round-ieee: New file.
24094         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24095         whether round works according to ISO C 99 with IEC 60559.
24096         * m4/round-ieee.m4: New file.
24097         * modules/round-ieee-tests: New file.
24098         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24099         * tests/test-round1.c (main): Remove signbit tests.
24100         * modules/round-tests (Depends-on): Remove 'signbit'.
24101         * doc/posix-functions/round.texi: Mention the new module.
24102
24103 2010-12-21  Bruno Haible  <bruno@clisp.org>
24104
24105         New module 'trunc-ieee'.
24106         * modules/trunc-ieee: New file.
24107         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24108         whether trunc works according to ISO C 99 with IEC 60559.
24109         * m4/trunc-ieee.m4: New file.
24110         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24111         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24112         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24113         * modules/trunc-ieee-tests: New file.
24114         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24115         * tests/test-trunc1.c (main): Remove signbit tests.
24116         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24117         * doc/posix-functions/trunc.texi: Mention the new module.
24118
24119 2010-12-21  Bruno Haible  <bruno@clisp.org>
24120
24121         New module 'ceil-ieee'.
24122         * modules/ceil-ieee: New file.
24123         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24124         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24125         ISO C 99 with IEC 60559.
24126         * m4/ceil-ieee.m4: New file.
24127         * modules/ceil (Files): Add lib/ceil.c.
24128         (Depends-on): Add 'float'.
24129         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24130         * lib/math.in.h (ceil): New declaration.
24131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24132         REPLACE_CEIL.
24133         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24134         * modules/ceil-ieee-tests: New file.
24135         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24136         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24137         * doc/posix-functions/ceil.texi: Mention the new module.
24138
24139 2010-12-21  Bruno Haible  <bruno@clisp.org>
24140
24141         New module 'floor-ieee'.
24142         * modules/floor-ieee: New file.
24143         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24144         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24145         ISO C 99 with IEC 60559.
24146         * m4/floor-ieee.m4: New file.
24147         * modules/floor (Files): Add lib/floor.c.
24148         (Depends-on): Add 'float'.
24149         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24150         * lib/math.in.h (floor): New declaration.
24151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24152         REPLACE_FLOOR.
24153         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24154         * modules/floor-ieee-tests: New file.
24155         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24156         * tests/test-math-c++.cc: Check the signature of 'floor'.
24157         * doc/posix-functions/floor.texi: Mention the new module.
24158
24159 2010-12-21  Bruno Haible  <bruno@clisp.org>
24160
24161         New module 'roundf-ieee'.
24162         * modules/roundf-ieee: New file.
24163         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24164         test whether roundf works according to ISO C 99 with IEC 60559.
24165         * m4/roundf-ieee.m4: New file.
24166         * modules/roundf-ieee-tests: New file.
24167         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24168         * tests/test-roundf1.c (main): Remove signbit tests.
24169         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24170         * doc/posix-functions/roundf.texi: Mention the new module.
24171
24172 2010-12-21  Bruno Haible  <bruno@clisp.org>
24173
24174         New module 'truncf-ieee'.
24175         * modules/truncf-ieee: New file.
24176         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24177         test whether truncf works according to ISO C 99 with IEC 60559.
24178         * m4/truncf-ieee.m4: New file.
24179         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24181         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24182         * modules/truncf-ieee-tests: New file.
24183         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24184         * tests/test-truncf1.c (main): Remove signbit tests.
24185         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24186         * doc/posix-functions/truncf.texi: Mention the new module.
24187
24188 2010-12-21  Bruno Haible  <bruno@clisp.org>
24189
24190         New module 'ceilf-ieee'.
24191         * modules/ceilf-ieee: New file.
24192         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24193         test whether ceilf works according to ISO C 99 with IEC 60559.
24194         * m4/ceilf-ieee.m4: New file.
24195         * modules/ceilf-ieee-tests: New file.
24196         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24197         * tests/test-ceilf1.c (main): Remove signbit tests.
24198         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24199         * doc/posix-functions/ceilf.texi: Mention the new module.
24200
24201 2010-12-21  Bruno Haible  <bruno@clisp.org>
24202
24203         New module 'floorf-ieee'.
24204         * modules/floorf-ieee: New file.
24205         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24206         test whether floorf works according to ISO C 99 with IEC 60559.
24207         * m4/floorf-ieee.m4: New file.
24208         * modules/floorf-ieee-tests: New file.
24209         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24210         * tests/test-floorf1.c (main): Remove signbit tests.
24211         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24212         * doc/posix-functions/floorf.texi: Mention the new module.
24213
24214 2010-12-21  Bruno Haible  <bruno@clisp.org>
24215
24216         Support for minus zero in autoconf macros.
24217         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24218         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24219         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24220         * tests/minus-zero.h: Update comments.
24221
24222 2010-12-21  Bruno Haible  <bruno@clisp.org>
24223
24224         Tests for module 'ceil'.
24225         * modules/ceil-tests: New file.
24226         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24227         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24228
24229 2010-12-21  Bruno Haible  <bruno@clisp.org>
24230
24231         Tests for module 'floor'.
24232         * modules/floor-tests: New file.
24233         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24234         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24235
24236 2010-12-21  Bruno Haible  <bruno@clisp.org>
24237
24238         math: Fix indentation.
24239         * lib/math.in.h (floorf): Fix indentation.
24240
24241 2010-12-21  Bruno Haible  <bruno@clisp.org>
24242
24243         Fix cross-compilation guesses on Solaris.
24244         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24245         not match "solaris2.10".
24246         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24247         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24248         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24249
24250 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24251
24252         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24253         This fixes a problem observed with the latest coreutils snapshot
24254         that caused a test to fail on Solaris 8.  src/csplit.c's call
24255         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24256         earlier, instead of returning the number of bytes that would have
24257         been generated; this causes csplit to incorrectly report memory
24258         exhaustion.
24259         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24260         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24261         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24262         comments to match.
24263         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24264         Fix typo in matching older versions of Solaris: "solaris2.10"
24265         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24266         only for guessing while cross-compiling.
24267         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24268
24269 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24270
24271         ftoastr: fix comment again
24272         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24273         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24274         Also, simplify example a bit by using flags = 0.
24275
24276 2010-12-20  Bruno Haible  <bruno@clisp.org>
24277
24278         round*, trunc*: Update documentation regarding glibc.
24279         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24280         * doc/posix-functions/round.texi: Likewise.
24281         * doc/posix-functions/roundl.texi: Likewise.
24282         * doc/posix-functions/truncf.texi: Likewise.
24283         * doc/posix-functions/trunc.texi: Likewise.
24284         * doc/posix-functions/truncl.texi: Likewise.
24285
24286 2010-12-20  Bruno Haible  <bruno@clisp.org>
24287
24288         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24289         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
24290         * doc/posix-functions/round.texi: Likewise.
24291         * doc/posix-functions/roundl.texi: Likewise.
24292
24293 2010-12-20  Bruno Haible  <bruno@clisp.org>
24294
24295         ttyname_r: Add missing declaration on HP-UX 11.
24296         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
24297         HAVE_TTYNAME_R.
24298         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
24299         declared. Set HAVE_TTYNAME_R always.
24300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24301         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24302         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24303         HAVE_TTYNAME_R.
24304         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24305
24306 2010-12-20  Bruno Haible  <bruno@clisp.org>
24307
24308         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24309         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24310         * doc/posix-functions/getlogin_r.texi: Likewise.
24311         * tests/test-getlogin.c: Include <errno.h>.
24312         (main): Avoid test failure on HP-UX 11.11.
24313         * tests/test-getlogin_r.c (main): Likewise.
24314
24315 2010-12-20  Bruno Haible  <bruno@clisp.org>
24316
24317         getlogin_r: Add missing declaration on HP-UX 11.
24318         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24319         declared also when it exists as a function.
24320         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24321
24322 2010-12-20  Bruno Haible  <bruno@clisp.org>
24323
24324         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24325         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24326         through wcrtomb.
24327
24328 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24329
24330         ftoastr: fix comment
24331         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24332         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24333
24334 2010-12-19  Bruno Haible  <bruno@clisp.org>
24335
24336         isnan: Ensure it is a macro.
24337         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24338         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24339         Solaris.
24340
24341 2010-12-19  Bruno Haible  <bruno@clisp.org>
24342
24343         ldexpl test: Fix link error on OSF/1 5.1.
24344         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24345
24346 2010-12-19  Bruno Haible  <bruno@clisp.org>
24347
24348         wctype: Make it work in C++ mode on OSF/1 5.1.
24349         * lib/wctype.in.h (iswblank): Declare but not define here.
24350         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24351         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24352         * modules/wctype (Files): Add lib/iswblank.c.
24353
24354 2010-12-19  Bruno Haible  <bruno@clisp.org>
24355
24356         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24357         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24358         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24359
24360 2010-12-19  Bruno Haible  <bruno@clisp.org>
24361
24362         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24363         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24364         _POSIX_PII_SOCKET.
24365         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
24366         * doc/posix-functions/recvfrom.texi: Likewise.
24367         * doc/posix-functions/send.texi: Likewise.
24368         * doc/posix-functions/sendto.texi: Likewise.
24369
24370 2010-12-19  Bruno Haible  <bruno@clisp.org>
24371
24372         tcgetsid: Add missing declaration on OSF/1 5.1.
24373         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
24374         HAVE_TCGETSID.
24375         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
24376         Don't set HAVE_TCGETSID.
24377         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
24378         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
24379         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
24380         HAVE_TCGETSID.
24381         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
24382
24383 2010-12-19  Bruno Haible  <bruno@clisp.org>
24384
24385         stdio: Fix problem with popen() declaration on OSF/1 5.1.
24386         * lib/stdio.in.h: During the include_next statement, let recursive
24387         includes of this file include only the system header file.
24388
24389 2010-12-19  Bruno Haible  <bruno@clisp.org>
24390
24391         iconv_open: Fix regression from 2010-12-04.
24392         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24393         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
24394
24395 2010-12-19  Bruno Haible  <bruno@clisp.org>
24396
24397         stdbool test: Avoid a gcc warning.
24398         * tests/test-stdbool.c (main): Fail if e1 is false.
24399         Reported by Jim Meyering.
24400
24401 2010-12-19  Jim Meyering  <meyering@redhat.com>
24402
24403         setenv: restore to working order
24404         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
24405         mistakenly removed.
24406         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
24407         HAVE_SETENV.
24408         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
24409         HAVE_SETENV.
24410
24411 2010-12-19  Bruno Haible  <bruno@clisp.org>
24412
24413         Document some different function declarations on OSF/1 5.1.
24414         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
24415         * doc/posix-functions/inet_ntop.texi: Likewise.
24416         * doc/posix-functions/gethostname.texi: Likewise.
24417         * lib/unistd.in.h (gethostname): Update comment.
24418
24419 2010-12-19  Bruno Haible  <bruno@clisp.org>
24420
24421         doc: Mention vasprintf-posix module.
24422         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24423         the 'vasprintf-posix' module.
24424         * doc/glibc-functions/vasprintf.texi: Likewise.
24425
24426 2010-12-19  Bruno Haible  <bruno@clisp.org>
24427
24428         unsetenv: Add missing declaration on OSF/1 5.1.
24429         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24430         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24431         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24433         not HAVE_UNSETENV.
24434         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24435         HAVE_UNSETENV.
24436         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24437
24438 2010-12-19  Bruno Haible  <bruno@clisp.org>
24439
24440         setenv: Add missing declaration on OSF/1 5.1.
24441         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
24442         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
24443         declared. Don't set HAVE_SETENV.
24444         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
24445         not HAVE_SETENV.
24446         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
24447         HAVE_SETENV.
24448         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
24449
24450 2010-12-19  Bruno Haible  <bruno@clisp.org>
24451
24452         nl_langinfo tests: Avoid gcc warning.
24453         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
24454
24455 2010-12-19  Bruno Haible  <bruno@clisp.org>
24456
24457         mknod: Avoid error in C++ mode on OSF/1 with GCC.
24458         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
24459         _GL_CXXALIAS_SYS.
24460
24461 2010-12-19  Bruno Haible  <bruno@clisp.org>
24462
24463         stdbool: Relax test.
24464         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24465         address to 'bool' work in static initializer, for compilers other than
24466         GCC.
24467
24468 2010-12-19  Bruno Haible  <bruno@clisp.org>
24469
24470         ftello: Add missing declaration on OSF/1 5.1.
24471         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
24472         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
24473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
24474         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
24475         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
24476
24477 2010-12-19  Bruno Haible  <bruno@clisp.org>
24478
24479         fseeko: Add missing declaration on OSF/1 5.1.
24480         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
24481         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
24482         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
24483         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
24484         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
24485
24486 2010-12-19  Bruno Haible  <bruno@clisp.org>
24487
24488         fchdir: Add missing declaration on OSF/1 5.1.
24489         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
24490         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
24491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
24492         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
24493         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
24494
24495 2010-12-19  Bruno Haible  <bruno@clisp.org>
24496
24497         relocatable-prog-wrapper: Separate from relocatable-prog.
24498         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
24499         uninstall-relocwrapper rule here.
24500         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
24501         Reported by Ian Beckwith <ianb@erislabs.net>.
24502
24503 2010-12-19  Bruno Haible  <bruno@clisp.org>
24504
24505         unistr/u8-mbsnlen: Add missing dependency.
24506         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
24507         Reported by Ian Beckwith <ianb@erislabs.net>.
24508
24509 2010-12-19  Bruno Haible  <bruno@clisp.org>
24510
24511         iconv: Make it possible again to use this module without 'iconv-h'.
24512         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
24513         if it is not defined.
24514         Reported by Ian Beckwith <ianb@erislabs.net>.
24515
24516 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24517
24518         acl: port to Solaris 8 when copying from tmpfs to ufs
24519         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24520         error number.  Problem observed on Solaris 8 with latest
24521         coreutils, with "mv A B", where A is on a tmpfs file system and B
24522         is on a ufs file system.  This caused coreutils' mv/part-symlink
24523         test to fail.
24524
24525         tests: set fail=0 at start
24526         * tests/init.sh (setup_): Move fail=0 initialization here ...
24527         (mktempd_): ... from here, so that tests can rely on fail being
24528         set to 0 initially.  This fixes a problem in coreutils; see:
24529         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24530
24531 2010-12-18  Bruno Haible  <bruno@clisp.org>
24532
24533         memmem-simple: Stylistic changes.
24534         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24535         Fix preprocessor directive indentation.
24536
24537 2010-12-15  Pádraig Brady <P@draigBrady.com>
24538
24539         memmem, memmem-simple: reorganize and expand empty needle check
24540         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24541         functional checks to memmem-simple so that one has a fully functional
24542         memmem by using just this module.
24543         Restrict the performance only check to the memmem module.
24544         Also expand the empty needle check to ensure the correct
24545         pointer is returned, not just a non NULL pointer.
24546         * doc/glibc-functions/memmem.texi: Rearrange the portability
24547         documentation to correlate with the rearranged checks.
24548         Clarify exactly how the memmem and memmem-simple modules
24549         relate to each other.
24550
24551 2010-12-15  Pádraig Brady <P@draigBrady.com>
24552             Bruno Haible  <bruno@clisp.org>
24553
24554         Improve cross-compilation guesses for uClibc.
24555         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24556         that uClibc does not have the glibc bug.
24557         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24558         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24559
24560 2010-12-14  Eric Blake  <eblake@redhat.com>
24561
24562         configmake: provide fallbacks for oldest supported autotools
24563         * m4/configmake.m4: New file.
24564         * modules/configmake (Files): Ship it.
24565         (configure.ac): Use it to guarantee fallbacks.
24566
24567 2010-12-13  Pádraig Brady <P@draigBrady.com>
24568
24569         read-file: Improve handling of large files
24570         * lib/read-file.c (fread_file): Minimize realloc()s
24571         for regular files, and better manage sizes around SIZE_MAX.
24572
24573 2010-12-13  Eric Blake  <eblake@redhat.com>
24574
24575         cloexec, fcntl: relax license
24576         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24577         consent from all contributors.
24578         * modules/fcntl (License): Likewise.
24579
24580 2010-12-10  Bruno Haible  <bruno@clisp.org>
24581
24582         Tests for module 'pipe-posix'.
24583         * modules/pipe-posix-tests: New file.
24584         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24585
24586 2010-12-10  Bruno Haible  <bruno@clisp.org>
24587
24588         pipe-posix: Make it work in C++ mode.
24589         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24590         (pipe): Use common idiom, not a macro definition.
24591         * lib/pipe.c: New file.
24592         * m4/pipe.m4: New file.
24593         * modules/pipe-posix (Description): Enhance.
24594         (Files): Add lib/pipe.c, m4/pipe.m4.
24595         (configure.ac): Invoke gl_FUNC_PIPE.
24596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24597         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24598         * tests/test-unistd-c++.cc: Check the signature of pipe.
24599
24600 2010-12-10  Bruno Haible  <bruno@clisp.org>
24601
24602         Rename module 'pipe' to 'spawn-pipe'.
24603         * modules/spawn-pipe: New file, renamed from modules/pipe.
24604         (Files, configure.ac, Makefile.am): Update.
24605         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24606         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24607         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24608         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24609         "spawn-pipe.h" instead of "pipe.h".
24610         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24611         to gl_SPAWN_PIPE.
24612         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24613         (Files, Makefile.am): Update.
24614         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24615         Update.
24616         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24617         Include "spawn-pipe.h" instead of "pipe.h".
24618         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24619         * lib/javacomp.c: Likewise.
24620         * lib/javaversion.c: Likewise.
24621         * lib/pipe-filter-gi.c: Likewise.
24622         * lib/pipe-filter-ii.c: Likewise.
24623         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24624         * modules/javacomp (Depends-on): Likewise.
24625         * modules/javaversion (Depends-on): Likewise.
24626         * modules/pipe-filter-gi (Depends-on): Likewise.
24627         * modules/pipe-filter-ii (Depends-on): Likewise.
24628         * MODULES.html.sh (Executing programs): Update.
24629         * NEWS: Mention the change.
24630
24631 2010-12-10  Eric Blake  <eblake@redhat.com>
24632
24633         pipe-posix: new module
24634         * modules/pipe-posix: New file.
24635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24636         (gl_UNISTD_H): Check for declaration.
24637         * modules/unistd (Makefile.am): Substitute it.
24638         * lib/unistd.in.h (pipe): Provide it for mingw.
24639         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24640         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24641
24642 2010-12-07  Bruno Haible  <bruno@clisp.org>
24643
24644         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24645         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24646         u8_strcmp_gnu.
24647         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24648
24649 2010-12-06  Bruno Haible  <bruno@clisp.org>
24650
24651         Update internal documentation.
24652         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24653
24654 2010-12-04  Bruno Haible  <bruno@clisp.org>
24655
24656         Put more information about failed tests into the test return codes.
24657         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24658         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24659         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24660         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24661         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24662         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24663         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24664         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24665         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24667         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24668         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24669         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24670         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24671         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24672         returns a bit mask.
24673         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24674         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24675         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24676         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24677         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24678         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24679         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24680         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24681         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24682         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24683         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24684         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24685         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24686         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24687         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24688         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24689         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24690         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24691         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24692         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24693         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24694         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24695         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24696         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24697         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24698         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24699         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24700         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24701         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24702         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24703         gl_PRINTF_PRECISION): Likewise.
24704         * m4/regex.m4 (gl_REGEX): Likewise.
24705         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24706         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24707         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24708         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24709         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24710         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24711         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24712         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24713         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24714         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24715         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24716         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24717         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24718         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24719         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24720         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24721         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24722         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24723         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24724         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24725         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24726         enumerated value.
24727         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24728
24729 2010-12-04  Bruno Haible  <bruno@clisp.org>
24730
24731         Update for Solaris 11 2010-11.
24732         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24733         Express, released in November 2010.
24734
24735 2010-12-04  Bruno Haible  <bruno@clisp.org>
24736
24737         nproc: Relax license.
24738         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24739         and Paul Eggert.
24740         Requested by Ludovic Courtès <ludo@gnu.org>.
24741
24742 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24743
24744         utimecmp: fine-grained src to nearby coarse-grained dest
24745
24746         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24747         and the source is on a file system with higher-resolution time
24748         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24749         not work, and the time stamps are close together, the algorithm to
24750         determine the exact resolution from the read-back mtime was buggy:
24751         it had a "!=" where it should have had an "==".  This bug has been
24752         in the code ever since it was introduced to gnulib.
24753         Problem reported by Dan Jacobson in
24754         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24755
24756 2010-11-30  Bruno Haible  <bruno@clisp.org>
24757
24758         strerror_r-posix: Fix autoconf test.
24759         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24760
24761 2010-11-28  Bruno Haible  <bruno@clisp.org>
24762             Paul Eggert  <eggert@cs.ucla.edu>
24763
24764         Tests for module 'getdomainname'.
24765         * modules/getdomainname-tests: New file.
24766         * tests/test-getdomainname.c: New file, based on
24767         tests/test-gethostname.c.
24768
24769 2010-11-28  Bruno Haible  <bruno@clisp.org>
24770             Paul Eggert  <eggert@cs.ucla.edu>
24771
24772         getdomainname: Use the system function when possible.
24773         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24774         (getdomainname): Replace if needed. Provide the declaration if it is
24775         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24776         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24777         (getdomainname): When the system has getdomainname, call the system
24778         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24779         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24780         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24781         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24782         the function if its second argument is of type 'int' or if it is found
24783         in libnsl.
24784         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24785         <sys/systeminfo.h> and sysinfo().
24786         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24788         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24789         HAVE_GETDOMAINNAME.
24790         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24791         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24792         * doc/glibc-functions/getdomainname.texi: Document the problems with
24793         the getdomainname declaration.
24794
24795 2010-11-28  Bruno Haible  <bruno@clisp.org>
24796
24797         sys_socket: Ensure ss_family field on AIX.
24798         * lib/sys_socket.in.h (ss_family): New macro definition.
24799         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24800         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24801         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24802         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24803         * modules/sys_socket (Makefile.am): Substitute
24804         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24805         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24806
24807 2010-11-27  Bruno Haible  <bruno@clisp.org>
24808
24809         readline: Improve configure output.
24810         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24811         "checking for readline..." result understandable.
24812
24813 2010-11-27  Bruno Haible  <bruno@clisp.org>
24814
24815         *printf-posix: Detect a bug on Solaris 10/x86.
24816         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24817         for floating-point output.
24818         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24819         directive.
24820         * tests/test-snprintf-posix.h (test_function): Likewise.
24821         * tests/test-sprintf-posix.h (test_function): Likewise.
24822         * tests/test-vasprintf-posix.c (test_function): Likewise.
24823         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24824         * doc/posix-functions/printf.texi: Likewise.
24825         * doc/posix-functions/snprintf.texi: Likewise.
24826         * doc/posix-functions/sprintf.texi: Likewise.
24827         * doc/posix-functions/vfprintf.texi: Likewise.
24828         * doc/posix-functions/vprintf.texi: Likewise.
24829         * doc/posix-functions/vsnprintf.texi: Likewise.
24830         * doc/posix-functions/vsprintf.texi: Likewise.
24831         * doc/glibc-functions/obstack_printf.texi: Likewise.
24832         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24833
24834 2010-11-27  Bruno Haible  <bruno@clisp.org>
24835
24836         Fix link error when module libunistring-optional is in use.
24837         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24838         * modules/striconveha-tests (Makefile.am): Likewise.
24839
24840 2010-11-27  Bruno Haible  <bruno@clisp.org>
24841
24842         regex: Mention link dependencies.
24843         * modules/regex (Link): New section.
24844         * modules/rpmatch (Link): Likewise.
24845         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24846
24847 2010-11-27  Bruno Haible  <bruno@clisp.org>
24848
24849         ftoastr: Fix compilation error on Solaris.
24850         * lib/ftoastr.c: Include <config.h>.
24851
24852 2010-11-27  Bruno Haible  <bruno@clisp.org>
24853
24854         getloadavg: Update documentation.
24855         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24856
24857 2010-11-27  Bruno Haible  <bruno@clisp.org>
24858
24859         sys_socket: Fix test whether the functions are declared.
24860         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24861         not <sys/select.h>.
24862
24863 2010-11-27  Bruno Haible  <bruno@clisp.org>
24864
24865         getpass: Make sure to get system declaration on some platforms.
24866         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24867         gl_USE_SYSTEM_EXTENSIONS.
24868         * modules/getpass (Depends-on): Add extensions.
24869
24870 2010-11-26  Bruno Haible  <bruno@clisp.org>
24871
24872         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24873         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24874         'iconv' module is present.
24875         (ICONV_CONST): New macro.
24876         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24877         ICONV_CONST.
24878         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24879         set ICONV_CONST.
24880         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24881         here.
24882         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24883         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24884         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24885         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24886         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24887         present.
24888
24889 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24890
24891         ftoastr: comment fix
24892         * lib/ftoastr.c: "little" -> "little or no" in comment
24893
24894 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24895
24896         stdint: port to GCC 4.3 + OSX + Octave
24897         On this platform, stdint.h is buggy and defines int64_t to long
24898         long int.  The replacement defined it to long int, causing
24899         problems with C++ style name mangling.  Instead, trust the system
24900         definition if INT64_MAX is defined, and likewise for the unsigned
24901         variant.   Problem reported by Jarno Rajahalme in
24902         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24903         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24904         and don't mess with int64_t and INT64_MAX in this case.
24905         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24906
24907 2010-11-24  Bruno Haible  <bruno@clisp.org>
24908
24909         doc: Corrections regarding MacOS X 10.4 and 10.5.
24910         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24911         MacOS X.
24912         Reported by Simon Josefsson.
24913
24914 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24915
24916         Uninstall ".bin" files installed by relocwrapper.
24917         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24918         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24919         unless it is already there.
24920
24921 2010-11-21  Bruno Haible  <bruno@clisp.org>
24922
24923         Update for NetBSD 5.0.
24924         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24925         NetBSD; the test fails on NetBSD 5.0.
24926         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24927         about NetBSD.
24928
24929 2010-11-21  Bruno Haible  <bruno@clisp.org>
24930
24931         Update for HP-UX 11.23 and HP-UX 11.31.
24932         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24933         HP-UX.
24934
24935 2010-11-21  Bruno Haible  <bruno@clisp.org>
24936
24937         Update for MacOS X 10.5.
24938         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24939         MacOS X; the test fails on MacOS X 10.5.8.
24940         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24941         about MacOS X.
24942
24943 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24944
24945         bootstrap: add bootstrap_sync option.
24946         See discussion at
24947         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24948         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24949         * build-aux/bootstrap: Accept --bootstrap-sync to update
24950         bootstrap if it is not identical to the local gnulib's
24951         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24952         enable this by default.  Accept --no-bootstrap-sync to disable
24953         it.
24954
24955 2010-11-20  Bruno Haible  <bruno@clisp.org>
24956
24957         Ensure that <features.h> is included before __GLIBC__ is tested.
24958         * lib/printf-parse.h: Include <features.h>.
24959         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24960         Reported by Mike Frysinger <vapier@gentoo.org>.
24961
24962         Ensure that <features.h> is included before __GLIBC__ is tested.
24963         * lib/wchar.in.h: Include <features.h>.
24964         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24965         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24966         Reported by Mike Frysinger <vapier@gentoo.org>.
24967
24968         Ensure that <features.h> is included before __GLIBC__ is tested.
24969         * lib/arpa_inet.in.h: Include <features.h>.
24970         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24971         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24972         Reported by Mike Frysinger <vapier@gentoo.org>.
24973
24974         Ensure that <features.h> is included before __GLIBC__ is tested.
24975         * build-aux/link-warning.h: Include <features.h>.
24976         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24977         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24978         Reported by Mike Frysinger <vapier@gentoo.org>.
24979
24980         Ensure that <features.h> is included before __GLIBC__ is tested.
24981         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24982         Reported by Mike Frysinger <vapier@gentoo.org>.
24983
24984 2010-11-20  Bruno Haible  <bruno@clisp.org>
24985
24986         memmem: Fix autoconf test.
24987         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24988
24989 2010-11-20  Bruno Haible  <bruno@clisp.org>
24990
24991         Port to uClibc.
24992         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24993         * lib/fcntl.in.h: Likewise.
24994         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24995         * lib/mbrtowc.c (mbrtowc): Likewise.
24996         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24997         * lib/strerror_r.c: Likewise.
24998         * lib/unistr/u8-strnlen.c: Likewise.
24999         * lib/vasnprintf.c (decimal_point_char): Likewise.
25000         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25001         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25002         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25003         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25004         * tests/test-sigaction.c (handler, main): Likewise.
25005         * lib/freading.h: Treat uClibc like a non-glibc platform.
25006         * lib/freading.c: Likewise.
25007         * lib/gettext.h: Likewise.
25008         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
25009         Likewise.
25010         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
25011         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25012         * lib/propername.c (proper_name_utf8): Likewise.
25013         * lib/spawn.in.h: Likewise.
25014         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
25015         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
25016         mem_cd_iconveh_internal): Likewise.
25017         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25018         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25019         strstr, strcasestr): Likewise.
25020         * lib/unicodeio.c (unicode_to_mb): Likewise.
25021         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
25022         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
25023         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
25024         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
25025         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
25026         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
25027         * lib/unistr/u8-stpncpy.c: Likewise.
25028         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25029         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
25030         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25031         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25032         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25033         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
25034         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25035         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25036         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25037         Likewise.
25038         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25039         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25040         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25041         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25042         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25043         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25044         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25045         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25046         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25047         * tests/test-striconveha.c (main): Likewise.
25048         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25049         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25050         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25051         * doc/posix-functions/getline.texi: Likewise.
25052         Reported by Mike Frysinger <vapier@gentoo.org>.
25053
25054 2010-11-20  Bruno Haible  <bruno@clisp.org>
25055
25056         nproc: Fix condition.
25057         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25058         HAVE_PTHREAD_AFFINITY_NP.
25059
25060 2010-11-20  Bruno Haible  <bruno@clisp.org>
25061
25062         Fix a comment.
25063         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25064
25065 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25066
25067         ftoastr: don't assume snprintf
25068         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25069         Implement a subset of snprintf here, by using sprintf safely.
25070         * modules/ftoastr (Depends-on): Remove snprintf.
25071
25072 2010-11-19  Jim Meyering  <meyering@redhat.com>
25073
25074         test-rename.h: fix compilation failure
25075         * tests/test-rename.h (test_rename): Add omitted "}".
25076
25077 2010-11-17  Jim Meyering  <meyering@redhat.com>
25078
25079         maint.mk: add a URL discussing the no-@acronym policy
25080         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25081
25082 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25083
25084         ftoastr: depend on snprintf, improve comments
25085         * lib/ftoastr.c: Also mention Loitsch's draft.
25086         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25087         needed in the current implementation, but it might simplify
25088         speeding up the code later.
25089         * modules/ftoastr: Depend on snprintf; this improves portability.
25090         Suggested by Bruno Haible in the same email.
25091
25092         ftoastr: port to hosts lacking strtof and strtold
25093         Problem reported by Bruno Haible in
25094         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25095         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25096         environment and strtold (and presumably strtof) are not available.
25097         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25098         (configure.ac): Require gl_C99_STRTOLD.
25099
25100 2010-11-18  Bruno Haible  <bruno@clisp.org>
25101
25102         c-strtold: Avoid link error on AIX 7.
25103         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25104         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25105         (gl_C_STRTOLD): Test whether strtold_l exists.
25106         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25107
25108 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25109
25110         intprops: new macro INT_BITS_STRLEN_BOUND
25111         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25112         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25113         not exposed.  Also, it uses a slightly tighter bound than before;
25114         though this makes no practical difference, we might as well be as
25115         tight as we easily can.
25116
25117         ftoastr: new module, for lossless conversion of floats to short strings
25118         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25119         * modules/ftoastr: New files.
25120
25121 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25122
25123         bootstrap: port to Solaris sed
25124         * build-aux/bootstrap (get_version): Port to Solaris sed.
25125         See Ralf Wildenhues's note in
25126         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25127
25128 2010-11-14  Jim Meyering  <meyering@redhat.com>
25129
25130         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25131         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25132         and move definition closer to sole use.
25133
25134 2010-11-13  Jim Meyering  <meyering@redhat.com>
25135
25136         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25137         Now we require at least autoconf-2.59, which means the work-around
25138         is no longer needed.
25139         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25140         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25141         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25142         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25143         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25144
25145 2010-11-13  Bruno Haible  <bruno@clisp.org>
25146
25147         rename, renameat: Avoid test failures at NFS mounted locations.
25148         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25149         functions.
25150         (test_rename): Use assert_nonexistent.
25151         * tests/test-rename.c: Include <dirent.h>.
25152         * tests/test-renameat.c: Likewise.
25153         Reported by Gary V. Vaughan <gary@gnu.org>.
25154
25155         rename, renameat: Document Linux bug with NFS
25156         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25157         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25158         * doc/posix-functions/renameat.texi: Likewise.
25159         Suggested by Eric Blake.
25160
25161 2010-11-13  Bruno Haible  <bruno@clisp.org>
25162
25163         rename test: Add comments.
25164         * tests/test-rename.h (test_rename): Add structure and comments.
25165
25166 2010-11-13  Eric Blake  <eblake@redhat.com>
25167
25168         maintainer-makefile: cover a few more files
25169         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25170         scripts generated within C files, for libvirt.
25171
25172 2010-11-13  Bruno Haible  <bruno@clisp.org>
25173
25174         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25175         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25176         character, return the number of bytes that belong together, not always
25177         1.
25178         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25179         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25180         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25181         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25182         number of bytes of an invalid character.
25183         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25184         (main): Invoke it.
25185         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25186         results.
25187         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25188         malformed byte sequences.
25189         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25190         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25191         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25192         Reported by Ben Pfaff and Paolo Bonzini.
25193
25194 2010-11-13  Bruno Haible  <bruno@clisp.org>
25195
25196         openat: Work around glibc bug with fchownat() and empty file names.
25197         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25198         (gl_FUNC_FCHOWNAT): Invoke it.
25199         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25200         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25201         Reported by Gary V. Vaughan <gary@gnu.org>.
25202
25203 2010-11-13  Bruno Haible  <bruno@clisp.org>
25204
25205         openat: Ensure autoconf macro ordering.
25206         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25207         gl_USE_SYSTEM_EXTENSIONS.
25208         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25209
25210 2010-11-13  Bruno Haible  <bruno@clisp.org>
25211
25212         Update comments.
25213         * lib/unistr/u8-check.c: Update file name in comments.
25214         * lib/unistr/u8-mblen.c: Likewise.
25215         * lib/unistr/u8-prev.c: Likewise.
25216         * lib/unistr/u8-strmblen.c: Likewise.
25217         * lib/unistr/u8-strmbtouc.c: Likewise.
25218
25219 2010-11-13  Jim Meyering  <meyering@redhat.com>
25220
25221         tests: avoid test failure on Solaris 10 due to lack of PATH export
25222         * tests/test-update-copyright.sh: Don't forget to export PATH.
25223
25224         init.sh: ensure that IFS is defined, just in case...
25225         * tests/init.sh (setup_): Ensure that IFS is defined,
25226         so that saving and restoring it works as expected.  This
25227         appears to be useful at least for an old version of dash
25228         from a long time ago (RH 6).  See here for details:
25229         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25230
25231         maint.mk: tighten "test a == b" check
25232         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25233         test to files that contain something like #!/bin/sh.
25234         Without this, coreutils would get two false positives in
25235         the comments of C source files.
25236
25237 2010-11-12  Eric Blake  <eblake@redhat.com>
25238
25239         bootstrap: fix typo in previous attempt
25240         * build-aux/bootstrap (buildreq): Correct the grouping.
25241         Reported by Paul Eggert.
25242
25243         maintainer-makefile: prohibit test x == x
25244         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25245         Based on a report by Matthias Bolte.
25246
25247         bootstrap: allow FreeBSD gzip
25248         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25249         which has no '.' and goes to stderr.
25250         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25251         Reported by Matthias Bolte.
25252
25253         maintainer-makefile: check for i18n setup
25254         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25255         will likely work.
25256
25257 2010-11-12  Bruno Haible  <bruno@clisp.org>
25258
25259         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25260         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25261         * lib/nanosleep.c (nanosleep): Likewise.
25262
25263 2010-11-11  Bruno Haible  <bruno@clisp.org>
25264
25265         fcntl-h: Fix for use of C++ on glibc systems.
25266         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25267         also on glibc systems in C++ mode.
25268         Reported by Gary V. Vaughan <gary@gnu.org>.
25269
25270 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25271
25272         mknod: avoid false failure with dash
25273         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25274
25275 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25276
25277         unlink: Fix "is it should" typo in diagnostic.
25278         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25279         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25280
25281 2010-11-11  Bruno Haible  <bruno@clisp.org>
25282
25283         Tests for module 'strerror_r-posix'.
25284         * modules/strerror_r-posix-tests: New file.
25285         * tests/test-strerror_r.c: New file.
25286         * tests/test-string-c++.cc: Check the signature of strerror_r.
25287
25288         New module 'strerror_r-posix'.
25289         * lib/string.in.h (strerror_r): New declaration.
25290         * lib/strerror_r.c: New file.
25291         * m4/strerror_r.m4: New file.
25292         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
25293         of strerror_r.
25294         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
25295         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25296         * modules/strerror_r-posix: New file.
25297         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
25298         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25299         * doc/posix-functions/strerror_r.texi: Mention the new module and the
25300         portability problems.
25301
25302 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25303
25304         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25305         line is also considered for output. Quoted function name in shell
25306         command, so temporary files for functions like MyClass::operator()
25307         are removed correctly without errors.
25308
25309 2010-11-09  Bruno Haible  <bruno@clisp.org>
25310
25311         * doc/posix-functions/strerror.texi: List more failing platforms.
25312
25313         * doc/posix-functions/strerror.texi: Add a comment.
25314
25315 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25316
25317         fdopendir: fix bug on MacOS X when low on file descriptors
25318
25319         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25320         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25321         All callers changed.
25322         (fdopendir): Invoke save_cwd at the top level, not after using
25323         multiple dup() calls to use up file descriptors.  Then retry
25324         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25325         less than the maximum number of open file descriptors, because
25326         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25327         on Mac OS X 10.6.4 for tar 1.24
25328         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25329         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25330         and for tar 1.25
25331         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25332
25333 2010-11-07  Bruno Haible  <bruno@clisp.org>
25334
25335         vasnprintf: Support I flag on glibc systems.
25336         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25337         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25338         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25339         snprintf function.
25340         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25341         glibc systems.
25342         * tests/test-vasnprintf-posix3.c: New file.
25343         * modules/vasnprintf-posix-tests (Files): Add it.
25344         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25345
25346 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25347
25348         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25349         * MODULES.html.sh: For compiler warnings, use name
25350         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25351
25352 2010-11-05  Eric Blake  <eblake@redhat.com>
25353
25354         ceil, floor: avoid spurious failure with icc
25355         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25356         [denormals-as-zero] when optimizing without -mieee-fp option.
25357         * tests/test-floorf2.c (floorf_reference): Likewise.
25358         * tests/test-ceilf1.c (dummy): New function.
25359         (main): Use it to outsmart icc's optimization.
25360         * tests/test-floorf1.c (dummy, main): Likewise.
25361
25362         tests: require working signbit
25363         * modules/ceilf-tests (Depends-on): Add signbit.
25364         * modules/ceill-tests (Depends-on): Likewise.
25365         * modules/floorf-tests (Depends-on): Likewise.
25366         * modules/floorl-tests (Depends-on): Likewise.
25367         * modules/round-tests (Depends-on): Likewise.
25368         * modules/roundf-tests (Depends-on): Likewise.
25369         * modules/roundl-tests (Depends-on): Likewise.
25370         * modules/trunc-tests (Depends-on): Likewise.
25371         * modules/truncf-tests (Depends-on): Likewise.
25372         * modules/truncl-tests (Depends-on): Likewise.
25373
25374         strtod: work around icc bug
25375         * lib/strtod.c (minus_zero): Define to working value.
25376         (strtod): Use it to avoid icc bug.
25377
25378         copysign: enhance tests
25379         * modules/copysign-tests (Files): Add minus-zero.h.
25380         * tests/test-copysign.c (main): Also test zeros.
25381
25382 2010-11-04  Eric Blake  <eblake@redhat.com>
25383
25384         ceil, floor, round, trunc: enhance tests of -0
25385         * tests/test-ceilf1.c (main): Ensure correct sign of result.
25386         * tests/test-ceill.c (main): Likewise.
25387         * tests/test-floorf1.c (main): Likewise.
25388         * tests/test-floorl.c (main): Likewise.
25389         * tests/test-round1.c (main): Likewise.
25390         * tests/test-roundf1.c (main): Likewise.
25391         * tests/test-roundl.c (main): Likewise.
25392         * tests/test-trunc1.c (main): Likewise.
25393         * tests/test-truncf1.c (main): Likewise.
25394         * tests/test-truncl.c (main): Likewise.
25395
25396 2010-11-04  Eric Blake  <eblake@redhat.com>
25397
25398         frexp, tests: work around ICC bug with -zero
25399         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
25400         works with more compilers.
25401         * tests/minus-zero.h: New file.
25402         * modules/ceilf-tests (Files): Include it.
25403         * modules/ceill-tests (Files): Likewise.
25404         * modules/floorf-tests (Files): Likewise.
25405         * modules/floorl-tests (Files): Likewise.
25406         * modules/frexp-nolibm-tests (Files): Likewise.
25407         * modules/frexp-tests (Files): Likewise.
25408         * modules/frexpl-nolibm-tests (Files): Likewise.
25409         * modules/frexpl-tests (Files): Likewise.
25410         * modules/isnan-tests (Files): Likewise.
25411         * modules/isnand-nolibm-tests (Files): Likewise.
25412         * modules/isnand-tests (Files): Likewise.
25413         * modules/isnanf-nolibm-tests (Files): Likewise.
25414         * modules/isnanf-tests (Files): Likewise.
25415         * modules/isnanl-nolibm-tests (Files): Likewise.
25416         * modules/isnanl-tests (Files): Likewise.
25417         * modules/round-tests (Files): Likewise.
25418         * modules/roundf-tests (Files): Likewise.
25419         * modules/roundl-tests (Files): Likewise.
25420         * modules/ldexpl-tests (Files): Likewise.
25421         * modules/signbit-tests (Files): Likewise.
25422         * modules/snprintf-posix-tests (Files): Likewise.
25423         * modules/sprintf-posix-tests (Files): Likewise.
25424         * modules/strtod-tests (Files): Likewise.
25425         * modules/trunc-tests (Files): Likewise.
25426         * modules/truncf-tests (Files): Likewise.
25427         * modules/truncl-tests (Files): Likewise.
25428         * modules/vsnprintf-posix-tests (Files): Likewise.
25429         * modules/vsprintf-posix-tests (Files): Likewise.
25430         * modules/vasnprintf-posix-tests (Files): Likewise.
25431         * modules/vasprintf-posix-tests (Files): Likewise.
25432         * tests/test-ceilf1.c (main): Use it.
25433         * tests/test-ceill.c (main): Likewise.
25434         * tests/test-floorf1.c (main): Likewise.
25435         * tests/test-floorl.c (main): Likewise.
25436         * tests/test-frexp.c (main): Likewise.
25437         * tests/test-frexpl.c (main): Likewise.
25438         * tests/test-isnan.c (main): Likewise.
25439         * tests/test-isnand.h (main): Likewise.
25440         * tests/test-isnanf.h (main): Likewise.
25441         * tests/test-isnanl.h (main): Likewise.
25442         * tests/test-ldexpl.c (main): Likewise.
25443         * tests/test-round.c (main): Likewise.
25444         * tests/test-roundf.c (main): Likewise.
25445         * tests/test-roundl.c (main): Likewise.
25446         * tests/test-signbit.c (test_signbitf, test_signbitd)
25447         (test_signbitl): Likewise.
25448         * tests/test-snprintf-posix.h (test_function): Likewise.
25449         * tests/test-sprintf-posix.h (test_function): Likewise.
25450         * tests/test-strtod.c (main): Likewise.
25451         * tests/test-trunc1.c (main): Likewise.
25452         * tests/test-truncf1.c (main): Likewise.
25453         * tests/test-truncl.c (main): Likewise.
25454
25455         isnanl: work around icc bug
25456         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
25457
25458 2010-11-03  Eric Blake  <eblake@redhat.com>
25459
25460         tests: fix compiler warnings
25461         * tests/test-getopt.h (test_getopt): Fix condition.
25462         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25463         * tests/test-pipe2.c (main): Likewise.
25464         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25465
25466         utimens: fix broken m4 test
25467         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25468
25469 2010-10-28  Bruno Haible  <bruno@clisp.org>
25470
25471         posix_spawn*, getdtablesize: Relax license.
25472         * modules/posix_spawn (License): Change to LGPLv2+.
25473         * modules/posix_spawnp (License): Likewise.
25474         * modules/posix_spawn-internal (License): Likewise.
25475         * modules/posix_spawnattr_init (License): Likewise.
25476         * modules/posix_spawnattr_getflags (License): Likewise.
25477         * modules/posix_spawnattr_setflags (License): Likewise.
25478         * modules/posix_spawnattr_getpgroup (License): Likewise.
25479         * modules/posix_spawnattr_setpgroup (License): Likewise.
25480         * modules/posix_spawnattr_getschedparam (License): Likewise.
25481         * modules/posix_spawnattr_setschedparam (License): Likewise.
25482         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
25483         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
25484         * modules/posix_spawnattr_getsigdefault (License): Likewise.
25485         * modules/posix_spawnattr_setsigdefault (License): Likewise.
25486         * modules/posix_spawnattr_getsigmask (License): Likewise.
25487         * modules/posix_spawnattr_setsigmask (License): Likewise.
25488         * modules/posix_spawnattr_destroy (License): Likewise.
25489         * modules/posix_spawn_file_actions_init (License): Likewise.
25490         * modules/posix_spawn_file_actions_addclose (License): Likewise.
25491         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
25492         * modules/posix_spawn_file_actions_addopen (License): Likewise.
25493         * modules/posix_spawn_file_actions_destroy (License): Likewise.
25494         * modules/getdtablesize (License): Likewise.
25495         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
25496
25497 2010-10-26  Bruno Haible  <bruno@clisp.org>
25498
25499         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
25500         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
25501         Cygwin and mingw.
25502         Suggested by Eric Blake.
25503
25504 2010-10-26  Bruno Haible  <bruno@clisp.org>
25505
25506         stdio: Work around compilation error due to renameat() on Solaris 10.
25507         * lib/stdio.in.h: Include <unistd.h> on Solaris.
25508         * lib/renameat.c: Don't include <unistd.h> here.
25509         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
25510         Reported by Paul Eggert and Eric Blake.
25511
25512 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25513
25514         renameat: port to Solaris 10, which declares renameat in unistd.h
25515
25516         * lib/renameat.c: Include unistd.h before stdio.h, because
25517         Solaris 10 declares renameat in unistd.h.  Problem encountered
25518         when building GNU tar 1.24 on Solaris 10.
25519
25520 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25521
25522         fdopendir: fix C89 compilation
25523         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25524         compilers.
25525
25526 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25527
25528         inttostr: simplify by removing unnecessary redundancy
25529         * lib/anytostr.c: Don't include verify.h.
25530         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25531         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25532         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25533         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25534         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25535         Likewise.
25536         * modules/inttostr (Depends-on): Remove 'verify'.
25537
25538 2010-10-23  Bruno Haible  <bruno@clisp.org>
25539
25540         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25541         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25542         Reported by Eric Blake.
25543
25544 2010-10-23  Bruno Haible  <bruno@clisp.org>
25545
25546         Tests: Fix LOCALE_JA on MirBSD 10.
25547         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25548         to an UTF-8 locale.
25549         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25550         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25551         Reported by Eric Blake.
25552
25553 2010-10-21  Bruno Haible  <bruno@clisp.org>
25554
25555         nl_langinfo test: Avoid test failure on NetBSD 5.
25556         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25557         Reported by Eric Blake.
25558
25559 2010-10-21  Eric Blake  <eblake@redhat.com>
25560
25561         c-stack: work around libsigsegv 2.8 bug
25562         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25563         overflow on at least PowerPC64.
25564
25565 2010-10-17  Bruno Haible  <bruno@clisp.org>
25566
25567         userspec: Drop redundant file.
25568         * modules/userspec (Files): Remove lib/inttostr.h.
25569
25570 2010-10-17  Bruno Haible  <bruno@clisp.org>
25571
25572         nl_langinfo tests: Silence some warnings.
25573         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25574         Reported by Jim Meyering.
25575
25576 2010-10-17  Bruno Haible  <bruno@clisp.org>
25577
25578         Make use of GCC's attribute __alloc_size__.
25579         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25580         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25581         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25582         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25583         __alloc_size__.
25584         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25585         Suggested by Jim Meyering.
25586
25587 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25588
25589         bootstrap: anchor .gitignore entries.
25590         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25591         with...
25592         (insert_vc_ignore): ... this new function, which prepends `/' to
25593         all .gitignore entries before passing them to
25594         insert_sorted_if_absent.
25595
25596 2010-10-16  Bruno Haible  <bruno@clisp.org>
25597
25598         nextafter: Fix configure check.
25599         * modules/nextafter (configure.ac): Correct expected prototype.
25600
25601 2010-10-16  Bruno Haible  <bruno@clisp.org>
25602
25603         termios: Update documentation.
25604         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25605
25606 2010-10-16  Bruno Haible  <bruno@clisp.org>
25607
25608         tests: Make them compile with TinyCC.
25609         * tests/test-strstr.c (main): Remove parentheses around array
25610         initializer.
25611
25612 2010-10-15  Eric Blake  <eblake@redhat.com>
25613
25614         ignore-value: make header idempotent
25615         * lib/ignore-value.h: Add double-inclusion guards.
25616         Reported by Stefan Berger.
25617
25618 2010-10-15  Jim Meyering  <meyering@redhat.com>
25619
25620         GNUmakefile: handle "stable" target, not "major"
25621         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25622         lists in maint.mk and announce-gen.  Without this, "make stable"
25623         would fail to ensure that $(VERSION) is up to date.
25624
25625 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25626
25627         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25628         & co.
25629
25630 2010-10-14  Bruno Haible  <bruno@clisp.org>
25631
25632         vasnprintf: Don't set errno to 0.
25633         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25634         block that sets it to 0.
25635         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25636
25637 2010-10-14  Bruno Haible  <bruno@clisp.org>
25638
25639         socketlib: Fix.
25640         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25641         gl_PREREQ_SYS_H_WINSOCK2.
25642         Reported by Ian Beckwith <ianb@erislabs.net>.
25643
25644 2010-10-13  Jim Meyering  <meyering@redhat.com>
25645
25646         test-select-stdin.c: avoid warn_unused_result warnings
25647         * tests/test-select-stdin.c: Include "macros.h".
25648         ASSERT that read and fflush succeed.
25649
25650 2010-10-13  Jim Meyering  <meyering@redhat.com>
25651
25652         git-version-gen: do require git-VC'd files in cwd
25653         * build-aux/git-version-gen: Reject a git version string
25654         if there are no commits associated with the current directory.
25655         This avoids an unlikely false-positive (unrelated dir whose parent
25656         repository also contains a tag matching v*), as pointed out
25657         by Giuseppe Scrivano in
25658         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25659
25660 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25661
25662         argv-iter: omit nonconforming declaration
25663         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25664         enum arg_iter_err declaration, which doesn't conform to C99.
25665         Solaris 10 cc warns about this.
25666
25667 2010-10-13  Eric Blake  <eblake@redhat.com>
25668
25669         termios: fix compilation on mingw
25670         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25671         (gl_TERMIOS_H): Adjust it on mingw.
25672         * modules/termios (Makefile.am): Substitute new key.
25673         * lib/termios.in.h (includes): Make include_next conditional.
25674         * doc/posix-headers/termios.texi (termios.h): Update
25675         documentation.
25676         Reported by Daniel P. Berrange.
25677
25678 2010-10-13  Jim Meyering  <meyering@redhat.com>
25679
25680         git-version-gen: don't require that .git/ be in the current dir
25681         * build-aux/git-version-gen: Adjust this script so that it works
25682         when run from any working directory beneath the top-level .git/-
25683         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25684         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25685
25686         test-select: avoid warn_unused_result warnings
25687         * tests/test-select.c: Include "macros.h".
25688         ASSERT that each call to read, write, and pipe succeeds.
25689         While not technically required, also check each "close".
25690         * modules/select-tests (Files): Add tests/macros.h.
25691
25692         test-symlinkat: remove declaration of unused local
25693         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25694
25695         test-inttostr: avoid shadowing warnings
25696         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25697         and use malloc rather than the stack for the same reason as
25698         mentioned in the comment justifying the other allocation.
25699
25700 2010-10-11  Bruno Haible  <bruno@clisp.org>
25701
25702         stdlib: Allow multiple gnulib generated replacements to coexist.
25703         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25704         Reported by Sam Steingold <sds@gnu.org>.
25705
25706 2010-10-11  Jim Meyering  <meyering@redhat.com>
25707
25708         fix a documentation typo
25709         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25710
25711 2010-10-11  Eric Blake  <eblake@redhat.com>
25712
25713         futimens: work around Solaris 11 bug
25714         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25715         * tests/test-futimens.h (test_futimens): Enhance, rather than
25716         weaken test.
25717         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25718
25719 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25720
25721         Indentation.
25722         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25723         higher-level operators more to the left.
25724
25725 2010-10-11  Jim Meyering  <meyering@redhat.com>
25726
25727         test-futimens: avoid unwarranted test failure on Solaris 5.11
25728         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25729         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25730         because it tries to dereference the NULL name argument.
25731
25732 2010-10-11  Bruno Haible  <bruno@clisp.org>
25733
25734         Indentation.
25735         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25736         indentation.
25737
25738 2010-10-11  Jim Meyering  <meyering@redhat.com>
25739
25740         spawn.in.h: make indentation consistent with parentheses
25741         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25742         Make indentation consistent with parentheses.
25743
25744 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25745
25746         Fix mismatched parens in previous commit
25747         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25748         parens.
25749
25750 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25751
25752         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25753
25754         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25755         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25756         * lib/malloca.c: Include "verify.h".
25757         (verify1): Remove, replacing with a verify call.
25758         * lib/relocwrapper.c (verify1): Likewise.
25759         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25760         Likewise.
25761         * modules/malloca (Depends-on): Add 'verify'.
25762         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25763         * modules/vasnprintf (Depends-on): Add 'verify'.
25764         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25765         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25766         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25767         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25768         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25769         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25770         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25771
25772         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25773
25774         Formerly the style was sometimes 2*X - 1, because the C standard
25775         was wrongly thought to disallow ?: in integral constant expressions.
25776         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25777         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25778         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25779         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25780         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25781         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25782         verify that time_t cannot be floating.
25783
25784 2010-10-08  Eric Blake  <eblake@redhat.com>
25785
25786         time: enforce recent POSIX ruling that time_t is integral
25787         * lib/time.in.h (__time_t_must_be_integral): Detect any
25788         problematic systems, allowing the rest of gnulib to assume POSIX.
25789
25790 2010-10-08  Jim Meyering  <meyering@redhat.com>
25791
25792         fdopendir: fix a bug on systems lacking openat and /proc support
25793         OpenBSD 4.7 is one such system.  The most noticeable effect was
25794         failure of any application making nontrivial use of fts: rm, du,
25795         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25796           ./rm: traversal failed: `a': Bad file descriptor
25797         Debugging that, you see that even though FD 6 was closed just
25798         prior to the opendir call in fd_clone_opendir, its resulting
25799         dir->dd_fd was 8, rather than the expected value of 6:
25800
25801         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25802         93                close (fd);
25803         (gdb) n
25804         94                dir = fd_clone_opendir (dupfd);
25805         (gdb) n
25806         95                saved_errno = errno;
25807         (gdb) p dir->dd_fd
25808         $11 = 8
25809
25810         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25811         The problem is that on OpenBSD, fd_clone_opendir has to resort
25812         to using the old-style save/restore CWD mechanism, due to its
25813         lack of openat/proc support, and *that* would steal the FD (6)
25814         that opendir was supposed to use.
25815
25816         The fix is to squirrel away the desired FD so that save_cwd uses a
25817         different one, and then free the dest FD right before calling opendir.
25818         That guarantees opendir will use the required file descriptor.
25819
25820         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25821
25822 2010-10-08  Bruno Haible  <bruno@clisp.org>
25823
25824         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25825         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25826
25827 2010-10-08  Bruno Haible  <bruno@clisp.org>
25828
25829         nanosleep: Make replacement POSIX compliant.
25830         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25831         is out of range.
25832         Reported by Jim Meyering.
25833
25834 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25835
25836         bootstrap: add hook for altering gnulib.mk, for Bison
25837         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25838         the Bison bootstrapping process can rewrite file names and variables
25839         in this file before later parts of 'bootstrap' use the file.
25840         Bison wants to include lib/gnulib.mk from the top-level makefile,
25841         so it needs the file names in this file to be relative to the top
25842         level, not relative to lib; plus it needs variable names to be
25843         rewritten.
25844         (slurp): Use the new function.
25845
25846         bootstrap: reformat for readability
25847         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25848
25849 2010-10-08  Eric Blake  <eblake@redhat.com>
25850
25851         docs: update cygwin progress
25852         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25853         1.7.7.
25854         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25855         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25856         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25857         * doc/posix-functions/carg.texi (carg): Likewise.
25858         * doc/posix-functions/cargf.texi (cargf): Likewise.
25859         * doc/posix-functions/casin.texi (casin): Likewise.
25860         * doc/posix-functions/casinf.texi (casinf): Likewise.
25861         * doc/posix-functions/casinh.texi (casinh): Likewise.
25862         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25863         * doc/posix-functions/catan.texi (catan): Likewise.
25864         * doc/posix-functions/catanf.texi (catanf): Likewise.
25865         * doc/posix-functions/catanh.texi (catanh): Likewise.
25866         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25867         * doc/posix-functions/ccos.texi (ccos): Likewise.
25868         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25869         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25870         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25871         * doc/posix-functions/cexp.texi (cexp): Likewise.
25872         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25873         * doc/posix-functions/cimag.texi (cimag): Likewise.
25874         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25875         * doc/posix-functions/clog.texi (clog): Likewise.
25876         * doc/posix-functions/clogf.texi (clogf): Likewise.
25877         * doc/posix-functions/conj.texi (conj): Likewise.
25878         * doc/posix-functions/conjf.texi (conjf): Likewise.
25879         * doc/posix-functions/cpow.texi (cpow): Likewise.
25880         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25881         * doc/posix-functions/cproj.texi (cproj): Likewise.
25882         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25883         * doc/posix-functions/creal.texi (creal): Likewise.
25884         * doc/posix-functions/crealf.texi (crealf): Likewise.
25885         * doc/posix-functions/csin.texi (csin): Likewise.
25886         * doc/posix-functions/csinf.texi (csinf): Likewise.
25887         * doc/posix-functions/csinh.texi (csinh): Likewise.
25888         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25889         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25890         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25891         * doc/posix-functions/ctan.texi (ctan): Likewise.
25892         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25893         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25894         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25895         * doc/posix-headers/complex.texi (complex.h): Likewise.
25896
25897 2010-10-07  Jim Meyering  <meyering@redhat.com>
25898
25899         parse-datetime: avoid compilation failure on OpenBSD 4.7
25900         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25901         This works around a compilation failure on OpenBSD 4.7:
25902         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25903
25904 2010-10-07  Eric Blake  <eblake@redhat.com>
25905
25906         docs: update cygwin progress
25907         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25908         1.7.6.
25909         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25910         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25911         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25912         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25913         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25914         Likewise.
25915         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25916         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25917         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25918         Likewise.
25919         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25920         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25921         Likewise.
25922         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25923         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25924         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25925         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25926         Likewise.
25927         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25928         Likewise.
25929         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25930
25931         docs: update parse-datetime history
25932         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25933         documentation of this function's history and alternatives.
25934
25935         cygwin: use more robust version check
25936         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25937         exclude an eventual cygwin 1.9.1.
25938         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25939         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25940         (gl_FUNC_STRCASESTR): Likewise.
25941         Reported by Bruno Haible.
25942
25943 2010-10-06  Bruno Haible  <bruno@clisp.org>
25944
25945         string, sys_select: Avoid #including large headers unless necessary.
25946         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25947         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25948         OSF/1, BeOS, Haiku.
25949         Reported by Jim Meyering.
25950
25951 2010-10-05  Eric Blake  <eblake@redhat.com>
25952
25953         memmem, strstr, strcasestr: fix bug with long periodic needle
25954         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25955         periodic needle having false positive.
25956         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25957         and cygwin 1.7.7.
25958         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25959         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25960         (gl_FUNC_STRCASESTR): Likewise.
25961         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25962         * tests/test-memmem.c (main): Expose the bug.
25963         * tests/test-strcasestr.c (main): Likewise.
25964         * tests/test-strstr.c (main): Likewise.
25965         * tests/test-c-strcasestr.c (main): Likewise.
25966         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25967         * doc/posix-functions/strstr.texi (strstr): Likewise.
25968         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25969         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25970
25971 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25972
25973         parse-datetime: do some more renaming
25974         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25975         parse_datetime, not get_date.  Mention the renaming.
25976         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25977         in comments.
25978         * m4/bison.m4: Likewise.
25979
25980 2010-10-05  Eric Blake  <eblake@redhat.com>
25981
25982         parse-datetime: better name than get_date
25983         * NEWS: Reword the deprecation notice.
25984         * modules/get_date: Rename to modules/parse-datetime.
25985         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25986         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25987         * lib/get_date.y: Rename to lib/parse-datetime.y.
25988         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25989         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25990         * doc/getdate.texi: Provide fallback wrapper.
25991         * lib/getdate.h: Move guts, and wrap...
25992         * lib/parse-datetime.h: ...new file.
25993         * lib/parse-datetime.y (get_date): Rename...
25994         (parse_datetime): ...to this.
25995         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25996         (gl_PARSE_DATETIME): ...to this.
25997         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25998         documentation.
25999         * modules/getdate (Files): Provide fallback docs and header.
26000         (Notice, Depends-on): Update references.
26001         * tests/test-parse-datetime.c: Likewise.
26002         * DEPENDENCIES: Likewise.
26003         * MODULES.html.sh (Date and time <time.h>): Likewise.
26004         * doc/parse-datetime.texi (Date input formats)
26005         (Authors of parse_datetime): Likewise.
26006         * modules/parse-datetime (Files, configure.ac, Makefile.am)
26007         (Include): Likewise.
26008         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
26009         * gnulib-tool: Likewise.
26010         * m4/bison.m4 (gl_BISON): Likewise.
26011         Suggested by Bruno Haible.
26012
26013 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26014
26015         more ports to Solaris tr, which needs [] around ranges
26016         * gnulib-tool: Solaris tr needs [] around ranges.
26017         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26018         * tests/test-pipe-filter-gi1.c (main): Likewise.
26019         * tests/test-pipe-filter-ii1.c (main): Likewise.
26020
26021 2010-10-05  Eric Blake  <eblake@redhat.com>
26022
26023         bootstrap: fix Solaris regression
26024         * build-aux/bootstrap (check_versions): Solaris tr still needs []
26025         around ranges.
26026         Reported by Pádraig Brady.
26027
26028         bootstrap: work with pkg-config
26029         * build-aux/bootstrap (check_versions): Also transliterate - in
26030         prerequisite name.
26031         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
26032         prerequisites that were already found, to avoid confusion.
26033         Reported by Justin Clift.
26034
26035         faccessat: remove unused wrappers
26036         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26037         presence of these wrappers dragged in -lgen on Solaris.
26038         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26039
26040 2010-10-05  Jim Meyering  <meyering@redhat.com>
26041
26042         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26043         * Makefile (sc_pragma_columns): New syntax-check rule.
26044
26045 2010-10-04  Bruno Haible  <bruno@clisp.org>
26046
26047         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26048         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26049         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26050         Reported by Bruce Korb and Eric Blake.
26051
26052 2010-10-04  Bruno Haible  <bruno@clisp.org>
26053
26054         threadlib: Make option --with-libpth-prefix work.
26055         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26056         use $LIBPTH, not just -lpth.
26057
26058 2010-10-04  Bruno Haible  <bruno@clisp.org>
26059
26060         Avoid line length limitation from HP NonStop system header files.
26061         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26062         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26063         * lib/ctype.in.h: Likewise.
26064         * lib/dirent.in.h: Likewise.
26065         * lib/errno.in.h: Likewise.
26066         * lib/fcntl.in.h: Likewise.
26067         * lib/float.in.h: Likewise.
26068         * lib/getopt.in.h: Likewise.
26069         * lib/iconv.in.h: Likewise.
26070         * lib/inttypes.in.h: Likewise.
26071         * lib/langinfo.in.h: Likewise.
26072         * lib/locale.in.h: Likewise.
26073         * lib/math.in.h: Likewise.
26074         * lib/netdb.in.h: Likewise.
26075         * lib/netinet_in.in.h: Likewise.
26076         * lib/poll.in.h: Likewise.
26077         * lib/pthread.in.h: Likewise.
26078         * lib/pty.in.h: Likewise.
26079         * lib/sched.in.h: Likewise.
26080         * lib/se-selinux.in.h: Likewise.
26081         * lib/search.in.h: Likewise.
26082         * lib/signal.in.h: Likewise.
26083         * lib/spawn.in.h: Likewise.
26084         * lib/stdarg.in.h: Likewise.
26085         * lib/stddef.in.h: Likewise.
26086         * lib/stdint.in.h: Likewise.
26087         * lib/stdio.in.h: Likewise.
26088         * lib/stdlib.in.h: Likewise.
26089         * lib/string.in.h: Likewise.
26090         * lib/strings.in.h: Likewise.
26091         * lib/sys_file.in.h: Likewise.
26092         * lib/sys_ioctl.in.h: Likewise.
26093         * lib/sys_select.in.h: Likewise.
26094         * lib/sys_socket.in.h: Likewise.
26095         * lib/sys_stat.in.h: Likewise.
26096         * lib/sys_time.in.h: Likewise.
26097         * lib/sys_times.in.h: Likewise.
26098         * lib/sys_utsname.in.h: Likewise.
26099         * lib/sys_wait.in.h: Likewise.
26100         * lib/sysexits.in.h: Likewise.
26101         * lib/termios.in.h: Likewise.
26102         * lib/time.in.h: Likewise.
26103         * lib/unistd.in.h: Likewise.
26104         * lib/wchar.in.h: Likewise.
26105         * lib/wctype.in.h: Likewise.
26106         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26107         * modules/ctype (Makefile.am): Likewise.
26108         * modules/dirent (Makefile.am): Likewise.
26109         * modules/errno (Makefile.am): Likewise.
26110         * modules/fcntl-h (Makefile.am): Likewise.
26111         * modules/float (Makefile.am): Likewise.
26112         * modules/getopt-posix (Makefile.am): Likewise.
26113         * modules/iconv-h (Makefile.am): Likewise.
26114         * modules/inttypes (Makefile.am): Likewise.
26115         * modules/langinfo (Makefile.am): Likewise.
26116         * modules/locale (Makefile.am): Likewise.
26117         * modules/math (Makefile.am): Likewise.
26118         * modules/netdb (Makefile.am): Likewise.
26119         * modules/netinet_in (Makefile.am): Likewise.
26120         * modules/poll-h (Makefile.am): Likewise.
26121         * modules/pthread (Makefile.am): Likewise.
26122         * modules/pty (Makefile.am): Likewise.
26123         * modules/sched (Makefile.am): Likewise.
26124         * modules/search (Makefile.am): Likewise.
26125         * modules/selinux-h (Makefile.am): Likewise.
26126         * modules/signal (Makefile.am): Likewise.
26127         * modules/spawn (Makefile.am): Likewise.
26128         * modules/stdarg (Makefile.am): Likewise.
26129         * modules/stddef (Makefile.am): Likewise.
26130         * modules/stdint (Makefile.am): Likewise.
26131         * modules/stdio (Makefile.am): Likewise.
26132         * modules/stdlib (Makefile.am): Likewise.
26133         * modules/string (Makefile.am): Likewise.
26134         * modules/strings (Makefile.am): Likewise.
26135         * modules/sys_file (Makefile.am): Likewise.
26136         * modules/sys_ioctl (Makefile.am): Likewise.
26137         * modules/sys_select (Makefile.am): Likewise.
26138         * modules/sys_socket (Makefile.am): Likewise.
26139         * modules/sys_stat (Makefile.am): Likewise.
26140         * modules/sys_time (Makefile.am): Likewise.
26141         * modules/sys_times (Makefile.am): Likewise.
26142         * modules/sys_utsname (Makefile.am): Likewise.
26143         * modules/sys_wait (Makefile.am): Likewise.
26144         * modules/sysexits (Makefile.am): Likewise.
26145         * modules/termios (Makefile.am): Likewise.
26146         * modules/time (Makefile.am): Likewise.
26147         * modules/unistd (Makefile.am): Likewise.
26148         * modules/wchar (Makefile.am): Likewise.
26149         * modules/wctype (Makefile.am): Likewise.
26150
26151 2010-10-04  Bruno Haible  <bruno@clisp.org>
26152
26153         read-file tests: Avoid a test failure on NonStop Kernel.
26154         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26155         a regular file.
26156         Reported by Joachim Schmitz <schmitz@hp.com>.
26157
26158 2010-10-03  Bruno Haible  <bruno@clisp.org>
26159
26160         gnulib-tool: Fixes for --create-testdir with --libtool.
26161         * gnulib-tool (func_get_automake_snippet): Don't augment
26162         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26163         an executable.
26164         (func_create_testdir): Handle module 'alloca' like func_import.
26165         Reported by Bruce Korb <bruce.korb@gmail.com>.
26166
26167 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26168
26169         Avoid some lines longer than 80 characters.
26170         * lib/stdint.in.h: Break long comment lines.
26171         * lib/math.in.h: Likewise.
26172         (_GL_NUM_UINT_WORDS): New macro, for readability.
26173         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26174         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26175         * lib/stdlib.in.h: Likewise.
26176         * lib/spawn.in.h: Likewise.
26177         * lib/sys_socket.in.h: Update an URL.
26178         * lib/sys_stat.in.h: Break long line.
26179
26180 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26181
26182         Improve pmccabe2html.
26183         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26184         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26185         when the sources change. Remove the line in the HTML about "Used
26186         ranges" (which implied that there might be other unused ranges),
26187         rename "Resume" to "Summary" (easier to understand for more users).
26188         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26189         styles, and some unnecessary blank lines.
26190
26191 2010-10-03  Bruno Haible  <bruno@clisp.org>
26192             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26193
26194         acl: Add support for ACLs on NonStop Kernel.
26195         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26196         Check whether the function aclsort() exists.
26197         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26198         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26199         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26200         (acl_nontrivial [HAVE_ACLSORT]: New function.
26201         (file_has_acl): Implement for NonStop Kernel.
26202         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26203         (qset_acl): Implement for NonStop Kernel.
26204         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26205         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26206         (main): Implement for NonStop Kernel.
26207         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26208         Kernel. Handle this flavor.
26209         * tests/test-set-mode-acl.sh: Likewise.
26210         * tests/test-copy-acl.sh: Likewise.
26211         * tests/test-copy-file.sh: Likewise.
26212
26213 2010-10-03  Bruno Haible  <bruno@clisp.org>
26214
26215         Info about ACLs on NonStop Kernel.
26216         * doc/acl-resources.txt: Add info about NonStop Kernel.
26217         References by Joachim Schmitz <schmitz@hp.com>.
26218
26219 2010-10-02  Bruno Haible  <bruno@clisp.org>
26220
26221         Define missing EDQUOT on NonStop Kernel.
26222         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26223         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26224         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26225         missing.
26226         * doc/posix-headers/errno.texi: Mention the NSK bug.
26227         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26228         Reported by Joachim Schmitz <schmitz@hp.com>.
26229
26230 2010-10-02  Bruno Haible  <bruno@clisp.org>
26231
26232         Update doc for POSIX:2008.
26233         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26234         Update URL of POSIX specification.
26235
26236 2010-10-02  Bruno Haible  <bruno@clisp.org>
26237
26238         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26239         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26240         from gnulib, not from Automake.
26241
26242 2010-10-02  Bruno Haible  <bruno@clisp.org>
26243
26244         New module 'system-posix'.
26245         * modules/system-posix: New file.
26246         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26247         module is present.
26248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26249         GNULIB_SYSTEM_POSIX.
26250         * modules/stdlib (Depends-on): Remove sys_wait.
26251         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26252         * doc/posix-functions/system.texi: Mention the new module.
26253         * doc/posix-headers/stdlib.texi: Likewise.
26254         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26255         define test_sys_wait_macros to a no-op.
26256         Reported by Sam Steingold <sds@gnu.org>.
26257
26258 2010-09-30  Bruno Haible  <bruno@clisp.org>
26259
26260         More renaming from 'getdate' to 'get_date'.
26261         * doc/get_date.texi: Renamed from doc/getdate.texi.
26262         * modules/get_date (Files): Update.
26263         * MODULES.html.sh (Date and time <time.h>): Update.
26264         * DEPENDENCIES: Update.
26265         * gnulib-tool: Update comment.
26266         * m4/bison.m4 (gl_BISON): Likewise.
26267         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26268
26269 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26270
26271         bootstrap: support ACLOCAL_FLAGS during aclocal
26272         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26273         can add additional -I dir for third-party .m4 files.
26274
26275 2010-09-30  Eric Blake  <eblake@redhat.com>
26276
26277         bootstrap: use glibtoolize on MacOS
26278         * build-aux/bootstrap (check_versions): Convert libtool into
26279         libtoolize.
26280         (tool search): Move libtool check earlier, and look for
26281         glibtoolize for MacOS.
26282         (gnulib_tool_options): Auto-add --libtool when appropriate.
26283         Reported by Justin Clift.
26284
26285         poll: fix typo that broke test on MacOS
26286         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26287         Reported by Justin Clift.
26288
26289         getdate: rename to get_date
26290         Note: getdate.h is not renamed, to minimize client impact.
26291         * modules/getdate: Mark obsolete.  Move old contents...
26292         * modules/get_date: ...to new module name.
26293         * modules/getdate-tests: Move...
26294         * modules/get_date-tests: ...here.
26295         * m4/getdate.m4: Move...
26296         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
26297         * lib/getdate.y: Move...
26298         * lib/get_date.y: ...here.
26299         * tests/test-getdate.c: Move...
26300         * tests/test-get_date.c: ...here.
26301         * doc/posix-functions/getdate.texi (getdate): Update name.
26302         * NEWS: Mention the change.
26303
26304 2010-09-29  Bruno Haible  <bruno@clisp.org>
26305
26306         Separate the module 'waitpid' from the module 'sys_wait'.
26307         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26308         present.
26309         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26310         gl_MODULE_INDICATOR_FOR_TESTS.
26311         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26312         * modules/sys_wait (Depends-on): Remove waitpid.
26313         (Makefile.am): Substitute GNULIB_WAITPID.
26314         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26315         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26316         signature only if the 'waitpid' module is present.
26317         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26318         * NEWS: Mention the change.
26319         * modules/grantpt (Depends-on): Add waitpid.
26320         * modules/wait-process (Depends-on): Likewise.
26321
26322 2010-09-29  Bruno Haible  <bruno@clisp.org>
26323
26324         More tests for module 'sys_wait'.
26325         * modules/sys_wait-c++-tests: New file.
26326         * tests/test-sys_wait-c++.cc: New file.
26327         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26328         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26329
26330 2010-09-29  Bruno Haible  <bruno@clisp.org>
26331
26332         New module 'waitpid'.
26333         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26334         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26335         Don't include <process.h>.
26336         (waitpid): Declare only, using modern idiom.
26337         * m4/waitpid.m4: New file.
26338         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26339         * modules/waitpid: New file.
26340         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26341         (Makefile.am): Update.
26342         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26343
26344 2010-09-28  Bruno Haible  <bruno@clisp.org>
26345
26346         poll: Assume ANSI C.
26347         * lib/poll.c (poll): Use an ANSI C declaration.
26348
26349 2010-09-28  Bruno Haible  <bruno@clisp.org>
26350
26351         poll-h: Create poll.h on all platforms.
26352         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26353         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26354         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26355         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26356         (gl_REPLACE_POLL_H): Don't set POLL_H.
26357         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26358         * modules/poll-h (Depends-on): Add include_next.
26359         (Makefile.am): Create poll.h unconditionally. Substitute also
26360         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26361
26362 2010-09-28  Bruno Haible  <bruno@clisp.org>
26363
26364         Tests for module 'poll-h'.
26365         * modules/poll-h-c++-tests: New file.
26366         * tests/test-poll-h-c++.cc: New file.
26367
26368         Tests for module 'poll-h'.
26369         * modules/poll-h-tests: New file.
26370         * tests/test-poll-h.c: New file.
26371
26372 2010-09-28  Bruno Haible  <bruno@clisp.org>
26373
26374         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
26375         * modules/poll-h (Depends-on): Add 'extensions'.
26376
26377 2010-09-28  Bruno Haible  <bruno@clisp.org>
26378
26379         New module 'poll-h'.
26380         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
26381         (poll): Use modern idiom.
26382         * modules/poll-h: New file.
26383         * modules/poll (Files): Remove lib/poll.in.h.
26384         (Depends-on): Add poll-h.
26385         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
26386         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26387         * m4/poll_h.m4: New file.
26388         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
26389         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
26390         and invoke gl_REPLACE_POLL_H.
26391         * lib/poll.c: Use common idiom.
26392         * tests/test-poll.c: Likewise.
26393         * doc/posix-headers/poll.texi: Mention the poll-h module.
26394         Suggested by Eric Blake.
26395
26396 2010-09-26  Bruno Haible  <bruno@clisp.org>
26397
26398         sys_wait: Implement WSTOPSIG.
26399         * lib/sys_wait.in.h (WSTOPSIG): New macro.
26400         Reported by Simon Josefsson.
26401
26402 2010-09-26  Simon Josefsson  <simon@josefsson.org>
26403
26404         stdlib, sys_wait: Avoid compilation error on mingw.
26405         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
26406
26407 2010-09-26  Bruno Haible  <bruno@clisp.org>
26408
26409         stdlib tests: Avoid code duplication.
26410         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
26411         * modules/sys_wait-tests (Files): Likewise.
26412         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
26413         * tests/test-stdlib.c: Include test-sys_wait.h.
26414         (main): Invoke test_sys_wait_macros.
26415         * tests/test-sys_wait.c: Include test-sys_wait.h.
26416         (main): Invoke test_sys_wait_macros.
26417
26418 2010-09-25  Simon Josefsson  <simon@josefsson.org>
26419
26420         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26421         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26422         sure Windows sockets are working before calling getaddrinfo.
26423         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26424         * doc/gnulib.texi (Windows sockets): Fix typo.
26425
26426 2010-09-25  Bruno Haible  <bruno@clisp.org>
26427
26428         Tests for module 'regex-quote'.
26429         * modules/regex-quote-tests: New file.
26430         * tests/test-regex-quote.c: New file.
26431
26432         New module 'regex-quote'.
26433         * lib/regex-quote.h: New file.
26434         * lib/regex-quote.c: New file.
26435         * modules/regex-quote: New file.
26436         Suggested by Reuben Thomas <rrt@sc3d.org>.
26437
26438 2010-09-24  Bruno Haible  <bruno@clisp.org>
26439
26440         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
26441         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
26442
26443 2010-09-23  Bruno Haible  <bruno@clisp.org>
26444
26445         setenv: Relax license.
26446         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
26447         Blake.
26448         Requested by Eric Blake.
26449
26450 2010-09-22  Bruno Haible  <bruno@clisp.org>
26451
26452         termios: Relax license.
26453         * modules/termios (License): Change to LGPLv2+.
26454         Requested by Eric Blake.
26455
26456 2010-09-22  Bruno Haible  <bruno@clisp.org>
26457
26458         threadlib: Allow the package to change the default to 'no'.
26459         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
26460         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
26461         Reported by Paul Eggert.
26462
26463 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26464             Bruno Haible  <bruno@clisp.org>
26465
26466         Fix endless loop in mbmemcasecoll.
26467         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26468         byte.
26469         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26470
26471 2010-09-22  Bruno Haible  <bruno@clisp.org>
26472
26473         Tests for module 'memcoll'.
26474         * modules/memcoll-tests: New file.
26475         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
26476
26477         memcoll, xmemcoll: Clarify size vs. length.
26478         * modules/memcoll.c (memcoll0): Clarify specification.
26479         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
26480         passed to collate_error.
26481
26482 2010-09-22  Bruno Haible  <bruno@clisp.org>
26483
26484         Tests for module 'memcasecmp'.
26485         * modules/memcasecmp-tests: New file.
26486         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
26487
26488 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26489
26490         * lib/pthread.in.h: Add split double-inclusion guard, and include
26491         system <pthread.h> if there is one.  Use @@-style as in other
26492         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
26493         pthread.h doesn't.
26494         (pthread_mutexattr_destroy, pthread_mutexattr_init):
26495         (pthread_mutexattr_settype, pthread_mutex_trylock):
26496         New static inline functions, if there's no system <pthread.h>.
26497         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
26498         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
26499         Approximate with mutexes if the system lacks spinlocks, as in
26500         MacOS.
26501         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
26502         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
26503         @@-style.  Check for spinlocks separately.
26504         (gl_PTHREAD_DEFAULTS): New macro.
26505         * modules/pthread: Redo to use a more typical style for in.h files.
26506
26507 2010-09-21  Eric Blake  <eblake@redhat.com>
26508
26509         net_if: enhance tests
26510         * tests/test-net_if.c (main): Move signature checks earlier.
26511         Print failures to stderr.
26512         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
26513         Document the bug that we do not yet fix.
26514
26515 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26516
26517         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26518         about gnulib, not GSS.
26519
26520 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26521
26522         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26523         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26524         for Emacs.
26525         * build-aux/pmccabe2html: Make Makefile.am example code more
26526         cut-and-paste friendly.
26527
26528 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26529
26530         * tests/test-net_if.c: New file.
26531         * modules/net_if-tests: New file.
26532
26533 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26534
26535         pthread: add pthread_spin_destroy
26536         * lib/pthread.in.h (pthread_spin_destroy): New function.
26537
26538 2010-09-19  Bruno Haible  <bruno@clisp.org>
26539
26540         gnulib-tool: Fix --help output.
26541         * gnulib-tool (func_usage): Fix help message.
26542         Reported by Reuben Thomas <rrt@sc3d.org>.
26543
26544 2010-09-18  Jim Meyering  <meyering@redhat.com>
26545
26546         maint.mk: avoid unexpanded \n in two diagnostics
26547         * top/maint.mk (sc_prohibit_always_true_header_tests):
26548         Don't use a literal \n in a halt=... assignment.  It would not be
26549         expanded, and the two \n bytes would appear in the diagnostic output
26550         rather than the desired newline.  Use halt=$$(printf ... instead.
26551         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26552
26553 2010-09-18  Bruno Haible  <bruno@clisp.org>
26554
26555         netinet_in: Doc tweak.
26556         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26557         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26558
26559 2010-09-18  Jim Meyering  <meyering@redhat.com>
26560
26561         init.sh: correct an outdated comment
26562         * tests/init.sh (create_exe_shims_):  s/function/alias/
26563
26564         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26565         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26566         a file named "*.exe" is removed between the glob expansion and the
26567         processing of that oddly named file.
26568
26569 2010-09-17  Eric Blake  <eblake@redhat.com>
26570
26571         mirbsd: add some more support
26572         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26573         in BSD family.
26574         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26575         devices as OpenBSD.
26576         * m4/host-os.m4 (mirbsd): Add MirBSD.
26577
26578         tests: fix unportable assumption on sys/wait.h
26579         * tests/test-sys_wait.c (main): Relax test.
26580         * tests/test-stdlib.c (main): Likewise.
26581
26582         init.sh: accommodate directory with no .exes
26583         * tests/init.sh: Accomodate directory containing only scripts.
26584
26585         tests: avoid compiler warning
26586         * tests/test-stdlib.c (main): Use the variable.
26587
26588         fdutimens, fdutimensat: update signature, again
26589         * lib/utimens.h (gl_futimens): Delete, and move signature...
26590         (fdutimens): ...here.
26591         (fdutimensat): Rearrange signature.
26592         (lutimensat): Rename variable for clarity.
26593         * lib/fdutimensat.c (fdutimensat): Update signature.
26594         * lib/utimens.c (fdutimens): Likewise.
26595         (gl_futimens): Delete.
26596         (utimens, lutimens): Update callers.
26597         * lib/futimens.c (futimens): Likewise.
26598         * tests/test-fdutimensat.c: Likewise.
26599         * tests/test-utimens.c: Likewise.
26600         * tests/test-futimens.h: Update comment.
26601         * NEWS: Mention this.
26602         Suggested by Paul Eggert.
26603
26604 2010-09-17  Bruno Haible  <bruno@clisp.org>
26605
26606         Take over the maintenance of some older macros from Autoconf.
26607         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26608         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26609         GNU Autoconf.
26610         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26611         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26612
26613 2010-09-17  Eric Blake  <eblake@redhat.com>
26614
26615         fdutimensat: drop atflag validation
26616         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26617         with valid fd, to close a race scenario where futimens is
26618         unsupported and FILE was replaced by a symlink.
26619         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26620         accordingly.
26621         Suggested by Paul Eggert.
26622
26623 2010-09-16  Bruno Haible  <bruno@clisp.org>
26624
26625         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26626         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26627
26628 2010-09-16  Bruno Haible  <bruno@clisp.org>
26629
26630         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26631         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26632         login_tty exists.
26633         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26634
26635 2010-09-16  Bruno Haible  <bruno@clisp.org>
26636
26637         login_tty: Make the replacement code work on BSD systems.
26638         * lib/login_tty.c: Include <sys/ioctl.h>.
26639         (login_tty): Use ioctl TIOCSCTTY when available.
26640         * modules/login_tty (Depends-on): Add sys_ioctl.
26641         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26642
26643 2010-09-16  Bruno Haible  <bruno@clisp.org>
26644
26645         login_tty: Stricter unit test.
26646         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26647         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26648         and tcgetsid() after login_tty.
26649         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26650
26651 2010-09-16  Bruno Haible  <bruno@clisp.org>
26652
26653         New module 'tcgetsid'.
26654         * lib/tcgetsid.c: New file.
26655         * m4/tcgetsid.m4: New file.
26656         * modules/tcgetsid: New file.
26657         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26658         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26659         GNULIB_TCGETSID, HAVE_TCGETSID.
26660         * lib/termios.in.h: Include <sys/types.h>.
26661         (tcgetsid): New declaration.
26662         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26663         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26664         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26665         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26666
26667 2010-09-16  Bruno Haible  <bruno@clisp.org>
26668
26669         Tests for module 'termios'.
26670         * modules/termios-c++-tests: New file.
26671         * modules/termios-tests: New file.
26672         * tests/test-termios-c++.cc: New file.
26673         * tests/test-termios.c: New file.
26674
26675         New module 'termios'.
26676         * modules/termios: New file.
26677         * lib/termios.in.h: New file.
26678         * m4/termios_h.m4: New file.
26679         * doc/posix-headers/termios.texi: Mention the new module.
26680
26681 2010-09-16  Eric Blake  <eblake@redhat.com>
26682
26683         fdutimensat: add an atflag parameter
26684         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26685         * lib/utimens.h (fdutimensat): Update prototype.
26686         * tests/test-fdutimensat.c: Adjust test to match.
26687         * NEWS: Document the change.
26688         Suggested by Paul Eggert.
26689
26690 2010-09-16  Bruno Haible  <bruno@clisp.org>
26691
26692         Fix typos in comments.
26693         * lib/striconveh.h: Fix typo in comment.
26694         * lib/login_tty.c (login_tty): Likewise.
26695
26696 2010-09-15  Bruno Haible  <bruno@clisp.org>
26697
26698         stdlib: clarify MirBSD WEXITSTATUS bug
26699         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26700         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26701
26702 2010-09-15  Eric Blake  <eblake@redhat.com>
26703
26704         stdlib: work around MirBSD WEXITSTATUS bug
26705         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26706         * modules/stdlib (Depends-on): Add sys_wait.
26707         * tests/test-sys_wait.c (main): Enhance test.
26708         * tests/test-stdlib.c (main): Likewise.
26709         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26710
26711         docs: mention MacOS issue with WEXITSTATUS(constant)
26712         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26713         issue.
26714         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26715
26716         strnlen: add tests
26717         * modules/strnlen-tests: New file.
26718         * tests/test-strnlen.c: Likewise.
26719
26720 2010-09-14  Bruno Haible  <bruno@clisp.org>
26721
26722         unistr/base: Avoid link errors when module 'libunistring' is also used.
26723         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26724         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26725         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26726         Declare also when HAVE_LIBUNISTRING is set.
26727         Reported by Pádraig Brady <P@draigbrady.com>.
26728
26729 2010-09-14  Eric Blake  <eblake@redhat.com>
26730
26731         test-rawmemchr: make more robust
26732         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26733         (Depends-on, configure.ac): Add needed prerequisites to use it.
26734         * modules/memchr-tests (Files, Depends-on, configure.ac):
26735         Likewise, to avoid implicit reliance on memchr module prereqs.
26736         * tests/test-memchr.c (main): Ensure proper masking.
26737         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26738         reads.
26739
26740         memchr: detect glibc Alpha bug
26741         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26742         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26743         Alpha.
26744         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26745         * tests/test-memchr.c (main): Enhance test.
26746         Reported by Nelson H. F. Beebe.
26747
26748 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26749
26750         fts, getcwd, glob: audit for dirfd returning -1
26751         * lib/fts.c (opendir): Remove #define; no longer used.
26752         (opendirat): New arg PDIR_FD.  All callers changed.
26753         (fts_build, _opendir2): Use new opendirat to avoid the need for
26754         dirfd, or for checking whether dirfd returns a negative value.
26755         Don't use opendir; always use openat followed by fdopendir.
26756         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26757         it.
26758         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26759         returns -1 here.
26760         * modules/fts (Depends-on): Remove dirfd.
26761         * modules/getcwd (Depends-on): Likewise.
26762
26763 2010-09-13  Eric Blake  <eblake@redhat.com>
26764
26765         float: fix broken MirBSD header
26766         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26767         * doc/posix-headers/float.texi (float.h): Document it.
26768
26769 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26770
26771         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26772         * lib/fts.c (opendirat): New arg extra_flags.
26773         (__opendir2): Use it to avoid following symlinks when opening
26774         a directory, if symlinks are not supposed to be followed.  See
26775         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26776
26777         fdopendir: preserve argument fd before returning
26778         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26779         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26780         (fdopendir): Use them, arranging for FD to be open to the same
26781         directory that it was when it started.  (It might be temporarily
26782         closed while fdopendir is running, so this not thread- or
26783         signal-safe.)  Be careful to do the right thing even when file
26784         descriptors are scarce and dup fails with errno == EMFILE.  See
26785         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26786
26787 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26788
26789         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26790         * NEWS: Document change.
26791         * m4/regex.m4: Disable test for regoff_t size.
26792
26793 2010-09-13  Jim Meyering  <meyering@redhat.com>
26794
26795         fts: don't operate on an invalid file descriptor after failed dup
26796         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26797         negative file descriptor.
26798
26799 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26800
26801         savedir: add streamsavedir, deprecate fdsavedir
26802         * NEWS: Mention deprecation of fdsavedir.
26803         * lib/savedir.c (streamsavedir): New extern function, whose name
26804         ends in "savedir" to be consistent with the others.  This differs
26805         from savedirstream in that it doesn't close its argument.  The
26806         next version of GNU tar will use this instead of fdsavedir, to
26807         avoid some race conditions and conserve file descriptors.
26808         (savedirstream): Reimplement as a wrapper around streamsavedir.
26809         (fdsavedir): Add a comment deprecating this function.  As far as
26810         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26811         * lib/savedir.h (streamsavedir): New decl.
26812         (fdsavedir): Add a comment deprecating this.
26813
26814 2010-09-10  Bruno Haible  <bruno@clisp.org>
26815
26816         langinfo: Fix last commit.
26817         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26818         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26819         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26820
26821 2010-09-10  Bruno Haible  <bruno@clisp.org>
26822
26823         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26824         * lib/progreloc.c (O_EXEC): Define fallback.
26825
26826 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26827
26828         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26829         * NEWS: Document recent changes to fcntl-h.
26830         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26831         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26832         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26833         Similarly for O_SEARCH; this last was already true, but not documented.
26834         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26835         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26836         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26837         Likewise.
26838         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26839         is zero, not whether it is defined.
26840         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26841         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26842         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26843
26844 2010-09-10  Bruno Haible  <bruno@clisp.org>
26845
26846         langinfo, nl_langinfo: Fix for IRIX 5.3.
26847         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26848         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26849         HAVE_LANGINFO_YESEXPR.
26850         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26851         HAVE_LANGINFO_YESEXPR.
26852         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26853         HAVE_LANGINFO_T_FMT_AMPM is 0.
26854         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26855         HAVE_LANGINFO_YESEXPR is 0.
26856         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26857         NOEXPR.
26858         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26859         * doc/posix-functions/nl_langinfo.texi: Likewise.
26860         Reported by Eric Blake.
26861
26862 2010-09-10  Bruno Haible  <bruno@clisp.org>
26863
26864         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26865         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26866         on FreeBSD 8.0 and OpenBSD 4.6.
26867         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26868         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26869         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26870         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26871         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26872         ac_includes_default.
26873         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26874
26875 2010-09-09  Eric Blake  <eblake@redhat.com>
26876
26877         strsignal: work around NetBSD bug
26878         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26879         * lib/string.in.h (includes): Likewise.
26880         * doc/posix-functions/strsignal.texi (strsignal): Document the
26881         bug.
26882         Reported by Nelson H. F. Beebe.
26883
26884         gnulib-tool: work with NetBSD /bin/sh
26885         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26886         (func_get_description, func_get_comment, func_get_status)
26887         (func_get_notice, func_get_applicability, func_get_filelist)
26888         (func_get_dependencies, func_get_autoconf_early_snippet)
26889         (func_get_autoconf_snippet, func_get_automake_snippet)
26890         (func_get_include_directive, func_get_link_directive)
26891         (func_get_license, func_get_maintainer, func_import): Avoid
26892         shell syntax errors from parsing syntax extensions.
26893
26894 2010-09-09  Bruno Haible  <bruno@clisp.org>
26895
26896         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26897         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26898         a reliable way to determine whether the 'alias' command works.
26899
26900 2010-09-08  Jim Meyering  <meyering@redhat.com>
26901
26902         init.sh: penalize a set-x-impaired shell; don't disqualify it
26903         * tests/init.sh: Too many shells corrupt application stderr when
26904         you set -x, so we can't afford to disqualify them, since at least
26905         on Irix-6.5, that would disqualify all bourne shells.
26906         Instead, use a two-pass approach.
26907         On the first pass, try to find a shell that meets the stricter
26908         condition that set -x does not corrupt stderr.
26909         If no shell meets the stricter condition, retest each candidate
26910         shell, but without that extra condition.  Finally, when
26911         VERBOSE=yes is requested and set -x might cause trouble, simply
26912         issue a warning and refrain from enabling debug output.
26913
26914 2010-09-08  Eric Blake  <eblake@redhat.com>
26915
26916         unsetenv: fix OpenBSD bug
26917         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26918         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26919         documentation.
26920         Reported by Jim Meyering.
26921
26922         strtod: work around IRIX 6.5 bug
26923         * lib/strtod.c (strtod): Reparse number on shorter string if
26924         exponent parse was invalid.
26925         * tests/test-strtod.c (main): Add check for "0x1p 2".
26926         Reported by Tom G. Christensen.
26927
26928         getopt: optimize previous patch
26929         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26930         empty variable.  Speed up awk script.
26931         Reported by Paolo Bonzini.
26932
26933 2010-09-08  Jim Meyering  <meyering@redhat.com>
26934
26935         test.sh: disqualify shells for which set -x corrupts stderr
26936         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26937         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26938         appear in stderr output.  For example, this command:
26939             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26940         prints "P=1" on those two systems:
26941
26942 2010-09-08  Bruno Haible  <bruno@clisp.org>
26943
26944         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26945         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26946         commands, because some shells ignore redirections when there is an
26947         error in the command lookup.
26948         Reported by Eric Blake.
26949
26950 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26951
26952         * lib/regex.h: Fix a mention of `regex_compile' (should be
26953         `re_compile_pattern').
26954         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26955         (re_set_registers): Correct name of parameter in comment.
26956
26957         * doc/regex.texi: Add documentation for missing syntax flags.
26958         Remove commented-out documentation of defunct syntax option
26959         RE_NO_EMPTY_ALTS.
26960         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26961         Add documentation of re_set_registers.
26962         Document trick to re-use a pattern buffer by setting fastmap manually.
26963         Update documentation of struct re_pattern_buffer per public members.
26964         Uncomment documentation of equivalence class operators and
26965         collating symbol operators, since they are now implemented,
26966         Explain leftmost-longest matching in relation to alternatives.
26967         Tidy documentation of substring matching.
26968         Remove POSIX documentation, which is done better in
26969         glibc, and refer the reader there. Keep BSD API documentation, as
26970         that is not readily available elsewhere.
26971
26972 2010-09-07  Eric Blake  <eblake@redhat.com>
26973
26974         getopt: handle POSIXLY_CORRECT set but not exported
26975         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26976         export state of POSIXLY_CORRECT, due to bash set -o posix.
26977         Reported by Dustin J. Mitchell.
26978
26979 2010-09-05  Bruno Haible  <bruno@clisp.org>
26980
26981         gnulib-tool: Highlight the changed options.
26982         * gnulib-tool (func_usage): Display the --import, --add-import,
26983         --remove-import explanations in bold font.
26984
26985 2010-09-06  Karl Berry  <karl@gnu.org>
26986
26987         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26988
26989 2010-09-05  Bruno Haible  <bruno@clisp.org>
26990
26991         uniwidth/width: Update comment.
26992         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26993         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26994
26995 2010-09-05  Bruno Haible  <bruno@clisp.org>
26996
26997         isinf, isnan: Relax license.
26998         * modules/isinf (License): Change from GPL to LGPL, with consent from
26999         Ben Pfaff.
27000         * modules/isnan (License): Likewise.
27001         Requested by Ludovic Courtès.
27002
27003 2010-09-04  Bruno Haible  <bruno@clisp.org>
27004
27005         gnulib-tool: Help migration from --import to --add-import or --update.
27006         * gnulib-tool: Emit a verbose error message when --import is used
27007         without any module name.
27008
27009 2010-09-04  Bruno Haible  <bruno@clisp.org>
27010
27011         Update doc about gnulib-tool.
27012         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
27013         'gnulib-tool --update' in more detail.
27014         Reported by Eric Blake.
27015
27016 2010-09-04  Bruno Haible  <bruno@clisp.org>
27017
27018         gnulib-tool: Change --import. New options --add/remove-import.
27019         * gnulib-tool: New options --add-import, --remove-import.
27020         (func_usage): Document them.
27021         (have_associative): Define always.
27022         (func_import): In import mode, don't merge the specified settings with
27023         the cached settings. Implement remove-import mode.
27024         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
27025         Explain when to use them versus --import.
27026         (Simple update): Use --add-import instead of --import.
27027         * NEWS: Mention the change.
27028
27029 2010-09-04  Bruno Haible  <bruno@clisp.org>
27030
27031         * doc/gnulib-tool.texi (Initial import): Update paragraph about
27032         separate gnulib.mk.
27033
27034 2010-09-04  Bruno Haible  <bruno@clisp.org>
27035
27036         gnulib-tool: Don't talk about CVS any more.
27037         * gnulib-tool (func_usage, func_import): Write "version control"
27038         instead of CVS.
27039
27040 2010-09-04  Jim Meyering  <meyering@redhat.com>
27041
27042         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27043         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27044         false positives (whose names may be ill-chosen) when searching
27045         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27046         would cause a false-positive.
27047
27048         avoid coreutils "make distcheck" failure
27049         Coreutils tests with an absolute build directory name that contains
27050         a space.  Not quoting this directory name caused a failure.
27051         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27052         * tests/test-vc-list-files-cvs.sh: Likewise.
27053
27054 2010-09-04  Bruno Haible  <bruno@clisp.org>
27055
27056         gnulib-tool: Avoid error when run in a package without Makefile.am.
27057         * gnulib-tool: When collecting the m4dirs in a package that does not
27058         have a Makefile.am, eliminate those directories that contain no
27059         gnulib-cache.m4. Fix expression that counts these directories.
27060
27061 2010-09-04  Bruno Haible  <bruno@clisp.org>
27062
27063         update-copyright test: Improve output when perl is missing or too old.
27064         * tests/test-update-copyright.sh: Move test of Perl version down after
27065         the test whether Perl exists. Provide an explanation relating Perl's
27066         error message to Automake's SKIP: message.
27067
27068 2010-09-04  Bruno Haible  <bruno@clisp.org>
27069
27070         Don't augment PATH in TESTS_ENVIRONMENT.
27071         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27072         set abs_aux_dir instead of augmenting PATH.
27073         * modules/vc-list-files-tests (Makefile.am): Likewise.
27074         * tests/test-update-copyright.sh: Augment PATH here.
27075         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27076         path_prepend_.
27077         * tests/test-vc-list-files-git.sh: Likewise.
27078
27079 2010-09-04  Jim Meyering  <meyering@redhat.com>
27080
27081         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27082         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27083
27084 2010-09-04  Bruno Haible  <bruno@clisp.org>
27085
27086         strdup: Fix compilation error in C++ mode.
27087         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27088         the macro.
27089
27090 2010-09-04  Bruno Haible  <bruno@clisp.org>
27091
27092         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27093         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27094         macro into a function.
27095         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27096
27097 2010-09-04  Bruno Haible  <bruno@clisp.org>
27098
27099         Set PATH_SEPARATOR the same way autoconf does.
27100         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27101         the value of PATH_SEPARATOR the same way autoconf-generated configure
27102         scripts do.
27103         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27104         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27105
27106 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27107
27108         Set PATH_SEPARATOR the same way autoconf does.
27109         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27110         the same way autoconf-generated configure scripts do.
27111         * posix-modules: Likewise.
27112
27113 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27114
27115         hash: fix safe_hasher const typo
27116         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27117         const; otherwise, there is a type error later.
27118
27119 2010-09-02  Jim Meyering  <meyering@redhat.com>
27120
27121         test-update-copyright.sh: require perl 5.8.0
27122         * tests/test-update-copyright.sh: Require 5.8.0,
27123         which Tom G. Christensen has confirmed is adequate,
27124         while 5.6.1 is not.
27125
27126 2010-09-02  Eric Blake  <eblake@redhat.com>
27127
27128         tests: init.sh improvements for re-exec'ing with zsh
27129         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27130         -vx through shell re-exec.
27131         Reported by Tom G. Christensen.
27132
27133         wctype: fix typo in previous commit
27134         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27135         Reported by Ludovic Courtès.
27136
27137 2010-09-02  Jim Meyering  <meyering@redhat.com>
27138
27139         test-update-copyright.sh: skip test if Perl is too old
27140         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27141         Reported by Tom G. Christensen.
27142
27143 2010-09-02  Bruno Haible  <bruno@clisp.org>
27144
27145         wctype: Avoid compilation error on IRIX 6.5.30.
27146         * lib/wctype.in.h (iswblank): Declare with a replacement if
27147         REPLACE_ISWBLANK is set.
27148         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27149         declared. Set REPLACE_ISWBLANK.
27150         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27151         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27152         * doc/posix-headers/wctype.texi: Likewise.
27153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27154
27155 2010-09-01  Bruno Haible  <bruno@clisp.org>
27156
27157         New module 'socketlib'.
27158         * modules/socketlib: New file.
27159         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27160         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27161         * modules/sockets (Depends-on): Add socketlib.
27162         Suggested by Sam Steingold <sds@gnu.org>.
27163
27164 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27165
27166         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27167
27168         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27169         when one needs search access to a directory but not read access.
27170         On systems where it is available, it works in some cases where
27171         O_RDONLY does not, namely on directories that are searchable but
27172         not readable, and which need only to be searchable.  If O_SEARCH
27173         is not available, fall back to the traditional method of using
27174         O_RDONLY.
27175
27176         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27177         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27178         when opening a directory that needs only to be searchable.
27179         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27180         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27181         * lib/openat-proc.c (openat_proc_name): Likewise.
27182         * lib/openat.c (openat_needs_fchdir): Likewise.
27183         * lib/save-cwd.c (save_cwd): Likewise.
27184         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27185
27186 2010-08-28  Bruno Haible  <bruno@clisp.org>
27187
27188         New module 'host-cpu-c-abi'.
27189         * modules/host-cpu-c-abi: New file.
27190         * m4/host-cpu-c-abi.m4: New file, based on part of
27191         clisp/src/m4/general.m4.
27192         Requested by Sam Steingold <sds@gnu.org>.
27193
27194 2010-08-31  Eric Blake  <eblake@redhat.com>
27195         and Jim Meyering  <meyering@redhat.com>
27196
27197         hash: factor, and guard against misbehaving hasher function
27198         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27199         of table->hasher's return value.  Also protect against a hash value
27200         so large that adding it to table->bucket results in a NULL pointer.
27201         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27202         Use it in place of open-coded check-and-abort.
27203
27204 2010-08-30  Bruno Haible  <bruno@clisp.org>
27205
27206         hash: silence spurious clang warning
27207         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27208         Reported by Eric Blake.
27209
27210 2010-08-30  Eric Blake  <eblake@redhat.com>
27211
27212         strstr, memmem, strcasestr: avoid leaked shell message
27213         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27214         FreeBSD.
27215         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27216         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27217
27218         tests: silence clang warning
27219         * tests/test-malloca.c (do_allocation): Avoid dead store.
27220
27221 2010-08-29  Bruno Haible  <bruno@clisp.org>
27222
27223         gettext: Fix recent mistake.
27224         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27225
27226 2010-08-29  Bruno Haible  <bruno@clisp.org>
27227
27228         selinux-h: Offer a --without-selinux option.
27229         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27230         --without-selinux was specified, skip all tests and define
27231         HAVE_SELINUX_SELINUX_H to 0.
27232         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27233         set LIB_SELINUX to empty.
27234         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27235         gl_LIBSELINUX. If --without-selinux was specified, replace
27236         selinux/context.h.
27237         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27238
27239 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27240             Bruno Haible  <bruno@clisp.org>
27241
27242         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27243         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27244         of HAVE_REALLOC.
27245         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27246         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27247         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27248         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27249
27250 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27251             Bruno Haible  <bruno@clisp.org>
27252
27253         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27254         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27255         HAVE_CALLOC.
27256         * lib/xmalloc.c: Update accordingly.
27257         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27258         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27259         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
27260
27261 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27262             Bruno Haible  <bruno@clisp.org>
27263
27264         Make the module 'malloc-gnu' work again on AIX and OSF/1.
27265         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27266         HAVE_MALLOC.
27267         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27268         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27269         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27270
27271 2010-08-29  Bruno Haible  <bruno@clisp.org>
27272
27273         Update modules list.
27274         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27275         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27276         (String handling <string.h>): Add astrxfrm.
27277         (File system functions): Add readlinkat.
27278
27279 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27280
27281         Tests for module 'realloc-gnu'.
27282         * modules/realloc-gnu-tests: New file.
27283         * tests/test-realloc-gnu.c: New file.
27284
27285         Tests for module 'calloc-gnu'.
27286         * modules/calloc-gnu-tests: New file.
27287         * tests/test-calloc-gnu.c: New file.
27288
27289         Tests for module 'malloc-gnu'.
27290         * modules/malloc-gnu-tests: New file.
27291         * tests/test-malloc-gnu.c: New file.
27292
27293 2010-08-28  Bruno Haible  <bruno@clisp.org>
27294
27295         Rename module 'realloc' -> 'realloc-gnu'.
27296         * modules/realloc-gnu: New file, copied from modules/realloc.
27297         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
27298         obsolete.
27299         * modules/mgetgroups (Depends-on): Update.
27300         * doc/posix-functions/realloc.texi: Update.
27301         * NEWS: Mention the change.
27302
27303         Rename module 'calloc' -> 'calloc-gnu'.
27304         * modules/calloc-gnu: New file, copied from modules/calloc.
27305         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27306         obsolete.
27307         * doc/posix-functions/calloc.texi: Update.
27308         * NEWS: Mention the change.
27309
27310         Rename module 'malloc' -> 'malloc-gnu'.
27311         * modules/malloc-gnu: New file, copied from modules/malloc.
27312         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27313         obsolete.
27314         * modules/argp (Depends-on): Update.
27315         * modules/regex (Depends-on): Update.
27316         * doc/posix-functions/malloc.texi: Update.
27317         * NEWS: Mention the change.
27318
27319 2010-08-28  Eric Blake  <eblake@redhat.com>
27320
27321         pread, pwrite: add missing dependency
27322         * modules/pread (Depends-on): Add extensions.
27323         * modules/pwrite (Depends-on): Likewise.
27324
27325 2010-08-28  Bruno Haible  <bruno@clisp.org>
27326
27327         unistr/u*-strchr: Fix tests dependencies.
27328         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27329         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27330         Reported by Ian Beckwith <ianb@erislabs.net>.
27331
27332 2010-08-28  Bruno Haible  <bruno@clisp.org>
27333
27334         read-file: Don't occupy too much unused memory.
27335         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27336
27337 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27338             Eric Blake  <eblake@redhat.com>
27339             Bruno Haible  <bruno@clisp.org>
27340
27341         read-file: Avoid memory reallocations with regular files.
27342         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27343         (fread_file): With regular files, use the remaining length as the
27344         initial buffer size.  Check against overflow.
27345         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27346         sys_stat.
27347
27348 2010-08-28  Bruno Haible  <bruno@clisp.org>
27349
27350         ftello: Relax license.
27351         * modules/ftello (License): Relax to LGPLv2+.
27352         Reported by Eric Blake.
27353
27354 2010-08-28  Bruno Haible  <bruno@clisp.org>
27355
27356         Avoid relocwrapper link errors due to gnulib replacement functions.
27357         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27358         function.
27359         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27360
27361 2010-08-28  Bruno Haible  <bruno@clisp.org>
27362
27363         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
27364         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
27365         defined.
27366         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
27367         Suggested by Eric Blake.
27368
27369 2010-08-28  Bruno Haible  <bruno@clisp.org>
27370
27371         sys_socket, netdb: Ensure socklen_t gets defined.
27372         * modules/sys_socket (Depends-on): Add socklen.
27373         * modules/netdb (Depends-on): Likewise.
27374         * modules/getaddrinfo (Depends-on): Remove socklen.
27375         * modules/getsockopt (Depends-on): Likewise.
27376         * modules/setsockopt (Depends-on): Likewise.
27377         * tests/test-sys_socket.c: Check that socklen_t is defined.
27378         * tests/test-netdb.c: Likewise.
27379         * m4/socklen.m4: Update comments.
27380         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27381
27382 2010-08-27  Eric Blake  <eblake@redhat.com>
27383
27384         login_tty: add missing dependency
27385         * modules/login_tty (Depends-on): Add pty.
27386
27387 2010-08-26  Eric Blake  <eblake@redhat.com>
27388
27389         lib-symbol-versions: fix m4 quoting
27390         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
27391         format for AC_LINK_IFELSE.
27392
27393         glob: fix compile test
27394         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
27395
27396         btowc: fix missing file
27397         * modules/btowc (Files): Also ship locale-fr.m4.
27398
27399         lseek: fix link test
27400         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
27401         AC_LINK_IFELSE.
27402
27403         include_next: silence autoconf 2.68 warning
27404         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
27405         AC_COMPILE_IFELSE as special.
27406         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
27407         autoconf < 2.68.
27408
27409         acl: fix compilation test
27410         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
27411         AC_COMPILE_IFELSE.
27412
27413 2010-08-26  Bruno Haible  <bruno@clisp.org>
27414
27415         Modernize AC_TRY_RUN invocations.
27416         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
27417         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27418         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
27419         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
27420         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27421         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27422         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27423         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27424         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27425         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27426         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27427         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27428         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27429         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27430         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27431         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27432         gl_MBRLEN_NUL_RETVAL): Likewise.
27433         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27434         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27435         Likewise.
27436         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27437         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27438         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27439         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27440         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
27441         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
27442         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
27443         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27444         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
27445         Likewise.
27446         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27447         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
27448         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27449         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27450         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27451         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27452         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27453         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
27454         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27455         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27456
27457 2010-08-26  Bruno Haible  <bruno@clisp.org>
27458
27459         Modernize AC_TRY_LINK invocations.
27460         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
27461         AC_TRY_LINK.
27462         * m4/argp.m4 (gl_ARGP): Likewise.
27463         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27464         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27465         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27466         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27467         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27468         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27469         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27470         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27471         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27472         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27473         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27474         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
27475         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
27476         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27477         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27478         * m4/hostent.m4 (gl_HOSTENT): Likewise.
27479         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27480         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
27481         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27482         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
27483         Likewise.
27484         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
27485         Likewise.
27486         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
27487         Likewise.
27488         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27489         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
27490         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
27491         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27492         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27493         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27494         * m4/servent.m4 (gl_SERVENT): Likewise.
27495         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27496         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27497         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27498         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27499         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27500         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27501         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27502         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27503         * modules/tsearch-tests (configure.ac): Likewise.
27504
27505 2010-08-26  Bruno Haible  <bruno@clisp.org>
27506
27507         Modernize AC_TRY_COMPILE invocations.
27508         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
27509         AC_TRY_COMPILE.
27510         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
27511         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
27512         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27513         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
27514         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27515         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27516         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27517         * m4/lock.m4 (gl_LOCK): Likewise.
27518         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27519         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27520         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27521         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27522         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27523         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27524         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27525         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27526         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27527         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27528         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27529         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27530         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27531         extraneous semicolon.
27532
27533 2010-08-26  Jim Meyering  <meyering@redhat.com>
27534
27535         stat-time: relax license LGPL
27536         * modules/stat-time (License): Change from GPL to LGPL,
27537         with consent from all contributors, for use in libguile.
27538         Requested by Ludovic Courtès.
27539
27540 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27541
27542         poll: return immediately on POLLHUP.
27543         * lib/poll.c (poll): Always set timeout before wait_timeout is
27544         computed.
27545
27546 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27547
27548         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27549         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27550         rmdir ("dir/.//"), unlinkat.
27551
27552 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27553
27554         stdbool: avoid spurious failure with modern xlc
27555         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27556
27557 2010-08-24  Bruno Haible  <bruno@clisp.org>
27558
27559         getloadavg: simplify code
27560         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27561         gl_have_func. Update comments.
27562
27563 2010-08-24  Eric Blake  <eblake@redhat.com>
27564
27565         getloadavg: don't define SVR4 on cygwin
27566         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27567         only define SVR4 when -lkvm is required.
27568         Reported by Yaakov Selkowitz.
27569
27570 2010-08-24  Bruno Haible  <bruno@clisp.org>
27571
27572         priv-set: fix comment
27573         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27574
27575 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27576
27577         priv-set: fix comments
27578         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27579         to match code, as suggested by David Bartley in:
27580         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27581
27582 2010-08-23  Eric Blake  <eblake@redhat.com>
27583
27584         stdbool: avoid rejecting clang
27585         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27586         * tests/test-stdbool.c: Enable more tests if using the system
27587         <stdbool.h> instead of the gnulib replacement.
27588         (main): Move xlc bug test to a runtime test for all compilers.
27589         Reported by Anders Kaseorg.
27590
27591         argz: fix shell quoting issue
27592         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27593         Reported by Charles Wilson.
27594
27595 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27596             Erik Faye-Lund <kusmabite@gmail.com>
27597
27598         poll, select: handle ERROR_BROKEN_PIPE.
27599         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27600         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27601         * lib/select.c (win32_compute_revents): Do not mark a pipe
27602         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27603
27604 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27605
27606         fts: allow compilation with C++
27607         * lib/fts_.h: Specify extern "C" linkage with C++.
27608
27609 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27610
27611         Fix gnulib-tool sed script de-commentation for AIX sed.
27612         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27613         sed.
27614
27615 2010-08-17  Eric Blake  <eblake@redhat.com>
27616
27617         test-stddef: test for (some) offsetof bugs
27618         * tests/test-stddef.c: Enhance test to ensure correct type of
27619         offsetof.
27620         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27621         that we are not fixing at this time.
27622
27623 2010-08-15  Bruno Haible  <bruno@clisp.org>
27624
27625         stpncpy: Allow stpncpy to be defined as a macro.
27626         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27627         if it's already correctly declared.
27628         * lib/string.in.h (stpncpy): Undefine before redefining.
27629         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27630
27631 2010-08-14  Bruno Haible  <bruno@clisp.org>
27632
27633         Rename module 'memxfrm' to 'amemxfrm'.
27634         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27635         (amemxfrm): Renamed from memxfrm.
27636         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27637         (amemxfrm): Renamed from memxfrm.
27638         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27639         * NEWS: Mention the change.
27640         * MODULES.html.sh (String handling <string.h>): Update.
27641         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27642         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27643         * lib/unicase/u16-casexfrm.c: Likewise.
27644         * lib/unicase/u32-casexfrm.c: Likewise.
27645         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27646         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27647         * lib/uninorm/u16-normxfrm.c: Likewise.
27648         * lib/uninorm/u32-normxfrm.c: Likewise.
27649         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27650         memxfrm.
27651         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27652         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27653         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27654         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27655         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27656         Suggested by Paul Eggert.
27657
27658 2010-08-14  Bruno Haible  <bruno@clisp.org>
27659
27660         Tests for module 'astrxfrm'.
27661         * modules/astrxfrm-tests: New file.
27662         * tests/test-astrxfrm.c: New file.
27663
27664         New module 'astrxfrm'.
27665         * lib/astrxfrm.h: New file.
27666         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27667         * modules/astrxfrm: New file.
27668
27669 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27670
27671         regex: Tweak doc.
27672         * doc/regex.texi (Overview): Don't mention regex.c.
27673         (GNU Regular Expression Compiling): Likewise.
27674         (Match-end-of-line Operator): Mention 'not_eol'.
27675
27676 2010-08-14  Brian Gough  <bjg@gnu.org>
27677             Bruno Haible  <bruno@clisp.org>
27678
27679         git-merge-changelog: add doc relating to use with bzr and hg.
27680         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27681
27682 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27683
27684         pthread: fix pthread.h creation for srcdir != builddir
27685         * modules/pthread (Makefile.am): Fix the rule to work also in a
27686         non-srcdir build.
27687
27688 2010-08-13  Karl Berry  <karl@gnu.org>
27689
27690         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27691         * doc/posix-*/*: force line break before @url of POSIX
27692         specifications.
27693         Suggested by Werner Lemberg.
27694
27695 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27696
27697         strtod: fix const diagnostic
27698         * lib/strtod.c (strtod): Don't assign const char * to char *,
27699         as this elicits a warning from GCC when warnings are enabled.
27700
27701 2010-08-10  Pádraig Brady <P@draigbrady.com>
27702         and Eric Blake  <eblake@redhat.com>
27703
27704         copy-acl: ignore ENOTSUP on HP-UX
27705         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27706         so that it is available for HP-UX.
27707         * lib/copy-acl.c (qcopy_acl): Use it.
27708         Reported by Patrick M. Callahan.
27709
27710 2010-08-10  Eric Blake  <eblake@redhat.com>
27711
27712         open, chown: relax license
27713         * modules/open (License): Change to LGPLv2+, with consent by all
27714         authors, for use in augeas.
27715         * modules/chown (License): Likewise.
27716         * modules/lchown (Likewise): Likewise.
27717         Requested by Adam Stokes.
27718
27719 2010-08-09  Karl Berry  <karl@gnu.org>
27720
27721         * build-aux/ar-lib: new file, import from Automake.
27722         * config/srclist.txt: autocheck for updates.
27723
27724 2010-08-09  Eric Blake  <eblake@redhat.com>
27725
27726         readlinkat: adjust client modules
27727         * modules/areadlinkat (Depends-on): Use readlinkat, not
27728         symlinkat.
27729         * modules/areadlinkat-with-size (Depends-on): Likewise.
27730
27731         mknod: be more vocal about danger of running tests as root
27732         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27733         root, since that is just asking for problems.
27734         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27735
27736         readlinkat: split into its own module
27737         * modules/symlinkat: Split readlinkat...
27738         * modules/readlinkat: ...into separate module.
27739         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27740         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27741         * lib/symlinkat.c (readlinkat): Move...
27742         * lib/readlinkat.c: ...into new file.
27743         * modules/symlinkat-tests: Split readlinkat test...
27744         * modules/readlinkat-tests: ...into separate module.
27745         * tests/test-symlinkat.c: Split...
27746         * tests/test-readlinkat.c: ...into new file.
27747         * NEWS: Document the split.
27748         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27749         * lib/unistd.in.h (readlinkat): Likewise.
27750         Suggested by Bruno Haible.
27751
27752 2010-08-08  Bruno Haible  <bruno@clisp.org>
27753
27754         memxfrm: Speed up.
27755         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27756         that usually only one call to strxfrm is necessary for each string
27757         part.
27758         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27759
27760 2010-08-07  Karl Berry  <karl@gnu.org>
27761
27762         * doc/posix-headers/limits.texi,
27763         * doc/posix-functions/malloc.texi,
27764         * doc/posix-functions/strsignal.texi: missing @item.
27765         * doc/ld-version-script.texi: spurious leading i.
27766         * doc/regex.texi (Interval Operators): no commas inside @var.
27767
27768 2010-08-01  Bruno Haible  <bruno@clisp.org>
27769
27770         Integrate the regex documentation.
27771         * doc/gnulib.texi: Define 'cn' index.
27772         (Regular expressions): New a chapter that includes regex.texi and
27773         regexprops-generic.texi.
27774         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27775         syntax.
27776
27777         Whitespace cleanup.
27778         * doc/regex.texi: Remove trailing spaces.
27779
27780         Add regex documentation.
27781         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27782         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27783         Written by Kathy A. Hargreaves and Karl Berry.
27784
27785 2010-08-01  Bruno Haible  <bruno@clisp.org>
27786
27787         link: Update documentation.
27788         * doc/posix-functions/link.texi: Update regarding Solaris.
27789
27790 2010-07-31  Bruno Haible  <bruno@clisp.org>
27791
27792         Update modules list.
27793         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27794         (String handling <string.h>): Add memcmp2, memxfrm.
27795         (Container data structures): Add xlist, xsublist, xoset.
27796         (Core language properties): Add alignof, unused-parameter.
27797         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27798         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27799         (Unibyte characters <ctype.h>): New section.
27800         (String handling <string.h>): New section.
27801         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27802         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27803         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27804         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27805         tan, tanh, tanl, y0, y1, yn.
27806         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27807         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27808         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27809         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27810         unlockpt, vdprintf, vdprintf-posix.
27811         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27812         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27813         xconcat-filename.
27814         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27815         getdtablesize, pipe2, pipe2-safer.
27816         (Security): New section.
27817         (Networking functions): Add accept4.
27818         (Signal handling): Add sigpipe.
27819         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27820         mbmemcasecoll.
27821         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27822         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27823         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27824         pipe-filter-ii.
27825         (Misc): Add argp-version-etc, login_tty, parse-duration.
27826
27827 2010-07-31  Bruno Haible  <bruno@clisp.org>
27828
27829         Improve doc in MODULES.html.
27830         * modules/linkat (Description): Add the word "function".
27831         * modules/mkfifo (Description): Likewise.
27832         * modules/mknod (Description): Likewise.
27833         * modules/remove (Description): Likewise.
27834         * modules/renameat (Description): Likewise.
27835         * modules/stat (Description): Likewise.
27836         * modules/symlink (Description): Likewise.
27837         * modules/unlink (Description): Likewise.
27838
27839 2010-07-31  Bruno Haible  <bruno@clisp.org>
27840
27841         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27842         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27843         option --enable/disable-c++ instead of --enable/disable-cxx.
27844         * NEWS: Mention the change.
27845
27846 2010-07-31  Bruno Haible  <bruno@clisp.org>
27847
27848         readlink, areadlink: Relax test a bit.
27849         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27850         alternative to ENOTDIR.
27851         * tests/test-areadlink.h (test_areadlink): Likewise.
27852         Reported by Rainer Tammer.
27853
27854 2010-07-31  Bruno Haible  <bruno@clisp.org>
27855
27856         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27857         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27858         character, perform the search using U_STRCHR.
27859         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27860         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27861         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27862         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27863         Suggested by Paolo Bonzini.
27864
27865 2010-07-31  Bruno Haible  <bruno@clisp.org>
27866
27867         unistr/u*-strstr: Fix dependencies.
27868         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27869         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27870         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27871
27872 2010-07-31  Bruno Haible  <bruno@clisp.org>
27873
27874         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27875         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27876         the beginning of the loop.
27877         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27878         cases in 'switch' statement.
27879
27880         unistr/u8-strchr: Fix several bugs.
27881         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27882         the string. When not found, return NULL, not a pointer near the end.
27883
27884         More tests for unistr/u8-strchr.
27885         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27886         that the function does not read past the first occurrence of the byte
27887         being searched.
27888         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27889         * tests/unistr/test-u16-strchr.c (main): New function.
27890         * tests/unistr/test-u32-strchr.c (main): New function.
27891
27892 2010-07-31  Bruno Haible  <bruno@clisp.org>
27893
27894         posix-modules: Ignore backup files of documentation files.
27895         * posix-modules: grep only through files named *.texi.
27896
27897 2010-07-31  Bruno Haible  <bruno@clisp.org>
27898
27899         symlinkat: Fix documentation.
27900         * doc/posix-functions/readlinkat.texi: Fix module name.
27901
27902 2010-07-31  Bruno Haible  <bruno@clisp.org>
27903
27904         fchownat: Replace also when chown has the trailing slash bug.
27905         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27906         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27907         introduced on 2010-04-10.
27908         Reported by Rainer Tammer.
27909
27910 2010-07-31  Bruno Haible  <bruno@clisp.org>
27911
27912         linkat: Work around AIX 7.1 bug.
27913         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27914         whether linkat handles trailing slash correctly. If not, replace linkat
27915         and define LINKAT_TRAILING_SLASH_BUG.
27916         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27917         check whether (fd1,file1) points to a directory if file1 or file2 ends
27918         in a slash. Code taken from lib/link.c.
27919         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27920         Reported by Rainer Tammer.
27921
27922 2010-07-31  Bruno Haible  <bruno@clisp.org>
27923
27924         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27925         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27926         This disables an xlc optimization that was causing wrong test results.
27927         Reported by Rainer Tammer.
27928
27929 2010-07-31  Bruno Haible  <bruno@clisp.org>
27930
27931         iconv: Work around AIX 6.1..7.1 bug.
27932         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27933         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27934         cross-compiling, guess no on all versions of AIX.
27935         Reported by Rainer Tammer.
27936
27937 2010-07-31  Bruno Haible  <bruno@clisp.org>
27938
27939         readlink: Relax test a bit.
27940         * tests/test-readlink.h (test_readlink): Allow different errno value
27941         when readlink is called with a file name that ends in / and refers to
27942         a file.
27943         Suggested by Eric Blake.
27944         Reported by Rainer Tammer.
27945
27946 2010-07-31  Bruno Haible  <bruno@clisp.org>
27947
27948         copysign: Does not require -lm on glibc systems.
27949         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27950         gl_COMMON_DOUBLE_MATHFUNC.
27951         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27952
27953 2010-07-31  Bruno Haible  <bruno@clisp.org>
27954
27955         duplocale: Work around AIX 7.1 bug.
27956         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27957         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27958         * lib/duplocale.c (rpl_duplocale): Update comment.
27959         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27960         Reported by Rainer Tammer.
27961
27962 2010-07-30  Bruno Haible  <bruno@clisp.org>
27963
27964         dirfd: Avoid link error on AIX 7.1.
27965         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27966         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27967         exist, set REPLACE_DIRFD.
27968         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27969         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27970         * doc/posix-functions/dirfd.texi: Update.
27971         Reported by Rainer Tammer.
27972
27973 2010-07-30  Eric Blake  <eblake@redhat.com>
27974
27975         strtod: next round of AIX fixes
27976         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27977         exponent.
27978         * tests/test-strtod.c (main): Enhance tests.
27979         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27980         Reported by Rainer Tammer.
27981
27982         futimens: fix configure check
27983         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27984         Reported by Bruno Haible.
27985
27986 2010-07-30  Bruno Haible  <bruno@clisp.org>
27987
27988         getline: Update regarding AIX.
27989         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27990         Reported by Rainer Tammer.
27991
27992 2010-07-30  Bruno Haible  <bruno@clisp.org>
27993
27994         wcwidth: Drop replacement on AIX 7.
27995         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27996         AIX 7.
27997         Reported by Rainer Tammer.
27998
27999 2010-07-30  Bruno Haible  <bruno@clisp.org>
28000
28001         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
28002         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
28003         a 'char *'.
28004         Reported by Rainer Tammer.
28005
28006 2010-07-30  Bruno Haible  <bruno@clisp.org>
28007
28008         unlink: Update regarding AIX.
28009         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
28010         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
28011         Reported by Rainer Tammer.
28012
28013 2010-07-30  Bruno Haible  <bruno@clisp.org>
28014
28015         symlink: Update regarding AIX.
28016         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
28017         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
28018         Reported by Rainer Tammer.
28019
28020 2010-07-30  Bruno Haible  <bruno@clisp.org>
28021
28022         strndup: Update regarding AIX.
28023         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
28024         AIX 7.
28025         Reported by Rainer Tammer.
28026
28027 2010-07-30  Bruno Haible  <bruno@clisp.org>
28028
28029         stat: Update regarding AIX.
28030         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
28031         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
28032         Reported by Rainer Tammer.
28033
28034 2010-07-30  Bruno Haible  <bruno@clisp.org>
28035
28036         truncl: Fix autoconf test.
28037         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28038         whether truncl works.
28039         Reported by Rainer Tammer.
28040
28041 2010-07-30  Bruno Haible  <bruno@clisp.org>
28042
28043         round: Update regarding AIX.
28044         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28045         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28046         Reported by Rainer Tammer.
28047
28048 2010-07-30  Bruno Haible  <bruno@clisp.org>
28049
28050         rename: Update regarding AIX.
28051         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28052         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28053         Reported by Rainer Tammer.
28054
28055 2010-07-30  Bruno Haible  <bruno@clisp.org>
28056
28057         printf.m4: Update regarding AIX.
28058         * m4/printf.m4: Update comments regarding AIX.
28059         Reported by Rainer Tammer.
28060
28061 2010-07-30  Bruno Haible  <bruno@clisp.org>
28062
28063         iconv: Update regarding AIX.
28064         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28065         AIX 7.
28066         Reported by Rainer Tammer.
28067
28068 2010-07-30  Bruno Haible  <bruno@clisp.org>
28069
28070         getopt: Update regarding AIX.
28071         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28072         no on AIX.
28073         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28074         Reported by Rainer Tammer.
28075
28076 2010-07-30  Bruno Haible  <bruno@clisp.org>
28077
28078         ldexpl; Update regarding AIX.
28079         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28080         on AIX 7.
28081         Reported by Rainer Tammer.
28082
28083 2010-07-30  Bruno Haible  <bruno@clisp.org>
28084
28085         frexpl: Update regarding AIX.
28086         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28087         on AIX 7.
28088         Reported by Rainer Tammer.
28089
28090 2010-07-30  Bruno Haible  <bruno@clisp.org>
28091
28092         open, fopen: Update regarding AIX.
28093         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28094         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28095         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28096         * doc/posix-functions/fopen.texi: Likewise.
28097         Reported by Rainer Tammer.
28098
28099 2010-07-30  Bruno Haible  <bruno@clisp.org>
28100
28101         chown: Update doc regarding AIX.
28102         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28103         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28104         Reported by Rainer Tammer.
28105
28106 2010-07-30  Eric Blake  <eblake@redhat.com>
28107
28108         strtod: fix bug in replacement function on AIX
28109         * lib/strtod.c (strtod): Special case broken "0x" parse in
28110         underlying strtod.
28111         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28112         * doc/posix-functions/strtod.texi (strtod): Likewise.
28113         Reported by Rainer Tammer.
28114
28115 2010-07-30  Bruno Haible  <bruno@clisp.org>
28116
28117         mbrlen: Fix cross-compilation guess for AIX.
28118         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28119         guess. Leftover from 2008-12-22.
28120
28121 2010-07-30  Bruno Haible  <bruno@clisp.org>
28122
28123         mbrtowc: Fix cross-compilation guess for AIX.
28124         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28125         guess. Leftover from 2008-12-21.
28126
28127 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28128
28129         init.sh: work around trap limitation of some shells
28130         * tests/init.sh (setup_): Move exit trap outside of shell function.
28131
28132 2010-07-29  Eric Blake  <eblake@redhat.com>
28133
28134         strtod: aid debugging
28135         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28136         understanding why strtod is rejected.
28137
28138 2010-07-28  Bruno Haible  <bruno@clisp.org>
28139
28140         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28141         * lib/unistr/u8-chr.c: Include <string.h>.
28142         * tests/unistr/test-u8-chr.c: Likewise.
28143         * tests/unistr/test-u16-chr.c: Likewise.
28144         * tests/unistr/test-u32-chr.c: Likewise.
28145         * tests/unistr/test-u8-strchr.c: Likewise.
28146         * tests/unistr/test-u16-strchr.c: Likewise.
28147         * tests/unistr/test-u32-strchr.c: Likewise.
28148         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28149         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28150         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28151         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28152
28153 2010-07-28  Bruno Haible  <bruno@clisp.org>
28154
28155         Use spaces for indentation, not tabs.
28156         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28157
28158 2010-07-27  Bruno Haible  <bruno@clisp.org>
28159
28160         mbspcasecmp: Fix function specification.
28161         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28162         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28163         Reported by Eric Blake <eblake@redhat.com>.
28164
28165 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28166
28167         timespec: use cast and not conditional, as truncation isn't possible
28168         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28169         instead of a conditional.  Comment about the situation in more detail.
28170         This undoes most of the 2009-10-29 patch.
28171
28172 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28173
28174         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28175         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28176         * lib/unistr/u8-strchr.c: Likewise.
28177         * modules/unistr/u8-chr: Depend on memchr.
28178
28179         unistr/u*-strchr: add tests
28180         * modules/unistr/u8-strchr-tests: New file.
28181         * modules/unistr/u16-strchr-tests: New file.
28182         * modules/unistr/u32-strchr-tests: New file.
28183         * tests/unistr/test-strchr.h: New file.
28184         * tests/unistr/test-u8-strchr.c: New file.
28185         * tests/unistr/test-u16-strchr.c: New file.
28186         * tests/unistr/test-u32-strchr.c: New file.
28187
28188         unistr/u*-chr: test multibyte sequences more
28189         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28190         test vector.
28191         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28192         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28193         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28194
28195         unistr/u*-chr: test multibyte sequences
28196         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28197
28198         unistr/u*-chr: prepare for multibyte tests
28199         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28200         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28201         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28202         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28203         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28204         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28205
28206 2010-07-18  Bruno Haible  <bruno@clisp.org>
28207
28208         unistr/u8-strchr: Optimize non-ASCII argument case.
28209         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28210         because the first byte often matches anyway.
28211         Reported by Pádraig Brady <P@draigbrady.com>.
28212
28213 2010-07-15  Karl Berry  <karl@gnu.org>
28214
28215         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28216
28217 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28218
28219         getcwd: on Solaris, work better if ancestors are inaccessible
28220         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28221         buffer and size, try again with a large buffer.  This works better
28222         on Solaris, since its getcwd succeeds even if the path to the root
28223         is inaccessible, and this is helpful in common cases such as .zfs
28224         hidden directories.  Problem reported by J Chapman Flack in
28225         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28226         Use system getcwd if it's declared, not merely if it's partly
28227         working; use the partly-working test only to avoid needless effort
28228         if the system getcwd fails.
28229         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28230         comment that was already obsolete and is now even more obsolete.
28231         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28232         now might call strdup.
28233
28234 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28235
28236         pthread: Add enough so that coreutils/src/sort.c compiles.
28237         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28238         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28239         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28240         Include <sys/types.h>, in case it defines pthread_t.
28241         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28242         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28243         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28244         (pthread_rwlockattr_t, pthread_spinlock_t):
28245         New typedefs, if HAVE_PTHREAD_T is not defined.
28246         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28247         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28248         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28249         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28250         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28251         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28252         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28253         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28254         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28255         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28256         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28257         New macros.
28258         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28259         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28260         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28261         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28262         (pthread_spin_unlock): New dummy functions.
28263         (pthread_create): Return EAGAIN; don't set errno.
28264         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28265         require AC_C_INLINE.
28266         * modules/pthread (Depends-on): Add sched, time.
28267         (pthread.h): Use AM_V_GEN.
28268
28269 2010-07-13  Bruno Haible  <bruno@clisp.org>
28270
28271         striconveh: Don't malloc memory if the result buffer is sufficient.
28272         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28273         buffer if its size is sufficient.
28274         Reported by Ludovic Courtès <ludo@gnu.org>.
28275
28276 2010-07-13  Bruno Haible  <bruno@clisp.org>
28277
28278         strtod: Add safety check.
28279         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28280
28281 2010-07-12  Bruno Haible  <bruno@clisp.org>
28282
28283         Unify tests that set gl_cv_func_ldexpl_no_libm.
28284         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28285         gl_FUNC_LDEXPL.
28286         (gl_FUNC_LDEXPL): Invoke it.
28287         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28288
28289 2010-07-12  Bruno Haible  <bruno@clisp.org>
28290
28291         Unify tests that set gl_cv_func_ldexp_no_libm.
28292         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
28293         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
28294         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
28295         (configure.ac): Simply invoke gl_FUNC_LDEXP.
28296         * modules/strtod (Files): Add m4/ldexp.m4.
28297
28298 2010-07-12  Bruno Haible  <bruno@clisp.org>
28299
28300         Unify tests that set gl_cv_func_frexpl_no_libm.
28301         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28302         gl_FUNC_FREXPL_NO_LIBM.
28303         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28304         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28305
28306 2010-07-12  Bruno Haible  <bruno@clisp.org>
28307
28308         Unify tests that set gl_cv_func_frexp_no_libm.
28309         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28310         gl_FUNC_FREXP_NO_LIBM.
28311         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28312         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28313
28314 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28315
28316         memcoll: clarify sizes versus lengths, document better, and tweak perf
28317         * lib/memcoll.c (strcoll_loop, memcoll0):
28318         Improve quality of descriptive comments.  Name variables
28319         consistently as to whether they are lengths (which do not include
28320         terminating null) versus sizes (which do).
28321         * lib/xmemcoll.c (xmemcoll0): Likewise.
28322         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28323         returned when s1size == 0; this is easier to compile and saves
28324         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28325
28326 2010-07-12  Bruno Haible  <bruno@clisp.org>
28327
28328         Tests for module '_Exit'.
28329         * modules/_Exit-tests: New file.
28330         * tests/test-_Exit.sh: New file.
28331         * tests/test-_Exit.c: New file.
28332
28333         New module '_Exit'.
28334         * lib/stdlib.in.h (__attribute__): New macro.
28335         (_Exit): New declaration.
28336         * lib/_Exit.c: New file.
28337         * m4/_Exit.m4: New file.
28338         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28339         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28340         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28341         * modules/_Exit: New file.
28342         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28343         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28344
28345 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28346
28347         strtod: make it more-accurate typically, and don't require libm
28348         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28349         Include limits.h.  Don't include string.h.
28350         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28351         (locale_isspace): New function, so that no casts are needed to
28352         check whether *s is a space.
28353         (ldexp): Provide an unused dummy if not available.
28354         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28355         (strtod): Use them.  This implementation prefers to use the
28356         underlying strtod if available, falling back on our own code
28357         only to fix known bugs.  This is more likely to produce an
28358         accurate result.  Also, it avoids the use of libm functions.
28359         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28360         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28361         was absent, but it caused a test failure with coreutils.
28362         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28363         with libm.
28364         * modules/strtod (Makefile.am, Link): libm is no longer needed.
28365         * modules/strtod-tests (Makefile.am): Likewise.
28366
28367 2010-07-11  Pádraig Brady  <P@draigBrady.com>
28368             Bruno Haible  <bruno@clisp.org>
28369
28370         unistr/u8-strchr: Optimize ASCII argument case.
28371         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
28372
28373 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28374
28375         (x)memcoll: minor tweaks
28376         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
28377         is after the type that it qualifies.
28378         (memcoll0): Likewise.
28379         * lib/memcoll.h (memcoll0): Likewise.
28380         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
28381         * lib/xmemcoll.h (xmemcoll0): Likewise.
28382         * lib/memcoll.c (memcoll0): Correct the comment.  This function
28383         differs from memcoll in that the NUL byte is part of the argument.
28384         Omit the abort-checks, as performance is a real issue here.  Plus,
28385         the checks were wrong anyway (an off-by-one error).  Omit local
28386         variable 'diff', as it's a bit clearer that way.
28387         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
28388         no longer needed.
28389
28390 2010-07-08  Chen Guo <chenguo4@yahoo.com>
28391
28392         (x)memcoll: speedup when input is known to be NUL delimited
28393         * lib/memcoll.c: Include stdlib.
28394         (memcoll0): New function.
28395         (strcoll_loop): New function, refactored for use in both memcoll
28396         and memcoll0.
28397         * lib/memcoll.h (memcoll0): Add prototype.
28398         * lib/xmemcoll.c (xmemcoll0): New function.
28399         (collate_error): New function, refactored for use in both xmemcoll
28400         and xmemcoll0.
28401         * lib/xmemcoll.h (xmemcoll0): Add prototype.
28402         * m4/memcoll.m4: add inline invocation.
28403
28404 2010-07-06  Pádraig Brady  <P@draigBrady.com>
28405
28406         * build-aux/bootstrap: Remove any local translations
28407         from the translation project synchronization directory,
28408         so that local only translations are not distributed.
28409
28410 2010-07-04  Bruno Haible  <bruno@clisp.org>
28411
28412         fsusage: Clarify which code applies to which platforms.
28413         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
28414         platform.
28415         * lib/fsusage.c (get_fs_usage): Likewise.
28416
28417 2010-07-04  Bruno Haible  <bruno@clisp.org>
28418
28419         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
28420         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28421         Reported by Martin Lambers <marlam@marlam.de>.
28422
28423 2010-07-04  Jim Meyering  <meyering@redhat.com>
28424
28425         hash: once again explicitly disallow insertion of NULL
28426         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28427         inserting a NULL pointer cannot work with these functions.
28428         Add a comment with details.
28429         This reverts part of the 2010-07-01 commit, 5bef1a35
28430         "hash: extend module to deal with non-pointer keys".
28431
28432 2010-07-01  Bruno Haible  <bruno@clisp.org>
28433
28434         stdbool: Update doc.
28435         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28436         Info from Christian Weisgerber <naddy@mips.inka.de>.
28437
28438 2010-07-01  Jim Meyering  <meyering@redhat.com>
28439
28440         hash: extend module to deal with non-pointer keys
28441         * lib/hash.c (hash_insert0): New interface, much like hash_insert
28442         but that allows insertion of non-pointer entries.
28443         Do not disallow an ENTRY value of NULL.
28444         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
28445         * lib/hash.h (hash_insert0): Declare.
28446
28447 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28448
28449         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
28450         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
28451         not present (i.e. with autoconf 2.59 and when using gettextize, not
28452         gnulib), require AC_GNU_SOURCE instead.
28453
28454 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
28455
28456         idpriv-drop: Fix tests.
28457         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
28458         not to the test-idpriv-droptemp program.
28459
28460 2010-06-29  Bruno Haible  <bruno@clisp.org>
28461
28462         string: Fix syntax error with g++ 2.96.
28463         * lib/string.in.h (__pure__): Remove definition.
28464         (_GL_ATTRIBUTE_PURE): New macro.
28465         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28466         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28467         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28468
28469 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28470
28471         unitypes: Fix bug introduced on 2010-05-18.
28472         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
28473
28474 2010-06-22  Eric Blake  <eblake@redhat.com>
28475
28476         memmem: slight optimization
28477         * lib/str-two-way.h (critical_factorization): Update comments.
28478         Reduce work during factorization phase.
28479         Reported by Carlos Bueno <carlos@bueno.org>.
28480
28481 2010-06-21  Bruno Haible  <bruno@clisp.org>
28482
28483         Fix HAVE_CALLOC_POSIX misnomer.
28484         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
28485         !HAVE_CALLOC_POSIX.
28486         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
28487         HAVE_CALLOC_POSIX.
28488         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
28489         instead of HAVE_CALLOC_POSIX.
28490         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
28491         HAVE_CALLOC_POSIX.
28492
28493         Use modern idiom for calloc() replacement.
28494         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
28495         AC_FUNC_CALLOC.
28496         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
28497         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
28498         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28499         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
28500         (gl_REPLACE_CALLOC): New macro.
28501
28502 2010-06-21  Bruno Haible  <bruno@clisp.org>
28503
28504         Fix HAVE_REALLOC_POSIX misnomer.
28505         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
28506         !HAVE_REALLOC_POSIX.
28507         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
28508         HAVE_REALLOC_POSIX.
28509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
28510         instead of HAVE_REALLOC_POSIX.
28511         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
28512         HAVE_REALLOC_POSIX.
28513
28514         Use modern idiom for realloc() replacement.
28515         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
28516         AC_FUNC_REALLOC.
28517         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28518         Autoconf's AC_FUNC_REALLOC.
28519         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28520         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28521         (gl_REPLACE_REALLOC): New macro.
28522         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28523
28524 2010-06-21  Bruno Haible  <bruno@clisp.org>
28525
28526         Fix HAVE_MALLOC_POSIX misnomer.
28527         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28528         !HAVE_MALLOC_POSIX.
28529         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28530         HAVE_MALLOC_POSIX.
28531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28532         instead of HAVE_MALLOC_POSIX.
28533         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28534         HAVE_MALLOC_POSIX.
28535
28536         Use modern idiom for malloc() replacement.
28537         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28538         AC_FUNC_MALLOC.
28539         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28540         Autoconf's AC_FUNC_MALLOC.
28541         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28542         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28543         (gl_REPLACE_MALLOC): New macro.
28544         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28545
28546 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28547
28548         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28549         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28550         This macro takes 3 arguments, not 4.
28551
28552 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28553
28554         ipv6: fix detection under mingw
28555         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28556         in6_addr.
28557
28558 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28559
28560         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28561         that strtod() works when cross-compiling to a glibc version known
28562         to work.
28563
28564 2010-06-15  Bruno Haible  <bruno@clisp.org>
28565
28566         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28567
28568 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28569
28570         select: Correct timeout.
28571         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28572
28573 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28574
28575         git-version-gen: init shell var to avoid env var influence
28576         * build-aux/git-version-gen (v): Init shell var to empty.
28577
28578 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28579
28580         priv-set: Don't assume that priv.h exists merely because getppriv does.
28581         See Jan Andersen's bug report about AIX 5L in
28582         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28583         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28584         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28585         * lib/priv-set.h: Likewise.
28586         * tests/test-priv-set.c: Likewise.
28587
28588 2010-06-13  Bruno Haible  <bruno@clisp.org>
28589
28590         relocatable: Make it easier to test whether to install wrappers.
28591         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28592         RELOCATABLE_VIA_WRAPPER.
28593
28594 2010-06-13  Bruno Haible  <bruno@clisp.org>
28595
28596         gnulib-tool: Display specified modules and dependencies differently.
28597         * gnulib-tool (func_show_module_list): New function.
28598         (func_import, func_create_testdir): Invoke it.
28599         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28600
28601 2010-06-13  Bruno Haible  <bruno@clisp.org>
28602
28603         gnulib-tool: Align code of func_import and func_create_testdir.
28604         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28605         specified_modules.
28606
28607 2010-06-12  Jim Meyering  <meyering@redhat.com>
28608
28609         test-inttostr: avoid spurious failure on Solaris 9
28610         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28611         to accept "%ju".  Reported by Bruno Haible.
28612
28613 2010-06-11  Jim Meyering  <meyering@redhat.com>
28614
28615         test-sys_socket: mark variables as used more readably
28616         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28617         as "used" explicitly via (void) statement casts.  This is more
28618         readable than using them in an artificial return expression.
28619         Suggestion from Bruno Haible.
28620
28621 2010-06-11  Bruno Haible  <bruno@clisp.org>
28622
28623         Avoid some more warnings from "gcc -Wwrite-strings".
28624         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28625         to 'const char *'.
28626         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28627         * tests/test-c-strcasestr.c (main): Likewise.
28628         * tests/test-mbscasestr1.c (main): Likewise.
28629         * tests/test-mbscasestr2.c (main): Likewise.
28630         * tests/test-memmem.c (main): Likewise.
28631         * tests/test-strstr.c (main): Likewise.
28632         * tests/test-strcasestr.c (main): Likewise.
28633
28634 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28635
28636         init.sh: change framework_failure_ to fail with status 99, not 1
28637         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28638         automake's parallel-tests rule that this is an unexpected failure,
28639         even if the test is listed in XFAIL_TESTS.
28640
28641 2010-06-11  Jim Meyering  <meyering@redhat.com>
28642
28643         test-inttostr: avoid warnings about 4-6KB literal strings
28644         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28645         Include "macros.h", for its definition of ASSERT.
28646         (CK): s/assert/ASSERT/
28647         * modules/inttostr-tests (Files): Add macros.h.
28648
28649         init.sh: don't use $ME_ or skip_ before they are defined
28650         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28651         their first uses.  Also hoist their companions: warn_, fail_,
28652         framework_failure_, $stderr_fileno.  Prompted by a patch from
28653         Stefano Lattarini.
28654
28655         test-sys_socket: avoid set-but-not-used warnings from gcc
28656         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28657         avoid warning about set-but-not-used variables.
28658
28659         test-xvasprintf: avoid 'const' discard warnings
28660         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28661         "const" when assigning from literal strings.
28662         (test_xasprintf): Add "void" in function argument list to placate
28663         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28664
28665         tests: avoid compilation warnings in argmatch and exclude tests...
28666         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28667         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28668         Since it always exits, declare with the "noreturn" attribute.
28669         * tests/test-argmatch.c: Likewise.
28670
28671         tests: avoid 'const' discard warnings in mbsstr tests
28672         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28673         * tests/test-mbsstr2.c (main): Likewise.
28674
28675         test-verify: avoid warning from gcc's -Wmissing-declarations
28676         * tests/test-verify.c (function): Declare to be static.
28677
28678         test-inttostr.c: include <string.h> for use of strcmp
28679         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28680
28681         test-linkat: avoid failed assertion on "other" architectures
28682         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28683         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28684         sparc: https://bugs.launchpad.net/bugs/591968
28685
28686 2010-06-11  Jim Meyering  <meyering@redhat.com>
28687
28688         printf.m4: avoid autoconf's "Expanded Before Required" warning
28689         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28690         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28691         autoconf warning.
28692
28693 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28694
28695         Replacement header templates are now named with ".in", not "_".
28696         * doc/gnulib-intro.texi: Correct.
28697
28698 2010-06-10  Jim Meyering  <meyering@redhat.com>
28699
28700         inttostr-tests: depend on snprintf, not snprintf-posix
28701         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28702         snprintf-posix, to avoid this aclocal failure:
28703           missing file gnulib-tests/vasnprintf.c
28704           configure.ac:45: error: expected source file, required through \
28705           AC_LIBSOURCES, not found
28706
28707 2010-06-10  Jim Meyering  <meyering@redhat.com>
28708
28709         inttostr: add a new function, inttostr, and tests
28710         The namesake function was not available.  The existence of the
28711         template file, inttostr.c makes its addition nontrivial.
28712         * lib/anytostr.c: Rename from inttostr.c.
28713         (anytostr): Rename from inttostr.
28714         * lib/inttostr.c: New file.
28715         * modules/inttostr (Files): Add anytostr.c.
28716         (Makefile.am): Set lib_SOURCES instead of ...
28717         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28718         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28719         * lib/offtostr.c: Likewise.
28720         * lib/uinttostr.c: Likewise.
28721         * lib/umaxtostr.c: Likewise.
28722         * modules/inttostr-tests: New file.
28723         * tests/test-inttostr.c: New file.  Test these functions.
28724
28725 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28726             Bruno Haible  <bruno@clisp.org>
28727
28728         Add "Extending Gnulib" chapter to manual.
28729         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28730         chapter.
28731         (Extending Gnulib): New chapter.
28732         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28733         chapter.
28734
28735 2010-06-09  Bruno Haible  <bruno@clisp.org>
28736
28737         Avoid relocwrapper link errors due to gnulib replacement functions.
28738         * lib/areadlink.c: Use the system's malloc, realloc functions.
28739         (areadlink): Set errno to ENOMEM explicitly.
28740         * modules/areadlink (Depends-on): Remove malloc-posix.
28741         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28742
28743 2010-06-09  Bruno Haible  <bruno@clisp.org>
28744
28745         Avoid relocwrapper link errors due to gnulib replacement functions.
28746         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28747         * lib/malloca.c: Likewise.
28748         * lib/relocatable.c: Likewise.
28749         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28750         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28751         * lib/setenv.c: Use the system's malloc, realloc functions.
28752         * lib/strerror.c: Use the system's sprintf function.
28753         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28754
28755 2010-06-04  Bruno Haible  <bruno@clisp.org>
28756
28757         Prefer documented low-level autoconf macro names.
28758         * m4/lib-link.m4: Use m4_translit instead of translit.
28759         * m4/environ.m4: Likewise.
28760         * m4/mathfunc.m4: Likewise.
28761         * m4/onceonly.m4: Likewise.
28762         * m4/stdint.m4: Likewise.
28763         Suggested by Eric Blake.
28764
28765 2010-06-04  Martin Lambers  <marlam@marlam.de>
28766             Bruno Haible  <bruno@clisp.org>
28767
28768         havelib: Allow library names with '+' characters.
28769         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28770         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28771
28772 2010-06-09  Bruno Haible  <bruno@clisp.org>
28773
28774         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28775         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28776         realloc failed.
28777
28778 2010-06-08  Peter Simons  <simons@cryp.to>
28779
28780         maint.mk: make the news-check rule more configurable
28781         * top/maint.mk (news-check-lines-spec): New variable.
28782         (news-check): Use "sed -n 1,10p" in place of "head".
28783
28784 2010-06-07  Jim Meyering  <meyering@redhat.com>
28785
28786         do-release-commit-and-tag: fix typo in --help
28787         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28788
28789         regex: avoid new dead-code warning with gcc-4.6.0
28790         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28791         if-block containing a while-loop.  It's been unused for at least
28792         5 years.
28793
28794 2010-06-05  Bruno Haible  <bruno@clisp.org>
28795
28796         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28797         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28798
28799 2010-06-04  Bruno Haible  <bruno@clisp.org>
28800
28801         Update to GNU gettext 0.18.1.
28802         * modules/gettext (configure.ac): Require gettext infrastructure from
28803         version 0.18.1.
28804
28805 2010-06-03  Bruno Haible  <bruno@clisp.org>
28806
28807         Don't use AC_LIBOBJ with file names in subdirectories.
28808         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28809         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28810         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28811         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28812         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28813         gl_LIBUNISTRING_LIBSOURCE.
28814         (Makefile.am): Augment lib_SOURCES here, conditionally.
28815         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28816
28817 2010-06-03  Bruno Haible  <bruno@clisp.org>
28818
28819         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28820         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28821         expansion does not end with a newline.
28822         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28823         unnecessary newline.
28824
28825 2010-06-03  Bruno Haible  <bruno@clisp.org>
28826
28827         Reduce dependencies.
28828         * tests/test-quotearg.h: New file, extracted from
28829         tests/test-quotearg.c.
28830         * tests/test-quotearg-simple.c: New file, extracted from
28831         tests/test-quotearg.c.
28832         * tests/test-quotearg.c: Don't include <ctype.h>.
28833         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28834         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28835         use_quote_double_quotes, use_quotearg_colon): Moved to
28836         tests/test-quotearg.h.
28837         (results_g, flag_results, custom_quotes, custom_results): Moved
28838         to tests/test-quotearg-simple.c.
28839         (main): Moved the part that does not depend on gettext to
28840         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28841         performed.
28842         * modules/quotearg-simple: New file.
28843         * modules/quotearg-simple-tests: New file.
28844         * modules/quotearg (Depends-on): Add quotearg-simple.
28845         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28846         (Files): Add tests/test-quotearg.h.
28847         Reported by Paolo Bonzini.
28848
28849 2010-06-03  Bruno Haible  <bruno@clisp.org>
28850
28851         Reduce dependencies.
28852         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28853
28854 2010-06-03  Bruno Haible  <bruno@clisp.org>
28855
28856         time: Undefine more broken macros.
28857         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28858         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28859         Reported by Eric Blake.
28860
28861 2010-06-03  Bruno Haible  <bruno@clisp.org>
28862
28863         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28864         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28865         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28866         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28867         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28868         Reported by Ludovic Courtès <ludo@gnu.org>.
28869
28870 2010-06-02  Eric Blake  <eblake@redhat.com>
28871
28872         time: work with mingw + pthreads-win32 library
28873         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28874         if timespec is defined only in pthread.h.
28875         * modules/time (Makefile.am): Substitute it.
28876         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28877         <pthread.h>, when needed.
28878         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28879         from the library.
28880
28881 2010-05-31  Bruno Haible  <bruno@clisp.org>
28882
28883         Avoid expanding two macros in the wrong order.
28884         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28885         gl_LIBUNISTRING if it is defined.
28886         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28887         autoconf >= 2.64.
28888         Reported by Ludovic Courtès <ludo@gnu.org>.
28889
28890 2010-05-27  Jim Meyering  <meyering@redhat.com>
28891
28892         maint.mk: also prohibit "#undef" of always-defined symbols
28893         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28894         Allow more than one space before the symbol name.
28895         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28896         the regexp uses alternation.
28897
28898 2010-05-26  Eric Blake  <eblake@redhat.com>
28899
28900         maint.mk: avoid echo -e
28901         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28902         Convert all uses of echo -* to printf.
28903         Reported by Matthias Bolte.
28904
28905 2010-05-25  Bruno Haible  <bruno@clisp.org>
28906
28907         Update to GNU gettext 0.18, part 2.
28908         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28909         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28910
28911 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28912
28913         Add missing include in test-pwrite.c.
28914         * tests/test-pwrite.c: Include string.h, for strcmp.
28915
28916 2010-05-24  Bruno Haible  <bruno@clisp.org>
28917
28918         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28919
28920 2010-05-24  Bruno Haible  <bruno@clisp.org>
28921
28922         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28923         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28924         iconveh_error argument.
28925         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28926         U_STRCONV_TO_LOCALE.
28927         * lib/unistr/u16-strcoll.c: Likewise.
28928         * lib/unistr/u32-strcoll.c: Likewise.
28929         * modules/unistr/u8-strcoll (Depends-on): Add
28930         uniconv/u8-strconv-to-enc, localcharset. Remove
28931         uniconv/u8-strconv-to-locale.
28932         (configure.ac): Bump version number.
28933         * modules/unistr/u16-strcoll (Depends-on): Add
28934         uniconv/u16-strconv-to-enc, localcharset. Remove
28935         uniconv/u16-strconv-to-locale.
28936         (configure.ac): Bump version number.
28937         * modules/unistr/u32-strcoll (Depends-on): Add
28938         uniconv/u32-strconv-to-enc, localcharset. Remove
28939         uniconv/u32-strconv-to-locale.
28940         (configure.ac): Bump version number.
28941
28942 2010-05-24  Bruno Haible  <bruno@clisp.org>
28943
28944         Avoid a test failure on NetBSD 5.0.
28945         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28946         an iconv() bug.
28947
28948 2010-05-24  Bruno Haible  <bruno@clisp.org>
28949
28950         Adjust #include directive style.
28951         * modules/regex (Includes): Recommend to write <regex.h>.
28952
28953 2010-05-24  Bruno Haible  <bruno@clisp.org>
28954
28955         regex: Don't require alloca.
28956         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28957         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28958         only inside if (0).
28959
28960 2010-05-23  Jim Meyering  <meyering@redhat.com>
28961
28962         test-renameat.c: include <sys/stat.h>
28963         * tests/test-renameat.c: Include <sys/stat.h>; required for
28964         definition of S_IS* macros.
28965
28966 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28967
28968         Update maintainer documentation for 'relocatable-prog' module.
28969         * doc/relocatable-maint.texi: Update.
28970         Comments by Bruno Haible.
28971
28972 2010-05-23  Bruno Haible  <bruno@clisp.org>
28973
28974         git-merge-changelog: Enable --split-merged-entry by default.
28975         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28976         (usage): Don't mention this option any more.
28977         Reported by Ralf Wildenhues.
28978
28979 2010-05-23  Jim Meyering  <meyering@redhat.com>
28980
28981         test-pwrite: do not leave behind a test file named "out"
28982         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28983         The trivial-looking use of init.sh is really necessary.
28984         It ensures that the temporary file, "out", is created in
28985         a temporary directory, and removed upon termination.
28986         * tests/test-pwrite.sh: Re-add file.
28987         * modules/pwrite-tests: Reference it.
28988
28989 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28990
28991         Fix output redirection buglet in init.sh.
28992         * tests/init.sh: Fix redirection of stderr.
28993
28994 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28995
28996         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28997
28998 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28999
29000         * modules/valgrind-tests: New file.
29001         * m4/valgrind-tests.m4: New file.
29002         * doc/valgrind-tests.texi: New file.
29003         * doc/gnulib.texi (Running self-tests under valgrind): New
29004         section.
29005
29006 2010-05-19  Bruno Haible  <bruno@clisp.org>
29007
29008         Clean up dead code in recent commit.
29009         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
29010         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
29011         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
29012         Suggested by Paolo Bonzini.
29013
29014 2010-05-19  Bruno Haible  <bruno@clisp.org>
29015
29016         Avoid valgrind error reports from libunistring.
29017         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
29018         * modules/libunistring (Files): Add it.
29019         * modules/libunistring-optional (Files): Likewise.
29020
29021 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
29022             Bruno Haible  <bruno@clisp.org>
29023
29024         New module 'libunistring-optional'.
29025         * modules/libunistring-optional: New file.
29026         * m4/libunistring-base.m4: New file.
29027         * m4/libunistring-optional.m4: New file.
29028         * lib/unicase.in.h: Renamed from lib/unicase.h.
29029         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
29030         * lib/unictype.in.h: Renamed from lib/unictype.h.
29031         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
29032         * lib/uniname.in.h: Renamed from lib/uniname.h.
29033         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
29034         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29035         * lib/unistr.in.h: Renamed from lib/unistr.h.
29036         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29037         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29038         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29039         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29040         gl_LIBUNISTRING. If the library was found, determine the installed
29041         version and set LIBUNISTRING_VERSION.
29042         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29043         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29044         handle a configuration option --with-included-libunistring.
29045         * modules/libunistring (Files): Add m4/absolute-header.m4.
29046         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29047         Add m4/libunistring-base.m4.
29048         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29049         (Makefile.am): Build unicase.h from unicase.in.h.
29050         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29051         Add m4/libunistring-base.m4.
29052         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29053         (Makefile.am): Build uniconv.h from uniconv.in.h.
29054         * modules/unictype/base (Files): Use unictype.in.h instead of
29055         unictype.h. Add m4/libunistring-base.m4.
29056         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29057         (Makefile.am): Build unictype.h from unictype.in.h.
29058         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29059         Add m4/libunistring-base.m4.
29060         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29061         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29062         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29063         Add m4/libunistring-base.m4.
29064         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29065         (Makefile.am): Build uniname.h from uniname.in.h.
29066         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29067         Add m4/libunistring-base.m4.
29068         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29069         (Makefile.am): Build uninorm.h from uninorm.in.h.
29070         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29071         unistdio.h. Add m4/libunistring-base.m4.
29072         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29073         (Makefile.am): Build unistdio.h from unistdio.in.h.
29074         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29075         Add m4/libunistring-base.m4.
29076         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29077         (Makefile.am): Build unistr.h from unistr.in.h.
29078         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29079         Add m4/libunistring-base.m4.
29080         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29081         (Makefile.am): Build unitypes.h from unitypes.in.h.
29082         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29083         Add m4/libunistring-base.m4.
29084         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29085         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29086         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29087         uniwidth.h. Add m4/libunistring-base.m4.
29088         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29089         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29090         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29091         instead of augmenting lib_SOURCES.
29092         * modules/unicase/empty-suffix-context: Likewise.
29093         * modules/unicase/locale-language: Likewise.
29094         * modules/unicase/tolower: Likewise.
29095         * modules/unicase/totitle: Likewise.
29096         * modules/unicase/toupper: Likewise.
29097         * modules/unicase/u8-casecmp: Likewise.
29098         * modules/unicase/u8-casecoll: Likewise.
29099         * modules/unicase/u8-casefold: Likewise.
29100         * modules/unicase/u8-casexfrm: Likewise.
29101         * modules/unicase/u8-ct-casefold: Likewise.
29102         * modules/unicase/u8-ct-tolower: Likewise.
29103         * modules/unicase/u8-ct-totitle: Likewise.
29104         * modules/unicase/u8-ct-toupper: Likewise.
29105         * modules/unicase/u8-is-cased: Likewise.
29106         * modules/unicase/u8-is-casefolded: Likewise.
29107         * modules/unicase/u8-is-lowercase: Likewise.
29108         * modules/unicase/u8-is-titlecase: Likewise.
29109         * modules/unicase/u8-is-uppercase: Likewise.
29110         * modules/unicase/u8-prefix-context: Likewise.
29111         * modules/unicase/u8-suffix-context: Likewise.
29112         * modules/unicase/u8-tolower: Likewise.
29113         * modules/unicase/u8-totitle: Likewise.
29114         * modules/unicase/u8-toupper: Likewise.
29115         * modules/unicase/u16-casecmp: Likewise.
29116         * modules/unicase/u16-casecoll: Likewise.
29117         * modules/unicase/u16-casefold: Likewise.
29118         * modules/unicase/u16-casexfrm: Likewise.
29119         * modules/unicase/u16-ct-casefold: Likewise.
29120         * modules/unicase/u16-ct-tolower: Likewise.
29121         * modules/unicase/u16-ct-totitle: Likewise.
29122         * modules/unicase/u16-ct-toupper: Likewise.
29123         * modules/unicase/u16-is-cased: Likewise.
29124         * modules/unicase/u16-is-casefolded: Likewise.
29125         * modules/unicase/u16-is-lowercase: Likewise.
29126         * modules/unicase/u16-is-titlecase: Likewise.
29127         * modules/unicase/u16-is-uppercase: Likewise.
29128         * modules/unicase/u16-prefix-context: Likewise.
29129         * modules/unicase/u16-suffix-context: Likewise.
29130         * modules/unicase/u16-tolower: Likewise.
29131         * modules/unicase/u16-totitle: Likewise.
29132         * modules/unicase/u16-toupper: Likewise.
29133         * modules/unicase/u32-casecmp: Likewise.
29134         * modules/unicase/u32-casecoll: Likewise.
29135         * modules/unicase/u32-casefold: Likewise.
29136         * modules/unicase/u32-casexfrm: Likewise.
29137         * modules/unicase/u32-ct-casefold: Likewise.
29138         * modules/unicase/u32-ct-tolower: Likewise.
29139         * modules/unicase/u32-ct-totitle: Likewise.
29140         * modules/unicase/u32-ct-toupper: Likewise.
29141         * modules/unicase/u32-is-cased: Likewise.
29142         * modules/unicase/u32-is-casefolded: Likewise.
29143         * modules/unicase/u32-is-lowercase: Likewise.
29144         * modules/unicase/u32-is-titlecase: Likewise.
29145         * modules/unicase/u32-is-uppercase: Likewise.
29146         * modules/unicase/u32-prefix-context: Likewise.
29147         * modules/unicase/u32-suffix-context: Likewise.
29148         * modules/unicase/u32-tolower: Likewise.
29149         * modules/unicase/u32-totitle: Likewise.
29150         * modules/unicase/u32-toupper: Likewise.
29151         * modules/unicase/ulc-casecmp: Likewise.
29152         * modules/unicase/ulc-casecoll: Likewise.
29153         * modules/unicase/ulc-casexfrm: Likewise.
29154         * modules/uniconv/u8-conv-from-enc: Likewise.
29155         * modules/uniconv/u8-conv-to-enc: Likewise.
29156         * modules/uniconv/u8-strconv-from-enc: Likewise.
29157         * modules/uniconv/u8-strconv-from-locale: Likewise.
29158         * modules/uniconv/u8-strconv-to-enc: Likewise.
29159         * modules/uniconv/u8-strconv-to-locale: Likewise.
29160         * modules/uniconv/u16-conv-from-enc: Likewise.
29161         * modules/uniconv/u16-conv-to-enc: Likewise.
29162         * modules/uniconv/u16-strconv-from-enc: Likewise.
29163         * modules/uniconv/u16-strconv-from-locale: Likewise.
29164         * modules/uniconv/u16-strconv-to-enc: Likewise.
29165         * modules/uniconv/u16-strconv-to-locale: Likewise.
29166         * modules/uniconv/u32-conv-from-enc: Likewise.
29167         * modules/uniconv/u32-conv-to-enc: Likewise.
29168         * modules/uniconv/u32-strconv-from-enc: Likewise.
29169         * modules/uniconv/u32-strconv-from-locale: Likewise.
29170         * modules/uniconv/u32-strconv-to-enc: Likewise.
29171         * modules/uniconv/u32-strconv-to-locale: Likewise.
29172         * modules/unictype/bidicategory-byname: Likewise.
29173         * modules/unictype/bidicategory-name: Likewise.
29174         * modules/unictype/bidicategory-of: Likewise.
29175         * modules/unictype/bidicategory-test: Likewise.
29176         * modules/unictype/block-list: Likewise.
29177         * modules/unictype/block-test: Likewise.
29178         * modules/unictype/category-C: Likewise.
29179         * modules/unictype/category-Cc: Likewise.
29180         * modules/unictype/category-Cf: Likewise.
29181         * modules/unictype/category-Cn: Likewise.
29182         * modules/unictype/category-Co: Likewise.
29183         * modules/unictype/category-Cs: Likewise.
29184         * modules/unictype/category-L: Likewise.
29185         * modules/unictype/category-Ll: Likewise.
29186         * modules/unictype/category-Lm: Likewise.
29187         * modules/unictype/category-Lo: Likewise.
29188         * modules/unictype/category-Lt: Likewise.
29189         * modules/unictype/category-Lu: Likewise.
29190         * modules/unictype/category-M: Likewise.
29191         * modules/unictype/category-Mc: Likewise.
29192         * modules/unictype/category-Me: Likewise.
29193         * modules/unictype/category-Mn: Likewise.
29194         * modules/unictype/category-N: Likewise.
29195         * modules/unictype/category-Nd: Likewise.
29196         * modules/unictype/category-Nl: Likewise.
29197         * modules/unictype/category-No: Likewise.
29198         * modules/unictype/category-P: Likewise.
29199         * modules/unictype/category-Pc: Likewise.
29200         * modules/unictype/category-Pd: Likewise.
29201         * modules/unictype/category-Pe: Likewise.
29202         * modules/unictype/category-Pf: Likewise.
29203         * modules/unictype/category-Pi: Likewise.
29204         * modules/unictype/category-Po: Likewise.
29205         * modules/unictype/category-Ps: Likewise.
29206         * modules/unictype/category-S: Likewise.
29207         * modules/unictype/category-Sc: Likewise.
29208         * modules/unictype/category-Sk: Likewise.
29209         * modules/unictype/category-Sm: Likewise.
29210         * modules/unictype/category-So: Likewise.
29211         * modules/unictype/category-Z: Likewise.
29212         * modules/unictype/category-Zl: Likewise.
29213         * modules/unictype/category-Zp: Likewise.
29214         * modules/unictype/category-Zs: Likewise.
29215         * modules/unictype/category-and: Likewise.
29216         * modules/unictype/category-and-not: Likewise.
29217         * modules/unictype/category-byname: Likewise.
29218         * modules/unictype/category-name: Likewise.
29219         * modules/unictype/category-none: Likewise.
29220         * modules/unictype/category-of: Likewise.
29221         * modules/unictype/category-or: Likewise.
29222         * modules/unictype/category-test: Likewise.
29223         * modules/unictype/combining-class: Likewise.
29224         * modules/unictype/ctype-alnum: Likewise.
29225         * modules/unictype/ctype-alpha: Likewise.
29226         * modules/unictype/ctype-blank: Likewise.
29227         * modules/unictype/ctype-cntrl: Likewise.
29228         * modules/unictype/ctype-digit: Likewise.
29229         * modules/unictype/ctype-graph: Likewise.
29230         * modules/unictype/ctype-lower: Likewise.
29231         * modules/unictype/ctype-print: Likewise.
29232         * modules/unictype/ctype-punct: Likewise.
29233         * modules/unictype/ctype-space: Likewise.
29234         * modules/unictype/ctype-upper: Likewise.
29235         * modules/unictype/ctype-xdigit: Likewise.
29236         * modules/unictype/decimal-digit: Likewise.
29237         * modules/unictype/digit: Likewise.
29238         * modules/unictype/mirror: Likewise.
29239         * modules/unictype/numeric: Likewise.
29240         * modules/unictype/property-alphabetic: Likewise.
29241         * modules/unictype/property-ascii-hex-digit: Likewise.
29242         * modules/unictype/property-bidi-arabic-digit: Likewise.
29243         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29244         * modules/unictype/property-bidi-block-separator: Likewise.
29245         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29246         * modules/unictype/property-bidi-common-separator: Likewise.
29247         * modules/unictype/property-bidi-control: Likewise.
29248         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29249         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29250         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29251         * modules/unictype/property-bidi-european-digit: Likewise.
29252         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29253         * modules/unictype/property-bidi-left-to-right: Likewise.
29254         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29255         * modules/unictype/property-bidi-other-neutral: Likewise.
29256         * modules/unictype/property-bidi-pdf: Likewise.
29257         * modules/unictype/property-bidi-segment-separator: Likewise.
29258         * modules/unictype/property-bidi-whitespace: Likewise.
29259         * modules/unictype/property-byname: Likewise.
29260         * modules/unictype/property-combining: Likewise.
29261         * modules/unictype/property-composite: Likewise.
29262         * modules/unictype/property-currency-symbol: Likewise.
29263         * modules/unictype/property-dash: Likewise.
29264         * modules/unictype/property-decimal-digit: Likewise.
29265         * modules/unictype/property-default-ignorable-code-point: Likewise.
29266         * modules/unictype/property-deprecated: Likewise.
29267         * modules/unictype/property-diacritic: Likewise.
29268         * modules/unictype/property-extender: Likewise.
29269         * modules/unictype/property-format-control: Likewise.
29270         * modules/unictype/property-grapheme-base: Likewise.
29271         * modules/unictype/property-grapheme-extend: Likewise.
29272         * modules/unictype/property-grapheme-link: Likewise.
29273         * modules/unictype/property-hex-digit: Likewise.
29274         * modules/unictype/property-hyphen: Likewise.
29275         * modules/unictype/property-id-continue: Likewise.
29276         * modules/unictype/property-id-start: Likewise.
29277         * modules/unictype/property-ideographic: Likewise.
29278         * modules/unictype/property-ids-binary-operator: Likewise.
29279         * modules/unictype/property-ids-trinary-operator: Likewise.
29280         * modules/unictype/property-ignorable-control: Likewise.
29281         * modules/unictype/property-iso-control: Likewise.
29282         * modules/unictype/property-join-control: Likewise.
29283         * modules/unictype/property-left-of-pair: Likewise.
29284         * modules/unictype/property-line-separator: Likewise.
29285         * modules/unictype/property-logical-order-exception: Likewise.
29286         * modules/unictype/property-lowercase: Likewise.
29287         * modules/unictype/property-math: Likewise.
29288         * modules/unictype/property-non-break: Likewise.
29289         * modules/unictype/property-not-a-character: Likewise.
29290         * modules/unictype/property-numeric: Likewise.
29291         * modules/unictype/property-other-alphabetic: Likewise.
29292         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
29293         * modules/unictype/property-other-grapheme-extend: Likewise.
29294         * modules/unictype/property-other-id-continue: Likewise.
29295         * modules/unictype/property-other-id-start: Likewise.
29296         * modules/unictype/property-other-lowercase: Likewise.
29297         * modules/unictype/property-other-math: Likewise.
29298         * modules/unictype/property-other-uppercase: Likewise.
29299         * modules/unictype/property-paired-punctuation: Likewise.
29300         * modules/unictype/property-paragraph-separator: Likewise.
29301         * modules/unictype/property-pattern-syntax: Likewise.
29302         * modules/unictype/property-pattern-white-space: Likewise.
29303         * modules/unictype/property-private-use: Likewise.
29304         * modules/unictype/property-punctuation: Likewise.
29305         * modules/unictype/property-quotation-mark: Likewise.
29306         * modules/unictype/property-radical: Likewise.
29307         * modules/unictype/property-sentence-terminal: Likewise.
29308         * modules/unictype/property-soft-dotted: Likewise.
29309         * modules/unictype/property-space: Likewise.
29310         * modules/unictype/property-terminal-punctuation: Likewise.
29311         * modules/unictype/property-test: Likewise.
29312         * modules/unictype/property-titlecase: Likewise.
29313         * modules/unictype/property-unassigned-code-value: Likewise.
29314         * modules/unictype/property-unified-ideograph: Likewise.
29315         * modules/unictype/property-uppercase: Likewise.
29316         * modules/unictype/property-variation-selector: Likewise.
29317         * modules/unictype/property-white-space: Likewise.
29318         * modules/unictype/property-xid-continue: Likewise.
29319         * modules/unictype/property-xid-start: Likewise.
29320         * modules/unictype/property-zero-width: Likewise.
29321         * modules/unictype/scripts: Likewise.
29322         * modules/unictype/syntax-c-ident: Likewise.
29323         * modules/unictype/syntax-c-whitespace: Likewise.
29324         * modules/unictype/syntax-java-ident: Likewise.
29325         * modules/unictype/syntax-java-whitespace: Likewise.
29326         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29327         * modules/unilbrk/u8-width-linebreaks: Likewise.
29328         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29329         * modules/unilbrk/u16-width-linebreaks: Likewise.
29330         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29331         * modules/unilbrk/u32-width-linebreaks: Likewise.
29332         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29333         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29334         * modules/uniname/uniname: Likewise.
29335         * modules/uninorm/canonical-decomposition: Likewise.
29336         * modules/uninorm/composition: Likewise.
29337         * modules/uninorm/decomposing-form: Likewise.
29338         * modules/uninorm/decomposition: Likewise.
29339         * modules/uninorm/filter: Likewise.
29340         * modules/uninorm/nfc: Likewise.
29341         * modules/uninorm/nfd: Likewise.
29342         * modules/uninorm/nfkc: Likewise.
29343         * modules/uninorm/nfkd: Likewise.
29344         * modules/uninorm/u8-normalize: Likewise.
29345         * modules/uninorm/u8-normcmp: Likewise.
29346         * modules/uninorm/u8-normcoll: Likewise.
29347         * modules/uninorm/u8-normxfrm: Likewise.
29348         * modules/uninorm/u16-normalize: Likewise.
29349         * modules/uninorm/u16-normcmp: Likewise.
29350         * modules/uninorm/u16-normcoll: Likewise.
29351         * modules/uninorm/u16-normxfrm: Likewise.
29352         * modules/uninorm/u32-normalize: Likewise.
29353         * modules/uninorm/u32-normcmp: Likewise.
29354         * modules/uninorm/u32-normcoll: Likewise.
29355         * modules/uninorm/u32-normxfrm: Likewise.
29356         * modules/unistdio/u8-asnprintf: Likewise.
29357         * modules/unistdio/u8-asprintf: Likewise.
29358         * modules/unistdio/u8-snprintf: Likewise.
29359         * modules/unistdio/u8-sprintf: Likewise.
29360         * modules/unistdio/u8-u8-asnprintf: Likewise.
29361         * modules/unistdio/u8-u8-asprintf: Likewise.
29362         * modules/unistdio/u8-u8-snprintf: Likewise.
29363         * modules/unistdio/u8-u8-sprintf: Likewise.
29364         * modules/unistdio/u8-u8-vasnprintf: Likewise.
29365         * modules/unistdio/u8-u8-vasprintf: Likewise.
29366         * modules/unistdio/u8-u8-vsnprintf: Likewise.
29367         * modules/unistdio/u8-u8-vsprintf: Likewise.
29368         * modules/unistdio/u8-vasnprintf: Likewise.
29369         * modules/unistdio/u8-vasprintf: Likewise.
29370         * modules/unistdio/u8-vsnprintf: Likewise.
29371         * modules/unistdio/u8-vsprintf: Likewise.
29372         * modules/unistdio/u16-asnprintf: Likewise.
29373         * modules/unistdio/u16-asprintf: Likewise.
29374         * modules/unistdio/u16-snprintf: Likewise.
29375         * modules/unistdio/u16-sprintf: Likewise.
29376         * modules/unistdio/u16-u16-asnprintf: Likewise.
29377         * modules/unistdio/u16-u16-asprintf: Likewise.
29378         * modules/unistdio/u16-u16-snprintf: Likewise.
29379         * modules/unistdio/u16-u16-sprintf: Likewise.
29380         * modules/unistdio/u16-u16-vasnprintf: Likewise.
29381         * modules/unistdio/u16-u16-vasprintf: Likewise.
29382         * modules/unistdio/u16-u16-vsnprintf: Likewise.
29383         * modules/unistdio/u16-u16-vsprintf: Likewise.
29384         * modules/unistdio/u16-vasnprintf: Likewise.
29385         * modules/unistdio/u16-vasprintf: Likewise.
29386         * modules/unistdio/u16-vsnprintf: Likewise.
29387         * modules/unistdio/u16-vsprintf: Likewise.
29388         * modules/unistdio/u32-asnprintf: Likewise.
29389         * modules/unistdio/u32-asprintf: Likewise.
29390         * modules/unistdio/u32-snprintf: Likewise.
29391         * modules/unistdio/u32-sprintf: Likewise.
29392         * modules/unistdio/u32-u32-asnprintf: Likewise.
29393         * modules/unistdio/u32-u32-asprintf: Likewise.
29394         * modules/unistdio/u32-u32-snprintf: Likewise.
29395         * modules/unistdio/u32-u32-sprintf: Likewise.
29396         * modules/unistdio/u32-u32-vasnprintf: Likewise.
29397         * modules/unistdio/u32-u32-vasprintf: Likewise.
29398         * modules/unistdio/u32-u32-vsnprintf: Likewise.
29399         * modules/unistdio/u32-u32-vsprintf: Likewise.
29400         * modules/unistdio/u32-vasnprintf: Likewise.
29401         * modules/unistdio/u32-vasprintf: Likewise.
29402         * modules/unistdio/u32-vsnprintf: Likewise.
29403         * modules/unistdio/u32-vsprintf: Likewise.
29404         * modules/unistdio/ulc-asnprintf: Likewise.
29405         * modules/unistdio/ulc-asprintf: Likewise.
29406         * modules/unistdio/ulc-fprintf: Likewise.
29407         * modules/unistdio/ulc-snprintf: Likewise.
29408         * modules/unistdio/ulc-sprintf: Likewise.
29409         * modules/unistdio/ulc-vasnprintf: Likewise.
29410         * modules/unistdio/ulc-vasprintf: Likewise.
29411         * modules/unistdio/ulc-vfprintf: Likewise.
29412         * modules/unistdio/ulc-vsnprintf: Likewise.
29413         * modules/unistdio/ulc-vsprintf: Likewise.
29414         * modules/unistr/u8-check: Likewise.
29415         * modules/unistr/u8-chr: Likewise.
29416         * modules/unistr/u8-cmp: Likewise.
29417         * modules/unistr/u8-cmp2: Likewise.
29418         * modules/unistr/u8-cpy: Likewise.
29419         * modules/unistr/u8-cpy-alloc: Likewise.
29420         * modules/unistr/u8-endswith: Likewise.
29421         * modules/unistr/u8-mblen: Likewise.
29422         * modules/unistr/u8-mbsnlen: Likewise.
29423         * modules/unistr/u8-mbtouc: Likewise.
29424         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29425         * modules/unistr/u8-mbtoucr: Likewise.
29426         * modules/unistr/u8-move: Likewise.
29427         * modules/unistr/u8-next: Likewise.
29428         * modules/unistr/u8-prev: Likewise.
29429         * modules/unistr/u8-set: Likewise.
29430         * modules/unistr/u8-startswith: Likewise.
29431         * modules/unistr/u8-stpcpy: Likewise.
29432         * modules/unistr/u8-stpncpy: Likewise.
29433         * modules/unistr/u8-strcat: Likewise.
29434         * modules/unistr/u8-strchr: Likewise.
29435         * modules/unistr/u8-strcmp: Likewise.
29436         * modules/unistr/u8-strcoll: Likewise.
29437         * modules/unistr/u8-strcpy: Likewise.
29438         * modules/unistr/u8-strcspn: Likewise.
29439         * modules/unistr/u8-strdup: Likewise.
29440         * modules/unistr/u8-strlen: Likewise.
29441         * modules/unistr/u8-strmblen: Likewise.
29442         * modules/unistr/u8-strmbtouc: Likewise.
29443         * modules/unistr/u8-strncat: Likewise.
29444         * modules/unistr/u8-strncmp: Likewise.
29445         * modules/unistr/u8-strncpy: Likewise.
29446         * modules/unistr/u8-strnlen: Likewise.
29447         * modules/unistr/u8-strpbrk: Likewise.
29448         * modules/unistr/u8-strrchr: Likewise.
29449         * modules/unistr/u8-strspn: Likewise.
29450         * modules/unistr/u8-strstr: Likewise.
29451         * modules/unistr/u8-strtok: Likewise.
29452         * modules/unistr/u8-to-u16: Likewise.
29453         * modules/unistr/u8-to-u32: Likewise.
29454         * modules/unistr/u8-uctomb: Likewise.
29455         * modules/unistr/u16-check: Likewise.
29456         * modules/unistr/u16-chr: Likewise.
29457         * modules/unistr/u16-cmp: Likewise.
29458         * modules/unistr/u16-cmp2: Likewise.
29459         * modules/unistr/u16-cpy: Likewise.
29460         * modules/unistr/u16-cpy-alloc: Likewise.
29461         * modules/unistr/u16-endswith: Likewise.
29462         * modules/unistr/u16-mblen: Likewise.
29463         * modules/unistr/u16-mbsnlen: Likewise.
29464         * modules/unistr/u16-mbtouc: Likewise.
29465         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29466         * modules/unistr/u16-mbtoucr: Likewise.
29467         * modules/unistr/u16-move: Likewise.
29468         * modules/unistr/u16-next: Likewise.
29469         * modules/unistr/u16-prev: Likewise.
29470         * modules/unistr/u16-set: Likewise.
29471         * modules/unistr/u16-startswith: Likewise.
29472         * modules/unistr/u16-stpcpy: Likewise.
29473         * modules/unistr/u16-stpncpy: Likewise.
29474         * modules/unistr/u16-strcat: Likewise.
29475         * modules/unistr/u16-strchr: Likewise.
29476         * modules/unistr/u16-strcmp: Likewise.
29477         * modules/unistr/u16-strcoll: Likewise.
29478         * modules/unistr/u16-strcpy: Likewise.
29479         * modules/unistr/u16-strcspn: Likewise.
29480         * modules/unistr/u16-strdup: Likewise.
29481         * modules/unistr/u16-strlen: Likewise.
29482         * modules/unistr/u16-strmblen: Likewise.
29483         * modules/unistr/u16-strmbtouc: Likewise.
29484         * modules/unistr/u16-strncat: Likewise.
29485         * modules/unistr/u16-strncmp: Likewise.
29486         * modules/unistr/u16-strncpy: Likewise.
29487         * modules/unistr/u16-strnlen: Likewise.
29488         * modules/unistr/u16-strpbrk: Likewise.
29489         * modules/unistr/u16-strrchr: Likewise.
29490         * modules/unistr/u16-strspn: Likewise.
29491         * modules/unistr/u16-strstr: Likewise.
29492         * modules/unistr/u16-strtok: Likewise.
29493         * modules/unistr/u16-to-u32: Likewise.
29494         * modules/unistr/u16-to-u8: Likewise.
29495         * modules/unistr/u16-uctomb: Likewise.
29496         * modules/unistr/u32-check: Likewise.
29497         * modules/unistr/u32-chr: Likewise.
29498         * modules/unistr/u32-cmp: Likewise.
29499         * modules/unistr/u32-cmp2: Likewise.
29500         * modules/unistr/u32-cpy: Likewise.
29501         * modules/unistr/u32-cpy-alloc: Likewise.
29502         * modules/unistr/u32-endswith: Likewise.
29503         * modules/unistr/u32-mblen: Likewise.
29504         * modules/unistr/u32-mbsnlen: Likewise.
29505         * modules/unistr/u32-mbtouc: Likewise.
29506         * modules/unistr/u32-mbtouc-unsafe: Likewise.
29507         * modules/unistr/u32-mbtoucr: Likewise.
29508         * modules/unistr/u32-move: Likewise.
29509         * modules/unistr/u32-next: Likewise.
29510         * modules/unistr/u32-prev: Likewise.
29511         * modules/unistr/u32-set: Likewise.
29512         * modules/unistr/u32-startswith: Likewise.
29513         * modules/unistr/u32-stpcpy: Likewise.
29514         * modules/unistr/u32-stpncpy: Likewise.
29515         * modules/unistr/u32-strcat: Likewise.
29516         * modules/unistr/u32-strchr: Likewise.
29517         * modules/unistr/u32-strcmp: Likewise.
29518         * modules/unistr/u32-strcoll: Likewise.
29519         * modules/unistr/u32-strcpy: Likewise.
29520         * modules/unistr/u32-strcspn: Likewise.
29521         * modules/unistr/u32-strdup: Likewise.
29522         * modules/unistr/u32-strlen: Likewise.
29523         * modules/unistr/u32-strmblen: Likewise.
29524         * modules/unistr/u32-strmbtouc: Likewise.
29525         * modules/unistr/u32-strncat: Likewise.
29526         * modules/unistr/u32-strncmp: Likewise.
29527         * modules/unistr/u32-strncpy: Likewise.
29528         * modules/unistr/u32-strnlen: Likewise.
29529         * modules/unistr/u32-strpbrk: Likewise.
29530         * modules/unistr/u32-strrchr: Likewise.
29531         * modules/unistr/u32-strspn: Likewise.
29532         * modules/unistr/u32-strstr: Likewise.
29533         * modules/unistr/u32-strtok: Likewise.
29534         * modules/unistr/u32-to-u16: Likewise.
29535         * modules/unistr/u32-to-u8: Likewise.
29536         * modules/unistr/u32-uctomb: Likewise.
29537         * modules/uniwbrk/u8-wordbreaks: Likewise.
29538         * modules/uniwbrk/u16-wordbreaks: Likewise.
29539         * modules/uniwbrk/u32-wordbreaks: Likewise.
29540         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29541         * modules/uniwbrk/wordbreak-property: Likewise.
29542         * modules/uniwidth/u8-strwidth: Likewise.
29543         * modules/uniwidth/u8-width: Likewise.
29544         * modules/uniwidth/u16-strwidth: Likewise.
29545         * modules/uniwidth/u16-width: Likewise.
29546         * modules/uniwidth/u32-strwidth: Likewise.
29547         * modules/uniwidth/u32-width: Likewise.
29548         * modules/uniwidth/width: Likewise.
29549         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29550         with $(LIBUNISTRING).
29551         * modules/unicase/ignorable-tests: Likewise.
29552         * modules/unicase/locale-language-tests: Likewise.
29553         * modules/unicase/tolower-tests: Likewise.
29554         * modules/unicase/totitle-tests: Likewise.
29555         * modules/unicase/toupper-tests: Likewise.
29556         * modules/unicase/u8-casecmp-tests: Likewise.
29557         * modules/unicase/u8-casecoll-tests: Likewise.
29558         * modules/unicase/u8-casefold-tests: Likewise.
29559         * modules/unicase/u8-is-cased-tests: Likewise.
29560         * modules/unicase/u8-is-casefolded-tests: Likewise.
29561         * modules/unicase/u8-is-lowercase-tests: Likewise.
29562         * modules/unicase/u8-is-titlecase-tests: Likewise.
29563         * modules/unicase/u8-is-uppercase-tests: Likewise.
29564         * modules/unicase/u8-tolower-tests: Likewise.
29565         * modules/unicase/u8-totitle-tests: Likewise.
29566         * modules/unicase/u8-toupper-tests: Likewise.
29567         * modules/unicase/u16-casecmp-tests: Likewise.
29568         * modules/unicase/u16-casecoll-tests: Likewise.
29569         * modules/unicase/u16-casefold-tests: Likewise.
29570         * modules/unicase/u16-is-cased-tests: Likewise.
29571         * modules/unicase/u16-is-casefolded-tests: Likewise.
29572         * modules/unicase/u16-is-lowercase-tests: Likewise.
29573         * modules/unicase/u16-is-titlecase-tests: Likewise.
29574         * modules/unicase/u16-is-uppercase-tests: Likewise.
29575         * modules/unicase/u16-tolower-tests: Likewise.
29576         * modules/unicase/u16-totitle-tests: Likewise.
29577         * modules/unicase/u16-toupper-tests: Likewise.
29578         * modules/unicase/u32-casecmp-tests: Likewise.
29579         * modules/unicase/u32-casecoll-tests: Likewise.
29580         * modules/unicase/u32-casefold-tests: Likewise.
29581         * modules/unicase/u32-is-cased-tests: Likewise.
29582         * modules/unicase/u32-is-casefolded-tests: Likewise.
29583         * modules/unicase/u32-is-lowercase-tests: Likewise.
29584         * modules/unicase/u32-is-titlecase-tests: Likewise.
29585         * modules/unicase/u32-is-uppercase-tests: Likewise.
29586         * modules/unicase/u32-tolower-tests: Likewise.
29587         * modules/unicase/u32-totitle-tests: Likewise.
29588         * modules/unicase/u32-toupper-tests: Likewise.
29589         * modules/unicase/ulc-casecmp-tests: Likewise.
29590         * modules/unicase/ulc-casecoll-tests: Likewise.
29591         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29592         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29593         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29594         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29595         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29596         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29597         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29598         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29599         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29600         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29601         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29602         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29603         * modules/unictype/bidicategory-byname-tests: Likewise.
29604         * modules/unictype/bidicategory-name-tests: Likewise.
29605         * modules/unictype/bidicategory-of-tests: Likewise.
29606         * modules/unictype/bidicategory-test-tests: Likewise.
29607         * modules/unictype/block-list-tests: Likewise.
29608         * modules/unictype/block-of-tests: Likewise.
29609         * modules/unictype/block-test-tests: Likewise.
29610         * modules/unictype/category-C-tests: Likewise.
29611         * modules/unictype/category-Cc-tests: Likewise.
29612         * modules/unictype/category-Cf-tests: Likewise.
29613         * modules/unictype/category-Cn-tests: Likewise.
29614         * modules/unictype/category-Co-tests: Likewise.
29615         * modules/unictype/category-Cs-tests: Likewise.
29616         * modules/unictype/category-L-tests: Likewise.
29617         * modules/unictype/category-Ll-tests: Likewise.
29618         * modules/unictype/category-Lm-tests: Likewise.
29619         * modules/unictype/category-Lo-tests: Likewise.
29620         * modules/unictype/category-Lt-tests: Likewise.
29621         * modules/unictype/category-Lu-tests: Likewise.
29622         * modules/unictype/category-M-tests: Likewise.
29623         * modules/unictype/category-Mc-tests: Likewise.
29624         * modules/unictype/category-Me-tests: Likewise.
29625         * modules/unictype/category-Mn-tests: Likewise.
29626         * modules/unictype/category-N-tests: Likewise.
29627         * modules/unictype/category-Nd-tests: Likewise.
29628         * modules/unictype/category-Nl-tests: Likewise.
29629         * modules/unictype/category-No-tests: Likewise.
29630         * modules/unictype/category-P-tests: Likewise.
29631         * modules/unictype/category-Pc-tests: Likewise.
29632         * modules/unictype/category-Pd-tests: Likewise.
29633         * modules/unictype/category-Pe-tests: Likewise.
29634         * modules/unictype/category-Pf-tests: Likewise.
29635         * modules/unictype/category-Pi-tests: Likewise.
29636         * modules/unictype/category-Po-tests: Likewise.
29637         * modules/unictype/category-Ps-tests: Likewise.
29638         * modules/unictype/category-S-tests: Likewise.
29639         * modules/unictype/category-Sc-tests: Likewise.
29640         * modules/unictype/category-Sk-tests: Likewise.
29641         * modules/unictype/category-Sm-tests: Likewise.
29642         * modules/unictype/category-So-tests: Likewise.
29643         * modules/unictype/category-Z-tests: Likewise.
29644         * modules/unictype/category-Zl-tests: Likewise.
29645         * modules/unictype/category-Zp-tests: Likewise.
29646         * modules/unictype/category-Zs-tests: Likewise.
29647         * modules/unictype/category-and-not-tests: Likewise.
29648         * modules/unictype/category-and-tests: Likewise.
29649         * modules/unictype/category-byname-tests: Likewise.
29650         * modules/unictype/category-name-tests: Likewise.
29651         * modules/unictype/category-none-tests: Likewise.
29652         * modules/unictype/category-of-tests: Likewise.
29653         * modules/unictype/category-or-tests: Likewise.
29654         * modules/unictype/category-test-withtable-tests: Likewise.
29655         * modules/unictype/combining-class-tests: Likewise.
29656         * modules/unictype/ctype-alnum-tests: Likewise.
29657         * modules/unictype/ctype-alpha-tests: Likewise.
29658         * modules/unictype/ctype-blank-tests: Likewise.
29659         * modules/unictype/ctype-cntrl-tests: Likewise.
29660         * modules/unictype/ctype-digit-tests: Likewise.
29661         * modules/unictype/ctype-graph-tests: Likewise.
29662         * modules/unictype/ctype-lower-tests: Likewise.
29663         * modules/unictype/ctype-print-tests: Likewise.
29664         * modules/unictype/ctype-punct-tests: Likewise.
29665         * modules/unictype/ctype-space-tests: Likewise.
29666         * modules/unictype/ctype-upper-tests: Likewise.
29667         * modules/unictype/ctype-xdigit-tests: Likewise.
29668         * modules/unictype/decimal-digit-tests: Likewise.
29669         * modules/unictype/digit-tests: Likewise.
29670         * modules/unictype/mirror-tests: Likewise.
29671         * modules/unictype/numeric-tests: Likewise.
29672         * modules/unictype/property-alphabetic-tests: Likewise.
29673         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29674         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29675         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29676         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29677         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29678         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29679         * modules/unictype/property-bidi-control-tests: Likewise.
29680         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29681         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29682         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29683         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29684         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29685         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29686         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29687         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29688         * modules/unictype/property-bidi-pdf-tests: Likewise.
29689         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29690         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29691         * modules/unictype/property-byname-tests: Likewise.
29692         * modules/unictype/property-combining-tests: Likewise.
29693         * modules/unictype/property-composite-tests: Likewise.
29694         * modules/unictype/property-currency-symbol-tests: Likewise.
29695         * modules/unictype/property-dash-tests: Likewise.
29696         * modules/unictype/property-decimal-digit-tests: Likewise.
29697         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29698         * modules/unictype/property-deprecated-tests: Likewise.
29699         * modules/unictype/property-diacritic-tests: Likewise.
29700         * modules/unictype/property-extender-tests: Likewise.
29701         * modules/unictype/property-format-control-tests: Likewise.
29702         * modules/unictype/property-grapheme-base-tests: Likewise.
29703         * modules/unictype/property-grapheme-extend-tests: Likewise.
29704         * modules/unictype/property-grapheme-link-tests: Likewise.
29705         * modules/unictype/property-hex-digit-tests: Likewise.
29706         * modules/unictype/property-hyphen-tests: Likewise.
29707         * modules/unictype/property-id-continue-tests: Likewise.
29708         * modules/unictype/property-id-start-tests: Likewise.
29709         * modules/unictype/property-ideographic-tests: Likewise.
29710         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29711         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29712         * modules/unictype/property-ignorable-control-tests: Likewise.
29713         * modules/unictype/property-iso-control-tests: Likewise.
29714         * modules/unictype/property-join-control-tests: Likewise.
29715         * modules/unictype/property-left-of-pair-tests: Likewise.
29716         * modules/unictype/property-line-separator-tests: Likewise.
29717         * modules/unictype/property-logical-order-exception-tests: Likewise.
29718         * modules/unictype/property-lowercase-tests: Likewise.
29719         * modules/unictype/property-math-tests: Likewise.
29720         * modules/unictype/property-non-break-tests: Likewise.
29721         * modules/unictype/property-not-a-character-tests: Likewise.
29722         * modules/unictype/property-numeric-tests: Likewise.
29723         * modules/unictype/property-other-alphabetic-tests: Likewise.
29724         * modules/unictype/property-other-default-ignorable-code-point-tests:
29725         Likewise.
29726         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29727         * modules/unictype/property-other-id-continue-tests: Likewise.
29728         * modules/unictype/property-other-id-start-tests: Likewise.
29729         * modules/unictype/property-other-lowercase-tests: Likewise.
29730         * modules/unictype/property-other-math-tests: Likewise.
29731         * modules/unictype/property-other-uppercase-tests: Likewise.
29732         * modules/unictype/property-paired-punctuation-tests: Likewise.
29733         * modules/unictype/property-paragraph-separator-tests: Likewise.
29734         * modules/unictype/property-pattern-syntax-tests: Likewise.
29735         * modules/unictype/property-pattern-white-space-tests: Likewise.
29736         * modules/unictype/property-private-use-tests: Likewise.
29737         * modules/unictype/property-punctuation-tests: Likewise.
29738         * modules/unictype/property-quotation-mark-tests: Likewise.
29739         * modules/unictype/property-radical-tests: Likewise.
29740         * modules/unictype/property-sentence-terminal-tests: Likewise.
29741         * modules/unictype/property-soft-dotted-tests: Likewise.
29742         * modules/unictype/property-space-tests: Likewise.
29743         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29744         * modules/unictype/property-test-tests: Likewise.
29745         * modules/unictype/property-titlecase-tests: Likewise.
29746         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29747         * modules/unictype/property-unified-ideograph-tests: Likewise.
29748         * modules/unictype/property-uppercase-tests: Likewise.
29749         * modules/unictype/property-variation-selector-tests: Likewise.
29750         * modules/unictype/property-white-space-tests: Likewise.
29751         * modules/unictype/property-xid-continue-tests: Likewise.
29752         * modules/unictype/property-xid-start-tests: Likewise.
29753         * modules/unictype/property-zero-width-tests: Likewise.
29754         * modules/unictype/scripts-tests: Likewise.
29755         * modules/unictype/syntax-c-ident-tests: Likewise.
29756         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29757         * modules/unictype/syntax-java-ident-tests: Likewise.
29758         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29759         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29760         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29761         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29762         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29763         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29764         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29765         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29766         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29767         * modules/uniname/uniname-tests: Likewise.
29768         * modules/uninorm/canonical-decomposition-tests: Likewise.
29769         * modules/uninorm/compat-decomposition-tests: Likewise.
29770         * modules/uninorm/composition-tests: Likewise.
29771         * modules/uninorm/decomposing-form-tests: Likewise.
29772         * modules/uninorm/decomposition-tests: Likewise.
29773         * modules/uninorm/filter-tests: Likewise.
29774         * modules/uninorm/nfc-tests: Likewise.
29775         * modules/uninorm/nfd-tests: Likewise.
29776         * modules/uninorm/nfkc-tests: Likewise.
29777         * modules/uninorm/nfkd-tests: Likewise.
29778         * modules/uninorm/u8-normcmp-tests: Likewise.
29779         * modules/uninorm/u8-normcoll-tests: Likewise.
29780         * modules/uninorm/u16-normcmp-tests: Likewise.
29781         * modules/uninorm/u16-normcoll-tests: Likewise.
29782         * modules/uninorm/u32-normcmp-tests: Likewise.
29783         * modules/uninorm/u32-normcoll-tests: Likewise.
29784         * modules/unistdio/u8-asnprintf-tests: Likewise.
29785         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29786         * modules/unistdio/u8-vasprintf-tests: Likewise.
29787         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29788         * modules/unistdio/u8-vsprintf-tests: Likewise.
29789         * modules/unistdio/u16-asnprintf-tests: Likewise.
29790         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29791         * modules/unistdio/u16-vasprintf-tests: Likewise.
29792         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29793         * modules/unistdio/u16-vsprintf-tests: Likewise.
29794         * modules/unistdio/u32-asnprintf-tests: Likewise.
29795         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29796         * modules/unistdio/u32-vasprintf-tests: Likewise.
29797         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29798         * modules/unistdio/u32-vsprintf-tests: Likewise.
29799         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29800         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29801         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29802         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29803         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29804         * modules/unistr/u8-check-tests: Likewise.
29805         * modules/unistr/u8-chr-tests: Likewise.
29806         * modules/unistr/u8-cmp-tests: Likewise.
29807         * modules/unistr/u8-cmp2-tests: Likewise.
29808         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29809         * modules/unistr/u8-cpy-tests: Likewise.
29810         * modules/unistr/u8-mblen-tests: Likewise.
29811         * modules/unistr/u8-mbsnlen-tests: Likewise.
29812         * modules/unistr/u8-mbtouc-tests: Likewise.
29813         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29814         * modules/unistr/u8-mbtoucr-tests: Likewise.
29815         * modules/unistr/u8-move-tests: Likewise.
29816         * modules/unistr/u8-next-tests: Likewise.
29817         * modules/unistr/u8-prev-tests: Likewise.
29818         * modules/unistr/u8-set-tests: Likewise.
29819         * modules/unistr/u8-stpcpy-tests: Likewise.
29820         * modules/unistr/u8-stpncpy-tests: Likewise.
29821         * modules/unistr/u8-strcat-tests: Likewise.
29822         * modules/unistr/u8-strcmp-tests: Likewise.
29823         * modules/unistr/u8-strcoll-tests: Likewise.
29824         * modules/unistr/u8-strcpy-tests: Likewise.
29825         * modules/unistr/u8-strdup-tests: Likewise.
29826         * modules/unistr/u8-strlen-tests: Likewise.
29827         * modules/unistr/u8-strmblen-tests: Likewise.
29828         * modules/unistr/u8-strmbtouc-tests: Likewise.
29829         * modules/unistr/u8-strncat-tests: Likewise.
29830         * modules/unistr/u8-strncmp-tests: Likewise.
29831         * modules/unistr/u8-strncpy-tests: Likewise.
29832         * modules/unistr/u8-strnlen-tests: Likewise.
29833         * modules/unistr/u8-to-u16-tests: Likewise.
29834         * modules/unistr/u8-to-u32-tests: Likewise.
29835         * modules/unistr/u8-uctomb-tests: Likewise.
29836         * modules/unistr/u16-check-tests: Likewise.
29837         * modules/unistr/u16-chr-tests: Likewise.
29838         * modules/unistr/u16-cmp-tests: Likewise.
29839         * modules/unistr/u16-cmp2-tests: Likewise.
29840         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29841         * modules/unistr/u16-cpy-tests: Likewise.
29842         * modules/unistr/u16-mblen-tests: Likewise.
29843         * modules/unistr/u16-mbsnlen-tests: Likewise.
29844         * modules/unistr/u16-mbtouc-tests: Likewise.
29845         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29846         * modules/unistr/u16-mbtoucr-tests: Likewise.
29847         * modules/unistr/u16-move-tests: Likewise.
29848         * modules/unistr/u16-next-tests: Likewise.
29849         * modules/unistr/u16-prev-tests: Likewise.
29850         * modules/unistr/u16-set-tests: Likewise.
29851         * modules/unistr/u16-stpcpy-tests: Likewise.
29852         * modules/unistr/u16-stpncpy-tests: Likewise.
29853         * modules/unistr/u16-strcat-tests: Likewise.
29854         * modules/unistr/u16-strcmp-tests: Likewise.
29855         * modules/unistr/u16-strcoll-tests: Likewise.
29856         * modules/unistr/u16-strcpy-tests: Likewise.
29857         * modules/unistr/u16-strdup-tests: Likewise.
29858         * modules/unistr/u16-strlen-tests: Likewise.
29859         * modules/unistr/u16-strmblen-tests: Likewise.
29860         * modules/unistr/u16-strmbtouc-tests: Likewise.
29861         * modules/unistr/u16-strncat-tests: Likewise.
29862         * modules/unistr/u16-strncmp-tests: Likewise.
29863         * modules/unistr/u16-strncpy-tests: Likewise.
29864         * modules/unistr/u16-strnlen-tests: Likewise.
29865         * modules/unistr/u16-to-u32-tests: Likewise.
29866         * modules/unistr/u16-to-u8-tests: Likewise.
29867         * modules/unistr/u16-uctomb-tests: Likewise.
29868         * modules/unistr/u32-check-tests: Likewise.
29869         * modules/unistr/u32-chr-tests: Likewise.
29870         * modules/unistr/u32-cmp-tests: Likewise.
29871         * modules/unistr/u32-cmp2-tests: Likewise.
29872         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29873         * modules/unistr/u32-cpy-tests: Likewise.
29874         * modules/unistr/u32-mblen-tests: Likewise.
29875         * modules/unistr/u32-mbsnlen-tests: Likewise.
29876         * modules/unistr/u32-mbtouc-tests: Likewise.
29877         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29878         * modules/unistr/u32-mbtoucr-tests: Likewise.
29879         * modules/unistr/u32-move-tests: Likewise.
29880         * modules/unistr/u32-next-tests: Likewise.
29881         * modules/unistr/u32-prev-tests: Likewise.
29882         * modules/unistr/u32-set-tests: Likewise.
29883         * modules/unistr/u32-stpcpy-tests: Likewise.
29884         * modules/unistr/u32-stpncpy-tests: Likewise.
29885         * modules/unistr/u32-strcat-tests: Likewise.
29886         * modules/unistr/u32-strcmp-tests: Likewise.
29887         * modules/unistr/u32-strcoll-tests: Likewise.
29888         * modules/unistr/u32-strcpy-tests: Likewise.
29889         * modules/unistr/u32-strdup-tests: Likewise.
29890         * modules/unistr/u32-strlen-tests: Likewise.
29891         * modules/unistr/u32-strmblen-tests: Likewise.
29892         * modules/unistr/u32-strmbtouc-tests: Likewise.
29893         * modules/unistr/u32-strncat-tests: Likewise.
29894         * modules/unistr/u32-strncmp-tests: Likewise.
29895         * modules/unistr/u32-strncpy-tests: Likewise.
29896         * modules/unistr/u32-strnlen-tests: Likewise.
29897         * modules/unistr/u32-to-u16-tests: Likewise.
29898         * modules/unistr/u32-to-u8-tests: Likewise.
29899         * modules/unistr/u32-uctomb-tests: Likewise.
29900         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29901         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29902         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29903         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29904         * modules/uniwidth/u8-strwidth-tests: Likewise.
29905         * modules/uniwidth/u8-width-tests: Likewise.
29906         * modules/uniwidth/u16-strwidth-tests: Likewise.
29907         * modules/uniwidth/u16-width-tests: Likewise.
29908         * modules/uniwidth/u32-strwidth-tests: Likewise.
29909         * modules/uniwidth/u32-width-tests: Likewise.
29910         * modules/uniwidth/width-tests: Likewise.
29911
29912 2010-05-18  Richard Jones  <rjones@redhat.com>
29913
29914         doc: users.txt: list hivex
29915         * users.txt: Add hivex.
29916
29917 2010-05-18  Richard Jones  <rjones@redhat.com>
29918
29919         doc: users.txt: list febootstrap
29920         * users.txt: Add febootstrap.
29921
29922 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29923
29924         bootstrap: fix an error when gnulib is not used as a git submodule
29925         * build-aux/bootstrap (gnulib_path): If its length is zero then
29926         assign "gnulib" to it.
29927         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29928
29929 2010-05-16  Bruno Haible  <bruno@clisp.org>
29930
29931         Avoid autoconf warnings about AM_ICONV.
29932         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29933         2.64.
29934
29935 2010-05-16  Bruno Haible  <bruno@clisp.org>
29936
29937         absolute-header: Make the macro usable in more situations.
29938         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29939         from gl_ABSOLUTE_HEADER.
29940         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29941
29942 2010-05-16  James Youngman  <jay@gnu.org>
29943
29944         doc: update users.txt
29945         * users.txt: Add CSSC.
29946
29947 2010-05-16  Jim Meyering  <meyering@redhat.com>
29948
29949         init.sh: fix an error in the previous change; add more comments
29950         * tests/init.sh: Compare exit code in loop against 9, not 2.
29951         Patch by Bruno Haible.
29952         Make the two tests more similar by adding an empty "then" clause.
29953         Add comments.
29954
29955         init.sh: avoid unnecessary shell re-exec
29956         * tests/init.sh: Improve the re-exec-required check to first test the
29957         current shell.  If it passes the test, do not search for a shell that
29958         does pass, and do not re-exec.  This test is particularly contorted to
29959         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29960         of $(...) evokes a syntax error and causes immediate shell exit with
29961         status 2.  Bruno Haible reported that the re-exec made it impossible
29962         to single-step through any init.sh-using script.
29963
29964 2010-05-16  Bruno Haible  <bruno@clisp.org>
29965
29966         Fix collision between gnulib's and libintl's printf replacements.
29967         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29968         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29969         (printf): When using GNU C, map the __printf__ function to rpl_printf
29970         via __asm__. When not using GNU C, define rpl_printf instead of
29971         __printf__.
29972         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29973         commit.
29974         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29975         commit.
29976         * m4/asm-underscore.m4: New file.
29977         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29978         * modules/stdio (Files): Add m4/asm-underscore.m4.
29979         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29980         Reported by Ben Pfaff.
29981
29982 2010-05-16  Bruno Haible  <bruno@clisp.org>
29983
29984         verify: Avoid skipping the test on openSUSE 11.0.
29985         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29986
29987 2010-05-13  Bruno Haible  <bruno@clisp.org>
29988
29989         Avoid useless warnings from G++.
29990         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29991         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29992         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29993
29994 2010-05-11  Jim Meyering  <meyering@redhat.com>
29995
29996         maint.mk: tweak preceding change
29997         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29998         regexps tighter by anchoring at EOL, and make the new group "shy"
29999         for slightly decreased overhead.
30000
30001 2010-05-11  Eric Blake  <eblake@redhat.com>
30002
30003         maint.mk: gnulib doesn't guarantee NSIG
30004         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
30005
30006 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30007
30008         test-pwrite.c: Remove unused variable declaration.
30009         * tests/test-pwrite.c (main): Remove read_buf declaration.
30010
30011         Remove useless test-pwrite.sh file.
30012         * tests/test-pwrite.sh: Delete file.
30013         * modules/pwrite-tests: Remove references.
30014         Reported by Bruno Haible.
30015
30016 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30017
30018         init.sh: fix a typo
30019         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
30020
30021 2010-05-10  Jim Meyering  <meyering@redhat.com>
30022
30023         maint.mk: avoid using a temporary file in the always-defined-macros check
30024         * top/maint.mk (.re-defmac): Remove rule.
30025         (gl_trap_): Remove definition.
30026         (sc_prohibit_always-defined_macros): Rewrite not to create and
30027         depend on a temporary file.  Instead, depend on GNU grep's ability
30028         to read a list of regular expressions from stdin when given "-f -".
30029
30030 2010-05-09  Bruno Haible  <bruno@clisp.org>
30031
30032         Update to GNU gettext 0.18, part 1.
30033         * m4/gettext.m4: Update to GNU gettext 0.18.
30034         * m4/intl.m4: Likewise.
30035         * m4/po.m4: Likewise.
30036         * modules/gettext (Files): Add m4/fcntl-o.m4.
30037         (configure.ac): Require gettext infrastructure from version 0.18.
30038
30039 2010-05-09  Jim Meyering  <meyering@redhat.com>
30040
30041         init.sh: enable MALLOC_PERTURB_
30042         * tests/init.sh: Enable glibc's malloc-perturbing option.
30043
30044         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30045         With my recent change in init.sh from the two-line form:
30046             -#   : ${srcdir=.}
30047             -#   . "$srcdir/init.sh"; path_prepend_ .
30048             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30049         I noticed that using the one-line form would cause this test
30050         to fail with a false-positive, or to stop working altogether,
30051         depending on whether help-version changed or all the tests did.
30052         * top/maint.mk (_hv_regex): Remove this definition.
30053         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30054         (_hv_regex_strong): Use a stronger regex to check for conformance.
30055         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30056         Give a separate diagnostic for lack of conforming use.
30057
30058         maint.mk: prohibit definition of symbols defined by gnulib
30059         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30060         definition of symbols defined by gnulib.
30061
30062 2010-05-09  Bruno Haible  <bruno@clisp.org>
30063
30064         acl: Avoid test failure on Cygwin-hosted mingw.
30065         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30066
30067 2010-05-09  Bruno Haible  <bruno@clisp.org>
30068
30069         error: Use system's fcntl function.
30070         * lib/error.c (fcntl): Undefine.
30071
30072 2010-05-09  Jim Meyering  <meyering@redhat.com>
30073
30074         verify: adjust formatting to be more consistent
30075         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30076         argument-list '('s, and after one comma.
30077
30078 2010-05-09  Bruno Haible  <bruno@clisp.org>
30079
30080         error: More reliable output on mingw.
30081         * lib/error.c: Include <windows.h>.
30082         (is_open): New function.
30083         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30084         defined.
30085
30086 2010-05-09  Bruno Haible  <bruno@clisp.org>
30087
30088         vasnprintf: Fix syntax errors in libintl build on mingw.
30089         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30090         pad_ourselves and prec_ourselves after use.
30091
30092 2010-05-08  Bruno Haible  <bruno@clisp.org>
30093
30094         * lib/config.charset: Update comments for Cygwin 1.7.
30095         * lib/localcharset.c: Likewise.
30096
30097 2010-05-07  Jim Meyering  <meyering@redhat.com>
30098
30099         init.sh: improve comments
30100         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30101         . "${srcdir=.}/init.sh"; path_prepend_ .
30102         Add a note about path_prepend_ and the alternative of using
30103         TESTS_ENVIRONMENT.
30104
30105 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30106
30107         exclude: Unescape hashed patterns in wildcard mode.
30108         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30109         to the hash list.
30110         * tests/test-exclude8.sh: New test case.
30111         * modules/exclude-tests: Add new test.
30112
30113 2010-05-05  Eric Blake  <eblake@redhat.com>
30114
30115         verify: automate tests
30116         * modules/verify-tests: New module.
30117         * tests/test-verify.sh: New file.
30118         * tests/test-verify.c: Guard each negative test with a unique id.
30119         Also avoid warning about unused left hand of comma expressions.
30120
30121 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30122
30123         Further improvements to verify.h, suggested by Eric Blake.
30124         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30125         the GL_* versions, to avoid collision with OpenGL.
30126         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30127         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30128         than testing merely whether it's defined.
30129
30130         Modify verify.h to pacify gcc -Wredundant_decls.
30131         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30132         These use the prefix "GL_" since they're likely to be useful elsewhere.
30133         We may need to break them out into a different .h file.
30134         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30135         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30136         of verify_function__.
30137
30138 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30139
30140         Tests for module pwrite.
30141         * modules/pwrite-tests: New file.
30142         * tests/test-pwrite.sh: New file.
30143         * tests/test-pwrite.c: New file.
30144
30145         New module pwrite.
30146         * lib/unistd.in.h (pwrite): New declaration.
30147         * lib/pwrite.c: New file, from glibc with modifications.
30148         * m4/pwrite.m4: New file.
30149         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30150         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30151         REPLACE_PWRITE.
30152         * modules/pwrite: New file.
30153         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30154         REPLACE_PWRITE.
30155         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30156         * doc/posix-functions/pwrite.texi: Mention the new module.
30157
30158 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30159
30160         pread: Update documentation.
30161         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30162
30163 2010-05-04  Eric Blake  <eblake@redhat.com>
30164
30165         docs: update cygwin progress
30166         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30167         this bug.
30168         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30169         Added in cygwin 1.7.2.
30170         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30171         Likewise.
30172         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30173         Likewise.
30174         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30175         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30176         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30177         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30178         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30179         Mention nproc module.
30180         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30181         bug in cygwin 1.7.5 addition.
30182         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30183         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30184         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30185         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30186         1.7.5.
30187         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30188         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30189         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30190         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30191         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30192         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30193         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30194         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30195         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30196         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30197         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30198         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30199         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30200         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30201         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30202         Likewise.
30203         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30204         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30205         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30206         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30207         Likewise.
30208         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30209         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30210         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30211         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30212         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30213         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30214         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30215         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30216         Likewise.
30217         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30218         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30219         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30220         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30221         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30222         Likewise.
30223         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30224         Likewise.
30225         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30226         Likewise.
30227         * doc/glibc-functions/xdrrec_endofrecord.texi
30228         (xdrrec_endofrecord): Likewise.
30229         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30230         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30231         Likewise.
30232         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30233         Likewise.
30234
30235 2010-05-04  Jim Meyering  <meyering@redhat.com>
30236
30237         gendocs.sh: make its "-s FILE" option more useful
30238         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30239         $PACKAGE to reflect the probably-different basename of "FILE".
30240
30241 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30242
30243         bootstrap: don't ignore download_po_files failure
30244         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30245         failure.
30246
30247 2010-05-03  Jim Meyering  <meyering@redhat.com>
30248
30249         maint.mk: allow to pass options to gendocs.sh
30250         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30251         (gendocs_options_): New overridable variable.
30252
30253         gnu-web-doc-update: don't ignore configure or build failure
30254         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30255
30256         announce-gen: backslash-escape '@'s in --help output
30257         * build-aux/announce-gen: Fix syntax errors.
30258
30259         maint.mk, announce-gen: allow project-specific announcement mail headers
30260         * top/maint.mk (translation_project_): Define default.
30261         (announcement_Cc_, announcement_mail_headers_): Likewise.
30262         (announcement): Invoke announce-gen with new --mail-headers option.
30263         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30264
30265         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30266         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30267         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30268         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30269         line in the "err2" output file when running "make check" in verbose
30270         mode (i.e., with set -x enabled).
30271
30272 2010-05-03  Bruno Haible  <bruno@clisp.org>
30273
30274         wctob: Fix for weird platforms.
30275         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30276         argument value.
30277
30278 2010-05-03  Jim Meyering  <meyering@redhat.com>
30279
30280         maint.mk: prohibit unwarranted use of <strings.h>
30281         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30282         strings.h in a file that does not also use strcasecmp, strncasecmp,
30283         ffs or ffsll.
30284
30285         maint.mk: remove obsolete comments
30286         * top/maint.mk: Remove stale, commented-out rules.
30287
30288 2010-05-02  Bruno Haible  <bruno@clisp.org>
30289
30290         wcwidth: Declare also when it's aliased.
30291         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
30292         macro.
30293
30294 2010-05-02  Bruno Haible  <bruno@clisp.org>
30295
30296         Fix regression from 2010-04-25.
30297         * gnulib-tool (func_modules_transitive_closure): Check the status of
30298         all modules, not only of the tests that are of the form foo-tests where
30299         foo is a module.
30300
30301 2010-05-02  Bruno Haible  <bruno@clisp.org>
30302
30303         wctob: Work around nasty Cygwin 1.7.2 bug.
30304         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30305         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30306
30307 2010-05-01  Bruno Haible  <bruno@clisp.org>
30308
30309         fpurge: Sharper test.
30310         * tests/test-fpurge.c (main): Add one more ftell check.
30311         * modules/fpurge-tests (Depends-on): Add ftell.
30312         Suggested by Eric Blake.
30313
30314 2010-05-01  Bruno Haible  <bruno@clisp.org>
30315
30316         ftello: Another test.
30317         * tests/test-ftello3.c: New file.
30318         * modules/ftello-tests (Files): Add it.
30319         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30320         MOSTLYCLEANFILES.
30321
30322         ftell: Another test.
30323         * tests/test-ftell3.c: New file.
30324         * modules/ftell-tests (Files): Add it.
30325         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30326         MOSTLYCLEANFILES.
30327
30328 2010-05-01  Bruno Haible  <bruno@clisp.org>
30329
30330         ftell, ftello: Work around Solaris bug.
30331         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30332         * lib/ftello.c: Include stdio-impl.h.
30333         (ftello): On Solaris, when _IOWRT is set, compute the result without
30334         looking at _IOREAD.
30335         * modules/ftello (Files): Add lib/stdio-impl.h.
30336         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30337         * doc/posix-functions/ftello.texi: Likewise.
30338         Reported by Eric Blake.
30339
30340 2010-05-01  Bruno Haible  <bruno@clisp.org>
30341
30342         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30343         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30344         the _IOWRT flag is also set.
30345
30346 2010-05-01  Bruno Haible  <bruno@clisp.org>
30347
30348         Fix doc about a HP-UX stdio bug.
30349         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30350         * doc/posix-functions/ftello.texi: Likewise.
30351
30352 2010-05-01  Bruno Haible  <bruno@clisp.org>
30353
30354         lseek test: Fix failure on Solaris.
30355         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30356         output.
30357
30358 2010-04-30  Jim Meyering  <meyering@redhat.com>
30359
30360         bootstrap: don't ignore failure to generate po*/Makevars
30361         * build-aux/bootstrap (with_gettext): Don't ignore failure
30362         to create po/Makevars or runtime-po/Makevars.
30363
30364 2010-04-29  Eric Blake  <eblake@redhat.com>
30365
30366         headers: relax license to LGPLv2+
30367         * modules/fcntl-h (License): Relax license.
30368         * modules/getopt-posix (License): Likewise.
30369         * modules/locale (License): Likewise.
30370         * modules/math (License): Likewise.
30371         * modules/pty (License): Likewise.
30372         * modules/sched (License): Likewise.
30373         * modules/search (License): Likewise.
30374         * modules/spawn (License): Likewise.
30375         * modules/stdarg (License): Likewise.
30376         * modules/sysexits (License): Likewise.
30377
30378 2010-04-29  Jim Meyering  <meyering@redhat.com>
30379
30380         inttypes: relax license to LGPLv2+
30381         * modules/inttypes (License): Relax license.
30382
30383 2010-04-29  Simon Josefsson  <simon@josefsson.org>
30384
30385         * top/maint.mk (indent): Run twice to produce idempotent results.
30386
30387 2010-04-28  Bruno Haible  <bruno@clisp.org>
30388
30389         getdate: Generate getdate.c in the source directory.
30390         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
30391         MOSTLYCLEANFILES.
30392         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
30393
30394 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
30395
30396         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
30397         is not declared as a const *; avoid warnings in that case.
30398
30399 2010-04-28  Eric Blake  <eblake@redhat.com>
30400
30401         canonicalize-lgpl: avoid compiler warning
30402         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
30403         declaration' / 'extraneous semicolon' warning with some compilers.
30404         Reported by Andreas Gruenbacher.
30405
30406 2010-04-28  Jim Meyering  <meyering@redhat.com>
30407
30408         init.sh: ensure a more reliable exit status when exiting via trap
30409         * tests/init.sh (setup_): Don't rely on $? in signal handler.
30410         Inspired by patches from Dmitry V. Levin.
30411         Also trap on signal 3 (SIGQUIT).
30412
30413 2010-04-27  Bruno Haible  <bruno@clisp.org>
30414
30415         Update doc about utimes().
30416         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
30417         'utimens' module.
30418         Reported by Andreas Gruenbacher <agruen@suse.de>.
30419
30420 2010-04-27  Eric Blake  <eblake@redhat.com>
30421
30422         full-read, full-write: relax license
30423         * modules/full-read (License): Drop to LGPLv2+.
30424         * modules/full-write (License): Likewise.
30425         * modules/safe-read (License): Likewise.
30426         * modules/safe-write (License): Likewise.
30427
30428         pthread: mention library for linking
30429         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30430
30431 2010-04-27  Jim Meyering  <meyering@redhat.com>
30432
30433         maint.mk: fix a bug introduced in last change
30434         * top/maint.mk (gl_assured_headers_): Now that all names are on
30435         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30436         is not anchored to end of word, it should be adequate.
30437
30438         maint.mk: avoid side-effect in latest syntax-check
30439         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30440         to run commands via $(shell...), and hence to incur cost only when
30441         the new rule is actually run.
30442
30443         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
30444         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
30445         and use that to create a regexp used to detect all #if HAVE_..._H uses.
30446         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
30447         (gl_assured_headers_, az_, AZ_): Define.
30448         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
30449
30450 2010-04-26  Jim Meyering  <jim@meyering.net>
30451             Bruno Haible  <bruno@clisp.org>
30452
30453         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
30454         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
30455         Prompted by an exchange with Gilles Espinasse.
30456
30457 2010-04-26  Jim Meyering  <meyering@redhat.com>
30458
30459         git-version-gen: aesthetic tweak
30460         * build-aux/git-version-gen: Use "$nl" rather than a literal,
30461         so that the command remains on a single line.
30462
30463 2010-04-26  Eric Blake  <eblake@redhat.com>
30464
30465         git-version-gen: allow use on EBCDIC hosts
30466         * build-aux/git-version-gen (dirty): Use literal rather than tying
30467         ourselves to ascii.
30468         Reported by Steve Goetze.
30469
30470 2010-04-25  Bruno Haible  <bruno@clisp.org>
30471
30472         netdb: Add support for GNULIB_POSIXCHECK.
30473         * lib/netdb.in.h: Include warn-on-use.h.
30474         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
30475         functions are used when GNULIB_POSIXCHECK is defined and the
30476         getaddrinfo module is not in use.
30477         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
30478         freeaddrinfo, gai_strerror, getnameinfo are declared.
30479         * modules/netdb (Depends-on): Add warn-on-use.
30480         (Makefile.am): Include warn-on-use.h in netdb.h.
30481
30482 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
30483
30484         build: avoid "make check" failure without .git/ directory
30485         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
30486         there is no .git/ directory.
30487
30488 2010-04-25  Bruno Haible  <bruno@clisp.org>
30489
30490         ptsname: Fix misuse of ttyname_r.
30491         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30492         of errno.
30493
30494 2010-04-25  Bruno Haible  <bruno@clisp.org>
30495
30496         ttyname_r: Make it work on Solaris 10.
30497         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
30498         if the system function has the POSIX declaration. Test whether the
30499         function fails if the buffer is less than 128 bytes large.
30500         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
30501         system's ttyname_r function. Provide a reasonably large buffer.
30502         * modules/ttyname_r (Depends-on): Add extensions.
30503         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
30504
30505 2010-04-25  Bruno Haible  <bruno@clisp.org>
30506
30507         Use the 'extensions' module for some more functions on Solaris.
30508         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
30509         module.
30510         * doc/posix-functions/ctime_r.texi: Likewise.
30511         * doc/posix-functions/getgrgid_r.texi: Likewise.
30512         * doc/posix-functions/getgrnam_r.texi: Likewise.
30513         * doc/posix-functions/getpwnam_r.texi: Likewise.
30514         * doc/posix-functions/getpwuid_r.texi: Likewise.
30515         * doc/posix-functions/readdir_r.texi: Likewise.
30516         * doc/posix-functions/sigwait.texi: Likewise.
30517         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30518         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30519
30520 2010-04-25  Bruno Haible  <bruno@clisp.org>
30521
30522         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30523         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30524         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30525         * lib/ttyname_r.c: Include <limits.h>.
30526         (ttyname_r): Define using the system's ttyname_r function, if it exists
30527         and not on Solaris.
30528         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30529         set.
30530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30531         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30532         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30533         Reported by Simon Josefsson.
30534
30535 2010-04-25  Bruno Haible  <bruno@clisp.org>
30536
30537         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30538         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30539         * doc/posix-functions/ctime_r.texi: Likewise.
30540         * doc/posix-functions/getgrgid_r.texi: Likewise.
30541         * doc/posix-functions/getgrnam_r.texi: Likewise.
30542         * doc/posix-functions/getlogin_r.texi: Likewise.
30543         * doc/posix-functions/getpwnam_r.texi: Likewise.
30544         * doc/posix-functions/getpwuid_r.texi: Likewise.
30545         * doc/posix-functions/readdir_r.texi: Likewise.
30546         * doc/posix-functions/sigwait.texi: Likewise.
30547         * doc/posix-functions/ttyname_r.texi: Likewise.
30548         Reported by Simon Josefsson.
30549
30550 2010-04-25  Bruno Haible  <bruno@clisp.org>
30551
30552         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30553         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30554         also to --create-testdir.
30555         (func_acceptable): Don't consider the status of *-tests modules here.
30556         (func_modules_transitive_closure): Consider it here, before including a
30557         test module.
30558         (func_import, func_create_testdir): Set inc_all_direct_tests,
30559         inc_all_indirect_tests.
30560         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30561         --create-testdir and --create-megatestdir.
30562
30563 2010-04-25  Bruno Haible  <bruno@clisp.org>
30564
30565         gnulib-tool: Add --without-*-tests options.
30566         * gnulib-tool (func_usage): Document the --without-*-tests options.
30567         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30568         excl_unportable_tests): New variables.
30569         Fail if they are specified with --import or --update.
30570         (func_acceptable): Respect the excl_*_tests variables.
30571         (func_import): Set the excl_*_tests variables to empty.
30572
30573 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30574             Bruno Haible  <bruno@clisp.org>
30575
30576         Work around a MacOS X 10.4 bug with openpty.
30577         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30578         * tests/test-openpty.c (main): Close the master side explicitly.
30579
30580 2010-04-25  Bruno Haible  <bruno@clisp.org>
30581
30582         strnlen: Fix a C++ test error on MacOS X and Solaris.
30583         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30584         the function is not declared.
30585         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30586         Simon Josefsson.
30587
30588 2010-04-24  Bruno Haible  <bruno@clisp.org>
30589
30590         Avoid a gcc warning.
30591         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30592         of correct type for %08lx directive.
30593         Reported by Eric Blake.
30594
30595 2010-04-24  Bruno Haible  <bruno@clisp.org>
30596
30597         vasnprintf: Correct errno value in case of out-of-memory.
30598         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30599         or sprintf. Use the errno value from SNPRINTF or sprintf.
30600         Reported by Ian Beckwith <ianb@erislabs.net>.
30601
30602 2010-04-24  Bruno Haible  <bruno@clisp.org>
30603
30604         ansi-c++-opt: Find correct compiler when cross-compiling.
30605         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30606         AC_CHECK_PROGS.
30607         Reported by Simon Josefsson.
30608
30609 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30610
30611         vc-list-files: Add support for subversion
30612         * build-aux/vc-list-files: Use "svn list" to generate the list of
30613         files controlled by subversion.
30614
30615 2010-04-23  Jim Meyering  <meyering@redhat.com>
30616
30617         vc-list-files tests: convert to use init.sh
30618         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30619         path_prepend_.
30620         Use Exit, not exit.
30621         Use skip_ rather than open coding it.
30622         Remove trap set-up and compare definitions.
30623         * tests/test-vc-list-files-git.sh: Likewise.
30624         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30625
30626 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30627
30628         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30629         backup files.
30630
30631 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30632
30633         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30634
30635 2010-04-20  Eric Blake  <eblake@redhat.com>
30636
30637         tests: be robust to ignored SIGPIPE
30638         * tests/test-select-in.sh: Consume all output.
30639         * tests/test-lseek.sh: Check correct exit status, while avoiding
30640         EPIPE.
30641
30642 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30643             Bruno Haible  <bruno@clisp.org>
30644
30645         visibility: Don't use -fvisibility if it leads to a warning.
30646         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30647         yes, don't pretend that visibility works if it leads to a warning.
30648         Reported by Mike Gran <spk121@yahoo.com>.
30649
30650 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30651
30652         * build-aux/bootstrap: Use "git -h" for testing for supported options
30653         instead of "git --help".  The short-form option only shows a summary,
30654         and doesn't layout the full man page.  Grep for the full option name
30655         in the summary, too.
30656
30657 2010-04-19  Bruno Haible  <bruno@clisp.org>
30658
30659         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30660         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30661         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30662         mention of RELOCATABLE_STRIP.
30663         Reported by Sylvain Beucler <beuc@beuc.net>.
30664
30665 2010-04-19  Bruno Haible  <bruno@clisp.org>
30666
30667         * lib/diffseq.h: Fix typo in comment.
30668         Reported by Eric Blake.
30669
30670 2010-04-19  Bruno Haible  <bruno@clisp.org>
30671
30672         ioctl: Move autoconf macro to a .m4 file.
30673         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30674         * modules/ioctl (Files): Add it.
30675         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30676         Reported by Ian Beckwith <ianb@erislabs.net>.
30677
30678 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30679             Bruno Haible  <bruno@clisp.org>
30680
30681         diffseq: Accommodate use-case with abstract arrays.
30682         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30683         is not defined.
30684         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30685         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30686
30687 2010-04-18  Bruno Haible  <bruno@clisp.org>
30688
30689         * doc/posix-headers/stdbool.texi: More precise wording.
30690
30691 2010-04-17  Jim Meyering  <meyering@redhat.com>
30692
30693         maint.mk: use gnu-style indentation in an embedded perl script
30694         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30695         Rename variable: s/two/last_two_bytes/
30696
30697 2010-04-16  Eric Blake  <eblake@redhat.com>
30698
30699         test-stdbool: skip test that fails with Solaris CC
30700         * tests/test-stdbool.c (f): Skip test that causes compilation
30701         error under buggy C++ compiler.
30702         * lib/stdbool.in.h: Document the limitation.
30703         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30704
30705         setenv: allow compilation with C++
30706         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30707         register keyword.
30708
30709         stdint: allow test to pass with C++
30710         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30711
30712         getopt: allow compilation with C++
30713         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30714         struct.
30715         * lib/getopt.c (_getopt_internal_r): Use correct type.
30716         Reported by Dagobert Michelson, via Joel E. Denny.
30717
30718 2010-04-16  Bruno Haible  <bruno@clisp.org>
30719
30720         Override netdb.h always.
30721         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30722         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30723         Reported by Ludovic Courtès <ludo@gnu.org>.
30724
30725 2010-04-15  Bruno Haible  <bruno@clisp.org>
30726
30727         openpty: Fix mistake from 2010-03-21.
30728         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30729         Reported by Simon Josefsson.
30730
30731 2010-04-15  Eric Blake  <eblake@redhat.com>
30732
30733         test-forkpty: fix expected signature
30734         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30735         Reported by Simon Josefsson.
30736
30737 2010-04-15  Jim Meyering  <meyering@redhat.com>
30738
30739         maint.mk: texinfo_suffix_re_: correct the default regexp
30740         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30741
30742         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30743         make it configurable via texinfo_suffix_re_.
30744
30745 2010-04-14  Eric Blake  <eblake@redhat.com>
30746
30747         strtok_r: relax license to LGPLv2+
30748         * modules/strtok_r (License): Relax license.
30749         Reported by Matthias Bolte.
30750
30751 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30752
30753         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30754         version 1.4.4 by default instead of requiring the libgcrypt
30755         version used during build.  This makes it possible to use the
30756         application with older but still binary compatible libgcrypt
30757         versions.
30758
30759 2010-04-13  Eric Blake  <eblake@redhat.com>
30760
30761         getopt-gnu: match recent glibc fixes and posix ruling
30762         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30763         '+' handling, when requesting extensions.
30764         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30765         'W;' handling.
30766         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30767         * doc/posix-functions/getopt.texi (getopt): Document this.
30768         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30769         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30770         Likewise.
30771
30772         getopt: merge bug fixes from glibc
30773         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30774         diagnostics.  Honor '+:' correctly.  Reject ';'.
30775
30776         getopt-posix: detect MacOS bug
30777         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30778         optind when missing a required argument.
30779         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30780         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30781         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30782         Likewise.
30783
30784         getopt-posix: avoid spurious failure on Solaris
30785         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30786         an indicator that setting optind=1 is sufficient for reset.
30787
30788         getopt-posix: avoid spurious failure on FreeBSD
30789         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30790         in POSIX mode, since the m4 test uses it.
30791
30792         gnulib-tool: silence warning on BSD sh
30793         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30794
30795 2010-04-13  Jim Meyering  <meyering@redhat.com>
30796
30797         doc: users.txt: GNU patch now uses gnulib
30798         * users.txt: Add patch.
30799
30800 2010-04-12  Jim Meyering  <meyering@redhat.com>
30801
30802         maint.mk: generate more concise timing data for syntax-check rules
30803         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30804         " done" from each line that reports a syntax-check test duration.
30805
30806 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30807
30808         git-version-gen: use "git update-index..." rather than "git status"
30809         * build-aux/git-version-gen: Use git update-index --refresh, not
30810         "git status".  With some versions of git, "git status" would fail
30811         to update the index and result in an unwarranted "-dirty" suffix.
30812
30813 2010-04-11  Jim Meyering  <meyering@redhat.com>
30814
30815         openat: correct formatting (no semantic change)
30816         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30817         Suggested by Bruno Haible.
30818
30819 2010-04-11  Bruno Haible  <bruno@clisp.org>
30820
30821         Stricter declaration checking in testdirs.
30822         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30823         If for_tests is true, augment AM_CPPFLAGS to define
30824         GNULIB_STRICT_CHECKING.
30825         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30826         GNULIB_STRICT_CHECKING is defined, verify that the function is
30827         declared.
30828
30829 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30830             Bruno Haible  <bruno@clisp.org>
30831
30832         libunistring: Improve configure output.
30833         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30834         Don't say "consider installing GNU libunistring" when checking again
30835         with libiconv.
30836
30837 2010-04-11  Bruno Haible  <bruno@clisp.org>
30838
30839         libunistring: Correct value of $LTLIBUNISTRING.
30840         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30841         correct the value of $LTLIBUNISTRING.
30842
30843 2010-04-11  Bruno Haible  <bruno@clisp.org>
30844
30845         havelib: Add static libraries to LIBS in the right order.
30846         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30847         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30848
30849 2010-04-11  Bruno Haible  <bruno@clisp.org>
30850
30851         libunistring: Detect libunistring also when it depends on libiconv.
30852         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30853         the second AC_LIB_HAVE_LINKFLAGS invocation.
30854
30855 2010-04-11  James Youngman  <jay@gnu.org>
30856
30857         close-stream: declare local scalars to be "const"
30858         * lib/close-stream.c (close_stream): Make boolean variables const
30859         to document the fact that we set but do not change them.
30860
30861 2010-04-11  Bruno Haible  <bruno@clisp.org>
30862
30863         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30864
30865 2010-04-11  Jim Meyering  <meyering@redhat.com>
30866
30867         maint.mk: don't include dist-check.mk
30868         * top/maint.mk: Remove bogus include directive.
30869
30870         maint.mk: improve empty-line-at-EOF check
30871         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30872         solution, rather than tail+Perl-based one.  The latter would read
30873         a few kilobytes from the end of each file, and did not handle empty
30874         files properly.
30875
30876         maint.mk: print the elapsed time for each syntax-check rule
30877         * top/maint.mk (sc_m_rules_): Save start time in a file.
30878         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30879         (local-check): Interpose the .z rules
30880
30881 2010-04-11  Jim Meyering  <meyering@redhat.com>
30882
30883         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30884         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30885         empty file with one that ends in an empty line.
30886
30887 2010-04-10  Bruno Haible  <bruno@clisp.org>
30888
30889         mkdir: Make it work on mingw64.
30890         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30891         * lib/mkdir.c: Update comment.
30892         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30893
30894 2010-04-10  Bruno Haible  <bruno@clisp.org>
30895
30896         Don't override improved macro from newer autoconf.
30897         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30898         autoconf >= 2.62.
30899         Reported by Joel E. Denny <jdenny@clemson.edu>.
30900
30901 2010-04-10  Jim Meyering  <meyering@redhat.com>
30902
30903         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30904         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30905
30906         maint.mk: correct a diagnostic
30907         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30908         in diagnostic; now use $prohibit.
30909
30910 2010-04-10  Bruno Haible  <address@hidden>
30911
30912         fchownat: Fix a C++ test error on Solaris 8.
30913         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30914         the function does not exist.
30915
30916 2010-04-10  Bruno Haible  <bruno@clisp.org>
30917
30918         vasnprintf: Add more tests.
30919         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30920         (test_function): Test converting an invalid wide string.
30921
30922         vasnprintf: Correct handling of unconvertible wide string arguments.
30923         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30924         VASNPRINTF.
30925         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30926         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30927         smaller than the expected maximum need for the directive. Set errno to
30928         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30929         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30931         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30932         * modules/vasnprintf (Files): Add m4/printf.m4.
30933         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30934
30935 2010-04-10  Bruno Haible  <bruno@clisp.org>
30936
30937         vasnprintf: Fix crash in %ls directive.
30938         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30939         string is passed as argument to %ls, with no precision and no width.
30940         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30941
30942 2010-04-10  Bruno Haible  <bruno@clisp.org>
30943
30944         vasnprintf: Fix multiple test failures on mingw.
30945         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30946         _snprintf, or snwprintf, not _snwprintf.
30947
30948 2010-04-10  Bruno Haible  <bruno@clisp.org>
30949
30950         write: Fix a C++ test error on mingw.
30951         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30952
30953 2010-04-10  Bruno Haible  <bruno@clisp.org>
30954
30955         vasnprintf test: Reduce code duplication.
30956         * tests/test-vasnprintf.c (test_function): New function, extracted from
30957         test_vasnprintf.
30958         (test_vasnprintf, test_asnprintf): Invoke it.
30959
30960 2010-04-10  Bruno Haible  <bruno@clisp.org>
30961
30962         strnlen: Fix warning in C++ mode on MacOS X.
30963         * lib/string.in.h (strnlen): Use the modern idiom.
30964         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30965         defining strnlen as a macro already in <config.h>.
30966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30967         REPLACE_STRNLEN.
30968         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30969         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30970
30971 2010-04-08  James Youngman  <jay@gnu.org>
30972
30973         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30974         the example.
30975
30976 2010-04-09  Jim Meyering  <meyering@redhat.com>
30977
30978         maint.mk: print better diagnostic when there is no $(_hv_file)
30979         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30980         announce that when $(_hv_file) (aka help-version) does not exist.
30981
30982         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30983         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30984         not try to interpret its random input bytes.  Jarno Rajahalme reported
30985         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30986         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30987         (mktempd_): Likewise, just in case.
30988
30989         ftruncate: add two years to projected module removal date: 2012
30990         * m4/ftruncate.m4: Adjust comments.
30991
30992         ftruncate: mark module as obsolete; even MinGW provides it, now
30993         * modules/ftruncate (Status): Obsolete.
30994         (Notice): Say that.
30995         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30996         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30997
30998 2010-04-08  Bruno Haible  <bruno@clisp.org>
30999
31000         Fix side effects from tests-related modules.
31001         * modules/dprintf-posix (Comment): New section.
31002         * modules/fprintf-posix (Comment): Likewise.
31003         * modules/obstack-printf-posix (Comment): Likewise.
31004         * modules/printf-posix (Comment): Likewise.
31005         * modules/snprintf-posix (Comment): Likewise.
31006         * modules/sprintf-posix (Comment): Likewise.
31007         * modules/vasnprintf-posix (Comment): Likewise.
31008         * modules/vasprintf-posix (Comment): Likewise.
31009         * modules/vdprintf-posix (Comment): Likewise.
31010         * modules/vfprintf-posix (Comment): Likewise.
31011         * modules/vprintf-posix (Comment): Likewise.
31012         * modules/vsnprintf-posix (Comment): Likewise.
31013         * modules/vsprintf-posix (Comment): Likewise.
31014         * modules/xprintf-posix (Comment): Likewise.
31015         * modules/xvasprintf-posix (Comment): Likewise.
31016         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
31017         * modules/floorf-tests (Depends-on): Likewise.
31018         * modules/round-tests (Depends-on): Likewise.
31019         * modules/roundf-tests (Depends-on): Likewise.
31020         * modules/trunc-tests (Depends-on): Likewise.
31021         * modules/truncf-tests (Depends-on): Likewise.
31022         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
31023         'fprintf-posix' module is not present.
31024         * tests/test-floorf2.c (check): Likewise.
31025         * tests/test-trunc2.c (check): Likewise.
31026         * tests/test-truncf2.c (check): Likewise.
31027         * tests/test-round2.c (equal): Likewise.
31028         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31029
31030 2010-04-07  Karl Berry  <karl@gnu.org>
31031
31032         * config/srclist.txt,
31033         * config/srclistvars.sh,
31034         * config/srclist-update: doc fixes.
31035
31036 2010-04-07  Jim Meyering  <meyering@redhat.com>
31037
31038         maint.mk: add a PATH crosschecking syntax-check rule
31039         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31040         Useful if you use a test like the one in help-version (coreutils,
31041         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31042         printed by prog --version.
31043
31044 2010-04-06  Bruno Haible  <bruno@clisp.org>
31045
31046         Fix link error on mingw.
31047         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31048         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31049
31050 2010-04-06  Bruno Haible  <bruno@clisp.org>
31051
31052         Assume rmdir exists.
31053         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31054
31055 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31056
31057         doc: update users.txt
31058         * users.txt: Add gcal.
31059
31060 2010-04-06  Jim Meyering  <meyering@redhat.com>
31061
31062         init.sh: simply unset TMPDIR rather than risking env -i
31063         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31064         although it probably works fine on all Unix-based systems, some
31065         systems (Cygwin?) cannot tolerate a totally cleared environment.
31066         Suggestion from Eric Blake.
31067
31068 2010-04-06  Jim Meyering  <meyering@redhat.com>
31069
31070         init.sh: portability fix: use env's POSIX-specified -i option not -u
31071         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31072         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31073
31074 2010-04-05  Bruno Haible  <bruno@clisp.org>
31075
31076         btowc: Work around Cygwin 1.7.2 bug.
31077         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31078         does not map NUL to 0.
31079         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31080
31081 2010-04-05  Bruno Haible  <bruno@clisp.org>
31082
31083         Make the multithread modules work on Cygwin 1.7.2.
31084         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31085         imported symbols can be declared weak, so that it returns "no" on
31086         Cygwin 1.7.2.
31087
31088 2010-04-05  Bruno Haible  <bruno@clisp.org>
31089
31090         Use the module 'strncat'.
31091         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31092
31093         Tests for module 'strncat'.
31094         * modules/strncat-tests: New file.
31095         * tests/test-strncat.c: New file.
31096
31097         New module 'strncat'.
31098         * lib/string.in.h (strncat): New declaration.
31099         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31100         * m4/strncat.m4: New file, based on m4/memchr.m4.
31101         * modules/strncat: New file.
31102         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31103         is declared.
31104         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31105         REPLACE_STRNCAT.
31106         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31107         REPLACE_STRNCAT.
31108         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31109         module.
31110         * tests/test-string-c++.cc: Check signature of strncat.
31111
31112 2010-04-05  Jim Meyering  <meyering@redhat.com>
31113
31114         xstrtoumax-tests: convert to use init.sh
31115         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31116         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31117         Use Exit, not exit.
31118         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31119
31120         xstrtoimax-tests: convert to use init.sh
31121         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31122         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31123         Use Exit, not exit.
31124         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31125
31126 2010-04-05  Bruno Haible  <bruno@clisp.org>
31127
31128         sys_socket: Avoid #define replacements in C++ mode.
31129         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31130         warning to the function if possible, rather than #defining the symbol
31131         to a dysfunctional alias.
31132
31133 2010-04-05  Bruno Haible  <bruno@clisp.org>
31134
31135         fseeko: Fix C++ test error on mingw.
31136         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31137         gl_FUNC_FSEEKO.
31138         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31139         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31140         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31141         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31142
31143 2010-04-05  Bruno Haible  <bruno@clisp.org>
31144
31145         duplocale: Improve test output.
31146         * tests/test-duplocale.c (main): Print reason for skipped test.
31147
31148 2010-04-05  Bruno Haible  <bruno@clisp.org>
31149
31150         Assume rmdir exists.
31151         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31152         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31153
31154 2010-04-05  Bruno Haible  <bruno@clisp.org>
31155
31156         Fix link error on Solaris 8 with cc.
31157         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31158
31159 2010-04-05  Bruno Haible  <bruno@clisp.org>
31160
31161         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31162         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31163
31164 2010-04-05  Bruno Haible  <bruno@clisp.org>
31165
31166         vasprintf: Update documentation.
31167         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31168
31169 2010-04-05  Bruno Haible  <bruno@clisp.org>
31170
31171         ptsname: Improve test.
31172         * tests/test-ptsname.c (main): Also try the various master names of BSD
31173         systems.
31174
31175 2010-04-05  Bruno Haible  <bruno@clisp.org>
31176
31177         memchr: Avoid a possible C++ test error.
31178         * lib/string.in.h (memchr): Provide declaration if function is missing.
31179         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31180         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31182         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31183
31184 2010-04-05  Bruno Haible  <bruno@clisp.org>
31185
31186         strtok_r: Improve idiom.
31187         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31188         AC_LIBOBJ is used.
31189
31190 2010-04-05  Bruno Haible  <bruno@clisp.org>
31191
31192         strdup: Improve idiom.
31193         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31194         AC_LIBOBJ is used.
31195         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31196         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31197         when AC_LIBOBJ is used.
31198
31199 2010-04-05  Bruno Haible  <bruno@clisp.org>
31200
31201         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31202         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31203         don't set REPLACE_MBSINIT to 1.
31204         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31205         don't set REPLACE_MBRTOWC to 1.
31206         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31207         exist, don't set REPLACE_MBSRTOWCS to 1.
31208         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31209         exist, don't set REPLACE_MBSNRTOWCS to 1.
31210         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31211         don't set REPLACE_WCRTOMB to 1.
31212         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31213         exist, don't set REPLACE_WCSRTOMBS to 1.
31214         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31215         exist, don't set REPLACE_WCSNRTOMBS to 1.
31216
31217 2010-04-05  Bruno Haible  <bruno@clisp.org>
31218
31219         ldexpl: Improve idiom.
31220         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31221         make sure to set HAVE_DECL_LDEXPL to 0.
31222
31223 2010-04-05  Jim Meyering  <meyering@redhat.com>
31224
31225         xstrtol-tests: convert to use init.sh
31226         * modules/xstrtol-tests (Files): Add tests/init.sh.
31227         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31228         Use Exit, not exit.
31229         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31230
31231         atexit-tests: convert to use init.sh
31232         * modules/atexit-tests (Files): Add tests/init.sh.
31233         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31234         Use Exit, not exit.
31235         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31236
31237         init.sh: fix typo
31238         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31239
31240         init.sh: make it easier for a test script to write to the tty, ...
31241         when using automake's parallel-tests mode.
31242         * tests/init.sh (stderr_fileno_): Define overridable variable.
31243         (warn_): New function, to use it.
31244         (fail_, skip_, framework_failure_): Use warn_.
31245
31246 2010-04-04  Bruno Haible  <bruno@clisp.org>
31247
31248         btowc: Avoid warning.
31249         * lib/btowc.c: Include <stdlib.h>.
31250         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31251
31252 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31253             Bruno Haible  <bruno@clisp.org>
31254
31255         wchar: Port to NetBSD 1.5.
31256         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31257         * lib/wctype.in.h (WEOF): Likewise.
31258
31259 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31260             Bruno Haible  <bruno@clisp.org>
31261
31262         Port extended stdio to NetBSD 1.5.
31263         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31264         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31265         older.
31266
31267 2010-04-04  Bruno Haible  <bruno@clisp.org>
31268
31269         string: Remove unused substitution.
31270         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31271         HAVE_DECL_STRERROR.
31272         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31273
31274 2010-04-04  Bruno Haible  <bruno@clisp.org>
31275
31276         strtod: Avoid a possible C++ test error.
31277         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31278         set REPLACE_STRTOD.
31279
31280 2010-04-04  Bruno Haible  <bruno@clisp.org>
31281
31282         strerror: Update documentation.
31283         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31284
31285 2010-04-04  Bruno Haible  <bruno@clisp.org>
31286
31287         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31288         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31289         _GL_CXXALIAS_SYS_CAST.
31290
31291 2010-04-04  Bruno Haible  <bruno@clisp.org>
31292
31293         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31294         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
31295         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
31296         REPLACE_FREXPL to 1.
31297         * doc/posix-functions/frexpl.texi: Update documentation.
31298
31299 2010-04-04  Bruno Haible  <bruno@clisp.org>
31300
31301         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31302         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31303
31304 2010-04-04  Bruno Haible  <bruno@clisp.org>
31305
31306         Implement nanosleep for native Windows.
31307         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31308
31309 2010-04-04  Bruno Haible  <bruno@clisp.org>
31310
31311         math: Fix some C++ test errors on Solaris 8.
31312         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31313
31314 2010-04-04  Bruno Haible  <bruno@clisp.org>
31315
31316         math: Fix some C++ test errors on Cygwin.
31317         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31318         truncl): Provide declaration if the system does not have it.
31319         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31320         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31321         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31322         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31323         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31324         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31325         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31326         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31327         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31328         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31329         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31330         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31331         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31332         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31333         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31334         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31335         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31336         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31337         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31338         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31339         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31340         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31341
31342 2010-04-04  Bruno Haible  <bruno@clisp.org>
31343
31344         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31345         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31346         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31347         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31348         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31349         * m4/isinf.m4 (gl_ISINF): Likewise.
31350         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31351
31352 2010-04-04  Bruno Haible  <bruno@clisp.org>
31353
31354         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31355         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31356
31357 2010-04-04  Bruno Haible  <bruno@clisp.org>
31358
31359         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31360         * modules/tmpfile (configure.ac): Update.
31361
31362         tmpfile: Fix C++ test error on mingw.
31363         * lib/stdio.in.h (tmpfile): New declaration.
31364         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
31365         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
31366         * modules/tmpfile (Depends-on): Add stdio.
31367         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31368         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
31369         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
31370         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
31371         REPLACE_TMPFILE.
31372         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
31373
31374 2010-04-04  Bruno Haible  <bruno@clisp.org>
31375
31376         ioctl: Fix C++ test error on mingw.
31377         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
31378         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
31379         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
31380
31381 2010-04-03  Bruno Haible  <bruno@clisp.org>
31382
31383         wcwidth: Fix C++ test error on mingw.
31384         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
31385         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
31386         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
31387
31388 2010-04-03  Bruno Haible  <bruno@clisp.org>
31389
31390         nanosleep: Fix C++ test error on mingw.
31391         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
31392         * lib/time.in.h (nanosleep): Use modern idiom.
31393         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
31394         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
31395         REPLACE_NANOSLEEP to 1.
31396         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
31397         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
31398
31399 2010-04-03  Bruno Haible  <bruno@clisp.org>
31400
31401         strptime: Fix C++ test error on mingw.
31402         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
31403         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
31404         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
31405         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
31406         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
31407         not REPLACE_STRPTIME.
31408         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
31409         REPLACE_STRPTIME.
31410
31411 2010-04-03  Bruno Haible  <bruno@clisp.org>
31412
31413         timegm: Fix C++ test error on mingw.
31414         * lib/time.in.h (timegm): Use modern idiom.
31415         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
31416         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
31417         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
31418         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
31419
31420 2010-04-03  Bruno Haible  <bruno@clisp.org>
31421
31422         timegm: Assume declaration if function exists.
31423         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31424         if it exists. Don't clobber ac_cv_func_timegm.
31425
31426 2010-04-03  Bruno Haible  <bruno@clisp.org>
31427
31428         time_r: Fix C++ test error on mingw.
31429         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31430         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31431         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31432         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31433         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31434
31435 2010-04-03  Bruno Haible  <bruno@clisp.org>
31436
31437         time_r: Minor updates.
31438         * modules/time_r (Description): Mention the provided functions.
31439         * lib/time_r.c: Don't include <string.h>.
31440         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
31441         * doc/posix-functions/localtime_r.texi: Likewise.
31442
31443 2010-04-03  Bruno Haible  <bruno@clisp.org>
31444
31445         time: Fix regression introduced on 2010-03-08.
31446         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
31447         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
31448
31449 2010-04-03  Jim Meyering  <meyering@redhat.com>
31450
31451         maint.mk: don't silently disable project-specific syntax-check rules
31452         * top/maint.mk (_prohibit_regexp): Define, to help people realize
31453         that they need to convert their project-specific syntax-check rules
31454         to use the new _sc_search_regexp.
31455
31456 2010-04-03  Bruno Haible  <bruno@clisp.org>
31457
31458         fchdir: Fix regression introduced on 2010-03-08.
31459         * lib/unistd.in.h (fchdir): Fix declaration.
31460         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
31461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31462         REPLACE_FCHDIR.
31463         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31464         REPLACE_FCHDIR.
31465
31466 2010-04-03  Bruno Haible  <bruno@clisp.org>
31467
31468         getpagesize: Fix C++ test error on mingw.
31469         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31470         system does not declare the function.
31471         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
31472         declared.
31473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31474         HAVE_DECL_GETPAGESIZE.
31475         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
31476
31477 2010-04-03  Bruno Haible  <bruno@clisp.org>
31478
31479         stdio: Make C++ tests work on mingw.
31480         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
31481         does not declare the function.
31482
31483 2010-04-03  Bruno Haible  <bruno@clisp.org>
31484
31485         ftello: Fix C++ test error on mingw.
31486         * lib/stdio.in.h (ftello): Use modern idiom.
31487         * lib/ftello.c (ftello): Renamed from rpl_ftello.
31488         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
31489         is missing and that it needs to be replaced.
31490         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
31491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
31492         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
31493
31494 2010-04-03  Bruno Haible  <bruno@clisp.org>
31495
31496         fseeko: Fix C++ test error on mingw.
31497         * lib/stdio.in.h (fseeko): Use modern idiom.
31498         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
31499         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
31500         is missing and that it needs to be replaced.
31501         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
31502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
31503         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
31504
31505 2010-04-03  Bruno Haible  <bruno@clisp.org>
31506
31507         mkstemp: Fix C++ test error on mingw.
31508         * lib/stdlib.in.h (mkstemp): Use modern idiom.
31509         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
31510         function is missing and that it needs to be replaced.
31511         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
31512         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
31513
31514 2010-04-03  Bruno Haible  <bruno@clisp.org>
31515
31516         stpncpy: Fix C++ test error on mingw.
31517         * lib/string.in.h (stpncpy): Use modern idiom.
31518         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31519         function is missing and that it needs to be replaced.
31520         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31521         REPLACE_STPNCPY.
31522         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31523
31524 2010-04-03  Bruno Haible  <bruno@clisp.org>
31525
31526         sys_stat: Fix C++ test error on mingw.
31527         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31528         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31529
31530 2010-04-03  Bruno Haible  <bruno@clisp.org>
31531
31532         pty: Update doc.
31533         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31534
31535 2010-04-03  Bruno Haible  <bruno@clisp.org>
31536
31537         unistd: Fix C++ test error on mingw.
31538         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31539
31540 2010-04-03  Bruno Haible  <bruno@clisp.org>
31541
31542         Update doc regarding mingw.
31543         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31544         * doc/glibc-functions/login_tty.texi: Likewise.
31545         * doc/glibc-functions/forkpty.texi: Likewise.
31546
31547 2010-04-03  Bruno Haible  <bruno@clisp.org>
31548
31549         stdlib: Avoid compilation failure of c-strtold on mingw.
31550         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31551
31552 2010-04-03  Bruno Haible  <bruno@clisp.org>
31553
31554         locale: Make C++ tests work on Cygwin and mingw.
31555         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31556         cannot provide the function.
31557         Reported by Simon Josefsson.
31558
31559 2010-04-03  Bruno Haible  <bruno@clisp.org>
31560
31561         localename: Port to MacOS X 10.6.
31562         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31563         memory layout of the locales in MacOS X 10.6 as well.
31564         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31565
31566 2010-04-02  Bruno Haible  <bruno@clisp.org>
31567
31568         gnulib-tool: Ensure that long-running tests are executed last.
31569         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31570         running tests after the one for the other tests.
31571
31572 2010-04-02  Bruno Haible  <bruno@clisp.org>
31573
31574         gnulib-tool: Ensure the tests in the main directory are executed first.
31575         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31576         start with the current directory.
31577
31578 2010-04-02  Bruno Haible  <bruno@clisp.org>
31579
31580         Tests for module 'havelib', moved here from GNU gettext.
31581         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31582         modifications.
31583         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31584         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31585         with modifications.
31586         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31587         modifications.
31588         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31589         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31590         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31591         with modifications.
31592         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31593         with modifications.
31594         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31595         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31596         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31597         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31598         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31599         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31600         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31601         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31602         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31603         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31604         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31605         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31606         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31607         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31608         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31609         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31610         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31611         with modifications.
31612         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31613         with modifications.
31614         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31615         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31616         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31617         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31618         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31619         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31620         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31621         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31622         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31623         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31624         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31625         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31626         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31627         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31628         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31629         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31630         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31631         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31632         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31633         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31634         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31635         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31636         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31637         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31638         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31639         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31640         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31641         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31642         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31643         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31644         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31645         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31646         * tests/havelib/rpathx/rpathx.c: New file, from
31647         gettext/autoconf-lib-link.
31648         * tests/havelib/rpathx/Makefile.am: New file, from
31649         gettext/autoconf-lib-link.
31650         * tests/havelib/rpathx/configure.ac: New file, from
31651         gettext/autoconf-lib-link with modifications.
31652         * tests/havelib/rpathy/rpathy.c: New file, from
31653         gettext/autoconf-lib-link.
31654         * tests/havelib/rpathy/Makefile.am: New file, from
31655         gettext/autoconf-lib-link.
31656         * tests/havelib/rpathy/configure.ac: New file, from
31657         gettext/autoconf-lib-link with modifications.
31658         * tests/havelib/rpathz/rpathz.c: New file, from
31659         gettext/autoconf-lib-link.
31660         * tests/havelib/rpathz/Makefile.am: New file, from
31661         gettext/autoconf-lib-link.
31662         * tests/havelib/rpathz/configure.ac: New file, from
31663         gettext/autoconf-lib-link with modifications.
31664         * tests/havelib/rpathlx/usex.c: New file, from
31665         gettext/autoconf-lib-link.
31666         * tests/havelib/rpathlx/Makefile.am: New file, from
31667         gettext/autoconf-lib-link.
31668         * tests/havelib/rpathlx/configure.ac: New file, from
31669         gettext/autoconf-lib-link with modifications.
31670         * tests/havelib/rpathly/usey.c: New file, from
31671         gettext/autoconf-lib-link.
31672         * tests/havelib/rpathly/Makefile.am: New file, from
31673         gettext/autoconf-lib-link.
31674         * tests/havelib/rpathly/configure.ac: New file, from
31675         gettext/autoconf-lib-link with modifications.
31676         * tests/havelib/rpathlz/usez.c: New file, from
31677         gettext/autoconf-lib-link.
31678         * tests/havelib/rpathlz/Makefile.am: New file, from
31679         gettext/autoconf-lib-link.
31680         * tests/havelib/rpathlz/configure.ac: New file, from
31681         gettext/autoconf-lib-link with modifications.
31682         * tests/havelib/rpathlyx/usey.c: New file, from
31683         gettext/autoconf-lib-link.
31684         * tests/havelib/rpathlyx/Makefile.am: New file, from
31685         gettext/autoconf-lib-link.
31686         * tests/havelib/rpathlyx/configure.ac: New file, from
31687         gettext/autoconf-lib-link with modifications.
31688         * tests/havelib/rpathlzyx/usez.c: New file, from
31689         gettext/autoconf-lib-link.
31690         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31691         gettext/autoconf-lib-link.
31692         * tests/havelib/rpathlzyx/configure.ac: New file, from
31693         gettext/autoconf-lib-link with modifications.
31694         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31695         with modifications.
31696
31697 2010-04-02  Bruno Haible  <bruno@clisp.org>
31698
31699         gnulib-tool: Create distributed built sources also for the tests.
31700         * gnulib-tool (func_create_testdir): Also generate distributed built
31701         sources in the tests directory.
31702
31703 2010-04-02  Bruno Haible  <bruno@clisp.org>
31704
31705         gnulib-tool: Obey user's environment variables.
31706         * gnulib-tool (func_create_testdir): When creating built sources,
31707         respect the environment variables for autoconf, automake, etc. given by
31708         the user.
31709
31710 2010-04-02  Bruno Haible  <bruno@clisp.org>
31711
31712         gnulib-tool: Provide the value of --m4-base to modules.
31713         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31714         of gl_m4_base.
31715
31716 2010-04-02  Eric Blake  <eblake@redhat.com>
31717
31718         maint.mk: fix some fallout
31719         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31720         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31721
31722 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31723
31724         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31725         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31726         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31727         (sc_cast_of_x_alloc_return_value): Likewise.
31728         (sc_cast_of_alloca_return_value): Likewise.
31729         (sc_space_tab): Likewise.
31730         (sc_prohibit_atoi_atof): Likewise.
31731         (sc_prohibit_magic_number_exit): Likewise.
31732         (sc_error_exit_success): Likewise.
31733         (sc_file_system): Likewise.
31734         (sc_prohibit_have_config_h): Likewise.
31735         (sc_require_config_h): Likewise.
31736         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31737         (sc_obsolete_symbols): Likewise.
31738         (sc_changelog): Likewise.
31739         (sc_program_name): Likewise.
31740         (sc_the_the): Likewise.
31741         (sc_trailing_blank): Likewise.
31742         (sc_two_space_separator_in_usage): Likewise.
31743         (sc_useless_cpp_parens): Likewise.
31744         (sc_GPL_version): Likewise.
31745         (sc_GFDL_version): Likewise.
31746         (sc_texinfo_acronym): Likewise.
31747         (sc_prohibit_cvs_keyword): Likewise.
31748         (sc_prohibit_stat_st_blocks): Likewise.
31749         (sc_prohibit_S_IS_definition): Likewise.
31750         (sc_redundant_const): Likewise.
31751         (sc_makefile_TAB_only_indentation): Likewise.
31752         (sc_m4_quote_check): Likewise.
31753         (sc_makefile_path_separator_check): Likewise.
31754         (sc_copyright_check): Likewise.
31755         (sc_Wundef_boolean): Likewise.
31756         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31757
31758         maint.mk: match 0 or more whitespace-before-function-call '('
31759         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31760         that have zero or two-and-more spaces between the function name
31761         and the open parenthesis.
31762         (sc_error_message_warn_fatal): Likewise.
31763         (sc_error_message_uppercase): Likewise.
31764         (sc_error_message_period): Likewise.
31765
31766 2010-03-31  Eric Blake  <eblake@redhat.com>
31767
31768         maint.mk: check for [ as well as test
31769         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31770         Based on a libvirt report by Matthias Bolte.
31771
31772         gnumakefile: don't squelch _version output
31773         * top/GNUmakefile (_version): Create one-shot dependency rather
31774         than using $(shell) when version must be regenerated.
31775         (_autoreconf): Run verbosely, by default.
31776
31777         sys_time: avoid compiler warnings
31778         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31779         unconditional, fixing regression from 2010-03-29.
31780         Reported by Simon Josefsson.
31781
31782 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31783
31784         maint.mk: s/_header_without_use/_sc_header_without_use/
31785         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31786         (sc_prohibit_assert_without_use): Use the new name.
31787         (sc_prohibit_close_stream_without_use): Likewise.
31788         (sc_prohibit_getopt_without_use): Likewise.
31789         (sc_prohibit_quotearg_without_use): Likewise.
31790         (sc_prohibit_quote_without_use): Likewise.
31791         (sc_prohibit_long_options_without_use): Likewise.
31792         (sc_prohibit_inttostr_without_use): Likewise.
31793         (sc_prohibit_ignore_value_without_use): Likewise.
31794         (sc_prohibit_error_without_use): Likewise.
31795         (sc_prohibit_xalloc_without_use): Likewise.
31796         (sc_prohibit_hash_without_use): Likewise.
31797         (sc_prohibit_hash_pjw_without_use): Likewise.
31798         (sc_prohibit_safe_read_without_use): Likewise.
31799         (sc_prohibit_argmatch_without_use): Likewise.
31800         (sc_prohibit_canonicalize_without_use): Likewise.
31801         (sc_prohibit_root_dev_ino_without_use): Likewise.
31802         (sc_prohibit_openat_without_use): Likewise.
31803         (sc_prohibit_c_ctype_without_use): Likewise.
31804         (sc_prohibit_signal_without_use): Likewise.
31805         (sc_prohibit_intprops_without_use): Likewise.
31806
31807 2010-03-30  Eric Blake  <eblake@redhat.com>
31808
31809         maint: improve module indicators
31810         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31811         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31812         columns, and avoid extra macro expansion.
31813
31814         fdopendir: work around FreeBSD bug
31815         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31816         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31817         * modules/dirent (Makefile.am): Substitute it.
31818         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31819         declaration.
31820         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31821         fix.
31822         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31823
31824 2010-03-29  Bruno Haible  <bruno@clisp.org>
31825
31826         Emit #pragma system_header after the inclusion guard, not before.
31827         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31828         guard that spans the entire file, not before. This enables an
31829         optimization in GCC's preprocessor.
31830         * lib/ctype.in.h: Likewise.
31831         * lib/dirent.in.h: Likewise.
31832         * lib/errno.in.h: Likewise.
31833         * lib/float.in.h: Likewise.
31834         * lib/getopt.in.h: Likewise.
31835         * lib/iconv.in.h: Likewise.
31836         * lib/langinfo.in.h: Likewise.
31837         * lib/locale.in.h: Likewise.
31838         * lib/math.in.h: Likewise.
31839         * lib/netdb.in.h: Likewise.
31840         * lib/netinet_in.in.h: Likewise.
31841         * lib/pty.in.h: Likewise.
31842         * lib/sched.in.h: Likewise.
31843         * lib/se-selinux.in.h: Likewise.
31844         * lib/search.in.h: Likewise.
31845         * lib/spawn.in.h: Likewise.
31846         * lib/stdarg.in.h: Likewise.
31847         * lib/stdint.in.h: Likewise.
31848         * lib/string.in.h: Likewise.
31849         * lib/strings.in.h: Likewise.
31850         * lib/sys_file.in.h: Likewise.
31851         * lib/sys_ioctl.in.h: Likewise.
31852         * lib/sys_time.in.h: Likewise.
31853         * lib/sys_times.in.h: Likewise.
31854         * lib/sys_utsname.in.h: Likewise.
31855         * lib/sys_wait.in.h: Likewise.
31856         * lib/sysexits.in.h: Likewise.
31857         * lib/wctype.in.h: Likewise.
31858
31859 2010-03-28  James Youngman  <jay@gnu.org>
31860
31861         save-cwd: don't leak a file descriptor when the caller execs.
31862         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31863         saved file descriptor.
31864         * modules/save-cwd (Depends-on): Depend on cloexec.
31865
31866 2010-03-29  Bruno Haible  <bruno@clisp.org>
31867
31868         Remove vestiges of fts-lgpl module.
31869         * lib/fts_.h: Assume GNULIB_FTS is 1.
31870         * lib/fts.c: Likewise.
31871         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31872
31873 2010-03-28  Bruno Haible  <bruno@clisp.org>
31874
31875         Fix definition of tests witness macro.
31876         * gnulib-tool (func_import): Fix definition of witness macro.
31877
31878 2010-03-28  Bruno Haible  <bruno@clisp.org>
31879
31880         Fix ioctl's protoype on glibc systems.
31881         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31882         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31883         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31884         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31885         signature. If not, arrange to replace the ioctl function.
31886         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31887         REPLACE_IOCTL.
31888         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31889         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31890         Reported by Ludovic Courtès <ludo@gnu.org>.
31891
31892 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31893
31894         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31895         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31896         made it so grep -r --include=GLOB* ... did not work.
31897
31898 2010-03-26  Jim Meyering  <meyering@redhat.com>
31899             Eric Blake  <eblake@redhat.com>
31900
31901         maint.mk: prohibit use of test's -o and -a operators
31902         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31903
31904 2010-03-28  Bruno Haible  <bruno@clisp.org>
31905
31906         Remove unused GNULIB_XYZ macro definitions.
31907         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31908         invocation.
31909
31910 2010-03-28  Bruno Haible  <bruno@clisp.org>
31911
31912         Mark privileged tests modules.
31913         * modules/idpriv-drop-tests (Status): New section.
31914         * modules/idpriv-droptemp-tests (Status): New section.
31915
31916 2010-03-28  Bruno Haible  <bruno@clisp.org>
31917
31918         Split C++ tests into separate tests modules.
31919         * modules/dirent-c++-tests: New file, extracted from
31920         modules/dirent-tests.
31921         * modules/dirent-tests: Depend on it.
31922         * modules/fcntl-h-c++-tests: New file, extracted from
31923         modules/fcntl-h-tests.
31924         * modules/fcntl-h-tests: Depend on it.
31925         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31926         * modules/glob-tests: Depend on it.
31927         * modules/iconv-h-c++-tests: New file, extracted from
31928         modules/iconv-h-tests.
31929         * modules/iconv-h-tests: Depend on it.
31930         * modules/langinfo-c++-tests: New file, extracted from
31931         modules/langinfo-tests.
31932         * modules/langinfo-tests: Depend on it.
31933         * modules/locale-c++-tests: New file, extracted from
31934         modules/locale-tests.
31935         * modules/locale-tests: Depend on it.
31936         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31937         * modules/math-tests: Depend on it.
31938         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31939         * modules/pty-tests: Depend on it.
31940         * modules/search-c++-tests: New file, extracted from
31941         modules/search-tests.
31942         * modules/search-tests: Depend on it.
31943         * modules/signal-c++-tests: New file, extracted from
31944         modules/signal-tests.
31945         * modules/signal-tests: Depend on it.
31946         * modules/spawn-c++-tests: New file, extracted from
31947         modules/spawn-tests.
31948         * modules/spawn-tests: Depend on it.
31949         * modules/stdio-c++-tests: New file, extracted from
31950         modules/stdio-tests.
31951         * modules/stdio-tests: Depend on it.
31952         * modules/stdlib-c++-tests: New file, extracted from
31953         modules/stdlib-tests.
31954         * modules/stdlib-tests: Depend on it.
31955         * modules/string-c++-tests: New file, extracted from
31956         modules/string-tests.
31957         * modules/string-tests: Depend on it.
31958         * modules/sys_ioctl-c++-tests: New file, extracted from
31959         modules/sys_ioctl-tests.
31960         * modules/sys_ioctl-tests: Depend on it.
31961         * modules/sys_select-c++-tests: New file, extracted from
31962         modules/sys_select-tests.
31963         * modules/sys_select-tests: Depend on it.
31964         * modules/sys_socket-c++-tests: New file, extracted from
31965         modules/sys_socket-tests.
31966         * modules/sys_socket-tests: Depend on it.
31967         * modules/sys_stat-c++-tests: New file, extracted from
31968         modules/sys_stat-tests.
31969         * modules/sys_stat-tests: Depend on it.
31970         * modules/sys_time-c++-tests: New file, extracted from
31971         modules/sys_time-tests.
31972         * modules/sys_time-tests: Depend on it.
31973         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31974         * modules/time-tests: Depend on it.
31975         * modules/unistd-c++-tests: New file, extracted from
31976         modules/unistd-tests.
31977         * modules/unistd-tests: Depend on it.
31978         * modules/wchar-c++-tests: New file, extracted from
31979         modules/wchar-tests.
31980         * modules/wchar-tests: Depend on it.
31981         * modules/wctype-c++-tests: New file, extracted from
31982         modules/wctype-tests.
31983         * modules/wctype-tests: Depend on it.
31984         Reported by Simon Josefsson.
31985
31986 2010-03-28  Bruno Haible  <bruno@clisp.org>
31987
31988         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31989         * gnulib-tool (func_exists_module): New function, extracted from
31990         func_verify_module.
31991         (func_verify_module): Use it.
31992         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31993         'foo' only if 'foo' exists.
31994         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31995         module.
31996
31997 2010-03-28  Bruno Haible  <bruno@clisp.org>
31998
31999         gnulib-tool: Add support for special categories of tests.
32000         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
32001         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
32002         (func_usage): Document them.
32003         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
32004         inc_unportable_tests, inc_all_tests): New variables.
32005         (func_acceptable): Consider these variables.
32006         (func_modules_transitive_closure): Make it work when the 'Status' field
32007         consists of multiple words.
32008         (func_import): Store and restore the values of inc_cxx_tests,
32009         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
32010         inc_all_tests in gnulib-comp.m4.
32011         (func_create_testdir): Set inc_all_tests to true.
32012         * doc/gnulib.texi (Extra tests modules): New section.
32013         Suggested by Jim Meyering.
32014
32015 2010-03-28  Bruno Haible  <bruno@clisp.org>
32016
32017         ansi-c++-opt: Allow turning off the C++ build by default.
32018         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
32019         gl_CXX_CHOICE_DEFAULT_NO is defined.
32020         Requested by Eric Blake.
32021
32022 2010-03-28  Bruno Haible  <bruno@clisp.org>
32023
32024         unistd: Avoid #define replacements in C++ mode.
32025         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32026         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32027         setsockopt, shutdown, select): In C++, attach a warning to the function
32028         if possible, rather than #defining the symbol to a dysfunctional alias.
32029         Reported by John W. Eaton <jwe@gnu.org>.
32030
32031 2010-03-28  Bruno Haible  <bruno@clisp.org>
32032
32033         Fix link errors on mingw.
32034         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32035         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32036         $(LIBSOCKET).
32037         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32038         $(LIBSOCKET).
32039
32040 2010-03-28  Bruno Haible  <bruno@clisp.org>
32041             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32042
32043         lib-ignore: Determine different options for different compilers.
32044         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32045         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32046         Add comments.
32047         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32048         * NEWS: Mention the change.
32049
32050 2010-03-27  Bruno Haible  <bruno@clisp.org>
32051
32052         Remove unused GNULIB_XYZ macro definitions.
32053         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32054         * modules/fseek (configure.ac): Likewise.
32055         * modules/ioctl (configure.ac): Likewise.
32056         * modules/open (configure.ac): Likewise.
32057         * modules/stdlib-safer (configure.ac): Likewise.
32058
32059 2010-03-27  Bruno Haible  <bruno@clisp.org>
32060
32061         Add a remark about certain modules.
32062         * modules/malloc (Comment): New section.
32063         * modules/realloc (Comment): Likewise.
32064         * modules/sigpipe (Comment): Likewise.
32065
32066 2010-03-27  Bruno Haible  <bruno@clisp.org>
32067
32068         Resolve conflict between the two kinds of module indicators.
32069         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32070         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32071         * modules/canonicalize (configure.ac): Invoke
32072         gl_MODULE_INDICATOR_FOR_TESTS.
32073         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32074         GNULIB_XYZ.
32075         * tests/test-dirent-c++.cc: Likewise.
32076         * tests/test-dirent-safer.c: Likewise.
32077         * tests/test-dup2.c: Likewise.
32078         * tests/test-fchdir.c: Likewise.
32079         * tests/test-fcntl-h-c++.cc: Likewise.
32080         * tests/test-getopt.c: Likewise.
32081         * tests/test-getopt.h: Likewise.
32082         * tests/test-langinfo-c++.cc: Likewise.
32083         * tests/test-locale-c++.cc: Likewise.
32084         * tests/test-math-c++.cc: Likewise.
32085         * tests/test-pty-c++.cc: Likewise.
32086         * tests/test-search-c++.cc: Likewise.
32087         * tests/test-signal-c++.cc: Likewise.
32088         * tests/test-spawn-c++.cc: Likewise.
32089         * tests/test-stdio-c++.cc: Likewise.
32090         * tests/test-stdlib-c++.cc: Likewise.
32091         * tests/test-string-c++.cc: Likewise.
32092         * tests/test-sys_ioctl-c++.cc: Likewise.
32093         * tests/test-sys_select-c++.cc: Likewise.
32094         * tests/test-sys_socket-c++.cc: Likewise.
32095         * tests/test-sys_stat-c++.cc: Likewise.
32096         * tests/test-sys_time-c++.cc: Likewise.
32097         * tests/test-time-c++.cc: Likewise.
32098         * tests/test-unistd-c++.cc: Likewise.
32099         * tests/test-wchar-c++.cc: Likewise.
32100         * tests/uninorm/test-u8-nfc.c: Likewise.
32101         * tests/uninorm/test-u8-nfd.c: Likewise.
32102         * tests/uninorm/test-u8-nfkc.c: Likewise.
32103         * tests/uninorm/test-u8-nfkd.c: Likewise.
32104         * tests/uninorm/test-u16-nfc.c: Likewise.
32105         * tests/uninorm/test-u16-nfd.c: Likewise.
32106         * tests/uninorm/test-u16-nfkc.c: Likewise.
32107         * tests/uninorm/test-u16-nfkd.c: Likewise.
32108         * tests/uninorm/test-u32-nfc.c: Likewise.
32109         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32110         * tests/uninorm/test-u32-nfd.c: Likewise.
32111         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32112         * tests/uninorm/test-u32-nfkc.c: Likewise.
32113         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32114         * tests/uninorm/test-u32-nfkd.c: Likewise.
32115         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32116         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32117
32118 2010-03-27  Bruno Haible  <bruno@clisp.org>
32119
32120         Distinguish two kinds of module indicators.
32121         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32122         gl_MODULE_INDICATOR.
32123         (gl_MODULE_INDICATOR): New macro.
32124         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32125         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32126         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32127         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32128         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32129         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32130         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32131         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32132         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32133         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32134         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32135         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32136         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32137         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32138         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32139         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32140         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32141         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32142         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32143         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32144         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32145         * modules/cloexec (configure.ac): Likewise.
32146         * modules/getopt-gnu (configure.ac): Likewise.
32147         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32148         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32149         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32150         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32151
32152 2010-03-27  Bruno Haible  <bruno@clisp.org>
32153
32154         New module description field 'Comment'.
32155         * gnulib-tool: New option --extract-comment.
32156         (func_usage): Document it.
32157         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32158         (func_get_comment): New function.
32159         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32160
32161 2010-03-27  Bruno Haible  <bruno@clisp.org>
32162
32163         Addendum to 2010-02-07 commit.
32164         * gnulib-tool (func_usage): Document --extract-applicability option.
32165
32166 2010-03-27  Bruno Haible  <bruno@clisp.org>
32167
32168         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32169         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32170         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32171         rather than link errors.
32172
32173 2010-03-27  Bruno Haible  <bruno@clisp.org>
32174
32175         Avoid side effects from tests-related modules on the compilation of lib.
32176         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32177         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32178         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32179         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32180         macro.
32181         (func_import): Define a witness macro. Assign it a value that depends
32182         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32183         tests-related modules.
32184         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32185         Reported by Jim Meyering.
32186
32187 2010-03-27  Bruno Haible  <bruno@clisp.org>
32188
32189         Factorize common .m4 code.
32190         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32191         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32192         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32193         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32194         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32195         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32196         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32197         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32198         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32199         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32200         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32201         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32202         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32203         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32204         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32205         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32206         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32207         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32208         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32209         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32210         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32211         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32212         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32213         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32214         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32215         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32216         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32217         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32218         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32219         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32220         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32221         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32222
32223 2010-03-27  Bruno Haible  <bruno@clisp.org>
32224
32225         Fix a compilation error on Cygwin with g++ >= 4.3.
32226         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32227         if it is undefined or if we alias it to chmod.
32228         (lstat): Don't warn about the use of this function if it is undefined
32229         or if we alias it to stat.
32230         Reported by Simon Josefsson.
32231
32232 2010-03-27  Bruno Haible  <bruno@clisp.org>
32233
32234         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32235         * modules/getlogin (configure.ac): Update.
32236
32237         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32238         * modules/getlogin_r (configure.ac): Update.
32239
32240         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32241         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32242         * modules/inet_ntop (configure.ac): Update.
32243
32244         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32245         * modules/inet_pton (configure.ac): Update.
32246
32247         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32248         * modules/mbslen (configure.ac): Update.
32249
32250         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32251         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32252         * modules/forkpty (configure.ac): Update.
32253         * modules/openpty (configure.ac): Update.
32254
32255 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32256
32257         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32258         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32259
32260 2010-03-25  Eric Blake  <eblake@redhat.com>
32261
32262         maint: use pragma consistently across replacement headers
32263         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32264         * lib/dirent.in.h (system_header): Likewise.
32265         * lib/errno.in.h (system_header): Likewise.
32266         * lib/float.in.h (system_header): Likewise.
32267         * lib/getopt.in.h (system_header): Likewise.
32268         * lib/iconv.in.h (system_header): Likewise.
32269         * lib/inttypes.in.h (system_header): Likewise.
32270         * lib/langinfo.in.h (system_header): Likewise.
32271         * lib/locale.in.h (system_header): Likewise.
32272         * lib/math.in.h (system_header): Likewise.
32273         * lib/netdb.in.h (system_header): Likewise.
32274         * lib/netinet_in.in.h (system_header): Likewise.
32275         * lib/pty.in.h (system_header): Likewise.
32276         * lib/sched.in.h (system_header): Likewise.
32277         * lib/se-selinux.in.h (system_header): Likewise.
32278         * lib/search.in.h (system_header): Likewise.
32279         * lib/spawn.in.h (system_header): Likewise.
32280         * lib/stdarg.in.h (system_header): Likewise.
32281         * lib/stdint.in.h (system_header): Likewise.
32282         * lib/string.in.h (system_header): Likewise.
32283         * lib/strings.in.h (system_header): Likewise.
32284         * lib/sys_file.in.h (system_header): Likewise.
32285         * lib/sys_ioctl.in.h (system_header): Likewise.
32286         * lib/sys_socket.in.h (system_header): Likewise.
32287         * lib/sys_times.in.h (system_header): Likewise.
32288         * lib/sys_utsname.in.h (system_header): Likewise.
32289         * lib/sys_wait.in.h (system_header): Likewise.
32290         * lib/sysexits.in.h (system_header): Likewise.
32291         * lib/unistd.in.h (system_header): Likewise.
32292         * lib/wctype.in.h (system_header): Likewise.
32293
32294         arpa/inet: fix mingw compilation warning
32295         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
32296         Reported by Matthew Bolte.
32297
32298 2010-03-25  Bruno Haible  <bruno@clisp.org>
32299
32300         Avoid collision between gnulib wrapper and libintl wrapper.
32301         * lib/printf.c (printf): Don't define if a printf wrapper is already
32302         defined in intl/printf.c.
32303         Reported by Michel Boaventura <michel@michelboaventura.com>.
32304
32305 2010-03-25  Bruno Haible  <bruno@clisp.org>
32306
32307         Use ANSI C.
32308         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32309
32310 2010-03-25  Bruno Haible  <bruno@clisp.org>
32311
32312         Minor formatting changes.
32313         * lib/acosl.c: Insert space before function argument list.
32314         * lib/argz.c: Likewise.
32315         * lib/asinl.c: Likewise.
32316         * lib/expl.c: Likewise.
32317         * lib/gen-uni-tables.c: Likewise.
32318         * lib/gettext.h: Likewise.
32319         * lib/glthread/lock.h: Likewise.
32320         * lib/tanl.c: Likewise.
32321         * lib/uniname/uniname.c: Likewise.
32322         * tests/test-idpriv-drop.c: Likewise.
32323         * tests/test-idpriv-droptemp.c: Likewise.
32324         * tests/test-lock.c: Likewise.
32325         * tests/test-tls.c: Likewise.
32326         * lib/argp-help.c: Insert space before function-like macro argument
32327         list.
32328         * lib/memcmp.c: Likewise.
32329         * tests/test-base64.c: Likewise.
32330         * lib/localename.c: Insert space before sizeof's argument list.
32331         * lib/safe-alloc.h: Likewise.
32332         * lib/file-set.h: Insert space before macro argument list.
32333         * tests/test-argp.c: Likewise.
32334         * lib/argp-namefrob.h: Insert space before function parameter list.
32335         * lib/getaddrinfo.c: Likewise.
32336         * lib/netdb.in.h: Likewise.
32337         * lib/parse-duration.h: Likewise.
32338         * lib/parse-duration.c: Likewise.
32339         * lib/poll.c: Likewise.
32340         * lib/select.c: Likewise.
32341         * lib/trim.h: Likewise.
32342         * tests/test-usleep.c: Likewise.
32343         * lib/ldexpl.c: Insert space before function parameter list and before
32344         function argument list.
32345         * lib/logl.c: Likewise.
32346         * lib/sqrtl.c: Likewise.
32347         * lib/trim.c: Likewise.
32348         * lib/cosl.c: Use GNU style indentation. Insert space before function
32349         argument list.
32350         * lib/sinl.c: Likewise.
32351         * lib/tsearch.c: Insert space after 'for'.
32352         Reported by Jim Meyering.
32353
32354 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32355
32356         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32357         config header before grepping, as it's not present before
32358         autoreconf/configure are run.  Reported by Simon Josefsson.
32359
32360 2010-03-23  Bruno Haible  <bruno@clisp.org>
32361
32362         pt_chown: Make it work with automake < 1.11.
32363         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
32364         Reported by Simon Josefsson.
32365
32366 2010-03-23  Bruno Haible  <bruno@clisp.org>
32367
32368         pt_chown: Don't depend on GPLed modules.
32369         * lib/pt_chown.c: Don't include idpriv.h.
32370         (main): Don't drop privileges.
32371         * modules/pt_chown (Depends-on): Remove idpriv-drop.
32372         Reported by Simon Josefsson.
32373
32374 2010-03-24  Simon Josefsson  <simon@josefsson.org>
32375
32376         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
32377         suggestions from karl@freefriends.org (Karl Berry).
32378
32379 2010-03-22  Eric Blake  <eblake@redhat.com>
32380
32381         gethostname: further tweaks
32382         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
32383         are overriding gethostname.
32384         Suggested by Bruno Haible.
32385
32386 2010-03-21  Bruno Haible  <bruno@clisp.org>
32387
32388         Fix comments.
32389         * lib/forkpty.c (rpl_forkpty): Fix comment.
32390         * lib/openpty.c (rpl_openpty): Likewise.
32391         Reported by Eric Blake.
32392
32393 2010-03-22  Eric Blake  <eblake@redhat.com>
32394
32395         gethostname: fix build on mingw
32396         * lib/unistd.in.h (includes): Work around fact that mingw
32397         <winsock2.h> re-includes <unistd.h>, by avoiding any
32398         redeclarations if we are being included by <winsock2.h>.
32399         Reported by Matthias Bolte.
32400
32401 2010-03-21  Bruno Haible  <bruno@clisp.org>
32402
32403         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32404         * lib/forkpty.c (forkpty): New replacement function, from glibc with
32405         modifications.
32406         * lib/pty.in.h (forkpty): Update declaration. Add comments.
32407         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
32408         provide the replacement.
32409         * modules/forkpty (Depends-on): Add openpty, login_tty.
32410         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
32411         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
32412         * doc/glibc-functions/forkpty.texi: More supported platforms.
32413         * config/srclist.txt: Add forkpty.c (commented).
32414
32415 2010-03-21  Bruno Haible  <bruno@clisp.org>
32416
32417         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
32418         (Makefile.am): Verify that PTY_LIB is defined.
32419
32420         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32421
32422 2010-03-21  Bruno Haible  <bruno@clisp.org>
32423
32424         Tests for module 'login_tty'.
32425         * modules/login_tty-tests: New file.
32426         * tests/test-login_tty.c: New file.
32427
32428         New module 'login_tty'.
32429         * lib/login_tty.c: New file.
32430         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32431         * modules/login_tty: New file.
32432         * doc/glibc-functions/login_tty.texi: Mention the new module.
32433
32434 2010-03-21  Bruno Haible  <bruno@clisp.org>
32435
32436         login_tty: Documentation.
32437         * doc/glibc-functions/login_tty.texi: New file.
32438         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32439
32440 2010-03-21  Bruno Haible  <bruno@clisp.org>
32441
32442         pty: Consistent macro naming.
32443         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
32444         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
32445         * modules/pty (configure.ac): Update.
32446
32447 2010-03-21  Bruno Haible  <bruno@clisp.org>
32448
32449         Tests for openpty: Make stricter.
32450         * tests/test-openpty.c (main): Add test of canonical processing and
32451         erase.
32452         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
32453
32454         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32455         * lib/openpty.c (openpty): New replacement function.
32456         * lib/pty.in.h: Include <termios.h>.
32457         (openpty): Update declaration. Add comments.
32458         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
32459         is not declared, arrange to provide the replacement. Check for _getpty
32460         and posix_openpt.
32461         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32462         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32463         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32464         * modules/pty-tests (test_pty_c___LDADD): New variable.
32465         * doc/glibc-functions/openpty.texi: More supported platforms.
32466
32467 2010-03-21  Bruno Haible  <bruno@clisp.org>
32468
32469         setenv: Tweaks.
32470         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32471         the test program.
32472         * doc/posix-functions/setenv.texi: Update platforms list.
32473
32474 2010-03-21  Bruno Haible  <bruno@clisp.org>
32475
32476         New module 'unlockpt'.
32477         * lib/unlockpt.c: New file, from glibc with modifications.
32478         * m4/unlockpt.m4: New file.
32479         * modules/unlockpt: New file.
32480         * lib/stdlib.in.h (unlockpt): New declaration.
32481         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
32482         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32483         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
32484         HAVE_UNLOCKPT.
32485         * doc/posix-functions/unlockpt.texi: Mention the new module.
32486         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
32487         * config/srclist.txt: Add unlockpt.c (commented).
32488
32489 2010-03-21  Jim Meyering  <meyering@redhat.com>
32490
32491         maint.mk: prohibit inclusion of "intprops.h" without use
32492         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
32493
32494 2010-03-21  Bruno Haible  <bruno@clisp.org>
32495
32496         New module 'grantpt'.
32497         * lib/grantpt.c: New file, from glibc with modifications.
32498         * m4/grantpt.m4: New file.
32499         * modules/grantpt: New file.
32500         * lib/stdlib.in.h (grantpt): New declaration.
32501         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
32502         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
32503         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
32504         HAVE_GRANTPT.
32505         * doc/posix-functions/grantpt.texi: Mention the new module.
32506         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
32507         * config/srclist.txt: Add grantpt.c (commented).
32508
32509 2010-03-21  Bruno Haible  <bruno@clisp.org>
32510
32511         New module 'pt_chown'.
32512         * lib/pt_chown.c: New file, from glibc with modifications.
32513         * lib/pty-private.h: New file, from glibc with modifications.
32514         * modules/pt_chown: New file.
32515         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
32516
32517 2010-03-21  Bruno Haible  <bruno@clisp.org>
32518
32519         Tests for module 'ptsname'.
32520         * modules/ptsname-tests: New file.
32521         * tests/test-ptsname.c: New file.
32522
32523         New module 'ptsname'.
32524         * lib/ptsname.c: New file, from glibc with modifications.
32525         * m4/ptsname.m4: New file.
32526         * modules/ptsname: New file.
32527         * lib/stdlib.in.h (ptsname): New declaration.
32528         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32529         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32530         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32531         HAVE_PTSNAME.
32532         * doc/posix-functions/ptsname.texi: Mention the new module.
32533         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32534         * config/srclist.txt: Add ptsname.c (commented).
32535
32536 2010-03-21  Bruno Haible  <bruno@clisp.org>
32537
32538         Tests for module 'ttyname_r'.
32539         * modules/ttyname_r-tests: New file.
32540         * tests/test-ttyname_r.c: New file.
32541
32542         New module 'ttyname_r'.
32543         * lib/ttyname_r.c: New file.
32544         * m4/ttyname_r.m4: New file.
32545         * modules/ttyname_r: New file.
32546         * lib/unistd.in.h (ttyname_r): New declaration.
32547         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32548         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32549         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32550         HAVE_TTYNAME_R.
32551         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32552         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32553
32554 2010-03-20  Bruno Haible  <bruno@clisp.org>
32555
32556         signal: Undefine macro definitions in C++ mode.
32557         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32558         sigfillset): Undefine macro definitions from the system header in C++
32559         mode.
32560         Reported by John W. Eaton <jwe@gnu.org>.
32561
32562 2010-03-20  Bruno Haible  <bruno@clisp.org>
32563
32564         Ensure no #include statements inside extern "C" { ... }.
32565         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32566         contain #include statements.
32567         * lib/time.in.h: Likewise.
32568
32569 2010-03-20  Bruno Haible  <bruno@clisp.org>
32570
32571         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32572         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32573         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32574         Reported by John W. Eaton <jwe@gnu.org>.
32575
32576 2010-03-20  Bruno Haible  <bruno@clisp.org>
32577
32578         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32579         Reported by Jim Meyering.
32580
32581 2010-03-20  Bruno Haible  <bruno@clisp.org>
32582
32583         pipe: Set errno upon failure.
32584         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32585         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32586         errno value in error message.
32587
32588 2010-03-20  Bruno Haible  <bruno@clisp.org>
32589             Jim Meyering  <meyering@redhat.com>
32590
32591         lchown: Avoid "unused variable" warning.
32592         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32593
32594 2010-03-20  Bruno Haible  <bruno@clisp.org>
32595
32596         Work around unlink() bug on MacOS X 10.5.6.
32597         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32598         attempting to unlink a parent directory.
32599         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32600         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32601         activate for the replacement function.
32602         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32603
32604 2010-03-20  Bruno Haible  <bruno@clisp.org>
32605
32606         Fix link errors on Solaris 8.
32607         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32608         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32609
32610 2010-03-19  Jim Meyering  <meyering@redhat.com>
32611
32612         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32613         The _LIBC implementation of build_range_exp correctly honors the
32614         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32615         However, the non-_LIBC implementation would ignore that syntax-bit
32616         flag and return REG_ERANGE unconditionally.
32617         This change makes it honor that flag.
32618         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32619         Make two pointer parameters "const".
32620         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32621         (parse_bracket_exp): Update caller.
32622
32623         regex.m4: correct the reversed range endpoint ([b-a]) test
32624         * m4/regex.m4: When requiring that [b-a] evoke failure,
32625         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32626         test pass once again for x86-based systems.
32627
32628 2010-03-19  Bruno Haible  <bruno@clisp.org>
32629
32630         scandir: Fix link error on Solaris 8.
32631         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32632         macros.
32633
32634 2010-03-19  Bruno Haible  <bruno@clisp.org>
32635
32636         getusershell: Fix documentation.
32637         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32638         module.
32639         * doc/glibc-functions/setusershell.texi: Likewise.
32640
32641         getusershell: Provide declaration, missing on Solaris 9.
32642         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32643         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32644         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32645         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32647         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32648         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32649         HAVE_GETUSERSHELL.
32650         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32651
32652 2010-03-19  Bruno Haible  <bruno@clisp.org>
32653
32654         wctype: Provide iswblank function.
32655         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32656         exists and is fine.
32657         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32658         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32659         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32660         * doc/posix-functions/iswblank.texi: Update.
32661
32662 2010-03-19  Bruno Haible  <bruno@clisp.org>
32663
32664         Tests of module 'pty' in C++ mode.
32665         * modules/pty-tests: New file.
32666         * tests/test-pty-c++.cc: New file.
32667         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32668
32669 2010-03-19  Eric Blake  <eblake@redhat.com>
32670
32671         logb: fix documentation
32672         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32673         1.5 declaration bug.
32674
32675         forkpty, openpty: prefer glibc's const-safe prototype
32676         * lib/forkpty.c (rpl_forkpty): New file.
32677         * lib/openpty.c (rpl_openpty): Likewise.
32678         * modules/forkpty (Files): Distribute it.
32679         * modules/openpty (Files): Likewise.
32680         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32681         check...
32682         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32683         replacement for for non-const BSD signature.
32684         * modules/pty (Makefile.am): Substitute witnesses.
32685         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32686         * tests/test-forkpty.c: Update signature check.
32687         * tests/test-openpty.c: Likewise.
32688         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32689         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32690
32691         forkpty, openpty: split functions into new modules
32692         * modules/pty (Makefile.am): Substitute new witnesses.
32693         (Libraries): Move library detection...
32694         * modules/forkpty: ...into new module.
32695         * modules/openpty: Another new module.
32696         * modules/pty-tests: Rename and split...
32697         * modules/forkpty-tests: ...to this...
32698         * modules/openpty-tests: ...and this.
32699         * tests/test-pty.c: Rename and split...
32700         * tests/test-forkpty.c: ...to this...
32701         * tests/test-openpty.c: ...and this.
32702         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32703         (gl_PTY): Split library searching...
32704         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32705         (gl_FORKPTY, gl_OPENPTY): New macros.
32706         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32707         * NEWS: Mention the split.
32708         * MODULES.html.sh (Misc): Document the modules.
32709         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32710         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32711
32712         pty: improve replacement header
32713         * lib/pty.in.h: New file.
32714         * modules/pty (Files): Ship it.
32715         (Makefile.am): Always build replacement.
32716         * m4/pty.m4: Rename...
32717         * m4/pty_h.m4: ...to this.
32718         (gl_PTY): Modernize setting of witness macros; update check of
32719         forkpty to take proper advantage of cache.
32720         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32721
32722         getopt: avoid compiler warning
32723         * lib/getopt.c (attribute_hidden): Remove unused macro.
32724
32725 2010-03-18  Bruno Haible  <bruno@clisp.org>
32726
32727         Fix link errors on Solaris 8.
32728         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32729         * modules/search-tests (test_search_c___LDADD): Likewise.
32730         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32731         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32732         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32733         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32734         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32735         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32736         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32737
32738 2010-03-18  Bruno Haible  <bruno@clisp.org>
32739
32740         Fix bug introduced on 2010-03-14.
32741         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32742         (gl_SPAWN_H): Require it.
32743         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32744         Reported by Simon Josefsson.
32745
32746 2010-03-18  Bruno Haible  <bruno@clisp.org>
32747
32748         Fix typo introduced on 2009-12-31.
32749         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32750         posix_spawn_file_actions_adddup2.
32751
32752 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32753         and Eric Blake  <eblake@redhat.com>
32754
32755         test-vc-list-files-git: make more robust
32756         * tests/test-vc-list-files-git.sh: Unset problematic environment
32757         variables.  Chain commands together.
32758
32759 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32760
32761         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32762         `AC_CHECK_DECL' invocation.
32763
32764 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32765
32766         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32767         appears before executable statements. Suggested by Petr Sumbera
32768         <Petr.Sumbera@Sun.COM>.
32769
32770 2010-03-14  Bruno Haible  <bruno@clisp.org>
32771
32772         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32773         portability problems. Instead use a simpler test.
32774         (main): Check that invalid arguments are rejected only on Linux.
32775
32776 2010-03-14  Bruno Haible  <bruno@clisp.org>
32777
32778         Fix bug introduced on 2009-12-31.
32779         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32780         gl_PREREQ_SYS_H_WINSOCK2 always.
32781         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32782         SYS_SOCKET_H variable.
32783         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32784         Update comments.
32785         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32786         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32787         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32788         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32789         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32790
32791 2010-03-14  Bruno Haible  <bruno@clisp.org>
32792
32793         Fix values returned by sinl, cosl.
32794         * lib/trigl.h: Add specification comments.
32795         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32796         that combines the values from the precomputed table with the values of
32797         the Chebyshev polynomials.
32798
32799 2010-03-14  Bruno Haible  <bruno@clisp.org>
32800
32801         Fix compilation error when modules 'posix_spawn[p]' are not used.
32802         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32803         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32804
32805 2010-03-14  Bruno Haible  <bruno@clisp.org>
32806
32807         Fix compilation error on mingw when module 'time_r' is not used.
32808         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32809         is 1.
32810         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32811         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32812         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32813         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32814
32815 2010-03-14  Bruno Haible  <bruno@clisp.org>
32816
32817         Fix compilation error with Sun C.
32818         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32819         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32820         instead of GCC specific ULONG_LONG_MAX.
32821         * lib/xstrtoll.c: Likewise.
32822         * lib/xstrtoull.c: Likewise.
32823
32824 2010-03-13  Bruno Haible  <bruno@clisp.org>
32825
32826         Allow the user to disable C++ code and tests.
32827         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32828         (gl_PROG_ANSI_CXX): Require it.
32829
32830 2010-03-13  Bruno Haible  <bruno@clisp.org>
32831
32832         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32833         cases.
32834
32835 2010-03-13  Bruno Haible  <bruno@clisp.org>
32836
32837         Test that gnulib does not break the standard C++ headers.
32838         * tests/test-locale-c++2.cc: New file.
32839         * modules/locale-tests (Files): Add it.
32840         (Makefile.am): Compile it for test-locale-c++.
32841         * tests/test-math-c++2.cc: New file.
32842         * modules/math-tests (Files): Add it.
32843         (Makefile.am): Compile it for test-math-c++.
32844         * tests/test-signal-c++2.cc: New file.
32845         * modules/signal-tests (Files): Add it.
32846         (Makefile.am): Compile it for test-signal-c++.
32847         * tests/test-stdio-c++2.cc: New file.
32848         * modules/stdio-tests (Files): Add it.
32849         (Makefile.am): Compile it for test-stdio-c++.
32850         * tests/test-stdlib-c++2.cc: New file.
32851         * modules/stdlib-tests (Files): Add it.
32852         (Makefile.am): Compile it for test-stdlib-c++.
32853         * tests/test-string-c++2.cc: New file.
32854         * modules/string-tests (Files): Add it.
32855         (Makefile.am): Compile it for test-string-c++.
32856         * tests/test-time-c++2.cc: New file.
32857         * modules/time-tests (Files): Add it.
32858         (Makefile.am): Compile it for test-time-c++.
32859         Reported by John W. Eaton <jwe@gnu.org>.
32860
32861 2010-03-13  Bruno Haible  <bruno@clisp.org>
32862
32863         * gnulib-tool (func_usage): Clarify which options are available for
32864         --create-testdir and --create-megatestdir.
32865
32866 2010-03-13  Bruno Haible  <bruno@clisp.org>
32867
32868         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32869         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32870         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32871         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32872         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32873         when appropriate.
32874         Reported by Jim Meyering.
32875
32876 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32877
32878         * gnulib-tool (func_import): Explain origin of code.
32879
32880 2010-03-12  Bruno Haible  <bruno@clisp.org>
32881
32882         Fix problem with automake's definition of CXXLINK.
32883         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32884         Reported by Simon Josefsson and Ludovic Courtès.
32885
32886 2010-03-12  Bruno Haible  <bruno@clisp.org>
32887
32888         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32889         stable releases.
32890
32891 2010-03-11  Bruno Haible  <bruno@clisp.org>
32892
32893         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32894         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32895         whether the system provides one variant or multiple variants of the
32896         function.
32897         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32898         C++ compilers.
32899         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32900         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32901         Reported by Jim Meyering.
32902
32903 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32904
32905         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32906
32907 2010-03-08  Bruno Haible  <bruno@clisp.org>
32908
32909         gnulib-tool: Add support for --libtool in --create-testdir.
32910         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32911         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32912
32913 2010-03-08  Eric Blake  <eblake@redhat.com>
32914
32915         gnulib-tool.texi: mention possibility of git submodule
32916         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32917         submodules.
32918         * doc/.gitignore: Ignore another generated file.
32919
32920 2010-03-08  Karl Berry  <karl@gnu.org>
32921
32922         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32923         of committing gnulib files while skipping others.
32924
32925 2010-03-07  Bruno Haible  <bruno@clisp.org>
32926
32927         Tests of module 'wctype' in C++ mode.
32928         * tests/test-wctype-c++.cc: New file.
32929         * modules/wctype-tests (Files): Add it and tests/signature.h.
32930         (Depends-on): Add ansi-c++-opt.
32931         (Makefile.am): Arrange to compile and run test-wctype-c++.
32932
32933         Tests of module 'wchar' in C++ mode.
32934         * tests/test-wchar-c++.cc: New file.
32935         * modules/wchar-tests (Files): Add it and tests/signature.h.
32936         (Depends-on): Add ansi-c++-opt.
32937         (Makefile.am): Arrange to compile and run test-wchar-c++.
32938         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32939         gl_MODULE_INDICATOR.
32940
32941         Tests of module 'unistd' in C++ mode.
32942         * tests/test-unistd-c++.cc: New file.
32943         * modules/unistd-tests (Files): Add it and tests/signature.h.
32944         (Depends-on): Add ansi-c++-opt.
32945         (Makefile.am): Arrange to compile and run test-unistd-c++.
32946         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32947         gl_MODULE_INDICATOR.
32948
32949         Tests of module 'time' in C++ mode.
32950         * tests/test-time-c++.cc: New file.
32951         * modules/time-tests (Files): Add it and tests/signature.h.
32952         (Depends-on): Add ansi-c++-opt.
32953         (Makefile.am): Arrange to compile and run test-time-c++.
32954         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32955
32956         Tests of module 'sys_time' in C++ mode.
32957         * tests/test-sys_time-c++.cc: New file.
32958         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32959         (Depends-on): Add ansi-c++-opt.
32960         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32961         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32962         gl_MODULE_INDICATOR.
32963
32964         Tests of module 'sys_stat' in C++ mode.
32965         * tests/test-sys_stat-c++.cc: New file.
32966         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32967         (Depends-on): Add ansi-c++-opt.
32968         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32969         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32970         gl_MODULE_INDICATOR.
32971
32972         Tests of module 'sys_socket' in C++ mode.
32973         * tests/test-sys_socket-c++.cc: New file.
32974         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32975         (Depends-on): Add ansi-c++-opt.
32976         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32977         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32978         gl_MODULE_INDICATOR.
32979
32980         Tests of module 'sys_select' in C++ mode.
32981         * tests/test-sys_select-c++.cc: New file.
32982         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32983         (Depends-on): Add ansi-c++-opt.
32984         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32985         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32986         gl_MODULE_INDICATOR.
32987
32988         Tests of module 'sys_ioctl' in C++ mode.
32989         * tests/test-sys_ioctl-c++.cc: New file.
32990         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32991         (Depends-on): Add ansi-c++-opt.
32992         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32993         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32994         gl_MODULE_INDICATOR.
32995
32996         Tests of module 'string' in C++ mode.
32997         * tests/test-string-c++.cc: New file.
32998         * modules/string-tests (Files): Add it and tests/signature.h.
32999         (Depends-on): Add ansi-c++-opt.
33000         (Makefile.am): Arrange to compile and run test-string-c++.
33001         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33002         gl_MODULE_INDICATOR.
33003
33004         Tests of module 'stdlib' in C++ mode.
33005         * tests/test-stdlib-c++.cc: New file.
33006         * modules/stdlib-tests (Files): Add it and tests/signature.h.
33007         (Depends-on): Add ansi-c++-opt.
33008         (Makefile.am): Arrange to compile and run test-stdlib-c++.
33009         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
33010         gl_MODULE_INDICATOR.
33011
33012         Tests of module 'stdio' in C++ mode.
33013         * tests/test-stdio-c++.cc: New file.
33014         * modules/stdio-tests (Files): Add it and tests/signature.h.
33015         (Depends-on): Add ansi-c++-opt.
33016         (Makefile.am): Arrange to compile and run test-stdio-c++.
33017         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
33018         gl_MODULE_INDICATOR.
33019
33020         Tests of module 'spawn' in C++ mode.
33021         * tests/test-spawn-c++.cc: New file.
33022         * modules/spawn-tests (Files): Add it and tests/signature.h.
33023         (Depends-on): Add ansi-c++-opt.
33024         (Makefile.am): Arrange to compile and run test-spawn-c++.
33025         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
33026         gl_MODULE_INDICATOR.
33027
33028         Tests of module 'signal' in C++ mode.
33029         * tests/test-signal-c++.cc: New file.
33030         * modules/signal-tests (Files): Add it and tests/signature.h.
33031         (Depends-on): Add ansi-c++-opt.
33032         (Makefile.am): Arrange to compile and run test-signal-c++.
33033         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
33034         gl_MODULE_INDICATOR.
33035
33036         Tests of module 'search' in C++ mode.
33037         * tests/test-search-c++.cc: New file.
33038         * modules/search-tests (Files): Add it and tests/signature.h.
33039         (Depends-on): Add ansi-c++-opt.
33040         (Makefile.am): Arrange to compile and run test-search-c++.
33041         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33042         gl_MODULE_INDICATOR.
33043
33044         Tests of module 'math' in C++ mode.
33045         * tests/test-math-c++.cc: New file.
33046         * modules/math-tests (Files): Add it and tests/signature.h.
33047         (Depends-on): Add ansi-c++-opt.
33048         (Makefile.am): Arrange to compile and run test-math-c++.
33049         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33050
33051         Tests of module 'locale' in C++ mode.
33052         * tests/test-locale-c++.cc: New file.
33053         * modules/locale-tests (Files): Add it and tests/signature.h.
33054         (Depends-on): Add ansi-c++-opt.
33055         (Makefile.am): Arrange to compile and run test-locale-c++.
33056         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33057         gl_MODULE_INDICATOR.
33058
33059         Tests of module 'langinfo' in C++ mode.
33060         * tests/test-langinfo-c++.cc: New file.
33061         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33062         (Depends-on): Add ansi-c++-opt.
33063         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33064         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33065         gl_MODULE_INDICATOR.
33066
33067         Tests of module 'iconv-h' in C++ mode.
33068         * tests/test-iconv-h-c++.cc: New file.
33069         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33070         (Depends-on): Add ansi-c++-opt.
33071         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33072
33073         Tests of module 'glob' in C++ mode.
33074         * tests/test-glob-c++.cc: New file.
33075         * modules/glob-tests (Files): Add it.
33076         (Depends-on): Add ansi-c++-opt.
33077         (Makefile.am): Arrange to compile and run test-glob-c++.
33078
33079         Tests of module 'fcntl-h' in C++ mode.
33080         * tests/test-fcntl-h-c++.cc: New file.
33081         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33082         (Depends-on): Add ansi-c++-opt.
33083         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33084         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33085         gl_MODULE_INDICATOR.
33086
33087         Tests of module 'dirent' in C++ mode.
33088         * tests/test-dirent-c++.cc: New file.
33089         * modules/dirent-tests (Files): Add it and tests/signature.h.
33090         (Depends-on): Add ansi-c++-opt.
33091         (Makefile.am): Arrange to compile and run test-dirent-c++.
33092         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33093         gl_MODULE_INDICATOR.
33094
33095         New module 'ansi-c++-opt'.
33096         * modules/ansi-c++-opt: New file.
33097         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33098
33099         Document C++ namespace mode.
33100         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33101
33102         wctype: Avoid #define replacements in C++ mode.
33103         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33104         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33105         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33106         In C++, define a namespaced alias symbol.
33107         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33108         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33109         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33110         rule.
33111
33112         wchar: Avoid #define replacements in C++ mode.
33113         * lib/wchar.in.h: Include c++defs.h.
33114         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33115         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33116         symbol.
33117         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33118         * modules/wchar (Depends-on): Add c++defs.
33119         (Makefile.am): Update wchar.h rule.
33120
33121         unistd: Avoid #define replacements in C++ mode.
33122         * lib/unistd.in.h: Include c++defs.h.
33123         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33124         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33125         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33126         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33127         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33128         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33129         symbol.
33130         (environ): Update.
33131         * modules/unistd (Depends-on): Add c++defs.
33132         (Makefile.am): Update unistd.h rule.
33133
33134         time: Avoid #define replacements in C++ mode.
33135         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33136         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33137         define a namespaced alias symbol.
33138         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33139         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33140         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33141         * modules/time (Depends-on): Add c++defs, warn-on-use.
33142         (Makefile.am): Update time.h rule.
33143         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33144         * modules/nanosleep (configure.ac): Likewise.
33145         * modules/strptime (configure.ac): Likewise.
33146         * modules/timegm (configure.ac): Likewise.
33147
33148         sys_time: Avoid #define replacements in C++ mode.
33149         * lib/sys_time.in.h: Include c++defs.h.
33150         (gettimeofday): In C++, define a namespaced alias symbol.
33151         * modules/sys_time (Depends-on): Add c++defs.
33152         (Makefile.am): Update sys/time.h rule.
33153
33154         sys_stat: Avoid #define replacements in C++ mode.
33155         * lib/sys_stat.in.h: Include c++defs.h.
33156         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33157         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33158         namespaced alias symbol.
33159         In C++, define a namespaced alias symbol.
33160         * modules/sys_stat (Depends-on): Add c++defs.
33161         (Makefile.am): Update sys/stat.h rule.
33162
33163         sys_socket: Avoid #define replacements in C++ mode.
33164         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33165         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33166         definitions also when the system has a <sys/socket.h>.
33167         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33168         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33169         In C++, define a namespaced alias symbol.
33170         * modules/sys_socket (Depends-on): Add c++defs.
33171         (Makefile.am): Update sys/socket.h rule.
33172
33173         sys_select: Avoid #define replacements in C++ mode.
33174         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33175         definitions also when the system has a <sys/select.h>.
33176         (select): In C++, define a namespaced alias symbol.
33177         * modules/sys_select (Depends-on): Add c++defs.
33178         (Makefile.am): Update sys/select.h rule.
33179
33180         sys_ioctl: Avoid #define replacements in C++ mode.
33181         * lib/sys_ioctl.in.h: Include c++defs.h.
33182         (ioctl): In C++, define a namespaced alias symbol.
33183         * modules/sys_ioctl (Depends-on): Add c++defs.
33184         (Makefile.am): Update sys/ioctl.h rule.
33185
33186         string: Avoid #define replacements in C++ mode.
33187         * lib/string.in.h: Include c++defs.h.
33188         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33189         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33190         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33191         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33192         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33193         * modules/string (Depends-on): Add c++defs.
33194         (Makefile.am): Update string.h rule.
33195
33196         stdlib: Avoid #define replacements in C++ mode.
33197         * lib/stdlib.in.h: Include c++defs.h.
33198         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33199         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33200         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33201         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33202         symbol.
33203         * modules/stdlib (Depends-on): Add c++defs.
33204         (Makefile.am): Update stdlib.h rule.
33205
33206         stdio: Avoid #define replacements in C++ mode.
33207         * lib/stdio.in.h: Include c++defs.h.
33208         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33209         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33210         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33211         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33212         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33213         namespaced alias symbol.
33214         * modules/stdio (Depends-on): Add c++defs.
33215         (Makefile.am): Update stdio.h rule.
33216
33217         spawn: Avoid #define replacements in C++ mode.
33218         * lib/spawn.in.h: Include c++defs.h.
33219         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33220         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33221         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33222         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33223         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33224         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33225         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33226         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33227         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33228         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33229         In C++, define a namespaced alias symbol.
33230         * modules/spawn (Depends-on): Add c++defs.
33231         (Makefile.am): Update spawn.h rule.
33232
33233         signal: Avoid #define replacements in C++ mode.
33234         * lib/signal.in.h: Include c++defs.h.
33235         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33236         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33237         namespaced alias symbol.
33238         * modules/signal (Depends-on): Add c++defs.
33239         (Makefile.am): Update signal.h rule.
33240
33241         search: Avoid #define replacements in C++ mode.
33242         * lib/search.in.h: Include c++defs.h.
33243         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33244         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33245         symbol.
33246         * modules/search (Depends-on): Add c++defs.
33247         (Makefile.am): Update search.h rule.
33248
33249         math: Avoid #define replacements in C++ mode.
33250         * lib/math.in.h: Include c++defs.h.
33251         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33252         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33253         trunc, truncl): In C++, define a namespaced alias symbol.
33254         * modules/math (Depends-on): Add c++defs.
33255         (Makefile.am): Update math.h rule.
33256
33257         locale: Avoid #define replacements in C++ mode.
33258         * lib/locale.in.h: Include c++defs.h.
33259         (duplocale): In C++, define a namespaced alias symbol.
33260         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33261         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33262         * modules/locale (Depends-on): Add c++defs.
33263         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33264
33265         langinfo: Avoid #define replacements in C++ mode.
33266         * lib/langinfo.in.h: Include c++defs.h.
33267         (nl_langinfo): In C++, define a namespaced alias symbol.
33268         * modules/langinfo (Depends-on): Add c++defs.
33269         (Makefile.am): Update langinfo.h rule.
33270
33271         iconv-h: Avoid #define replacements in C++ mode.
33272         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33273         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33274         symbol.
33275         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33276         whenever iconv is present.
33277         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33278         (Makefile.am): Update iconv.h rule.
33279
33280         glob: Avoid #define replacements in C++ mode.
33281         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33282         (_gl_glob_errfunc_fn): New type.
33283         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33284         symbol.
33285         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33286         (Makefile.am): Update glob.h rule.
33287
33288         fcntl-h: Avoid #define replacements in C++ mode.
33289         * lib/fcntl.in.h: Include c++defs.h.
33290         (fcntl, open, openat): In C++, define a namespaced alias symbol.
33291         * modules/fcntl-h (Depends-on): Add c++defs.
33292         (Makefile.am): Update fcntl.h rule.
33293
33294         dirent: Avoid #define replacements in C++ mode.
33295         * lib/dirent.in.h: Include c++defs.h.
33296         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
33297         namespaced alias symbol.
33298         (dirfd): Update declaration.
33299         * modules/dirent (Depends-on): Add c++defs.
33300         (Makefile.am): Update dirent.h rule.
33301
33302         ctype: Make it usable in C++ code.
33303         * lib/ctype.in.h: Include c++defs.h.
33304         (isblank): Declare as extern "C".
33305         * modules/ctype (Depends-on): Add c++defs.
33306         (Makefile.am): Update ctype.h rule.
33307
33308         New module 'c++defs'.
33309         * modules/c++defs: New file.
33310         * build-aux/c++defs.h: New file.
33311         Reported by John W. Eaton <jwe@gnu.org>.
33312
33313 2010-03-07  Bruno Haible  <bruno@clisp.org>
33314
33315         logb: Provide missing declaration for Cygwin.
33316         * lib/math.in.h (logb): New declaration.
33317         * m4/logb.m4: New file.
33318         * modules/logb (Files): Add m4/logb.m4.
33319         (Depends-on): Add math.
33320         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33321         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33323         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33324         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33325
33326 2010-03-07  Bruno Haible  <bruno@clisp.org>
33327
33328         Fix test-cond link error.
33329         * tests/test-cond.c: Include <stdio.h>.
33330
33331 2010-03-07  Bruno Haible  <bruno@clisp.org>
33332
33333         Fix test-dirent-safer link error.
33334         * modules/dirent-safer-tests (Makefile.am): Define
33335         test_dirent_safer_LDADD.
33336
33337 2010-03-07  Bruno Haible  <bruno@clisp.org>
33338
33339         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33340         among default module list.
33341
33342 2010-03-07  Bruno Haible  <bruno@clisp.org>
33343
33344         Fix link error on platforms with GNU libiconv.
33345         * modules/unistr/u8-strcoll-tests (Makefile): Define
33346         test_u8_strcoll_LDADD.
33347         * modules/unistr/u16-strcoll-tests (Makefile): Define
33348         test_u16_strcoll_LDADD.
33349         * modules/unistr/u32-strcoll-tests (Makefile): Define
33350         test_u32_strcoll_LDADD.
33351
33352 2010-03-07  Bruno Haible  <bruno@clisp.org>
33353
33354         Use POSIX declarations for socket functions.
33355         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33356         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33357         rpl_sendto): Change declaration to match POSIX.
33358         * lib/connect.c (rpl_connect): Likewise.
33359         * lib/accept.c (rpl_accept): Likewise.
33360         * lib/bind.c (rpl_bind): Likewise.
33361         * lib/getpeername.c (rpl_getpeername): Likewise.
33362         * lib/getsockname.c (rpl_getsockname): Likewise.
33363         * lib/recv.c (rpl_recv): Likewise.
33364         * lib/send.c (rpl_send): Likewise.
33365         * lib/recvfrom.c (rpl_recvfrom): Likewise.
33366         * lib/sendto.c (rpl_sendto): Likewise.
33367
33368 2010-03-06  Bruno Haible  <bruno@clisp.org>
33369
33370         Clarify access, euidaccess, faccessat.
33371         * doc/posix-functions/faccessat.texi: Mention security problem under
33372         "Other problems", not "Portability problems".
33373         * doc/posix-functions/access.texi: Likewise. Mention a related security
33374         problem.
33375         * doc/glibc-functions/euidaccess.texi: Mention security problems.
33376         * lib/euidaccess.c: Add comments about platforms.
33377         * lib/unistd.in.h (access, euidaccess): Add warnings.
33378
33379 2010-03-07  Bruno Haible  <bruno@clisp.org>
33380
33381         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
33382         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
33383         (POSIX_SPAWN_SETSCHEDULER): Likewise.
33384         (POSIX_SPAWN_USEVFORK): Define in a way that works when
33385         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33386         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
33387         declare when POSIX_SPAWN_SETSCHEDULER is zero.
33388         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
33389         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
33390         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
33391         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
33392         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
33393         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
33394         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
33395         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
33396         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
33397         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
33398         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
33399         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
33400         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
33401         Likewise.
33402         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
33403         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
33404         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
33405         Likewise.
33406         * tests/test-spawn.c (main): Make it work when
33407         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33408
33409 2010-03-07  Bruno Haible  <bruno@clisp.org>
33410
33411         Fix incorrect Makefile.am generation in German locale.
33412         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33413         Execute sed command with character range in C locale.
33414
33415 2010-03-06  Bruno Haible  <bruno@clisp.org>
33416
33417         Tests for module 'iconv-h'.
33418         * modules/iconv-h-tests: New file.
33419         * tests/test-iconv-h.c: New file.
33420
33421         New module 'iconv-h'.
33422         * modules/iconv-h: New file.
33423         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33424         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33425         (configure.ac): Remove gl_ICONV_H.
33426         (Makefile.am): Remove rule for iconv.h.
33427
33428 2010-03-06  Bruno Haible  <bruno@clisp.org>
33429
33430         More consistent naming of *.m4 files.
33431         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33432         * modules/wctype (Files): Update.
33433
33434         More consistent naming of *.m4 files.
33435         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33436         * modules/wchar (Files): Update.
33437
33438 2010-03-06  Jim Meyering  <meyering@redhat.com>
33439
33440         euidaccess: relax license to LGPLv2+
33441         * modules/euidaccess (License): Relax to LGPLv2+.
33442
33443 2010-03-06  Bruno Haible  <bruno@clisp.org>
33444
33445         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
33446         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33447         (Makefile.am): Augment lib_SOURCES instead.
33448
33449 2010-03-04  Jim Meyering  <meyering@redhat.com>
33450
33451         utime: remove obsolete module
33452         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
33453         unnecessary for years, and has been marked as obsolete for 10 months.
33454         * modules/utime: Remove file.
33455         * lib/utime.c: Remove file.
33456         * m4/utime.m4: Remove file.
33457         * m4/utimes-null.m4: Remove file.
33458         * doc/posix-functions/utime.texi (utime): Remove reference to
33459         the module.  Move the sole "fixed by gnulib" item into the
33460         "problems not fixed by Gnulib" list.
33461         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33462
33463 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33464
33465         * modules/exit (License): Relax license to LGPLv2+.
33466         (Status): Mark as obsolete.
33467         * NEWS: Mention deprecated 'exit' module.
33468         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33469         of now obsolete 'exit'.
33470
33471 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33472
33473         fts-lgpl: remove unused module
33474         * modules/fts-lgpl: Remove.
33475         * MODULES.html.sh (func_all_modules): Adjust.
33476         * check-module (find_included_lib_files): Adjust.
33477         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
33478
33479 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
33480
33481         copy-acl: enhance Solaris ACL error handling
33482         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
33483         * lib/set-mode-acl.c (qset_acl): Likewise.
33484
33485 2010-03-02  Bruno Haible  <bruno@clisp.org>
33486
33487         spawn: Don't override the system defined values on FreeBSD 8.
33488         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
33489         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
33490         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
33491         if HAVE_POSIX_SPAWN is 1.
33492         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
33493
33494 2010-03-01  Bruno Haible  <bruno@clisp.org>
33495
33496         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
33497         regarding Automake.
33498
33499 2010-02-25  Bruno Haible  <bruno@clisp.org>
33500
33501         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
33502         * gnulib-tool: Define 'echo' as a function only before the ksh alias
33503         setting, not afterwards.
33504         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
33505
33506 2010-02-24  Eric Blake  <eblake@redhat.com>
33507
33508         bootstrap, git-version-gen: use timestamp
33509         * build-aux/git-version-gen (scriptversion): Force UTC.
33510         * build-aux/bootstrap (scriptversion): New variable.
33511
33512         bootstrap: allow older git
33513         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
33514         older than 1.6.4.  Requested by the libvirt project.
33515
33516 2010-02-23  Eric Blake  <eblake@redhat.com>
33517
33518         warn-on-use: work with old autoconf
33519         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33520         AS_VAR semantics of autoconf 2.60.
33521         Reported by Bruno Haible.
33522
33523         bootstrap: improve some comments
33524         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33525         clarification comments.
33526
33527         gettimeofday: provide correct function
33528         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33529         when replacement is declared, otherwise provide gettimeofday.
33530         Reported by Michael Goffioul.
33531
33532 2010-02-23  Jim Meyering  <meyering@redhat.com>
33533
33534         lib-ignore: relax license to "unlimited", not LGPLv2+
33535         * modules/lib-ignore (License): Relax to "unlimited".
33536
33537 2010-02-23  Jim Meyering  <meyering@redhat.com>
33538
33539         lib-ignore: relax license to LGPLv2+
33540         * modules/lib-ignore (License): Relax to LGPLv2+.
33541
33542 2010-02-22  Eric Blake  <eblake@redhat.com>
33543
33544         lseek: avoid bash 3.2 broken pipe bug
33545         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33546         warning from bash 3.2.
33547         Reported by Ben Pfaff, with analysis from Bruno Haible.
33548
33549         bootstrap: support non-FSF copyright holder
33550         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33551         bootstrap.conf override of COPYRIGHT_HOLDER.
33552         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33553
33554         bootstrap: interoperate with gettext 0.14.1
33555         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33556
33557         bootstrap: allow for alternate submodule location
33558         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33559         hardcoding submodule location.
33560         (gnulib_mk): Allow direct use of Makefile.am.
33561
33562         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33563         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33564         rather than reconfiguring where the submodule points.
33565
33566         gettimeofday: restore support for platforms that lack function
33567         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33568         replacement if function is missing.
33569         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33570         * modules/sys_time (Makefile.am): Substitute it.
33571         * lib/sys_time.in.h (gettimeofday): Check it.
33572         Reported by Michael Goffioul.
33573
33574 2010-02-21  Bruno Haible  <bruno@clisp.org>
33575
33576         * lib/stdio.in.h (obstack_printf): Fix typo.
33577
33578 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33579
33580         vc-list-files: use bzr ls's -R option
33581         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33582         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33583
33584 2010-02-21  Jim Meyering  <meyering@redhat.com>
33585
33586         init.sh: fix EXEEXT shims to work also for names like test-prog
33587         * tests/init.sh: Re-exec a better shell, when needed.
33588         If the current shell lacks support for posix $(...), an init.sh-using
33589         test will now try to find a shell that supports that.  If EXEEXT is
33590         nonempty, we also require support for hyphen-in-alias-name and shell
33591         substitutions like ${var#glob}.  Failure to find such a shell results
33592         in a skipped test.
33593
33594 2010-02-21  Bruno Haible  <bruno@clisp.org>
33595
33596         Really work around around "broken pipe" error message from bash 3.2.
33597         * gnulib-tool (func_reset_sigpipe): Remove function.
33598         (echo): In bash 3.2, define to a function that uses printf.
33599         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33600
33601 2010-02-20  Bruno Haible  <bruno@clisp.org>
33602
33603         Restore support for automake 1.9.6 with autoconf 2.61.
33604         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33605         Reported by James Youngman <jay@gnu.org>.
33606
33607 2010-02-20  Bruno Haible  <bruno@clisp.org>
33608
33609         Improve *printf warning condition.
33610         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33611         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33612         and the function is overridden due to SIGPIPE emulation.
33613
33614 2010-02-20  Bruno Haible  <bruno@clisp.org>
33615
33616         * lib/stdio.in.h: Tweak comments.
33617
33618 2010-02-19  Bruno Haible  <bruno@clisp.org>
33619
33620         Make it easier to find modules. New gnulib-tool option '--find'.
33621         * gnulib-tool: New option --find.
33622         (func_usage): Document it.
33623         (func_sanitize_modulelist): New function, extracted from
33624         func_all_modules.
33625         (func_all_modules): Invoke it.
33626         * doc/gnulib-tool.texi (Which modules?): New node.
33627
33628 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33629
33630         * lib/sys_select.in.h: Provide select replacement even if
33631         sys/select.h exists on a system, for Interix.
33632
33633 2010-02-18  Jim Meyering  <meyering@redhat.com>
33634
33635         init.sh: don't use $(...) just yet
33636         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33637         to accommodate e.g., Solaris' /bin/sh.
33638
33639 2010-02-17  Bruno Haible  <bruno@clisp.org>
33640
33641         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33642         Reported by Ludovic Courtès <ludo@gnu.org>.
33643
33644 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33645
33646         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33647         linking with -lintl.
33648
33649 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33650
33651         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33652         if not provided by the system's netdb.h.  Reported by
33653         ludo@gnu.org (Ludovic Courtès).
33654
33655 2010-02-15  Jim Meyering  <meyering@redhat.com>
33656
33657         init.sh: improve portability and efficiency
33658         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33659         "dummy" in a for loop.
33660         Use '!', not '^' to select the complement of a character set used
33661         in a "case" statement.
33662         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33663         Suggestions from Eric Blake.
33664
33665         init.sh: automatically accommodate programs with the .exe suffix
33666         Automatically arrange for an invocation of "prog" to execute the
33667         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33668         may use the simpler "prog", yet still work when built on a system
33669         that requires specifying the added suffix.
33670         Do this by constructing a function named "prog" that invokes
33671         "prog.exe" for each .exe file in selected directories.
33672         * tests/init.sh (find_exe_basenames_): New function.
33673         (create_exe_shim_functions_): New function.
33674         (path_prepend_): Use it.
33675
33676         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33677         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33678         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33679
33680 2010-02-14  Jim Meyering  <meyering@redhat.com>
33681
33682         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33683         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33684         (sc_prohibit_hash_pjw_without_use): New rule.
33685
33686         maint.mk: allow the default upload destination dir to be overridden
33687         * top/maint.mk (upload_dest_dir_): Define with a default that
33688         preserves the status quo.
33689         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33690         Reported by Peter Simons.
33691
33692         maint.mk: prohibit inclusion of "hash.h" without_use
33693         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33694
33695 2010-02-10  Jim Meyering  <meyering@redhat.com>
33696
33697         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33698         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33699
33700 2010-02-09  Eric Blake  <ebb9@byu.net>
33701         and Bruno Haible  <bruno@clisp.org>
33702
33703         obstack-printf-posix: ensure declaration
33704         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33705         extracted from gl_FUNC_OBSTACK_PRINTF.
33706         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33707         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33708         Likewise.
33709         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33710         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33711         0.
33712
33713 2010-02-08  Bruno Haible  <bruno@clisp.org>
33714
33715         gnulib-tool: Fix typo in 2010-02-07 commit.
33716         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33717         Reported by Eric Blake.
33718
33719 2010-02-07  Bruno Haible  <bruno@clisp.org>
33720
33721         gnulib-tool: Fix up caching patches.
33722         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33723         option --no-cache. Use associative arrays when supported by the shell.
33724         (sed_comments): New variable.
33725         (modcache): Renamed from do_cache.
33726         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33727         abbreviate unnecessarily.
33728         (have_associative): New variable.
33729         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33730         way also for ksh and zsh.
33731         (func_init_sed_convert_to_cache_statements): New function, extracted
33732         from func_cache_lookup_module. Add support for associative arrays.
33733         Don't set the c_MODULE_cached variable here. Ignore all lines before
33734         the first field header. Remove only the final newline, not all trailing
33735         newlines. Support empty fields correctly. Limit the use of 'eval' to
33736         assignments.
33737         (func_get_description, func_get_status, func_get_notice,
33738         func_get_applicability, func_get_filelist, func_get_dependencies,
33739         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33740         func_get_automake_snippet, func_get_include_directive,
33741         func_get_link_directive, func_get_license, func_get_maintainer):
33742         Update documentation. List the unoptimized code first. Add support for
33743         associative arrays. Limit the use of 'eval' to assignments.
33744         (func_get_applicability): Undo stylistic pessimisations.
33745         (func_get_automake_snippet, func_get_include_directive): Reduce code
33746         duplication.
33747         (func_modules_transitive_closure, func_modules_add_dummy,
33748         func_modules_notice, func_modules_to_filelist, func_add_file,
33749         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33750         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33751         func_create_testdir, func_create_megatestdir): Update documentation.
33752
33753 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33754
33755         * gnulib-tool (func_cache_lookup_module): Store the module name
33756         belonging to the cache variable; error out if two different
33757         module names map to the same cache variable name.
33758
33759 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33760
33761         gnulib-tool: Make caching optional.
33762         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33763         Update matching short versions of --no-changelog.
33764         (func_usage): Update.
33765         (sed_extract_cache_prog): Renamed from ...
33766         (sed_extract_prog): ... this; revert to old extraction script.
33767         (func_get_description, func_get_status)
33768         (func_get_notice, func_get_applicability, func_get_filelist)
33769         (func_get_dependencies, func_get_autoconf_early_snippet)
33770         (func_get_autoconf_snippet, func_get_automake_snippet)
33771         (func_get_include_directive, func_get_link_directive)
33772         (func_get_license, func_get_maintainer): If $do_cache is false,
33773         use old, non-caching extraction scripts.
33774         Suggestion by Bruno Haible.
33775
33776 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33777
33778         gnulib-tool: cache module metainformation.
33779         * gnulib-tool (sed_extract_prog): Match newline before each
33780         header, and rewrite header to a shell variable suffix.
33781         (func_cache_var, func_cache_lookup_module): New functions,
33782         to turn a module name into a cache variable prefix, and to
33783         look up and cache module metainformation.
33784         (func_get_description, func_get_status)
33785         (func_get_notice, func_get_applicability, func_get_filelist)
33786         (func_get_dependencies, func_get_autoconf_early_snippet)
33787         (func_get_autoconf_snippet, func_get_automake_snippet)
33788         (func_get_include_directive, func_get_link_directive)
33789         (func_get_license, func_get_maintainer): Use
33790         func_cache_lookup_module.
33791
33792 2010-02-07  Bruno Haible  <bruno@clisp.org>
33793
33794         fnctl: Fix missing dependency.
33795         * modules/fcntl (Depends-on): Add getdtablesize.
33796         Reported by John W. Eaton <jwe@gnu.org>.
33797
33798 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33799
33800         Argp: fix recognition of short alias options.
33801
33802         * lib/argp-parse.c (convert_options): Fix improper use of
33803         `|' between character values.
33804         * tests/test-argp.c (group1_option): New alias option
33805         --read (-r).
33806         (group1_parser): Special handling for 'r'.
33807         (test15): New test case.
33808         (test_fun): Add test15.
33809         * tests/test-argp-2.sh: Update expected --help and --usage
33810         outputs.
33811
33812 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33813
33814         * tests/test-argp.c: Fix indentation.
33815
33816 2010-02-04  Eric Blake  <ebb9@byu.net>
33817
33818         gettimeofday: expose type of second argument
33819         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33820         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33821         * tests/test-gettimeofday.c: Use it to silence warning.
33822         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33823         the issue.
33824
33825 2010-02-03  Jim Meyering  <meyering@redhat.com>
33826
33827         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33828         * lib/regcomp.c (TYPE_SIGNED): Define.
33829         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33830
33831         regcomp.c: avoid a new -Wshadow warning
33832         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33833
33834 2010-02-01  Jim Meyering  <meyering@redhat.com>
33835
33836         removing useless parentheses in cpp #define directives
33837         For motivation, see commit c0221df4, "define STREQ(a,b)
33838         consistently, removing useless parentheses"
33839         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33840         * lib/mountlist.c (MNT_IGNORE): Likewise.
33841         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33842
33843 2010-02-01  Eric Blake  <ebb9@byu.net>
33844
33845         sys_time: use link-warning
33846         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33847         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33848         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33849         * modules/sys_time (Depends-on): Add warn-on-use.
33850         (Makefile.am): Always build replacement.
33851         (configure.ac): Update substitutions.
33852         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33853         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33854         bother with SYS_TIME_H.
33855         * modules/gettimeofday (configure.ac): Declare indicator.
33856         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33857         in use.
33858
33859         closein-tests: silence compiler warning
33860         * tests/test-closein.c (main): Ignore fread result.
33861         * modules/closein-tests (Depends-on): Add ignore-value.
33862
33863         tests: silence warning about system return
33864         * tests/test-areadlink-with-size.c (main): Ignore system result.
33865         * tests/test-areadlink.c (main): Likewise.
33866         * tests/test-areadlinkat-with-size.c (main): Likewise.
33867         * tests/test-areadlinkat.c (main): Likewise.
33868         * tests/test-canonicalize-lgpl.c (main): Likewise.
33869         * tests/test-canonicalize.c (main): Likewise.
33870         * tests/test-chown.c (main): Likewise.
33871         * tests/test-fchownat.c (main): Likewise.
33872         * tests/test-fdutimensat.c (main): Likewise.
33873         * tests/test-fstatat.c (main): Likewise.
33874         * tests/test-futimens.c (main): Likewise.
33875         * tests/test-lchown.c (main): Likewise.
33876         * tests/test-link.c (main): Likewise.
33877         * tests/test-linkat.c (main): Likewise.
33878         * tests/test-lstat.c (main): Likewise.
33879         * tests/test-mkdir.c (main): Likewise.
33880         * tests/test-mkdirat.c (main): Likewise.
33881         * tests/test-mkfifo.c (main): Likewise.
33882         * tests/test-mkfifoat.c (main): Likewise.
33883         * tests/test-mknod.c (main): Likewise.
33884         * tests/test-readlink.c (main): Likewise.
33885         * tests/test-remove.c (main): Likewise.
33886         * tests/test-rename.c (main): Likewise.
33887         * tests/test-renameat.c (main): Likewise.
33888         * tests/test-rmdir.c (main): Likewise.
33889         * tests/test-symlink.c (main): Likewise.
33890         * tests/test-symlinkat.c (main): Likewise.
33891         * tests/test-unlink.c (main): Likewise.
33892         * tests/test-unlinkat.c (main): Likewise.
33893         * tests/test-utimens.c (main): Likewise.
33894         * tests/test-utimensat.c (main): Likewise.
33895         * modules/areadlink-tests (Depends-on): Add ignore-value.
33896         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33897         * modules/areadlinkat-tests (Depends-on): Likewise.
33898         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33899         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33900         * modules/canonicalize-tests (Depends-on): Likewise.
33901         * modules/chown-tests (Depends-on): Likewise.
33902         * modules/fdutimensat-tests (Depends-on): Likewise.
33903         * modules/futimens-tests (Depends-on): Likewise.
33904         * modules/lchown-tests (Depends-on): Likewise.
33905         * modules/link-tests (Depends-on): Likewise.
33906         * modules/linkat-tests (Depends-on): Likewise.
33907         * modules/lstat-tests (Depends-on): Likewise.
33908         * modules/mkdir-tests (Depends-on): Likewise.
33909         * modules/mkfifo-tests (Depends-on): Likewise.
33910         * modules/mkfifoat-tests (Depends-on): Likewise.
33911         * modules/mknod-tests (Depends-on): Likewise.
33912         * modules/openat-tests (Depends-on): Likewise.
33913         * modules/readlink-tests (Depends-on): Likewise.
33914         * modules/remove-tests (Depends-on): Likewise.
33915         * modules/rename-tests (Depends-on): Likewise.
33916         * modules/renameat-tests (Depends-on): Likewise.
33917         * modules/rmdir-tests (Depends-on): Likewise.
33918         * modules/symlink-tests (Depends-on): Likewise.
33919         * modules/symlinkat-tests (Depends-on): Likewise.
33920         * modules/unlink-tests (Depends-on): Likewise.
33921         * modules/utimens-tests (Depends-on): Likewise.
33922         * modules/utimensat-tests (Depends-on): Likewise.
33923
33924 2010-01-31  Bruno Haible  <bruno@clisp.org>
33925
33926         Perform the same test for many <math.h> functions.
33927         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33928         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33929         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33930         of gl_MATHFUNC.
33931         * modules/acos (configure.ac): Likewise.
33932         * modules/asin (configure.ac): Likewise.
33933         * modules/atan (configure.ac): Likewise.
33934         * modules/atan2 (configure.ac): Likewise.
33935         * modules/cbrt (configure.ac): Likewise.
33936         * modules/copysign (configure.ac): Likewise.
33937         * modules/cos (configure.ac): Likewise.
33938         * modules/cosh (configure.ac): Likewise.
33939         * modules/erf (configure.ac): Likewise.
33940         * modules/erfc (configure.ac): Likewise.
33941         * modules/exp (configure.ac): Likewise.
33942         * modules/fmod (configure.ac): Likewise.
33943         * modules/hypot (configure.ac): Likewise.
33944         * modules/j0 (configure.ac): Likewise.
33945         * modules/j1 (configure.ac): Likewise.
33946         * modules/jn (configure.ac): Likewise.
33947         * modules/lgamma (configure.ac): Likewise.
33948         * modules/log (configure.ac): Likewise.
33949         * modules/log10 (configure.ac): Likewise.
33950         * modules/log1p (configure.ac): Likewise.
33951         * modules/pow (configure.ac): Likewise.
33952         * modules/remainder (configure.ac): Likewise.
33953         * modules/sin (configure.ac): Likewise.
33954         * modules/sinh (configure.ac): Likewise.
33955         * modules/tan (configure.ac): Likewise.
33956         * modules/tanh (configure.ac): Likewise.
33957         * modules/y0 (configure.ac): Likewise.
33958         * modules/y1 (configure.ac): Likewise.
33959         * modules/yn (configure.ac): Likewise.
33960         Suggested by Paolo Bonzini.
33961
33962 2010-01-31  Bruno Haible  <bruno@clisp.org>
33963
33964         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33965
33966 2010-01-31  Bruno Haible  <bruno@clisp.org>
33967
33968         Work around getdelim() bug on FreeBSD 8.0.
33969         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33970         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33971         not work.
33972         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33973         is 1.
33974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33975         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33976         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33977         a non-zero size.
33978         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33979
33980 2010-01-31  Bruno Haible  <bruno@clisp.org>
33981
33982         Work around getline() bug on FreeBSD 8.0.
33983         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33984         and a non-zero size.
33985         * tests/test-getline.c (main): Likewise.
33986         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33987         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33988
33989 2010-01-28  Eric Blake  <ebb9@byu.net>
33990
33991         regex: fix build failure
33992         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33993         platforms.
33994
33995 2010-01-28  Jim Meyering  <meyering@redhat.com>
33996
33997         regex: do not ignore memory allocation failure
33998         * lib/regex_internal.c (create_cd_newstate): Detect
33999         re_node_set_init_copy failure.   Extracted from glibc commit
34000         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34001
34002         regex: sync more white-space changes from libc
34003         * lib/regex_internal.c: White-space only changes.
34004         * lib/regexec.c: Likewise.
34005
34006         regex: add many uses of __attribute_warn_unused_result__
34007         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
34008         * lib/regexec.c: Likewise.
34009         Extracted from a messy glibc commit.
34010
34011         regcomp.c: spelling and merge-artifact from glibc
34012         * lib/regcomp.c: Merge remainder of glibc's
34013         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34014
34015         regcomp.c: sync white-space changes from glibc
34016         * lib/regcomp.c: Merge to accommodate white space
34017         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34018
34019         regcomp.c: do not ignore internal return values
34020         * lib/regcomp.c: Do not ignore internal return values.
34021         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
34022         but without its white-space changes and spelling fixes.
34023
34024         regex_internal.h: define __attribute_warn_unused_result__
34025         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
34026
34027         maint: add a syntax-check rule to check for vulnerable Makefile.in
34028         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
34029
34030 2010-01-27  Jim Meyering  <meyering@redhat.com>
34031
34032         ncftpput-ftp: clean up spaces
34033         * build-aux/ncftpput-ftp: Make Copyright line consistent.
34034         Remove trailing blanks.
34035
34036 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34037
34038         * build-aux/git-version-gen: Fix copyright statement.
34039         * build-aux/gnupload: Likewise.
34040         * tests/test-arcfour.c: Likewise.
34041         * tests/test-arctwo.c: Likewise.
34042         * tests/test-count-one-bits.c: Likewise.
34043         * tests/test-crc.c: Likewise.
34044         * tests/test-des.c: Likewise.
34045         * tests/test-gc-arcfour.c: Likewise.
34046         * tests/test-gc-arctwo.c: Likewise.
34047         * tests/test-gc-des.c: Likewise.
34048         * tests/test-gc-hmac-md5.c: Likewise.
34049         * tests/test-gc-hmac-sha1.c: Likewise.
34050         * tests/test-gc-md2.c: Likewise.
34051         * tests/test-gc-md4.c: Likewise.
34052         * tests/test-gc-md5.c: Likewise.
34053         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34054         * tests/test-gc-rijndael.c: Likewise.
34055         * tests/test-gc-sha1.c: Likewise.
34056         * tests/test-gc.c: Likewise.
34057         * tests/test-gethostname.c: Likewise.
34058         * tests/test-gettimeofday.c: Likewise.
34059         * tests/test-hash.c: Likewise.
34060         * tests/test-hmac-md5.c: Likewise.
34061         * tests/test-hmac-sha1.c: Likewise.
34062         * tests/test-md2.c: Likewise.
34063         * tests/test-md4.c: Likewise.
34064         * tests/test-md5.c: Likewise.
34065         * tests/test-memchr.c: Likewise.
34066         * tests/test-memchr2.c: Likewise.
34067         * tests/test-memcmp.c: Likewise.
34068         * tests/test-memmem.c: Likewise.
34069         * tests/test-memrchr.c: Likewise.
34070         * tests/test-rawmemchr.c: Likewise.
34071         * tests/test-read-file.c: Likewise.
34072         * tests/test-rijndael.c: Likewise.
34073         * tests/test-sockets.c: Likewise.
34074         * tests/test-strchrnul.c: Likewise.
34075         * tests/test-strstr.c: Likewise.
34076         * tests/test-strtod.c: Likewise.
34077         * build-aux/ncftpput-ftp: Likewise.
34078
34079 2010-01-26  Eric Blake  <ebb9@byu.net>
34080
34081         ignore-value: update recommended header name
34082         * modules/ignore-value (Include): Only use <> for headers that
34083         exist in glibc.
34084
34085 2010-01-26  Jim Meyering  <meyering@redhat.com>
34086
34087         test-userspec.c: avoid compiler warnings
34088         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34089         and "initialization discards qualifiers..." warnings.
34090         Put the first "uid" in its own scope, and make char* members "const".
34091
34092 2010-01-25  Bruno Haible  <bruno@clisp.org>
34093
34094         gnulib-tool: Make warning diagnostics consistent.
34095         * gnulib-tool (func_warning): New function.
34096         Use it everywhere where gnulib-tool produces output to stderr and it is
34097         not a fatal error.
34098
34099 2010-01-25  Bruno Haible  <bruno@clisp.org>
34100
34101         Fix test dependencies.
34102         * modules/xstrtol-tests (Depends-on): Add inttypes.
34103         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34104
34105 2010-01-25 Pádraig Brady <P@draigBrady.com>
34106
34107         syntax-check: detect incorrect boolean macro values in config.h
34108         * modules/maintainer-makefile (configure.ac): Parameterize the location
34109         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34110         The logic is from Eric Blake and the location indicated by Jim Meyering.
34111         Note the more natural CONFIG_HEADER name is prohibited by automake
34112         for backwards compatibility reasons.
34113         * top/maint.mk (sc_Wundef_boolean): New rule.
34114
34115 2010-01-25  Jim Meyering  <meyering@redhat.com>
34116
34117         bootstrap: detect MacOS 10.6's shasum, too
34118         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34119         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34120
34121 2010-01-23  Jim Meyering  <meyering@redhat.com>
34122
34123         xstrtoll: new module
34124         * modules/xstrtoll: New file.
34125         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34126         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34127         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34128         ./configure fails if you use this module and lack "long long".
34129         * modules/xstrtoll-tests: New module.
34130         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34131         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34132         new init.sh-based test framework.
34133
34134 2010-01-24  Bruno Haible  <bruno@clisp.org>
34135
34136         Tests for module 'yn'.
34137         * modules/yn-tests: New file.
34138         * tests/test-yn.c: New file.
34139
34140         Tests for module 'y1'.
34141         * modules/y1-tests: New file.
34142         * tests/test-y1.c: New file.
34143
34144         Tests for module 'y0'.
34145         * modules/y0-tests: New file.
34146         * tests/test-y0.c: New file.
34147
34148         Tests for module 'tanh'.
34149         * modules/tanh-tests: New file.
34150         * tests/test-tanh.c: New file.
34151
34152         Tests for module 'tan'.
34153         * modules/tan-tests: New file.
34154         * tests/test-tan.c: New file.
34155
34156         Tests for module 'sqrt'.
34157         * modules/sqrt-tests: New file.
34158         * tests/test-sqrt.c: New file.
34159
34160         Tests for module 'sinh'.
34161         * modules/sinh-tests: New file.
34162         * tests/test-sinh.c: New file.
34163
34164         Tests for module 'sin'.
34165         * modules/sin-tests: New file.
34166         * tests/test-sin.c: New file.
34167
34168         Tests for module 'rint'.
34169         * modules/rint-tests: New file.
34170         * tests/test-rint.c: New file.
34171
34172         Tests for module 'remainder'.
34173         * modules/remainder-tests: New file.
34174         * tests/test-remainder.c: New file.
34175
34176         Tests for module 'pow'.
34177         * modules/pow-tests: New file.
34178         * tests/test-pow.c: New file.
34179
34180         Tests for module 'nextafter'.
34181         * modules/nextafter-tests: New file.
34182         * tests/test-nextafter.c: New file.
34183
34184         Tests for module 'modf'.
34185         * modules/modf-tests: New file.
34186         * tests/test-modf.c: New file.
34187
34188         Tests for module 'logb'.
34189         * modules/logb-tests: New file.
34190         * tests/test-logb.c: New file.
34191
34192         Tests for module 'log1p'.
34193         * modules/log1p-tests: New file.
34194         * tests/test-log1p.c: New file.
34195
34196         Tests for module 'log10'.
34197         * modules/log10-tests: New file.
34198         * tests/test-log10.c: New file.
34199
34200         Tests for module 'log'.
34201         * modules/log-tests: New file.
34202         * tests/test-log.c: New file.
34203
34204         Tests for module 'lgamma'.
34205         * modules/lgamma-tests: New file.
34206         * tests/test-lgamma.c: New file.
34207
34208         Tests for module 'ldexp'.
34209         * modules/ldexp-tests: New file.
34210         * tests/test-ldexp.c: New file.
34211
34212         Tests for module 'jn'.
34213         * modules/jn-tests: New file.
34214         * tests/test-jn.c: New file.
34215
34216         Tests for module 'j1'.
34217         * modules/j1-tests: New file.
34218         * tests/test-j1.c: New file.
34219
34220         Tests for module 'j0'.
34221         * modules/j0-tests: New file.
34222         * tests/test-j0.c: New file.
34223
34224         Tests for module 'hypot'.
34225         * modules/hypot-tests: New file.
34226         * tests/test-hypot.c: New file.
34227
34228         Tests for module 'fmod'.
34229         * modules/fmod-tests: New file.
34230         * tests/test-fmod.c: New file.
34231
34232         Tests for module 'fabs'.
34233         * modules/fabs-tests: New file.
34234         * tests/test-fabs.c: New file.
34235
34236         Tests for module 'exp'.
34237         * modules/exp-tests: New file.
34238         * tests/test-exp.c: New file.
34239
34240         Tests for module 'erfc'.
34241         * modules/erfc-tests: New file.
34242         * tests/test-erfc.c: New file.
34243
34244         Tests for module 'erf'.
34245         * modules/erf-tests: New file.
34246         * tests/test-erf.c: New file.
34247
34248         Tests for module 'cosh'.
34249         * modules/cosh-tests: New file.
34250         * tests/test-cosh.c: New file.
34251
34252         Tests for module 'cos'.
34253         * modules/cos-tests: New file.
34254         * tests/test-cos.c: New file.
34255
34256         Tests for module 'copysign'.
34257         * modules/copysign-tests: New file.
34258         * tests/test-copysign.c: New file.
34259
34260         Tests for module 'cbrt'.
34261         * modules/cbrt-tests: New file.
34262         * tests/test-cbrt.c: New file.
34263
34264         Tests for module 'atan2'.
34265         * modules/atan2-tests: New file.
34266         * tests/test-atan2.c: New file.
34267
34268         Tests for module 'atan'.
34269         * modules/atan-tests: New file.
34270         * tests/test-atan.c: New file.
34271
34272         Tests for module 'asin'.
34273         * modules/asin-tests: New file.
34274         * tests/test-asin.c: New file.
34275
34276         Tests for module 'acos'.
34277         * modules/acos-tests: New file.
34278         * tests/test-acos.c: New file.
34279
34280 2010-01-24  Bruno Haible  <bruno@clisp.org>
34281
34282         Fix tests for common <math.h> functions.
34283         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34284         code snippet that references the function pointer, rather than merely
34285         calling the function. Substitute the FUNC_LIBM variable.
34286         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34287         * modules/acos (configure.ac): Likewise.
34288         * modules/asin (configure.ac): Likewise.
34289         * modules/atan (configure.ac): Likewise.
34290         * modules/atan2 (configure.ac): Likewise.
34291         * modules/cbrt (configure.ac): Likewise.
34292         * modules/copysign (configure.ac): Likewise.
34293         * modules/cos (configure.ac): Likewise.
34294         * modules/cosh (configure.ac): Likewise.
34295         * modules/erf (configure.ac): Likewise.
34296         * modules/erfc (configure.ac): Likewise.
34297         * modules/exp (configure.ac): Likewise.
34298         * modules/fabs (configure.ac): Likewise.
34299         * modules/fmod (configure.ac): Likewise.
34300         * modules/hypot (configure.ac): Likewise.
34301         * modules/j0 (configure.ac): Likewise.
34302         * modules/j1 (configure.ac): Likewise.
34303         * modules/jn (configure.ac): Likewise.
34304         * modules/ldexp (configure.ac): Likewise.
34305         * modules/lgamma (configure.ac): Likewise.
34306         * modules/log (configure.ac): Likewise.
34307         * modules/log10 (configure.ac): Likewise.
34308         * modules/log1p (configure.ac): Likewise.
34309         * modules/logb (configure.ac): Likewise.
34310         * modules/modf (configure.ac): Likewise.
34311         * modules/nextafter (configure.ac): Likewise.
34312         * modules/pow (configure.ac): Likewise.
34313         * modules/remainder (configure.ac): Likewise.
34314         * modules/rint (configure.ac): Likewise.
34315         * modules/sin (configure.ac): Likewise.
34316         * modules/sinh (configure.ac): Likewise.
34317         * modules/tan (configure.ac): Likewise.
34318         * modules/tanh (configure.ac): Likewise.
34319         * modules/y0 (configure.ac): Likewise.
34320         * modules/y1 (configure.ac): Likewise.
34321         * modules/yn (configure.ac): Likewise.
34322
34323 2010-01-24  Bruno Haible  <bruno@clisp.org>
34324
34325         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34326         * tests/test-acosl.c (x): New variable.
34327         (main): Store argument in x and fetch it from x.
34328         * tests/test-asinl.c (x): New variable.
34329         (main): Store argument in x and fetch it from x.
34330         * tests/test-atanl.c (x): New variable.
34331         (main): Store argument in x and fetch it from x.
34332         * tests/test-cosl.c (x): New variable.
34333         (main): Store argument in x and fetch it from x.
34334         * tests/test-expl.c (x): New variable.
34335         (main): Store argument in x and fetch it from x.
34336         * tests/test-logl.c (x): New variable.
34337         (main): Store argument in x and fetch it from x.
34338         * tests/test-sinl.c (x): New variable.
34339         (main): Store argument in x and fetch it from x.
34340         * tests/test-sqrtl.c (x): New variable.
34341         (main): Store argument in x and fetch it from x.
34342         * tests/test-tanl.c (x): New variable.
34343         (main): Store argument in x and fetch it from x.
34344
34345 2010-01-24  Bruno Haible  <bruno@clisp.org>
34346
34347         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34348         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34349         assignments to the initial TESTS_ENVIRONMENT.
34350         * doc/gnulib.texi (Unit test modules): Document it.
34351         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34352         TESTS_ENVIRONMENT.
34353         * modules/btowc-tests (Makefile.am): Likewise.
34354         * modules/c-stack-tests (Makefile.am): Likewise.
34355         * modules/c-strcase-tests (Makefile.am): Likewise.
34356         * modules/copy-file-tests (Makefile.am): Likewise.
34357         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34358         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34359         * modules/mbrtowc-tests (Makefile.am): Likewise.
34360         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34361         * modules/mbscasestr-tests (Makefile.am): Likewise.
34362         * modules/mbschr-tests (Makefile.am): Likewise.
34363         * modules/mbscspn-tests (Makefile.am): Likewise.
34364         * modules/mbsinit-tests (Makefile.am): Likewise.
34365         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34366         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
34367         * modules/mbspbrk-tests (Makefile.am): Likewise.
34368         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34369         * modules/mbsrchr-tests (Makefile.am): Likewise.
34370         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
34371         * modules/mbsspn-tests (Makefile.am): Likewise.
34372         * modules/mbsstr-tests (Makefile.am): Likewise.
34373         * modules/nl_langinfo-tests (Makefile.am): Likewise.
34374         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
34375         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34376         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34377         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34378         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34379         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
34380         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34381         * modules/wcrtomb-tests (Makefile.am): Likewise.
34382         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
34383         * modules/wcsrtombs-tests (Makefile.am): Likewise.
34384         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
34385         assignments from TESTS_ENVIRONMENT.
34386         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
34387         augmentation.
34388         * modules/argp-version-etc-tests (Makefile.am): Likewise.
34389         * modules/atexit-tests (Makefile.am): Likewise.
34390         * modules/binary-io-tests (Makefile.am): Likewise.
34391         * modules/closein-tests (Makefile.am): Likewise.
34392         * modules/dprintf-posix-tests (Makefile.am): Likewise.
34393         * modules/exclude-tests (Makefile.am): Likewise.
34394         * modules/fflush-tests (Makefile.am): Likewise.
34395         * modules/fpending-tests (Makefile.am): Likewise.
34396         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34397         * modules/freadahead-tests (Makefile.am): Likewise.
34398         * modules/freadptr-tests (Makefile.am): Likewise.
34399         * modules/freadseek-tests (Makefile.am): Likewise.
34400         * modules/fseek-tests (Makefile.am): Likewise.
34401         * modules/fseeko-tests (Makefile.am): Likewise.
34402         * modules/ftell-tests (Makefile.am): Likewise.
34403         * modules/ftello-tests (Makefile.am): Likewise.
34404         * modules/idpriv-drop-tests (Makefile.am): Likewise.
34405         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
34406         * modules/lseek-tests (Makefile.am): Likewise.
34407         * modules/parse-duration-tests (Makefile.am): Likewise.
34408         * modules/perror-tests (Makefile.am): Likewise.
34409         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
34410         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
34411         * modules/pipe-tests (Makefile.am): Likewise.
34412         * modules/pread-tests (Makefile.am): Likewise.
34413         * modules/printf-posix-tests (Makefile.am): Likewise.
34414         * modules/select-tests (Makefile.am): Likewise.
34415         * modules/sigpipe-tests (Makefile.am): Likewise.
34416         * modules/tsearch-tests (Makefile.am): Likewise.
34417         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
34418         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
34419         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34420         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34421         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34422         * modules/version-etc-tests (Makefile.am): Likewise.
34423         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34424         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34425         * modules/xalloc-die-tests (Makefile.am): Likewise.
34426         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34427         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34428         * modules/xstrtol-tests (Makefile.am): Likewise.
34429         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34430         * modules/yesno-tests (Makefile.am): Likewise.
34431         Suggested by Jim Meyering.
34432
34433 2010-01-24  Bruno Haible  <bruno@clisp.org>
34434
34435         More documentation.
34436         * doc/gnulib.texi (Writing modules): New chapter.
34437         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34438         the new chapter.
34439
34440 2010-01-24  Jim Meyering  <meyering@redhat.com>
34441
34442         maint.mk: do not prepend "./" after filtering
34443         * top/maint.mk (_prepend_srcdir_prefix): New variable
34444         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
34445         "./" when $(srcdir) is ".".
34446
34447         define STREQ(a,b) consistently, removing useless parentheses
34448         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
34449         since the only risk is that "a" or "b" contains an unparenthesized
34450         comma, but if either did that, STREQ would have 3 or more arguments.
34451         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
34452         * lib/fts.c (STREQ): Remove unnecessary parentheses.
34453         * lib/hash-triple.c (STREQ): Likewise.
34454         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
34455         * lib/getugroups.c (STREQ): Likewise.
34456
34457 2010-01-23  Jim Meyering  <meyering@redhat.com>
34458
34459         maint.mk: fix syntax-check in a non-srcdir build directory
34460         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
34461         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34462
34463 2010-01-22  Jim Meyering  <meyering@redhat.com>
34464
34465         userspec: add unit tests
34466         * tests/test-userspec.c: New file.
34467         * modules/userspec-tests: Likewise.
34468
34469 2010-01-21  Jim Meyering  <meyering@redhat.com>
34470
34471         maint.mk: handle source file names containing "." robustly
34472         * top/maint.mk (_dot_escaped_srcdir): Define.
34473         (VC_LIST): Use it in LHS of sed substitution.
34474
34475 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
34476
34477         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
34478         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
34479         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
34480         from a non-srcdir build.
34481
34482 2010-01-20  Eric Blake  <ebb9@byu.net>
34483
34484         warn-on-use: use instead of link-warning
34485         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
34486         * modules/unistd (Depends-on, Makefile.am): Likewise.
34487         * modules/arpa_inet (Depends-on): Replace link-warning with
34488         warn-on-use.
34489         (Makefile.am): Update rules accordingly.
34490         * modules/ctype (Depends-on, Makefile.am): Likewise.
34491         * modules/dirent (Depends-on, Makefile.am): Likewise.
34492         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
34493         * modules/inttypes (Depends-on, Makefile.am): Likewise.
34494         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34495         * modules/locale (Depends-on, Makefile.am): Likewise.
34496         * modules/math (Depends-on, Makefile.am): Likewise.
34497         * modules/search (Depends-on, Makefile.am): Likewise.
34498         * modules/signal (Depends-on, Makefile.am): Likewise.
34499         * modules/spawn (Depends-on, Makefile.am): Likewise.
34500         * modules/stdlib (Depends-on, Makefile.am): Likewise.
34501         * modules/string (Depends-on, Makefile.am): Likewise.
34502         * modules/strings (Depends-on, Makefile.am): Likewise.
34503         * modules/sys_file (Depends-on, Makefile.am): Likewise.
34504         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
34505         * modules/sys_select (Depends-on, Makefile.am): Likewise.
34506         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
34507         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
34508         * modules/sys_times (Depends-on, Makefile.am): Likewise.
34509         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34510         * modules/wchar (Depends-on, Makefile.am): Likewise.
34511         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
34512         should be poisoned.
34513         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
34514         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
34515         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
34516         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34517         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34518         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34519         * m4/math_h.m4 (gl_MATH_H): Likewise.
34520         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34521         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34522         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34523         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34524         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34525         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34526         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34527         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34528         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34529         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34530         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34531         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34532         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34533         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34534         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34535         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34536         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34537         GL_LINK_WARNING.
34538         * lib/ctype.in.h: Likewise.
34539         * lib/dirent.in.h: Likewise.
34540         * lib/fcntl.in.h: Likewise.
34541         * lib/inttypes.in.h: Likewise.
34542         * lib/langinfo.in.h: Likewise.
34543         * lib/locale.in.h: Likewise.
34544         * lib/math.in.h: Likewise.
34545         * lib/search.in.h: Likewise.
34546         * lib/signal.in.h: Likewise.
34547         * lib/spawn.in.h: Likewise.
34548         * lib/stdio.in.h: Likewise.
34549         * lib/stdlib.in.h: Likewise.
34550         * lib/string.in.h: Likewise.
34551         * lib/strings.in.h: Likewise.
34552         * lib/sys_file.in.h: Likewise.
34553         * lib/sys_ioctl.in.h: Likewise.
34554         * lib/sys_select.in.h: Likewise.
34555         * lib/sys_socket.in.h: Likewise.
34556         * lib/sys_stat.in.h: Likewise.
34557         * lib/sys_times.in.h: Likewise.
34558         * lib/sys_utsname.in.h: Likewise.
34559         * lib/unistd.in.h: Likewise.
34560         * lib/wchar.in.h: Likewise.
34561
34562 2010-01-20  Bruno Haible  <bruno@clisp.org>
34563
34564         Avoid duplicate -lm.
34565         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34566         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34567         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34568         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34569         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34570         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34571         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34572         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34573         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34574         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34575         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34576         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34577         Reported by Paolo Bonzini.
34578
34579 2010-01-19  Bruno Haible  <bruno@clisp.org>
34580
34581         langinfo, nl_langinfo: Relicense under LGPLv2+.
34582         * modules/langinfo (License): Change to LGPLv2+.
34583         * modules/nl_langinfo (License): Likewise.
34584         Patch by David Lutterkort <lutter@redhat.com>.
34585
34586 2010-01-19  Bruno Haible  <bruno@clisp.org>
34587
34588         Avoid compilation error with cc on OSF/1 5.1.
34589         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34590         statement, not before.
34591         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34592
34593 2010-01-18  Bruno Haible  <bruno@clisp.org>
34594
34595         Avoid a link error due to the __printf__ symbol.
34596         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34597         and 2.6.x.
34598         (__format__, __printf__): Remove definitions.
34599         * lib/argp-fmtstream.h: Likewise.
34600         * lib/argp.h: Likewise.
34601         * lib/error.h: Likewise.
34602         * lib/vasnprintf.h: Likewise.
34603         * lib/xprintf.h: Likewise.
34604         * lib/xvasprintf.h: Likewise.
34605         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34606
34607 2010-01-18  Bruno Haible  <bruno@clisp.org>
34608
34609         Tests for module 'tanl'.
34610         * modules/tanl-tests: New file.
34611         * tests/test-tanl.c: New file.
34612
34613         Tests for module 'sqrtl'.
34614         * modules/sqrtl-tests: New file.
34615         * tests/test-sqrtl.c: New file.
34616
34617         Tests for module 'sinl'.
34618         * modules/sinl-tests: New file.
34619         * tests/test-sinl.c: New file.
34620
34621         Tests for module 'logl'.
34622         * modules/logl-tests: New file.
34623         * tests/test-logl.c: New file.
34624
34625         Tests for module 'expl'.
34626         * modules/expl-tests: New file.
34627         * tests/test-expl.c: New file.
34628
34629         Tests for module 'cosl'.
34630         * modules/cosl-tests: New file.
34631         * tests/test-cosl.c: New file.
34632
34633         Tests for module 'atanl'.
34634         * modules/atanl-tests: New file.
34635         * tests/test-atanl.c: New file.
34636
34637         Tests for module 'asinl'.
34638         * modules/asinl-tests: New file.
34639         * tests/test-asinl.c: New file.
34640
34641         Tests for module 'acosl'.
34642         * modules/acosl-tests: New file.
34643         * tests/test-acosl.c: New file.
34644
34645         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34646         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34647         tanl): Use the standard gnulib idiom.
34648         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34649         * lib/sinl.c: Likewise.
34650         * lib/tanl.c: Don't include trigl.c.
34651         (kernel_tanl): Make static.
34652         * lib/sincosl.c: Include trigl.h first.
34653         * lib/trigl.c: Likewise.
34654         * m4/acosl.m4: New file.
34655         * m4/asinl.m4: New file.
34656         * m4/atanl.m4: New file.
34657         * m4/cosl.m4: New file.
34658         * m4/expl.m4: New file.
34659         * m4/logl.m4: New file.
34660         * m4/sinl.m4: New file.
34661         * m4/sqrtl.m4: New file.
34662         * m4/tanl.m4: New file.
34663         * m4/mathl.m4: Remove file.
34664         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34665         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34666         Don't initialize GNULIB_MATHL.
34667         * modules/acosl: New file.
34668         * modules/asinl: New file.
34669         * modules/atanl: New file.
34670         * modules/cosl: New file.
34671         * modules/expl: New file.
34672         * modules/logl: New file.
34673         * modules/sinl: New file.
34674         * modules/sqrtl: New file.
34675         * modules/tanl: New file.
34676         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34677         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34678         substitute GNULIB_MATHL.
34679         * modules/mathl: Rewritten.
34680         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34681         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34682         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34683         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34684         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34685         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34686         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34687         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34688         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34689
34690 2010-01-18  Bruno Haible  <bruno@clisp.org>
34691
34692         sqrt: Make gl_FUNC_SQRT requirable.
34693         * m4/sqrt.m4: New file.
34694         * modules/sqrt (Files): Add it.
34695         (configure.ac): Invoke gl_FUNC_SQRT.
34696
34697 2010-01-18  Bruno Haible  <bruno@clisp.org>
34698
34699         New modules for common <math.h> functions.
34700         * m4/mathfunc.m4: New file.
34701         * modules/acos: New file.
34702         * modules/asin: New file.
34703         * modules/atan: New file.
34704         * modules/atan2: New file.
34705         * modules/cbrt: New file.
34706         * modules/copysign: New file.
34707         * modules/cos: New file.
34708         * modules/cosh: New file.
34709         * modules/erf: New file.
34710         * modules/erfc: New file.
34711         * modules/exp: New file.
34712         * modules/fabs: New file.
34713         * modules/fmod: New file.
34714         * modules/hypot: New file.
34715         * modules/j0: New file.
34716         * modules/j1: New file.
34717         * modules/jn: New file.
34718         * modules/ldexp: New file.
34719         * modules/lgamma: New file.
34720         * modules/log: New file.
34721         * modules/log10: New file.
34722         * modules/log1p: New file.
34723         * modules/logb: New file.
34724         * modules/modf: New file.
34725         * modules/nextafter: New file.
34726         * modules/pow: New file.
34727         * modules/remainder: New file.
34728         * modules/rint: New file.
34729         * modules/sin: New file.
34730         * modules/sinh: New file.
34731         * modules/sqrt: New file.
34732         * modules/tan: New file.
34733         * modules/tanh: New file.
34734         * modules/y0: New file.
34735         * modules/y1: New file.
34736         * modules/yn: New file.
34737         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34738         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34739         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34740         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34741         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34742         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34743         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34744         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34745         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34746         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34747         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34748         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34749         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34750         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34751         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34752         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34753         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34754         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34755         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34756         * doc/posix-functions/log.texi: Mention the 'log' module.
34757         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34758         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34759         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34760         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34761         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34762         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34763         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34764         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34765         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34766         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34767         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34768         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34769         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34770         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34771         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34772         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34773
34774 2010-01-18  Jim Meyering  <meyering@redhat.com>
34775
34776         ignore-value: relax license to LGPLv2+
34777         * modules/ignore-value (License): Relax to LGPLv2+.
34778
34779         getdate: don't leak when TZ contains two or more '"'s
34780         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34781         double quote in TZ after the first one.
34782
34783         readtokens: do not leak internal token_lengths buffer
34784         * lib/readtokens.c (readtokens): Free the local, lengths,
34785         when the supplied "token_lengths" parameter is NULL.
34786
34787 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34788
34789         Fix a couple of missing LIBTHREAD link failures on AIX.
34790         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34791         $(LIBTHREAD).
34792         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34793
34794         Link test-poll against INET_PTON_LIB.
34795         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34796         for inet_pton on Solaris 10.
34797
34798 2010-01-17  Bruno Haible  <bruno@clisp.org>
34799
34800         unistdio/*-sprintf: Fix typo in module description.
34801         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34802         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34803         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34804         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34805         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34806         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34807         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34808         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34809
34810 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34811
34812         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34813         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34814         variables in shell case patterns, for AIX and HP-UX ksh.
34815
34816         Split large sed scripts, for HP-UX sed.
34817         * modules/stdio: Split sed scripts around 50 sed commands,
34818         to avoid HP-UX limit of 99 commands, in the near future.
34819         * modules/string: Likewise.
34820         * modules/unistd: Likewise.
34821
34822         gnulib-tool: avoid writing in the current directory.
34823         * gnulib-tool (func_emit_lib_Makefile_am)
34824         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34825         not in the current directory, so concurrent gnulib-tool
34826         instances do not interfere.
34827
34828 2010-01-16  Jim Meyering  <meyering@redhat.com>
34829
34830         doc: update users.txt
34831         * users.txt: Add grep.
34832         (diffutils, gzip): Update URLs.
34833
34834 2010-01-12  Bruno Haible  <bruno@clisp.org>
34835
34836         posix_spawn: Avoid test failure on Cygwin.
34837         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34838         characters.
34839         Reported by Simon Josefsson.
34840
34841 2010-01-12  Bruno Haible  <bruno@clisp.org>
34842
34843         * tests/test-cond.c (main): When skipping the test, show the reason.
34844
34845 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34846
34847         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34848
34849 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34850
34851         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34852         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34853
34854 2010-01-12  Eric Blake  <ebb9@byu.net>
34855
34856         build: guarantee AS_VAR_IF
34857         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34858         (gl_AS_VAR_IF): Move...
34859         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34860         Reported by Simon Josefsson.
34861
34862 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34863
34864         * lib/stdio.in.h: Fix typo.
34865
34866 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34867
34868         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34869         libgpg-error.
34870
34871 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34872
34873         * tests/test-xalloc-die.sh: Use $EXEEXT.
34874
34875 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34876             Bruno Haible  <bruno@clisp.org>
34877
34878         getlogin, getlogin_r: Avoid test failure.
34879         * tests/test-getlogin.c: Include <stdio.h>.
34880         (main): Skip the test when the function fails because stdin is not a
34881         tty.
34882         * tests/test-getlogin_r.c: Include <stdio.h>.
34883         (main): Skip the test when the function fails because stdin is not a
34884         tty.
34885
34886 2010-01-11  Eric Blake  <ebb9@byu.net>
34887
34888         tests: avoid more large file warnings
34889         * tests/test-fflush.c: Avoid warning about ftell use.
34890         * tests/test-fseek.c: Avoid warning about fseek use.
34891
34892 2010-01-10  Bruno Haible  <bruno@clisp.org>
34893
34894         nproc: Work better on Linux when /proc and /sys are not mounted.
34895         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34896         as lower bound when, on glibc/Linux systems,
34897         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34898         Suggested by Pádraig Brady <P@draigbrady.com>.
34899         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34900
34901         nproc: Refactor.
34902         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34903         extracted from num_processors.
34904         (num_processors): Call it.
34905
34906 2010-01-11  Jim Meyering  <meyering@redhat.com>
34907
34908         utimecmp: avoid new warning from upcoming gcc-4.5.0
34909         * lib/utimecmp.c (BILLION): Define using #define rather than an
34910         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34911
34912 2010-01-11  Eric Blake  <ebb9@byu.net>
34913
34914         math: add portability warnings for classification macros
34915         * modules/math (Depends-on): Add warn-on-use.
34916         (Makefile.am): Provide new substitutions.
34917         * m4/math_h.m4 (gl_MATH_H): Require inline.
34918         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34919         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34920         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34921         implement warnings.
34922
34923         unistd: warn on use of environ without module
34924         * modules/unistd (Depends-on): Add warn-on-use.
34925         (Makefile.am): Provide new substitutions.
34926         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34927         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34928
34929         stdio: warn on suspicious uses
34930         * modules/stdio (Depends-on): Add warn-on-use.
34931         (Makefile.am): Provide new substitutions.
34932         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34933         fseeko.
34934         * lib/stdio.in.h (gets): Always warn on use.
34935         (fseek, ftell): Adjust when warnings are issued, and honor
34936         _GL_NO_LARGE_FILES as a way to silence the warning.
34937         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34938         any warning about large file offsets.
34939         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34940         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34941         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34942         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34943         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34944         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34945         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34946         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34947
34948         warn-on-use: new module
34949         * modules/warn-on-use: New file.
34950         * build-aux/warn-on-use.h: Likewise.
34951         * m4/warn-on-use.m4: Likewise.
34952         * MODULES.html.sh (Support for building): Mention it.
34953
34954 2010-01-10  Bruno Haible  <bruno@clisp.org>
34955
34956         Tests for module 'unistr/u32-strdup'.
34957         * modules/unistr/u32-strdup-tests: New file.
34958         * tests/unistr/test-u32-strdup.c: New file.
34959
34960         Tests for module 'unistr/u16-strdup'.
34961         * modules/unistr/u16-strdup-tests: New file.
34962         * tests/unistr/test-u16-strdup.c: New file.
34963
34964         Tests for module 'unistr/u8-strdup'.
34965         * modules/unistr/u8-strdup-tests: New file.
34966         * tests/unistr/test-u8-strdup.c: New file.
34967         * tests/unistr/test-strdup.h: New file.
34968
34969         Tests for module 'unistr/u32-strncmp'.
34970         * modules/unistr/u32-strncmp-tests: New file.
34971         * tests/unistr/test-u32-strncmp.c: New file.
34972
34973         Tests for module 'unistr/u16-strncmp'.
34974         * modules/unistr/u16-strncmp-tests: New file.
34975         * tests/unistr/test-u16-strncmp.c: New file.
34976
34977         Tests for module 'unistr/u8-strncmp'.
34978         * modules/unistr/u8-strncmp-tests: New file.
34979         * tests/unistr/test-u8-strncmp.c: New file.
34980         * tests/unistr/test-strncmp.h: New file.
34981
34982         Tests for module 'unistr/u32-strcoll'.
34983         * modules/unistr/u32-strcoll-tests: New file.
34984         * tests/unistr/test-u32-strcoll.c: New file.
34985
34986         Tests for module 'unistr/u16-strcoll'.
34987         * modules/unistr/u16-strcoll-tests: New file.
34988         * tests/unistr/test-u16-strcoll.c: New file.
34989
34990         Tests for module 'unistr/u8-strcoll'.
34991         * modules/unistr/u8-strcoll-tests: New file.
34992         * tests/unistr/test-u8-strcoll.c: New file.
34993
34994         Tests for module 'unistr/u32-strcmp'.
34995         * modules/unistr/u32-strcmp-tests: New file.
34996         * tests/unistr/test-u32-strcmp.c: New file.
34997         * tests/unistr/test-u32-strcmp.h: New file.
34998
34999         Tests for module 'unistr/u16-strcmp'.
35000         * modules/unistr/u16-strcmp-tests: New file.
35001         * tests/unistr/test-u16-strcmp.c: New file.
35002         * tests/unistr/test-u16-strcmp.h: New file.
35003
35004         Tests for module 'unistr/u8-strcmp'.
35005         * modules/unistr/u8-strcmp-tests: New file.
35006         * tests/unistr/test-u8-strcmp.c: New file.
35007         * tests/unistr/test-u8-strcmp.h: New file.
35008         * tests/unistr/test-strcmp.h: New file.
35009
35010         Tests for module 'unistr/u32-strncat'.
35011         * modules/unistr/u32-strncat-tests: New file.
35012         * tests/unistr/test-u32-strncat.c: New file.
35013
35014         Tests for module 'unistr/u16-strncat'.
35015         * modules/unistr/u16-strncat-tests: New file.
35016         * tests/unistr/test-u16-strncat.c: New file.
35017
35018         Tests for module 'unistr/u8-strncat'.
35019         * modules/unistr/u8-strncat-tests: New file.
35020         * tests/unistr/test-u8-strncat.c: New file.
35021         * tests/unistr/test-strncat.h: New file.
35022
35023         Tests for module 'unistr/u32-strcat'.
35024         * modules/unistr/u32-strcat-tests: New file.
35025         * tests/unistr/test-u32-strcat.c: New file.
35026
35027         Tests for module 'unistr/u16-strcat'.
35028         * modules/unistr/u16-strcat-tests: New file.
35029         * tests/unistr/test-u16-strcat.c: New file.
35030
35031         Tests for module 'unistr/u8-strcat'.
35032         * modules/unistr/u8-strcat-tests: New file.
35033         * tests/unistr/test-u8-strcat.c: New file.
35034         * tests/unistr/test-strcat.h: New file.
35035
35036         Tests for module 'unistr/u32-stpncpy'.
35037         * modules/unistr/u32-stpncpy-tests: New file.
35038         * tests/unistr/test-u32-stpncpy.c: New file.
35039
35040         Tests for module 'unistr/u16-stpncpy'.
35041         * modules/unistr/u16-stpncpy-tests: New file.
35042         * tests/unistr/test-u16-stpncpy.c: New file.
35043
35044         Tests for module 'unistr/u8-stpncpy'.
35045         * modules/unistr/u8-stpncpy-tests: New file.
35046         * tests/unistr/test-u8-stpncpy.c: New file.
35047         * tests/unistr/test-stpncpy.h: New file.
35048
35049         Tests for module 'unistr/u32-strncpy'.
35050         * modules/unistr/u32-strncpy-tests: New file.
35051         * tests/unistr/test-u32-strncpy.c: New file.
35052
35053         Tests for module 'unistr/u16-strncpy'.
35054         * modules/unistr/u16-strncpy-tests: New file.
35055         * tests/unistr/test-u16-strncpy.c: New file.
35056
35057         Tests for module 'unistr/u8-strncpy'.
35058         * modules/unistr/u8-strncpy-tests: New file.
35059         * tests/unistr/test-u8-strncpy.c: New file.
35060         * tests/unistr/test-strncpy.h: New file.
35061
35062         Tests for module 'unistr/u32-stpcpy'.
35063         * modules/unistr/u32-stpcpy-tests: New file.
35064         * tests/unistr/test-u32-stpcpy.c: New file.
35065
35066         Tests for module 'unistr/u16-stpcpy'.
35067         * modules/unistr/u16-stpcpy-tests: New file.
35068         * tests/unistr/test-u16-stpcpy.c: New file.
35069
35070         Tests for module 'unistr/u8-stpcpy'.
35071         * modules/unistr/u8-stpcpy-tests: New file.
35072         * tests/unistr/test-u8-stpcpy.c: New file.
35073         * tests/unistr/test-stpcpy.h: New file.
35074
35075         Tests for module 'unistr/u32-strcpy'.
35076         * modules/unistr/u32-strcpy-tests: New file.
35077         * tests/unistr/test-u32-strcpy.c: New file.
35078
35079         Tests for module 'unistr/u16-strcpy'.
35080         * modules/unistr/u16-strcpy-tests: New file.
35081         * tests/unistr/test-u16-strcpy.c: New file.
35082
35083         Tests for module 'unistr/u8-strcpy'.
35084         * modules/unistr/u8-strcpy-tests: New file.
35085         * tests/unistr/test-u8-strcpy.c: New file.
35086         * tests/unistr/test-strcpy.h: New file.
35087
35088         Tests for module 'unistr/u32-strnlen'.
35089         * modules/unistr/u32-strnlen-tests: New file.
35090         * tests/unistr/test-u32-strnlen.c: New file.
35091
35092         Tests for module 'unistr/u16-strnlen'.
35093         * modules/unistr/u16-strnlen-tests: New file.
35094         * tests/unistr/test-u16-strnlen.c: New file.
35095
35096         Tests for module 'unistr/u8-strnlen'.
35097         * modules/unistr/u8-strnlen-tests: New file.
35098         * tests/unistr/test-u8-strnlen.c: New file.
35099         * tests/unistr/test-strnlen.h: New file.
35100
35101         Tests for module 'unistr/u32-strlen'.
35102         * modules/unistr/u32-strlen-tests: New file.
35103         * tests/unistr/test-u32-strlen.c: New file.
35104
35105         Tests for module 'unistr/u16-strlen'.
35106         * modules/unistr/u16-strlen-tests: New file.
35107         * tests/unistr/test-u16-strlen.c: New file.
35108
35109         Tests for module 'unistr/u8-strlen'.
35110         * modules/unistr/u8-strlen-tests: New file.
35111         * tests/unistr/test-u8-strlen.c: New file.
35112
35113         Tests for module 'unistr/u32-prev'.
35114         * modules/unistr/u32-prev-tests: New file.
35115         * tests/unistr/test-u32-prev.c: New file.
35116
35117         Tests for module 'unistr/u16-prev'.
35118         * modules/unistr/u16-prev-tests: New file.
35119         * tests/unistr/test-u16-prev.c: New file.
35120
35121         Tests for module 'unistr/u8-prev'.
35122         * modules/unistr/u8-prev-tests: New file.
35123         * tests/unistr/test-u8-prev.c: New file.
35124
35125         Tests for module 'unistr/u32-next'.
35126         * modules/unistr/u32-next-tests: New file.
35127         * tests/unistr/test-u32-next.c: New file.
35128
35129         Tests for module 'unistr/u16-next'.
35130         * modules/unistr/u16-next-tests: New file.
35131         * tests/unistr/test-u16-next.c: New file.
35132
35133         Tests for module 'unistr/u8-next'.
35134         * modules/unistr/u8-next-tests: New file.
35135         * tests/unistr/test-u8-next.c: New file.
35136
35137         Tests for module 'unistr/u32-strmbtouc'.
35138         * modules/unistr/u32-strmbtouc-tests: New file.
35139         * tests/unistr/test-u32-strmbtouc.c: New file.
35140
35141         Tests for module 'unistr/u16-strmbtouc'.
35142         * modules/unistr/u16-strmbtouc-tests: New file.
35143         * tests/unistr/test-u16-strmbtouc.c: New file.
35144
35145         Tests for module 'unistr/u8-strmbtouc'.
35146         * modules/unistr/u8-strmbtouc-tests: New file.
35147         * tests/unistr/test-u8-strmbtouc.c: New file.
35148
35149         Tests for module 'unistr/u32-strmblen'.
35150         * modules/unistr/u32-strmblen-tests: New file.
35151         * tests/unistr/test-u32-strmblen.c: New file.
35152
35153         Tests for module 'unistr/u16-strmblen'.
35154         * modules/unistr/u16-strmblen-tests: New file.
35155         * tests/unistr/test-u16-strmblen.c: New file.
35156
35157         Tests for module 'unistr/u8-strmblen'.
35158         * modules/unistr/u8-strmblen-tests: New file.
35159         * tests/unistr/test-u8-strmblen.c: New file.
35160
35161         Tests for module 'unistr/u32-cpy-alloc'.
35162         * modules/unistr/u32-cpy-alloc-tests: New file.
35163         * tests/unistr/test-u32-cpy-alloc.c: New file.
35164
35165         Tests for module 'unistr/u16-cpy-alloc'.
35166         * modules/unistr/u16-cpy-alloc-tests: New file.
35167         * tests/unistr/test-u16-cpy-alloc.c: New file.
35168
35169         Tests for module 'unistr/u8-cpy-alloc'.
35170         * modules/unistr/u8-cpy-alloc-tests: New file.
35171         * tests/unistr/test-u8-cpy-alloc.c: New file.
35172         * tests/unistr/test-cpy-alloc.h: New file.
35173
35174         Tests for module 'unistr/u32-mbsnlen'.
35175         * modules/unistr/u32-mbsnlen-tests: New file.
35176         * tests/unistr/test-u32-mbsnlen.c: New file.
35177
35178         Tests for module 'unistr/u16-mbsnlen'.
35179         * modules/unistr/u16-mbsnlen-tests: New file.
35180         * tests/unistr/test-u16-mbsnlen.c: New file.
35181
35182         Tests for module 'unistr/u8-mbsnlen'.
35183         * modules/unistr/u8-mbsnlen-tests: New file.
35184         * tests/unistr/test-u8-mbsnlen.c: New file.
35185
35186         Tests for module 'unistr/u32-chr'.
35187         * modules/unistr/u32-chr-tests: New file.
35188         * tests/unistr/test-u32-chr.c: New file.
35189
35190         Tests for module 'unistr/u16-chr'.
35191         * modules/unistr/u16-chr-tests: New file.
35192         * tests/unistr/test-u16-chr.c: New file.
35193
35194         Tests for module 'unistr/u8-chr'.
35195         * modules/unistr/u8-chr-tests: New file.
35196         * tests/unistr/test-u8-chr.c: New file.
35197         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35198
35199         Tests for module 'unistr/u32-cmp2'.
35200         * modules/unistr/u32-cmp2-tests: New file.
35201         * tests/unistr/test-u32-cmp2.c: New file.
35202
35203         Tests for module 'unistr/u16-cmp2'.
35204         * modules/unistr/u16-cmp2-tests: New file.
35205         * tests/unistr/test-u16-cmp2.c: New file.
35206
35207         Tests for module 'unistr/u8-cmp2'.
35208         * modules/unistr/u8-cmp2-tests: New file.
35209         * tests/unistr/test-u8-cmp2.c: New file.
35210         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35211
35212         Tests for module 'unistr/u32-cmp'.
35213         * modules/unistr/u32-cmp-tests: New file.
35214         * tests/unistr/test-u32-cmp.c: New file.
35215
35216         Tests for module 'unistr/u16-cmp'.
35217         * modules/unistr/u16-cmp-tests: New file.
35218         * tests/unistr/test-u16-cmp.c: New file.
35219
35220         Tests for module 'unistr/u8-cmp'.
35221         * modules/unistr/u8-cmp-tests: New file.
35222         * tests/unistr/test-u8-cmp.c: New file.
35223         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35224
35225         Tests for module 'unistr/u32-set'.
35226         * modules/unistr/u32-set-tests: New file.
35227         * tests/unistr/test-u32-set.c: New file.
35228
35229         Tests for module 'unistr/u16-set'.
35230         * modules/unistr/u16-set-tests: New file.
35231         * tests/unistr/test-u16-set.c: New file.
35232
35233         Tests for module 'unistr/u8-set'.
35234         * modules/unistr/u8-set-tests: New file.
35235         * tests/unistr/test-u8-set.c: New file.
35236         * tests/unistr/test-set.h: New file.
35237
35238         Tests for module 'unistr/u32-move'.
35239         * modules/unistr/u32-move-tests: New file.
35240         * tests/unistr/test-u32-move.c: New file.
35241
35242         Tests for module 'unistr/u16-move'.
35243         * modules/unistr/u16-move-tests: New file.
35244         * tests/unistr/test-u16-move.c: New file.
35245
35246         Tests for module 'unistr/u8-move'.
35247         * modules/unistr/u8-move-tests: New file.
35248         * tests/unistr/test-u8-move.c: New file.
35249         * tests/unistr/test-move.h: New file.
35250
35251         Tests for module 'unistr/u32-cpy'.
35252         * modules/unistr/u32-cpy-tests: New file.
35253         * tests/unistr/test-u32-cpy.c: New file.
35254
35255         Tests for module 'unistr/u16-cpy'.
35256         * modules/unistr/u16-cpy-tests: New file.
35257         * tests/unistr/test-u16-cpy.c: New file.
35258
35259         Tests for module 'unistr/u8-cpy'.
35260         * modules/unistr/u8-cpy-tests: New file.
35261         * tests/unistr/test-u8-cpy.c: New file.
35262         * tests/unistr/test-cpy.h: New file.
35263
35264 2010-01-09  Bruno Haible  <bruno@clisp.org>
35265
35266         Tests for module 'unistr/u32-uctomb'.
35267         * modules/unistr/u32-uctomb-tests: New file.
35268         * tests/unistr/test-u32-uctomb.c: New file.
35269
35270         Tests for module 'unistr/u16-uctomb'.
35271         * modules/unistr/u16-uctomb-tests: New file.
35272         * tests/unistr/test-u16-uctomb.c: New file.
35273
35274         Tests for module 'unistr/u8-uctomb'.
35275         * modules/unistr/u8-uctomb-tests: New file.
35276         * tests/unistr/test-u8-uctomb.c: New file.
35277
35278         Tests for module 'unistr/u32-mbtoucr'.
35279         * modules/unistr/u32-mbtoucr-tests: New file.
35280         * tests/unistr/test-u32-mbtoucr.c: New file.
35281
35282         Tests for module 'unistr/u16-mbtoucr'.
35283         * modules/unistr/u16-mbtoucr-tests: New file.
35284         * tests/unistr/test-u16-mbtoucr.c: New file.
35285
35286         Tests for module 'unistr/u8-mbtoucr'.
35287         * modules/unistr/u8-mbtoucr-tests: New file.
35288         * tests/unistr/test-u8-mbtoucr.c: New file.
35289
35290         Tests for module 'unistr/u32-mbtouc'.
35291         * modules/unistr/u32-mbtouc-tests: New file.
35292         * tests/unistr/test-u32-mbtouc.c: New file.
35293
35294         Tests for module 'unistr/u16-mbtouc'.
35295         * modules/unistr/u16-mbtouc-tests: New file.
35296         * tests/unistr/test-u16-mbtouc.c: New file.
35297
35298         Tests for module 'unistr/u8-mbtouc'.
35299         * modules/unistr/u8-mbtouc-tests: New file.
35300         * tests/unistr/test-u8-mbtouc.c: New file.
35301
35302         Tests for module 'unistr/u32-mbtouc-unsafe'.
35303         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35304         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35305         * tests/unistr/test-u32-mbtouc.h: New file.
35306
35307         Tests for module 'unistr/u16-mbtouc-unsafe'.
35308         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35309         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35310         * tests/unistr/test-u16-mbtouc.h: New file.
35311
35312         Tests for module 'unistr/u8-mbtouc-unsafe'.
35313         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35314         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35315         * tests/unistr/test-u8-mbtouc.h: New file.
35316
35317         Tests for module 'unistr/u32-mblen'.
35318         * modules/unistr/u32-mblen-tests: New file.
35319         * tests/unistr/test-u32-mblen.c: New file.
35320
35321         Tests for module 'unistr/u16-mblen'.
35322         * modules/unistr/u16-mblen-tests: New file.
35323         * tests/unistr/test-u16-mblen.c: New file.
35324
35325         Tests for module 'unistr/u8-mblen'.
35326         * modules/unistr/u8-mblen-tests: New file.
35327         * tests/unistr/test-u8-mblen.c: New file.
35328
35329         Tests for module 'unistr/u32-to-u16'.
35330         * modules/unistr/u32-to-u16-tests: New file.
35331         * tests/unistr/test-u32-to-u16.c: New file.
35332
35333         Tests for module 'unistr/u32-to-u8'.
35334         * modules/unistr/u32-to-u8-tests: New file.
35335         * tests/unistr/test-u32-to-u8.c: New file.
35336
35337         Tests for module 'unistr/u16-to-u32'.
35338         * modules/unistr/u16-to-u32-tests: New file.
35339         * tests/unistr/test-u16-to-u32.c: New file.
35340
35341         Tests for module 'unistr/u16-to-u8'.
35342         * modules/unistr/u16-to-u8-tests: New file.
35343         * tests/unistr/test-u16-to-u8.c: New file.
35344
35345         Tests for module 'unistr/u8-to-u32'.
35346         * modules/unistr/u8-to-u32-tests: New file.
35347         * tests/unistr/test-u8-to-u32.c: New file.
35348
35349         Tests for module 'unistr/u8-to-u16'.
35350         * modules/unistr/u8-to-u16-tests: New file.
35351         * tests/unistr/test-u8-to-u16.c: New file.
35352
35353         Tests for module 'unistr/u32-check'.
35354         * modules/unistr/u32-check-tests: New file.
35355         * tests/unistr/test-u32-check.c: New file.
35356
35357         Tests for module 'unistr/u16-check'.
35358         * modules/unistr/u16-check-tests: New file.
35359         * tests/unistr/test-u16-check.c: New file.
35360
35361         Tests for module 'unistr/u8-check'.
35362         * modules/unistr/u8-check-tests: New file.
35363         * tests/unistr/test-u8-check.c: New file.
35364
35365         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
35366         (category_equals): New function.
35367         (main): Add more tests.
35368         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
35369
35370         * tests/unictype/test-bidi_byname.c (main): Add more tests.
35371
35372 2010-01-10  Bruno Haible  <bruno@clisp.org>
35373
35374         unistr/u*-strcoll: Try harder to distinguish different strings.
35375         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
35376         compare s1 and s2 to see if they are different.
35377
35378 2010-01-10  Bruno Haible  <bruno@clisp.org>
35379
35380         unistr/u*-stpncpy: Fix the return value.
35381         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
35382         description of the return value consistent with stpncpy in glibc.
35383         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
35384         written non-NUL unit.
35385
35386 2010-01-10  Bruno Haible  <bruno@clisp.org>
35387
35388         unistr/u*-next: Add missing dependencies.
35389         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
35390         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
35391         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
35392
35393 2010-01-10  Bruno Haible  <bruno@clisp.org>
35394
35395         unistr/u8-mbsnlen: Fix return value for incomplete character.
35396         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
35397         u8_mblen.
35398         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
35399         Remove unistr/u8-mblen.
35400         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
35401         u16_mblen.
35402         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
35403         Remove unistr/u16-mblen.
35404
35405 2010-01-10  Bruno Haible  <bruno@clisp.org>
35406
35407         wchar: Fix compilation error when <wchar.h> is used from coreutils.
35408         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
35409         Reported by Brian Gough <bjg@gnu.org> and
35410         Chris Clayton <chris2553@googlemail.com> via
35411         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35412
35413 2010-01-09  Bruno Haible  <bruno@clisp.org>
35414
35415         unistr/u16-to-u32: Reject invalid input.
35416         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
35417         u16_mbtouc.
35418         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
35419         Remove unistr/u16-mbtouc.
35420
35421         unistr/u16-to-u8: Reject invalid input.
35422         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35423         u16_mbtouc.
35424         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35425         Remove unistr/u16-mbtouc.
35426
35427         unistr/u8-to-u32: Reject invalid input.
35428         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35429         u8_mbtouc.
35430         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35431         Remove unistr/u8-mbtouc.
35432
35433         unistr/u8-to-u16: Reject invalid input.
35434         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35435         u8_mbtouc.
35436         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35437         Remove unistr/u8-mbtouc.
35438
35439 2010-01-09  Bruno Haible  <bruno@clisp.org>
35440
35441         Tests for module 'getlogin'.
35442         * modules/getlogin-tests: New file.
35443         * tests/test-getlogin.c: New file.
35444
35445         New module 'getlogin'.
35446         * lib/unistd.in.h (getlogin): New declaration.
35447         * lib/getlogin.c: New file.
35448         * m4/getlogin.m4: New file.
35449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
35450         HAVE_GETLOGIN.
35451         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
35452         HAVE_GETLOGIN.
35453         * modules/getlogin: New file.
35454         * doc/posix-functions/getlogin.texi: Mention the new module.
35455         Reported by John W. Eaton <jwe@gnu.org>.
35456
35457 2010-01-09  Bruno Haible  <bruno@clisp.org>
35458
35459         getlogin_r: Support for native Windows.
35460         * lib/getlogin_r.c: Include <windows.h>
35461         (getlogin_r): Implement for native Windows.
35462         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35463         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35464         via John W. Eaton <jwe@gnu.org>.
35465
35466 2010-01-09  Bruno Haible  <bruno@clisp.org>
35467
35468         getlogin_r: Small fixes.
35469         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35470         succeeds.
35471         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
35472         before testing whether getlogin_r is declared. No need to set
35473         HAVE_DECL_GETLOGIN_R to 1.
35474         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
35475
35476 2010-01-09  Bruno Haible  <bruno@clisp.org>
35477
35478         * lib/unistd.in.h (getlogin_r): Add comment.
35479
35480 2010-01-09  Bruno Haible  <bruno@clisp.org>
35481
35482         Tests for module 'getlogin_r'.
35483         * modules/getlogin_r-tests: New file.
35484         * tests/test-getlogin_r.c: New file.
35485
35486 2010-01-09  Jim Meyering  <meyering@redhat.com>
35487
35488         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
35489         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
35490         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
35491
35492 2010-01-08  Simon Josefsson  <simon@josefsson.org>
35493
35494         * lib/dup2.c (rpl_dup2): Improve comment.
35495
35496 2010-01-08  Eric Blake  <ebb9@byu.net>
35497
35498         maint.mk: allow packages to add makefile @@ exceptions
35499         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
35500         (sc_makefile_check): Rename...
35501         (sc_makefile_at_at_check): ...to this, and use hook.
35502
35503         dup2: work around mingw bug
35504         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
35505         Reported by Simon Josefsson.
35506
35507 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
35508
35509         glob: Fix C++ compilation.
35510         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
35511         C++.
35512
35513 2010-01-07  Bruno Haible  <bruno@clisp.org>
35514
35515         Fix indentation of wctype.in.h, broken since 2007-01-06.
35516         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35517
35518 2010-01-07  Bruno Haible  <bruno@clisp.org>
35519
35520         mbslen: Avoid collision with system function.
35521         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35522         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35523         * m4/mbslen.m4: New file.
35524         * modules/mbslen (Files): Add it.
35525         (configure.ac): Invoke gl_MBSLEN.
35526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35527         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35528         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35529         via Ian Beckwith <ianb@erislabs.net>.
35530
35531 2010-01-07  Bruno Haible  <bruno@clisp.org>
35532
35533         dirent: Document the last fix.
35534         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35535
35536 2010-01-07  Bruno Haible  <bruno@clisp.org>
35537
35538         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35539         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35540         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35541         va_list are defined.
35542         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35543         Reported by Eric Blake.
35544
35545 2010-01-07  Bruno Haible  <bruno@clisp.org>
35546
35547         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35548         * modules/xlist (Depends-on): Add 'list',
35549         * modules/xoset (Depends-on): Add 'oset'.
35550         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35551
35552 2010-01-07  Bruno Haible  <bruno@clisp.org>
35553
35554         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35555         * doc/posix-functions/strncasecmp.texi: Likewise.
35556
35557 2010-01-07  Bruno Haible  <bruno@clisp.org>
35558
35559         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35560
35561 2010-01-07  John W. Eaton  <jwe@octave.org>
35562
35563         wctype: allow C++ use
35564         * lib/wctype.in.h: Add extern "C" block for C++.
35565
35566 2010-01-06  Eric Blake  <ebb9@byu.net>
35567
35568         maint.mk: detect incorrect GFDL usage
35569         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35570
35571 2010-01-06  Jim Meyering  <meyering@redhat.com>
35572         and Eric Blake  <ebb9@byu.net>
35573
35574         maint.mk: ignore multi-line copyright in NEWS
35575         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35576
35577 2010-01-06  Eric Blake  <ebb9@byu.net>
35578
35579         select: add missing dependency
35580         * modules/select-tests (Depends-on): Move sockets dependency...
35581         * modules/select (Depends-on): ...here.
35582         Reported by Ian Beckwith.
35583
35584         doc: regenerate INSTALL
35585         * doc/INSTALL: Reflect recent autoconf update.
35586         * doc/INSTALL.ISO: Likewise.
35587         * doc/INSTALL.UTF-8: Likewise.
35588
35589         pread: fix compilation on glibc
35590         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35591         Reported by Ralf Wildenhues.
35592
35593         dirent: fix test failure
35594         * lib/dirent.in.h (includes): Guarantee ino_t.
35595         Reported by Ralf Wildenhues.
35596
35597 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35598
35599         linkat, renameat: avoid bad free
35600         * lib/at-func2.c (at_func2): Fix typo.
35601         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35602
35603 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35604
35605         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35606         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35607         to avoid failure of symlink test later.
35608
35609 2010-01-06  Eric Blake  <ebb9@byu.net>
35610
35611         stdio, unistd: guarantee ssize_t
35612         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35613         2008 are exposed when needed.
35614         * lib/stdio.in.h (includes): Likewise.
35615         Reported by Ralf Wildenhues.
35616
35617 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35618
35619         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35620         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35621         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35622
35623 2010-01-06  Jim Meyering  <meyering@redhat.com>
35624
35625         readtokens: this module *does* require xalloc.h
35626         It uses only functions that were omitted by the old syntax-check rule.
35627         * lib/readtokens.c: Include "xalloc.h" once again.
35628         * modules/readtokens (Depends-on): Add xalloc.
35629         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35630
35631 2010-01-05  Eric Blake  <ebb9@byu.net>
35632
35633         maint: support 'make announcement' from a VPATH build
35634         * top/maint.mk (announcement): Look for correct NEWS file.
35635
35636 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35637
35638         utimens (fdutimens): ignore a negative FD, per contract
35639         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35640         when we have a valid file descriptor.  Otherwise, using a brand
35641         new glibc (with just-patched futimens that now fails with EBADF)
35642         would cause this function to fail with ENOSYS.
35643         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35644         See also http://bugzilla.redhat.com/552320.
35645
35646 2010-01-05  Eric Blake  <ebb9@byu.net>
35647
35648         strcase: document what it provides
35649         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35650         gnulib module.
35651         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35652         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35653
35654 2010-01-05  Jim Meyering  <meyering@redhat.com>
35655
35656         maint: remove useless inclusions of "xalloc.h"
35657         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35658         * lib/readtokens.c: Likewise.
35659         * lib/same.c: Likewise.
35660         * modules/getloadavg (Depends-on): Remove xalloc.
35661         * modules/readtokens: Likewise.
35662         * modules/same: Likewise.
35663
35664         maint.mk: include 4 more function names in alloca.h-checking regexp
35665         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35666         regexp.  Before, we would give a false-positive (saying alloca.h
35667         is included unnecessarily) when the only uses involved omitted symbols.
35668
35669         xalloc.h: use consistent formatting
35670         * lib/xalloc.h: Move declarations to start in the first column.
35671
35672 2010-01-05  Eric Blake  <ebb9@byu.net>
35673
35674         mkdir: avoid xalloc
35675         * lib/mkdir.c (includes): Drop unused header.
35676         Reported by John W. Eaton.
35677
35678 2010-01-04  Jim Meyering  <meyering@redhat.com>
35679
35680         nl_langinfo: avoid configure-time syntax error
35681         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35682         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35683         the empty string.  Don't let that provoke a shell syntax error.
35684
35685         regcomp, regexec, fnmatch: avoid array bounds read error
35686         * lib/regcomp.c (build_equiv_class): From glibc:
35687         Use only the low 24 bits of a findidx return value as an index
35688         into the weights array.  Patch by Ulrich Drepper:
35689         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35690         * lib/regexec.c (check_node_accept_bytes): Likewise.
35691         * lib/fnmatch_loop.c (FCT): Likewise.
35692
35693         regcomp: skip collseq lookup when there are no rules
35694         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35695         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35696
35697         regcomp: recognize ill-formed { } expressions
35698         * lib/regcomp.c (parse_dup_op): From glibc:
35699         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35700
35701         regcomp: fix typo in comment
35702         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35703         s/satisfy/satisfies/.
35704
35705         regcomp: sync from glibc: remove dead store
35706         * lib/regcomp.c (duplicate_node_closure): Remove useless
35707         search_duplicated_node call and dead store.
35708
35709         regcomp: sync from glibc; always use nl_langinfo
35710         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35711         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35712         * modules/regex (Depends-on): Add nl_langinfo.
35713
35714 2010-01-04  Eric Blake  <ebb9@byu.net>
35715
35716         fdopendir: fix configure test
35717         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35718
35719 2010-01-01  Bruno Haible  <bruno@clisp.org>
35720
35721         wchar: Remove unused configure check.
35722         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35723
35724 2010-01-01  Eric Blake  <ebb9@byu.net>
35725
35726         headers: make check of system header explicit
35727         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35728         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35729         ourselves.
35730         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35731         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35732         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35733         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35734         internals.
35735         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35736         missing.
35737         Suggested by Bruno Haible.
35738
35739 2010-01-01  Jim Meyering  <meyering@redhat.com>
35740
35741         ChangeLog: tweak to eliminate unnecessary copyright line
35742         * ChangeLog: Remove a copyright line that was mistakenly updated
35743         by today's update-copyright run.  Reported by Eric Blake.
35744
35745         test-update-copyright: don't let envvar setting cause test failure
35746         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35747
35748 2010-01-01  Bruno Haible  <bruno@clisp.org>
35749
35750         localename: Avoid gcc warning.
35751         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35752         function if it is not used.
35753
35754 2010-01-01  Jim Meyering  <meyering@redhat.com>
35755
35756         update nearly all FSF copyright year lists to include 2010
35757         Use the same procedure as for 2009, outlined in
35758         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35759
35760         version-etc: set COPYRIGHT_YEAR to 2010
35761         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35762
35763 2009-12-31  Eric Blake  <ebb9@byu.net>
35764
35765         doc: correct availability of cygwin 1.5.x getopt
35766         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35767         variables.
35768         * doc/posix-functions/opterr.texi (opterr): Likewise.
35769         * doc/posix-functions/optind.texi (optind): Likewise.
35770         * doc/posix-functions/optopt.texi (optopt): Likewise.
35771         * doc/posix-functions/tzname.texi (tzname): Likewise.
35772
35773         openat: update maintainer
35774         * modules/openat (Maintainer): Add myself.
35775
35776         utimens: avoid shadowing warning
35777         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35778         buffers into one, to avoid shadowing, as well as avoiding a
35779         redundant stat.
35780         Reported by Jim Meyering.
35781
35782         test-dup2: avoid compiler warning
35783         * tests/test-dup2.c (is_inheritable): Only define if used.
35784
35785 2010-01-01  Bruno Haible  <bruno@clisp.org>
35786
35787         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35788         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35789         defined, use wctomb instead of wcrtomb.
35790
35791 2010-01-01  Bruno Haible  <bruno@clisp.org>
35792
35793         iconv: Reject native Solaris iconv.
35794         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35795         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35796
35797 2009-12-31  Bruno Haible  <bruno@clisp.org>
35798
35799         * tests/test-signal.c (main): Remove test of 'SIG'.
35800
35801 2009-12-31  Bruno Haible  <bruno@clisp.org>
35802
35803         spawn: Fix incomplete fix.
35804         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35805         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35806         warnings for GNULIB_POSIXCHECK again.
35807         Reported by Eric Blake.
35808
35809 2009-12-31  Bruno Haible  <bruno@clisp.org>
35810
35811         Avoid namespace pollution on glibc systems.
35812         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35813         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35814         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35815         glibc systems.
35816
35817 2009-12-31  Bruno Haible  <bruno@clisp.org>
35818
35819         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35820         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35821         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35822         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35823         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35824         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35825         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35826
35827 2009-12-31  Bruno Haible  <bruno@clisp.org>
35828
35829         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35830         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35831         afterwards.
35832
35833 2009-12-31  Bruno Haible  <bruno@clisp.org>
35834
35835         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35836         SYS_UTSNAME_H.
35837
35838 2009-12-31  Bruno Haible  <bruno@clisp.org>
35839
35840         spawn: Fix misapplied patch.
35841         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35842         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35843         warnings for GNULIB_POSIXCHECK.
35844
35845 2009-12-31  Bruno Haible  <bruno@clisp.org>
35846
35847         times: Update after sys_times changed.
35848         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35849         * modules/times (Files): Add it.
35850         (configure.ac): Invoke gl_FUNC_TIMES.
35851
35852 2009-12-31  Bruno Haible  <bruno@clisp.org>
35853
35854         Use AC_C_INLINE where necessary.
35855         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35856         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35857         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35858         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35859         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35860         * m4/mbiter.m4 (gl_MBITER): Likewise.
35861         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35862         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35863         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35864         * modules/u64 (configure.ac): Likewise.
35865
35866 2009-12-31  Bruno Haible  <bruno@clisp.org>
35867
35868         Use AC_C_INLINE instead of module 'inline' where possible.
35869         * modules/inline (Description): Clarify purpose.
35870         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35871         * modules/count-one-bits (Depends-on): Remove inline.
35872         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35873         * modules/openat (Depends-on): Remove inline.
35874         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35875         instead of depending on module 'inline'.
35876         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35877         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35878         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35879         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35880         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35881         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35882         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35883         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35884         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35885         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35886         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35887         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35888         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35889         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35890         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35891         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35892         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35893         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35894         Likewise.
35895         * modules/unictype/property-ascii-hex-digit (Depends-on,
35896         configure.ac): Likewise.
35897         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35898         configure.ac): Likewise.
35899         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35900         configure.ac): Likewise.
35901         * modules/unictype/property-bidi-block-separator (Depends-on,
35902         configure.ac): Likewise.
35903         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35904         configure.ac): Likewise.
35905         * modules/unictype/property-bidi-common-separator (Depends-on,
35906         configure.ac): Likewise.
35907         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35908         Likewise.
35909         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35910         configure.ac): Likewise.
35911         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35912         configure.ac): Likewise.
35913         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35914         configure.ac): Likewise.
35915         * modules/unictype/property-bidi-european-digit (Depends-on,
35916         configure.ac): Likewise.
35917         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35918         configure.ac): Likewise.
35919         * modules/unictype/property-bidi-left-to-right (Depends-on,
35920         configure.ac): Likewise.
35921         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35922         configure.ac): Likewise.
35923         * modules/unictype/property-bidi-other-neutral (Depends-on,
35924         configure.ac): Likewise.
35925         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35926         Likewise.
35927         * modules/unictype/property-bidi-segment-separator (Depends-on,
35928         configure.ac): Likewise.
35929         * modules/unictype/property-bidi-whitespace (Depends-on,
35930         configure.ac): Likewise.
35931         * modules/unictype/property-combining (Depends-on, configure.ac):
35932         Likewise.
35933         * modules/unictype/property-composite (Depends-on, configure.ac):
35934         Likewise.
35935         * modules/unictype/property-currency-symbol (Depends-on,
35936         configure.ac): Likewise.
35937         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35938         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35939         Likewise.
35940         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35941         configure.ac): Likewise.
35942         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35943         Likewise.
35944         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35945         Likewise.
35946         * modules/unictype/property-extender (Depends-on, configure.ac):
35947         Likewise.
35948         * modules/unictype/property-format-control (Depends-on, configure.ac):
35949         Likewise.
35950         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35951         Likewise.
35952         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35953         Likewise.
35954         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35955         Likewise.
35956         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35957         Likewise.
35958         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35959         Likewise.
35960         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35961         Likewise.
35962         * modules/unictype/property-id-start (Depends-on, configure.ac):
35963         Likewise.
35964         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35965         Likewise.
35966         * modules/unictype/property-ids-binary-operator (Depends-on,
35967         configure.ac): Likewise.
35968         * modules/unictype/property-ids-trinary-operator (Depends-on,
35969         configure.ac): Likewise.
35970         * modules/unictype/property-ignorable-control (Depends-on,
35971         configure.ac): Likewise.
35972         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35973         Likewise.
35974         * modules/unictype/property-join-control (Depends-on, configure.ac):
35975         Likewise.
35976         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35977         Likewise.
35978         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35979         Likewise.
35980         * modules/unictype/property-logical-order-exception (Depends-on,
35981         configure.ac): Likewise.
35982         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35983         Likewise.
35984         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35985         * modules/unictype/property-non-break (Depends-on, configure.ac):
35986         Likewise.
35987         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35988         Likewise.
35989         * modules/unictype/property-numeric (Depends-on, configure.ac):
35990         Likewise.
35991         * modules/unictype/property-other-alphabetic (Depends-on,
35992         configure.ac): Likewise.
35993         * modules/unictype/property-other-default-ignorable-code-point
35994         (Depends-on, configure.ac): Likewise.
35995         * modules/unictype/property-other-grapheme-extend (Depends-on,
35996         configure.ac): Likewise.
35997         * modules/unictype/property-other-id-continue (Depends-on,
35998         configure.ac): Likewise.
35999         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
36000         Likewise.
36001         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
36002         Likewise.
36003         * modules/unictype/property-other-math (Depends-on, configure.ac):
36004         Likewise.
36005         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
36006         Likewise.
36007         * modules/unictype/property-paired-punctuation (Depends-on,
36008         configure.ac): Likewise.
36009         * modules/unictype/property-paragraph-separator (Depends-on,
36010         configure.ac): Likewise.
36011         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
36012         Likewise.
36013         * modules/unictype/property-pattern-white-space (Depends-on,
36014         configure.ac): Likewise.
36015         * modules/unictype/property-private-use (Depends-on, configure.ac):
36016         Likewise.
36017         * modules/unictype/property-punctuation (Depends-on, configure.ac):
36018         Likewise.
36019         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
36020         Likewise.
36021         * modules/unictype/property-radical (Depends-on, configure.ac):
36022         Likewise.
36023         * modules/unictype/property-sentence-terminal (Depends-on,
36024         configure.ac): Likewise.
36025         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
36026         Likewise.
36027         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
36028         * modules/unictype/property-terminal-punctuation (Depends-on,
36029         configure.ac): Likewise.
36030         * modules/unictype/property-titlecase (Depends-on, configure.ac):
36031         Likewise.
36032         * modules/unictype/property-unassigned-code-value (Depends-on,
36033         configure.ac): Likewise.
36034         * modules/unictype/property-unified-ideograph (Depends-on,
36035         configure.ac): Likewise.
36036         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36037         Likewise.
36038         * modules/unictype/property-variation-selector (Depends-on,
36039         configure.ac): Likewise.
36040         * modules/unictype/property-white-space (Depends-on, configure.ac):
36041         Likewise.
36042         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36043         Likewise.
36044         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36045         Likewise.
36046         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36047         Likewise.
36048         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36049         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36050         Likewise.
36051
36052 2009-12-31  Bruno Haible  <bruno@clisp.org>
36053
36054         Remove unnecessary AC_C_INLINE invocation.
36055         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36056         since 2009-08-21.
36057
36058 2009-12-31  Jim Meyering  <meyering@redhat.com>
36059
36060         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36061         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36062         With this change, we can all remove the gpg_key_ID = ... definition
36063         from our respective cfg.mk files.
36064
36065         maint.mk: create announcement template in ~/, not in /tmp
36066         * top/maint.mk (emit_upload_commands): Adjust.
36067         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36068         Remove temporary file, .ci-msg.
36069
36070 2009-12-31  Eric Blake  <ebb9@byu.net>
36071
36072         link-warning: always build headers with link warnings
36073         * modules/arpa_inet (Makefile.am): Always build replacement
36074         header.
36075         * modules/ctype (Makefile.am): Likewise.
36076         * modules/dirent (Makefile.am): Likewise.
36077         * modules/inttypes (Makefile.am): Likewise.
36078         * modules/langinfo (Makefile.am): Likewise.
36079         * modules/locale (Makefile.am): Likewise.
36080         * modules/spawn (Makefile.am): Likewise.
36081         * modules/sys_file (Makefile.am): Likewise.
36082         * modules/sys_ioctl (Makefile.am): Likewise.
36083         * modules/sys_select (Makefile.am): Likewise.
36084         * modules/sys_socket (Makefile.am): Likewise.
36085         * modules/sys_times (Makefile.am): Likewise.
36086         * modules/sys_utsname (Makefile.am): Likewise.
36087         * modules/sys_wait (Makefile.am): Likewise.
36088         * modules/wchar (Makefile.am): Likewise.
36089         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36090         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36091         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36092         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36093         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36094         Likewise.
36095         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36096         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36097         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36098         Likewise.
36099         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36100         Likewise.
36101         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36102         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36103         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36104         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36105         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36106         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36107         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36108         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36109         (gl_WCHAR_H_DEFAULTS): Likewise.
36110
36111 2009-12-31  Eric Blake  <ebb9@byu.net>
36112
36113         signal, spawn: use link warnings
36114         * lib/signal.in.h (sigset_t): Make unconditional.
36115         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36116         (sigpending, sigprocmask, sigaction): Add link warnings.
36117         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36118         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36119         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36120         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36121         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36122         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36123         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36124         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36125         (posix_spawn_file_actions_destroy)
36126         (posix_spawn_file_actions_addopen)
36127         (posix_spawn_file_actions_addclose)
36128         (posix_spawn_file_actions_adddup2): Likewise.
36129         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36130         * tests/test-signal.c (main): Enhance test.
36131
36132         spawn: improve wrapper support
36133         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36134         (gl_SPAWN_H_DEFAULTS): New defaults.
36135         * modules/spawn (Makefile.am): Substitute them.
36136         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36137         Only declare if missing or broken.
36138
36139         sys_times, sys_utsname: use include_next
36140         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36141         header.
36142         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36143         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36144         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36145         * modules/sys_times (Depends-on): Add include_next.
36146         (Makefile.am): Substitute additional values.
36147         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36148         * lib/sys_times.in.h (includes): Include native header, if
36149         available.
36150         * lib/sys_utsname.in.h (includes): Likewise.
36151         * tests/test-sys_times.c (main): Enhance test.
36152
36153         fdutimensat: revert prior patch
36154         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36155         utimens.h.
36156         Reported by Bruno Haible.
36157
36158 2009-12-30  Eric Blake  <ebb9@byu.net>
36159
36160         sys_wait: drop link-warning dependency
36161         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36162         link-warning efforts.
36163         * lib/sys_wait.in.h: Likewise.
36164
36165         fdutimensat: remove bogus dependency
36166         * modules/fdutimensat (Depends-on): Drop inline.
36167
36168         unistd: fix typo
36169         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36170
36171 2009-12-30  Bruno Haible  <bruno@clisp.org>
36172
36173         Fix compilation error with Solaris cc.
36174         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36175         * lib/unicase/u16-is-invariant.c: Likewise.
36176         * lib/unicase/u32-is-invariant.c: Likewise.
36177         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36178
36179 2009-12-30  Bruno Haible  <bruno@clisp.org>
36180
36181         Fix test crash.
36182         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36183         locales.
36184         Reported by Simon Josefsson <simon@josefsson.org>.
36185
36186 2009-12-30  Bruno Haible  <bruno@clisp.org>
36187
36188         Fix compilation error on most platforms.
36189         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36190         Reported by Simon Josefsson <simon@josefsson.org>
36191         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36192
36193 2009-12-30  Eric Blake  <ebb9@byu.net>
36194
36195         futimens, utimensat: work around ntfs-3g bug
36196         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36197         a ctime bug is present, and expand workaround to cover ntfs-3g.
36198         * lib/utimens.c (fdutimens, lutimens): Likewise.
36199         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36200         (validate_timespec): Adjust return value.
36201         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36202         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36203         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36204
36205 2009-12-29  Eric Blake  <ebb9@byu.net>
36206
36207         link-warning: make usage consistent
36208         * modules/ctype (Depends-on): Add link-warning.
36209         (Makefile.am): Update rules accordingly.
36210         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36211         * modules/locale (Depends-on, Makefile.am): Likewise.
36212         * modules/sys_file (Makefile.am): Likewise.
36213         * modules/getopt-posix (Makefile.am): Delete unused link warning
36214         efforts.
36215         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36216         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36217         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36218         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36219
36220         stdio: remove unused variables
36221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36222         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36223         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36224
36225         tests: test more substitute headers
36226         * modules/ctype-tests: New file.
36227         * modules/dirent-tests: Likewise.
36228         * modules/spawn-tests: Likewise.
36229         * modules/sys_file-tests: Likewise.
36230         * modules/sys_ioctl-tests: Likewise.
36231         * modules/sys_wait-tests: Likewise.
36232         * tests/test-ctype.c: Likewise.
36233         * tests/test-dirent.c: Likewise.
36234         * tests/test-spawn.c: Likewise.
36235         * tests/test-sys_file.c: Likewise.
36236         * tests/test-sys_ioctl.c: Likewise.
36237         * tests/test-sys_wait.c: Likewise.
36238         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36239         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36240         whether or not flock is in use.
36241
36242         tests: remove License section from module
36243         * modules/arpa_inet-tests: Remove unneeded section.
36244         * modules/byteswap-tests: Likewise.
36245         * modules/ceilf-tests: Likewise.
36246         * modules/ceill-tests: Likewise.
36247         * modules/crypto/des-tests: Likewise.
36248         * modules/crypto/gc-arcfour-tests: Likewise.
36249         * modules/crypto/gc-arctwo-tests: Likewise.
36250         * modules/crypto/gc-des-tests: Likewise.
36251         * modules/crypto/gc-hmac-md5-tests: Likewise.
36252         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36253         * modules/crypto/gc-md2-tests: Likewise.
36254         * modules/crypto/gc-md4-tests: Likewise.
36255         * modules/crypto/gc-md5-tests: Likewise.
36256         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36257         * modules/crypto/gc-rijndael-tests: Likewise.
36258         * modules/crypto/gc-sha1-tests: Likewise.
36259         * modules/crypto/gc-tests: Likewise.
36260         * modules/crypto/md2-tests: Likewise.
36261         * modules/crypto/md4-tests: Likewise.
36262         * modules/fcntl-h-tests: Likewise.
36263         * modules/floorf-tests: Likewise.
36264         * modules/floorl-tests: Likewise.
36265         * modules/frexp-nolibm-tests: Likewise.
36266         * modules/frexp-tests: Likewise.
36267         * modules/frexpl-nolibm-tests: Likewise.
36268         * modules/frexpl-tests: Likewise.
36269         * modules/getaddrinfo-tests: Likewise.
36270         * modules/inttypes-tests: Likewise.
36271         * modules/isfinite-tests: Likewise.
36272         * modules/isinf-tests: Likewise.
36273         * modules/ldexpl-tests: Likewise.
36274         * modules/locale-tests: Likewise.
36275         * modules/math-tests: Likewise.
36276         * modules/netdb-tests: Likewise.
36277         * modules/netinet_in-tests: Likewise.
36278         * modules/printf-frexp-tests: Likewise.
36279         * modules/printf-frexpl-tests: Likewise.
36280         * modules/priv-set-tests: Likewise.
36281         * modules/random_r-tests: Likewise.
36282         * modules/round-tests: Likewise.
36283         * modules/roundf-tests: Likewise.
36284         * modules/roundl-tests: Likewise.
36285         * modules/search-tests: Likewise.
36286         * modules/select-tests: Likewise.
36287         * modules/signal-tests: Likewise.
36288         * modules/stdbool-tests: Likewise.
36289         * modules/stddef-tests: Likewise.
36290         * modules/stdint-tests: Likewise.
36291         * modules/stdio-tests: Likewise.
36292         * modules/stdlib-tests: Likewise.
36293         * modules/string-tests: Likewise.
36294         * modules/strings-tests: Likewise.
36295         * modules/sys_select-tests: Likewise.
36296         * modules/sys_socket-tests: Likewise.
36297         * modules/sys_stat-tests: Likewise.
36298         * modules/sys_time-tests: Likewise.
36299         * modules/sys_utsname-tests: Likewise.
36300         * modules/sysexits-tests: Likewise.
36301         * modules/time-tests: Likewise.
36302         * modules/trunc-tests: Likewise.
36303         * modules/truncf-tests: Likewise.
36304         * modules/truncl-tests: Likewise.
36305         * modules/tsearch-tests: Likewise.
36306         * modules/unistd-tests: Likewise.
36307         * modules/wchar-tests: Likewise.
36308         * modules/wctype-tests: Likewise.
36309
36310         tests: fix license on several tests
36311         * tests/test-des.c: Update to GPLv3+.
36312         * tests/test-flock.c: Likewise.
36313         * tests/test-fsync.c: Likewise.
36314         * tests/test-futimens.h: Likewise.
36315         * tests/test-gc-arcfour.c: Likewise.
36316         * tests/test-gc-arctwo.c: Likewise.
36317         * tests/test-gc-des.c: Likewise.
36318         * tests/test-gc-hmac-md5.c: Likewise.
36319         * tests/test-gc-hmac-sha1.c: Likewise.
36320         * tests/test-gc-md2.c: Likewise.
36321         * tests/test-gc-md4.c: Likewise.
36322         * tests/test-gc-md5.c: Likewise.
36323         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36324         * tests/test-gc-rijndael.c: Likewise.
36325         * tests/test-gc-sha1.c: Likewise.
36326         * tests/test-gc.c: Likewise.
36327         * tests/test-getcwd.c: Likewise.
36328         * tests/test-link.c: Likewise.
36329         * tests/test-link.h: Likewise.
36330         * tests/test-lutimens.h: Likewise.
36331         * tests/test-md2.c: Likewise.
36332         * tests/test-md4.c: Likewise.
36333         * tests/test-mkdir.h: Likewise.
36334         * tests/test-rename.c: Likewise.
36335         * tests/test-rename.h: Likewise.
36336         * tests/test-safe-alloc.c: Likewise.
36337         * tests/test-utimens-common.h: Likewise.
36338         * tests/test-utimens.h: Likewise.
36339
36340         maint: sync license texts
36341         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36342         * doc/gpl-3.0.texi: Revert copyright year update.
36343         * doc/lgpl-3.0.texi: Likewise.
36344
36345 2009-12-29  Jim Meyering  <meyering@redhat.com>
36346
36347         update nearly all FSF copyright year lists to include 2009
36348         The files named by the following are exempted:
36349             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36350               test -f "$dst" && { echo "$dst"; continue; }
36351               test -d "$dst" || continue
36352               echo "$dst"/$(basename "$src")
36353             done > exempt
36354             git ls-files tests/unictype >> exempt
36355         In the remaining files, convert to all-interval notation if
36356         - there is already at least one year interval like 2000-2003
36357         - the file is maintained by me
36358         - the file is in lib/uni*/, where that style already prevails
36359         Otherwise, use update-copyright's default.
36360
36361 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36362         and Eric Blake  <ebb9@byu.net>
36363
36364         tests: don't require debug system() to pass
36365         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
36366         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36367         * tests/test-unlink.h (test_unlink_func): Likewise.
36368         * tests/test-fstatat.c (main): ...into callers.
36369         * tests/test-lstat.c (main): Likewise.
36370         * tests/test-rmdir.c (main): Likewise.
36371         * tests/test-unlink.c (main): Likewise.
36372         * tests/test-unlinkat.c (main): Likewise.
36373         * tests/test-areadlink-with-size.c (main): Don't require a
36374         debug-only system call to pass, aiding cross-testing to mingw.
36375         * tests/test-areadlink.c (main): Likewise.
36376         * tests/test-areadlinkat-with-size.c (main): Likewise.
36377         * tests/test-areadlinkat.c (main): Likewise.
36378         * tests/test-canonicalize-lgpl.c (main): Likewise.
36379         * tests/test-canonicalize.c (main): Likewise.
36380         * tests/test-chown.c (main): Likewise.
36381         * tests/test-fchownat.c (main): Likewise.
36382         * tests/test-lchown.c (main): Likewise.
36383         * tests/test-fdutimensat.c (main): Likewise.
36384         * tests/test-futimens.c (main): Likewise.
36385         * tests/test-link.c (main): Likewise.
36386         * tests/test-linkat.c (main): Likewise.
36387         * tests/test-mkdir.c (main): Likewise.
36388         * tests/test-mkdirat.c (main): Likewise.
36389         * tests/test-mkfifo.c (main): Likewise.
36390         * tests/test-mkfifoat.c (main): Likewise.
36391         * tests/test-mknod.c (main): Likewise.
36392         * tests/test-readlink.c (main): Likewise.
36393         * tests/test-remove.c (main): Likewise.
36394         * tests/test-rename.c (main): Likewise.
36395         * tests/test-renameat.c (main): Likewise.
36396         * tests/test-symlink.c (main): Likewise.
36397         * tests/test-symlinkat.c (main): Likewise.
36398         * tests/test-utimens.c (main): Likewise.
36399         * tests/test-utimensat.c (main): Likewise.
36400
36401 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36402
36403         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
36404         on $(UNUSED_PARAMETER_H) to avoid build failure.
36405
36406 2009-12-28  Jim Meyering  <meyering@redhat.com>
36407
36408         update-copyright: you may specify a max. line length other than 72
36409         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36410
36411         maint: use consistent FSF copyright line syntax
36412         * lib/posixtm.c: Add missing comma in FSF copyright line.
36413         * lib/posixtm.h: Likewise.
36414         * lib/getugroups.c: Add missing ", Inc.".
36415
36416         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
36417         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
36418         FSF copyright line.  Remove trailing blanks.
36419
36420 2009-12-28  Eric Blake  <ebb9@byu.net>
36421
36422         test-dup2: reduce dependencies
36423         * modules/cloexec (Configure.ac): Set witness.
36424         * modules/dup2-tests (Depends-on): Drop cloexec.
36425         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36426         not present.
36427         Suggested by Bruno Haible.
36428
36429 2009-12-26  Bruno Haible  <bruno@clisp.org>
36430
36431         Remove an unneeded dependency.
36432         * modules/fseterr (Depends-on): Remove dup2.
36433
36434 2009-12-26  Eric Blake  <ebb9@byu.net>
36435
36436         tests: use macros.h in more places
36437         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36438         (ASSERT_STREAM): Provide default of stderr.
36439         * tests/test-dirent-safer.c: Include macros.h, using alternate
36440         stream for assertions.
36441         * tests/test-dup-safer.c: Likewise.
36442         * tests/test-freopen-safer.c: Likewise.
36443         * tests/test-getopt.c: Likewise.
36444         * tests/test-openat-safer.c: Likewise.
36445         * tests/test-pipe.c: Likewise.
36446         * tests/test-popen-safer.c: Likewise.
36447         * modules/dirent-safer-tests (Files): Include macros.h.
36448         * modules/unistd-safer-tests (Files): Likewise.
36449         * modules/freopen-safer-tests (Files): Likewise.
36450         * modules/getopt-posix-tests (Files): Likewise.
36451         * modules/openat-safer-tests (Files): Likewise.
36452         * modules/pipe-tests (Files): Likewise.
36453
36454 2009-12-26  Bruno Haible  <bruno@clisp.org>
36455
36456         javacomp: Portability fix.
36457         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
36458         that it also works on Solaris.
36459
36460 2009-12-26  Bruno Haible  <bruno@clisp.org>
36461
36462         localename: Fix storage allocation of gl_locale_name_thread's result.
36463         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36464         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36465         all platforms that have 'uselocale'.
36466         (gl_locale_name_thread_unsafe): New function, extracted from
36467         gl_locale_name_thread.
36468         (gl_locale_name_thread): Call struniq on all platforms that have
36469         'uselocale'.
36470         * tests/test-localename.c (test_locale_name_thread): Check that the
36471         resulting strings are permanently allocated.
36472         * modules/localename-tests (Depends-on): Add strdup.
36473
36474 2009-12-26  Bruno Haible  <bruno@clisp.org>
36475
36476         * tests/test-localename.c (categories): Fill in the strings.
36477
36478 2009-12-26  Jim Meyering  <meyering@redhat.com>
36479
36480         isdir: complete the removal of m4/isdir.m4
36481         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
36482
36483         isdir: clean up, since at least grep still uses it
36484         * lib/isdir.c: Include "isdir.h".
36485         (S_ISDIR): Remove now-unneeded definition.
36486         * modules/isdir (Files): Add lib/isdir.h.
36487         * lib/isdir.h: New file, with declaration.
36488         * m4/isdir.m4: Remove file -- unneeded.
36489
36490 2009-12-25  Bruno Haible  <bruno@clisp.org>
36491
36492         selinux-h: Make generated .h files standalone.
36493         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
36494         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
36495         * lib/se-selinux.in.h: Likewise.
36496         * modules/selinux-h (Depends-on): Add unused-parameter.
36497         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
36498         selinux/selinux.h and selinux/context.h.
36499         Suggested by Eric Blake.
36500
36501 2009-12-25  Bruno Haible  <bruno@clisp.org>
36502
36503         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
36504         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
36505         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
36506         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
36507         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
36508
36509 2009-12-24  Bruno Haible  <bruno@clisp.org>
36510
36511         openat: Fix warning.
36512         * lib/openat-proc.c: Include <unistd.h>.
36513
36514 2009-12-24  Bruno Haible  <bruno@clisp.org>
36515
36516         New module 'unused-parameter'.
36517         * build-aux/unused-parameter.h: New file, extracted from earlier
36518         gnulib-common.m4.
36519         * modules/unused-parameter: New file.
36520         * lib/unistr.h: Include unused-parameter.h.
36521         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36522         _GL_UNUSED.
36523         * modules/unistr/base (Depends-on): Add unused-parameter.
36524
36525 2009-12-24  Bruno Haible  <bruno@clisp.org>
36526
36527         Add missing dependencies to 'extensions' module.
36528         * m4/extensions.m4: Add comment.
36529         * modules/accept4 (Depends-on): Add extensions.
36530         * modules/dup3 (Depends-on): Likewise.
36531         * modules/fcntl (Depends-on): Likewise.
36532         * modules/futimens (Depends-on): Likewise.
36533         * modules/mknod (Depends-on): Likewise.
36534         * modules/pipe2 (Depends-on): Likewise.
36535         * modules/stat-time (Depends-on): Likewise.
36536         * modules/strcasestr-simple (Depends-on): Likewise.
36537         * modules/strsignal (Depends-on): Likewise.
36538         * modules/utimensat (Depends-on): Likewise.
36539         * modules/localcharset (Depends-on): Likewise. Needed because of
36540         gl_FCNTL_O_FLAGS.
36541         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36542         AC_TYPE_MBSTATE_T.
36543         * modules/wcsnrtombs (Depends-on): Likewise.
36544         * modules/wcsrtombs (Depends-on): Likewise.
36545
36546 2009-12-24  Bruno Haible  <bruno@clisp.org>
36547
36548         binary-io: Avoid gcc warning due to SET_BINARY.
36549         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36550         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36551
36552 2009-12-24  Bruno Haible  <bruno@clisp.org>
36553
36554         Avoid future namespace pollution on glibc systems.
36555         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36556         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36557         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36558         glibc systems.
36559
36560 2009-12-24  Bruno Haible  <bruno@clisp.org>
36561
36562         Refactor common macros used in tests.
36563         * tests/macros.h: New file.
36564         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36565         and/or <stdlib.h>, if appropriate.
36566         (ASSERT, SIZEOF): Remove macros.
36567         * tests/test-areadlink-with-size.c: Likewise.
36568         * tests/test-areadlinkat.c: Likewise.
36569         * tests/test-areadlinkat-with-size.c: Likewise.
36570         * tests/test-argmatch.c: Likewise.
36571         * tests/test-argv-iter.c: Likewise.
36572         * tests/test-array-mergesort.c: Likewise.
36573         * tests/test-array_list.c: Likewise.
36574         * tests/test-array_oset.c: Likewise.
36575         * tests/test-avltree_list.c: Likewise.
36576         * tests/test-avltree_oset.c: Likewise.
36577         * tests/test-avltreehash_list.c: Likewise.
36578         * tests/test-base64.c: Likewise.
36579         * tests/test-binary-io.c: Likewise.
36580         * tests/test-bitrotate.c: Likewise.
36581         * tests/test-btowc.c: Likewise.
36582         * tests/test-byteswap.c: Likewise.
36583         * tests/test-c-ctype.c: Likewise.
36584         * tests/test-c-stack.c: Likewise.
36585         * tests/test-c-strcasecmp.c: Likewise.
36586         * tests/test-c-strcasestr.c: Likewise.
36587         * tests/test-c-strncasecmp.c: Likewise.
36588         * tests/test-c-strstr.c: Likewise.
36589         * tests/test-canonicalize-lgpl.c: Likewise.
36590         * tests/test-canonicalize.c: Likewise.
36591         * tests/test-carray_list.c: Likewise.
36592         * tests/test-ceilf1.c: Likewise.
36593         * tests/test-ceilf2.c: Likewise.
36594         * tests/test-ceill.c: Likewise.
36595         * tests/test-chown.c: Likewise.
36596         * tests/test-cloexec.c: Likewise.
36597         * tests/test-copy-acl.c: Likewise.
36598         * tests/test-copy-file.c: Likewise.
36599         * tests/test-count-one-bits.c: Likewise.
36600         * tests/test-dprintf-posix.c: Likewise.
36601         * tests/test-dup2.c: Likewise.
36602         * tests/test-dup3.c: Likewise.
36603         * tests/test-duplocale.c: Likewise.
36604         * tests/test-fbufmode.c: Likewise.
36605         * tests/test-fchdir.c: Likewise.
36606         * tests/test-fchownat.c: Likewise.
36607         * tests/test-fcntl-safer.c: Likewise.
36608         * tests/test-fcntl.c: Likewise.
36609         * tests/test-fdopendir.c: Likewise.
36610         * tests/test-fdutimensat.c: Likewise.
36611         * tests/test-fflush2.c: Likewise.
36612         * tests/test-file-has-acl.c: Likewise.
36613         * tests/test-filevercmp.c: Likewise.
36614         * tests/test-flock.c: Likewise.
36615         * tests/test-floorf1.c: Likewise.
36616         * tests/test-floorf2.c: Likewise.
36617         * tests/test-floorl.c: Likewise.
36618         * tests/test-fnmatch.c: Likewise.
36619         * tests/test-fopen.h: Likewise.
36620         * tests/test-fpending.c: Likewise.
36621         * tests/test-fprintf-posix.c: Likewise.
36622         * tests/test-fpurge.c: Likewise.
36623         * tests/test-freadable.c: Likewise.
36624         * tests/test-freadahead.c: Likewise.
36625         * tests/test-freading.c: Likewise.
36626         * tests/test-freadptr.c: Likewise.
36627         * tests/test-freadptr2.c: Likewise.
36628         * tests/test-freadseek.c: Likewise.
36629         * tests/test-freopen.c: Likewise.
36630         * tests/test-frexp.c: Likewise.
36631         * tests/test-frexpl.c: Likewise.
36632         * tests/test-fseek.c: Likewise.
36633         * tests/test-fseeko.c: Likewise.
36634         * tests/test-fstatat.c: Likewise.
36635         * tests/test-fstrcmp.c: Likewise.
36636         * tests/test-fsync.c: Likewise.
36637         * tests/test-ftell.c: Likewise.
36638         * tests/test-ftello.c: Likewise.
36639         * tests/test-func.c: Likewise.
36640         * tests/test-futimens.c: Likewise.
36641         * tests/test-fwritable.c: Likewise.
36642         * tests/test-fwriting.c: Likewise.
36643         * tests/test-getcwd.c: Likewise.
36644         * tests/test-getdate.c: Likewise.
36645         * tests/test-getdelim.c: Likewise.
36646         * tests/test-getdtablesize.c: Likewise.
36647         * tests/test-getgroups.c: Likewise.
36648         * tests/test-getline.c: Likewise.
36649         * tests/test-getndelim2.c: Likewise.
36650         * tests/test-glob.c: Likewise.
36651         * tests/test-hash.c: Likewise.
36652         * tests/test-i-ring.c: Likewise.
36653         * tests/test-iconv-utf.c: Likewise.
36654         * tests/test-iconv.c: Likewise.
36655         * tests/test-idpriv-drop.c: Likewise.
36656         * tests/test-idpriv-droptemp.c: Likewise.
36657         * tests/test-inet_ntop.c: Likewise.
36658         * tests/test-inet_pton.c: Likewise.
36659         * tests/test-isblank.c: Likewise.
36660         * tests/test-isfinite.c: Likewise.
36661         * tests/test-isinf.c: Likewise.
36662         * tests/test-isnan.c: Likewise.
36663         * tests/test-isnand.h: Likewise.
36664         * tests/test-isnanf.h: Likewise.
36665         * tests/test-isnanl.h: Likewise.
36666         * tests/test-lchown.c: Likewise.
36667         * tests/test-ldexpl.c: Likewise.
36668         * tests/test-link.c: Likewise.
36669         * tests/test-linkat.c: Likewise.
36670         * tests/test-linked_list.c: Likewise.
36671         * tests/test-linkedhash_list.c: Likewise.
36672         * tests/test-localename.c: Likewise.
36673         * tests/test-lseek.c: Likewise.
36674         * tests/test-lstat.c: Likewise.
36675         * tests/test-mbmemcasecmp.c: Likewise.
36676         * tests/test-mbmemcasecoll.c: Likewise.
36677         * tests/test-mbrtowc.c: Likewise.
36678         * tests/test-mbscasecmp.c: Likewise.
36679         * tests/test-mbscasestr1.c: Likewise.
36680         * tests/test-mbscasestr2.c: Likewise.
36681         * tests/test-mbscasestr3.c: Likewise.
36682         * tests/test-mbscasestr4.c: Likewise.
36683         * tests/test-mbschr.c: Likewise.
36684         * tests/test-mbscspn.c: Likewise.
36685         * tests/test-mbsinit.c: Likewise.
36686         * tests/test-mbsncasecmp.c: Likewise.
36687         * tests/test-mbsnrtowcs.c: Likewise.
36688         * tests/test-mbspbrk.c: Likewise.
36689         * tests/test-mbspcasecmp.c: Likewise.
36690         * tests/test-mbsrchr.c: Likewise.
36691         * tests/test-mbsrtowcs.c: Likewise.
36692         * tests/test-mbsspn.c: Likewise.
36693         * tests/test-mbsstr1.c: Likewise.
36694         * tests/test-mbsstr2.c: Likewise.
36695         * tests/test-mbsstr3.c: Likewise.
36696         * tests/test-memchr.c: Likewise.
36697         * tests/test-memchr2.c: Likewise.
36698         * tests/test-memcmp.c: Likewise.
36699         * tests/test-memmem.c: Likewise.
36700         * tests/test-memrchr.c: Likewise.
36701         * tests/test-mkdir.c: Likewise.
36702         * tests/test-mkdirat.c: Likewise.
36703         * tests/test-mkfifo.c: Likewise.
36704         * tests/test-mkfifoat.c: Likewise.
36705         * tests/test-mknod.c: Likewise.
36706         * tests/test-nanosleep.c: Likewise.
36707         * tests/test-nl_langinfo.c: Likewise.
36708         * tests/test-obstack-printf.c: Likewise.
36709         * tests/test-open.c: Likewise.
36710         * tests/test-openat.c: Likewise.
36711         * tests/test-pipe-filter-gi1.c: Likewise.
36712         * tests/test-pipe-filter-gi2-main.c: Likewise.
36713         * tests/test-pipe-filter-ii1.c: Likewise.
36714         * tests/test-pipe-filter-ii2-main.c: Likewise.
36715         * tests/test-pipe2.c: Likewise.
36716         * tests/test-popen.h: Likewise.
36717         * tests/test-posixtm.c: Likewise.
36718         * tests/test-pread.c: Likewise.
36719         * tests/test-printf-frexp.c: Likewise.
36720         * tests/test-printf-frexpl.c: Likewise.
36721         * tests/test-printf-posix.c: Likewise.
36722         * tests/test-priv-set.c: Likewise.
36723         * tests/test-quotearg.c: Likewise.
36724         * tests/test-random_r.c: Likewise.
36725         * tests/test-rawmemchr.c: Likewise.
36726         * tests/test-rbtree_list.c: Likewise.
36727         * tests/test-rbtree_oset.c: Likewise.
36728         * tests/test-rbtreehash_list.c: Likewise.
36729         * tests/test-readlink.c: Likewise.
36730         * tests/test-remove.c: Likewise.
36731         * tests/test-rename.c: Likewise.
36732         * tests/test-renameat.c: Likewise.
36733         * tests/test-rmdir.c: Likewise.
36734         * tests/test-round1.c: Likewise.
36735         * tests/test-roundf1.c: Likewise.
36736         * tests/test-roundl.c: Likewise.
36737         * tests/test-safe-alloc.c: Likewise.
36738         * tests/test-sameacls.c: Likewise.
36739         * tests/test-set-mode-acl.c: Likewise.
36740         * tests/test-setenv.c: Likewise.
36741         * tests/test-sigaction.c: Likewise.
36742         * tests/test-signbit.c: Likewise.
36743         * tests/test-sleep.c: Likewise.
36744         * tests/test-snprintf-posix.c: Likewise.
36745         * tests/test-snprintf.c: Likewise.
36746         * tests/test-sprintf-posix.c: Likewise.
36747         * tests/test-stat-time.c: Likewise.
36748         * tests/test-stat.c: Likewise.
36749         * tests/test-strcasestr.c: Likewise.
36750         * tests/test-strchrnul.c: Likewise.
36751         * tests/test-strerror.c: Likewise.
36752         * tests/test-striconv.c: Likewise.
36753         * tests/test-striconveh.c: Likewise.
36754         * tests/test-striconveha.c: Likewise.
36755         * tests/test-strsignal.c: Likewise.
36756         * tests/test-strstr.c: Likewise.
36757         * tests/test-strtod.c: Likewise.
36758         * tests/test-strverscmp.c: Likewise.
36759         * tests/test-symlink.c: Likewise.
36760         * tests/test-symlinkat.c: Likewise.
36761         * tests/test-trunc1.c: Likewise.
36762         * tests/test-trunc2.c: Likewise.
36763         * tests/test-truncf1.c: Likewise.
36764         * tests/test-truncf2.c: Likewise.
36765         * tests/test-truncl.c: Likewise.
36766         * tests/test-uname.c: Likewise.
36767         * tests/test-unlink.c: Likewise.
36768         * tests/test-unlinkat.c: Likewise.
36769         * tests/test-unsetenv.c: Likewise.
36770         * tests/test-usleep.c: Likewise.
36771         * tests/test-utimens.c: Likewise.
36772         * tests/test-utimensat.c: Likewise.
36773         * tests/test-vasnprintf-posix.c: Likewise.
36774         * tests/test-vasnprintf-posix2.c: Likewise.
36775         * tests/test-vasnprintf.c: Likewise.
36776         * tests/test-vasprintf-posix.c: Likewise.
36777         * tests/test-vasprintf.c: Likewise.
36778         * tests/test-vdprintf-posix.c: Likewise.
36779         * tests/test-vfprintf-posix.c: Likewise.
36780         * tests/test-vprintf-posix.c: Likewise.
36781         * tests/test-vsnprintf-posix.c: Likewise.
36782         * tests/test-vsnprintf.c: Likewise.
36783         * tests/test-vsprintf-posix.c: Likewise.
36784         * tests/test-wcrtomb.c: Likewise.
36785         * tests/test-wcsnrtombs.c: Likewise.
36786         * tests/test-wcsrtombs.c: Likewise.
36787         * tests/test-wctype.c: Likewise.
36788         * tests/test-wcwidth.c: Likewise.
36789         * tests/test-xfprintf-posix.c: Likewise.
36790         * tests/test-xmemdup0.c: Likewise.
36791         * tests/test-xprintf-posix.c: Likewise.
36792         * tests/test-xvasprintf.c: Likewise.
36793         * tests/unicase/test-locale-language.c: Likewise.
36794         * tests/unicase/test-mapping-part1.h: Likewise.
36795         * tests/unicase/test-predicate-part1.h: Likewise.
36796         * tests/unicase/test-u8-casecmp.c: Likewise.
36797         * tests/unicase/test-u8-casecoll.c: Likewise.
36798         * tests/unicase/test-u8-casefold.c: Likewise.
36799         * tests/unicase/test-u8-is-cased.c: Likewise.
36800         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36801         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36802         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36803         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36804         * tests/unicase/test-u8-tolower.c: Likewise.
36805         * tests/unicase/test-u8-totitle.c: Likewise.
36806         * tests/unicase/test-u8-toupper.c: Likewise.
36807         * tests/unicase/test-u16-casecmp.c: Likewise.
36808         * tests/unicase/test-u16-casecoll.c: Likewise.
36809         * tests/unicase/test-u16-casefold.c: Likewise.
36810         * tests/unicase/test-u16-is-cased.c: Likewise.
36811         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36812         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36813         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36814         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36815         * tests/unicase/test-u16-tolower.c: Likewise.
36816         * tests/unicase/test-u16-totitle.c: Likewise.
36817         * tests/unicase/test-u16-toupper.c: Likewise.
36818         * tests/unicase/test-u32-casecmp.c: Likewise.
36819         * tests/unicase/test-u32-casecoll.c: Likewise.
36820         * tests/unicase/test-u32-casefold.c: Likewise.
36821         * tests/unicase/test-u32-is-cased.c: Likewise.
36822         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36823         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36824         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36825         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36826         * tests/unicase/test-u32-tolower.c: Likewise.
36827         * tests/unicase/test-u32-totitle.c: Likewise.
36828         * tests/unicase/test-u32-toupper.c: Likewise.
36829         * tests/unicase/test-ulc-casecmp.c: Likewise.
36830         * tests/unicase/test-ulc-casecoll.c: Likewise.
36831         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36832         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36833         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36834         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36835         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36836         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36837         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36838         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36839         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36840         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36841         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36842         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36843         * tests/unictype/test-bidi_byname.c: Likewise.
36844         * tests/unictype/test-bidi_name.c: Likewise.
36845         * tests/unictype/test-bidi_of.c: Likewise.
36846         * tests/unictype/test-bidi_test.c: Likewise.
36847         * tests/unictype/test-block_list.c: Likewise.
36848         * tests/unictype/test-block_of.c: Likewise.
36849         * tests/unictype/test-block_test.c: Likewise.
36850         * tests/unictype/test-categ_and.c: Likewise.
36851         * tests/unictype/test-categ_and_not.c: Likewise.
36852         * tests/unictype/test-categ_byname.c: Likewise.
36853         * tests/unictype/test-categ_name.c: Likewise.
36854         * tests/unictype/test-categ_none.c: Likewise.
36855         * tests/unictype/test-categ_of.c: Likewise.
36856         * tests/unictype/test-categ_or.c: Likewise.
36857         * tests/unictype/test-categ_test_withtable.c: Likewise.
36858         * tests/unictype/test-combining.c: Likewise.
36859         * tests/unictype/test-decdigit.c: Likewise.
36860         * tests/unictype/test-digit.c: Likewise.
36861         * tests/unictype/test-mirror.c: Likewise.
36862         * tests/unictype/test-numeric.c: Likewise.
36863         * tests/unictype/test-pr_byname.c: Likewise.
36864         * tests/unictype/test-pr_test.c: Likewise.
36865         * tests/unictype/test-predicate-part1.h: Likewise.
36866         * tests/unictype/test-scripts.c: Likewise.
36867         * tests/unictype/test-sy_c_ident.c: Likewise.
36868         * tests/unictype/test-sy_java_ident.c: Likewise.
36869         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36870         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36871         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36872         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36873         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36874         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36875         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36876         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36877         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36878         * tests/uninorm/test-compat-decomposition.c: Likewise.
36879         * tests/uninorm/test-composition.c: Likewise.
36880         * tests/uninorm/test-decomposing-form.c: Likewise.
36881         * tests/uninorm/test-decomposition.c: Likewise.
36882         * tests/uninorm/test-u8-nfc.c: Likewise.
36883         * tests/uninorm/test-u8-nfd.c: Likewise.
36884         * tests/uninorm/test-u8-nfkc.c: Likewise.
36885         * tests/uninorm/test-u8-nfkd.c: Likewise.
36886         * tests/uninorm/test-u8-normcmp.c: Likewise.
36887         * tests/uninorm/test-u8-normcoll.c: Likewise.
36888         * tests/uninorm/test-u16-nfc.c: Likewise.
36889         * tests/uninorm/test-u16-nfd.c: Likewise.
36890         * tests/uninorm/test-u16-nfkc.c: Likewise.
36891         * tests/uninorm/test-u16-nfkd.c: Likewise.
36892         * tests/uninorm/test-u16-normcmp.c: Likewise.
36893         * tests/uninorm/test-u16-normcoll.c: Likewise.
36894         * tests/uninorm/test-u32-nfc.c: Likewise.
36895         * tests/uninorm/test-u32-nfd.c: Likewise.
36896         * tests/uninorm/test-u32-nfkc.c: Likewise.
36897         * tests/uninorm/test-u32-nfkd.c: Likewise.
36898         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36899         * tests/uninorm/test-u32-normcmp.c: Likewise.
36900         * tests/uninorm/test-u32-normcoll.c: Likewise.
36901         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36902         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36903         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36904         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36905         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36906         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36907         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36908         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36909         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36910         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36911         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36912         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36913         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36914         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36915         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36916         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36917         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36918         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36919         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36920         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36921         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36922         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36923         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36924         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36925         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36926         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36927         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36928         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36929         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36930         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36931         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36932         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36933         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36934         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36935         * tests/uniwidth/test-u8-width.c: Likewise.
36936         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36937         * tests/uniwidth/test-u16-width.c: Likewise.
36938         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36939         * tests/uniwidth/test-u32-width.c: Likewise.
36940         * tests/uniwidth/test-uc_width.c: Likewise.
36941         * tests/uniwidth/test-uc_width2.c: Likewise.
36942         * modules/acl-tests (Files): Add tests/macros.h.
36943         * modules/areadlink-tests (Files): Likewise.
36944         * modules/areadlink-with-size-tests (Files): Likewise.
36945         * modules/areadlinkat-tests (Files): Likewise.
36946         * modules/areadlinkat-with-size-tests (Files): Likewise.
36947         * modules/argmatch-tests (Files): Likewise.
36948         * modules/argv-iter-tests (Files): Likewise.
36949         * modules/array-list-tests (Files): Likewise.
36950         * modules/array-mergesort-tests (Files): Likewise.
36951         * modules/array-oset-tests (Files): Likewise.
36952         * modules/avltree-list-tests (Files): Likewise.
36953         * modules/avltree-oset-tests (Files): Likewise.
36954         * modules/avltreehash-list-tests (Files): Likewise.
36955         * modules/base64-tests (Files): Likewise.
36956         * modules/binary-io-tests (Files): Likewise.
36957         * modules/bitrotate-tests (Files): Likewise.
36958         * modules/btowc-tests (Files): Likewise.
36959         * modules/byteswap-tests (Files): Likewise.
36960         * modules/c-ctype-tests (Files): Likewise.
36961         * modules/c-stack-tests (Files): Likewise.
36962         * modules/c-strcase-tests (Files): Likewise.
36963         * modules/c-strcasestr-tests (Files): Likewise.
36964         * modules/c-strstr-tests (Files): Likewise.
36965         * modules/canonicalize-lgpl-tests (Files): Likewise.
36966         * modules/canonicalize-tests (Files): Likewise.
36967         * modules/carray-list-tests (Files): Likewise.
36968         * modules/ceilf-tests (Files): Likewise.
36969         * modules/ceill-tests (Files): Likewise.
36970         * modules/chown-tests (Files): Likewise.
36971         * modules/cloexec-tests (Files): Likewise.
36972         * modules/copy-file-tests (Files): Likewise.
36973         * modules/count-one-bits-tests (Files): Likewise.
36974         * modules/dprintf-posix-tests (Files): Likewise.
36975         * modules/dup2-tests (Files): Likewise.
36976         * modules/dup3-tests (Files): Likewise.
36977         * modules/duplocale-tests (Files): Likewise.
36978         * modules/fbufmode-tests (Files): Likewise.
36979         * modules/fchdir-tests (Files): Likewise.
36980         * modules/fcntl-safer-tests (Files): Likewise.
36981         * modules/fcntl-tests (Files): Likewise.
36982         * modules/fdopendir-tests (Files): Likewise.
36983         * modules/fdutimensat-tests (Files): Likewise.
36984         * modules/fflush-tests (Files): Likewise.
36985         * modules/filevercmp-tests (Files): Likewise.
36986         * modules/flock-tests (Files): Likewise.
36987         * modules/floorf-tests (Files): Likewise.
36988         * modules/floorl-tests (Files): Likewise.
36989         * modules/fnmatch-tests (Files): Likewise.
36990         * modules/fopen-safer-tests (Files): Likewise.
36991         * modules/fopen-tests (Files): Likewise.
36992         * modules/fpending-tests (Files): Likewise.
36993         * modules/fprintf-posix-tests (Files): Likewise.
36994         * modules/fpurge-tests (Files): Likewise.
36995         * modules/freadable-tests (Files): Likewise.
36996         * modules/freadahead-tests (Files): Likewise.
36997         * modules/freading-tests (Files): Likewise.
36998         * modules/freadptr-tests (Files): Likewise.
36999         * modules/freadseek-tests (Files): Likewise.
37000         * modules/freopen-tests (Files): Likewise.
37001         * modules/frexp-nolibm-tests (Files): Likewise.
37002         * modules/frexp-tests (Files): Likewise.
37003         * modules/frexpl-nolibm-tests (Files): Likewise.
37004         * modules/frexpl-tests (Files): Likewise.
37005         * modules/fseek-tests (Files): Likewise.
37006         * modules/fseeko-tests (Files): Likewise.
37007         * modules/fstrcmp-tests (Files): Likewise.
37008         * modules/fsync-tests (Files): Likewise.
37009         * modules/ftell-tests (Files): Likewise.
37010         * modules/ftello-tests (Files): Likewise.
37011         * modules/func-tests (Files): Likewise.
37012         * modules/futimens-tests (Files): Likewise.
37013         * modules/fwritable-tests (Files): Likewise.
37014         * modules/fwriting-tests (Files): Likewise.
37015         * modules/getcwd-tests (Files): Likewise.
37016         * modules/getdate-tests (Files): Likewise.
37017         * modules/getdelim-tests (Files): Likewise.
37018         * modules/getdtablesize-tests (Files): Likewise.
37019         * modules/getgroups-tests (Files): Likewise.
37020         * modules/getline-tests (Files): Likewise.
37021         * modules/getndelim2-tests (Files): Likewise.
37022         * modules/glob-tests (Files): Likewise.
37023         * modules/hash-tests (Files): Likewise.
37024         * modules/i-ring-tests (Files): Likewise.
37025         * modules/iconv-tests (Files): Likewise.
37026         * modules/iconv_open-utf-tests (Files): Likewise.
37027         * modules/idpriv-drop-tests (Files): Likewise.
37028         * modules/idpriv-droptemp-tests (Files): Likewise.
37029         * modules/inet_ntop-tests (Files): Likewise.
37030         * modules/inet_pton-tests (Files): Likewise.
37031         * modules/isblank-tests (Files): Likewise.
37032         * modules/isfinite-tests (Files): Likewise.
37033         * modules/isinf-tests (Files): Likewise.
37034         * modules/isnan-tests (Files): Likewise.
37035         * modules/isnand-nolibm-tests (Files): Likewise.
37036         * modules/isnand-tests (Files): Likewise.
37037         * modules/isnanf-nolibm-tests (Files): Likewise.
37038         * modules/isnanf-tests (Files): Likewise.
37039         * modules/isnanl-nolibm-tests (Files): Likewise.
37040         * modules/isnanl-tests (Files): Likewise.
37041         * modules/lchown-tests (Files): Likewise.
37042         * modules/ldexpl-tests (Files): Likewise.
37043         * modules/link-tests (Files): Likewise.
37044         * modules/linkat-tests (Files): Likewise.
37045         * modules/linked-list-tests (Files): Likewise.
37046         * modules/linkedhash-list-tests (Files): Likewise.
37047         * modules/localename-tests (Files): Likewise.
37048         * modules/lseek-tests (Files): Likewise.
37049         * modules/lstat-tests (Files): Likewise.
37050         * modules/mbmemcasecmp-tests (Files): Likewise.
37051         * modules/mbmemcasecoll-tests (Files): Likewise.
37052         * modules/mbrtowc-tests (Files): Likewise.
37053         * modules/mbscasecmp-tests (Files): Likewise.
37054         * modules/mbscasestr-tests (Files): Likewise.
37055         * modules/mbschr-tests (Files): Likewise.
37056         * modules/mbscspn-tests (Files): Likewise.
37057         * modules/mbsinit-tests (Files): Likewise.
37058         * modules/mbsncasecmp-tests (Files): Likewise.
37059         * modules/mbsnrtowcs-tests (Files): Likewise.
37060         * modules/mbspbrk-tests (Files): Likewise.
37061         * modules/mbspcasecmp-tests (Files): Likewise.
37062         * modules/mbsrchr-tests (Files): Likewise.
37063         * modules/mbsrtowcs-tests (Files): Likewise.
37064         * modules/mbsspn-tests (Files): Likewise.
37065         * modules/mbsstr-tests (Files): Likewise.
37066         * modules/memchr-tests (Files): Likewise.
37067         * modules/memchr2-tests (Files): Likewise.
37068         * modules/memcmp-tests (Files): Likewise.
37069         * modules/memmem-tests (Files): Likewise.
37070         * modules/memrchr-tests (Files): Likewise.
37071         * modules/mkdir-tests (Files): Likewise.
37072         * modules/mkfifo-tests (Files): Likewise.
37073         * modules/mkfifoat-tests (Files): Likewise.
37074         * modules/mknod-tests (Files): Likewise.
37075         * modules/nanosleep-tests (Files): Likewise.
37076         * modules/nl_langinfo-tests (Files): Likewise.
37077         * modules/obstack-printf-tests (Files): Likewise.
37078         * modules/open-tests (Files): Likewise.
37079         * modules/openat-tests (Files): Likewise.
37080         * modules/pipe-filter-gi-tests (Files): Likewise.
37081         * modules/pipe-filter-ii-tests (Files): Likewise.
37082         * modules/pipe2-tests (Files): Likewise.
37083         * modules/popen-safer-tests (Files): Likewise.
37084         * modules/popen-tests (Files): Likewise.
37085         * modules/posixtm-tests (Files): Likewise.
37086         * modules/pread-tests (Files): Likewise.
37087         * modules/printf-frexp-tests (Files): Likewise.
37088         * modules/printf-frexpl-tests (Files): Likewise.
37089         * modules/printf-posix-tests (Files): Likewise.
37090         * modules/priv-set-tests (Files): Likewise.
37091         * modules/quotearg-tests (Files): Likewise.
37092         * modules/random_r-tests (Files): Likewise.
37093         * modules/rawmemchr-tests (Files): Likewise.
37094         * modules/rbtree-list-tests (Files): Likewise.
37095         * modules/rbtree-oset-tests (Files): Likewise.
37096         * modules/rbtreehash-list-tests (Files): Likewise.
37097         * modules/readlink-tests (Files): Likewise.
37098         * modules/remove-tests (Files): Likewise.
37099         * modules/rename-tests (Files): Likewise.
37100         * modules/renameat-tests (Files): Likewise.
37101         * modules/rmdir-tests (Files): Likewise.
37102         * modules/round-tests (Files): Likewise.
37103         * modules/roundf-tests (Files): Likewise.
37104         * modules/roundl-tests (Files): Likewise.
37105         * modules/safe-alloc-tests (Files): Likewise.
37106         * modules/setenv-tests (Files): Likewise.
37107         * modules/sigaction-tests (Files): Likewise.
37108         * modules/signbit-tests (Files): Likewise.
37109         * modules/sleep-tests (Files): Likewise.
37110         * modules/snprintf-posix-tests (Files): Likewise.
37111         * modules/snprintf-tests (Files): Likewise.
37112         * modules/sprintf-posix-tests (Files): Likewise.
37113         * modules/stat-tests (Files): Likewise.
37114         * modules/stat-time-tests (Files): Likewise.
37115         * modules/strcasestr-tests (Files): Likewise.
37116         * modules/strchrnul-tests (Files): Likewise.
37117         * modules/strerror-tests (Files): Likewise.
37118         * modules/striconv-tests (Files): Likewise.
37119         * modules/striconveh-tests (Files): Likewise.
37120         * modules/striconveha-tests (Files): Likewise.
37121         * modules/strsignal-tests (Files): Likewise.
37122         * modules/strstr-tests (Files): Likewise.
37123         * modules/strtod-tests (Files): Likewise.
37124         * modules/strverscmp-tests (Files): Likewise.
37125         * modules/symlink-tests (Files): Likewise.
37126         * modules/symlinkat-tests (Files): Likewise.
37127         * modules/trunc-tests (Files): Likewise.
37128         * modules/truncf-tests (Files): Likewise.
37129         * modules/truncl-tests (Files): Likewise.
37130         * modules/uname-tests (Files): Likewise.
37131         * modules/unicase/cased-tests (Files): Likewise.
37132         * modules/unicase/ignorable-tests (Files): Likewise.
37133         * modules/unicase/locale-language-tests (Files): Likewise.
37134         * modules/unicase/tolower-tests (Files): Likewise.
37135         * modules/unicase/totitle-tests (Files): Likewise.
37136         * modules/unicase/toupper-tests (Files): Likewise.
37137         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37138         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37139         * modules/unicase/u8-casefold-tests (Files): Likewise.
37140         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37141         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37142         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37143         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37144         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37145         * modules/unicase/u8-tolower-tests (Files): Likewise.
37146         * modules/unicase/u8-totitle-tests (Files): Likewise.
37147         * modules/unicase/u8-toupper-tests (Files): Likewise.
37148         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37149         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37150         * modules/unicase/u16-casefold-tests (Files): Likewise.
37151         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37152         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37153         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37154         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37155         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37156         * modules/unicase/u16-tolower-tests (Files): Likewise.
37157         * modules/unicase/u16-totitle-tests (Files): Likewise.
37158         * modules/unicase/u16-toupper-tests (Files): Likewise.
37159         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37160         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37161         * modules/unicase/u32-casefold-tests (Files): Likewise.
37162         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37163         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37164         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37165         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37166         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37167         * modules/unicase/u32-tolower-tests (Files): Likewise.
37168         * modules/unicase/u32-totitle-tests (Files): Likewise.
37169         * modules/unicase/u32-toupper-tests (Files): Likewise.
37170         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37171         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37172         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37173         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37174         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37175         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37176         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37177         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37178         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37179         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37180         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37181         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37182         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37183         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37184         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37185         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37186         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37187         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37188         * modules/unictype/block-list-tests (Files): Likewise.
37189         * modules/unictype/block-of-tests (Files): Likewise.
37190         * modules/unictype/block-test-tests (Files): Likewise.
37191         * modules/unictype/category-C-tests (Files): Likewise.
37192         * modules/unictype/category-Cc-tests (Files): Likewise.
37193         * modules/unictype/category-Cf-tests (Files): Likewise.
37194         * modules/unictype/category-Cn-tests (Files): Likewise.
37195         * modules/unictype/category-Co-tests (Files): Likewise.
37196         * modules/unictype/category-Cs-tests (Files): Likewise.
37197         * modules/unictype/category-L-tests (Files): Likewise.
37198         * modules/unictype/category-Ll-tests (Files): Likewise.
37199         * modules/unictype/category-Lm-tests (Files): Likewise.
37200         * modules/unictype/category-Lo-tests (Files): Likewise.
37201         * modules/unictype/category-Lt-tests (Files): Likewise.
37202         * modules/unictype/category-Lu-tests (Files): Likewise.
37203         * modules/unictype/category-M-tests (Files): Likewise.
37204         * modules/unictype/category-Mc-tests (Files): Likewise.
37205         * modules/unictype/category-Me-tests (Files): Likewise.
37206         * modules/unictype/category-Mn-tests (Files): Likewise.
37207         * modules/unictype/category-N-tests (Files): Likewise.
37208         * modules/unictype/category-Nd-tests (Files): Likewise.
37209         * modules/unictype/category-Nl-tests (Files): Likewise.
37210         * modules/unictype/category-No-tests (Files): Likewise.
37211         * modules/unictype/category-P-tests (Files): Likewise.
37212         * modules/unictype/category-Pc-tests (Files): Likewise.
37213         * modules/unictype/category-Pd-tests (Files): Likewise.
37214         * modules/unictype/category-Pe-tests (Files): Likewise.
37215         * modules/unictype/category-Pf-tests (Files): Likewise.
37216         * modules/unictype/category-Pi-tests (Files): Likewise.
37217         * modules/unictype/category-Po-tests (Files): Likewise.
37218         * modules/unictype/category-Ps-tests (Files): Likewise.
37219         * modules/unictype/category-S-tests (Files): Likewise.
37220         * modules/unictype/category-Sc-tests (Files): Likewise.
37221         * modules/unictype/category-Sk-tests (Files): Likewise.
37222         * modules/unictype/category-Sm-tests (Files): Likewise.
37223         * modules/unictype/category-So-tests (Files): Likewise.
37224         * modules/unictype/category-Z-tests (Files): Likewise.
37225         * modules/unictype/category-Zl-tests (Files): Likewise.
37226         * modules/unictype/category-Zp-tests (Files): Likewise.
37227         * modules/unictype/category-Zs-tests (Files): Likewise.
37228         * modules/unictype/category-and-not-tests (Files): Likewise.
37229         * modules/unictype/category-and-tests (Files): Likewise.
37230         * modules/unictype/category-byname-tests (Files): Likewise.
37231         * modules/unictype/category-name-tests (Files): Likewise.
37232         * modules/unictype/category-none-tests (Files): Likewise.
37233         * modules/unictype/category-of-tests (Files): Likewise.
37234         * modules/unictype/category-or-tests (Files): Likewise.
37235         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37236         * modules/unictype/combining-class-tests (Files): Likewise.
37237         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37238         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37239         * modules/unictype/ctype-blank-tests (Files): Likewise.
37240         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37241         * modules/unictype/ctype-digit-tests (Files): Likewise.
37242         * modules/unictype/ctype-graph-tests (Files): Likewise.
37243         * modules/unictype/ctype-lower-tests (Files): Likewise.
37244         * modules/unictype/ctype-print-tests (Files): Likewise.
37245         * modules/unictype/ctype-punct-tests (Files): Likewise.
37246         * modules/unictype/ctype-space-tests (Files): Likewise.
37247         * modules/unictype/ctype-upper-tests (Files): Likewise.
37248         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37249         * modules/unictype/decimal-digit-tests (Files): Likewise.
37250         * modules/unictype/digit-tests (Files): Likewise.
37251         * modules/unictype/mirror-tests (Files): Likewise.
37252         * modules/unictype/numeric-tests (Files): Likewise.
37253         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37254         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37255         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37256         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37257         Likewise.
37258         * modules/unictype/property-bidi-block-separator-tests (Files):
37259         Likewise.
37260         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37261         Likewise.
37262         * modules/unictype/property-bidi-common-separator-tests (Files):
37263         Likewise.
37264         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37265         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37266         Likewise.
37267         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37268         Likewise.
37269         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37270         Likewise.
37271         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37272         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37273         Likewise.
37274         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37275         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37276         Likewise.
37277         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37278         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37279         * modules/unictype/property-bidi-segment-separator-tests (Files):
37280         Likewise.
37281         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37282         * modules/unictype/property-byname-tests (Files): Likewise.
37283         * modules/unictype/property-combining-tests (Files): Likewise.
37284         * modules/unictype/property-composite-tests (Files): Likewise.
37285         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37286         * modules/unictype/property-dash-tests (Files): Likewise.
37287         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37288         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37289         Likewise.
37290         * modules/unictype/property-deprecated-tests (Files): Likewise.
37291         * modules/unictype/property-diacritic-tests (Files): Likewise.
37292         * modules/unictype/property-extender-tests (Files): Likewise.
37293         * modules/unictype/property-format-control-tests (Files): Likewise.
37294         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
37295         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
37296         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
37297         * modules/unictype/property-hex-digit-tests (Files): Likewise.
37298         * modules/unictype/property-hyphen-tests (Files): Likewise.
37299         * modules/unictype/property-id-continue-tests (Files): Likewise.
37300         * modules/unictype/property-id-start-tests (Files): Likewise.
37301         * modules/unictype/property-ideographic-tests (Files): Likewise.
37302         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37303         * modules/unictype/property-ids-trinary-operator-tests (Files):
37304         Likewise.
37305         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37306         * modules/unictype/property-iso-control-tests (Files): Likewise.
37307         * modules/unictype/property-join-control-tests (Files): Likewise.
37308         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37309         * modules/unictype/property-line-separator-tests (Files): Likewise.
37310         * modules/unictype/property-logical-order-exception-tests (Files):
37311         Likewise.
37312         * modules/unictype/property-lowercase-tests (Files): Likewise.
37313         * modules/unictype/property-math-tests (Files): Likewise.
37314         * modules/unictype/property-non-break-tests (Files): Likewise.
37315         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37316         * modules/unictype/property-numeric-tests (Files): Likewise.
37317         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37318         * modules/unictype/property-other-default-ignorable-code-point-tests
37319         (Files): Likewise.
37320         * modules/unictype/property-other-grapheme-extend-tests (Files):
37321         Likewise.
37322         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37323         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37324         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37325         * modules/unictype/property-other-math-tests (Files): Likewise.
37326         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37327         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37328         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37329         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37330         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37331         * modules/unictype/property-private-use-tests (Files): Likewise.
37332         * modules/unictype/property-punctuation-tests (Files): Likewise.
37333         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37334         * modules/unictype/property-radical-tests (Files): Likewise.
37335         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37336         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37337         * modules/unictype/property-space-tests (Files): Likewise.
37338         * modules/unictype/property-terminal-punctuation-tests (Files):
37339         Likewise.
37340         * modules/unictype/property-test-tests (Files): Likewise.
37341         * modules/unictype/property-titlecase-tests (Files): Likewise.
37342         * modules/unictype/property-unassigned-code-value-tests (Files):
37343         Likewise.
37344         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37345         * modules/unictype/property-uppercase-tests (Files): Likewise.
37346         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37347         * modules/unictype/property-white-space-tests (Files): Likewise.
37348         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37349         * modules/unictype/property-xid-start-tests (Files): Likewise.
37350         * modules/unictype/property-zero-width-tests (Files): Likewise.
37351         * modules/unictype/scripts-tests (Files): Likewise.
37352         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37353         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37354         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37355         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37356         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37357         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37358         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37359         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37360         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37361         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37362         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37363         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
37364         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
37365         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
37366         * modules/uninorm/composition-tests (Files): Likewise.
37367         * modules/uninorm/decomposing-form-tests (Files): Likewise.
37368         * modules/uninorm/decomposition-tests (Files): Likewise.
37369         * modules/uninorm/filter-tests (Files): Likewise.
37370         * modules/uninorm/nfc-tests (Files): Likewise.
37371         * modules/uninorm/nfd-tests (Files): Likewise.
37372         * modules/uninorm/nfkc-tests (Files): Likewise.
37373         * modules/uninorm/nfkd-tests (Files): Likewise.
37374         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
37375         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
37376         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
37377         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
37378         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
37379         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
37380         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
37381         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37382         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
37383         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
37384         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
37385         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
37386         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37387         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
37388         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
37389         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
37390         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
37391         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37392         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
37393         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
37394         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
37395         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
37396         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37397         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
37398         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
37399         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
37400         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
37401         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
37402         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
37403         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
37404         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
37405         * modules/uniwidth/u8-width-tests (Files): Likewise.
37406         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
37407         * modules/uniwidth/u16-width-tests (Files): Likewise.
37408         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
37409         * modules/uniwidth/u32-width-tests (Files): Likewise.
37410         * modules/uniwidth/width-tests (Files): Likewise.
37411         * modules/unlink-tests (Files): Likewise.
37412         * modules/unsetenv-tests (Files): Likewise.
37413         * modules/usleep-tests (Files): Likewise.
37414         * modules/utimens-tests (Files): Likewise.
37415         * modules/utimensat-tests (Files): Likewise.
37416         * modules/vasnprintf-posix-tests (Files): Likewise.
37417         * modules/vasnprintf-tests (Files): Likewise.
37418         * modules/vasprintf-posix-tests (Files): Likewise.
37419         * modules/vasprintf-tests (Files): Likewise.
37420         * modules/vdprintf-posix-tests (Files): Likewise.
37421         * modules/vfprintf-posix-tests (Files): Likewise.
37422         * modules/vprintf-posix-tests (Files): Likewise.
37423         * modules/vsnprintf-posix-tests (Files): Likewise.
37424         * modules/vsnprintf-tests (Files): Likewise.
37425         * modules/vsprintf-posix-tests (Files): Likewise.
37426         * modules/wcrtomb-tests (Files): Likewise.
37427         * modules/wcsnrtombs-tests (Files): Likewise.
37428         * modules/wcsrtombs-tests (Files): Likewise.
37429         * modules/wctype-tests (Files): Likewise.
37430         * modules/wcwidth-tests (Files): Likewise.
37431         * modules/xmemdup0-tests (Files): Likewise.
37432         * modules/xprintf-posix-tests (Files): Likewise.
37433         * modules/xvasprintf-tests (Files): Likewise.
37434
37435 2009-12-24  Eric Blake  <ebb9@byu.net>
37436
37437         test-nanosleep: fix typo
37438         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37439         patch.
37440         Reported by Bruno Haible.
37441
37442 2009-12-24  Bruno Haible  <bruno@clisp.org>
37443
37444         Reduce namespace pollution on glibc systems.
37445         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
37446         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
37447         systems.
37448         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
37449         <getopt.h> on glibc systems.
37450         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
37451         systems.
37452         * lib/fcntl.c: Include <unistd.h> here instead.
37453
37454 2009-12-24  Bruno Haible  <bruno@clisp.org>
37455
37456         * lib/stdlib.in.h (includes): Fix typo in today's commit.
37457
37458 2009-12-24  Eric Blake  <ebb9@byu.net>
37459
37460         tests: add signature checks
37461         * tests/signature.h (SIGNATURE_CHECK): New file.
37462         * modules/atexit-tests (Files): Use it.
37463         * modules/btowc-tests (Files): Likewise.
37464         * modules/canonicalize-lgpl-tests (Files): Likewise.
37465         * modules/ceilf-tests (Files): Likewise.
37466         * modules/ceill-tests (Files): Likewise.
37467         * modules/chown-tests (Files): Likewise.
37468         * modules/dprintf-posix-tests (Files): Likewise.
37469         * modules/dup2-tests (Files): Likewise.
37470         * modules/dup3-tests (Files): Likewise.
37471         * modules/duplocale-tests (Files): Likewise.
37472         * modules/fchdir-tests (Files): Likewise.
37473         * modules/fcntl-tests (Files): Likewise.
37474         * modules/fdopendir-tests (Files): Likewise.
37475         * modules/fflush-tests (Files): Likewise.
37476         * modules/flock-tests (Files): Likewise.
37477         * modules/floorf-tests (Files): Likewise.
37478         * modules/floorl-tests (Files): Likewise.
37479         * modules/fnmatch-tests (Files): Likewise.
37480         * modules/fopen-tests (Files): Likewise.
37481         * modules/fprintf-posix-tests (Files): Likewise.
37482         * modules/freopen-tests (Files): Likewise.
37483         * modules/frexp-nolibm-tests (Files): Likewise.
37484         * modules/frexp-tests (Files): Likewise.
37485         * modules/frexpl-nolibm-tests (Files): Likewise.
37486         * modules/frexpl-tests (Files): Likewise.
37487         * modules/fseek-tests (Files): Likewise.
37488         * modules/fseeko-tests (Files): Likewise.
37489         * modules/fsync-tests (Files): Likewise.
37490         * modules/ftell-tests (Files): Likewise.
37491         * modules/ftello-tests (Files): Likewise.
37492         * modules/futimens-tests (Files): Likewise.
37493         * modules/getaddrinfo-tests (Files): Likewise.
37494         * modules/getcwd-tests (Files): Likewise.
37495         * modules/getdelim-tests (Files): Likewise.
37496         * modules/getdtablesize-tests (Files): Likewise.
37497         * modules/getgroups-tests (Files): Likewise.
37498         * modules/gethostname-tests (Files): Likewise.
37499         * modules/getline-tests (Files): Likewise.
37500         * modules/getopt-posix-tests (Files): Likewise.
37501         * modules/gettimeofday-tests (Files): Likewise.
37502         * modules/glob-tests (Files): Likewise.
37503         * modules/iconv-tests (Files): Likewise.
37504         * modules/inet_ntop-tests (Files): Likewise.
37505         * modules/inet_pton-tests (Files): Likewise.
37506         * modules/isblank-tests (Files): Likewise.
37507         * modules/lchown-tests (Files): Likewise.
37508         * modules/ldexpl-tests (Files): Likewise.
37509         * modules/link-tests (Files): Likewise.
37510         * modules/linkat-tests (Files): Likewise.
37511         * modules/lseek-tests (Files): Likewise.
37512         * modules/lstat-tests (Files): Likewise.
37513         * modules/mbrtowc-tests (Files): Likewise.
37514         * modules/mbsinit-tests (Files): Likewise.
37515         * modules/mbsnrtowcs-tests (Files): Likewise.
37516         * modules/mbsrtowcs-tests (Files): Likewise.
37517         * modules/memchr-tests (Files): Likewise.
37518         * modules/memcmp-tests (Files): Likewise.
37519         * modules/memmem-tests (Files): Likewise.
37520         * modules/memrchr-tests (Files): Likewise.
37521         * modules/mkdir-tests (Files): Likewise.
37522         * modules/mkfifo-tests (Files): Likewise.
37523         * modules/mkfifoat-tests (Files): Likewise.
37524         * modules/mknod-tests (Files): Likewise.
37525         * modules/nanosleep-tests (Files): Likewise.
37526         * modules/nl_langinfo-tests (Files): Likewise.
37527         * modules/obstack-printf-tests (Files): Likewise.
37528         * modules/open-tests (Files): Likewise.
37529         * modules/openat-tests (Files): Likewise.
37530         * modules/perror-tests (Files): Likewise.
37531         * modules/pipe2-tests (Files): Likewise.
37532         * modules/poll-tests (Files): Likewise.
37533         * modules/popen-tests (Files): Likewise.
37534         * modules/posix_spawn-tests (Files): Likewise.
37535         * modules/posix_spawnp-tests (Files): Likewise.
37536         * modules/pread-tests (Files): Likewise.
37537         * modules/printf-posix-tests (Files): Likewise.
37538         * modules/pty-tests (Files): Likewise.
37539         * modules/random_r-tests (Files): Likewise.
37540         * modules/rawmemchr-tests (Files): Likewise.
37541         * modules/readlink-tests (Files): Likewise.
37542         * modules/remove-tests (Files): Likewise.
37543         * modules/rename-tests (Files): Likewise.
37544         * modules/renameat-tests (Files): Likewise.
37545         * modules/rmdir-tests (Files): Likewise.
37546         * modules/round-tests (Files): Likewise.
37547         * modules/roundf-tests (Files): Likewise.
37548         * modules/roundl-tests (Files): Likewise.
37549         * modules/select-tests (Files): Likewise.
37550         * modules/setenv-tests (Files): Likewise.
37551         * modules/sigaction-tests (Files): Likewise.
37552         * modules/sleep-tests (Files): Likewise.
37553         * modules/snprintf-posix-tests (Files): Likewise.
37554         * modules/snprintf-tests (Files): Likewise.
37555         * modules/sprintf-posix-tests (Files): Likewise.
37556         * modules/stat-tests (Files): Likewise.
37557         * modules/strcasestr-tests (Files): Likewise.
37558         * modules/strchrnul-tests (Files): Likewise.
37559         * modules/strerror-tests (Files): Likewise.
37560         * modules/strsignal-tests (Files): Likewise.
37561         * modules/strstr-tests (Files): Likewise.
37562         * modules/strtod-tests (Files): Likewise.
37563         * modules/strverscmp-tests (Files): Likewise.
37564         * modules/symlink-tests (Files): Likewise.
37565         * modules/symlinkat-tests (Files): Likewise.
37566         * modules/times-tests (Files): Likewise.
37567         * modules/trunc-tests (Files): Likewise.
37568         * modules/truncf-tests (Files): Likewise.
37569         * modules/truncl-tests (Files): Likewise.
37570         * modules/tsearch-tests (Files): Likewise.
37571         * modules/uname-tests (Files): Likewise.
37572         * modules/unlink-tests (Files): Likewise.
37573         * modules/unsetenv-tests (Files): Likewise.
37574         * modules/usleep-tests (Files): Likewise.
37575         * modules/utimensat-tests (Files): Likewise.
37576         * modules/vasprintf-tests (Files): Likewise.
37577         * modules/vdprintf-posix-tests (Files): Likewise.
37578         * modules/vfprintf-posix-tests (Files): Likewise.
37579         * modules/vprintf-posix-tests (Files): Likewise.
37580         * modules/vsnprintf-posix-tests (Files): Likewise.
37581         * modules/vsnprintf-tests (Files): Likewise.
37582         * modules/vsprintf-posix-tests (Files): Likewise.
37583         * modules/wcrtomb-tests (Files): Likewise.
37584         * modules/wcsnrtombs-tests (Files): Likewise.
37585         * modules/wcsrtombs-tests (Files): Likewise.
37586         * modules/wcwidth-tests (Files): Likewise.
37587         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37588         * tests/test-isinf.c (isinf): Likewise.
37589         * tests/test-isnan.c (isnan): Likewise.
37590         * tests/test-signbit.c (signbit): Likewise.
37591         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37592         declaration, either as macro or with correct signature.
37593         (select): Ensure function under test is declared with correct
37594         signature in correct header.
37595         * tests/test-atexit.c (atexit): Likewise.
37596         * tests/test-btowc.c (btowc): Likewise.
37597         * tests/test-canonicalize-lgpl.c (realpath)
37598         (canonicalize_file_name): Likewise.
37599         * tests/test-ceilf1.c (ceilf): Likewise.
37600         * tests/test-ceill.c (ceill): Likewise.
37601         * tests/test-chown.c (chown): Likewise.
37602         * tests/test-dprintf-posix.c (dprintf): Likewise.
37603         * tests/test-dup2.c (dup2): Likewise.
37604         * tests/test-dup3.c (dup3): Likewise.
37605         * tests/test-duplocale.c (duplocale): Likewise.
37606         * tests/test-fchdir.c (fchdir): Likewise.
37607         * tests/test-fchownat.c (fchownat): Likewise.
37608         * tests/test-fcntl.c (fcntl): Likewise.
37609         * tests/test-fdopendir.c (fdopendir): Likewise.
37610         * tests/test-fflush.c (fflush): Likewise.
37611         * tests/test-flock.c (flock): Likewise.
37612         * tests/test-floorf1.c (floorf): Likewise.
37613         * tests/test-floorl.c (floorl): Likewise.
37614         * tests/test-fnmatch.c (fnmatch): Likewise.
37615         * tests/test-fopen.c (fopen): Likewise.
37616         * tests/test-fprintf-posix.c (fprintf): Likewise.
37617         * tests/test-freopen.c (freopen): Likewise.
37618         * tests/test-frexp.c (frexp): Likewise.
37619         * tests/test-frexpl.c (frexpl): Likewise.
37620         * tests/test-fseek.c (fseek): Likewise.
37621         * tests/test-fseeko.c (fseeko): Likewise.
37622         * tests/test-fstatat.c (fstatat): Likewise.
37623         * tests/test-fsync.c (fsync): Likewise.
37624         * tests/test-ftell.c (ftell): Likewise.
37625         * tests/test-ftello.c (ftello): Likewise.
37626         * tests/test-futimens.c (futimens): Likewise.
37627         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37628         (gai_strerror): Likewise.
37629         * tests/test-getcwd.c (getcwd): Likewise.
37630         * tests/test-getdelim.c (getdelim): Likewise.
37631         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37632         * tests/test-getgroups.c (getgroups): Likewise.
37633         * tests/test-gethostname.c (gethostname): Likewise.
37634         * tests/test-getline.c (getline): Likewise.
37635         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37636         Likewise.
37637         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37638         * tests/test-glob.c (glob, globfree): Likewise.
37639         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37640         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37641         * tests/test-inet_pton.c (inet_pton): Likewise.
37642         * tests/test-isblank.c (isblank): Likewise.
37643         * tests/test-lchown.c (lchown): Likewise.
37644         * tests/test-ldexpl.c (ldexpl): Likewise.
37645         * tests/test-link.c (link): Likewise.
37646         * tests/test-linkat.c (linkat): Likewise.
37647         * tests/test-lseek.c (lseek): Likewise.
37648         * tests/test-lstat.c (lstat): Likewise.
37649         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37650         * tests/test-mbsinit.c (mbsinit): Likewise.
37651         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37652         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37653         * tests/test-memchr.c (memchr): Likewise.
37654         * tests/test-memcmp.c (memcmp): Likewise.
37655         * tests/test-memmem.c (memmem): Likewise.
37656         * tests/test-memrchr.c (memrchr): Likewise.
37657         * tests/test-mkdir.c (mkdir): Likewise.
37658         * tests/test-mkdirat.c (mkdirat): Likewise.
37659         * tests/test-mkfifo.c (mkfifo): Likewise.
37660         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37661         * tests/test-mknod.c (mknod): Likewise.
37662         * tests/test-nanosleep.c (nanosleep): Likewise.
37663         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37664         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37665         Likewise.
37666         * tests/test-open.c (open): Likewise.
37667         * tests/test-openat.c (openat): Likewise.
37668         * tests/test-perror.c (perror): Likewise.
37669         * tests/test-pipe2.c (pipe2): Likewise.
37670         * tests/test-poll.c (poll): Likewise.
37671         * tests/test-popen.c (popen, pclose): Likewise.
37672         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37673         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37674         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37675         (posix_spawn_file_actions_destroy)
37676         (posix_spawn_file_actions_addclose)
37677         (posix_spawn_file_actions_addopen)
37678         (posix_spawn_file_actions_adddup2): Likewise.
37679         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37680         * tests/test-pread.c (pread): Likewise.
37681         * tests/test-printf-posix.c (printf): Likewise.
37682         * tests/test-pty.c (openpty, forkpty): Likewise.
37683         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37684         (random_r): Likewise.
37685         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37686         * tests/test-readlink.c (readlink): Likewise.
37687         * tests/test-remove.c (remove): Likewise.
37688         * tests/test-rename.c (rename): Likewise.
37689         * tests/test-renameat.c (renameat): Likewise.
37690         * tests/test-rmdir.c (rmdir): Likewise.
37691         * tests/test-round1.c (round): Likewise.
37692         * tests/test-roundf1.c (roundf): Likewise.
37693         * tests/test-roundl.c (roundl): Likewise.
37694         * tests/test-setenv.c (setenv): Likewise.
37695         * tests/test-sigaction.c (sigaction): Likewise.
37696         * tests/test-sleep.c (sleep): Likewise.
37697         * tests/test-snprintf.c (snprintf): Likewise.
37698         * tests/test-sprintf-posix.c (sprintf): Likewise.
37699         * tests/test-stat.c (stat): Likewise.
37700         * tests/test-stpncpy.c (stpncpy): Likewise.
37701         * tests/test-strcasestr.c (strcasestr): Likewise.
37702         * tests/test-strchrnul.c (strchrnul): Likewise.
37703         * tests/test-strerror.c (strerror): Likewise.
37704         * tests/test-strsignal.c (strsignal): Likewise.
37705         * tests/test-strstr.c (strstr): Likewise.
37706         * tests/test-strtod.c (strtod): Likewise.
37707         * tests/test-strverscmp.c (strverscmp): Likewise.
37708         * tests/test-symlink.c (symlink): Likewise.
37709         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37710         * tests/test-times.c (times): Likewise.
37711         * tests/test-trunc1.c (trunc): Likewise.
37712         * tests/test-truncf1.c (truncf): Likewise.
37713         * tests/test-truncl.c (truncl): Likewise.
37714         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37715         Likewise.
37716         * tests/test-uname.c (uname): Likewise.
37717         * tests/test-unlink.c (unlink): Likewise.
37718         * tests/test-unlinkat.c (unlinkat): Likewise.
37719         * tests/test-unsetenv.c (unsetenv): Likewise.
37720         * tests/test-usleep.c (usleep): Likewise.
37721         * tests/test-utimensat.c (utimensat): Likewise.
37722         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37723         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37724         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37725         * tests/test-vprintf-posix.c (vprintf): Likewise.
37726         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37727         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37728         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37729         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37730         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37731         * tests/test-wcwidth.c (wcwidth): Likewise.
37732
37733         build: pull in conditional headers during GNULIB_POSIXCHECK
37734         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37735         definitions from any conditionally-included headers.
37736         * lib/stdlib.in.h (includes): Likewise.
37737         * lib/unistd.in.h (includes): Likewise.
37738
37739 2009-12-24  Bruno Haible  <bruno@clisp.org>
37740
37741         * tests/test-argv-iter.c: Include header file being tested immediately
37742         after config.h.
37743         * tests/test-base64.c: Likewise.
37744         * tests/test-flock.c: Likewise.
37745         * tests/test-fsync.c: Likewise.
37746         * tests/test-getdate.c: Likewise.
37747         * tests/test-getndelim2.c: Likewise.
37748         * tests/test-isfinite.c: Likewise.
37749         * tests/test-isinf.c: Likewise.
37750         * tests/test-strerror.c: Likewise.
37751         * tests/test-strsignal.c: Likewise.
37752
37753 2009-12-23  Eric Blake  <ebb9@byu.net>
37754
37755         unistd: work around cygwin bug
37756         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37757         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37758         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37759
37760 2009-12-23  Bruno Haible  <bruno@clisp.org>
37761
37762         localename: More tests.
37763         * tests/test-localename.c (SIZEOF): New macro.
37764         (categories): New variable.
37765         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37766         test_locale_name_default): Add test w.r.t. thread locale.
37767         (test_locale_name_thread): New function.
37768         (main): Invoke it.
37769
37770         localename: Make aware of thread locale.
37771         * lib/localename.h (gl_locale_name_thread): New declaration.
37772         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37773         behaviour with respect to thread locale.
37774         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37775         <langinfo.h>, glthread/lock.h.
37776         (SIZE_BITS): New macro.
37777         (string_hash): New function.
37778         (struct hash_node): New type.
37779         (HASH_TABLE_SIZE): New macro.
37780         (struniq_hash_table, struniq_lock): New variables.
37781         (struniq): New function.
37782         (gl_locale_name_thread): New function.
37783         (gl_locale_name): Invoke it.
37784         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37785         * modules/localename (Depends-on): Add lock.
37786         Reported by Mike Gran <spk121@yahoo.com>.
37787
37788 2009-12-23  Eric Blake  <ebb9@byu.net>
37789
37790         va-args: new module
37791         * modules/va-args: New file.
37792         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37793         * MODULES.html.sh (Core language properties): Mention it.
37794
37795         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37796         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37797         named alias for __attribute__((__unused__)).
37798         * lib/chown.c: Update client.
37799         * lib/fchmodat.c: Likewise.
37800         * lib/fts.c: Likewise.
37801         * lib/getdate.y: Likewise.
37802         * lib/getgroups.c: Likewise.
37803         * lib/getopt.c: Likewise.
37804         * lib/getugroups.c: Likewise.
37805         * lib/mkdir.c: Likewise.
37806         * lib/mkfifo.c: Likewise.
37807         * lib/mkfifoat.c: Likewise.
37808         * lib/mknod.c: Likewise.
37809         * lib/mknodat.c: Likewise.
37810         * lib/readlink.c: Likewise.
37811         * lib/se-context.in.h: Likewise.
37812         * lib/se-selinux.in.h: Likewise.
37813         * lib/sockets.c: Likewise.
37814         * lib/symlink.c: Likewise.
37815         * lib/symlinkat.c: Likewise.
37816         * lib/unicodeio.c: Likewise.
37817         * lib/unistr.h: Likewise.
37818         * tests/test-areadlink.c: Likewise.
37819         * tests/test-areadlinkat.c: Likewise.
37820         * tests/test-filenamecat.c: Likewise.
37821         * tests/test-fseeko.c: Likewise.
37822         * tests/test-ftello.c: Likewise.
37823         * tests/test-getdate.c: Likewise.
37824         * tests/test-getgroups.c: Likewise.
37825         * tests/test-gethostname.c: Likewise.
37826         * tests/test-quotearg.c: Likewise.
37827         * tests/test-version-etc.c: Likewise.
37828         * tests/test-xalloc-die.c: Likewise.
37829         * tests/test-xfprintf-posix.c: Likewise.
37830         * tests/test-xprintf-posix.c: Likewise.
37831         * tests/test-xvasprintf.c: Likewise.
37832
37833         tests: avoid compiler warnings
37834         * tests/test-fcntl.c (main): Delete unused parameters.
37835         * tests/test-freopen-safer.c (main): Likewise.
37836         * tests/test-xalloc-die.c (main): Mark unused parameters.
37837         * tests/test-fseeko.c (main): Likewise.
37838         * tests/test-ftello.c (main): Likewise.
37839         * tests/test-nanosleep.c (main): Avoid declaration warning.
37840         * tests/test-sleep.c (main): Likewise.
37841         * tests/test-unsetenv.c (main): Silence warning about string
37842         literal.
37843         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37844
37845 2009-12-23  Bruno Haible  <bruno@clisp.org>
37846
37847         * tests/test-localename.c (test_locale_name): New function, extracted
37848         from main. Also test mixed situations.
37849         (test_locale_name_posix, test_locale_name_environ,
37850         test_locale_name_default): New functions.
37851         (main): Invoke them all.
37852         * modules/localename-tests (configure.ac): Test for newlocale.
37853
37854 2009-12-23  Bruno Haible  <bruno@clisp.org>
37855
37856         unistd: Ensure getcwd gets declared before being overridden.
37857         * lib/unistd.in.h: Conditionally include <io.h>.
37858
37859 2009-12-22  Bruno Haible  <bruno@clisp.org>
37860
37861         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37862         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37863         (gl_WCHAR_H): Invoke it.
37864         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37865         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37866         Reported by Karl Berry <karl@freefriends.org>.
37867
37868 2009-12-22  Eric Blake  <ebb9@byu.net>
37869
37870         math, unistd: avoid redundant includes
37871         * lib/math.in.h (isnan): No need to re-include <math.h>.
37872         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37873
37874         getsubopt: work around cygwin bug
37875         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37876         avoid conflicting with system getsubopt.
37877         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37878         bug.
37879
37880         getopt: synchronize from glibc
37881         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37882         parameter order.  Adjust all callers.
37883         (_getopt_internal_r, main): Adjust quoting in error messages.
37884         Drop considerations for outdated POSIX 1003.2 error message.
37885         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37886         callers.
37887         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37888
37889         test-getopt: test stderr behavior
37890         * modules/getopt-posix-tests (Depends-on): Add dup2.
37891         * tests/test-getopt.c (ASSERT): Avoid stderr.
37892         (main): Move stderr to a temporary file.
37893         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37894         Instead, add parameter to inform caller if output occurred.
37895         (test_getopt): Adjust all existing tests to expect silence, and
37896         add new tests of leading ":".
37897         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37898         glibc shortcomings with leading "-:" or "+:" in optstring.
37899         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37900         Likewise.
37901         * doc/posix-functions/getopt.texi (getopt): Likewise.
37902
37903         test-getopt: enhance test
37904         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37905         supports optind=0.
37906         * tests/test-getopt.c (OPTIND_MIN): Move...
37907         * tests/test-getopt.h (OPTIND_MIN): ...here.
37908         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37909         Require that optind=0 works, since modern BSD supports it in
37910         addition to optreset, and since coreutils expects it.
37911         (test_getopt_long_only): New test.
37912         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37913         glibc shortcomings with 'W;', and enforcement of optind=0.
37914         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37915         Likewise.
37916
37917 2009-12-21  Bruno Haible  <bruno@clisp.org>
37918
37919         localename: Improvements for MacOS X and Cygwin.
37920         * lib/localename.h (gl_locale_name_environ): New declaration.
37921         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37922         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37923         (gl_locale_name_posix): Invoke it.
37924         (gl_locale_name_default): Add comments. Use Windows native API also on
37925         Cygwin.
37926
37927 2009-12-21  Bruno Haible  <bruno@clisp.org>
37928
37929         Update list of Win32 locale ids.
37930         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37931         (LANG_SAMI): Renamed from LANG_SAAMI.
37932         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37933         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37934         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37935         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37936         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37937         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37938         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37939         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37940         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37941         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37942         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37943         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37944         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37945         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37946         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37947         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37948         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37949         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37950         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37951         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37952         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37953         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37954         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37955         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37956         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37957         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37958         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37959         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37960         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37961         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37962         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37963         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37964         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37965         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37966         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37967         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37968         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37969         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37970         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37971         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37972         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37973         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37974         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37975         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37976         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37977         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37978         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37979         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37980         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37981         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37982         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37983         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37984         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37985         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37986         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37987         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37988         Add more languages and countries for Sami, Sorbian. Add more countries
37989         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37990         for Pashto. Change country for Syriac, Tswana.
37991
37992 2009-12-21  Eric Blake  <ebb9@byu.net>
37993
37994         test-utimens: avoid spurious failure
37995         * tests/test-chown.h (nap): Factor...
37996         * tests/nap.h: ...into new file.
37997         * tests/test-lchown.h (nap): Avoid duplication.
37998         * tests/test-utimens-common.h (nap): Use shared implementation,
37999         necessary on file systems with 1-second resolution.
38000         * modules/chown-tests (Files): Include new file.
38001         * modules/fdutimensat-tests (Files): Likewise.
38002         * modules/futimens-tests (Files): Likewise.
38003         * modules/lchown-tests (Files): Likewise.
38004         * modules/openat-tests (Files): Likewise.
38005         * modules/utimens-tests (Files): Likewise.
38006         * modules/utimensat-tests (Files): Likewise.
38007
38008 2009-12-19  Eric Blake  <ebb9@byu.net>
38009
38010         futimens, utimensat: work around Linux bug
38011         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
38012         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38013         * lib/utimensat.c (rpl_utimensat): Work around it.
38014         * lib/futimens.c (rpl_futimens): Adjust comment.
38015
38016         utimens: work around Linux ctime bug
38017         * lib/utimens.c (detect_ctime_bug): New helper function.
38018         (update_timespec): Differentiate between workaround needed for
38019         this bug vs. what is needed for systems that lack utimensat.
38020         (fdutimens, lutimens): Work around bug.
38021
38022         utimens: check for ctime update
38023         * tests/test-utimens-common.h (check_ctime): Define.
38024         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
38025         * tests/test-futimens.h (test_futimens): Likewise.
38026         * tests/test-lutimens.h (test_lutimens): Likewise.
38027         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38028         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38029
38030 2009-12-19  Bruno Haible  <bruno@clisp.org>
38031
38032         dprintf-posix: Check against memory leak fixed on 2009-12-15.
38033         * tests/test-dprintf-posix2.sh: New file.
38034         * tests/test-dprintf-posix2.c: New file.
38035         * modules/dprintf-posix-tests (Files): Add them.
38036         (configure.ac): Check for getrlimit and setrlimit.
38037         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38038
38039 2009-12-19  Bruno Haible  <bruno@clisp.org>
38040
38041         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38042         * tests/test-fprintf-posix3.sh: New file.
38043         * tests/test-fprintf-posix3.c: New file.
38044         * modules/fprintf-posix-tests (Files): Add them.
38045         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38046
38047 2009-12-19  Eric Blake  <ebb9@byu.net>
38048
38049         dirfd: fix prototype
38050         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38051         * lib/dirfd.c (dirfd): Likewise.
38052
38053         canonicalize: reduce memory usage
38054         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38055         allocation to size.
38056         Reported by Solar Designer <solar@openwall.com>.
38057
38058 2009-12-19  Bruno Haible  <bruno@clisp.org>
38059
38060         New module attribute 'Applicability'.
38061         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38062         * gnulib-tool: New option --extract-applicability.
38063         (func_usage): Document it.
38064         (sed_extract_prog): Recognize it.
38065         (func_get_applicability): New function.
38066         (func_import): Generalize handling of 'link-warning' module.
38067         * modules/link-warning (Applicability): New section.
38068         * modules/arg-nonnull (Applicability): New section.
38069         Repoted by Simon Josefsson <simon@josefsson.org>.
38070
38071 2009-12-19  Bruno Haible  <bruno@clisp.org>
38072
38073         fflush: tweak
38074         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38075         * lib/fseeko.c (rpl_fseeko): Likewise.
38076
38077 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38078
38079         * lib/gl_list.h: Fix typo in comment.
38080
38081 2009-12-16  Eric Blake  <ebb9@byu.net>
38082
38083         fcntl: use to simplify other modules
38084         * modules/cloexec (Depends-on): Add fcntl.
38085         * modules/fchdir (Depends-on): Likewise.
38086         * modules/fd-safer-flag (Depends-on): Likewise.
38087         * modules/unistd-safer (Depends-on): Likewise.
38088         * modules/dup3 (configure.ac): Set module indicator.
38089         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38090         missing.
38091         * lib/fchdir.c (_gl_register_dup): Fix comment.
38092         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38093         * lib/dup-safer.c (dup_safer): Likewise.
38094         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38095         * lib/dup3.c (dup3): Likewise.
38096         * tests/test-fchdir.c (main): Enhance test.
38097         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
38098
38099         fcntl: port portions of fcntl to mingw
38100         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38101         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38102         replacement for mingw.
38103         * modules/fcntl (Description): Update.
38104         (Depends-on): Add dup2.
38105         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38106         * modules/fcntl-h (Makefile.am): Substitute it.
38107         * lib/fcntl.in.h (fcntl): Update declaration.
38108         (F_DUPFD, F_GETFD): New macros, when needed.
38109         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38110         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38111         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38112         we now guarantee.
38113
38114         fcntl: work around cygwin bug in F_DUPFD
38115         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38116         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38117         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38118         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38119         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38120
38121         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38122         * modules/fcntl (Files): List new files.
38123         (configure.ac): Run a test.
38124         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38125         * lib/fcntl.c (rpl_fcntl): Likewise.
38126         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38127         (gl_FCNTL_H): Always replace fcntl.h.
38128         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38129         * lib/fcntl.in.h (fcntl): Declare replacement.
38130         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38131         needed, plus a witness.
38132         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38133         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38134         * tests/test-fcntl.c: New file.
38135         * modules/fcntl-tests: Likewise.
38136
38137         binary-io: avoid potential compilation warning
38138         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38139         directives.
38140
38141         fflush: avoid compilation error on NetBSD
38142         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38143         between off_t and fpos_t, since the latter is sometimes a struct.
38144         * lib/fseeko.c (rpl_fseeko): Likewise.
38145         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38146
38147 2009-12-15  Eric Blake  <ebb9@byu.net>
38148
38149         fcntl-h, stdio, sys_ioctl: fix declarations
38150         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38151         function must not take arguments.
38152         * lib/sys_ioctl.in.h (ioctl): Likewise.
38153         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38154         (open): Add a link warning.
38155
38156 2009-12-15  Jim Meyering  <meyering@redhat.com>
38157
38158         areadlink, areadlink-with-size: relax license to LGPLv2+
38159         * modules/areadlink (License): Relax to LGPLv2+.
38160         * modules/areadlink-with-size (License): Likewise.
38161
38162 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38163             Bruno Haible  <bruno@clisp.org>
38164
38165         *printf: Fix memory leak.
38166         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38167         * lib/vfprintf.c (vfprintf): Likewise.
38168         * lib/dprintf.c (dprintf): Likewise.
38169         * lib/vdprintf.c (vdprintf): Likewise.
38170
38171 2009-12-14  Eric Blake  <ebb9@byu.net>
38172
38173         accept4: adjust module dependencies
38174         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38175
38176         utimens: one more try at avoiding compiler warning
38177         * lib/utimens.c (lutimens): Lower scope of result.
38178
38179 2009-12-13  Bruno Haible  <bruno@clisp.org>
38180
38181         Move the malloc checking from module 'list' to new module 'xlist'.
38182         * modules/xlist: New file.
38183         * lib/gl_xlist.h: New file.
38184         * lib/gl_xlist.c: New file.
38185         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38186         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38187         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38188         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38189         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38190         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38191         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38192         gl_sortedlist_nx_add): New declarations.
38193         (struct gl_list_implementation): Rename and change methods accordingly.
38194         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38195         (gl_list_nx_create): Renamed from gl_list_create.
38196         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38197         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38198         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38199         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38200         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38201         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38202         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38203         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38204         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38205         gl_list_create_empty.
38206         (gl_list_nx_create): Renamed from gl_list_create.
38207         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38208         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38209         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38210         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38211         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38212         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38213         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38214         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38215         * lib/gl_array_list.c: Don't include xalloc.h.
38216         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38217         NULL upon out-of-memory.
38218         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38219         out-of-memory.
38220         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38221         Change return type to 'int'.
38222         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38223         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38224         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38225         upon out-of-memory.
38226         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38227         upon out-of-memory.
38228         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38229         upon out-of-memory.
38230         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38231         upon out-of-memory.
38232         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38233         out-of-memory.
38234         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38235         Update.
38236         (gl_array_list_implementation): Update.
38237         * lib/gl_carray_list.c: Don't include xalloc.h.
38238         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38239         Return NULL upon out-of-memory.
38240         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38241         out-of-memory.
38242         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38243         Change return type to 'int'.
38244         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38245         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38246         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38247         upon out-of-memory.
38248         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38249         upon out-of-memory.
38250         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38251         out-of-memory.
38252         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38253         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38254         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38255         Update.
38256         (gl_carray_list_implementation): Update.
38257         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38258         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38259         gl_linked_create_empty. Return NULL upon out-of-memory.
38260         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38261         out-of-memory.
38262         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38263         Change return type to 'int'. Return -1 upon out-of-memory.
38264         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38265         out-of-memory.
38266         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38267         upon out-of-memory.
38268         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38269         upon out-of-memory.
38270         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38271         NULL upon out-of-memory.
38272         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38273         upon out-of-memory.
38274         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38275         out-of-memory.
38276         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38277         Update.
38278         * lib/gl_linked_list.c: Don't include xalloc.h.
38279         (gl_linked_list_implementation): Update.
38280         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38281         (add_to_bucket): Change return type to 'int'.
38282         (gl_linkedhash_list_implementation): Update.
38283         * lib/gl_anytree_list1.h (free_subtree): New function.
38284         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38285         gl_tree_create_empty. Return NULL upon out-of-memory.
38286         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38287         Change return type to 'int'. Return -1 upon out-of-memory.
38288         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38289         out-of-memory.
38290         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
38291         (gl_tree_remove_node): New function, moved here from
38292         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
38293         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
38294         Update.
38295         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
38296         malloc, not xmalloc. Return NULL upon out-of-memory.
38297         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38298         out-of-memory.
38299         (gl_tree_remove_node_from_tree): New function, extracted from
38300         gl_tree_remove_node.
38301         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38302         upon out-of-memory.
38303         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38304         out-of-memory.
38305         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38306         upon out-of-memory.
38307         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38308         upon out-of-memory.
38309         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38310         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38311         not xmalloc. Return NULL upon out-of-memory.
38312         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38313         out-of-memory.
38314         (gl_tree_remove_node_from_tree): New function, extracted from
38315         gl_tree_remove_node.
38316         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38317         upon out-of-memory.
38318         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38319         out-of-memory.
38320         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38321         upon out-of-memory.
38322         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38323         upon out-of-memory.
38324         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38325         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38326         gl_anytree_list1.h before gl_anyavltree_list2.h.
38327         (gl_avltree_list_implementation): Update.
38328         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38329         gl_anytree_list1.h before gl_anyavltree_list2.h.
38330         (gl_rbtree_list_implementation): Update.
38331         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38332         Change return type to 'int'. Return -1 upon out-of-memory. Use
38333         __builtin_expect.
38334         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38335         (gl_avltreehash_list_implementation): Update.
38336         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38337         (gl_rbtreehash_list_implementation): Update.
38338         * modules/array-list (Depends-on): Remove xalloc.
38339         * modules/carray-list (Depends-on): Likewise.
38340         * modules/linked-list (Depends-on): Likewise.
38341         * modules/linkedhash-list (Depends-on): Likewise.
38342         * modules/avltree-list (Depends-on): Likewise.
38343         * modules/rbtree-list (Depends-on): Likewise.
38344         * modules/avltreehash-list (Depends-on): Likewise.
38345         * modules/rbtreehash-list (Depends-on): Likewise.
38346
38347         * modules/xsublist: New file.
38348         * lib/gl_xsublist.h: New file.
38349         * lib/gl_xsublist.c: New file.
38350         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38351         (gl_sublist_nx_create): New declaration.
38352         * lib/gl_sublist.c: Don't include xalloc.h.
38353         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38354         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38355         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38356         Change return type to 'int'. Return -1 upon out-of-memory.
38357         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38358         upon out-of-memory.
38359         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38360         NULL upon out-of-memory.
38361         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38362         upon out-of-memory.
38363         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
38364         NULL upon out-of-memory.
38365         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
38366         NULL upon out-of-memory.
38367         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
38368         upon out-of-memory.
38369         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
38370         (gl_sublist_list_implementation): Update.
38371         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
38372         upon out-of-memory.
38373         * modules/sublist (Depends-on): Remove xalloc.
38374
38375         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
38376         * tests/test-carray_list.c: Likewise.
38377         * tests/test-linked_list.c: Likewise.
38378         * tests/test-linkedhash_list.c: Likewise.
38379         * tests/test-avltree_list.c: Likewise.
38380         * tests/test-rbtree_list.c: Likewise.
38381         * tests/test-avltreehash_list.c: Likewise.
38382         * tests/test-rbtreehash_list.c: Likewise.
38383         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
38384         * modules/carray-list-tests (Makefile.am): Likewise.
38385         * modules/linked-list-tests (Makefile.am): Likewise.
38386         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38387         * modules/avltree-list-tests (Makefile.am): Likewise.
38388         * modules/rbtree-list-tests (Makefile.am): Likewise.
38389         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38390         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38391
38392         * NEWS: Mention the changes.
38393
38394         * lib/clean-temp.c: Include gl_xlist.h.
38395         * modules/clean-temp (Depends-on): Add xlist.
38396
38397         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
38398         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
38399
38400         * tests/test-array_oset.c: Include gl_xlist.h.
38401         * modules/array-oset-tests (Depends-on): Add xlist.
38402
38403         Reported by José E. Marchesi <jemarch@gnu.org>.
38404
38405 2009-12-13  Bruno Haible  <bruno@clisp.org>
38406
38407         Move the malloc checking from module 'oset' to new module 'xoset'.
38408         * modules/xoset: New file.
38409         * lib/gl_xoset.h: New file.
38410         * lib/gl_xoset.c: New file.
38411         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
38412         declarations.
38413         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
38414         (struct gl_oset_implementation): Rename and change methods accordingly.
38415         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
38416         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38417         'int'. Mark as __warn_unused_result__.
38418         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
38419         gl_oset_create_empty.
38420         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38421         'int'.
38422         * lib/gl_array_oset.c: Don't include xalloc.h.
38423         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38424         malloc, not xmalloc.
38425         (grow): Change return type to 'int'. Don't call xalloc_die.
38426         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38427         to 'int'.
38428         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38429         'int'.
38430         (gl_array_oset_implementation): Update.
38431         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38432         gl_tree_create_empty.
38433         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38434         'int'.
38435         * lib/gl_avltree_oset.c: Don't include xalloc.h.
38436         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38437         xmalloc.
38438         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38439         not xmalloc.
38440         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38441         xmalloc.
38442         (gl_avltree_oset_implementation): Update.
38443         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
38444         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38445         xmalloc.
38446         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38447         not xmalloc.
38448         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38449         xmalloc.
38450         (gl_rbtree_oset_implementation): Update.
38451         * modules/array-oset (Depends-on): Remove xalloc.
38452         * modules/avltree-oset (Depends-on): Likewise.
38453         * modules/rbtree-oset (Depends-on): Likewise.
38454         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
38455         * tests/test-avltree_oset.c: Likewise.
38456         * tests/test-rbtree_oset.c: Likewise.
38457         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38458         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
38459         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38460         * NEWS: Mention the change.
38461
38462 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38463
38464         maint.mk: allow a project to override release-prep commands
38465         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38466         commands into a new rule.
38467         (release-prep): New rule.
38468         (release-prep-hook): New overridable variable.
38469
38470 2009-12-13  Bruno Haible  <bruno@clisp.org>
38471
38472         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
38473
38474 2009-12-13  Jim Meyering  <meyering@redhat.com>
38475
38476         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
38477         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
38478
38479 2009-12-12  Bruno Haible  <bruno@clisp.org>
38480
38481         duplocale: Tweak.
38482         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
38483
38484 2009-12-12  Karl Berry  <karl@gnu.org>
38485
38486         * config/srclist.txt (strtoll.c): tab changes, no more sync.
38487
38488 2009-12-12  Bruno Haible  <bruno@clisp.org>
38489
38490         * m4/po.m4: Undo incorrect untabification.
38491
38492 2009-12-12  Bruno Haible  <bruno@clisp.org>
38493
38494         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
38495         * modules/c-strtod (Depends-on): Add locale.
38496         * modules/c-strtold (Depends-on): Likewise.
38497
38498 2009-12-12  Bruno Haible  <bruno@clisp.org>
38499
38500         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
38501
38502 2009-12-11  Eric Blake  <ebb9@byu.net>
38503
38504         setenv: relax requirement in light of POSIX ruling
38505         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
38506         not NULL.
38507         * tests/test-setenv.c (main): Relax test.
38508         * tests/test-unsetenv.c (main): Likewise.
38509         * doc/posix-functions/setenv.texi (setenv): Document this.
38510         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38511
38512 2009-12-11  Bruno Haible  <bruno@clisp.org>
38513
38514         New module 'fd-safer-flag'.
38515         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
38516         * lib/dup-safer.c (dup_safer_flag): Remove function.
38517         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38518         * lib/fd-safer.c (fd_safer_flag): Remove function.
38519         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38520         * modules/cloexec (configure.ac): Drop indicator macro.
38521         * modules/fd-safer-flag: New file.
38522         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38523         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38524         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38525
38526 2009-12-11  Bruno Haible  <bruno@clisp.org>
38527
38528         Tests for module 'nl_langinfo'.
38529         * modules/nl_langinfo-tests: New file.
38530         * tests/test-nl_langinfo.sh: New file.
38531         * tests/test-nl_langinfo.c: New file.
38532
38533         New module 'nl_langinfo'.
38534         * lib/nl_langinfo.c: New file.
38535         * m4/nl_langinfo.m4: New file.
38536         * modules/nl_langinfo: New file.
38537         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38538
38539 2009-12-11  Bruno Haible  <bruno@clisp.org>
38540
38541         Tests for module 'langinfo'.
38542         * modules/langinfo-tests: New file.
38543         * tests/test-langinfo.c: New file.
38544
38545         New module 'langinfo'.
38546         * lib/langinfo.in.h: New file.
38547         * m4/langinfo_h.m4: New file.
38548         * modules/langinfo: New file.
38549         * doc/posix-headers/langinfo.texi: Mention the new module.
38550
38551 2009-12-11  Bruno Haible  <bruno@clisp.org>
38552
38553         * lib/config.charset: Untabify.
38554
38555 2009-12-11  Bruno Haible  <bruno@clisp.org>
38556
38557         * modules/unistd-safer (configure.ac): Drop indicator macro.
38558
38559 2009-12-11  Bruno Haible  <bruno@clisp.org>
38560
38561         Move pipe2-safer code to its own file.
38562         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38563         * lib/pipe-safer.c (pipe2_safer): Remove function.
38564         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38565         (Makefile.am): Add it to lib_SOURCES.
38566
38567 2009-12-10  Bruno Haible  <bruno@clisp.org>
38568
38569         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38570
38571 2009-12-10  Bruno Haible  <bruno@clisp.org>
38572
38573         Declare which arguments expect non-NULL values, for GCC and clang.
38574         * build-aux/arg-nonnull.h: New file.
38575         * modules/arg-nonnull: New file.
38576         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38577         (inet_ntop, inet_pton): Use it.
38578         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38579         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38580         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38581         (open, openat): Use it.
38582         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38583         (fnmatch): Use it.
38584         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38585         (getopt, getopt_long, getopt_long_only): Use it.
38586         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38587         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38588         Use it.
38589         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38590         (iconv_open): Use it.
38591         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38592         (strtoimax, strtoumax): Use it.
38593         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38594         (duplocale): Use it.
38595         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38596         (frexp, frexpl): Use it.
38597         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38598         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38599         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38600         (tsearch, tfind, tdelete, twalk): Use it.
38601         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38602         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38603         sigpending): Use it.
38604         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38605         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38606         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38607         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38608         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38609         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38610         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38611         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38612         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38613         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38614         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38615         Use it.
38616         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38617         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38618         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38619         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38620         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38621         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38622         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38623         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38624         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38625         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38626         strtoull, unsetenv): Use it.
38627         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38628         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38629         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38630         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38631         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38632         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38633         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38634         (strcasecmp, strncasecmp): Use it.
38635         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38636         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38637         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38638         rpl_setsockopt): Use it.
38639         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38640         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38641         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38642         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38643         (gettimeofday): Use it.
38644         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38645         (times): Use it.
38646         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38647         (uname): Use it.
38648         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38649         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38650         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38651         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38652         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38653         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38654         unlinkat, write): Use it.
38655         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38656         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38657         * lib/argv-iter.h: Include arg-nonnull.h.
38658         (_ATTRIBUTE_NONNULL_): Remove macro.
38659         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38660         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38661         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38662         optimization.
38663         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38664         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38665         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38666         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38667         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38668         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38669         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38670         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38671         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38672         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38673         * modules/dirent (Depends-on): Add arg-nonnull.
38674         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38675         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38676         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38677         * modules/fnmatch (Depends-on): Add arg-nonnull.
38678         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38679         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38680         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38681         * modules/glob (Depends-on): Add arg-nonnull.
38682         (Makefile.am): Insert arg-nonnull.h into glob.h.
38683         * modules/iconv_open (Depends-on): Add arg-nonnull.
38684         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38685         * modules/inttypes (Depends-on): Add arg-nonnull.
38686         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38687         * modules/locale (Depends-on): Add arg-nonnull.
38688         (Makefile.am): Insert arg-nonnull.h into locale.h.
38689         * modules/math (Depends-on): Add arg-nonnull.
38690         (Makefile.am): Insert arg-nonnull.h into math.h.
38691         * modules/netdb (Depends-on): Add arg-nonnull.
38692         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38693         * modules/search (Depends-on): Add arg-nonnull.
38694         (Makefile.am): Insert arg-nonnull.h into search.h.
38695         * modules/signal (Depends-on): Add arg-nonnull.
38696         (Makefile.am): Insert arg-nonnull.h into signal.h.
38697         * modules/spawn (Depends-on): Add arg-nonnull.
38698         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38699         * modules/stdio (Depends-on): Add arg-nonnull.
38700         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38701         * modules/stdlib (Depends-on): Add arg-nonnull.
38702         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38703         * modules/string (Depends-on): Add arg-nonnull.
38704         (Makefile.am): Insert arg-nonnull.h into string.h.
38705         * modules/strings (Depends-on): Add arg-nonnull.
38706         (Makefile.am): Insert arg-nonnull.h into strings.h.
38707         * modules/sys_socket (Depends-on): Add arg-nonnull.
38708         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38709         * modules/sys_stat (Depends-on): Add arg-nonnull.
38710         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38711         * modules/sys_time (Depends-on): Add arg-nonnull.
38712         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38713         * modules/sys_times (Depends-on): Add arg-nonnull.
38714         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38715         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38716         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38717         * modules/time (Depends-on): Add arg-nonnull.
38718         (Makefile.am): Insert arg-nonnull.h into time.h.
38719         * modules/unistd (Depends-on): Add arg-nonnull.
38720         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38721         * modules/wchar (Depends-on): Add arg-nonnull.
38722         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38723         * modules/argv-iter (Depends-on): Add arg-nonnull.
38724         * tests/test-canonicalize.c (null_ptr): New function.
38725         (main): Use it.
38726         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38727         (main): Use it.
38728         * tests/test-memmem.c (null_ptr): New function.
38729         (main): Use it.
38730         Reported by Jim Meyering.
38731
38732 2009-12-10  Bruno Haible  <bruno@clisp.org>
38733
38734         Use spaces for indentation, not tabs.
38735         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38736         * m4/*.m4: Untabify.
38737         * build-aux/*.h: Untabify.
38738         * tests/**/*.[hc]: Untabify.
38739         * README: New section "Indent with spaces, not TABs", based on
38740         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38741         * NEWS: Mention the change.
38742
38743 2009-12-10  Bruno Haible  <bruno@clisp.org>
38744
38745         pty test: Fix link error.
38746         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38747         test_pty_LDADD.
38748
38749 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38750
38751         * modules/pty: New file.
38752         * modules/pty-tests: New file.
38753         * m4/pty.m4: New file.
38754         * tests/test-pty.c: New file.
38755         * doc/glibc-headers/pty.texi: Modified.
38756         * doc/glibc-functions/forkpty.texi: Modified.
38757         * doc/glibc-functions/openpty.texi: Modified.
38758
38759 2009-12-10  Bruno Haible  <bruno@clisp.org>
38760
38761         Avoid syntax error in C++ mode.
38762         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38763
38764 2009-12-10  Bruno Haible  <bruno@clisp.org>
38765
38766         Use sed with option -e.
38767         * gnulib-tool (func_version, func_emit_copyright_notice,
38768         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38769         option -e to sed.
38770         * modules/link-warning (Makefile.am): Likewise.
38771
38772 2009-12-10  Jim Meyering  <meyering@redhat.com>
38773
38774         mgetgroups: do not write bytes beyond end of malloc'd buffer
38775         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38776         username, we call getgroups with a one-element-shorter buffer,
38777         but still told it the length was original, max_n_groups.
38778
38779 2009-12-09  Eric Blake  <ebb9@byu.net>
38780
38781         cloexec: relax license
38782         * modules/cloexec (Maintainer): Add myself.
38783         (License): Use LGPL, not GPL.
38784
38785         link-warning: optimize generation
38786         * modules/link-warning (Makefile.am): Reduce process usage.
38787
38788 2009-12-09  Bruno Haible  <bruno@clisp.org>
38789
38790         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38791         workaround was added on 2009-11-17.
38792
38793 2009-12-09  Jim Meyering  <meyering@redhat.com>
38794             Bruno Haible  <bruno@clisp.org>
38795
38796         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38797         * modules/link-warning (Makefile.am): Make the comment-removing sed
38798         command more robust in the face of bootstrap-prepended comment lines.
38799
38800 2009-12-09  Bruno Haible  <bruno@clisp.org>
38801
38802         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38803         most one group.
38804
38805 2009-12-09  Simon Josefsson <simon@josefsson.org>
38806             Bruno Haible  <bruno@clisp.org>
38807
38808         * build-aux/link-warning.h: Add copyright notice.
38809         * modules/link-warning (Makefile.am): Generate link-warning.h from
38810         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38811         * NEWS: Mention change in link-warning module.
38812         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38813         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38814         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38815         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38816         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38817         * modules/math (Makefile.am): Add dependency to math.h.
38818         * modules/search (Makefile.am): Add dependency to search.h.
38819         * modules/signal (Makefile.am): Add dependency to signal.h.
38820         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38821         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38822         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38823         * modules/string (Makefile.am): Add dependency to string.h.
38824         * modules/strings (Makefile.am): Add dependency to strings.h.
38825         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38826         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38827         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38828         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38829         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38830         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38831         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38832         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38833         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38834
38835 2009-12-09  Bruno Haible  <bruno@clisp.org>
38836
38837         fchdir: Optimize away rpl_fstat when possible.
38838         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38839         REPLACE_OPEN_DIRECTORY.
38840         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38841
38842 2009-12-09  Bruno Haible  <bruno@clisp.org>
38843
38844         * lib/fchdir.c: Update comment.
38845
38846 2009-12-09  Bruno Haible  <bruno@clisp.org>
38847
38848         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38849
38850 2009-12-08  Eric Blake  <ebb9@byu.net>
38851
38852         fchdir: avoid memory leak on re-registration.
38853         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38854
38855 2009-12-08  Jim Meyering  <meyering@redhat.com>
38856
38857         init.sh: avoid Solaris 10 /bin/sh portability problem
38858         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38859         sourced script:
38860           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38861           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38862           bar
38863         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38864         and two tests used that idiom.
38865         * tests/init.sh: Update suggested usage comments.
38866         (path_prepend_): New function, to be used in place
38867         of the --src-path=DIR option.
38868         (setup_): Move PATH-prepending code into path_prepend_.
38869         * tests/test-pread.sh: Adapt to new usage.
38870         * tests/test-xalloc-die.sh: Likewise.
38871
38872 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38873
38874         * doc/gnulib.texi (Glibc pty.h): Add.
38875         * doc/glibc-functions/forkpty.texi: Add.
38876         * doc/glibc-functions/openpty.texi: Add.
38877         Suggested by Bruno Haible.
38878
38879 2009-12-08  Eric Blake  <ebb9@byu.net>
38880
38881         fchdir: fix logic bugs
38882         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38883         * tests/test-fchdir.c (main): Enhance test.
38884         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38885         is in use.
38886
38887         dup2: fix logic bugs
38888         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38889         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38890         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38891         exists.
38892         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38893
38894 2009-12-07  Eric Blake  <ebb9@byu.net>
38895
38896         unlink: fix m4 detection
38897         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38898
38899         unistd-safer: add unit test
38900         * modules/unistd-safer-tests: New file.
38901         * tests/test-dup-safer.c: Likewise.
38902         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38903         * tests/test-dup2.c (setmode): Likewise.
38904         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38905
38906         cloexec: preserve text vs. binary across dup_cloexec
38907         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38908         mode.
38909         * modules/dup2-tests (Depends-on): Add binary-io.
38910         * modules/cloexec-tests (Depends-on): Likewise.
38911         * tests/test-dup2.c (setmode, is_mode): New helpers.
38912         (main): Add tests that translation mode is preserved.
38913         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38914         Reported by Bruno Haible.
38915
38916         mgetgroups: reduce duplicate listings
38917         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38918         resulting array.
38919         * tests/test-chown.h (test_chown): Simplify client.
38920         * tests/test-lchown.h (test_lchown): Likewise.
38921
38922 2009-12-06  Bruno Haible  <bruno@clisp.org>
38923
38924         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38925         value.
38926
38927 2009-12-06  Bruno Haible  <bruno@clisp.org>
38928
38929         * lib/progname.c: Include stdio.h, stdlib.h.
38930         (set_program_name): Reject a NULL argument.
38931
38932 2009-12-05  Eric Blake  <ebb9@byu.net>
38933
38934         pipe2-safer: new module
38935         * modules/pipe2-safer: New file.
38936         * lib/unistd-safer.h (pipe2_safer): New prototype.
38937         * lib/unistd--.h (pipe2): New wrapper.
38938         * lib/pipe-safer.c (pipe2_safer): New function.
38939         * modules/pipe (Depends-on): Add pipe2-safer.
38940         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38941
38942         stdlib-safer: preserve cloexec flag for mkostemp[s]
38943         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38944         fd_safer_flag.
38945
38946         unistd-safer: allow preservation of cloexec status via flag
38947         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38948         prototypes.
38949         * lib/dup-safer.c (dup_safer_flag): New function.
38950         * lib/fd-safer.c (fd_safer_flag): Likewise.
38951         * modules/cloexec (configure.ac): Set witness.
38952
38953         test-dup2: enhance test
38954         * modules/dup2-tests (Depends-on): Add cloexec.
38955         * tests/test-dup2.c (main): Enhance test.
38956
38957         cloexec: add dup_cloexec
38958         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38959         header and comments.
38960         * lib/cloexec.c (set_cloexec_flag): Add comments.
38961         (dup_cloexec): New function, with mingw implementation borrowed
38962         from...
38963         * lib/w32spawn.h (dup_noinherit): ...here.
38964         * modules/execute (Depends-on): Add cloexec.
38965         * modules/pipe (Depends-on): Likewise.
38966         * modules/cloexec (Depends-on): Add dup2.
38967         * modules/cloexec-tests (Files): New file.
38968         * tests/test-cloexec.c: Likewise.
38969
38970         test-xalloc-die: fix test for mingw
38971         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38972         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38973         directory and .exe suffix off argv[0] output.
38974
38975         test-fseeko: fix test for mingw
38976         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38977         than undefining fseek, so test will pass on mingw.
38978
38979 2009-12-05  Bruno Haible  <bruno@clisp.org>
38980
38981         * lib/progname.h (set_program_name): Clarify specification.
38982         * lib/progname.c (set_program_name): Likewise.
38983         Reported by Jim Meyering.
38984
38985 2009-12-05  Jim Meyering  <meyering@redhat.com>
38986
38987         maint.mk: backslash-escape parens in default regexp
38988         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38989         backslash-escape the literal parentheses.
38990
38991         maint.mk: news-date-check: use grep -E
38992         * top/maint.mk (today): Define a Make variable, not a...
38993         (news-date-check): ...shell variable.
38994         (news-date-regexp): Use the Make variable.
38995         Use grep's -E option.  Change the failing diagnostic to mention
38996         the variable, $(news-date-regexp).
38997
38998 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38999
39000         maintainer-makefile: allow customization of NEWS entry format
39001         * top/maint.mk (news-date-regexp): New overridable variable.
39002         (news-date-check): Use it.
39003
39004 2009-12-04  Eric Blake  <ebb9@byu.net>
39005
39006         mgetgroups: add xgetgroups, and avoid ENOSYS failures
39007         * lib/mgetgroups.h (xgetgroups): New prototype.
39008         * lib/mgetgroups.c (xgetgroups): New wrapper.
39009         (mgetgroups): Handle ENOSYS.
39010         * modules/mgetgroups (Depends-on): Add realloc.
39011         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
39012
39013         mgetgroups: avoid argument promotion issues with -1
39014         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
39015         for invalid gid_t.
39016         * tests/test-chown.h (getegid, test_chown): Likewise.
39017         * tests/test-lchown.h (getegid, test_lchown): Likewise.
39018
39019 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
39020
39021         exclude: Fix header file problems.
39022         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
39023
39024 2009-12-01  Jim Meyering  <meyering@redhat.com>
39025
39026         fts: fts_open: do not let an empty string cause immediate failure
39027         This is required in support of GNU rm, for which the command
39028         "rm A '' B" must process and remove both A and B, in spite of
39029         the empty string argument.
39030         * lib/fts.c (fts_open): Do not let the presence of an empty string
39031         cause fts_open to fail immediately.  Most fts-using tools must be
39032         able to process all arguments, in order, and can be expected to
39033         diagnose such arguments themselves.
39034
39035 2009-11-30  Eric Blake  <ebb9@byu.net>
39036
39037         utimens: fix compilation error
39038         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39039         Declare variable at right scope.
39040
39041 2009-11-29  Jim Meyering  <meyering@redhat.com>
39042
39043         bootstrap: handle perl-5.11's changed --version output
39044         * build-aux/bootstrap (get_version): Handle perl separately,
39045         since perl-5.11's --version output is different.
39046
39047 2009-11-28  Jim Meyering  <meyering@redhat.com>
39048
39049         userspec: depend on the inttostr module, too
39050         * modules/userspec (Depends-on): Add inttostr.
39051
39052         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39053         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39054         number of MAXUID when it evaluates to (uid_t) -1.
39055         Likewise for group ID.  Reported by Matt McCutchen in
39056         <http://savannah.gnu.org/bugs/?28113>
39057
39058         userspec: reformat to use spaces, not TABs
39059         * lib/userspec.c: Expand TABs to spaces.
39060         Add Emacs' "indent-tabs-mode: nil" hint.
39061
39062 2009-11-27  Eric Blake  <ebb9@byu.net>
39063
39064         getopt-gnu: flush out another BSD bug
39065         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39066         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39067         flush out BSD bug.
39068         * tests/test-getopt.h (test_getopt): End lists with NULL.
39069         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39070         (test_getopt_long_posix): Enhance test.
39071         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39072         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39073         getopt-gnu.
39074         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39075         Likewise.
39076
39077 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39078
39079         * modules/idpriv-droptemp-tests (Notice): Fix text.
39080
39081 2009-11-27  Jim Meyering  <meyering@redhat.com>
39082
39083         test-xalloc-die: avoid spurious failure due to libtool argv difference
39084         In a libtool-enabled project, this test would fail due to a difference
39085         in the emitted program name, e.g.,
39086         -test-xalloc-die: memory exhausted
39087         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39088         Use program to avoid that.
39089         * modules/xalloc-die-tests (Depends-on): Add progname.
39090         * tests/test-xalloc-die.c: Include progname.h".
39091         (program_name): Remove decl.
39092         (main): Call set_program_name.
39093         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39094
39095 2009-11-26  Richard Jones  <rjones@redhat.com>
39096
39097         w32sock: leave win32 error in place.
39098         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39099
39100 2009-11-26  Eric Blake  <ebb9@byu.net>
39101
39102         init.sh: suggest to use skip_ and fail_ functions in comments
39103         * tests/init.sh: Add a sentence.
39104
39105 2009-11-25  Bruno Haible  <bruno@clisp.org>
39106
39107         init.sh: add documentation in comments
39108         * tests/init.sh: Add some developer and user documentation.
39109
39110 2009-11-26  Jim Meyering  <meyering@redhat.com>
39111
39112         init.sh: accommodate even those who specify bogus srcdir manually
39113         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39114         configure-time tests to be sanitized, so that there is no need to
39115         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39116         (with no double quotes) suffices.  However, since tests may be
39117         invoked manually, and since you may explicitly set srcdir to the
39118         name of a directory containing spaces, do quote its uses here.
39119         * tests/test-pread.sh: Likewise.
39120         Suggested by Bruno Haible.
39121
39122         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39123         * tests/test-pread.sh: Write no data into the pipe, because
39124         test-pread actually reads none.  This avoids a diagnostic,
39125         "bash: echo: write error: Broken pipe", that arises in the unusual
39126         event something is ignoring SIGPIPE, and might be interpreted
39127         as some sort of failure.  Reported by Bruno Haible.
39128
39129 2009-11-25  Jim Meyering  <meyering@redhat.com>
39130
39131         test-pread: cover failure with ESPIPE and EINVAL
39132         * tests/test-pread.c (main): Test for failure, too.
39133         * tests/test-pread.sh: Invoke with stdin on a pipe.
39134         Suggested by Eric Blake.
39135
39136         pread: improvement and fix
39137         * modules/pread (Depends-on): Depend on lseek, for portability to
39138         e.g., mingw.  Suggested by Eric Blake.
39139         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39140
39141         unistd.in.h: correct declaration of pread
39142         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39143         Reported by Richard W.M. Jones.
39144
39145         test-pread.sh: distribute the test script
39146         * modules/pread-tests (Files): Include test-pread.sh.
39147
39148         test-pread.sh: clean up
39149         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39150         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39151         That is unnecessary, since it's always ".".
39152         Suggestion from Eric Blake.
39153
39154         test-pread.sh: make executable
39155         * tests/test-pread.sh: Set executable bit.
39156         Reported by Eric Blake.
39157
39158         correct typo in test-pread.sh
39159         * tests/test-pread.sh: Add #! line.
39160
39161         test pread
39162         * tests/test-pread.c: New file.
39163         * tests/test-pread.sh: Likewise.
39164         * modules/pread-tests: Likewise.
39165
39166         pread: new module
39167         * modules/pread: New file.
39168         * lib/unistd.in.h (pread): Define/declare.
39169         * lib/pread.c (pread): New file.
39170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39171         * modules/unistd (Makefile.am): Substitute witnesses.
39172         * doc/posix-functions/pread.texi (pread): Update.
39173         * MODULES.html.sh: Add pread.
39174
39175 2009-11-25  Jim Meyering  <meyering@redhat.com>
39176
39177         tests/init.sh: new file to be used via most *.sh tests
39178         * tests/init.sh: New file.
39179
39180 2009-11-25  Eric Blake  <ebb9@byu.net>
39181
39182         utimens: work around older Linux failure with symlinks
39183         * lib/utimens.c (lutimensat_works_really): New variable.
39184         (fdutimens, lutimens): Use it to manage kernels that support
39185         nanosecond times on files, but not on symlinks.
39186         Reported by OndÅ™ej Vašík.
39187
39188         utimes: fix configure grammar
39189         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39190
39191 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39192
39193         regex: Fix fastmap for multibyte character ranges.
39194         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39195         characters when a multibyte character range is included.
39196
39197 2009-11-22  Andy Wingo  <wingo@pobox.com>
39198
39199         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39200         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39201
39202 2009-11-24  Bruno Haible  <bruno@clisp.org>
39203
39204         doc: Most *_l functions exist in MacOS X 10.5.
39205         * doc/posix-functions/duplocale.texi: Update platforms list.
39206         * doc/posix-functions/freelocale.texi: Likewise.
39207         * doc/posix-functions/newlocale.texi: Likewise.
39208         * doc/posix-functions/uselocale.texi: Likewise.
39209         * doc/posix-functions/isalnum_l.texi: Likewise.
39210         * doc/posix-functions/isalpha_l.texi: Likewise.
39211         * doc/posix-functions/isblank_l.texi: Likewise.
39212         * doc/posix-functions/iscntrl_l.texi: Likewise.
39213         * doc/posix-functions/isdigit_l.texi: Likewise.
39214         * doc/posix-functions/isgraph_l.texi: Likewise.
39215         * doc/posix-functions/islower_l.texi: Likewise.
39216         * doc/posix-functions/isprint_l.texi: Likewise.
39217         * doc/posix-functions/ispunct_l.texi: Likewise.
39218         * doc/posix-functions/isspace_l.texi: Likewise.
39219         * doc/posix-functions/isupper_l.texi: Likewise.
39220         * doc/posix-functions/iswalnum_l.texi: Likewise.
39221         * doc/posix-functions/iswalpha_l.texi: Likewise.
39222         * doc/posix-functions/iswblank_l.texi: Likewise.
39223         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39224         * doc/posix-functions/iswctype_l.texi: Likewise.
39225         * doc/posix-functions/iswdigit_l.texi: Likewise.
39226         * doc/posix-functions/iswgraph_l.texi: Likewise.
39227         * doc/posix-functions/iswlower_l.texi: Likewise.
39228         * doc/posix-functions/iswprint_l.texi: Likewise.
39229         * doc/posix-functions/iswpunct_l.texi: Likewise.
39230         * doc/posix-functions/iswspace_l.texi: Likewise.
39231         * doc/posix-functions/iswupper_l.texi: Likewise.
39232         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39233         * doc/posix-functions/isxdigit_l.texi: Likewise.
39234         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39235         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39236         * doc/posix-functions/strcoll_l.texi: Likewise.
39237         * doc/posix-functions/strfmon_l.texi: Likewise.
39238         * doc/posix-functions/strftime_l.texi: Likewise.
39239         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39240         * doc/posix-functions/strxfrm_l.texi: Likewise.
39241         * doc/posix-functions/tolower_l.texi: Likewise.
39242         * doc/posix-functions/toupper_l.texi: Likewise.
39243         * doc/posix-functions/towctrans_l.texi: Likewise.
39244         * doc/posix-functions/towlower_l.texi: Likewise.
39245         * doc/posix-functions/towupper_l.texi: Likewise.
39246         * doc/posix-functions/wcscoll_l.texi: Likewise.
39247         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39248         * doc/posix-functions/wctrans_l.texi: Likewise.
39249         * doc/posix-functions/wctype_l.texi: Likewise.
39250         * doc/glibc-functions/strptime_l.texi: Likewise.
39251         * doc/glibc-functions/strtod_l.texi: Likewise.
39252         * doc/glibc-functions/strtof_l.texi: Likewise.
39253         * doc/glibc-functions/strtol_l.texi: Likewise.
39254         * doc/glibc-functions/strtold_l.texi: Likewise.
39255         * doc/glibc-functions/strtoll_l.texi: Likewise.
39256         * doc/glibc-functions/strtoul_l.texi: Likewise.
39257         * doc/glibc-functions/strtoull_l.texi: Likewise.
39258         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39259         * doc/glibc-functions/wcstod_l.texi: Likewise.
39260         * doc/glibc-functions/wcstof_l.texi: Likewise.
39261         * doc/glibc-functions/wcstol_l.texi: Likewise.
39262         * doc/glibc-functions/wcstold_l.texi: Likewise.
39263         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39264         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39265         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39266
39267 2009-11-24  Bruno Haible  <bruno@clisp.org>
39268
39269         duplocale: Fix logic bug.
39270         * lib/duplocale.c: Don't include <langinfo.h>.
39271         (_NL_LOCALE_NAME): Remove macro.
39272         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39273         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39274
39275 2009-11-23  Jim Meyering  <meyering@redhat.com>
39276
39277         test-update-copyright: don't hard-code /usr/bin/perl
39278         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39279         perl to print the current year.  Gilles Espinasse reported that
39280         the replaced use of perl was hard-coded as /usr/bin/perl.
39281
39282 2009-11-23  Bruno Haible  <bruno@clisp.org>
39283
39284         duplocale: Add support for glibc 2.3.x.
39285         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39286
39287 2009-11-22  Bruno Haible  <bruno@clisp.org>
39288
39289         vasnprintf: Tiny optimization.
39290         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
39291         MacOS X.
39292
39293 2009-11-22  Bruno Haible  <bruno@clisp.org>
39294
39295         Tests for module 'duplocale'.
39296         * modules/duplocale-tests: New file.
39297         * tests/test-duplocale.c: New file.
39298
39299         New module 'duplocale'.
39300         * m4/duplocale.m4: New file.
39301         * lib/locale.in.h (duplocale): New declaration.
39302         * lib/duplocale.c: New file.
39303         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39304         gl_LOCALE_H_DEFAULTS): New macros.
39305         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39306         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39307         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39308         REPLACE_DUPLOCALE.
39309         * modules/duplocale: New file.
39310         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39311
39312 2009-11-22  Bruno Haible  <bruno@clisp.org>
39313
39314         * modules/locale-tests (configure.ac): Test for newlocale function.
39315         * tests/test-locale.c: When the system has extended locale functions,
39316         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39317
39318         locale: Make locale_t available when possible.
39319         * lib/locale.in.h: Include <xlocale.h> when it exists.
39320         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39321         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39322         * modules/locale (Depends-on): Add extensions.
39323         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39324         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39325
39326 2009-11-22  Bruno Haible  <bruno@clisp.org>
39327
39328         Add comments.
39329         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39330         invocation.
39331         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39332         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39333         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39334
39335 2009-11-22  Bruno Haible  <bruno@clisp.org>
39336
39337         error: account for the possibility of freopen (stdout).
39338         * lib/error.c: Include <unistd.h>.
39339         (flush_stdout): New function, extracted from error and error_at_line.
39340         Determine stdout's fd dynamically.
39341         (error, error_at_line): Invoke flush_stdout.
39342         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39343         * modules/error (Depends-on): Add unistd.
39344
39345 2009-11-22  Bruno Haible  <bruno@clisp.org>
39346
39347         diffseq: Add comment.
39348         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39349
39350 2009-11-22  Jim Meyering  <meyering@redhat.com>
39351
39352         c-stack: avoid defining an unused static function
39353         * lib/c-stack.c (find_stack_direction): Do not define this function
39354         when it will not be used.
39355
39356         diffseq: avoid spurious gcc warnings
39357         * lib/diffseq.h (IF_LINT2): Define.
39358         (compareseq): Use it to initialize two members of "part".
39359         This avoids two used-uninitialized warnings.
39360
39361 2009-11-21  Jim Meyering  <meyering@redhat.com>
39362
39363         c-stack: avoid "ignoring return value of `write'" warning
39364         * lib/c-stack.c: Include "ignore-value.h".
39365         (die): Explicitly ignore each write return value.
39366         * modules/c-stack (Depends-on): Add ignore-value.
39367
39368 2009-11-21  Bruno Haible  <bruno@clisp.org>
39369
39370         diffseq: reduce scope of variable 'best'.
39371         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
39372         variable, earlier used for two different purposes.
39373
39374 2009-11-21  Jim Meyering  <meyering@redhat.com>
39375
39376         diffseq: remove useless assignment to "best"
39377         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
39378         assignment.  At that point "best" is already guaranteed to be zero.
39379
39380 2009-11-20  Eric Blake  <ebb9@byu.net>
39381
39382         build: mention ftp redirector in release announcements
39383         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
39384         values that used to come from cfg.mk; mention FTP redirect URL.
39385         * build-aux/announce-gen: Mention the mirror list.
39386         Suggested by Karl Berry.
39387
39388         nanosleep: improve port to mingw
39389         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
39390         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
39391         LIB_NANOSLEEP, but only when needed.
39392         * modules/select (Link): Document LIBSOCKET.
39393         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
39394         enough.
39395
39396         nanosleep: work around cygwin bug
39397         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
39398         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
39399         bug.
39400         (getnow): Delete, not needed.
39401         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
39402         LIB_CLOCK_GETTIME.
39403         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
39404         clock-time, gettime.
39405         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
39406         bug.
39407         * modules/nanosleep-tests: New test.
39408         * tests/test-nanosleep.c: New file.
39409
39410         sleep: work around cygwin bug
39411         * lib/sleep.c (rpl_sleep): Work around the bug.
39412         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
39413         (gl_PREREQ_SLEEP): Delete unused macro.
39414         * modules/sleep (Depends-on): Add verify.
39415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39416         * modules/unistd (Makefile.am): Substitute witness.
39417         * lib/unistd.in.h (sleep): Update prototype.
39418         * doc/posix-functions/sleep.texi (sleep): Document the bug.
39419         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
39420         * modules/sleep-tests (Depends-on): Check for alarm.
39421
39422 2009-11-20  Jim Meyering  <meyering@redhat.com>
39423
39424         maint.mk: improve sc_prohibit_magic_number_exit
39425         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39426         so it does not match uses like System.exit(1).
39427         Add comments showing how to correct all offenders.
39428
39429 2009-11-19  Eric Blake  <ebb9@byu.net>
39430
39431         xalloc-die-tests: add missing library
39432         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39433
39434         test-xvasprintf: silence compiler warnings
39435         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39436         empty string from gcc.
39437
39438 2009-11-19  Jim Meyering  <meyering@redhat.com>
39439
39440         xfreopen: new module, from coreutils
39441         * modules/xfreopen: New module.
39442         * lib/xfreopen.c: New file.
39443         * lib/xfreopen.h: New file.
39444         * MODULES.html.sh (File stream based Input/Output"): Add it.
39445
39446 2009-11-19  Eric Blake  <ebb9@byu.net>
39447
39448         manywarnings: depend on warnings
39449         * modules/manywarnings (Depends-on): Add warnings.
39450
39451         build: avoid compiler warnings
39452         * lib/select.c (rpl_select): Delete unused variable.
39453         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
39454
39455 2009-11-18  Eric Blake  <ebb9@byu.net>
39456
39457         tests: avoid false negative with --with-packager
39458         * tests/test-version-etc.sh: Discard packager information.
39459         * tests/test-argp-version-etc-1.sh: Likewise.
39460         Reported by Mike Frysinger.
39461
39462         utimens: fix regression on Solaris
39463         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39464         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39465         can only change fd timestamps via futimesat.  Instead, use an
39466         additional witness macro to avoid BSD bug.
39467         Reported by Jim Meyering.
39468
39469 2009-11-17  Eric Blake  <ebb9@byu.net>
39470
39471         usleep: use it to simplify tests
39472         * modules/stat-time-tests (Depends-on): Add usleep.
39473         (configure.ac): Drop usleep check.
39474         * modules/chown-tests (Depends-on, configure.ac): Likewise.
39475         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
39476         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
39477         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
39478         * modules/openat-tests (Depends-on, configure.ac): Likewise.
39479         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
39480         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
39481         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
39482         Likewise.
39483         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
39484         * tests/test-lchown.h (nap): Likewise.
39485         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
39486         * tests/test-stat-time.c (nap): Likewise.
39487         * tests/test-utimens-common.h (nap): Update comments.
39488
39489         usleep: new module
39490         * modules/usleep: New file.
39491         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
39492         * lib/usleep.c (usleep): Likewise.
39493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39494         * modules/unistd (Makefile.am): Substitute witnesses.
39495         * lib/unistd.in.h (usleep): Add declaration.
39496         * doc/pastposix-functions/usleep.texi (usleep): Document this.
39497         * MODULES.html.sh (Date and time): Likewise.
39498         * modules/usleep-tests (Depends-on): New test.
39499         * tests/test-usleep.c: New file.
39500
39501         chown: work around OpenBSD bug
39502         * lib/chown.c (rpl_chown): Work around the bug.
39503         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
39504         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
39505         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
39506         * modules/chown (Depends-on): Add stdbool.
39507         * modules/lchown (Depends-on): Likewise.
39508         * doc/posix-functions/chown.texi (chown): Document the bug.
39509         * doc/posix-functions/lchown.texi (lchown): Likewise.
39510         * tests/test-lchown.h (test_chown): Relax test.
39511
39512         mkstemp: avoid conflict with C++ keyword template
39513         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
39514         * lib/mkostemp.c (mkostemp): Likewise.
39515         * lib/mkostemps.c (mkostemps): Likewise.
39516         * lib/mkstemp.c (mkstemp): Likewise.
39517         * lib/mkstemps.c (mkstemps): Likewise.
39518
39519         xalloc-die-tests: optimize
39520         * tests/test-xalloc-die.sh: Reduce number of processes.
39521
39522 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39523
39524         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39525         patch from ludo@gnu.org (Ludovic Courtès).
39526
39527 2009-11-17  Jim Meyering  <meyering@redhat.com>
39528
39529         version-etc: use proper license string
39530         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39531         * modules/version-etc-fsf: Likewise.
39532
39533 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39534
39535         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39536         printed to stdout.  Deal with EOL differences.
39537
39538 2009-11-17  Eric Blake  <ebb9@byu.net>
39539
39540         unsetenv: work around Solaris bug
39541         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39542         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39543         Reported by Jim Meyering.
39544
39545         vasnprintf: avoid compiler warnings
39546         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39547         variables.
39548         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39549
39550 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39551
39552         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39553         settings since xalloc-die is no longer the self test,
39554         xalloc-die.sh is.
39555
39556 2009-11-17  Jim Meyering  <meyering@redhat.com>
39557
39558         test-xalloc-die.sh: make the code agree with the commit log
39559         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39560         at the end, just in case you happen to have a test-xalloc-die
39561         program in some other PATH directory.
39562
39563         test-xalloc-die.sh: fix a portability bug
39564         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39565         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39566         Otherwise, argv[0] (as often seen in diagnostics) would be too
39567         system-dependent, sometimes with, and sometimes without the leading "./".
39568
39569         version-etc-fsf: relax license to LGPLv3+
39570         * modules/version-etc-fsf (License): Relax license.
39571
39572 2009-11-16  Eric Blake  <ebb9@byu.net>
39573
39574         xalloc-die-tests: avoid printing null pointer
39575         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39576         shell script.
39577         * tests/test-xalloc-die.c (program_name): Declare.
39578         * tests/test-xalloc-die.sh (tmpfiles): New file.
39579
39580         setenv, unsetenv: work around various bugs
39581         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39582         (setenv) [HAVE_SETENV]: Work around bugs.
39583         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39584         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39585         for bugs.
39586         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39587         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39589         * modules/stdlib (Makefile.am): Update substitutions.
39590         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39591         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39592         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39593         * modules/setenv-tests: New test.
39594         * modules/unsetenv-tests: Likewise.
39595         * tests/test-setenv.c: New file.
39596         * tests/test-unsetenv.c: Likewise.
39597
39598 2009-11-16  Jim Meyering  <meyering@redhat.com>
39599
39600         version-etc: relax license to LGPLv3+
39601         * modules/version-etc (License): Relax license.
39602
39603         better AC_REQUIRE expanded-before-required-warning avoidance
39604         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39605         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39606         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39607         which is no longer needed.
39608
39609 2009-11-16  Eric Blake  <ebb9@byu.net>
39610
39611         test-freading: clean up temporary file
39612         * tests/test-freading.c (main): Remove file on success, and use
39613         ASSERT more liberally.
39614         Reported by Jim Meyering.
39615
39616 2009-11-16  Jim Meyering  <meyering@redhat.com>
39617
39618         avoid new AC_REQUIRE expanded-before-required warnings
39619         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39620         merely using it.
39621         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39622         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39623
39624 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39625
39626         * tests/test-xalloc-die.c: New file.
39627         * modules/xalloc-die-tests: New file.
39628         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39629         XFAIL_TESTS so it can be appended by modules.
39630
39631 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39632
39633         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39634         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39635
39636 2009-11-14  Eric Blake  <ebb9@byu.net>
39637
39638         fnmatch: avoid compiler warning
39639         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39640         to silence compiler warning about mismatch signedness in ?:.
39641         Reported by Robert Millan.
39642
39643         intprops: add double-inclusion guard
39644         * lib/intprops.h: Allow idempotent includes.
39645         Suggested by Bruce Korb.
39646
39647         openat: detect Solaris fchownat bug
39648         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39649         penalizing glibc chownat when only lchownat is broken.
39650         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39651         trailing slash bugs.
39652         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39653         * modules/openat-tests (Files): Include more files.
39654         (Depends-on): Add mgetgroups, sleep, stat-time.
39655         (configure.ac): Add additional checks.
39656         (Makefile.am): Build new test.
39657         * tests/test-fchownat.c: New file.
39658
39659         lchown: detect Solaris and FreeBSD bug
39660         * lib/lchown.c (rpl_lchown): Work around bug.
39661         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39663         * modules/unistd (Makefile.am): Populate it.
39664         * lib/unistd.in.h (lchown): Update declaration.
39665         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39666         * modules/lchown-tests: New file.
39667         * tests/test-lchown.h (test_lchown): Likewise.
39668         * tests/test-lchown.c (main): Likewise.
39669
39670         chown: detect Solaris and FreeBSD bug
39671         * lib/chown.c (rpl_chown): Work around bug.
39672         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39673         (gl_PREREQ_CHOWN): Delete.
39674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39675         * modules/unistd (Makefile.am): Populate it.
39676         * lib/unistd.in.h (chown): Update declaration.
39677         * lib/lchown.c (chown): Update client.
39678         * modules/lchown (Depends-on): Add lstat.
39679         * doc/posix-functions/chown.texi (chown): Document the bug.
39680         * doc/posix-functions/getgroups.texi (getgroups): Document
39681         getgroups pitfall.
39682         * modules/chown-tests: New file.
39683         * tests/test-chown.h (test_chown): Likewise.
39684         * tests/test-chown.c (main): Likewise.
39685
39686 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39687
39688         gnulib-tool: correctly detect absence of m4 directories
39689         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39690
39691 2009-11-14  Jim Meyering  <meyering@redhat.com>
39692
39693         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39694         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39695
39696 2009-11-14  John W. Eaton  <jwe@gnu.org>
39697
39698         strftime.h: wrap function declaration in extern "C" block
39699         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39700
39701 2009-11-13  Eric Blake  <ebb9@byu.net>
39702
39703         getgroups: avoid compiler warning
39704         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39705
39706         getgroups: work around FreeBSD bug
39707         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39708         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39709         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39710         * tests/test-getgroups.c (main): Fix buffer overrun.
39711
39712         getgroups: avoid compilation failure
39713         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39714         * modules/getgroups (Depends-on): Add stdint.
39715
39716 2009-11-13  Jim Meyering  <meyering@redhat.com>
39717
39718         test-getgroups: avoid compilation failure
39719         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39720
39721 2009-11-13  Eric Blake  <ebb9@byu.net>
39722
39723         mgetgroups: new module, taken from coreutils
39724         * modules/mgetgroups: New file.
39725         * lib/mgetgroups.h: Likewise.
39726         * lib/mgetgroups.c (mgetgroups): Likewise.
39727         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39728         * MODULES.html.sh (Users and groups): Mention it.
39729
39730         getgroups: don't expose GETGROUPS_T to user
39731         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39732         an element at a time if GETGROUPS_T is wrong size.
39733         * lib/getugroups.h (getugroups): Change signature.
39734         * lib/unistd.in.h (getgroups): Likewise.
39735         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39736         signature needs fixing.
39737         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39738         AC_TYPE_GETGROUPS.
39739         * modules/group-member (Depends-on): Add getgroups.
39740         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39741         (group_member): Rely on getgroups replacement.
39742         * lib/getugroups.c (getugroups): Use gid_t.
39743         * tests/test-getgroups.c (main): Likewise.
39744         * NEWS: Mention the signature change.
39745         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39746         problem with signature.
39747         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39748         GETGROUPS_T is still useful for setgroups.
39749
39750         getgroups, getugroups: provide stubs for mingw
39751         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39752         * lib/getugroups.c (getugroups): Likewise.
39753         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39754         function.  Modernize replacement scheme.
39755         (gl_PREREQ_GETGROUPS): Delete.
39756         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39757         * modules/getgroups (configure.ac): Declare witness.
39758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39759         * modules/unistd (Depends-on): Substitute witness.
39760         * lib/unistd.in.h (getgroups): Declare replacement.
39761
39762         getgroups: avoid calling exit
39763         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39764         drop xalloc.
39765         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39766         dependencies.
39767         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39768         exiting, in the rare case of malloc failure.
39769
39770         getgroups: fix logic error
39771         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39772         has more than 20 groups.
39773         * modules/getgroups-tests: New test.
39774         * tests/test-getgroups.c: New file.
39775
39776 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39777
39778         * tests/test-base64.c: Improve.
39779
39780 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39781
39782         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39783         Blake <ebb9@byu.net>.
39784
39785 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39786
39787         * tests/test-xvasprintf.c: Add %s%s related checks.
39788
39789 2009-11-12  Eric Blake  <ebb9@byu.net>
39790
39791         version-etc: match standards.texi style
39792         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39793         and use <> only for URLs.
39794
39795 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39796
39797         fts: do not fail on a submount during traversal
39798         * lib/fts.c (fts_build): Read the stat info again after opening
39799         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39800         Original report at http://bugzilla.redhat.com/501848.
39801
39802 2009-11-12  Jim Meyering  <meyering@redhat.com>
39803
39804         bootstrap: sync from coreutils
39805         * build-aux/bootstrap (bootstrap_epilogue): New function.
39806         Use git_modules_config in one more place.  This make bootstrap's
39807         --gnulib-srcdir option more useful for testing.
39808
39809         bootstrap: generalize autoheader check
39810         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39811         AC_CONFIG_HEADERS.
39812
39813 2009-11-11  Eric Blake  <ebb9@byu.net>
39814
39815         mkfifoat: use new modules for Solaris and BSD bugs
39816         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39817         * lib/mkfifoat.c (mknodat): Split...
39818         * lib/mknodat.c (mknodat): ...into new file.
39819         * modules/mkfifoat (Files): Ship new file.
39820         (Depends-on): Add mkfifo, mknod.
39821         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39822         (Depends-on): Add symlink.
39823         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39824         redundant with test_mkfifo.h.
39825         (do_mkfifoat, do_mknodat): New helpers.
39826
39827         mknod: new module
39828         * modules/mknod: New file.
39829         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39830         * lib/mknod.c (mknod): Likewise.
39831         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39832         defaults.
39833         * modules/sys_stat (Makefile.am): Substitute them.
39834         * lib/sys_stat.in.h (mknod): Declare replacement.
39835         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39836         Document it.
39837         * doc/posix-functions/mknod.texi (mknod): Likewise.
39838         * modules/mknod-tests: New test.
39839         * tests/test-mknod.c: Likewise.
39840
39841         mkfifo: new module
39842         * modules/mkfifo: New file.
39843         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39844         * lib/mkfifo.c (mkfifo): Likewise.
39845         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39846         defaults.
39847         * modules/sys_stat (Makefile.am): Substitute them.
39848         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39849         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39850         Document it.
39851         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39852         * modules/mkfifo-tests: New test.
39853         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39854         from test-mkfifoat.c.
39855         * tests/test-mkfifo.c: New file.
39856
39857         readlink: detect FreeBSD bug
39858         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39859         slash on symlink.
39860         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39861         * tests/test-readlink.h (test_readlink): Enhance test.
39862
39863         symlink: detect FreeBSD bug
39864         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39865         slash on symlink.
39866         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39867         * tests/test-symlink.h (test_symlink): Enhance test.
39868
39869 2009-11-10  Eric Blake  <ebb9@byu.net>
39870
39871         link: detect FreeBSD bug
39872         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39873         symlink.
39874         * doc/posix-functions/link.texi (link): Document the bug.
39875         * tests/test-link.h (test_link): Enhance test.
39876         * tests/test-linkat.c (main): Update caller.
39877
39878         unlink, remove: detect FreeBSD bug
39879         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39880         slash on symlink.
39881         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39882         * doc/posix-functions/remove.texi (remove): Likewise.
39883         * tests/test-unlink.h (test_unlink): Enhance test.
39884         * tests/test-remove.c (main): Likewise.
39885
39886 2009-11-09  Eric Blake  <ebb9@byu.net>
39887
39888         rename: detect FreeBSD bug
39889         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39890         slash on symlink.
39891         * modules/renameat-tests (Depends-on): Add filenamecat.
39892         * tests/test-rename.h (test_rename): Allow one more errno.
39893         * tests/test-renameat.c (main): Likewise.
39894         * doc/posix-functions/rename.texi (rename): Document the bug.
39895
39896         open: detect FreeBSD bug
39897         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39898         symlink.
39899         * doc/posix-functions/open.texi (open): Document the bug.
39900         * doc/posix-functions/utimes.texi (utimes): Likewise.
39901         * tests/test-open.h (test_open): Add parameters, and test symlink
39902         handling.
39903         * tests/test-open.c (main): Adjust caller.
39904         * tests/test-fcntl-safer.c (main): Likewise.
39905         * modules/open-tests (Depends-on): Add stdbool, symlink.
39906         * modules/fcntl-safer-tests (Depends-on): Likewise.
39907         * tests/test-openat.c (main): Add test-open tests.
39908
39909         stat: detect FreeBSD bug
39910         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39911         symlink.
39912         * doc/posix-functions/stat.texi (stat): Document the bug.
39913         * tests/test-stat.h (test_stat_func): Add argument.
39914         * tests/test-stat.c (main): Adjust caller.
39915         * tests/test-fstatat.c (main): Likewise.
39916         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39917         Reported by Jim Meyering.
39918
39919 2009-11-09  James Youngman  <jay@gnu.org>
39920
39921         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39922         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39923
39924 2009-11-08  Jim Meyering  <meyering@redhat.com>
39925
39926         utimens: remove invalid futimesat call
39927         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39928         It used the file descriptor of the target file as the DIR_FD
39929         parameter and NULL as the file name.  That caused failure with
39930         errno == EFAULT on FreeBSD-8.0-rc2
39931
39932 2009-11-07  Eric Blake  <ebb9@byu.net>
39933
39934         fflush, freadseek: use fseeko, not fseek
39935         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39936         (clear_ungetc_buffer): Avoid potential problems on large files.
39937         * lib/freadseek.c (freadseek): Likewise.
39938         * modules/freadseek (Depends-on): Add fseeko.
39939         * modules/fseek (configure.ac): Set a witness.
39940         * tests/test-fflush.c (main): Use fseeko.
39941         * tests/test-fpurge.c (fseek): Disable link warning.
39942         * tests/test-freadable.c (fseek): Likewise.
39943         * tests/test-freading.c (fseek): Likewise.
39944         * tests/test-fseeko.c (fseek): Likewise.
39945         * tests/test-ftell.c (fseek): Likewise.
39946         * tests/test-ftello.c (fseek): Likewise.
39947         * tests/test-fwritable.c (fseek): Likewise.
39948         * tests/test-fwriting.c (fseek): Likewise.
39949
39950 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39951
39952         * modules/memchr (Depends-on): Drop getpagesize dependency.
39953
39954 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39955
39956         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39957         Reported by Ludovic Courtès.
39958         * build-aux/pmccabe2html: Improve example usage.
39959         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39960
39961 2009-11-06  Jim Meyering  <meyering@redhat.com>
39962
39963         do-release-commit-and-tag: New module.
39964         Automate the release-commit and tag process.
39965         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39966         * modules/do-release-commit-and-tag: New file.
39967         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39968
39969 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39970
39971         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39972         because test-select.c uses inet_pton.
39973
39974 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39975
39976         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39977         GETADDRINFO_LIB.  Bump serial number.
39978         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39979         Suggested by Eric Blake <ebb9@byu.net>.
39980
39981 2009-11-05  Eric Blake  <ebb9@byu.net>
39982
39983         strtod: detect darwin bug
39984         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39985         Reported by Leo Davis.
39986
39987         freopen-safer: new module
39988         * modules/freopen-safer: New module.
39989         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39990         * lib/freopen-safer.c (freopen_safer): New file.
39991         * lib/stdio-safer.h (freopen_safer): New declaration.
39992         * lib/stdio--.h (freopen): New override.
39993         * MODULES.html.sh (File stream based Input/Output): Mention it.
39994         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39995         freopen-safer module.
39996         * doc/posix-functions/stderr.texi (stderr): Likewise.
39997         * doc/posix-functions/stdin.texi (stdin): Likewise.
39998         * doc/posix-functions/stdout.texi (stdout): Likewise.
39999         * modules/freopen-safer-tests: New test.
40000         * tests/test-reopen-safer.c: New file.
40001
40002 2009-11-05  Jim Meyering  <meyering@redhat.com>
40003
40004         maint.mk: Prohibit inclusion of "close-stream.h" without use.
40005         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40006
40007 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40008
40009         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
40010
40011 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40012
40013         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
40014
40015 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40016
40017         Fix link error.
40018         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40019         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40020
40021 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40022
40023         * tests/test-func.c: Also test value of __func__.
40024
40025 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40026
40027         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
40028         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
40029
40030 2009-11-05  Bruno Haible  <bruno@clisp.org>
40031
40032         Fix link error.
40033         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40034         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40035         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40036
40037 2009-11-05  Bruno Haible  <bruno@clisp.org>
40038
40039         Tests for module 'inet_pton'.
40040         * modules/inet_pton-tests: New file.
40041         * tests/test-inet_pton.c: New file.
40042
40043 2009-11-05  Bruno Haible  <bruno@clisp.org>
40044
40045         Tests for module 'inet_ntop'.
40046         * modules/inet_ntop-tests: New file.
40047         * tests/test-inet_ntop.c: New file.
40048
40049 2009-11-04  Eric Blake  <ebb9@byu.net>
40050
40051         stdlib-safer: wrap all mkstemp variants
40052         * modules/mkostemp (configure.ac): Set witness.
40053         * modules/mkostemps (configure.ac): Likewise.
40054         * modules/mkstemps (configure.ac): Likewise.
40055         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40056         (mkstemps_safer): Wrap more functions.
40057         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40058         wrapping.
40059         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40060         (mkstemps_safer): Implement the wrappers.
40061
40062         mkstemps, mkostemps: new modules
40063         * modules/mkostemps: New module.
40064         * modules/mkstemps: Likewise.
40065         * lib/mkostemps.c (mkostemps): New file.
40066         * lib/mkstemps.c (mkstemps): Likewise.
40067         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40068         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40069         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40070         * modules/stdlib (Makefile.am): Substitute them.
40071         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40072         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40073         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40074         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40075         * MODULES.html.sh (File system functions): Mention them.
40076
40077         tempname: resync from glibc
40078         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40079         same values for __GT_FILE as glibc.  Abort even when assertions
40080         are disabled.
40081         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40082         match its value otherwise.  Allow idempotent inclusion.
40083         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40084         * lib/mkostemp.c (mkostemp): Likewise.
40085         * lib/mkstemp.c (mkstemp): Likewise.
40086         * lib/tmpfile.c (tmpfile): Likewise.
40087         * NEWS: Document this.
40088
40089         utimens: fix use of futimens on older Linux
40090         * lib/utimens.c (fdutimens): Use updated, rather than original,
40091         timespec to avoid bug in older Linux kernel.
40092         Reported by Simon Josefsson.
40093
40094 2009-11-04  Bruno Haible  <bruno@clisp.org>
40095
40096         Make num_processors more flexible and consistent.
40097         * lib/nproc.h (enum nproc_query): New type.
40098         (num_processors): Add a 'query' argument.
40099         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40100         (num_processors): Add a 'query' argument. Test the value of the
40101         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40102         mingw, count the number of CPUs available for the current process.
40103         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40104         Check for sched_getaffinity and sched_getaffinity_np.
40105         * modules/nproc (Depends-on): Add c-ctype, extensions.
40106         * NEWS: Mention the change.
40107
40108 2009-11-03  Bruno Haible  <bruno@clisp.org>
40109
40110         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40111
40112 2009-11-03  Jim Meyering  <meyering@redhat.com>
40113
40114         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40115         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40116         if it is defined.
40117
40118 2009-11-02  Eric Blake  <ebb9@byu.net>
40119
40120         mktime, timegm: share common declaration
40121         * lib/mktime-internal.h: New file.
40122         * lib/mktime.c: Use it rather than open-coding a declaration.
40123         * lib/timegm.c: Likewise.
40124         * modules/mktime (Files): Ship it.
40125         * modules/timegm (Files): Likewise.
40126         Suggested by Bruno Haible.
40127
40128         test-update-copyright: update test to match script changes
40129         * tests/test-update-copyright.sh: Avoid hard-coding perl
40130         location.  Don't update *.bak created by earlier runs.
40131
40132 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40133             Simon Josefsson  <simon@josefsson.org>
40134             Bruno Haible  <bruno@clisp.org>
40135
40136         Fix link error on Solaris 8.
40137         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40138         also in libnsl. Define also INET_PTON_LIB.
40139         * modules/inet_pton (Link): New section.
40140
40141 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40142             Bruno Haible  <bruno@clisp.org>
40143
40144         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40145         * modules/inet_ntop (Link): New section.
40146         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40147
40148 2009-11-02  Eric Blake  <ebb9@byu.net>
40149
40150         maint: avoid compiler warnings in m4 macros
40151         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40152         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40153
40154 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40155
40156         * m4/pmccabe2html.m4: Remove file.
40157         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40158         function.  Change maintainer.
40159         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40160         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40161         Courtès).
40162
40163 2009-10-31  Eric Blake  <ebb9@byu.net>
40164
40165         fseeko: fix m4 regression
40166         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40167         regression from 2009-10-27.
40168         Reported by Ralf Wildenhues.
40169
40170 2009-10-31  Jim Meyering  <meyering@redhat.com>
40171
40172         inttostr: aesthetics and improved (compile-time) safety
40173         Define inttype_is_signed rather than inttype_is_unsigned,
40174         since the sole use is via "#if inttype_is_signed".
40175         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40176         inttype_is_unsigned.
40177         * lib/offtostr.c (inttype_is_signed): Likewise.
40178         * lib/uinttostr.c (inttype_is_signed): Likewise.
40179         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40180         * lib/inttostr.c (inttostr): Use verify to cross-check the
40181         inttype_is_signed value and the signedness of the actual type.
40182         * modules/inttostr (Depends-on): Add verify.
40183
40184 2009-10-30  Eric Blake  <ebb9@byu.net>
40185
40186         build: avoid compiler warnings
40187         * lib/fchmodat.c (lchmod): Mark unused variables.
40188         * lib/getopt.c (_getopt_initialize): Likewise.
40189         * lib/mktime.c (__mktime_internal): Provide prototype.
40190         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40191         older gcc that do not understand #pragma GCC diagnostic.
40192         * lib/uinttostr.c (inttype_is_unsigned): Define.
40193         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40194
40195 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40196
40197         stat: fix compilation on AIX
40198         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40199         only see struct stat64.
40200
40201 2009-10-30  Eric Blake  <ebb9@byu.net>
40202
40203         exclude: make more robust
40204         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40205         rather than masking a coding bug.
40206         Suggested by Bruno Haible.
40207
40208 2009-10-30  Jim Meyering  <meyering@redhat.com>
40209
40210         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40211         Rather than putting #!/usr/bin/perl on the first line,
40212         start with a variant of what's recommended by "man perlrun" that
40213         invokes the first "perl" program from your shell's search path.
40214         * build-aux/gitlog-to-changelog: Replace #!... as above.
40215         Add a "Local Variables" perl mode setting.
40216         Prompted by a patch from Ludovic Courtès.
40217         Improved by Eric Blake.
40218         * build-aux/useless-if-before-free: Likewise.
40219         * build-aux/announce-gen: Likewise.
40220         * build-aux/update-copyright: Likewise.
40221
40222 2009-10-29  Eric Blake  <ebb9@byu.net>
40223
40224         filenamecat-lgpl: adjust clients
40225         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40226         filenamecat.
40227         * modules/renameat (Depends-on): Likewise.
40228
40229         filenamecat: split into filenamecat-lgpl
40230         * modules/filenamecat-lgpl: New module.
40231         * modules/filenamecat (Files): Move library-safe files into
40232         filenamecat-lgpl.
40233         (Depends-on): Add filenamecat-lgpl.
40234         (configure.ac): Declare witness.
40235         * lib/filenamecat.h (file_name_concat): Only declare when using
40236         GPL module.
40237         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40238         Move...
40239         * lib/filenamecat-lgpl.c: ...into new file.
40240         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40241         (gl_FILE_NAME_CONCAT): Use it.
40242         * MODULES.html.sh (File system functions): Mention new module.
40243
40244         argp: avoid memory leak
40245         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40246         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40247         base_name, since the latter malloc()s and can call exit().
40248         Leak introduced 2006-07-03.
40249
40250         dirname-lgpl: adjust clients that don't need full dirname
40251         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40252         * modules/filenamecat (Depends-on): Likewise.
40253         * modules/linkat (Depends-on): Likewise.
40254         * modules/mkancesdirs (Depends-on): Likewise.
40255         * modules/mkdir (Depends-on): Likewise.
40256         * modules/openat (Depends-on): Likewise.
40257         * modules/savewd (Depends-on): Likewise.
40258         * modules/rename (Depends-on): Likewise.
40259         (License): Relax license.
40260         * modules/mkdir-tests (Depends-on): Drop progname.
40261         (Makefile.am): Delete unneeded LDADD.
40262         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40263
40264         dirname: split into dirname-lgpl
40265         * modules/dirname-lgpl: New module.
40266         * modules/dirname (Files): Move library-safe files into
40267         dirname-lgpl.
40268         (Depends-on): Add dirname-lgpl.
40269         (configure.ac): Declare witness.
40270         * modules/double-slash-root (License): Relax license.
40271         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40272         module.
40273         * lib/dirname.c (dir_len, mdir_name): Move...
40274         * lib/dirname-lgpl.c: ...into new file.
40275         * lib/basename.c (last_component, base_len): Move...
40276         * lib/basename-lgpl.c: ...into new file.
40277         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40278         (gl_DIRNAME): Use it.
40279         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40280         Mention new module.
40281         * modules/dirname-tests (Depends-on): Add progname.
40282         * tests/test-dirname.c (program_name): Delete.
40283
40284         mkdir: make safe for libraries
40285         * modules/mkdir (Depends-on): Drop xalloc.
40286         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40287         exit.
40288
40289         tests: avoid some compiler warnings
40290         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
40291         literals.
40292         * tests/test-memchr.c (main): Avoid type mismatch.
40293         * tests/test-arpa_inet.c (main): Avoid unused parameters.
40294         * tests/test-base64.c (main): Likewise.
40295         * tests/test-getdelim.c (main): Likewise.
40296         * tests/test-gethostname.c (main): Likewise.
40297         * tests/test-getline.c (main): Likewise.
40298         * tests/test-netinet_in.c (main): Likewise.
40299         * tests/test-select.c (open_server_socket, main): Likewise.
40300         * tests/test-select-stdin.c (main): Likewise.
40301         * tests/test-sockets.c (main): Likewise.
40302         * tests/test-strsignal.c (main): Likewise.
40303         * tests/test-sys_select.c (main): Likewise.
40304         * tests/test-sys_socket.c (main): Likewise.
40305         * tests/test-u64.c (main): Likewise.
40306         * tests/test-xfprintf-posix.c (main): Likewise.
40307         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40308
40309         sockets: avoid compiler warning
40310         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40311
40312         maint: detect usage(1) and other suspicious exits
40313         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40314
40315 2009-10-29  Jim Meyering  <meyering@redhat.com>
40316
40317         timespec: long-to-int truncation could make timespec_cmp malfunction
40318         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40319         a multiple of 2^32 nanoseconds as no difference.
40320
40321 2009-10-28  Jim Meyering  <meyering@redhat.com>
40322
40323         fprintftime: wrap macro code argument in "do {...} while(0)"
40324         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40325         cpy macro must be a statement that can be followed by a semicolon.
40326         Now that the else clause contains a comment and is hence longer
40327         than one line, I require curly braces.  That in turn requires
40328         that we wrap this code block in the standard do...while(0).
40329
40330         fprintftime: remove stray semicolon from previous change
40331         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40332
40333         fprintftime: avoid a warning about ignored fwrite return value
40334         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40335         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40336         that is unsafe.
40337         * modules/fprintftime (Depends-on): Add ignore-value.
40338
40339         exclude: avoid an unwarranted warning
40340         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40341
40342 2009-10-27  Eric Blake  <ebb9@byu.net>
40343
40344         fseek: avoid compilation failure when fflush is replaced
40345         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40346         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40347         module is in use.
40348         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40349         module is not in use; since REPLACE_FSEEK worked otherwise.
40350         (GNULIB_FTELLO): Likewise for ftell.
40351         Reported by Ian Beckwith and others.
40352
40353 2009-10-27  Bruno Haible  <bruno@clisp.org>
40354
40355         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40356         Reported by Jim Meyering.
40357
40358 2009-10-27  Jim Meyering  <jim@meyering.net>
40359             Bruno Haible  <bruno@clisp.org>
40360
40361         Avoid warning despite dropping the return value of fwrite.
40362         * lib/unicodeio.c: Include ignore-value.h.
40363         (fwrite_success_callback): Explicitly ignore fwrite's return value.
40364         * modules/unicodeio (Depends-on): Add ignore-value.
40365
40366 2009-10-26  Eric Blake  <ebb9@byu.net>
40367
40368         areadlinkat: fix fallback path
40369         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
40370         pointer and zero.
40371
40372 2009-10-22  Pádraig Brady  <P@draigBrady.com>
40373
40374         Use a better IO block size for modern systems
40375         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
40376         * lib/md2.c: Likewise.
40377         * lib/md4.c: Likewise.
40378         * lib/md5.c: Likewise.
40379         * lib/sha1.c: Likewise.
40380         * lib/sha256.c: Likewise.
40381         * lib/sha512.c: Likewise.
40382
40383 2009-10-22  Eric Blake  <ebb9@byu.net>
40384
40385         tests: avoid several compiler warnings
40386         * tests/test-getcwd.c (main): Avoid buffer underflow.
40387         * tests/test-getdate.c (main): String literals are not safe with
40388         putenv, so use setenv.  Declare unused argument.
40389         * modules/getdate-tests (Depends-on): Add setenv.
40390         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
40391         problems with string literals in char *.
40392         * tests/test-hash.c (main): Avoid shadowing declaration.
40393         (insert_new): Treat string literals as char const *.
40394         * tests/test-getopt.h (test_getopt): Likewise.
40395         (getopt_loop): Alter types to minimize casting elsewhere.
40396         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
40397         (test_getopt_long_posix): Likewise.
40398         (do_getopt_long): Add wrapper to minimize casting.
40399         * tests/test-atexit.c (clear_temp_file): Use void.
40400         * tests/test-areadlink-with-size.c (main): Declare unused
40401         arguments.
40402         * tests/test-areadlink.c (main): Likewise.
40403         * tests/test-areadlinkat-with-size.c (main): Likewise.
40404         * tests/test-areadlinkat.c (main): Likewise.
40405         * tests/test-canonicalize-lgpl.c (main): Likewise.
40406         * tests/test-canonicalize.c (main): Likewise.
40407         * tests/test-dirent-safer.c (main): Likewise.
40408         * tests/test-dirname.c (main): Likewise.
40409         * tests/test-dup2.c (main): Likewise.
40410         * tests/test-fchdir.c (main): Likewise.
40411         * tests/test-fcntl-h.c (main): Likewise.
40412         * tests/test-fcntl-safer.c (main): Likewise.
40413         * tests/test-fdopendir.c (main): Likewise.
40414         * tests/test-fdutimensat.c (main): Likewise.
40415         * tests/test-fflush.c (main): Likewise.
40416         * tests/test-filenamecat.c (main): Likewise.
40417         * tests/test-filevercmp.c (main): Likewise.
40418         * tests/test-fopen-safer.c (main): Likewise.
40419         * tests/test-fopen.c (main): Likewise.
40420         * tests/test-fpending.c (main): Likewise.
40421         * tests/test-fpurge.c (main): Likewise.
40422         * tests/test-freading.c (main): Likewise.
40423         * tests/test-fstatat.c (main): Likewise.
40424         * tests/test-fsync.c (main): Likewise.
40425         * tests/test-futimens.c (main): Likewise.
40426         * tests/test-getndelim2.c (main): Likewise.
40427         * tests/test-gettimeofday.c (main): Likewise.
40428         * tests/test-getopt.c (main): Likewise.
40429         * tests/test-i-ring.c (main): Likewise.
40430         * tests/test-inttypes.c (main): Likewise.
40431         * tests/test-link.c (main): Likewise.
40432         * tests/test-lstat.c (main): Likewise.
40433         * tests/test-math.c (main): Likewise.
40434         * tests/test-md5.c (main): Likewise.
40435         * tests/test-memchr2.c (main): Likewise.
40436         * tests/test-memrchr.c (main): Likewise.
40437         * tests/test-mkdir.c (main): Likewise.
40438         * tests/test-mkdirat.c (main): Likewise.
40439         * tests/test-mkfifoat.c (main): Likewise.
40440         * tests/test-open.c (main): Likewise.
40441         * tests/test-openat-safer.c (main): Likewise.
40442         * tests/test-openat.c (main): Likewise.
40443         * tests/test-quotearg.c (main): Likewise.
40444         * tests/test-rawmemchr.c (main): Likewise.
40445         * tests/test-readlink.c (main): Likewise.
40446         * tests/test-remove.c (main): Likewise.
40447         * tests/test-rename.c (main): Likewise.
40448         * tests/test-renameat.c (main): Likewise.
40449         * tests/test-rmdir.c (main): Likewise.
40450         * tests/test-sha1.c (main): Likewise.
40451         * tests/test-signal.c (main): Likewise.
40452         * tests/test-sigaction.c (main): Likewise.
40453         * tests/test-stat.c (main): Likewise.
40454         * tests/test-stat-time.c (main): Likewise.
40455         * tests/test-stddef.c (main): Likewise.
40456         * tests/test-stdint.c (main): Likewise.
40457         * tests/test-stdio.c (main): Likewise.
40458         * tests/test-stdlib.c (main): Likewise.
40459         * tests/test-strchrnul.c (main): Likewise.
40460         * tests/test-strerror.c (main): Likewise.
40461         * tests/test-string.c (main): Likewise.
40462         * tests/test-strtod.c (main): Likewise.
40463         * tests/test-strverscmp.c (main): Likewise.
40464         * tests/test-symlink.c (main): Likewise.
40465         * tests/test-symlinkat.c (main): Likewise.
40466         * tests/test-sys_stat.c (main): Likewise.
40467         * tests/test-sys_time.c (main): Likewise.
40468         * tests/test-time.c (main): Likewise.
40469         * tests/test-unistd.c (main): Likewise.
40470         * tests/test-unlink.c (main): Likewise.
40471         * tests/test-unlinkat.c (main): Likewise.
40472         * tests/test-utimens.c (main): Likewise.
40473         * tests/test-utimensat.c (main): Likewise.
40474         * tests/test-version-etc.c (main): Likewise.
40475         * tests/test-wchar.c (main): Likewise.
40476         * tests/test-wctype.c (main): Likewise.
40477         * tests/test-xprintf-posix.c (main): Likewise.
40478         * tests/test-posixtm.c (main): Likewise.
40479         (STREQ): Delete unused macro.
40480         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
40481         shadowed variables.
40482         * tests/test-memchr.c (main): Likewise.
40483
40484 2009-10-21  Eric Blake  <ebb9@byu.net>
40485
40486         areadlinkat: avoid failure on older glibc
40487         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
40488         rather than mis-comparing 0 against FUNC_RESULT of char*.
40489
40490 2009-10-21  Bruno Haible  <bruno@clisp.org>
40491
40492         * modules/stpncpy (License): Relicense under LGPLv2+.
40493         Reported by David Lutterkort <lutter@redhat.com>.
40494
40495 2009-10-20  Eric Blake  <ebb9@byu.net>
40496
40497         utimensat: work around Solaris 9 bug
40498         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
40499         has trailing slash bugs.
40500         * tests/test-lutimens.h (test_lutimens): Enhance test.
40501         * tests/test-utimens.h (test_utimens): Likewise.
40502         * doc/posix-functions/utime.texi (utime): Enhance documentation.
40503         * doc/posix-functions/utimes.texi (utimes): Likewise.
40504         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40505         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
40506         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
40507         * doc/posix-functions/futimens.texi (futimens): Likewise.
40508
40509         fdutimensat: new module
40510         * modules/fdutimensat: New file.
40511         * lib/fdutimensat.c (fdutimensat): Likewise.
40512         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
40513         * MODULES.html.sh (File system functions): Mention module.
40514         * modules/fdutimensat-tests: New test.
40515         * tests/test-fdutimensat.c: Likewise.
40516
40517         doc: regenerate INSTALL
40518         * doc/INSTALL: Reflect recent autoconf update.
40519         * doc/INSTALL.ISO: Likewise.
40520         * doc/INSTALL.UTF-8: Likewise.
40521
40522 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40523
40524         acl: warn if ACL support is not detected
40525         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40526
40527 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40528
40529         * lib/nproc.h: Add extern "C" block for C++.
40530
40531 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40532             Bruno Haible  <bruno@clisp.org>
40533
40534         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40535         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40536         * doc/posix-functions/isalpha.texi: Likewise.
40537         * doc/posix-functions/isblank.texi: Likewise.
40538         * doc/posix-functions/iscntrl.texi: Likewise.
40539         * doc/posix-functions/isdigit.texi: Likewise.
40540         * doc/posix-functions/isgraph.texi: Likewise.
40541         * doc/posix-functions/islower.texi: Likewise.
40542         * doc/posix-functions/isprint.texi: Likewise.
40543         * doc/posix-functions/ispunct.texi: Likewise.
40544         * doc/posix-functions/isspace.texi: Likewise.
40545         * doc/posix-functions/isupper.texi: Likewise.
40546         * doc/posix-functions/isxdigit.texi: Likewise.
40547
40548 2009-10-18  Bruno Haible  <bruno@clisp.org>
40549
40550         Tests for module 'isblank'.
40551         * modules/isblank-tests: New file.
40552         * tests/test-isblank.c: New file.
40553
40554         New module 'isblank'.
40555         * lib/isblank.c: New file.
40556         * m4/isblank.m4: New file.
40557         * modules/isblank: New file.
40558         * doc/posix-functions/isblank.texi: Mention the new module.
40559
40560 2009-10-18  Bruno Haible  <bruno@clisp.org>
40561
40562         New module 'ctype'.
40563         * lib/ctype.in.h: New file.
40564         * m4/ctype.m4: New file.
40565         * modules/ctype: New file.
40566         * doc/posix-headers/ctype.texi: Mention the new module.
40567
40568 2009-10-18  Jim Meyering  <meyering@redhat.com>
40569
40570         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40571         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40572         right after its initialization, rather than farther down.
40573         Keeping these in close proximity makes it easier to ensure
40574         that each such variable is initialized.  E.g.,
40575
40576             LIB_CLOCK_GETTIME=
40577             AC_SUBST([LIB_CLOCK_GETTIME])
40578
40579         This change also increments these serial numbers.
40580         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40581         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40582         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40583
40584 2009-10-18  Bruno Haible  <bruno@clisp.org>
40585
40586         Don't let environment variables perturb build.
40587         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40588         (gl_PREREQ_GETHRXTIME): ... not here.
40589
40590 2009-10-18  Bruno Haible  <bruno@clisp.org>
40591
40592         Avoid symlink attack in localcharset module.
40593         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40594         (O_NOFOLLOW): Define fallback.
40595         (get_charset_aliases): Don't open the file if it is a symbolic link.
40596         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40597         gl_FCNTL_H.
40598         (gl_FCNTL_H): Require it.
40599         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40600         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40601         Reported by Fergal Glynn <fglynn@veracode.com>.
40602
40603 2009-10-18  Bruno Haible  <bruno@clisp.org>
40604
40605         Implement nproc for mingw.
40606         * lib/nproc.c: Include <windows.h>
40607         (num_processors): On native Windows platforms, try GetSystemInfo.
40608
40609 2009-10-18  Bruno Haible  <bruno@clisp.org>
40610
40611         Implement nproc for IRIX.
40612         * lib/nproc.c: Include <sys/sysmp.h>.
40613         (num_processors): On IRIX systems, try sysmp.
40614         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40615
40616 2009-10-18  Bruno Haible  <bruno@clisp.org>
40617
40618         Implement nproc for HP-UX.
40619         * lib/nproc.c: Include <sys/pstat.h>
40620         (num_processors): On HP-UX systems, try pstat_getdynamic.
40621         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40622         pstat_getdynamic.
40623
40624 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40625             Bruno Haible  <bruno@clisp.org>
40626
40627         Implement nproc for NetBSD, OpenBSD.
40628         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40629         (ARRAY_SIZE): New macro.
40630         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40631         * m4/nproc.m4: New file.
40632         * modules/nproc (Files): Add m4/nproc.m4.
40633         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40634         (Makefile.am): Instead, augment lib_SOURCES.
40635
40636 2009-10-18  Bruno Haible  <bruno@clisp.org>
40637
40638         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40639         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40640         sys/param.h.
40641
40642 2009-10-16  Eric Blake  <ebb9@byu.net>
40643
40644         utimensat: new module
40645         * modules/utimensat: New file.
40646         * lib/utimensat.c (utimensat): Likewise.
40647         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40648         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40649         so we can work around Linux bugs.
40650         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40651         * modules/sys_stat (Makefile.am): Substitute them.
40652         * lib/sys_stat.in.h (utimensat): Declare it.
40653         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40654         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40655         * modules/utimensat-tests: New test.
40656         * tests/test-utimensat.c: Likewise.
40657
40658         utimens: let lutimens work on non-symlinks
40659         * lib/utimens.c (lutimens): Fall back to utimens rather than
40660         failing with ENOSYS, when file is not a symlink.
40661         (utimens): Reduce redirection.
40662         * tests/test-lutimens.h (test_lutimens): Update test to cover
40663         non-symlinks.
40664         * tests/test-utimens.h (test_utimens): Update test to cover
40665         symlinks.
40666         * tests/test-utimens.c (main): Update caller.
40667
40668         utimens: cache whether utimensat syscall works
40669         * lib/utimens.c (utimensat_works_really): New cache variable.
40670         (fdutimens, lutimens): Use it to avoid failing syscall.
40671
40672         test-stat-time, test-utimens: improve portability
40673         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40674         ext4 on alpha, and for cygwin.
40675         * tests/test-utimens-common.h: New file.
40676         (nap): Factor delays into single function.
40677         * tests/test-lutimens.h (test_lutimens): Use new header.
40678         * tests/test-futimens.h (test_futimens): Likewise.
40679         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40680         timestamps to occur from same machine, as was done previously for
40681         test_utimens.
40682         * modules/utimens-tests (Files): Ship new file.
40683         * modules/futimens-tests (Files): Likewise.
40684         Reported in part by Jim Meyering.
40685
40686         sys_stat: sort replacement declarations
40687         * lib/sys_stat.in.h: Sort declarations.
40688         * lib/futimens.c (futimens): Fix typo.
40689
40690 2009-10-15  Jim Meyering  <meyering@redhat.com>
40691
40692         don't let environment settings perturb build
40693         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40694         could cause a configure-time and/or build-time malfunction.
40695         Typically, a configure-time function-in-library test is performed
40696         via code like this:
40697
40698           LIB_VAR=
40699           AC_SUBST([LIB_VAR])
40700           prefix_saved_LIBS=$LIBS
40701             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40702                        [test "$ac_cv_search_FUNC" = "none required" ||
40703                         LIB_VAR=$ac_cv_search_FUNC])
40704           LIBS=$prefix_saved_LIBS
40705
40706         However, in each of the files affected by this change, the LIB_VAR=
40707         initialization was omitted.  Thus, when set in the environment, its
40708         value would propagate into generated Makefiles when FUNC is not found
40709         in LIB_NAME.
40710         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40711         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40712         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40713
40714 2009-10-14  Eric Blake  <ebb9@byu.net>
40715
40716         fchdir: avoid infinite recursion in mingw
40717         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40718         recursing.
40719
40720         test-stat-time: port to mingw
40721         * tests/test-stat-time.c (force_unlink): Return a value.
40722         (test_ctime) [W32]: Fix compilation error.
40723         (nap): Don't call usleep with too large an argument.  Use
40724         force_unlink.
40725         * doc/pastposix-functions/usleep.texi (usleep): Document the
40726         portability issue.
40727
40728 2009-10-13  Jim Meyering  <meyering@redhat.com>
40729
40730         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40731         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40732         * modules/pipe-filter-ii: Likewise.
40733         * modules/sys_socket-tests: Likewise.
40734         * modules/tsearch-tests: Likewise.
40735         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40736         (check): Depend on it.
40737
40738 2009-10-12  Eric Blake  <ebb9@byu.net>
40739
40740         utimens-tests: port to NFS file systems
40741         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40742         comparisons to avoid spurious failures from timestamp drift
40743         between NFS machines.
40744
40745 2009-10-12  Eric Blake  <ebb9@byu.net>
40746
40747         stat-time-tests: minor cleanups
40748         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40749         * tests/test-stat-time.c (nap): Separate assignment from call.
40750         Suggested by Paolo Bonzini and Bruno Haible.
40751
40752         sys_stat: guarantee struct timespec
40753         * lib/sys_stat.in.h (includes): Always include <time.h>
40754         * modules/sys_stat (Depends-on): Add time.
40755         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40756         mode_t permission values.
40757         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40758         get at subsecond timestamps.
40759
40760 2009-10-10  Eric Blake  <ebb9@byu.net>
40761
40762         futimens: new module
40763         * modules/futimens: New file.
40764         * lib/futimens.c (futimens): Likewise.
40765         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40766         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40767         we can work around Linux bugs.
40768         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40769         * modules/sys_stat (Makefile.am): Substitute them.
40770         * lib/sys_stat.in.h (futimens): Declare it.
40771         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40772         * doc/posix-functions/futimens.texi (futimens): Likewise.
40773         * modules/futimens-tests: New test.
40774         * tests/test-futimens.c: Likewise.
40775
40776         utimens: introduce fdutimens
40777         * lib/utimens.h (fdutimens): New prototype.
40778         * lib/utimens.c (gl_futimens): Move guts...
40779         (fdutimens): ...to new interface.
40780         * tests/test-utimens.c (do_fdutimens): Use it.
40781
40782         utimens: add UTIME_NOW and UTIME_OMIT support
40783         * lib/utimens.c (validate_timespec, update_timespec): New helper
40784         functions.
40785         (gl_futimens, lutimens): Use them.
40786         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40787         stdbool, sys_stat.
40788         (Link): Mention resulting library dependency.
40789         * modules/utimecmp (Link): Likewise.
40790         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40791         (Makefile.am): Pick up library dependency.
40792         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40793         definition.
40794         * tests/test-sys_stat.c: Test the definitions.
40795         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40796         * NEWS: Document library dependency.
40797
40798         utimecmp: support symlink timestamps
40799         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40800         hashing when possible.  Use pathconf when available.
40801         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40802         * modules/utimecmp (Depends-on): Add lstat.
40803
40804         utimens: add lutimens interface
40805         * lib/utimens.c (lutimens): New function.
40806         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40807         * lib/utimens.h (lutimens): Declare new interface.
40808         * tests/test-utimens.c (main): Enhance test.
40809         * tests/test-lutimens.h (test_lutimens): New file.
40810         * modules/utimens-tests (Files): Distribute it.
40811         (Depends-on): Add symlink.
40812         (configure.ac): Check for usleep.
40813
40814         utimens: validate futimens usage
40815         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40816         fewer syscalls on failure later on.  Avoid compiler warning on
40817         mingw.
40818         * modules/utimens (Depends-on): Add dup2.
40819
40820         utimens: add test
40821         * modules/utimens-tests: New test.
40822         * tests/test-utimens.h: New file.
40823         * tests/test-futimens.h: Likewise.
40824         * tests/test-utimens.c: Likewise.
40825
40826         doc: mention timestamp portability issues
40827         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40828         instead.
40829         * doc/posix-functions/utime.texi (utime): Likewise.
40830         * doc/posix-functions/utimes.texi (utimes): Likewise.
40831         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40832         instead.
40833         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40834         module.
40835         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40836         Mention weakness with symlink timestamps.
40837         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40838         to utimensat/futimens instead.
40839         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40840
40841         test-dup2: enhance test
40842         * tests/test-dup2.c (main): Also check AT_FDCWD.
40843
40844         test-stat-time: avoid more spurious failures
40845         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40846         xfs; and avoid race if the two timestamps cross quantization edge.
40847
40848         relocatable: prefer 'file system' over 'filesystem'
40849         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40850         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40851         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40852         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40853         * lib/relocatable.c (compute_curr_prefix): Likewise.
40854
40855 2009-10-10  Jim Meyering  <meyering@redhat.com>
40856
40857         stat-time-tests: check for the usleep function
40858         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40859
40860 2009-10-10  Bruno Haible  <bruno@clisp.org>
40861
40862         * modules/xnanosleep: Put the Link section after the Include section.
40863
40864 2009-10-09  Eric Blake  <ebb9@byu.net>
40865
40866         dup2: work around FreeBSD 6.1 bug
40867         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40868         * doc/posix-functions/dup2.texi (dup2): Document it.
40869         Reported by Nelson H. F. Beebe and Jim Meyering.
40870
40871         test-stat-time: port to buggy NFS clients
40872         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40873         (test_ctime): Also skip test if mtime and ctime are skewed.
40874
40875         maint: prefer 'file system' over 'filesystem'
40876         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40877         * doc/posix-functions/lstat.texi (lstat): Likewise.
40878         * lib/file-has-acl.c (file_has_acl): Likewise.
40879         * lib/fwriteerror.c [TEST]: Likewise.
40880         * tests/test-areadlink.h (test_areadlink): Likewise.
40881         * tests/test-areadlinkat-with-size.c (main): Likewise.
40882         * tests/test-areadlinkat.c (main): Likewise.
40883         * tests/test-canonicalize-lgpl.c (main): Likewise.
40884         * tests/test-canonicalize.c (main): Likewise.
40885         * tests/test-fstatat.c (main): Likewise.
40886         * tests/test-linkat.c (main): Likewise.
40887         * tests/test-lstat.h (test_lstat_func): Likewise.
40888         * tests/test-mkdir.h (test_mkdir): Likewise.
40889         * tests/test-readlink.h (test_readlink): Likewise.
40890         * tests/test-remove.c (main): Likewise.
40891         * tests/test-rename.h (test_rename): Likewise.
40892         * tests/test-renameat.c (main): Likewise.
40893         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40894         * tests/test-symlink.h (test_symlink): Likewise.
40895         * tests/test-symlinkat.c (main): Likewise.
40896         * tests/test-unlink.h (test_unlink_func): Likewise.
40897         * tests/test-unlinkat.c (main): Likewise.
40898
40899         maint: make realtime library usage explicit
40900         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40901         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40902         * modules/settime (Link): Likewise.
40903         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40904
40905         test-stat-time: speed up execution
40906         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40907         warning on mingw.
40908         (nap): New helper function.
40909         (prepare_test): Use it to reduce sleep time.
40910         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40911         execution.
40912         * modules/stat-time-tests (configure.ac): Check for usleep.
40913
40914 2009-10-09  Jim Meyering  <meyering@redhat.com>
40915
40916         selinux-h: always use getfilecon wrappers
40917         * lib/getfilecon.c: New file.
40918         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40919         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40920         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40921         (fgetfilecon): Provide a stub.
40922         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40923         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40924         file unconditionally.
40925         When <selinux/selinux.h> is found, arrange to use wrappers.
40926         * modules/selinux-h (Files): Add getfilecon.c.
40927         (Makefile.am): Substitute include-next-related bits
40928         into the now-always-generated selinux/selinux.h file.
40929         * doc/glibc-functions/lgetfilecon.texi: New file.
40930         * doc/glibc-functions/fgetfilecon.texi: New file.
40931         * doc/glibc-functions/getfilecon.texi: New file.
40932         * doc/glibc-functions/getfilecon-desc.texi: New file.
40933         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40934         which to pull in the new files.
40935         * MODULES.html.sh (Misc): Add selinux-h.
40936
40937 2009-10-08  Jim Meyering  <meyering@redhat.com>
40938
40939         unistd: fix comment typo
40940         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40941
40942 2009-10-08  Eric Blake  <ebb9@byu.net>
40943
40944         areadlink: use SIZE_MAX consistently
40945         * modules/areadlink (Depends-on): Add stdint.
40946         * modules/areadlink-with-size (Depends-on): Likewise.
40947         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40948         gives NULL; drop sys/types, since unistd gives size_t; and add
40949         stdint for SIZE_MAX.
40950         (SIZE_MAX): Rely on headers.
40951         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40952         and add stdint.
40953         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40954         (SIZE_MAX): Likewise.
40955         (INITIAL_BUF_SIZE): Turn into enum.
40956         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40957
40958 2009-10-08  Jim Meyering  <meyering@redhat.com>
40959
40960         areadlinkat: avoid compilation failure
40961         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40962         Fix typo in comment.
40963
40964 2009-10-07  Eric Blake  <ebb9@byu.net>
40965
40966         areadlinkat-with-size: new module
40967         * modules/areadlinkat-with-size: New module.
40968         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40969         * lib/areadlink.h (areadlinkat): Declare it.
40970         * MODULES.html.sh (File system functions): Mention it.
40971         * modules/areadlinkat-with-size-tests: New test.
40972         * tests/test-areadlinkat-with-size.c: New file.
40973
40974         xreadlinkat: new module
40975         * modules/xreadlinkat: New module.
40976         * lib/xreadlinkat.c (xreadlinkat): New file.
40977         * lib/xreadlink.h (xreadlinkat): Declare it.
40978         * MODULES.html.sh (File system functions): Mention it.
40979
40980         areadlinkat: new module
40981         * lib/at-func.c (FUNC_FAIL): New define.
40982         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40983         * modules/areadlinkat: New module.
40984         * lib/linkat.c (areadlinkat): Move...
40985         * lib/areadlinkat.c (areadlinkat): ...to new file.
40986         * lib/areadlink.h (areadlinkat): Declare it.
40987         * modules/linkat (Depends-on): Add areadlinkat.
40988         * MODULES.html.sh (File system functions): Mention it.
40989         * modules/areadlinkat-tests: New test.
40990         * tests/test-areadlinkat.c: New file.
40991
40992         areadlink, areadlink-with-size: add tests
40993         * modules/areadlink-tests: New test.
40994         * modules/areadlink-with-size-tests: Likewise.
40995         * tests/test-areadlink.h: New file.
40996         * tests/test-areadlink.c: Likewise.
40997         * tests/test-areadlink-with-size.c: Likewise.
40998
40999         maint: minor cleanups
41000         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
41001         _UNUSED_PARAMETER_ instead.
41002         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
41003         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
41004         * modules/linkat-tests (Files): Distribute test-link.h.
41005
41006         openat, utimens: whitespace cleanup
41007         * lib/openat.c: Prefer space throughout, rather than mix of 8
41008         spaces vs. tabs.
41009         * lib/at-func.c: Likewise.
41010         * lib/utimens.c: Likewise.
41011
41012         openat: avoid using wrong fd
41013         * lib/openat.c (openat_permissive): Reject user's fd if saving the
41014         working directory chooses same fd.
41015         * lib/at-func.c (AT_FUNC_NAME): Likewise.
41016
41017         mkdir, mkdirat: fix cygwin 1.5.x bug
41018         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
41019         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
41020         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
41021         bug.
41022         (gl_PREREQ_MKDIR): Delete unused macro.
41023         * modules/mkdir (Files): Track file rename.
41024         (configure.ac): Update macro name.
41025         * modules/openat (Depends-on): Add mkdir.
41026         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
41027
41028         mkdir, mkdirat: add tests
41029         * modules/mkdir-tests: New test.
41030         * tests/test-mkdir.h: New file.
41031         * tests/test-mkdir.c: Likewise.
41032         * tests/test-mkdirat.c: Likewise.
41033         * modules/openat-tests (Files): Add new files.
41034         (Makefile.am): Run new test.
41035
41036 2009-10-06  Eric Blake  <ebb9@byu.net>
41037
41038         doc: tweak *at function documentation
41039         * doc/posix-functions/faccessat.texi (faccessat): Mention
41040         known issue with replacement.
41041         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41042         * doc/posix-functions/linkat.texi (linkat): Likewise.
41043         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41044         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41045         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41046         * doc/posix-functions/renameat.texi (renameat): Likewise.
41047         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41048
41049         openat: fix GNU/Hurd bug in unlinkat
41050         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41051         broken.
41052         * doc/posix-functions/unlink.texi (unlink): Document this.
41053         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41054
41055         fdopendir: fix GNU/Hurd bug
41056         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41057         allowing non-directory fds.
41058         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41059         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41060         * modules/dirent (Makefile.am): Substitute it.
41061         * lib/dirent.in.h (fdopendir): Declare replacement.
41062         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41063         * tests/test-fdopendir.c (main): Test something other than
41064         /dev/null, since on Hurd that behaves like a directory.
41065
41066         test-symlink: port to GNU/Hurd
41067         * tests/test-symlink.h (test_symlink): Relax expected errno.
41068
41069         doc: tweak more cygwin information
41070         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41071         now compatible with glibc.
41072         * doc/posix-functions/getopt.texi (getopt): Likewise.
41073
41074         getopt-gnu: add another test
41075         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41076         guarantee behavior relied on by m4.
41077         * tests/test-getopt.c (main): Use it.
41078         * modules/getopt-posix-tests (Depends-on): Add setenv.
41079         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41080
41081         getopt: fix compilation on darwin
41082         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41083         include.
41084         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41085         Reported by Ludovic Courtès.
41086
41087 2009-10-06  Bruno Haible  <bruno@clisp.org>
41088
41089         * modules/size_max (Description): Discourage its use.
41090         Reported by Simon Josefsson.
41091
41092 2009-10-06  Jim Meyering  <meyering@redhat.com>
41093
41094         linkat: avoid compilation failure
41095         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41096
41097 2009-10-05  Eric Blake  <ebb9@byu.net>
41098
41099         linkat: support Linux 2.6.17
41100         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41101         linkat on Linux, but allow cache variable override.
41102         * lib/linkat.c (rpl_linkat): Define override.
41103         * modules/linkat (Depends-on): Add symlinkat.
41104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41105         * modules/unistd (Makefile.am): Substitute it.
41106         * lib/unistd.in.h (linkat): Declare replacement.
41107         Reported by Pádraig Brady.
41108
41109         quotearg: port test to systems with C.UTF-8 locale
41110         * tests/test-quotearg.c (struct result_strings): Add another
41111         member, differentiating between C.ASCII and C.UTF-8 handling.
41112         (compare_strings): Add parameter.
41113         (main): Adjust all callers.
41114
41115         getopt: avoid clash with FreeBSD _getopt_internal
41116         * lib/getopt.in.h (_getopt_internal): Override the name.
41117         * lib/getopt_int.h (includes): Pick up any overrides.
41118         Reported by Reuben Thomas.
41119
41120         hash: allow C89 compilation
41121         * lib/hash.c (check_tuning): Move declaration before statement.
41122         Reported by Reuben Thomas.
41123
41124 2009-10-05  Karl Berry  <karl@gnu.org>
41125
41126         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41127
41128 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41129             Bruno Haible  <bruno@clisp.org>
41130
41131         * lib/uname.c (uname): Use a table-driven algorithm to compute
41132         Windows NT versions.
41133
41134 2009-10-04  Bruno Haible  <bruno@clisp.org>
41135
41136         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41137         program_invocation_short_name.
41138         * modules/progname (configure.ac): Test for presence of
41139         program_invocation_short_name.
41140         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41141
41142 2009-10-04  Bruno Haible  <bruno@clisp.org>
41143
41144         * lib/progname.c (set_program_name): Fix comment.
41145         Reported by Jim Meyering.
41146
41147 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41148             Bruno Haible  <bruno@clisp.org>
41149
41150         * lib/uname.c: Include <string.h>.
41151         (uname): Do only one call to GetVersionEx in the common case.
41152
41153 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41154             Bruno Haible  <bruno@clisp.org>
41155
41156         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41157         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41158         (uname): Add support for Windows CE and various non-x86 CPU types.
41159
41160 2009-10-03  Bruno Haible  <bruno@clisp.org>
41161
41162         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41163         invocation to tests/configure.ac.
41164         Reported by Ian Beckwith <ianb@erislabs.net>.
41165
41166 2009-10-02  Eric Blake  <ebb9@byu.net>
41167
41168         fchdir: avoid compiler warning
41169         * lib/fchdir.c (canonicalize_file_name)
41170         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41171
41172         test-open: support mingw errno values
41173         * tests/test-open.h (test_open): Relax test.
41174         * tests/test-fopen.h (test_fopen): Likewise.
41175         * tests/test-openat-safer.c (main): Likewise.
41176
41177         open: fix opening directory on mingw
41178         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41179
41180         test-open: on GNU/Hurd, /dev/null is a directory
41181         * tests/test-fopen.h (main): Rename...
41182         (test_fopen): ...to this.  Use a guaranteed non-directory when
41183         confirming open behavior on trailing slash.
41184         * tests/test-openat-safer.c (main): Likewise.
41185         * tests/test-open.h (main): Likewise....
41186         (test_open): ...to this.
41187         * tests/test-fopen.c (main): Adjust caller.
41188         * tests/test-fopen-safer.c (main): Likewise.
41189         * tests/test-open.c (main): Likewise.
41190         * tests/test-fcntl-safer.c (main): Likewise.
41191         Reported by Samuel Thibault.
41192
41193         rename, fchdir: don't ignore chdir failure
41194         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41195         * lib/rename.c (rpl_rename) [W32]: Likewise.
41196         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41197         an empty destination directory if source cannot be renamed,
41198         although there is still possibility for failure.
41199         * doc/posix-functions/rename.texi (rename): Document the race.
41200         Reported by Jim Meyering.
41201
41202         maint: cleanup whitespace in recent commits
41203         * lib/rename.c (rpl_rename): Remove tabs.
41204         * tests/test-link.h (test_link): Likewise.
41205         * lib/fchdir.c (get_name): Likewise.
41206         Reported by Jim Meyering.
41207
41208 2009-10-02  Ben Pfaff  <blp@gnu.org>
41209
41210         relocatable-prog-wrapper: Add missing dependency on
41211         double-slash-root.
41212         * modules/relocatable-prog-wrapper: Add dependency.
41213         Reported by Ian Beckwith <ianb@erislabs.net>.
41214
41215 2009-10-02  Eric Blake  <ebb9@byu.net>
41216
41217         renameat: fix Solaris bugs
41218         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41219         needed fixing.
41220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41221         * modules/stdio (Makefile.am): Substitute it.
41222         * lib/stdio.in.h (renameat): Declare replacement.
41223         * lib/renameat.c (rpl_renameat): Implement fix.
41224
41225         renameat: new module
41226         * modules/renameat: New file.
41227         * lib/renameat.c (renameat): Likewise.
41228         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41229         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41230         * modules/stdio (Makefile.am): Substitute them.
41231         * lib/stdio.in.h (renameat): Declare it.
41232         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41233         * doc/posix-functions/renameat.texi (renameat): Likewise.
41234         * modules/renameat-tests: New test.
41235         * tests/test-renameat.c: Likewise.
41236
41237         rename: fix mingw bugs
41238         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41239         directory overwrite bugs.
41240
41241         rename: fix another cygwin 1.5 bug
41242         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41243         checks.
41244         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41245         unnecessary cygwin workarounds.  Also work around bug with moving
41246         full directory onto an empty one.
41247         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41248
41249         rename-dest-slash: merge into rename module
41250         * modules/rename-dest-slash (Status): Mark obsolete.
41251         (Depends-on): Add rename.
41252         (Files): Let rename do it all.
41253         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41254         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41255         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41256         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41257         * lib/rename.c (rpl_rename): Update comments.
41258
41259         rename: fix cygwin 1.5.x bugs
41260         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41261         * lib/rename.c (rpl_rename): Work around them.
41262         * modules/rename (Depends-on): Add same-inode.
41263
41264         rename: fix Solaris 10 bug
41265         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41266         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41267         was the only bug.
41268
41269         rename: fix Solaris 9 bug
41270         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41271         on non-directory.  Avoid calling exit.
41272         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41273         strdup.
41274         * modules/rename-tests (Depends-on): Drop lstat.
41275         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41276         (gl_PREREQ_RENAME): Delete unused macro.
41277
41278         rename-dest-slash: fix NetBSD bug
41279         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41280         links.
41281         * modules/rename-dest-slash (Depends-on): Add same-inode.
41282
41283         rename-tests: new test, exposes several platform bugs
41284         * modules/rename-tests: New file.
41285         * tests/test-rename.h: Likewise.
41286         * tests/test-rename.c: Likewise.
41287         * doc/posix-functions/rename.texi (rename): Improve documentation,
41288         including bugs that will eventually be fixed in gnulib.
41289
41290 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
41291
41292         * lib/uname.c: Include <stdlib.h>
41293         (uname): Assume version info is available.
41294
41295 2009-10-02  Jim Meyering  <meyering@redhat.com>
41296
41297         gnu-web-doc-update: correct --help output
41298         * build-aux/gnu-web-doc-update: Make --help output relevant.
41299
41300         gnu-web-doc-update: add standard options
41301         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41302
41303         gnu-web-doc-update: New module.
41304         Use this script to automatically update the on-line web documentation
41305         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41306         * modules/gnu-web-doc-update: New file, from coreutils.
41307         * build-aux/gnu-web-doc-update: New script.
41308
41309 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41310
41311         link: LoadLibrary is not needed.
41312         * lib/link.c: Use GetModuleHandle.
41313
41314 2009-10-01  Eric Blake  <ebb9@byu.net>
41315
41316         getopt: bump serial number
41317         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41318         change.
41319
41320         tests: tighten link, rmdir, and remove tests
41321         * tests/test-link.h (includes): No need to use <config.h> here.
41322         Clean up if directory hard link was created, otherwise test for
41323         trailing '.'.
41324         * tests/test-linkat.c (main): Simplify.
41325         * tests/test-remove.c (main): Enhance test for trailing '.'.
41326         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41327
41328 2009-10-01  Jim Meyering  <meyering@redhat.com>
41329
41330         maint.mk: requiring "make major" was annoying, for a "minor" release.
41331         What is intended is "stable", to contrast with alpha and beta,
41332         so require "make stable", not "make major".
41333         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41334         (get_tool_versions): Likewise.
41335         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41336
41337 2009-09-30  Ben Pfaff  <blp@gnu.org>
41338
41339         Fix broken build of replacement for Windows tmpfile().
41340         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41341         flags argument added along with the 'mkostemp' module.
41342
41343 2009-09-28  Bruno Haible  <bruno@clisp.org>
41344
41345         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41346         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41347         to 'remove_elt'.
41348         (gl_list_remove): Update.
41349         * lib/gl_list.c (gl_list_remove): Update.
41350         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41351         to 'remove_elt'.
41352         (gl_oset_remove): Update.
41353         * lib/gl_list.c (gl_oset_remove): Update.
41354         Reported by Eric Blake.
41355
41356 2009-09-28  Eric Blake  <ebb9@byu.net>
41357
41358         doc: mention yet more cygwin 1.7 status
41359         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41360         cygwin.
41361         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41362         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41363
41364         argp: fix test failure
41365         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
41366         that are not upper-case.  Pass correct range to tolower.
41367
41368 2009-09-27  Jim Meyering  <meyering@redhat.com>
41369
41370         test-yesno: work around sparc-dash here-document infelicity
41371         Without this change, the literal \177 byte in a here document
41372         would make dash 0.5.5.1-3 access uninitialized memory.
41373         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
41374         Instead, use a marker, "@", and filter through tr to create the desired
41375         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
41376
41377 2009-09-27  Bruno Haible  <bruno@clisp.org>
41378
41379         Disable untested support for new flavours of ACLs on AIX.
41380         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
41381         progress.
41382         * lib/set-mode-acl.c (qset_acl): Likewise.
41383
41384 2008-12-07  Bruno Haible  <bruno@clisp.org>
41385
41386         Add support for new flavours of ACLs on AIX. (Untested.)
41387         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
41388         (file_has_acl): Add support for newer AIX.
41389         * lib/set-mode-acl.c (qset_acl): Likewise.
41390         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
41391         Rainer Tammer <tammer@tammer.net>.
41392
41393 2009-09-26  Eric Blake  <ebb9@byu.net>
41394
41395         argp: fix compilation of getopt
41396         * lib/getopt.in.h (includes): Use different guard than glibc.
41397         Reported by Sergey Poznyakoff.
41398
41399         doc: mention more cygwin 1.7 status
41400         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
41401         bug.
41402         * doc/posix-functions/execl.texi (execl): Likewise.
41403         * doc/posix-functions/execle.texi (execle): Likewise.
41404         * doc/posix-functions/execlp.texi (execlp): Likewise.
41405         * doc/posix-functions/execv.texi (execv): Likewise.
41406         * doc/posix-functions/execve.texi (execve): Likewise.
41407         * doc/posix-functions/execvp.texi (execvp): Likewise.
41408         * doc/glibc-functions/canonicalize_file_name.texi
41409         (canonicalize_file_name): Cygwin 1.7 now provides this.
41410         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
41411         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
41412         on AT_SYMLINK_NOFOLLOW.
41413
41414 2009-09-24  Eric Blake  <ebb9@byu.net>
41415
41416         test-linkat: make test more robust
41417         * tests/test-linkat.c (main): Avoid collision with EEXIST.
41418
41419         getopt: fix inclusion guards for cygwin
41420         * modules/getopt-posix (Depends-on): Add include-next.
41421         (Makefile.am): Substitute more items in replacement header.
41422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41423         <getopt.h>.
41424         * lib/getopt.in.h (includes): Use split inclusion guard, and
41425         prefer <getopt.h> over include <unistd.h> when one is present.
41426         (option): Also override name of 'struct option'.
41427
41428         same-inode: revert prior change; it is not yet ready
41429         * NEWS: Undo mention of this change.
41430         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41431         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41432         * lib/cycle-check.c (cycle_check): Likewise.
41433         * lib/same.c (same_name): Likewise.
41434         * lib/at-func2.c (at_func2): Likewise.
41435
41436 2009-09-23  Eric Blake  <ebb9@byu.net>
41437
41438         linkat: new module
41439         * modules/linkat: New file.
41440         * lib/at-func2.c (at_func2): Likewise.
41441         * lib/linkat.c (linkat): Likewise.
41442         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41443         * lib/openat-priv.h (at_func2): Add declaration.
41444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41445         * modules/unistd (Makefile.am): Substitute them.
41446         * lib/unistd.in.h (linkat): Declare it.
41447         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41448         * doc/posix-functions/linkat.texi (linkat): Likewise.
41449         * doc/posix-functions/link.texi (link): Tweak wording.
41450         * tests/test-link.c (main): Move guts...
41451         * tests/test-link.h (test_link): ...into new file.
41452         * modules/linkat-tests: New test.
41453         * tests/test-linkat.c: Likewise.
41454         * modules/link-tests (Files): Ship new file.
41455         (Depends-on): Add stdbool.
41456
41457         dirname: add library-safe mdir_name
41458         * lib/dirname.h (mdir_name): New prototype.
41459         * lib/dirname.c (dir_name): Move guts...
41460         (mdir_name): ...to new function that avoids xalloc_die.
41461
41462         fchdir: another mingw fix
41463         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41464         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41465         on mingw (where it has not yet been ported), and make it optional
41466         elsewhere.
41467         (_gl_register_fd): Use it.
41468
41469         same-inode: make SAME_INODE tri-state, to port to mingw
41470         * NEWS: Mention this change.
41471         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
41472         st_ino always being 0.
41473         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41474         * lib/cycle-check.c (cycle_check): Likewise.
41475         * lib/same.c (same_name): Likewise.
41476
41477         lstat: avoid mingw compilation error
41478         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
41479         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
41480         lstat ourselves.
41481         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
41482         was adequate.
41483         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
41484         the checks for lstat.
41485         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
41486
41487         link: fix test failure on Solaris 9
41488         * lib/link.c (rpl_link): Don't assume link will catch bogus
41489         trailing slash on source.
41490
41491         test-symlinkat: enhance test
41492         * tests/test-readlink.c (main): Move guts...
41493         * tests/test-readlink.h (test_readlink): ...into new file.
41494         * tests/test-symlink.c (main): Move guts...
41495         * tests/test-symlink.h (test_symlink): ...into new file.
41496         * tests/test-symlinkat.c (main): Use new files for further
41497         coverage.
41498         (do_symlink, do_readlink): New helper functions.
41499         * modules/symlink-tests (Files): Ship new file.
41500         (Depends-on): Add stdbool.
41501         * modules/readlink-tests (Files): Ship new file.
41502         (Depends-on): Add stdbool.
41503         * modules/symlinkat-tests (Files): Use new files.
41504
41505 2009-09-23  Eric Blake  <ebb9@byu.net>
41506
41507         readlink: document portability issue with symlink length
41508         * doc/posix-functions/lstat.texi (lstat): Mention that some file
41509         systems have bogus st_size on symlinks, and mention the
41510         areadlink-with-size module.
41511         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41512         * doc/posix-functions/readlink.texi (readlink): Mention the
41513         areadlink module, and ERANGE failure.
41514         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41515         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
41516
41517         readlink: fix Solaris 9 bug with trailing slash
41518         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41519         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41520         * doc/posix-functions/readlink.texi (readlink): Document this.
41521         * modules/readlink-tests: New test.
41522         * tests/test-readlink.c: Likewise.
41523
41524         readlink: fix cygwin 1.5.x bug with return type
41525         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41526         * lib/unistd.in.h (readlink): Use ssize_t.
41527         * lib/readlink.c (readlink): Likewise.
41528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41529         * modules/unistd (Makefile.am): Substitute it.
41530         * lib/unistd.in.h (readlink): Declare replacement.
41531         * doc/posix-functions/readlink.texi (readlink): Document this.
41532
41533         symlink: use throughout gnulib
41534         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41535         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41536         symlink is not used.
41537         * modules/symlinkat (Depends-on): Add symlink.
41538         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41539         * modules/canonicalize-tests (Depends-on): Likewise.
41540         * modules/lstat-tests (Depends-on): Likewise.
41541         * modules/openat-tests (Depends-on): Likewise.
41542         * modules/remove-tests (Depends-on): Likewise.
41543         * modules/rmdir-tests (Depends-on): Likewise.
41544         * modules/unlink-tests (Depends-on): Likewise.
41545         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41546         * tests/test-canonicalize.c (symlink): Likewise.
41547         * tests/test-fstatat.c (symlink): Likewise.
41548         * tests/test-lstat.c (symlink): Likewise.
41549         * tests/test-remove.c (symlink): Likewise.
41550         * tests/test-rmdir.c (symlink): Likewise.
41551         * tests/test-unlink.c (symlink): Likewise.
41552         * tests/test-unlinkat.c (symlink): Likewise.
41553
41554         symlink: new module, for Solaris 9 bug
41555         * modules/symlink: New file.
41556         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41557         * lib/symlink.c: Likewise.
41558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41559         * modules/unistd (Makefile.am): Substitute them.
41560         * lib/unistd.in.h (symlink): Declare replacement.
41561         * MODULES.html.sh (File system functions): Mention it.
41562         * doc/posix-functions/symlink.texi (symlink): Likewise.
41563         * modules/symlink-tests: New test.
41564         * tests/test-symlink.c: Likewise.
41565
41566 2009-09-23  Bruno Haible  <bruno@clisp.org>
41567
41568         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41569         when needed.
41570         Test case: gnulib-tool --import --with-tests atexit inttypes.
41571         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41572
41573 2009-09-23  Bruno Haible  <bruno@clisp.org>
41574
41575         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41576         subcommand, not in a subshell.
41577
41578 2009-09-22  Eric Blake  <ebb9@byu.net>
41579
41580         unistd: sort replacement declarations
41581         * lib/unistd.in.h: Sort declarations.
41582
41583         open, openat: minor optimization
41584         * lib/open.c (open): If open succeeded, len is non-zero.
41585         * lib/openat.c (rpl_openat): Likewise.
41586
41587         link-follow: ensure correct result
41588         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41589         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41590         distinguish between possible failures.
41591
41592 2009-09-21  Eric Blake  <ebb9@byu.net>
41593
41594         fts: avoid compiler warning
41595         * lib/fts.c (dirent_inode_sort_may_be_useful)
41596         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41597
41598 2009-09-19  Bruno Haible  <bruno@clisp.org>
41599
41600         * lib/progreloc.c (canonicalize_file_name): New declaration.
41601
41602 2009-09-19  Eric Blake  <ebb9@byu.net>
41603
41604         link: fix quoting
41605         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41606
41607         openat: fix openat bugs on Solaris 9
41608         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41609         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41610         * modules/openat (Depends-on): Add open.
41611         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41612         * modules/fcntl-h (Makefile.am): Substitute it.
41613         * lib/fcntl.in.h (openat): Declare replacement.
41614         * doc/posix-functions/openat.texi (openat): Document this.
41615
41616         openat: move fstatat and unlinkat into correct files
41617         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41618         compiled.
41619         * lib/openat.c (fstatat, unlinkat): Move...
41620         * lib/fstatat.c (fstatat): ...into correct files.
41621         * lib/unlinkat.c (unlinkat): Likewise.
41622
41623         openat: fix unlinkat bugs on Solaris 9
41624         * lib/unlinkat.c (unlinkat): New file.
41625         * modules/openat (Depends-on): Add unlink.
41626         (Files): Distribute it.
41627         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41628         trailing slash behavior is broken.
41629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41630         * modules/unistd (Makefile.am): Substitute it.
41631         * lib/unistd.in.h (unlinkat): Declare replacement.
41632         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41633
41634         openat: fix fstatat bugs on Solaris 9
41635         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41636         stat.
41637         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41638
41639         test-unlinkat: enhance test, to expose Solaris 9 bug
41640         * tests/test-unlink.c (main): Factor guts...
41641         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41642         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41643         * tests/test-rmdir.c (main): Adjust caller.
41644         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41645         (unlinker): New helper function.
41646         (rmdirat): Enhance check.
41647         * modules/rmdir-tests (Depends-on): Add stdbool.
41648         * modules/unlink-tests (Depends-on): Likewise.
41649         (Files): Add test-unlink.h.
41650         * modules/openat-tests (Files): Likewise.
41651         (Depends-on): Add unlinkdir.
41652
41653         test-fstatat: new test, to expose Solaris 9 bugs
41654         * tests/test-stat.c (main): Factor guts...
41655         * tests/test-stat.h (test_stat_func): ...into new file.
41656         * tests/test-lstat.c (main): Factor guts...
41657         * tests/test-lstat.h (test_lstat_func): ...into new file.
41658         * tests/test-fstatat.c: New file.
41659         * modules/stat-tests (Files): Add test-stat.h.
41660         * modules/lstat-tests (Files): Add test-lstat.h.
41661         (Depends-on): Add stdbool.
41662         * modules/openat-tests (Depends-on): Add pathmax.
41663         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41664         (Makefile.am): Run new test.
41665
41666         remove: new module, for mingw and Solaris 9 bugs
41667         * modules/remove: New file.
41668         * lib/remove.c: Likewise.
41669         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41671         * modules/stdio (Makefile.am): Use them.
41672         * lib/stdio.in.h (remove): Declare replacement.
41673         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41674         * doc/posix-functions/remove.texi (remove): Likewise.
41675         * modules/remove-tests: New test.
41676         * tests/test-remove.c: Likewise.
41677
41678         unlink: new module, for Solaris 9 bug
41679         * modules/unlink: New file.
41680         * lib/unlink.c: Likewise.
41681         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41683         * modules/unistd (Makefile.am): Use them.
41684         * lib/unistd.in.h (stat): Declare replacement.
41685         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41686         * doc/posix-functions/unlink.texi (unlink): Likewise.
41687         * modules/unlink-tests: New test.
41688         * tests/test-unlink.c: Likewise.
41689
41690         lstat: fix Solaris 9 bug
41691         * lib/lstat.c (lstat): Also check for trailing slash on
41692         non-symlink, non-directories.  Use stat module to simplify logic.
41693         * doc/posix-functions/lstat.texi (lstat): Document it.
41694         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41695         (configure.ac): Check for symlink.
41696         * tests/test-lstat.c (main): Add more tests.
41697
41698         stat: add as dependency to other modules
41699         * modules/chown (Depends-on): Add stat.
41700         * modules/euidaccess (Depends-on): Likewise.
41701         * modules/fchdir (Depends-on): Likewise.
41702         * modules/isdir (Depends-on): Likewise.
41703         * modules/link (Depends-on): Likewise.
41704         * modules/lstat (Depends-on): Likewise.
41705         * modules/mkdir-p (Depends-on): Likewise.
41706         * modules/modechange (Depends-on): Likewise.
41707         * modules/open (Depends-on): Likewise.
41708         * modules/readlink (Depends-on): Likewise.
41709         * modules/same (Depends-on): Likewise.
41710
41711         stat: fix Solaris 9 bug
41712         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41713         slash.
41714         * lib/stat.c (rpl_stat): Work around it.
41715         * doc/posix-functions/stat.texi (stat): Update documentation.
41716
41717         stat: new module, for mingw bug
41718         * modules/stat: New file.
41719         * lib/stat.c: Likewise.
41720         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41721         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41722         * modules/sys_stat (Makefile.am): Use them.
41723         * lib/sys_stat.in.h (stat): Declare replacement.
41724         * lib/openat.c (fstatat): Deal with lstat and stat being function
41725         macros.
41726         * modules/openat (Depends-on): Add inline.
41727         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41728         * doc/posix-functions/stat.texi (stat): Likewise.
41729         * modules/stat-tests: New test.
41730         * tests/test-stat.c: Likewise.
41731
41732 2009-09-19  Jim Meyering  <meyering@redhat.com>
41733
41734         syntax-check: detect unnecessary inclusion of canonicalize.h
41735         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41736
41737 2009-09-19  Eric Blake  <ebb9@byu.net>
41738
41739         canonicalize-lgpl: adjust clients to use correct header
41740         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41741         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41742         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41743         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41744         * lib/progreloc.c (includes): Likewise.
41745
41746 2009-09-19  Jim Meyering  <meyering@redhat.com>
41747
41748         test-posixtm.c: correct a comment
41749         * tests/test-posixtm.c: Correct first-line comment.
41750         Spotted by Eric Blake.
41751
41752 2009-09-16  Jim Meyering  <meyering@redhat.com>
41753
41754         posixtm-tests: make T const-correct; add a test case
41755         * tests/test-posixtm.c (T): Declare const.
41756         Add a test for -(2^31+1).
41757         Remove useless can-succeed-only-in-2002 test.
41758
41759         posixtm-tests: adjust the sole failing test
41760         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41761         expected output matches what mktime now produces.  Cross-checked via
41762         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41763
41764         posixtm: move #ifdef'd tests into a new module
41765         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41766         * tests/test-posixtm.c: ... this new file.
41767         * modules/posixtm-tests: New module.
41768
41769 2009-09-19  Eric Blake  <ebb9@byu.net>
41770
41771         openat: simplify use of at-func.c
41772         * lib/at-func.c (includes): Include prerequisites here, to
41773         simplify requirements on client files.
41774         * lib/openat-priv.h: Add double-inclusion guard.
41775         * lib/faccessat.c (includes): Simplify.
41776         * lib/fchmodat.c (includes): Likewise.
41777         * lib/fchownat.c (includes): Likewise.
41778         * lib/mkdirat.c (includes): Likewise.
41779         * lib/mkfifoat.c (includes): Likewise.
41780         * lib/symlinkat.c (includes): Likewise.
41781
41782         openat: allow return of fd 0
41783         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41784         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41785         unistd-safer.
41786         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41787         <fcntl.h>; this module does not leak fds.
41788         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41789         must be allowed to return 0, leaving openat_safer to add the
41790         safety.
41791         (openat_permissive): Avoid writing to just-opened fd 2 if
41792         restoring the current directory fails.
41793         * lib/openat-die.c (openat_restore_fail): Add comment.
41794         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41795         (save_cwd): Guarantee safe fd, but without use of open_safer.
41796         * tests/test-openat.c: New test.
41797         * modules/openat-tests (Files, Makefile.am): Distribute and build
41798         new file.
41799
41800         relocatable-prog-wrapper: fix build
41801         * modules/relocatable-prog-wrapper (Files): Update name of
41802         canonicalize m4 file, broken on 2009-09-17.
41803         Reported by emad hajjar <aleppos@hotmail.com>.
41804
41805 2009-09-19  Bruno Haible  <bruno@clisp.org>
41806
41807         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41808         * lib/safe-alloc.c: Likewise.
41809         Reported by Ian Beckwith <ianb@erislabs.net>.
41810
41811 2009-09-18  Bruno Haible  <bruno@clisp.org>
41812
41813         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41814         Reported by <erobles@sensacd.com.mx>.
41815
41816 2009-09-17  Eric Blake  <ebb9@byu.net>
41817
41818         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41819         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41820         slashes when checking if last component is missing.
41821         * tests/test-canonicalize.c (main): Test this.
41822
41823         canonicalize, canonicalize-lgpl: honor // if distinct from /
41824         * modules/canonicalize (Files): Add double-slash-root.m4.
41825         * modules/canonicalize-lgpl (Files): Likewise.
41826         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41827         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41828         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41829         fallback definition.
41830         (canonicalize_filename_mode): Use it to protect //.
41831         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41832         (__realpath): Likewise.
41833         * tests/test-canonicalize.c (main): Test this.
41834         * tests/test-canonicalize-lgpl.c (main): Likewise.
41835         * modules/canonicalize-tests (Depends-on): Add same-inode.
41836         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41837
41838         canonicalize-lgpl: fix glibc bug with trailing slash
41839         * m4/canonicalize-lgpl.m4: Move contents...
41840         * m4/canonicalize.m4: ...here.
41841         (gl_CANONICALIZE_LGPL): Factor realpath check...
41842         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41843         glibc 2.3.5 bug, fixed 2005-04-27.
41844         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41845         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41846         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41847         * modules/canonicalize-lgpl (Files): Manage file rename.
41848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41849         * modules/stdlib (Makefile.am): Substitute witness.
41850         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41851         is needed.
41852         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41853         replacement is required.
41854         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41855         * doc/glibc-functions/canonicalize_file_name.texi
41856         (canonicalize_file_name): Document this.
41857         * doc/posix-functions/realpath.texi (realpath): Likewise.
41858
41859         canonicalize-lgpl: reject non-directory with trailing slash
41860         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41861         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41862         catches failures in glibc 2.3.5.
41863         * tests/test-canonicalize.c (main): Likewise.
41864
41865         canonicalize-lgpl: use native realpath if it works
41866         * lib/canonicalize-lgpl.c (realpath): Guard with
41867         FUNC_REALPATH_WORKS.
41868         * lib/stdlib.in.h (realpath): Make declaration optional based on
41869         HAVE_REALPATH.
41870         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41871         native realpath works.
41872         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41873         * modules/stdlib (Makefile.am): Substitute witness.
41874
41875         canonicalize, canonicalize-lgpl: use <stdlib.h>
41876         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41877         (Include): Mention <stdlib.h>.
41878         (configure.ac): Mention functions we provide.
41879         * modules/canonicalize (configure.ac): Likewise.
41880         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41881         realpath if canonicalize_file_name is missing.
41882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41883         * modules/stdlib (Makefile.am): Substitute witnesses.
41884         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41885         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41886         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41887         * NEWS: Document this.
41888         * doc/glibc-functions/canonicalize_file_name.texi
41889         (canonicalize_file_name): Likewise.
41890         * doc/posix-functions/realpath.texi (realpath): Likewise.
41891         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41892
41893         test-canonicalize: consolidate into single C program
41894         * tests/test-canonicalize.sh: Delete; move setup into...
41895         * tests/test-canonicalize.c (main): ...the program, making it
41896         easier to run in debugger.  Add some tests.
41897         * modules/canonicalize-tests (Files): Remove unused file.
41898         (Depends-on): Add progname.
41899         (configure.ac, Makefile.am): Simplify.
41900
41901         test-canonicalize-lgpl: consolidate into single C program
41902         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41903         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41904         easier to run in debugger.  Add some tests.
41905         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41906         (configure.ac, Makefile.am): Simplify.
41907
41908         canonicalize: avoid resolvepath
41909         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41910         unnecessary checks.
41911         * lib/canonicalize.c (includes): Simplify.
41912         (canonicalize_file_name): Drop resolvepath implementation.
41913         * modules/canonicalize (Depends-on): Drop filenamecat.
41914
41915         canonicalize: don't lose errno
41916         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41917         over calls to free.
41918
41919         canonicalize: simplify errno handling
41920         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41921         assignment.
41922
41923         canonicalize, canonicalize-lgpl: update module dependencies
41924         * modules/canonicalize (Depends-on): Add extensions, lstat,
41925         pathmax, stdlib.
41926         (Files): Drop pathmax.h.
41927         (configure.ac): Adjust macro name.
41928         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41929         lstat, stdlib, sys_stat.
41930         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41931         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41932         extensions.
41933         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41934         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41935         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41936         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41937         declaration, if available.
41938         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41939         we can rely on the readlink module.
41940         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41941         (includes): Use <unistd.h> unconditionally.
41942
41943 2009-09-17  Eric Blake  <ebb9@byu.net>
41944
41945         maint: make Include sections of modules consistent
41946         * modules/alloca: Use only header name; no need to list #include.
41947         * modules/alloca-opt: Likewise.
41948         * modules/arpa_inet: Likewise.
41949         * modules/canon-host: Likewise.
41950         * modules/configmake: Likewise.
41951         * modules/dirent: Likewise.
41952         * modules/eealloc: Likewise.
41953         * modules/environ: Likewise.
41954         * modules/fchdir: Likewise.
41955         * modules/fcntl: Likewise.
41956         * modules/fcntl-h: Likewise.
41957         * modules/gethrxtime: Likewise.
41958         * modules/gettime: Likewise.
41959         * modules/ignore-value: Likewise.
41960         * modules/inet_ntop: Likewise.
41961         * modules/inet_pton: Likewise.
41962         * modules/inttypes: Likewise.
41963         * modules/isnand-nolibm: Likewise.
41964         * modules/isnanf-nolibm: Likewise.
41965         * modules/mbchar: Likewise.
41966         * modules/mbfile: Likewise.
41967         * modules/mbiter: Likewise.
41968         * modules/mbuiter: Likewise.
41969         * modules/netdb: Likewise.
41970         * modules/netinet_in: Likewise.
41971         * modules/nproc: Likewise.
41972         * modules/pagealign_alloc: Likewise.
41973         * modules/poll: Likewise.
41974         * modules/printf-frexp: Likewise.
41975         * modules/pthread: Likewise.
41976         * modules/putenv: Likewise.
41977         * modules/random_r: Likewise.
41978         * modules/relocatable-prog: Likewise.
41979         * modules/search: Likewise.
41980         * modules/select: Likewise.
41981         * modules/selinux-h: Likewise.
41982         * modules/settime: Likewise.
41983         * modules/signal: Likewise.
41984         * modules/size_max: Likewise.
41985         * modules/socklen: Likewise.
41986         * modules/ssize_t: Likewise.
41987         * modules/stdarg: Likewise.
41988         * modules/stdbool: Likewise.
41989         * modules/stddef: Likewise.
41990         * modules/stdint: Likewise.
41991         * modules/stdio: Likewise.
41992         * modules/stdlib: Likewise.
41993         * modules/string: Likewise.
41994         * modules/strings: Likewise.
41995         * modules/sys_file: Likewise.
41996         * modules/sys_ioctl: Likewise.
41997         * modules/sys_select: Likewise.
41998         * modules/sys_socket: Likewise.
41999         * modules/sys_stat: Likewise.
42000         * modules/sys_time: Likewise.
42001         * modules/sys_times: Likewise.
42002         * modules/sys_utsname: Likewise.
42003         * modules/sys_wait: Likewise.
42004         * modules/sysexits: Likewise.
42005         * modules/time: Likewise.
42006         * modules/times: Likewise.
42007         * modules/tmpfile: Likewise.
42008         * modules/trim: Likewise.
42009         * modules/unistd: Likewise.
42010         * modules/wchar: Likewise.
42011         * modules/wctype: Likewise.
42012
42013 2009-09-17  Bruno Haible  <bruno@clisp.org>
42014
42015         Make getdate.y compile on QNX and NetBSD 5 / i386.
42016         * m4/getdate.m4 (gl_GETDATE): Conditionally define
42017         TIME_T_FITS_IN_LONG_INT.
42018         * lib/getdate.y (long_time_t): New type.
42019         (relative_time): Change type of 'seconds' field to long_time_t.
42020         (get_date): Update types of local variables. Check against overflow
42021         during conversion from long_time_t to time_t.
42022         Reported by Matt Kraai <kraai@ftbfs.org>
42023         and Hasso Tepper <hasso@netbsd.org>.
42024
42025 2009-09-17  Bruno Haible  <bruno@clisp.org>
42026
42027         * modules/COPYING: Update copyright years.
42028         * modules/README: Likeiwse.
42029         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
42030         Reported by Ian Beckwith <ianb@erislabs.net>.
42031
42032 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42033
42034         * users.txt: Update references for gnuit package.
42035
42036 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42037
42038         * m4/getdelim.m4: Fix typo in copyright line.
42039
42040 2009-09-17  Bruno Haible  <bruno@clisp.org>
42041
42042         * lib/atoll.c: Use the standard header with GPL copyright.
42043         * lib/argz.in.h: Likewise.
42044         * lib/glob.c: Likewise.
42045         * lib/glob-libc.h: Likewise.
42046         * lib/random_r.c: Likewise.
42047         * lib/siglist.h: Likewise.
42048         * lib/strsignal.c: Likewise.
42049         Reported by Ian Beckwith <ianb@erislabs.net>.
42050
42051 2009-09-17  Eric Blake  <ebb9@byu.net>
42052
42053         rmdir: ensure correct dependency order
42054         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42055
42056 2009-09-17  Bruno Haible  <bruno@clisp.org>
42057
42058         Disable assertion that fails on NetBSD 5 / i386.
42059         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42060         Reported by Sam Steingold <sds@gnu.org>
42061         and Hasso Tepper <hasso@netbsd.org>.
42062
42063 2009-09-16  Eric Blake  <ebb9@byu.net>
42064
42065         unlinkdir: port to mingw
42066         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42067         on which no one can unlink a directory.
42068
42069         stdlib: sort witness names
42070         * modules/stdlib (Makefile.am): Sort replacements.
42071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42072         * lib/stdlib.in.h: Likewise.
42073
42074         parse-duration-tests: avoid link failure
42075         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42076         LIBINTL.
42077         Reported by Tom G. Christensen.
42078
42079         openat-tests: ensure unlinkat behaves like rmdir
42080         * tests/test-rmdir.c (main): Factor guts...
42081         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42082         * modules/rmdir-tests (Files): Ship new file.
42083         * modules/openat-tests: New test.
42084         * tests/test-unlinkat.c: Likewise.
42085
42086         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42087         * modules/rmdir-errno (Status, Notice): Now obsolete.
42088
42089         rmdir: work around cygwin 1.5.x and mingw bugs
42090         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42091         * lib/rmdir.c (rmdir): Work around it.
42092         * modules/rmdir (Status, Notice): No longer obsolete.
42093         (Files): Add dos.m4.
42094         (Depends-on): Add unistd.
42095         (configure.ac): Set witnesses.
42096         (License): Relax to LGPLv2+.
42097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42098         * modules/unistd (Makefile.am): Substitute witnesses.
42099         * lib/unistd.in.h (rmdir): Declare replacement.
42100         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42101         * modules/rmdir-tests: New tests.
42102         * tests/test-rmdir.c: Likewise.
42103
42104 2009-09-15  Eric Blake  <ebb9@byu.net>
42105
42106         fchdir: improve use of replacement functions
42107         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42109         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42110         REPLACE_CLOSEDIR.
42111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42112         * modules/sys_stat (Makefile.am): Substitute correct witness.
42113         * modules/dirent (Makefile.am): Likewise.
42114         * modules/unistd (Makefile.am): Likewise.
42115         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42116         * lib/unistd.in.h (dup): Likewise.
42117         * lib/sys_stat.in.h (fstat): Likewise.
42118
42119         maint: ignore gnulib-tool temp files
42120         * .gitignore: Ignore files created during gnulib-tool --test.
42121
42122 2009-09-13  Jim Meyering  <meyering@redhat.com>
42123
42124         posixtm: don't reject a time that specify "60" as the number of seconds
42125         * lib/posixtm.c (posixtime): The code to reject invalid dates
42126         would also reject a time specified with the .60 suffix.
42127         But POSIX allows that, in order to accommodate leap seconds.
42128         So don't reject it.
42129         (main): Adjust tests accordingly.
42130         * modules/posixtm (Depends-on): Add stpcpy.
42131
42132 2009-09-11  Jim Meyering  <meyering@redhat.com>
42133
42134         announce-gen: include [$release_type] in emitted Subject:
42135         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42136         e.g., [stable] in the emitted Subject: line.
42137
42138 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42139
42140         Remove obsolete macros from several modules.
42141         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42142         obsolete Autoconf macros with their modern counterparts.
42143         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42144         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42145         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42146         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42147         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42148         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42150         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42151         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42152         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42153         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42154         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42155         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42156         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42157         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42158         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42159         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42160         * m4/time_r.m4 (gl_TIME_R): Likewise.
42161         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42162         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42163         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42164
42165         Fix copyright header in build-aux scripts.
42166         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42167         recommendation.
42168         * build-aux/ncftpput-ftp: Likewise.
42169         * build-aux/update-copyright: Likewise.
42170
42171 2009-09-09  Eric Blake  <ebb9@byu.net>
42172
42173         test-link: allow Linux choice of errno
42174         * tests/test-link.c (main): Relax test for alternate error.
42175
42176         strndup: fix improper m4 caching
42177         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42178         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42179         (gl_PREREQ_STRNDUP): Delete.
42180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42181         * modules/string (Makefile.am): Substitute it.
42182         * lib/string.in.h (strndup): Modernize prototype.
42183
42184         getcwd: port to mingw
42185         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42186         different from the POSIX assumptions made throughout the getcwd
42187         module; fortunately, the mingw getcwd does not need replacement.
42188         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42189         * modules/getcwd-tests: New test.
42190         * tests/test-getcwd.c: Likewise.
42191
42192         link: fix platform bugs
42193         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42194         * lib/link.c (link): Work around them.  Fix related mingw bug.
42195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42196         * modules/unistd (Makefile.am): Substitute it.
42197         * lib/unistd.in.h (link): Declare replacement.
42198         * doc/posix-functions/link.texi (link): Document this.
42199         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42200
42201         test-link: consolidate into single C program, test more cases
42202         * tests/test-link.sh: Delete.
42203         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42204         at least Cygwin and Solaris.
42205         * modules/link-tests (Files): Remove unused file.
42206         (Depends-on): Add errno, sys_stat.
42207         (Makefile.am): Simplify.
42208
42209 2009-09-08  Bruno Haible  <bruno@clisp.org>
42210
42211         Work around towlower, towupper bug on mingw.
42212         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42213         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42214         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42215         * doc/posix-functions/towupper.texi: Likewise.
42216         Reported by Eric Blake.
42217
42218 2009-09-08  Jim Meyering  <meyering@redhat.com>
42219
42220         build: don't try to run autoheader if we don't use it
42221         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42222         is not used in configure.ac.
42223
42224 2009-09-08  Eric Blake  <ebb9@byu.net>
42225
42226         euidaccess: fix compilation error
42227         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42228
42229         rawmemchr: relax license
42230         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42231         okay.
42232         Reported by Jim Meyering.
42233
42234         mkfifoat: new module
42235         * modules/mkfifoat: New file.
42236         * lib/mkfifoat.c: Likewise.
42237         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42238         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42239         * modules/sys_stat (Makefile.am): Use them.
42240         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42241         * MODULES.html.sh (File system functions): Mention module.
42242         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42243         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42244         * modules/mkfifoat-tests: New test.
42245         * tests/test-mkfifoat.c: Likewise.
42246
42247         strchrnul: relax license
42248         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42249         okay.
42250         Reported by Jim Meyering.
42251
42252 2009-09-08  Eric Blake  <ebb9@byu.net>
42253
42254         fstatat: fix compilation on Solaris
42255         * lib/fstatat.c (includes): Add fcntl.h.
42256         Reported by Pádraig Brady.
42257
42258 2009-09-07  Eric Blake  <ebb9@byu.net>
42259
42260         rename: modernize replacement
42261         * modules/rename (Depends-on): Add stdio.
42262         (configure.ac): Declare witness.
42263         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42264         stdio take care of replacement.
42265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42266         * modules/stdio (Makefile.am): Substitute them.
42267         * lib/stdio.in.h (rename): Declare replacement.
42268         * lib/rename.c (includes): Allow cross-compilation to non-windows
42269         machines.
42270         * doc/posix-functions/rename.texi (rename): Improve
42271         documentation.
42272
42273         stdio: sort witness names
42274         * modules/stdio (Makefile.am): Sort replacements.
42275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42276         * lib/stdio.in.h: Likewise.
42277
42278         getcwd: minor cleanups
42279         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42280         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42281
42282         openat: provide more convenience names
42283         * modules/faccessat (configure.ac): Add C witness.
42284         * lib/unistd.in.h (readlinkat): Fix typo.
42285         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42286         convenience wrappers.
42287         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42288         wrappers in syntax checks.
42289
42290 2009-09-06  Eric Blake  <ebb9@byu.net>
42291
42292         doc: fix comments in recent patches
42293         * lib/faccessat.c: Mention correct function.
42294         * lib/fchmodat.c: Likewise.
42295         * lib/fchownat.c: Likewise.
42296         * lib/symlinkat.c: Likewise.
42297         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
42298         constants.
42299
42300         faccessat, symlinkat: continue cleanup of previous patch
42301         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42302         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42303         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42305         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42306         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42307         set.
42308
42309 2009-09-06  Bruno Haible  <bruno@clisp.org>
42310
42311         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42312         (fstatat): Declare if GNULIB_FSTATAT is set.
42313         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42314         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42315         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42316         * modules/fcntl-h (Files): Remove m4/openat.m4.
42317         * modules/sys_stat (Files): Remove m4/openat.m4.
42318         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42319         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42320         * modules/unistd (Files): Remove m4/openat.m4.
42321         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42322         GNULIB_OPENAT.
42323         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42324         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42325         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42326         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42327         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42328         gl_OPENAT_DEFAULTS.
42329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42330         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42331         Don't require gl_OPENAT_DEFAULTS.
42332         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42333         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42334         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42335         (gl_OPENAT_DEFAULTS): Remove macro.
42336
42337 2009-09-06  Bruno Haible  <bruno@clisp.org>
42338
42339         * modules/openat (configure.ac): Remove unneeded witness.
42340
42341 2009-09-06  Bruno Haible  <bruno@clisp.org>
42342
42343         Set errno to ENOSYS when a function is entirely unsupported.
42344         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42345         EOPNOTSUPP.
42346         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42347         * modules/chown (Depends-on): Remove errno.
42348
42349 2009-09-06  Bruno Haible  <bruno@clisp.org>
42350
42351         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42352
42353 2009-09-06  Bruno Haible  <bruno@clisp.org>
42354
42355         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42356
42357 2009-09-06  Ben Pfaff  <blp@gnu.org>
42358             Bruno Haible  <bruno@clisp.org>
42359
42360         Work around a glibc bug in strtok_r.
42361         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42362         Undefine if UNDEFINE_STRTOK_R is set.
42363         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
42364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42365         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
42366         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
42367         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
42368         UNDEFINE_STRTOK_R.
42369         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
42370
42371 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
42372
42373         exclude: minor fix
42374         * lib/exclude.c: Include wctype.h
42375
42376 2009-09-06  Akim Demaille  <demaille@gostai.com>
42377
42378         bootstrap: improve error message
42379         * build-aux/bootstrap (find_tool): Upon failure, report the list
42380         of candidates.
42381         Honor the initial value of the envvar.
42382
42383 2009-09-05  Eric Blake  <ebb9@byu.net>
42384
42385         symlinkat: new module
42386         * modules/symlinkat: New file.
42387         * lib/symlinkat.c: Likewise.
42388         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
42389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42390         * modules/unistd (Makefile.am): Use them.
42391         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
42392         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
42393         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
42394         * MODULES.html.sh (File system functions): Mention module.
42395         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42396         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42397         * modules/symlinkat-tests: New test.
42398         * tests/test-symlinkat.c: Likewise.
42399
42400         test-openat-safer: add more checks
42401         * tests/test-openat-safer.c (main): Check more code paths.
42402
42403 2009-09-05  Jim Meyering  <meyering@redhat.com>
42404
42405         syntax-check: detect unnecessary inclusion of openat.h
42406         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
42407
42408 2009-09-05  Bruno Haible  <bruno@clisp.org>
42409
42410         Support towlower, towupper.
42411         * doc/posix-functions/towlower.texi: Mention module wctype.
42412         * doc/posix-functions/towupper.texi: Likewise.
42413         * lib/wctype.in.h (towlower, towupper): New functions.
42414         * tests/test-wctype.c: Include stdio.h, stdlib.h.
42415         (ASSERT): New macro.
42416         (e): New variable.
42417         (main): Test also towlower, towupper. Test WEOF argument.
42418         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42419
42420 2009-09-05  Bruno Haible  <bruno@clisp.org>
42421
42422         Fix conversion behaviour when the input is invalid.
42423         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42424         mark occurring in first pass of indirect conversion.
42425         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42426         input.
42427         Found by clang's static analyzer.
42428
42429 2009-09-05  Bruno Haible  <bruno@clisp.org>
42430
42431         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42432         where direct conversion is possible.
42433
42434 2009-09-04  Eric Blake  <ebb9@byu.net>
42435
42436         openat: fail with ENOENT on empty name
42437         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42438         buffer.
42439
42440         link-follow: fix logic bug in prior patch
42441         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
42442         reversed sense of yes and no in prior patch.  Avoid confusing
42443         compilation failure with desired semantics.
42444
42445         link-follow: accommodate mingw and cross-compilation
42446         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
42447         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
42448         cross-compilation results to -1, to make linkat easier to
42449         implement when cross-compiling.  Trivially support mingw.
42450         * modules/link-follow (configure.ac): Call new name.
42451         * NEWS: Mention this.
42452
42453 2009-09-03  Eric Blake  <ebb9@byu.net>
42454
42455         faccessat: compile replacement
42456         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
42457         needed.
42458
42459         fts: fix compilation error
42460         * lib/fts.c (includes): Re-add "openat.h", for
42461         openat_needs_fchdir.
42462
42463         faccessat: new module
42464         * modules/faccessat: New file.
42465         * lib/faccessat.c: Likewise.
42466         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42468         * modules/unistd (Makefile.am): Use it.
42469         * lib/unistd.in.h (faccessat): Declare it.
42470         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42471         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
42472         * MODULES.html.sh (File system functions): Mention it.
42473         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
42474         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42475
42476         euidaccess: prefer POSIX over non-standard implementation
42477         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
42478         * lib/euidaccess.c (euidaccess): Use it if available.
42479
42480         openat: make template easier to use
42481         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
42482         AT_FUNC_F2 to be undefined.
42483         (VALIDATE_FLAG): New macro; use it to reject bad flags.
42484         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
42485         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
42486         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
42487         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
42488         Likewise.
42489         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
42490         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
42491         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
42492         Likewise.
42493
42494         openat: declare in POSIX headers
42495         * NEWS: Mention this.
42496         * modules/openat (configure.ac): Declare witnesses.
42497         (Depends-on): Add fcntl-h, sys_stat, unistd.
42498         (Include): Mention correct headers.
42499         * modules/fcntl-h (Depends-on): Add link-warning.
42500         (Files): Add openat.m4.
42501         (Makefile.am): Substitute witnesses.
42502         * modules/sys_stat (Files, Makefile.am): Likewise.
42503         * modules/unistd (Files, Makefile.am): Likewise.
42504         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
42505         (gl_OPENAT_DEFAULTS): New macro.
42506         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
42507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
42508         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
42509         (SYS_STAT_H): Remove unused variable.
42510         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
42511         * lib/fcntl--.h (includes): Remove unneeded header.
42512         * lib/openat-safer.c (includes): Likewise.
42513         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
42514         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
42515         appropriate headers.
42516         (__OPENAT_PREFIX): Delete.
42517         * lib/fcntl.in.h (openat): Provide declaration.
42518         (AT_FDCWD): Fix Solaris bug.
42519         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42520         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42521         * lib/fchmodat.c (includes):  Adjust to find declaration.
42522         * lib/fchownat.c (includes): Likewise.
42523         * lib/mkdirat.c (includes): Likewise.
42524         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42525         still visible.
42526
42527 2009-09-02  Eric Blake  <ebb9@byu.net>
42528
42529         errno: use consistently
42530         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42531         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42532         * lib/canonicalize.c (ELOOP): Likewise.
42533         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42534         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42535         * lib/lchown.c (EOPNOTSUPP): Likewise.
42536         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42537         * lib/savewd.c (ESTALE): Likewise.
42538         * lib/settime.c (ENOSYS): Likewise.
42539         * lib/utimens.c (ENOSYS): Likewise.
42540         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42541         * lib/chdir-safer.c (ELOOP): Likewise.
42542         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42543         * modules/c-stack (Depends-on): Add errno.
42544         * modules/canonicalize (Depends-on): Likewise.
42545         * modules/chdir-safer (Depends-on): Likewise.
42546         * modules/fdopendir (Depends-on): Likewise.
42547         * modules/inet_ntop (Depends-on): Likewise.
42548         * modules/inet_pton (Depends-on): Likewise.
42549         * modules/lchown (Depends-on): Likewise.
42550         * modules/openat (Depends-on): Likewise.
42551         * modules/savewd (Depends-on): Likewise.
42552         * modules/settime (Depends-on): Likewise.
42553         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42554
42555         fts: avoid leaking fds
42556         * modules/fts (Depends-on): Add cloexec.
42557         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42558         flag.
42559
42560         fts: make directory fds more robust
42561         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42562         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42563
42564         backupfile, chdir-long, fts, savedir: make safer
42565         * lib/backupfile.c (includes): Use "dirent--.h", since
42566         numbered_backup can write to stderr during readdir.
42567         * lib/savedir.c (includes): Likewise.
42568         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42569         emulation can write to stderr on failure.
42570         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42571         * lib/getcwd.c: Document why opendir_safer is unused.
42572         * lib/glob.c: Likewise.
42573         * lib/scandir.c: Likewise.
42574         * lib/openat-proc.c: Likewise, for open_safer.
42575         * modules/backupfile (Depends-on): Add dirent-safer.
42576         * modules/savedir (Depends-on): Likewise.
42577         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42578         * modules/chdir-long (Depends-on): Add openat-safer.
42579
42580         openat-safer: new module
42581         * modules/openat-safer: New file.
42582         * lib/openat-safer.c: Likewise.
42583         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42584         * lib/fcntl-safer.h (openat_safer): Declare.
42585         * lib/fcntl--.h (openat): Override.
42586         * MODULES.html.sh (File descriptor based I/O): Mention it.
42587         * lib/openat.h: Add double-inclusion guards.
42588         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42589         "fcntl--.h", so we can implement openat.
42590         * modules/openat-safer-tests: New test.
42591         * tests/test-openat-safer.c: New file.
42592
42593         dirent-safer: new module
42594         * modules/dirent-safer: New file.
42595         * lib/dirent--.h: Likewise.
42596         * lib/dirent-safer.h: Likewise.
42597         * lib/opendir-safer.c: Likewise.
42598         * m4/dirent-safer.m4: Likewise.
42599         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42600         * modules/dirent-safer-tests: New test.
42601         * tests/test-dirent-safer.c: New file.
42602         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42603
42604         fdopendir: optimize on mingw
42605         * lib/unistd.in.h (_gl_directory_name): New prototype.
42606         * lib/fchdir.c (_gl_directory_name): Implement it.
42607         (fchdir): Use it to simplify implementation.
42608         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42609         fchdir, when available, to avoid calling [f]chdir().
42610
42611         fdopendir: split into its own module
42612         * lib/openat.c (fdopendir): Move...
42613         * lib/fdopendir.c: ...into new file.
42614         * modules/fdopendir: New module.
42615         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42616         * modules/openat (Depends-on): Add fdopendir.
42617         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42618         fdopendir here.
42619         * modules/savedir (Depends-on): Only need fdopendir, not full
42620         openat.
42621         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42622         * lib/openat.h (fdopendir): Drop prototype.
42623         * lib/dirent.in.h (fdopendir): Provide prototype.
42624         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42625         * modules/dirent (Makefile.am): Substitute them.
42626         * MODULES.html.sh (File system functions): Mention it.
42627         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42628         * modules/fdopendir-tests: New file.
42629         * tests/test-fdopendir.c: Likewise.
42630
42631         fchdir: use more consistent macro convention
42632         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42633         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42634         REPLACE_FCHDIR, rather than relying on config.h macros.
42635         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42636         inside a single make-time REPLACE_FCHDIR block, rather than using
42637         the config.h FCHDIR_REPLACEMENT.
42638         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42639         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42640         Manage fstat replacement.
42641         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42642         REPLACE_FCHDIR.
42643         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42644         (Makefile.am): Substitute REPLACE_FCHDIR.
42645         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42646         FCHDIR_REPLACEMENT.
42647         * lib/dup-safer.c (dup_safer): Likewise.
42648         * lib/dup2.c (rpl_dup2): Likewise.
42649         * lib/dup3.c (rpl_dup3): Likewise.
42650         * lib/open.c (rpl_open): Likewise.
42651
42652         fchdir: simplify error handling, and support dup3
42653         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42654         stdbool, malloc-posix, realloc-posix.
42655         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42656         (ensure_dirs_slot): Return false on allocation failure.
42657         (rpl_dup2): Delete.
42658         (_gl_register_dup): New function.
42659         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42660         (_gl_register_fd): Close fd on allocation failure.
42661         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42662         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42663         prototype.
42664         (rpl_dup2_fchdir): Delete prototype.
42665         * lib/open.c (open): Update caller.
42666         * lib/dup2.c (dup2): Track fchdir metadata.
42667         * lib/dup3.c (dup3): Likewise.
42668         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42669         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42670
42671 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42672
42673         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42674         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42675         don't pass arguments to AC_OUTPUT.
42676
42677 2009-09-02  Bruno Haible  <bruno@clisp.org>
42678
42679         * modules/mkdtemp (License): Relicense under LGPLv2+.
42680         Reported by Paolo Bonzini.
42681
42682 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42683
42684         Replace uses of obsolete autoconf macros in Jim's modules.
42685         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42686         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42687         can evoke a warning from autoconf when run with -Wobsolete
42688         enabled.  They were declared obsolete for good reasons (see
42689         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42690         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42691         should not continue using the deprecated macros.
42692         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42693         obsolete Autoconf macros with modern counterparts.
42694         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42695         * m4/dos.m4 (gl_AC_DOS): Likewise.
42696         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42697         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42698         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42699         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42700         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42701         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42702         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42703         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42704         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42705         Likewise.
42706         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42707         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42708         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42709         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42710         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42711         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42712
42713 2009-09-01  Eric Blake  <ebb9@byu.net>
42714
42715         fchdir: fix off-by-one bug in previous patch
42716         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42717         (_gl_unregister_fd): Delete useless if.
42718
42719 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42720
42721         maint.mk: sort the list of syntax-check rules
42722         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42723         easier to get a sense of progress when the rules are run sequentially
42724         and take a long time.
42725
42726 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42727
42728         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42729         * modules/netinet_in: Likewise.
42730         * modules/sys_file: Likewise.
42731         * modules/sys_ioctl: Likewise.
42732         * modules/sys_select: Likewise.
42733         * modules/sys_socket: Likewise.
42734         * modules/sys_stat: Likewise.
42735         * modules/sys_time: Likewise.
42736         * modules/sys_times: Likewise.
42737         * modules/sys_utsname: Likewise.
42738         * modules/sys_wait: Likewise.
42739
42740 2009-09-01  Jim Meyering  <meyering@redhat.com>
42741
42742         fts: help ensure that return values are not ignored
42743         * lib/fts_.h (__GNUC_PREREQ): Define.
42744         (__attribute_warn_unused_result__): Define.
42745         (fts_children, fts_close, fts_open, fts_read): Declare with
42746         __attribute_warn_unused_result__.
42747
42748         fts: fts_close now fails also when closing a dir file descriptor fails
42749         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42750         and propagate to caller, along with errno.
42751
42752         announce-gen: correct formatting in --help output
42753         * build-aux/announce-gen (usage): Move the one-line description in
42754         --help output "up", to where it belongs, just after Usage:.
42755
42756 2009-08-31  Eric Blake  <ebb9@byu.net>
42757
42758         fchdir: port to mingw
42759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42760         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42761         opened, then use a substitute.
42762         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42763         replacement.
42764         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42765         (_gl_register_fd): No need to check stat if open already filters
42766         all directories.
42767         (fchdir): Fix error condition to match POSIX.
42768         * modules/fchdir (Depends-on): Add sys_stat.
42769         * doc/posix-functions/open.texi (open): Document the limitation.
42770         * modules/fchdir-tests: New file.
42771         * tests/test-fchdir.c: Likewise.
42772
42773         canonicalize: allow cross-testing from cygwin to mingw
42774         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42775         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42776         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42777         Likewise.
42778         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42779         target does not support symlinks.
42780         * tests/test-canonicalize-lgpl.sh: Likewise.
42781
42782         chown: avoid compilation warning on mingw
42783         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42784         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42785         mingw.
42786         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42787         * modules/chown (Depends-on): Add errno.
42788
42789 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42790
42791         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42792         command.
42793
42794 2009-08-31  Jim Meyering  <meyering@redhat.com>
42795
42796         canonicalize: remove useless initialization
42797         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42798         initialization of local, "end".
42799
42800 2009-08-30  Bruno Haible  <bruno@clisp.org>
42801
42802         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42803         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42804         ENOSYS.
42805
42806 2009-08-30  Bruno Haible  <bruno@clisp.org>
42807
42808         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42809         /usr/xpg4/bin/tr when it exists.
42810         * tests/test-pipe-filter-gi1.sh: Likewise.
42811
42812 2009-08-30  Bruno Haible  <bruno@clisp.org>
42813
42814         Work around deficient /usr/bin/id program on Solaris.
42815         * tests/test-file-has-acl.sh (ID): New variable.
42816         * tests/test-set-mode-acl.sh (ID): Likewise.
42817         * tests/test-copy-acl.sh (ID): Likewise.
42818         * tests/test-copy-file.sh (ID): Likewise.
42819
42820 2009-08-30  Bruno Haible  <bruno@clisp.org>
42821
42822         New module 'xstriconveh'.
42823         * lib/xstriconveh.h: New file.
42824         * lib/xstriconveh.c: New file.
42825         * modules/xstriconveh: New file.
42826
42827 2009-08-30  Bruno Haible  <bruno@clisp.org>
42828
42829         Make it easier to use mem_cd_iconveh.
42830         * lib/striconveh.h (iconveh_t): New type.
42831         (iconveh_open, iconveh_close): New declarations.
42832         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42833         with a single 'const iconveh_t *' argument.
42834         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42835         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42836         with a single 'const iconveh_t *' argument.
42837         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42838         * tests/test-striconveh.c (main): Update.
42839         * NEWS: Mention the change.
42840
42841 2009-08-30  Bruno Haible  <bruno@clisp.org>
42842
42843         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42844         problem.
42845
42846 2009-08-30  Bruno Haible  <bruno@clisp.org>
42847
42848         Work around iconv_open problem on Solaris.
42849         * lib/iconv_open-solaris.gperf: New file.
42850         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42851         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42852         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42853         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42854         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42855         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42856
42857 2009-08-29  Jim Meyering  <meyering@redhat.com>
42858
42859         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42860         * top/maint.mk (cvs-check): Remove target; it was just an alias
42861         to the better-named vc-diff-check.
42862         (maintainer-distcheck): Remove rule.  It was used only from
42863         the (alpha/beta/major) target, and all of its commands but one
42864         were coreutils-specific.
42865         (vc-dist): Remove rule.
42866         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42867         Run vc-diff-check, not vc-dist.
42868         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42869
42870 2009-08-27  Bruno Haible  <bruno@clisp.org>
42871
42872         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42873         of 0.
42874
42875 2009-08-27  Bruno Haible  <bruno@clisp.org>
42876
42877         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42878         compilers.
42879         * doc/func.texi: Document the SunPRO C bug.
42880
42881 2009-08-27  Bruno Haible  <bruno@clisp.org>
42882
42883         Fix link error on Solaris.
42884         * tests/test-parse-duration.c (xstrdup): Remove function.
42885
42886 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42887
42888         ignore-value: handle pointer types, too
42889         * lib/ignore-value.h (__attribute__): Remove definition.
42890         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42891         of a more concise and more-often effective "(void) i" statement.
42892         (ignore_ptr): New function to suppress warnings from functions that
42893         return pointers, and to make it explicit that one function doesn't
42894         handle all cases.
42895
42896 2009-08-25  Bruno Haible  <bruno@clisp.org>
42897
42898         dup2: work around a Linux bug.
42899         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42900         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42901         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42902         Reported by Simon Josefsson.
42903
42904 2009-08-25  Jim Meyering  <meyering@redhat.com>
42905
42906         libguestfs uses gnulib
42907         * users.txt: Add libguestfs.
42908
42909 2009-08-24  Eric Blake  <ebb9@byu.net>
42910
42911         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42912         * lib/pipe2.c (includes): Add binary-io.h.
42913         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42914
42915 2009-08-24  Bruno Haible  <bruno@clisp.org>
42916
42917         Tolerate declared but missing accept4 syscall.
42918         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42919         available.
42920         * lib/sys_socket.in.h (accept4): If the function is already present,
42921         override it.
42922         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42923         * modules/accept4 (Makefile.am): Compile accept4.c always.
42924         Reported by Paolo Bonzini and Eric Blake.
42925
42926 2009-08-23  Bruno Haible  <bruno@clisp.org>
42927
42928         New module 'accept4'.
42929         * lib/sys_socket.in.h (accept4): New declaration.
42930         * lib/accept4.c: New file.
42931         * m4/accept4.m4: New file.
42932         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42933         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42934         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42935         HAVE_ACCEPT4.
42936         * modules/accept4: New file.
42937         * doc/glibc-functions/accept4.texi: Mention the new module.
42938
42939 2009-08-24  Jim Meyering  <meyering@redhat.com>
42940
42941         progname: also set global program_invocation_name, when possible
42942         Before this change, a libtool-enabled program that calls glibc's
42943         error function would report the program name as
42944         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42945         * modules/progname (configure.ac): Check for a declaration of
42946         program_invocation_name.
42947         * lib/progname.c:  Include <errno.h>.
42948         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42949         Set program_invocation_name.
42950
42951 2009-08-23  Bruno Haible  <bruno@clisp.org>
42952
42953         * lib/dup3.c: Include <string.h>.
42954
42955 2009-08-23  Bruno Haible  <bruno@clisp.org>
42956
42957         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42958         * lib/pipe2.c (pipe2): Likewise.
42959         Suggested by Eric Blake.
42960
42961 2009-08-23  Bruno Haible  <bruno@clisp.org>
42962
42963         Tolerate declared but missing dup3 syscall.
42964         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42965         * lib/unistd.in.h (dup3): If the function is already present,
42966         override it.
42967         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42968         * modules/dup3 (Makefile.am): Compile dup3.c always.
42969         Reported by Paolo Bonzini.
42970
42971 2009-08-23  Bruno Haible  <bruno@clisp.org>
42972
42973         Tolerate declared but missing pipe2 syscall.
42974         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42975         available.
42976         * lib/unistd.in.h (pipe2): If the function is already present,
42977         override it.
42978         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42979         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42980         Reported by Paolo Bonzini.
42981
42982 2009-08-23  Bruno Haible  <bruno@clisp.org>
42983
42984         * lib/pipe2.c (pipe2): Move #ifs inside function.
42985
42986 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42987
42988         quotearg: document limitations of quote_these_too
42989         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42990         those limitations are created.
42991         * lib/quotearg.h (set_char_quoting): Document that digits and
42992         letters that are special after backslash are not permitted.
42993         (quotearg_char): Cross-reference set_char_quoting documentation.
42994
42995 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42996
42997         quotearg: implement custom_quoting_style
42998         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42999         right_quote fields.
43000         (set_custom_quoting): New public function.
43001         (quotearg_buffer_restyled): Add left_quote and right_quote
43002         arguments, handle them very much like locale quoting, and update
43003         all uses.
43004         (quotearg_n_custom): New public function.
43005         (quotearg_n_custom_mem): New public function.
43006         (quotearg_custom): New public function.
43007         (quotearg_custom_mem): New public function.
43008         * lib/quotearg.h: Prototype and document new public functions.
43009         (enum quoting_style): For escape_quoting_style and
43010         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
43011         ignored even though they're otherwise like c_quoting_style.
43012         Add custom_quoting_style member and document with comparison to
43013         clocale_quoting_style.
43014         * tests/test-quotearg.c (custom_quotes): New array.
43015         (custom_results): New array.
43016         (main): Extend to test custom quoting.
43017
43018 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43019
43020         quotearg: fix right quote escaping when it's in quote_these_too
43021         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
43022         quote, be sure to prepend only one backslash.
43023         * tests/test-quotearg.c (use_quote_double_quotes): New function.
43024         (main): Test it.
43025
43026 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43027
43028         quotearg-tests: test escaping of embedded locale quotes
43029         * tests/test-quotearg.c (struct result_strings): Add member for
43030         new input.
43031         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
43032         (inputs): Add new input.
43033         (results_g): Add expected results.
43034         (flag_results): Likewise.
43035         (locale_results): Likewise.
43036         (compare_strings): Check those.
43037
43038 2009-08-23  Bruno Haible  <bruno@clisp.org>
43039
43040         Tests for module 'dup3'.
43041         * modules/dup3-tests: New file.
43042         * tests/test-dup3.c: New file.
43043
43044         New module 'dup3'.
43045         * lib/unistd.in.h (dup3): New declaration.
43046         * lib/dup3.c: New file.
43047         * m4/dup3.m4: New file.
43048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43049         HAVE_DUP3.
43050         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43051         * modules/dup3: New file.
43052         * doc/glibc-functions/dup3.texi: Mention the new module.
43053
43054 2009-08-23  Bruno Haible  <bruno@clisp.org>
43055
43056         Tweak the dup2 test.
43057         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43058         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43059         the test file is still empty. Fix argument order of lseek.
43060
43061 2009-08-23  Bruno Haible  <bruno@clisp.org>
43062
43063         Avoid test link errors when the modules getopt-gnu, gettext are used.
43064         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43065         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43066
43067 2009-08-23  Bruno Haible  <bruno@clisp.org>
43068
43069         Fix getdtablesize() on mingw.
43070         * lib/getdtablesize.c (getdtablesize): Implement differently.
43071         * lib/unistd.in.h (getdtablesize): Improve comment.
43072
43073 2009-08-23  Bruno Haible  <bruno@clisp.org>
43074
43075         New module 'mkostemp'.
43076         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43077         * lib/stdlib.in.h (mksotemp): New declaration.
43078         * lib/mkostemp.c: New file, from glibc with modifications.
43079         * lib/tempname.h (GT_FILE): Remove outdated comment.
43080         (gen_tempname): Add flags argument.
43081         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43082         (__GT_FILE): Map to 1.
43083         (small_open, large_open): Remove macros.
43084         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43085         * lib/mkstemp.c (mkstemp): Update.
43086         * lib/mkdtemp.c (mkdtemp): Likewise.
43087         * m4/mkostemp.m4: New file.
43088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43089         HAVE_MKOSTEMP.
43090         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43091         HAVE_MKOSTEMP.
43092         * modules/mkostemp: New file, based on modules/mkstemp.
43093         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43094         * NEWS: Mention the change.
43095
43096 2009-08-23  Bruno Haible  <bruno@clisp.org>
43097
43098         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43099         Reported by Eric Blake.
43100
43101 2009-08-23  Bruno Haible  <bruno@clisp.org>
43102
43103         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43104         Reported by Eric Blake.
43105
43106 2009-08-23  Bruno Haible  <bruno@clisp.org>
43107
43108         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43109         * modules/pipe2 (Depends-on): Likewise.
43110
43111 2009-08-23  Eric Blake  <ebb9@byu.net>
43112
43113         fcntl-h: add O_TTY_INIT support
43114         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43115         * tests/test-fcntl-h.c (o): Test it.
43116         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43117
43118         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43119         * modules/fcntl: Move <fcntl.h> header replacement...
43120         * modules/fcntl-h: ...to new name, so as not to collide with
43121         like-named function.
43122         * tests/test-fcntl.c: Rename...
43123         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43124         * modules/fcntl-tests: Rename...
43125         * modules/fcntl-h-tests: ...to this.  Update test file name.
43126         * modules/chdir-long (Depends-on): Update clients.
43127         * modules/chdir-safer (Depends-on): Likewise.
43128         * modules/fcntl-safer (Depends-on): Likewise.
43129         * modules/fts (Depends-on): Likewise.
43130         * modules/mkancesdirs (Depends-on): Likewise.
43131         * modules/mkdir-p (Depends-on): Likewise.
43132         * modules/open (Depends-on): Likewise.
43133         * modules/savewd (Depends-on): Likewise.
43134         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43135         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43136
43137 2009-08-22  Bruno Haible  <bruno@clisp.org>
43138
43139         * modules/binary-io (License): Relicense under LGPL.
43140         * modules/pipe2 (License): Likewise.
43141
43142 2009-08-22  Bruno Haible  <bruno@clisp.org>
43143
43144         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43145         return value.
43146         * lib/pipe-filter-gi.c (filter_init): Likewise.
43147         Reported by Eric Blake.
43148
43149 2009-08-22  Bruno Haible  <bruno@clisp.org>
43150
43151         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43152         * modules/pipe (Depends-on): Add pipe2.
43153
43154 2009-08-22  Bruno Haible  <bruno@clisp.org>
43155
43156         Tests for module 'pipe2'.
43157         * modules/pipe2-tests: New file.
43158         * tests/test-pipe2.c: New file.
43159
43160         New module 'pipe2'.
43161         * lib/unistd.in.h (pipe2): New declaration.
43162         * lib/pipe2.c: New file.
43163         * m4/pipe2.m4: New file.
43164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43165         HAVE_PIPE2.
43166         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43167         * modules/pipe2: New file.
43168         * doc/glibc-functions/pipe2.texi: Mention the new module.
43169
43170 2009-08-22  Bruno Haible  <bruno@clisp.org>
43171
43172         Reference some new glibc functions.
43173         * doc/glibc-functions/accept4.texi: New file.
43174         * doc/glibc-functions/dup3.texi: New file.
43175         * doc/glibc-functions/mkostemp.texi: New file.
43176         * doc/glibc-functions/pipe2.texi: New file.
43177         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43178         (Glibc sys/socket.h): Refer to accept4.
43179         (Glibc unistd.h): Refer to dup3, pipe2.
43180         Reported by Eric Blake.
43181
43182 2009-08-22  Jim Meyering  <meyering@redhat.com>
43183             Bruno Haible  <bruno@clisp.org>
43184
43185         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43186         This makes it so packages using automake-1.11's silent-rules option
43187         can print e.g., a single "GEN    configmake.h" line, rather than
43188         the 30+ statements that perform the job.  If you want to see the
43189         actual commands, you can still run "make V=1".
43190         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43191         so that make output is abbreviated when those variables are defined
43192         appropriately.
43193         * modules/argz: Likewise.
43194         * modules/arpa_inet: Likewise.
43195         * modules/byteswap: Likewise.
43196         * modules/configmake: Likewise.
43197         * modules/dirent: Likewise.
43198         * modules/errno: Likewise.
43199         * modules/fcntl: Likewise.
43200         * modules/float: Likewise.
43201         * modules/fnmatch: Likewise.
43202         * modules/getopt-posix: Likewise.
43203         * modules/glob: Likewise.
43204         * modules/iconv_open: Likewise.
43205         * modules/inttypes: Likewise.
43206         * modules/localcharset: Likewise.
43207         * modules/locale: Likewise.
43208         * modules/math: Likewise.
43209         * modules/netdb: Likewise.
43210         * modules/netinet_in: Likewise.
43211         * modules/poll: Likewise.
43212         * modules/posix_spawnp-tests: Likewise.
43213         * modules/sched: Likewise.
43214         * modules/search: Likewise.
43215         * modules/selinux-h: Likewise.
43216         * modules/signal: Likewise.
43217         * modules/spawn: Likewise.
43218         * modules/stdarg: Likewise.
43219         * modules/stdbool: Likewise.
43220         * modules/stddef: Likewise.
43221         * modules/stdint: Likewise.
43222         * modules/stdio: Likewise.
43223         * modules/stdlib: Likewise.
43224         * modules/string: Likewise.
43225         * modules/strings: Likewise.
43226         * modules/sys_file: Likewise.
43227         * modules/sys_ioctl: Likewise.
43228         * modules/sys_select: Likewise.
43229         * modules/sys_socket: Likewise.
43230         * modules/sys_stat: Likewise.
43231         * modules/sys_time: Likewise.
43232         * modules/sys_times: Likewise.
43233         * modules/sys_utsname: Likewise.
43234         * modules/sys_wait: Likewise.
43235         * modules/sysexits: Likewise.
43236         * modules/time: Likewise.
43237         * modules/unistd: Likewise.
43238         * modules/wchar: Likewise.
43239         * modules/wctype: Likewise.
43240
43241 2009-08-22  Jim Meyering  <meyering@redhat.com>
43242
43243         announce-gen: detect write failure
43244         * build-aux/announce-gen: Add Coda at end.
43245         Remove equivalent-but-more-verbose block at top.
43246
43247 2009-08-19  Akim Demaille  <demaille@gostai.com>
43248
43249         bootstrap: --help to stdout.
43250         * bootstrap (usage): Don't send --help to stderr.
43251         Use a here doc instead of a long string.
43252
43253 2009-08-21  Eric Blake  <ebb9@byu.net>
43254
43255         test-popen-safer: split from test-popen
43256         * tests/test-popen.c (main): Move...
43257         * tests/test-popen.h: ...into new file.
43258         * tests/test-popen-safer2.c: New file.
43259         * modules/popen-tests (Files): Add test-popen.h.
43260         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43261         Suggested by Bruno Haible.
43262
43263         test-fcntl-safer: split from test-open
43264         * tests/test-open.c (main): Move...
43265         * tests/test-open.h: ...into new file.
43266         * tests/test-fcntl-safer.c: New file.
43267         * modules/open-tests (Files): Add test-open.h.
43268         * modules/fcntl-safer-tests: New file.
43269         Suggested by Bruno Haible.
43270
43271         test-fopen-safer: split from test-fopen
43272         * tests/test-fopen.c (main): Move...
43273         * tests/test-fopen.h: ...into new file.
43274         * tests/test-fopen-safer.c: New file.
43275         * modules/fopen-tests (Files): Add test-fopen.h.
43276         * modules/fopen-safer-tests: New file.
43277         Suggested by Bruno Haible.
43278
43279 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43280
43281         popen-safer: test O_CLOEXEC at run-time.
43282         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43283
43284 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43285
43286         fcntl: move more flags to the header
43287         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43288         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43289         * lib/fcntl.in.h: Do both things here.
43290
43291 2009-08-21  Jim Meyering  <meyering@redhat.com>
43292
43293         consistently remove $@-t before redirecting to it
43294         * modules/argz: Remove $@-t and $@ before redirecting to the former.
43295         * modules/alloca-opt: Likewise.
43296         * modules/byteswap: Likewise.
43297         * modules/fnmatch: Likewise.
43298         * modules/getopt-posix: Likewise.
43299         * modules/glob: Likewise.
43300         * modules/poll: Likewise.
43301         * modules/posix_spawnp-tests: Likewise.
43302         * modules/sys_socket: Likewise.
43303         * modules/sysexits: Likewise.
43304
43305 2009-08-21  Eric Blake  <ebb9@byu.net>
43306
43307         popen: simplify access to original popen
43308         * lib/popen.c (rpl_popen): No need to worry about popen being a
43309         macro.
43310         Reported by Bruno Haible.
43311
43312 2009-08-20  Eric Blake  <ebb9@byu.net>
43313
43314         build: avoid some compiler warnings
43315         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43316         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43317         type.
43318         (new_exclude_segment, excluded_file_pattern_p)
43319         (excluded_file_name_p): Reduce scope.
43320         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43321         old-style declaration.
43322
43323 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43324
43325         * tests/test-exclude1.sh: Handle Windows EOL.
43326         * tests/test-exclude2.sh: Likewise.
43327         * tests/test-exclude3.sh: Likewise.
43328         * tests/test-exclude4.sh: Likewise.
43329         * tests/test-exclude5.sh: Likewise.
43330         * tests/test-exclude6.sh: Likewise.
43331         * tests/test-exclude7.sh: Likewise.
43332
43333 2009-08-19  Akim Demaille  <demaille@gostai.com>
43334
43335         bootstrap: find sha1sum when named gsha1sum.
43336         * bootstrap (find_tool): New.
43337         ($SHA1SUM): New.
43338         Use it.
43339
43340 2009-08-20  Jim Meyering  <meyering@redhat.com>
43341
43342         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43343         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43344         expression that converts "." in a file name to "\." in the resulting
43345         regexp.  Start with a dummy statement, so that prior shell variable
43346         definitions are expanded portably.  Reported by Simon Josefsson.
43347
43348 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43349
43350         Fix polling for writeability of a screen buffer.
43351         * lib/poll.c: Distinguish input and screen buffers for the
43352         Win32 implementation.
43353         * lib/select.c: Likewise.
43354
43355 2009-08-19  Eric Blake  <ebb9@byu.net>
43356
43357         popen-safer: prevent popen from clobbering std descriptors
43358         * modules/popen-safer: New file.
43359         * lib/popen-safer.c: Likewise.
43360         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43361         * lib/stdio--.h (popen): Provide override.
43362         * lib/stdio-safer.h (popen_safer): Provide declaration.
43363         * tests/test-popen.c (includes): Partially test this.
43364         * modules/popen-safer-tests: New file, for more tests.
43365         * tests/test-popen-safer.c: Likewise.
43366         * MODULES.html.sh (file stream based Input/Output): Mention it.
43367
43368         tests: test some of the *-safer modules
43369         * modules/fopen-safer (Depends-on): Add fopen.
43370         * modules/fcntl-safer (Depends-on): Add fcntl.
43371         * modules/stdlib-safer (Depends-on): Add stdlib.
43372         (configure.ac): Set indicator.
43373         * modules/unistd-safer (configure.ac): Likewise.
43374         * modules/tmpfile-safer (configure.ac): Likewise.
43375         (Depends-on): Add tmpfile.
43376         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
43377         active.
43378         * tests/test-fopen.c (includes): Test safer versions when they are
43379         in use.
43380         * tests/test-open.c (includes): Likewise.
43381
43382         popen: fix cygwin 1.5 bug when stdin closed
43383         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
43384         * modules/popen: New file.
43385         * modules/popen-tests: Likewise.
43386         * tests/test-popen.c: Likewise.
43387         * m4/popen.m4: Likewise.
43388         * lib/popen.c: Likewise.
43389         * lib/stdio.in.h (popen): New declaration.
43390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
43391         * modules/stdio (Makefile.am): Likewise.
43392         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
43393
43394 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
43395
43396         maint.mk: give full control over update-copyright exclusions
43397         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
43398         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
43399         (update-copyright): Don't force inclusion of top-level
43400         ChangeLog.  Don't force exclusion of all COPYING files, but make
43401         them the default exclusion instead.
43402
43403 2009-08-16  Bruno Haible  <bruno@clisp.org>
43404
43405         Fix test failures on Solaris 10.
43406         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
43407         tests when Solaris iconv() is used.
43408         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43409         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43410         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43411         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43412         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43413
43414 2009-08-16  Bruno Haible  <bruno@clisp.org>
43415
43416         Fix test failures on Solaris 10.
43417         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
43418         'tr' program and pass it as first argument.
43419         * tests/test-pipe-filter-gi1.sh: Likewise.
43420         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43421         program as first argument.
43422         * tests/test-pipe-filter-gi1.c (main): Likewise.
43423
43424 2009-08-16  Eric Blake  <ebb9@byu.net>
43425
43426         fpurge: fix previous commits
43427         * modules/fpurge (Makefile.am): Make replacement conditional,
43428         partially reverting 2007-04-29 change; missed in previous
43429         attempt.
43430         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43431         is missing.
43432
43433 2009-08-16  Bruno Haible  <bruno@clisp.org>
43434
43435         Clarify fpurge's effect on the file position.
43436         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43437         * tests/test-fpurge.c (main): Make a second pass for checking the file
43438         position.
43439
43440 2009-08-16  Bruno Haible  <bruno@clisp.org>
43441
43442         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
43443         declaration of fpurge is missing.
43444         * tests/test-fpurge.c (main): Check that the file has not more contents
43445         than expected. Close the file before removing it.
43446
43447 2009-08-15  Eric Blake  <ebb9@byu.net>
43448
43449         fpurge: don't wrap working cygwin implementation
43450         * lib/fpurge.c (fpurge): Fix comment typo.
43451         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
43452         1.7 to avoid replacement.
43453         * tests/test-fpurge.c (main): Enhance test.
43454
43455 2009-08-15  Eric Blake  <ebb9@byu.net>
43456         and Jim Meyering  <meyering@redhat.com>
43457
43458         test-update-copyright: skip if perl is insufficient
43459         * tests/test-update-copyright.sh: Failure to run maintainer tool
43460         should not cause testsuite failure on cygwin 1.5.
43461
43462 2009-08-14  Eric Blake  <ebb9@byu.net>
43463
43464         doc: mention more functions added in cygwin 1.7.0
43465         * doc/posix-headers/limits.texi (limits.h): Update for recent
43466         cygwin additions.
43467         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43468         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43469         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43470         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43471         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
43472
43473 2009-08-14  Eric Blake  <ebb9@byu.net>
43474
43475         maint.mk: simplify update-copyright rule
43476         * top/maint.mk (update-copyright-local): Delete, and document how
43477         to do it in cfg.mk instead.
43478         (update-copyright-exclude-regexp): Delete, and document how to do
43479         it in .x-update-copyright instead.
43480         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
43481         exclude ChangeLog.
43482
43483 2009-08-14  Bruno Haible  <bruno@clisp.org>
43484
43485         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
43486
43487 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43488
43489         maint.mk: support update-copyright-env
43490         * top/maint.mk (update-copyright-env): Define place-holder.
43491         (update-copyright): Expand $(update-copyright-env) before
43492         invoking update-copyright.
43493
43494 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43495
43496         update-copyright: implement forced reformatting
43497         * build-aux/update-copyright: Implement and document
43498         UPDATE_COPYRIGHT_FORCE.
43499         * tests/test-update-copyright.sh: Test it.
43500
43501 2009-08-14  Eric Blake  <ebb9@byu.net>
43502         and Bruno Haible  <bruno@clisp.org>
43503
43504         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
43505         * tests/test-locale.c: Revert previous patch related to NULL.
43506         * tests/test-stdio.c: Likewise.
43507         * tests/test-stdlib.c: Likewise.
43508         * tests/test-string.c: Likewise.
43509         * tests/test-unistd.c: Likewise.
43510         * modules/time-tests (Depends-on): Add verify.
43511         * modules/wchar-tests (Depends-on): Likewise.
43512         * tests/test-time.c: Test for NULL compliance.
43513         * tests/test-wchar.c: Likewise.
43514         * modules/locale (Depends-on): Add stddef.
43515         * modules/stdio (Depends-on): Likewise.
43516         * modules/stdlib (Depends-on): Likewise.
43517         * modules/string (Depends-on): Likewise.
43518         * modules/time (Depends-on): Likewise.
43519         * modules/unistd (Depends-on): Likewise.
43520         * modules/wchar (Depends-on): Likewise.
43521         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43522         * lib/stdlib.in.h (includes): Likewise.
43523         * lib/string.in.h (includes): Likewise.
43524         * lib/time.in.h (includes): Likewise.
43525         * lib/unistd.in.h (includes): Likewise.
43526         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43527         replaced.
43528         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43529         * m4/stddef_h.m4: New file.
43530         * modules/stddef: Likewise.
43531         * lib/stddef.in.h: Likewise.
43532         * modules/stddef-tests: Likewise.
43533         * tests/test-stddef.c: Likewise.
43534         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43535         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43536         * doc/posix-headers/locale.texi (locale.h): Likewise.
43537         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43538         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43539         * doc/posix-headers/string.texi (string.h): Likewise.
43540         * doc/posix-headers/time.texi (time.h): Likewise.
43541         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43542         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43543
43544 2009-08-14  Eric Blake  <ebb9@byu.net>
43545
43546         doc: improve git diff of texinfo files
43547         * .gitattributes: Add rule for *.texi files, with hint on how to
43548         use it.
43549         Copied from m4, and based on a report by Bruno Haible.
43550
43551 2009-08-14  Bruno Haible  <bruno@clisp.org>
43552
43553         Disable multithread support by default on Cygwin 1.5.x for real.
43554         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43555
43556 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43557
43558         update-copyright: much ado about intervals
43559         * build-aux/update-copyright: Implement and document
43560         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43561         of copyright year intervals.
43562         Also, document UPDATE_COPYRIGHT_YEAR.
43563         * tests/test-update-copyright.sh: Test it.
43564
43565         update-copyright: convert 2-digit to 4-digit years
43566         * build-aux/update-copyright: Implement and document.
43567         * tests/test-update-copyright.sh: Update.
43568
43569 2009-08-14  Jim Meyering  <meyering@redhat.com>
43570
43571         test-exclude: avoid coreutils "make check" failure
43572         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43573         just as in test-argmatch.c.
43574
43575 2009-08-13  Eric Blake  <ebb9@byu.net>
43576
43577         test-dup2: fix bad assumption
43578         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43579         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43580
43581         test-version-etc: fix CRLF portability issue
43582         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43583         recognize \r.
43584         * tests/test-argp-version-etc-1.sh: Likewise.
43585
43586         getopt: update client modules
43587         * modules/argp (Depends-on): Use getopt-gnu.
43588         * modules/git-merge-changelog (Depends-on): Likewise.
43589         * modules/long-options (Depends-on): Likewise.
43590         * modules/xstrtol (Depends-on): Likewise.
43591
43592 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43593
43594         * tests/test-version-etc.sh: Don't fail on different
43595         project/version.  Don't fail on CRLF differences.  Rewrite to use
43596         multiple -e instead of multiple sed forks, suggested by Eric Blake
43597         <ebb9@byu.net>.
43598         * tests/test-argp-version-etc-1.sh: Likewise.
43599
43600 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43601
43602         * tests/test-version-etc.sh: Don't fail on different
43603         project/version.
43604
43605 2009-08-12  Bruno Haible  <bruno@clisp.org>
43606
43607         Tests for modules 'getopt-posix', 'getopt-gnu'.
43608         * modules/getopt-posix-tests: New file.
43609         * tests/test-getopt.c: New file.
43610         * tests/test-getopt.h: New file.
43611         * tests/test-getopt_long.h: New file.
43612
43613         New modules 'getopt-posix', 'getopt-gnu'.
43614         * modules/getopt-gnu: New file, renamed from modules/getopt.
43615         * modules/getopt-posix: New file.
43616         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43617         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43618         (gl_GETOPT): Remove macro.
43619         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43620         Disable the test against BSD systems that declare optreset. Test
43621         against mingw bug. Test against lack of support of optional arguments
43622         on many platforms.
43623         * doc/glibc-headers/getopt.texi: Update module name and list of
43624         relevant platforms.
43625         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43626         'getopt-gnu' and more portability problems.
43627         * NEWS: Mention the changes.
43628
43629 2009-08-12  Bruno Haible  <bruno@clisp.org>
43630
43631         Ensure that optarg etc. get declared by <unistd.h>.
43632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43633         AC_USE_SYSTEM_EXTENSIONS.
43634         * modules/getopt (Depends-on): Add 'extensions'.
43635
43636 2009-08-12  Bruno Haible  <bruno@clisp.org>
43637
43638         Avoid test link errors.
43639         * modules/pipe-filter-ii-tests (Makefile.am): Define
43640         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43641         * modules/pipe-filter-gi-tests (Makefile.am): Define
43642         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43643         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43644
43645 2009-08-12  Bruno Haible  <bruno@clisp.org>
43646
43647         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43648         gl_GETOPT_SUBSTITUTE before.
43649         (gl_GETOPT): Use it.
43650         * m4/argp.m4 (gl_ARGP): Update.
43651         Reported by Sergey Poznyakoff.
43652
43653         * m4/getopt.m4: Reorder macros.
43654         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43655         (gl_GETOPT_SUBSTITUTE): Remove macro.
43656
43657 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43658
43659         Minor improvement in gitlog-to-changelog
43660
43661         * build-aux/gitlog-to-changelog: New option `--format' makes
43662         output format string configurable.
43663
43664 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43665
43666         Optimize exclude: use hash tables for non-wildcard patterns.
43667
43668         * lib/exclude.c: Include hash.h and mbuiter.h
43669         (struct exclude_pattern, exclude_segment): New data types.
43670         (struct exclude): Rewrite.
43671         (fnmatch_pattern_has_wildcards): New function.
43672         (new_exclude_segment, free_exclude_segment): New functions.
43673         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43674         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43675         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43676         * modules/exclude: Depend on hash and mbuiter.
43677
43678         * modules/exclude-tests: New file.
43679         * tests/test-exclude.c: New file.
43680         * tests/test-exclude1.sh: New file.
43681         * tests/test-exclude2.sh: New file.
43682         * tests/test-exclude3.sh: New file.
43683         * tests/test-exclude4.sh: New file.
43684         * tests/test-exclude5.sh: New file.
43685         * tests/test-exclude6.sh: New file.
43686         * tests/test-exclude7.sh: New file.
43687
43688 2009-08-12  Bruno Haible  <bruno@clisp.org>
43689
43690         Ensure that getopt() gets declared by <unistd.h>.
43691         * lib/unistd.in.h: Conditionally include getopt.h.
43692         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43693         Set GNULIB_UNISTD_H_GETOPT.
43694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43695         GNULIB_UNISTD_H_GETOPT.
43696         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43697
43698 2009-08-12  Bruno Haible  <bruno@clisp.org>
43699
43700         Clarify logic.
43701         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43702         gl_replace_getopt instead of GETOPT_H.
43703
43704 2009-08-12  Bruno Haible  <bruno@clisp.org>
43705
43706         * m4/getopt.m4: Add comments.
43707
43708 2009-08-12  Bruno Haible  <bruno@clisp.org>
43709
43710         Disable multithread support by default on Cygwin 1.5.x.
43711         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43712         set gl_use_threads=no if not specified otherwise.
43713
43714 2009-08-11  Bruno Haible  <bruno@clisp.org>
43715
43716         Avoid compilation error on NetBSD 5.0.
43717         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43718         * tests/test-stdio.c: Likewise.
43719         * tests/test-stdlib.c: Likewise.
43720         * tests/test-string.c: Likewise.
43721         * tests/test-unistd.c: Likewise.
43722         Reported by Greg Troxel <gdt@ir.bbn.com>
43723         at <https://savannah.gnu.org/support/?106973>.
43724
43725 2009-08-11  Bruno Haible  <bruno@clisp.org>
43726
43727         * modules/dup2-tests (Depends-on): Remove close.
43728
43729         Undo 2009-07-19 commit.
43730         * modules/acl-tests (Depends-on): Remove close.
43731         * modules/binary-io-tests (Depends-on): Likewise.
43732         * modules/closein-tests (Depends-on): Likewise.
43733         * modules/flock-tests (Depends-on): Likewise.
43734         * modules/fsync-tests (Depends-on): Likewise.
43735         * modules/lseek-tests (Depends-on): Likewise.
43736         * modules/pipe-tests (Depends-on): Likewise.
43737         * modules/posix_spawn-tests (Depends-on): Likewise.
43738         * modules/posix_spawnp-tests (Depends-on): Likewise.
43739         * modules/stat-time-tests (Depends-on): Likewise.
43740         * modules/yesno-tests (Depends-on): Likewise.
43741
43742 2009-08-10  Bruno Haible  <bruno@clisp.org>
43743
43744         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43745
43746 2009-08-10  Bruno Haible  <bruno@clisp.org>
43747
43748         Fix a gcc warning.
43749         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43750
43751 2009-08-10  Bruno Haible  <bruno@clisp.org>
43752
43753         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43754         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43755         not only the first time.
43756         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43757         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43758         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43759         is 1, not only the the first time.
43760
43761 2009-08-10  Bruno Haible  <bruno@clisp.org>
43762
43763         Make it possible to use module 'gethostname' without module 'close'.
43764         * lib/unistd.in.h (close): Evoke a link error only if
43765         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43767         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43768         * modules/unistd (Makefile.am): Substitute
43769         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43770         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43771         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43772         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43773         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43774         * modules/sys_ioctl (Makefile.am): Substitute
43775         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43776         * modules/socket (configure.ac): On native Windows, set
43777         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43778         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43779         Reported by Sam Steingold <sds@gnu.org>.
43780
43781 2009-08-10  Bruno Haible  <bruno@clisp.org>
43782
43783         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43784         * modules/ioctl (configure.ac): Likewise.
43785
43786 2009-08-10  Bruno Haible  <bruno@clisp.org>
43787
43788         Avoid collision between gnulib wrapper and libintl wrapper.
43789         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43790         already defined in intl/printf.c.
43791         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43792         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43793
43794 2009-08-09  Bruno Haible  <bruno@clisp.org>
43795
43796         Make <sys/select.h> really self-contained, also on Solaris 10.
43797         * lib/sys_select.in.h: Include <string.h>.
43798         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43799         Solaris 10 problem.
43800         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43801         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43802         Reported by Jim Meyering.
43803
43804 2009-08-09  Bruno Haible  <bruno@clisp.org>
43805
43806         Avoid warnings from 'aclocal' that are due to a use of macro name
43807         AM_XGETTEXT_OPTION that is not defined in automake.
43808         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43809         automake.
43810         * modules/error (configure.ac): Likewise.
43811         * modules/propername (configure.ac): Likewise.
43812         * modules/vasprintf (configure.ac): Likewise.
43813         * modules/verror (configure.ac): Likewise.
43814         * modules/xprintf (configure.ac): Likewise.
43815         * modules/xvasprintf (configure.ac): Likewise.
43816
43817 2009-08-08  Bruno Haible  <bruno@clisp.org>
43818
43819         Avoid compilation error in C++ mode.
43820         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43821         Reported by Sam Steingold <sds@gnu.org>.
43822
43823 2009-08-08  Bruno Haible  <bruno@clisp.org>
43824
43825         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43826         for the various Unix platforms.
43827         * doc/posix-headers/limits.texi: Update platforms list regarding
43828         HOST_NAME_MAX.
43829         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43830
43831 2009-08-07  Jim Meyering  <meyering@redhat.com>
43832
43833         selinux-at: fix typo in a comment
43834         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43835         Spotted by Paolo Bonzini.
43836
43837         selinux-at: remove redundant m4 code, add documentation
43838         * modules/selinux-at (configure.ac): Remove redundant code.
43839         LIB_SELINUX is already set via the dependent module, selinux-h.
43840         (Include): Add quotes around selinux-at.h.
43841         * lib/selinux-at.h: Add documentation.
43842         Reported by Bruno Haible in
43843         http://marc.info/?l=gnulib-bug&m=124958988300749
43844
43845 2009-08-07  Bruno Haible  <bruno@clisp.org>
43846
43847         Avoid link error on MacOS X 10.3 and 10.4.
43848         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43849         on non-ELF systems.
43850         * lib/argp-pv.c (argp_program_version): Likewise.
43851         Reported by Simon Josefsson.
43852
43853 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43854
43855         * tests/test-version-etc.sh: Use $EXEEXT.
43856
43857 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43858
43859         update-copyright: update documentation to point to maint.mk
43860         * build-aux/update-copyright: Here.
43861
43862 2009-08-06  Jim Meyering  <meyering@redhat.com>
43863
43864         maint.mk: support update-copyright-local
43865         * top/maint.mk (update-copyright-local): Define place-holder.
43866         (update-copyright): Depend on $(update-copyright-local).
43867
43868 2009-08-06  Jim Meyering  <meyering@redhat.com>
43869
43870         selinux-at: new module
43871         Initially written for coreutils, this module will soon be
43872         used by findutils, too.
43873         * MODULES.html.sh [Misc]: Add selinux-at.
43874         * lib/selinux-at.h: New file, from coreutils.
43875         * lib/selinux-at.c: Likewise.
43876         * modules/selinux-at: Likewise.
43877         (License): Change from LGPL to GPL, since it depends
43878         on the GPL'd openat module.
43879
43880         doc: update README
43881         * README: Remove references to cogito.
43882         Remove cvs-repo-updating instructions from 2007.
43883         Don't imply that CVS is better if you have limited disk space.
43884
43885 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43886
43887         update-copyright: support C-style comments
43888         * build-aux/update-copyright: Implement and document.
43889         * tests/test-update-copyright.sh: Test.
43890
43891 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43892
43893         update-copyright: support omitted "(C)"
43894         * build-aux/update-copyright: Implement and document.  Also,
43895         allow variable whitespace before "(C)".
43896         * tests/test-update-copyright.sh: Test.
43897
43898 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43899
43900         update-copyright: don't trip on non-FSF copyright statements
43901         * build-aux/update-copyright: Fix so that the first correctly
43902         formatted FSF copyright statement is recognized no matter what
43903         appears before it.  Update documentation.
43904         * tests/test-update-copyright.sh: Test that.
43905
43906 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43907
43908         update-copyright: clean up code a little
43909         * build-aux/update-copyright: Append "_re" to the name of any
43910         variable holding a regular expression.
43911         Replace "old" and "new" with "stmt" in variable names.
43912         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43913         handled correctly.
43914         Format code more consistently.
43915
43916 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43917
43918         update-copyright-tests: improve portability
43919         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43920         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43921
43922 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43923
43924         update-copyright: support @copyright{} and &copy;
43925         * build-aux/update-copyright: Implement and document.
43926         * tests/test-update-copyright.sh: Test.
43927
43928 2009-08-04  Jim Meyering  <meyering@redhat.com>
43929
43930         update-copyright-tests: correctly test EOL=\r\n handling
43931         * tests/test-update-copyright.sh: Put \r at the end of some lines
43932         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43933
43934         maint.mk: make update-copyright exclusion list more configurable
43935         * top/maint.mk (update-copyright): Default to excluding COPYING,
43936         but allow an override, in case someone does want to update that file.
43937
43938         maint.mk: don't update copyright date in COPYING
43939         * top/maint.mk (update-copyright): Exclude COPYING.
43940
43941         maint.mk: add a copyright-updating rule
43942         * top/maint.mk (update-copyright): New rule.
43943         Derived from coreutils/Makefile.am.
43944
43945         update-copyright: rename some variables
43946         * build-aux/update-copyright: Rename a few variables for clarity.
43947         Tweak syntax.  List Joel E. Denny as coauthor.
43948
43949 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43950
43951         update-copyright: fix bug for 2-digit last year and add tests
43952         * build-aux/update-copyright: Fix bug.
43953         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43954         specified.
43955         * modules/update-copyright-tests: New
43956         * tests/test-update-copyright.sh: New.
43957
43958 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43959
43960         update-copyright: handle leading tabs in line prefix
43961         * build-aux/update-copyright: Count leading tabs as 8 spaces
43962         when computing margin.  This helps with the formatting of
43963         ChangeLogs, for example.
43964         Fix documentation a little.
43965
43966 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43967
43968         update-copyright: support EOL=\r\n
43969         * build-aux/update-copyright: Implement that.
43970
43971 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43972
43973         update-copyright: automatically format copyright statements
43974         * build-aux/update-copyright: Implement that.
43975         Also, be a little more predictable and safer by always failing
43976         when the full copyright format is not perfectly recognized as an
43977         unbroken whole.  Discussed at
43978         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43979         Rewrite documentation.
43980
43981 2009-08-03  Bruno Haible  <bruno@clisp.org>
43982
43983         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43984
43985 2009-08-02  Bruno Haible  <bruno@clisp.org>
43986
43987         Tests for module 'uname'.
43988         * modules/uname-tests: New file.
43989         * tests/test-uname.c: New file.
43990
43991         New module 'uname'.
43992         * lib/uname.c: New file.
43993         * m4/uname.m4: New file.
43994         * modules/uname: New file.
43995         * doc/posix-functions/uname.texi: Mention the new module.
43996
43997 2009-08-02  Bruno Haible  <bruno@clisp.org>
43998
43999         Tests for module 'sys_utsname'.
44000         * modules/sys_utsname-tests: New file.
44001         * tests/test-sys_utsname.c: New file.
44002
44003         New module 'sys_utsname'.
44004         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
44005         * m4/sys_utsname_h.m4: New file.
44006         * modules/sys_utsname: New file.
44007         * doc/posix-headers/sys_utsname.texi: Mention the new module.
44008
44009 2009-08-02  Bruno Haible  <bruno@clisp.org>
44010
44011         Implicitly initialize the sockets library.
44012         * lib/gethostname.c: Include sockets.h.
44013         (rpl_gethostname): Invoke gl_sockets_startup.
44014         * lib/socket.c: Include sockets.h.
44015         (rpl_socket): Invoke gl_sockets_startup.
44016         * modules/gethostname (Depends-on): Add sockets.
44017         * modules/socket (Depends-on): Likewise.
44018         * tests/test-poll.c: Don't include sockets.h.
44019         (main): Don't invoke gl_sockets_startup.
44020         * tests/test-select.c: Don't include sockets.h.
44021         (main): Don't invoke gl_sockets_startup.
44022
44023 2009-08-02  Bruno Haible  <bruno@clisp.org>
44024
44025         Allow multiple calls to gl_sockets_startup.
44026         * lib/sockets.c (initialized_sockets_version): New variable.
44027         (gl_sockets_startup): Do nothing if already called for this or a higher
44028         version.
44029         (gl_sockets_cleanup): Reset initialized_sockets_version.
44030
44031 2009-08-03  Simon Josefsson  <simon@josefsson.org>
44032
44033         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
44034         different project/version.
44035
44036 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44037             Bruno Haible  <bruno@clisp.org>
44038
44039         Tests for module 'pipe-filter-gi'.
44040         * modules/pipe-filter-gi-tests: New file.
44041         * tests/test-pipe-filter-gi1.sh: New file.
44042         * tests/test-pipe-filter-gi1.c: New file.
44043         * tests/test-pipe-filter-gi2.sh: New file.
44044         * tests/test-pipe-filter-gi2-main.c: New file.
44045         * tests/test-pipe-filter-gi2-child.c: New file.
44046
44047         New module 'pipe-filter-gi'.
44048         * lib/pipe-filter-gi.c: New file.
44049         * modules/pipe-filter-gi: New file.
44050
44051 2009-08-02  Bruno Haible  <bruno@clisp.org>
44052             Paolo Bonzini  <bonzini@gnu.org>
44053
44054         Tests for module 'pipe-filter-ii'.
44055         * modules/pipe-filter-ii-tests: New file.
44056         * tests/test-pipe-filter-ii1.sh: New file.
44057         * tests/test-pipe-filter-ii1.c: New file.
44058         * tests/test-pipe-filter-ii2.sh: New file.
44059         * tests/test-pipe-filter-ii2-main.c: New file.
44060         * tests/test-pipe-filter-ii2-child.c: New file.
44061
44062         New module 'pipe-filter-ii'.
44063         * lib/pipe-filter.h: New file.
44064         * lib/pipe-filter-ii.c: New file.
44065         * lib/pipe-filter-aux.h: New file.
44066         * modules/pipe-filter-ii: New file.
44067
44068 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44069
44070         * lib/gc-libgcrypt.c: Change copyright to FSF.
44071         * lib/gc-gnulib.c: Likewise.
44072
44073 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44074
44075         * lib/gethostname.c: Include limits.h.
44076
44077 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44078             Bruno Haible  <bruno@clisp.org>
44079
44080         Ensure HOST_NAME_MAX as part of the gethostname module.
44081         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44082         define also HOST_NAME_MAX.
44083         * tests/test-gethostname.c: Include <limits.h>.
44084         (main): Check also HOST_NAME_MAX.
44085         * doc/posix-headers/limits.texi: Document the mingw problem.
44086
44087 2009-08-02  Bruno Haible  <bruno@clisp.org>
44088
44089         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44090         Add comments.
44091
44092 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44093
44094         * lib/gethostname.c: Add Windows wrapper.
44095         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44096         * modules/gethostname: Depend on sys_socket & errno, for also
44097         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44098         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44099
44100 2009-07-31  Jim Meyering  <meyering@redhat.com>
44101
44102         getloadavg: fix symbol name in comment
44103         * lib/getloadavg.c: Correct a typo I introduced when adding
44104         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44105         Matt Kraai spotted the problem.
44106
44107 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44108
44109         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44110         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44111         code also if ! defined N_NAME_POINTER.
44112         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44113         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44114         but the n_name member is a 12-byte array.
44115
44116 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44117
44118         update-copyright: generalize comment handling
44119         * build-aux/update-copyright: Handle copyright statements
44120         within more comment styles.
44121         Document usage.
44122         Report any file with an external copyright holder or parse failure.
44123
44124 2009-07-29  Jim Meyering  <meyering@redhat.com>
44125
44126         mktime: correct setting of REPLACE_MKTIME
44127         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44128
44129         update-copyright: new module
44130         * modules/update-copyright: New file.
44131         * build-aux/update-copyright: New file.
44132         * MODULES.html.sh (maint+release support): Add update-copyright.
44133
44134 2009-07-27  Bruno Haible  <bruno@clisp.org>
44135
44136         Fix compilation error when <ctime> is used and mktime is replaced.
44137         * lib/time.in.h (mktime): New declaration.
44138         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44139         REPLACE_MKTIME instead of defining mktime in config.h.
44140         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44141         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44142         Reported by Ross McFarland <rwmcfa1@neces.com>.
44143
44144 2009-07-27  Bruno Haible  <bruno@clisp.org>
44145
44146         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44147         Reported by Matt Kraai <mkraai@beckman.com>.
44148
44149 2009-07-25  Jim Meyering  <meyering@redhat.com>
44150
44151         maint.mk: avoid warnings about missing files
44152         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44153         diagnostic when .prev-version does not exist.
44154         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44155         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44156         nonexistent cfg.mk.
44157         Suggestions from Simon Josefsson.
44158
44159 2009-07-25  Bruno Haible  <bruno@clisp.org>
44160
44161         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44162         defined as macros. Needed on QNX 6.4.1.
44163         Reported by Matt Kraai <mkraai@beckman.com>.
44164
44165 2009-07-23  Jim Meyering  <meyering@redhat.com>
44166
44167         maint.mk: invoke "make dist" with a working value of XZ_OPT
44168         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44169
44170 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44171
44172         Make fseeko.c compile on QNX.
44173         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44174
44175 2009-07-22  Peter Simons  <simons@cryp.to>
44176
44177         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44178         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44179         * lib/md4.h: Likewise.
44180         * lib/md5.h: Likewise.
44181         * lib/sha1.h: Likewise.
44182         * lib/sha256.h: Likewise.
44183         * lib/sha512.h: Likewise.
44184
44185         tests-sha1: don't assign literal string to 'char *' variable
44186         * tests/test-sha1.c (main): Declare locals with "const" to match
44187         attributes of the right hand side.
44188
44189 2009-07-21  Eric Blake  <ebb9@byu.net>
44190
44191         dup2: fix more mingw problems
44192         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44193         fd to itself.
44194         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44195         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44196         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44197         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44198         care of mingw bugs.
44199
44200 2009-07-21  Jim Meyering  <meyering@redhat.com>
44201
44202         vc-list-files: avoid failure when /bin/sh is dash
44203         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44204         On some Debian based systems, /bin/sh is a symlink to dash, and running
44205         this command would omit the "/" following each 'tests' prefix:
44206           dash -x build-aux/vc-list-files -C . tests
44207         That is because bash and dash work differently:
44208           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44209           bash ok
44210           dash odd
44211
44212 2009-07-21  Eric Blake  <ebb9@byu.net>
44213
44214         dup2-tests: test previous patch
44215         * modules/dup2-tests: New file.
44216         * tests/test-dup2.c: Likewise.
44217         * tests/test-open.c (main): Avoid unspecified behavior.
44218         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44219         test.
44220
44221         dup2: work around mingw and cygwin 1.5 bug
44222         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44224         * modules/unistd (Makefile.am): Substitute it.
44225         * lib/unistd.in.h (dup2): Declare the replacement.
44226         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44227         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44228         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44229         * modules/execute (Depends-on): Add dup2.
44230         * modules/fseterr (Depends-on): Likewise.
44231         * modules/pipe (Depends-on): Likewise.
44232         * modules/posix_spawn-internal (Depends-on): Likewise.
44233
44234 2009-07-21  Bruno Haible  <bruno@clisp.org>
44235
44236         * modules/.gitattributes: New file.
44237
44238 2009-07-20  Bruno Haible  <bruno@clisp.org>
44239
44240         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44241         (main): Use it.
44242
44243 2009-07-20  Eric Blake  <ebb9@byu.net>
44244
44245         test-pipe: make a bit more robust.
44246         * tests/test-pipe.c (myerr): Allow error messages regardless of
44247         what we do to stderr.
44248         (test_pipe): Rearrange to avoid deadlock.
44249         (child_main): Try a larger read, to ensure we avoided deadlock.
44250         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44251         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44252         if misused.
44253
44254 2009-07-19  Jim Meyering  <meyering@redhat.com>
44255
44256         fts: avoid false-positive cycle-detection
44257         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44258         for each new command line argument.
44259
44260 2009-07-19  Bruno Haible  <bruno@clisp.org>
44261
44262         Fix build error on mingw with the modules sys_select and unistd.
44263         * modules/acl-tests (Depends-on): Add close.
44264         * modules/binary-io-tests (Depends-on): Likewise.
44265         * modules/closein-tests (Depends-on): Likewise.
44266         * modules/flock-tests (Depends-on): Likewise.
44267         * modules/fsync-tests (Depends-on): Likewise.
44268         * modules/lseek-tests (Depends-on): Likewise.
44269         * modules/pipe-tests (Depends-on): Likewise.
44270         * modules/posix_spawn-tests (Depends-on): Likewise.
44271         * modules/posix_spawnp-tests (Depends-on): Likewise.
44272         * modules/stat-time-tests (Depends-on): Likewise.
44273         * modules/yesno-tests (Depends-on): Likewise.
44274
44275 2009-07-19  Bruno Haible  <bruno@clisp.org>
44276
44277         Unify conditionals.
44278         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44279         macros, not at the compiler macros.
44280         * lib/pipe.c: Likewise.
44281         * lib/execute.c: Likewise.
44282         * lib/spawni.c: Likewise.
44283
44284 2009-07-19  Bruno Haible  <bruno@clisp.org>
44285
44286         Fix handling of closed stdin/stdout/stderr on mingw.
44287         * lib/w32spawn.h: Include unistd.h.
44288         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44289         file descriptor with O_NOINHERIT flag.
44290         (fd_safer_noinherit): New function, based on fd-safer.c.
44291         (dup_safer_noinherit): New function, based on dup-safer.c.
44292         (undup_safer_noinherit): New function.
44293         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
44294         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
44295         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
44296         instead of fd_safer.
44297         * tests/test-pipe.c: Include <windows.h>.
44298         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
44299         result.
44300
44301         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44302         from main.
44303         (test_pipe): Pass an extra argument for disambiguation.
44304         (main): Invoke parent_main or child_main.
44305
44306         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44307         consistently.
44308
44309 2009-07-18  Eric Blake  <ebb9@byu.net>
44310
44311         test-pipe: fix mingw build
44312         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44313
44314 2009-07-18  Bruno Haible  <bruno@clisp.org>
44315
44316         * modules/pipe-tests (Makefile.am): Fix typo.
44317
44318 2009-07-18  Eric Blake  <ebb9@byu.net>
44319
44320         error: fix mingw build
44321         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44322         Reported by Bruno Haible.
44323
44324         error: avoid undefined use of stdout
44325         * lib/error.c (error, error_at_line): Check that fd 1 is open
44326         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44327         is handling faults and the close_stdout module wants to report the
44328         detection of closed stdout as an error.
44329
44330 2009-07-17  Eric Blake  <ebb9@byu.net>
44331
44332         pipe: be robust in face of closed fds
44333         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44334         should cause child to misbehave.
44335         * modules/pipe-tests: New module.
44336         * tests/test-pipe.c: New file.
44337         * tests/test-pipe.sh: New file.
44338         Reported by Akim Demaille.
44339
44340 2009-07-14  Bruno Haible  <bruno@clisp.org>
44341
44342         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44343         Reported by anonymous kc.
44344
44345 2009-07-07  Jim Meyering  <meyering@redhat.com>
44346
44347         maint.mk: don't look for translatable strings in *.m4 or *.mk
44348         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44349         when searching for translatable strings.
44350
44351 2009-07-05  Jim Meyering  <meyering@redhat.com>
44352
44353         remove superfluous parentheses in STREQ definition
44354         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44355         * lib/getugroups.c (STREQ): Likewise.
44356         * lib/fnmatch.c (STREQ): Likewise.
44357         Spotted by Bruno Haible.
44358
44359 2009-07-04  Jim Meyering  <meyering@redhat.com>
44360
44361         argv-iter: new module
44362         * MODULES.html.sh: Add argv-iter.
44363         * lib/argv-iter.c, lib/argv-iter.h: New files.
44364         * modules/argv-iter: New file.
44365         * modules/argv-iter-tests: New file.
44366         * tests/test-argv-iter.c: Test it.
44367
44368 2009-07-04  Bruno Haible  <bruno@clisp.org>
44369
44370         Fix assertion.
44371         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
44372         contains more exact copies of a given entry than file2, leave the extra
44373         copies unpaired rather than aborting.
44374         Reported by Eric Blake.
44375
44376 2009-07-02  Bruno Haible  <bruno@clisp.org>
44377
44378         Speedup git-merge-changelog for git cherry-pick.
44379         * lib/git-merge-changelog.c (struct entries_mapping): New type.
44380         (entries_mapping_get): New function, extracted from compute_mapping.
44381         (entries_mapping_reverse_get): New function.
44382         (compute_mapping): Add a 'full' argument. Return the result in a
44383         'struct entries_mapping'.
44384         (main): Update. Access the mappings through entries_mapping_get.
44385         Reported by Eric Blake.
44386
44387 2009-07-02  Bruno Haible  <bruno@clisp.org>
44388
44389         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
44390         best_i.
44391
44392 2009-07-02  Bruno Haible  <bruno@clisp.org>
44393
44394         Speed up approximate search for matching ChangeLog entries.
44395         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
44396         argument. Call fstrcmp_bounded instead of fstrcmp.
44397         (compute_mapping, try_split_merged_entry, main): Update callers.
44398
44399 2009-07-02  Bruno Haible  <bruno@clisp.org>
44400
44401         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
44402
44403 2009-06-30  Bruno Haible  <bruno@clisp.org>
44404
44405         Reduce the number of uc_is_cased calls.
44406         * lib/unicase.h (casing_suffix_context_t): Add
44407         'first_char_except_ignorable' field.
44408         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
44409         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
44410         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
44411         Update initializer.
44412         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
44413         case-ignorable characters.
44414         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
44415         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
44416         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
44417         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
44418         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
44419
44420 2009-06-30  Bruno Haible  <bruno@clisp.org>
44421
44422         Tests for module 'unicase/ignorable'.
44423         * modules/unicase/ignorable-tests: New file.
44424         * tests/unicase/test-ignorable.c: New file, generated by
44425         gen-uni-tables.
44426
44427         Tests for module 'unicase/cased'.
44428         * modules/unicase/cased-tests: New file.
44429         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44430         * tests/unicase/test-predicate-part1.h: New file, derived from
44431         tests/unictype/test-predicate-part1.h.
44432         * tests/unicase/test-predicate-part2.h: New file, same as
44433         tests/unictype/test-predicate-part2.h.
44434
44435         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44436         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44437         (output_casing_properties): New function.
44438         (main): Call it.
44439         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44440         * lib/unicase/cased.c: Include unictype/bitmap.h.
44441         (uc_is_cased): Define through a bitmap lookup.
44442         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
44443         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
44444         (uc_is_case_ignorable): Define through a bitmap lookup.
44445         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
44446         lib/unictype/bitmap.h.
44447         (Depends-on): Add inline. Clean up.
44448         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
44449         lib/unictype/bitmap.h.
44450         (Depends-on): Add inline. Clean up.
44451         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
44452         recognition.
44453         * tests/unicase/test-u16-tolower.c (main): Likewise.
44454         * tests/unicase/test-u32-tolower.c (main): Likewise.
44455
44456 2009-06-30  Bruno Haible  <bruno@clisp.org>
44457
44458         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
44459         * lib/unicase/u16-casemap.c: Likewise.
44460         * lib/unicase/u32-casemap.c: Likewise.
44461
44462 2009-06-29  Bruno Haible  <bruno@clisp.org>
44463
44464         Define u32_casefold as a wrapper around u32_ct_casefold.
44465         * lib/unicase/u32-casefold.c: Update.
44466         * modules/unicase/u32-casefold (Depends-on): Add
44467         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44468         unicase/empty-suffix-context. Clean up.
44469
44470         Define u16_casefold as a wrapper around u16_ct_casefold.
44471         * lib/unicase/u16-casefold.c: Update.
44472         * modules/unicase/u16-casefold (Depends-on): Add
44473         unicase/u16-ct-casefold, unicase/empty-prefix-context,
44474         unicase/empty-suffix-context. Clean up.
44475
44476         Define u8_casefold as a wrapper around u8_ct_casefold.
44477         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
44478         * lib/unicase/u8-casefold.c: Update.
44479         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
44480         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44481
44482         Define u32_totitle as a wrapper around u32_ct_totitle.
44483         * lib/unicase/u32-totitle.c: Update.
44484         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
44485         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44486
44487         Define u16_totitle as a wrapper around u16_ct_totitle.
44488         * lib/unicase/u16-totitle.c: Update.
44489         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
44490         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44491
44492         Define u8_totitle as a wrapper around u8_ct_totitle.
44493         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
44494         functions.
44495         (FUNC): Delegate to U_CT_TOTITLE.
44496         * lib/unicase/u8-totitle.c: Update.
44497         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
44498         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44499
44500         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
44501         invocation.
44502         * modules/unicase/u32-tolower (Depends-on): Add
44503         unicase/empty-prefix-context, unicase/empty-suffix-context.
44504
44505         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
44506         invocation.
44507         * modules/unicase/u16-tolower (Depends-on): Add
44508         unicase/empty-prefix-context, unicase/empty-suffix-context.
44509
44510         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
44511         * modules/unicase/u8-tolower (Depends-on): Add
44512         unicase/empty-prefix-context, unicase/empty-suffix-context.
44513
44514         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
44515         invocation.
44516         * modules/unicase/u32-toupper (Depends-on): Add
44517         unicase/empty-prefix-context, unicase/empty-suffix-context.
44518
44519         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44520         invocation.
44521         * modules/unicase/u16-toupper (Depends-on): Add
44522         unicase/empty-prefix-context, unicase/empty-suffix-context.
44523
44524         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44525         * modules/unicase/u8-toupper (Depends-on): Add
44526         unicase/empty-prefix-context, unicase/empty-suffix-context.
44527
44528         New module 'unicase/u32-ct-casefold'.
44529         * lib/unicase/u32-ct-casefold.c: New file.
44530         * modules/unicase/u32-ct-casefold: New file.
44531
44532         New module 'unicase/u16-ct-casefold'.
44533         * lib/unicase/u16-ct-casefold.c: New file.
44534         * modules/unicase/u16-ct-casefold: New file.
44535
44536         New module 'unicase/u8-ct-casefold'.
44537         * lib/unicase/u8-ct-casefold.c: New file.
44538         * lib/unicase/u-ct-casefold.h: New file, derived from
44539         lib/unicase/u-casefold.h.
44540         * modules/unicase/u8-ct-casefold: New file.
44541
44542         New module 'unicase/u32-ct-totitle'.
44543         * lib/unicase/u32-ct-totitle.c: New file.
44544         * modules/unicase/u32-ct-totitle: New file.
44545
44546         New module 'unicase/u16-ct-totitle'.
44547         * lib/unicase/u16-ct-totitle.c: New file.
44548         * modules/unicase/u16-ct-totitle: New file.
44549
44550         New module 'unicase/u8-ct-totitle'.
44551         * lib/unicase/u8-ct-totitle.c: New file.
44552         * lib/unicase/u-ct-totitle.h: New file, derived from
44553         lib/unicase/u-totitle.h.
44554         * modules/unicase/u8-ct-totitle: New file.
44555
44556         New module 'unicase/u32-ct-tolower'.
44557         * lib/unicase/u32-ct-tolower.c: New file.
44558         * modules/unicase/u32-ct-tolower: New file.
44559
44560         New module 'unicase/u16-ct-tolower'.
44561         * lib/unicase/u16-ct-tolower.c: New file.
44562         * modules/unicase/u16-ct-tolower: New file.
44563
44564         New module 'unicase/u8-ct-tolower'.
44565         * lib/unicase/u8-ct-tolower.c: New file.
44566         * modules/unicase/u8-ct-tolower: New file.
44567
44568         New module 'unicase/u32-ct-toupper'.
44569         * lib/unicase/u32-ct-toupper.c: New file.
44570         * modules/unicase/u32-ct-toupper: New file.
44571
44572         New module 'unicase/u16-ct-toupper'.
44573         * lib/unicase/u16-ct-toupper.c: New file.
44574         * modules/unicase/u16-ct-toupper: New file.
44575
44576         New module 'unicase/u8-ct-toupper'.
44577         * lib/unicase/u8-ct-toupper.c: New file.
44578         * modules/unicase/u8-ct-toupper: New file.
44579
44580         Add context arguments to u*_casemap functions.
44581         * lib/unicase/unicasemap.h: Include unicase.h.
44582         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44583         suffix_context arguments.
44584         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44585         functions.
44586         (FUNC): Add prefix_context and suffix_context arguments. Use
44587         uc_is_cased and uc_is_case_ignorable.
44588         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44589         * lib/unicase/u16-casemap.c: Likewise.
44590         * lib/unicase/u32-casemap.c: Likewise.
44591         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44592         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44593         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44594         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44595         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44596         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44597
44598         New module 'unicase/u32-suffix-context'.
44599         * lib/unicase/u32-suffix-context.c: New file.
44600         * modules/unicase/u32-suffix-context: New file.
44601
44602         New module 'unicase/u16-suffix-context'.
44603         * lib/unicase/u16-suffix-context.c: New file.
44604         * modules/unicase/u16-suffix-context: New file.
44605
44606         New module 'unicase/u8-suffix-context'.
44607         * lib/unicase/u8-suffix-context.c: New file.
44608         * lib/unicase/u-suffix-context.h: New file.
44609         * modules/unicase/u8-suffix-context: New file.
44610
44611         New module 'unicase/empty-suffix-context'.
44612         * lib/unicase/empty-suffix-context.c: New file.
44613         * modules/unicase/empty-suffix-context: New file.
44614
44615         New module 'unicase/u32-prefix-context'.
44616         * lib/unicase/u32-prefix-context.c: New file.
44617         * modules/unicase/u32-prefix-context: New file.
44618
44619         New module 'unicase/u16-prefix-context'.
44620         * lib/unicase/u16-prefix-context.c: New file.
44621         * modules/unicase/u16-prefix-context: New file.
44622
44623         New module 'unicase/u8-prefix-context'.
44624         * lib/unicase/u8-prefix-context.c: New file.
44625         * lib/unicase/u-prefix-context.h: New file.
44626         * lib/unicase/context.h: New file.
44627         * modules/unicase/u8-prefix-context: New file.
44628
44629         New module 'unicase/empty-prefix-context'.
44630         * lib/unicase/empty-prefix-context.c: New file.
44631         * modules/unicase/empty-prefix-context: New file.
44632
44633         New module 'unicase/ignorable'.
44634         * lib/unicase/ignorable.c: New file.
44635         * modules/unicase/ignorable: New file.
44636
44637         New module 'unicase/cased'.
44638         * lib/unicase/caseprop.h: New file.
44639         * lib/unicase/cased.c: New file.
44640         * modules/unicase/cased: New file.
44641
44642         New functions for case mapping of substrings.
44643         * lib/unicase.h (casing_prefix_context_t): New type.
44644         (unicase_empty_prefix_context): New variable.
44645         (u8_casing_prefix_context, u16_casing_prefix_context,
44646         u32_casing_prefix_context, u8_casing_prefixes_context,
44647         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44648         declarations.
44649         (casing_suffix_context_t): New type.
44650         (unicase_empty_suffix_context): New variable.
44651         (u8_casing_suffix_context, u16_casing_suffix_context,
44652         u32_casing_suffix_context, u8_casing_suffixes_context,
44653         u16_casing_suffixes_context, u32_casing_suffixes_context,
44654         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44655         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44656         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44657         declarations.
44658
44659 2009-06-28  Jim Meyering  <meyering@redhat.com>
44660
44661         boostrap: indent only with spaces
44662         * build-aux/bootstrap: Indent only with spaces, never TABs.
44663
44664         bootstrap: split long lines
44665         * build-aux/bootstrap: Keep line length < 80.
44666
44667         bootstrap: sync from coreutils
44668         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44669         just as autoreconf does.  Verify a list of prerequisite
44670         package-name,version-number pairs if defined in bootstrap.conf.
44671         Refer to README-prereq, if prerequisites are not satisfied.
44672
44673 2009-06-27  Eric Blake  <ebb9@byu.net>
44674
44675         tests: add test for bogus NULL definition
44676         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44677         * tests/test-stdlib.c: Likewise.
44678         * tests/test-string.c: Likewise.
44679         * tests/test-locale.c: Likewise.
44680         * tests/test-unistd.c: Likewise.
44681         * modules/stdio-tests (Depends-on): Add verify.
44682         * modules/stdlib-tests (Depends-on): Likewise.
44683         * modules/string-tests (Depends-on): Likewise.
44684         * modules/locale-tests (Depends-on): Likewise.
44685         * modules/unistd-tests (Depends-on): Likewise.
44686
44687 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44688
44689         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44690         self-explaining comment.
44691         * m4/selinux-selinux-h: Update serial.
44692         (gl_LIBSELINUX): New macro, adding a warning for missing development
44693         packages to code extracted from...
44694         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44695         Add warning for missing development packages here, too.
44696
44697 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44698
44699         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44700
44701 2009-06-25  Eric Blake  <ebb9@byu.net>
44702
44703         version-etc: fix regression
44704         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44705         gcc.
44706         (version_etc): Use it, to catch bugs with trailing NULL.
44707         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44708         (version_etc_va): Fix logic bug.
44709         * modules/version-etc-tests: Add test.
44710         * tests/test-version-etc.c: New file.
44711         * tests/test-version-etc.sh: Likewise.
44712
44713 2009-06-25  Sam Steingold  <sds@gnu.org>
44714
44715         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44716         mbtowc declaration.
44717
44718 2009-06-25  Eric Blake  <ebb9@byu.net>
44719
44720         fpurge: migrate into <stdio.h>
44721         * lib/fpurge.h: Delete...
44722         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44723         * lib/fpurge.c (fpurge): Change declaring header.
44724         * modules/fpurge (Files): Drop deleted file.
44725         (Depends-on): Add stdio.
44726         (configure.ac): Set witness.
44727         * modules/stdio (Makefile.am): Support fpurge macros.
44728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44729         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44730         * lib/fflush.c: Update client.
44731         * tests/test-fpurge.c: Likewise.
44732         * NEWS: Mention the change.
44733
44734 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44735
44736         * lib/argp-version-etc.c (program_authors): Add const
44737         qualifier.
44738         * lib/version-etc.c: Fix typos in the comments.
44739         * modules/argp-version-etc: Depends on version-etc.
44740
44741 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44742
44743         argp-version-etc: new module.
44744
44745         * lib/argp-version-etc.c: New file.
44746         * lib/argp-version-etc.h: New file.
44747         * modules/argp-version-etc: New file.
44748         * modules/argp-version-etc-tests: New file.
44749         * tests/test-argp-version-etc.c: New test.
44750         * tests/test-argp-version-etc-1.sh: New test.
44751
44752 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44753
44754         Provide additional interfaces and documentation for version-etc
44755         module.
44756
44757         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44758         interfaces.
44759         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44760         prototypes.
44761
44762 2009-06-24  Bruno Haible  <bruno@clisp.org>
44763
44764         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44765         HAVE_LIB${NAME} macro.
44766         Reported by Sam Steingold <sds@gnu.org>.
44767
44768 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44769
44770         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44771         needed.
44772
44773 2009-06-21  Bruno Haible  <bruno@clisp.org>
44774
44775         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44776         work.
44777         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44778         together with LIB${NAME}, LTLIB${NAME}.
44779         Reported by Sam Steingold <sds@gnu.org>.
44780
44781 2009-06-20  Jim Meyering  <meyering@redhat.com>
44782
44783         tests: make sc_require_test_exit_idiom more generic
44784         * top/maint.mk (Exit_witness_file): New overridable variable.
44785         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44786         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44787
44788 2009-06-19  Jim Meyering  <meyering@redhat.com>
44789
44790         hash: reverse order of src/dst parameters in an internal interface
44791         * lib/hash.c (transfer_entries): Reverse order of parameters to
44792         put DST before SRC.  Adjust callers.
44793
44794         tests: test-hash: avoid wholesale duplication
44795         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44796         Instead, use a loop and add a single conditional.
44797
44798         tests: test-hash: allow seed selection via a command line argument
44799         * tests/test-hash.c (get_seed): New function.
44800         (main): Use it.
44801
44802 2009-06-19  Eric Blake  <ebb9@byu.net>
44803
44804         hash: avoid memory leak on allocation failure
44805         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44806         failure.  Factor repeated algorithm...
44807         (transfer_entries): ...into new helper routine.
44808         (hash_delete): React to hash_rehash return value.
44809
44810         hash: reduce memory pressure in hash_rehash no-op case
44811         * lib/hash.c (next_prime): Avoid overflow.
44812         (hash_initialize): Factor bucket size computation...
44813         (compute_bucket_size): ...into new helper function.
44814         (hash_rehash): Use new function and open coding to reduce memory
44815         pressure, and avoid a memory leak in USE_OBSTACK code.
44816         Reported by Jim Meyering.
44817
44818 2009-06-18  Eric Blake  <ebb9@byu.net>
44819
44820         hash: make rotation more obvious
44821         * modules/hash (Depends-on): Add bitrotate and stdint.
44822         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44823         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44824         (SIZE_MAX): Rely on headers for definition.
44825         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44826         (raw_hasher): Use rotr_sz.
44827         Suggested by Jim Meyering.
44828
44829         hash: fix memory leak in last patch
44830         * lib/hash.c (hash_rehash): Avoid memory leak.
44831
44832         hash: avoid no-op rehashing
44833         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44834
44835         hash: provide default callback functions
44836         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44837         (hash_initialize): Use them as defaults.
44838         * tests/test-hash.c (main): Test this.
44839
44840         hash: minor optimization
44841         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44842         when possible.
44843         (hash_initialize): Document this promise.
44844         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44845         * tests/test-hash.c (hash_compare_strings): Test this.
44846
44847 2009-06-18  Bruno Haible  <bruno@clisp.org>
44848
44849         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44850         going to be replaced anyway.
44851
44852 2009-06-18  Bruno Haible  <bruno@clisp.org>
44853
44854         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44855         in one place.
44856         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44857         be replaced anyway.
44858
44859 2009-06-18  Eric Blake  <ebb9@byu.net>
44860
44861         hash: check for resize before insertion
44862         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44863         threshold before insertion, so that a pathological hash_rehash
44864         that fills every bucket can still trigger another rehash.
44865
44866 2009-06-18  Jim Meyering  <meyering@redhat.com>
44867
44868         hash-tests: add a loop around the small tests
44869         * tests/test-hash.c (main): Repeat small tests with selected
44870         small initial table sizes.
44871
44872 2009-06-17  Eric Blake  <ebb9@byu.net>
44873
44874         hash: minor cleanups
44875         * lib/hash.h (hash_entry): Make opaque, by moving...
44876         * lib/hash.c (hash_entry): ...here.
44877         (hash_insert): Clarify restrictions on what can be inserted.
44878         (hash_get_next): Clarify when it is safe to remove an element
44879         during traversal.
44880         (check_tuning): Skip verification when tuning is known safe.
44881         (hash_initialize): Clarify restrictions on tuning.
44882
44883 2009-06-17  Jim Meyering  <jim@meyering.net>
44884         and Eric Blake  <ebb9@byu.net>
44885
44886         hash-tests: new module
44887         * modules/hash-tests: New file.
44888         * tests/test-hash.c: New file.
44889
44890 2009-06-17  Eric Blake  <ebb9@byu.net>
44891
44892         strstr-simple: document new module
44893         * MODULES.html.sh: Document new module.
44894
44895         strstr, strcasestr: replace on platforms with broken memchr
44896         * modules/strstr: Split into...
44897         * modules/strstr-simple: ...new module that does not care about
44898         performance, but does care about glibc bug.
44899         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44900         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44901         if platform memchr is broken, per Debian bug 521737.
44902         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44903         memchr.
44904         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44905         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44906         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44907         * modules/mountlist (Depends-on): Add strstr-simple.
44908         * modules/gen-uni-tables (Depends-on): Likewise.
44909         * modules/argz (Depends-on): Add strstr.
44910
44911 2009-06-17  Bruno Haible  <bruno@clisp.org>
44912
44913         * modules/posix_spawn-internal (Depends-on): Add errno.
44914
44915 2009-06-17  Bruno Haible  <bruno@clisp.org>
44916
44917         Define missing ESTALE on Interix 3.5.
44918         * lib/errno.in.h (ESTALE): Assign a value if missing.
44919         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44920         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44921         missing.
44922         * doc/posix-headers/errno.texi: Mention the Interix bug.
44923         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44924
44925 2009-06-15  Eric Blake  <ebb9@byu.net>
44926
44927         memchr, memchr2: add valgrind exception
44928         * lib/memchr.valgrind: New file.
44929         * lib/memchr2.valgrind: New file.
44930         * modules/memchr (Files): Distribute valgrind file.
44931         * modules/memchr2 (Files): Likewise.
44932
44933         docs: memchr is no longer obsolete
44934         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44935         * lib/string.in.h (memchr): Simplify logic.
44936
44937 2009-06-14  Jim Meyering  <meyering@redhat.com>
44938
44939         link-follow: fix the "checking..." message to not mention trailing slash
44940         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44941         never considered trailing slashes.
44942
44943 2009-06-14  Bruno Haible  <bruno@clisp.org>
44944
44945         * m4/memchr.m4: Mention also the bug on IA-64.
44946         * doc/posix-functions/memchr.texi: Likewise.
44947
44948 2009-06-12  Eric Blake  <ebb9@byu.net>
44949
44950         memchr: detect broken x86_64 and alpha implementations
44951         * modules/memchr-tests (Depends-on): Move mmap detection...
44952         * modules/memchr (Depends-on): ...here.
44953         (configure.ac): Set indicator.
44954         * lib/string.in.h (memchr): Declare replacement.
44955         * modules/string (Makefile.am): Trigger replacement.
44956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44957         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44958         bugs.
44959         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44960         * modules/getpagesize (License): Relax license.
44961
44962 2009-06-11  Bruno Haible  <bruno@clisp.org>
44963
44964         * lib/idpriv.h: Add more references.
44965
44966 2009-06-08  Bruno Haible  <bruno@clisp.org>
44967
44968         Tests for module 'idpriv-droptemp'.
44969         * modules/idpriv-droptemp-tests: New file.
44970         * tests/test-idpriv-droptemp.sh: New file.
44971         * tests/test-idpriv-droptemp.su.sh: New file.
44972         * tests/test-idpriv-droptemp.c: New file.
44973
44974         New module 'idpriv-droptemp'.
44975         * lib/idpriv-droptemp.c: New file.
44976         * modules/idpriv-droptemp: New file.
44977
44978 2009-06-08  Bruno Haible  <bruno@clisp.org>
44979
44980         Tests for module 'idpriv-drop'.
44981         * modules/idpriv-drop-tests: New file.
44982         * tests/test-idpriv-drop.sh: New file.
44983         * tests/test-idpriv-drop.su.sh: New file.
44984         * tests/test-idpriv-drop.c: New file.
44985
44986         New module 'idpriv-drop'.
44987         * lib/idpriv.h: New file.
44988         * lib-idpriv-drop.c: New file.
44989         * m4/idpriv.m4: New file.
44990         * modules/idpriv-drop: New file.
44991
44992 2009-06-08  Bruno Haible  <bruno@clisp.org>
44993
44994         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44995         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44996         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44997         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44998         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44999         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45000         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45001
45002 2009-06-08  Eric Blake  <ebb9@byu.net>
45003
45004         test-strstr: use memory fence, when possible
45005         * tests/test-strstr.c (main): Use memory fence, in order to be
45006         more likely to trigger Debian bug 521737.
45007         * modules/strstr-tests (Files): Pull in additional files.
45008
45009         memchr: no longer obsolete, for wider field testing
45010         * modules/memchr (Status, Notice): Delete, this module is no
45011         longer obsolete.
45012         * modules/vasnprintf (Depends-on): Add memchr.
45013
45014 2009-06-07  Jim Meyering  <meyering@redhat.com>
45015
45016         hash: declare some functions with the warn_unused_result attribute
45017         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
45018
45019 2009-06-07  Bruno Haible  <bruno@clisp.org>
45020
45021         * tests/test-alignof.c: Don't test int64_t if it does not exist.
45022         Reported by Eric Blake.
45023
45024 2009-06-06  Eric Blake  <ebb9@byu.net>
45025
45026         test-alignof: fix typo with long double
45027         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
45028         compiler error.
45029
45030 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
45031
45032         Escape non-texinfo { and }s.
45033         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
45034         markup error.
45035
45036 2009-06-04  Jim Meyering  <meyering@redhat.com>
45037
45038         gitlog-to-changelog: don't infloop on an empty commit log
45039         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45040         Reported by Boris Petersen <transacid@centerim.org>.
45041
45042 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45043
45044         version-etc: extend for packagers
45045         Add three new configure options, intended for packagers:
45046           --with-packager="packager name"
45047           --with-packager-version="packager-specific version"
45048           --with-packager-bug-reports="packager bug reporting"
45049         An example with coreutils:
45050           $ ./configure \
45051             --with-packager=Gentoo \
45052             --with-packager-bug-report=http://bugs.gentoo.org/ \
45053             --with-packager-version="patchset 1.6"
45054           $ ./src/ls --version | head -n2
45055           ls (GNU coreutils) 7.1-dirty
45056           Packaged by Gentoo (patchset 1.6)
45057         Note that the bug reporting info via --help doesn't show up because
45058         coreutils uses its own custom emit_bug_reporting_address() implementation
45059         in src/system.h.  If it didn't, it'd look like:
45060           $ ./src/ls --help | tail -n4
45061           Report bugs to <bug-coreutils@gnu.org>.
45062           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45063           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45064           General help using GNU software: <http://www.gnu.org/gethelp/>.
45065         * lib/version-etc.c: Print new information, if provided.
45066         * m4/version-etc.m4: New file.
45067         * modules/version-etc (Files): Add m4/version-etc.m4.
45068         (configure.ac): Add gl_VERSION_ETC.
45069
45070 2009-05-31  Bruno Haible  <bruno@clisp.org>
45071
45072         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45073         and 'int64_t'.
45074         * modules/alignof-tests (Dependencies): Add stdint.
45075         Reported by Eric Blake.
45076
45077 2009-05-31  Bruno Haible  <bruno@clisp.org>
45078
45079         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45080         restriction due to compiler bugs.
45081         Reported by Eric Blake.
45082
45083 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45084             Bruno Haible  <bruno@clisp.org>
45085
45086         Fix test-alignof failure.
45087         * lib/alignof.h (alignof_slot): New macro.
45088         (alignof_type): New macro, with the same semantics as the previous
45089         'alignof'.
45090         (alignof): Alias to alignof_slot.
45091         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45092         check that the results are usable as constant expressions.
45093
45094 2009-05-31  Bruno Haible  <bruno@clisp.org>
45095
45096         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45097         * tests/test-memchr.c (main): Check that memchr does not read past the
45098         first occurrence of the byte.
45099         * tests/test-strstr.c (main): Update comment.
45100         Suggested by Eric Blake.
45101
45102 2009-05-30  Bruno Haible  <bruno@clisp.org>
45103
45104         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45105         detail how to use dumpbin.
45106         Reported by David Byron <dbyron@dbyron.com>.
45107
45108 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45109
45110         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45111
45112 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45113
45114         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45115
45116 2009-05-28  Bruno Haible  <bruno@clisp.org>
45117
45118         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45119         build-aux/ files.
45120
45121 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45122
45123         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45124
45125 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45126
45127         * gnulib-tool (sed_transform_main_lib_file)
45128         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45129         regexps.
45130
45131 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45132
45133         * tests/test-strstr.c: Add another self-test.
45134         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45135         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45136
45137 2009-05-23  Bruno Haible  <bruno@clisp.org>
45138
45139         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45140         change.
45141
45142 2009-05-21  Bruno Haible  <bruno@clisp.org>
45143
45144         Simplify use of mode_t varargs.
45145         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45146         uses 'mode_t' or 'int'.
45147         * lib/openat.c (openat): Likewise.
45148         * lib/open-safer.c (open_safer): Likewise.
45149         * m4/mode_t.m4: New file.
45150         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45151         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45152         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45153         * modules/open (Files): Add m4/mode_t.m4.
45154         * modules/openat (Files): Likewise.
45155         * modules/fcntl-safer (Files): Likewise.
45156         Suggested by Eric Blake.
45157
45158 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45159
45160         * doc/glibc-functions/fallocate.texi: New file.
45161         * doc/gnulib.texi: Include it.
45162
45163 2009-05-21  Eric Blake  <ebb9@byu.net>
45164             Bruno Haible  <bruno@clisp.org>
45165
45166         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45167         invocations.
45168         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45169
45170 2009-05-21  Eric Blake  <ebb9@byu.net>
45171             Bruno Haible  <bruno@clisp.org>
45172
45173         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45174         include_next. Fix of 2008-11-20 commit.
45175         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45176         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45177         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45178         NEXT_MATH_H.
45179         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45180         instead of NEXT_MATH_H.
45181
45182 2009-05-21  Bruno Haible  <bruno@clisp.org>
45183
45184         Avoid redefinition warnings for SIZE_MAX.
45185         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45186         Reported by Simon Josefsson.
45187
45188 2009-05-21  Bruno Haible  <bruno@clisp.org>
45189
45190         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45191         AC_CACHE_VAL.
45192
45193 2009-05-20  Bruno Haible  <bruno@clisp.org>
45194
45195         Make zeroptr.h work on mingw.
45196         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45197         mprotect.
45198         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45199         * modules/memchr2-tests (configure.ac): Likewise.
45200         * modules/memcmp-tests (configure.ac): Likewise.
45201         * modules/memmem-tests (configure.ac): Likewise.
45202         * modules/memrchr-tests (configure.ac): Likewise.
45203         Reported by Simon Josefsson.
45204
45205 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45206
45207         * tests/test-glob.c: Include string.h for strcmp prototype.
45208
45209 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45210
45211         * modules/getdelim (Depends-on): Add explicit stdint, although it
45212         was implicitly already pulled in via realloc-posix.
45213         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45214
45215 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45216
45217         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45218         G. Christensen" <tgc@jupiterrise.com>.
45219         * m4/sys_socket_h.m4: Check for sa_family_t.
45220         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45221         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45222         * tests/test-sys_socket.c: Check that sa_family_t works.
45223
45224 2009-05-18  Eric Blake  <ebb9@byu.net>
45225
45226         maint.mk: allow gnulib_dir in VPATH build
45227         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45228
45229 2009-05-15  Jim Meyering  <meyering@redhat.com>
45230
45231         maint.mk: Give gnulib_dir a default definition.
45232         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45233         Thus, most packages no longer need to specify this variable in cfg.mk
45234
45235 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45236
45237         rename.m4: fix typos that would make non-mingw cross-configure fail
45238         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45239
45240 2009-05-13  Eric Blake  <ebb9@byu.net>
45241
45242         mmap-anon: avoid out-of-order autoconf expansion
45243         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45244         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45245         * modules/memchr-tests (Depends-on): Add extensions.
45246         * modules/memchr2-tests (Depends-on): Add extensions.
45247         * modules/memcmp-tests (Depends-on): Add extensions.
45248         * modules/memmem-tests (Depends-on): Add extensions.
45249         * modules/memrchr-tests (Depends-on): Add extensions.
45250
45251 2009-05-13  Bruno Haible  <bruno@clisp.org>
45252
45253         Make some tests ISO C 99 compliant.
45254         * tests/zerosize-ptr.h: New file.
45255         * tests/test-memchr.c: Include zerosize-ptr.h.
45256         (main): Use a zero-size object pointer instead of NULL.
45257         * tests/test-memchr2.c: Include zerosize-ptr.h.
45258         (main): Use a zero-size object pointer instead of NULL.
45259         * tests/test-memcmp.c: Include zerosize-ptr.h.
45260         (main): Use a zero-size object pointer instead of NULL.
45261         * tests/test-memmem.c: Include zerosize-ptr.h.
45262         (main): Use a zero-size object pointer instead of NULL.
45263         * tests/test-memrchr.c: Include zerosize-ptr.h.
45264         (main): Use a zero-size object pointer instead of NULL.
45265         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
45266         m4/mmap-anon.m4.
45267         (Depends-on): Add getpagesize.
45268         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45269         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
45270         m4/mmap-anon.m4.
45271         (Depends-on): Add getpagesize.
45272         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45273         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
45274         m4/mmap-anon.m4.
45275         (Depends-on): Add getpagesize.
45276         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45277         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45278         m4/mmap-anon.m4.
45279         (Depends-on): Add getpagesize.
45280         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45281         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45282         m4/mmap-anon.m4.
45283         (Depends-on): Add getpagesize.
45284         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45285
45286 2009-05-12  Bruno Haible  <bruno@clisp.org>
45287
45288         Tests for module 'alignof'.
45289         * modules/alignof-tests: New file.
45290         * tests/test-alignof.c: New file.
45291
45292 2009-05-12  Bruno Haible  <bruno@clisp.org>
45293
45294         Fix alignof macro.
45295         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
45296         vendor compilers that are always correct.
45297
45298 2009-05-12  Bruno Haible  <bruno@clisp.org>
45299
45300         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45301         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45302         not whether its fully works.
45303
45304 2009-05-12  Bruno Haible  <bruno@clisp.org>
45305
45306         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45307
45308 2009-05-12  Jim Meyering  <meyering@redhat.com>
45309
45310         * top/maint.mk: Adjust backslash alignment.
45311
45312 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45313
45314         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45315
45316 2009-05-11  Eric Blake  <ebb9@byu.net>
45317
45318         argp: avoid undefined behavior
45319         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45320         macros.
45321
45322 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45323
45324         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45325         user.name to prevent git commit from complaining.
45326
45327 2009-05-10  Bruno Haible  <bruno@clisp.org>
45328
45329         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45330         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45331         it rewrites every file name only once.
45332         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45333
45334 2009-05-08  Bruno Haible  <bruno@clisp.org>
45335
45336         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45337         instead of 'max'.
45338
45339 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45340
45341         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45342         sockaddr_storage test.
45343
45344 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45345
45346         * modules/sys_socket (Makefile.am): Substitute
45347         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45348         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45349         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45350         * tests/test-sys_socket.c: Check sockaddr_storage.
45351
45352 2009-05-08  Bruno Haible  <bruno@clisp.org>
45353
45354         New module 'alignof'.
45355         * lib/alignof.h: New file.
45356         * modules/alignof: New file.
45357
45358 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45359             Bruno Haible  <bruno@clisp.org>
45360
45361         Fix test-file-has-acl on FreeBSD.
45362         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45363         mask is implicitly added.
45364         * tests/test-file-has-acl.c: Include <signal.h>.
45365         (main): Terminate the test after 5 seconds.
45366         * modules/acl-tests (configure.ac): Check for alarm function.
45367
45368 2009-05-04  Bruno Haible  <bruno@clisp.org>
45369
45370         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
45371         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
45372         * modules/errno (configure.ac): Drop AC_REQUIRE.
45373         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
45374         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
45375
45376 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45377
45378         * modules/glob-tests: New module.
45379         * tests/test-glob.c: Add.
45380
45381 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45382
45383         * modules/fnmatch-tests: New module.
45384         * tests/test-fnmatch.c: Add.
45385
45386 2009-05-04  Eric Blake  <ebb9@byu.net>
45387
45388         maint: make the new no-submodule-changes rule VPATH-safe
45389         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
45390
45391 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45392             Bruno Haible  <bruno@clisp.org>
45393
45394         acl: Fix infinite loop on FreeBSD.
45395         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
45396         of return value from acl_get_entry.
45397         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
45398         Likewise.
45399
45400 2009-05-03  Bruno Haible  <bruno@clisp.org>
45401
45402         * lib/acl-internal.h (acl_entries): Clarify return value.
45403         * lib/acl_entries.c (acl_entries): Likewise.
45404
45405 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45406
45407         Bug fix in acl module.
45408         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
45409
45410 2009-05-03  Bruno Haible  <bruno@clisp.org>
45411
45412         Create gperf-generated file in the source dir, not in the build dir.
45413         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
45414         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
45415         * modules/unicase/locale-language (unicase/locale-languages.h):
45416         Likewise.
45417         * modules/unicase/special-casing (unicase/special-casing-table.h):
45418         Likewise.
45419         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45420         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45421         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45422         Reported by Ralf Wildenhues.
45423
45424 2009-05-03  Bruno Haible  <bruno@clisp.org>
45425
45426         * modules/fnmatch (Description, configure.ac): Taken from
45427         fnmatch-posix.
45428         * modules/fnmatch-posix: Turn into a symbolic reference to the
45429         'fnmatch' module, and deprecate.
45430         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45431
45432 2009-05-03  Bruno Haible  <bruno@clisp.org>
45433
45434         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45435         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45436         Reported by Ralf Wildenhues.
45437
45438 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45439
45440         * m4/fnmatch.m4: Fix fnmatch re-define.
45441
45442 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45443
45444         priv-set: new module and tests; adapt write-any-file
45445         * lib/priv-set.c: New file.
45446         * lib/priv-set.h: New file.
45447         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
45448         * lib/write-any-file.c: Simplify by using priv-set module.
45449         * m4/priv-set.m4: New file.
45450         * modules/priv-set: New file.
45451         * modules/unlinkdir: Add dependency on priv-set module.
45452         * modules/write-any-file: Likewise.
45453
45454         Tests for module 'priv-set'.
45455         * modules/priv-set-tests: New file.
45456         * tests/test-priv-set.c: New file.
45457
45458 2009-05-03  Jim Meyering  <meyering@redhat.com>
45459             Bruno Haible  <bruno@clisp.org>
45460
45461         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45462         use the converted UTF-8 variant of the name instead.
45463
45464 2009-05-03  Jim Meyering  <meyering@redhat.com>
45465
45466         tests: tighten some getdate tests
45467         * tests/test-getdate.c (main): Tighten tests: require equality,
45468         not just greater than.  Set TZ envvar to UTC0.
45469
45470 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45471
45472         getdate: correctly interpret "next monday" when run on a Monday
45473         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
45474         that e.g., "next tues" (when run on a tuesday) results in a date
45475         that is one week in the future, and not today's date.
45476         I.e., add a week when the wday is the same as the current one.
45477         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
45478         and earlier by Martin Bernreuther and Jan Minář.
45479         * tests/test-getdate.c (main): Check that "next DAY" is always in
45480         the future and that "last DAY" is always in the past.
45481
45482 2009-05-02  Jim Meyering  <meyering@redhat.com>
45483
45484         build: ensure that a release build fails when a submodule is unclean
45485         * top/maint.mk (no-submodule-changes): New rule.
45486         (alpha beta major): Depend on it.
45487
45488 2009-05-02  Bruno Haible  <bruno@clisp.org>
45489
45490         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
45491         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
45492         shell variable gl_fnmatch_required to detect which variant is
45493         requested.
45494         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
45495         gl_FUNC_FNMATCH_POSIX.
45496         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
45497         exclude fnmatch-posix.
45498
45499 2009-05-02  Bruno Haible  <bruno@clisp.org>
45500
45501         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
45502         * modules/mbsrtowcs (License): Change to LGPLv2+.
45503         * modules/strnlen1 (License): Likewise.
45504         Reported by Simon Josefsson.
45505
45506 2009-05-02  Bruno Haible  <bruno@clisp.org>
45507
45508         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
45509         "cross".
45510         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
45511         gnulib-tool was called with option --source-base=lib.
45512
45513 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45514
45515         Use automake *-local hooks without commands, for extensibility.
45516         * modules/localcharset (Makefile.am): Rename install-exec-local
45517         rule to install-exec-localcharset, and make it a prerequisite of
45518         install-exec-local.  Likewise, rename the uninstall-local rule to
45519         uninstall-localcharset, and make it a prerequisite of the former.
45520
45521 2009-05-01  Bruno Haible  <bruno@clisp.org>
45522
45523         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45524         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45525         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45526         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45527         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45528         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45529         m4/locale-zh.m4, m4/codeset.m4.
45530
45531         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45532         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45533         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45534         m4/locale-zh.m4.
45535
45536         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45537         REPLACE_WCRTOMB if mbstate_t must be replaced.
45538         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45539         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45540
45541 2009-05-01  Bruno Haible  <bruno@clisp.org>
45542
45543         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45544         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45545         dngettext, dcngettext, textdomain, bindtextdomain,
45546         bind_textdomain_codeset): Undefine before redefining.
45547
45548 2009-04-30  Bruno Haible  <bruno@clisp.org>
45549
45550         Fix bug introduced on 2009-04-25.
45551         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45552         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45553         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45554         is defined.
45555         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45556         is defined.
45557         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45558         is defined.
45559         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45560
45561 2009-04-28  Bruno Haible  <bruno@clisp.org>
45562
45563         Comment tweaks.
45564         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45565         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45566         * lib/unicase.h (u*_casexfrm): Likewise.
45567         Reported by Paolo Bonzini.
45568
45569 2009-04-28  Bruno Haible  <bruno@clisp.org>
45570
45571         Fix a compilation error.
45572         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45573         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45574         Reported by Jim Meyering.
45575
45576 2009-04-27  Bruno Haible  <bruno@clisp.org>
45577
45578         New module 'libunistring'.
45579         * modules/libunistring: New file.
45580         * m4/libunistring.m4: New file.
45581         * MODULES.html.sh (Unicode string functions): Add it.
45582
45583 2009-04-27  Eric Blake  <ebb9@byu.net>
45584
45585         maint.mk: allow package-specific header to provide <config.h>
45586         * top/maint.mk (sc_require_config_h): New variable.
45587         (sc_require_config_h, sc_require_config_h_first): Use it.
45588
45589 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45590
45591         * top/maint.mk (sc_avoid_if_before_free): Except
45592         useless-if-before-free script.
45593
45594 2009-04-27  Eric Blake  <ebb9@byu.net>
45595
45596         maintainer-makefile: depend on all required helper scripts
45597         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45598         useless-if-before-free.
45599         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45600         version, rather than assuming gnulib checkout is available.
45601         Reported by Simen Josefsson.
45602
45603 2009-04-26  Bruno Haible  <bruno@clisp.org>
45604
45605         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45606         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45607         "../" or "..".
45608
45609 2009-04-26  Bruno Haible  <bruno@clisp.org>
45610
45611         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45612         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45613         AC_LIB_HAVE_LINKFLAGS.
45614
45615 2009-04-26  Bruno Haible  <bruno@clisp.org>
45616
45617         Simplify calling convention of u*_conv_from_encoding.
45618         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45619         u32_conv_from_encoding): Expect a resultbuf argument and return the
45620         result directly as a pointer.
45621         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45622         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45623         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45624         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45625         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45626         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45627         Update.
45628         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45629         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45630         * lib/vasnprintf.c (VASNPRINTF): Update.
45631         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45632         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45633         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45634         * NEWS: Mention the change.
45635
45636 2009-04-26  Bruno Haible  <bruno@clisp.org>
45637
45638         Simplify calling convention of u*_conv_to_encoding.
45639         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45640         u32_conv_to_encoding): Expect a resultbuf argument and return the
45641         result directly as a pointer.
45642         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45643         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45644         freeing scaled_offsets if mem_iconveha failed.
45645         * lib/unicase/u-casexfrm.h (FUNC): Update.
45646         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45647         * lib/vasnprintf.c (VASNPRINTF): Update.
45648         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45649         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45650         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45651         * NEWS: Mention the change.
45652
45653 2009-04-26  Bruno Haible  <bruno@clisp.org>
45654
45655         Avoid test failures on AIX and OSF/1.
45656         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45657         malloc(0).
45658         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45659         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45660         Likewise.
45661         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45662         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45663         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45664         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45665         * doc/posix-functions/malloc.texi: Document the portability problem
45666         related to malloc(0).
45667
45668 2009-04-26  Bruno Haible  <bruno@clisp.org>
45669
45670         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45671         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45672         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45673
45674 2009-04-25  Bruno Haible  <bruno@clisp.org>
45675
45676         Avoid link error when creating a namespace clean library.
45677         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45678         as macro with arguments if already defined as an alias.
45679         * lib/signbitf.c (gl_signbitf): Don't undefine.
45680         * lib/signbitd.c (gl_signbitd): Don't undefine.
45681         * lib/signbitl.c (gl_signbitl): Don't undefine.
45682
45683 2009-04-25  Jim Meyering  <meyering@redhat.com>
45684
45685         vc-list-files: fix another quoting bug
45686         * build-aux/vc-list-files: Avoid sed backslash expansion
45687         of pathological directory names.
45688
45689 2009-04-25  Eric Blake  <ebb9@byu.net>
45690
45691         vc-list-files: fix shell quoting error
45692         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45693         timestamp.
45694
45695 2009-04-25  Jim Meyering  <meyering@redhat.com>
45696
45697         vc-list-files: restore lost functionality with subdir argument
45698         * build-aux/vc-list-files: When given a non-"." sub-directory
45699         argument, substitute the $dir/ prefix back onto each resulting name.
45700         Otherwise, coreutils' root_tests check would fail.
45701
45702 2009-04-24  Eric Blake  <ebb9@byu.net>
45703
45704         vc-list-files: ignore git symlinks
45705         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45706         than ls-files, to ignore git symlinks.
45707
45708         maint.mk: import improvements from m4
45709         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45710         (move_if_change): Delete unused macro.
45711         (news-date-check, vc-diff-check): Support VPATH builds.
45712         (announcement): Likewise.  Split --bootstrap-tools list...
45713         (boostrap-tools): ...into separate list, which can be overridden
45714         in cfg.mk.
45715         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45716         requiring dependency on useless-if-before-free module.
45717         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45718         Support VPATH builds.
45719
45720 2009-04-24  Jim Meyering  <meyering@redhat.com>
45721
45722         maint.mk: remove coreutils-specific rules and variables
45723         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45724         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45725         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45726
45727         maint.mk: remove obsolete rule
45728         * top/maint.mk (rel-check): Remove rule.
45729         (WGET, WGETFLAGS): Remove now-unused variables.
45730
45731 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45732
45733         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45734         consistency.
45735
45736         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45737         '$(PATH_SEPARATOR)' instead of ':'.
45738
45739 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45740
45741         * lib/getopt1.c (main): Use 'const' for static array.
45742
45743 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45744
45745         * top/maint.mk: Sync with coreutils.
45746         * NEWS: Explain incompatibilities.
45747
45748 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45749             Bruno Haible  <bruno@clisp.org>
45750
45751         Fix cross-compilation results.
45752         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45753         statement, as third argument of AC_TRY_RUN.
45754         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45755         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45756         Likewise.
45757         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45758         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45759         Likewise.
45760         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45761         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45762         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45763
45764 2009-04-20  Bruno Haible  <bruno@clisp.org>
45765
45766         Avoid test failure on mingw.
45767         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45768
45769 2009-04-20  Bruno Haible  <bruno@clisp.org>
45770
45771         Avoid compilation error on mingw.
45772         * modules/localename-tests (Depends-on): Add locale.
45773
45774 2009-04-19  Bruno Haible  <bruno@clisp.org>
45775
45776         Support for building a shared library on Windows platforms.
45777         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45778         (main): Test the presence of UNINORM_NFC here.
45779         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45780         (main): Test the presence of UNINORM_NFD here.
45781         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45782         (main): Test the presence of UNINORM_NFKC here.
45783         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45784         (main): Test the presence of UNINORM_NFKD here.
45785
45786 2009-04-19  Bruno Haible  <bruno@clisp.org>
45787
45788         Avoid a compiler warning.
45789         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45790         Change type of variable 'sequence'.
45791
45792 2009-04-19  Bruno Haible  <bruno@clisp.org>
45793
45794         * modules/configmake (Makefile.am): When the contents of configmake.h
45795         does not change, arrange to preserve its modification time.
45796
45797 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45798
45799         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45800         gettext domain.
45801
45802 2009-04-16  Jim Meyering  <meyering@redhat.com>
45803
45804         useless-if-before-free: improve conversion code
45805         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45806         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45807
45808 2009-04-14  Bruno Haible  <bruno@clisp.org>
45809
45810         * modules/fcntl (Depends-on): Add extensions.
45811         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45812
45813 2009-04-12  Ben Pfaff  <blp@gnu.org>
45814
45815         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45816         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45817
45818 2009-03-20  Ben Pfaff  <blp@gnu.org>
45819
45820         Make rename replace existing destinations on Windows.
45821         * m4/rename.m4: Add test for Mingw.
45822         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45823         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45824         * doc/posix-functions/rename.texi: Document.
45825
45826 2009-04-10  Bruno Haible  <bruno@clisp.org>
45827
45828         New include file "iconveh.h".
45829         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45830         * lib/striconveh.h: Include it.
45831         (enum iconv_ilseq_handler): Remove definition.
45832         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45833         striconveh.h.
45834         * lib/striconveha.c: Include striconveh.h.
45835         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45836         * modules/striconveh (Files): Add lib/iconveh.h.
45837         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45838         lib/striconveh.h.
45839
45840 2009-04-10  Bruno Haible  <bruno@clisp.org>
45841
45842         * lib/uniconv.h: Update comment.
45843
45844 2009-04-10  Bruno Haible  <bruno@clisp.org>
45845
45846         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45847         always.
45848         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45849         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45850         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45851         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45852         "unistring-notinline.h", so that the function gets defined always.
45853         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45854         * lib/unistr/u8-uctomb.c: Likewise.
45855         * lib/unistr/u16-mbtouc.c: Likewise.
45856         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45857         * lib/unistr/u16-uctomb.c: Likewise.
45858         * lib/unistr/u32-mbtouc.c: Likewise.
45859         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45860         * lib/unistr/u32-uctomb.c: Likewise.
45861
45862 2009-04-10  Bruno Haible  <bruno@clisp.org>
45863
45864         Mark 'utime' obsolete.
45865         * modules/utime (Status, Notice): New sections.
45866         Suggested by Jim Meyering.
45867
45868         Fix cross-compile guess for utime test.
45869         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45870         autoconf.
45871         * doc/posix-functions/utime.texi: Give more precisions.
45872         Reported by Jan <ipif@ymail.com>.
45873
45874 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45875
45876         filevercmp: correct today's change
45877         * lib/filevercmp.c: Also handle coreutils' test inputs.
45878         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45879
45880         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45881         for reporting it.
45882         * lib/filevercmp.c: Special handle for "", "." and "..".
45883         * tests/test-filevercmp.c: Enlarge the set suite.
45884
45885 2009-04-07  Jim Meyering  <meyering@redhat.com>
45886
45887         useless-if-before-free: show how to remove braced useless free, too
45888         * build-aux/useless-if-before-free: still only in a comment, though.
45889
45890 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45891
45892         maint.mk: import changes to syntax-check macros from coreutils
45893         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45894         Use them in the relevant macros.
45895
45896 2009-04-06  Bruno Haible  <bruno@clisp.org>
45897
45898         Fix unportable use of bit-fields.
45899         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45900         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45901         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45902
45903 2009-04-06  Bruno Haible  <bruno@clisp.org>
45904
45905         Avoid test failures on AIX and OSF/1.
45906         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45907         that malloc(0) = NULL.
45908         * tests/unicase/test-u8-tolower.c (check): Likewise.
45909         * tests/unicase/test-u8-totitle.c (check): Likewise.
45910         * tests/unicase/test-u8-toupper.c (check): Likewise.
45911         * tests/unicase/test-u16-casefold.c (check): Likewise.
45912         * tests/unicase/test-u16-tolower.c (check): Likewise.
45913         * tests/unicase/test-u16-totitle.c (check): Likewise.
45914         * tests/unicase/test-u16-toupper.c (check): Likewise.
45915         * tests/unicase/test-u32-casefold.c (check): Likewise.
45916         * tests/unicase/test-u32-tolower.c (check): Likewise.
45917         * tests/unicase/test-u32-totitle.c (check): Likewise.
45918         * tests/unicase/test-u32-toupper.c (check): Likewise.
45919         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45920         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45921         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45922         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45923         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45924         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45925         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45926         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45927         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45928         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45929         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45930         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45931
45932 2009-04-05  Bruno Haible  <bruno@clisp.org>
45933
45934         Work around an autoconf limitation.
45935         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45936         comment line if it would be longer than 3 KB.
45937
45938 2009-04-05  Bruno Haible  <bruno@clisp.org>
45939
45940         Avoid test failure with libiconv-1.13.
45941         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45942         of the expected test results.
45943
45944 2009-04-05  Bruno Haible  <bruno@clisp.org>
45945
45946         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45947         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45948         that it should be installed.
45949
45950 2009-04-05  Bruno Haible  <bruno@clisp.org>
45951
45952         * gnulib-tool: New option --copy-file.
45953         (func_usage): Document it.
45954         (func_dest_tmpfilename): Moved out of func_import.
45955         (func_add_file, func_update_file): New functions, extracted from
45956         func_import.
45957         (func_import): Update.
45958
45959 2009-04-05  Karl Berry  <karl@gnu.org>
45960
45961         * README: prominently mention gnulib-tool.
45962         Rearrange sections so getting the code is near the top.
45963
45964 2009-04-05  Bruno Haible  <bruno@clisp.org>
45965
45966         * lib/unicase.h: Mention u*_cmp2.
45967         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45968         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45969         * lib/unicase/ulc-casecmp.c: Likewise.
45970         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45971         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45972         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45973         unistr/u8-cmp.
45974         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45975         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45976         unistr/u16-cmp.
45977         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45978         unistr/u32-cmp.
45979
45980         * lib/uninorm.h: Mention u*_cmp2.
45981         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45982         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45983         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45984         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45985         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45986         unistr/u8-cmp.
45987         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45988         unistr/u16-cmp.
45989         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45990         unistr/u32-cmp.
45991
45992         New module 'unistr/u32-cmp2'.
45993         * lib/unistr/u32-cmp2.c: New file.
45994         * modules/unistr/u32-cmp2: New file.
45995
45996         New module 'unistr/u16-cmp2'.
45997         * lib/unistr/u16-cmp2.c: New file.
45998         * modules/unistr/u16-cmp2: New file.
45999
46000         New module 'unistr/u8-cmp2'.
46001         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
46002         * lib/unistr/u8-cmp2.c: New file.
46003         * lib/unistr/u-cmp2.h: New file.
46004         * modules/unistr/u8-cmp2: New file.
46005
46006 2009-04-05  Bruno Haible  <bruno@clisp.org>
46007
46008         * lib/unictype.h (uc_property_is_valid): New macro.
46009         * tests/unictype/test-pr_byname.c (main): Use it.
46010
46011         * lib/unistr.h: Doc fixes.
46012         * lib/uniconv.h: Doc fixes.
46013         * lib/unictype.h: Doc fixes.
46014
46015 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
46016
46017         Port coreutils 7.2 to Solaris 8.
46018
46019         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
46020         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
46021         for Solaris 8.  This is a bit of a hack, as it means it's the
46022         caller's responsibility to add -lnsl if needed, but most likely it
46023         won't be needed since only getaddrinfo uses this and getaddrinfo
46024         isn't needed on Solaris 8.
46025
46026         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
46027         problem to Solaris 8 encountered with coreutils 7.2, which
46028         resulted in a message "fnmatch.c:292: warning: passing argument 4
46029         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
46030         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
46031
46032 2009-04-03  Simon Josefsson  <simon@josefsson.org>
46033
46034         * m4/ld-version-script.m4: Add FIXME comment.
46035
46036 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46037
46038         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46039         SOVERSION variable.
46040
46041 2009-04-02  Bruno Haible  <bruno@clisp.org>
46042
46043         * Makefile (info, html, dvi, pdf): Combine the rules.
46044         Suggested by Jim Meyering.
46045
46046 2009-04-01  Bruno Haible  <bruno@clisp.org>
46047
46048         * Makefile (info, html, dvi, pdf): New targets.
46049         Reported by Reuben Thomas <rrt@sc3d.org>.
46050
46051 2009-04-01  Bruno Haible  <bruno@clisp.org>
46052
46053         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46054         can be put into PATH.
46055         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46056
46057 2009-04-01  Bruno Haible  <bruno@clisp.org>
46058
46059         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46060
46061 2009-04-01  Bruno Haible  <bruno@clisp.org>
46062
46063         Rename module 'visibility'.
46064         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46065         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46066         * doc/gnulib.texi: Update.
46067         * MODULES.html.sh (Misc): Update.
46068         * NEWS: Mention the change.
46069
46070 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46071
46072         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46073         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46074         Eric Blake <ebb9@byu.net> for review.
46075         * MODULES.html.sh: Add lib-msvc-compat.
46076         * doc/gnulib.texi: Link to new section.
46077         * m4/ld-output-def.m4: New file.
46078         * doc/ld-output-def.texi: New file.
46079
46080 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46081
46082         Rename ld-version-script to lib-symbol-versions.  Suggested by
46083         Bruno Haible <bruno@clisp.org>.
46084         * modules/ld-version-script: Renamed to lib-symbol-versions.
46085         * doc/ld-version-script.texi: Fix module name.
46086         * MODULES.html.sh: Add lib-symbol-versions.
46087
46088 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46089
46090         * modules/u64-tests: New file.
46091         * tests/test-u64.c: New file.
46092
46093 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46094
46095         * MODULES.html.sh: Mention u64.
46096         * modules/u64: New module.
46097         * modules/crypto/sha512: Depend on u64 module instead of providing
46098         u64.h.
46099
46100 2009-03-27  Eric Blake  <ebb9@byu.net>
46101
46102         test-strerror: make debugging EAI_SYSTEM easier
46103         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46104         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46105         failure was EAI_SYSTEM.
46106
46107 2009-03-25  Bruno Haible  <bruno@clisp.org>
46108
46109         Fix a problem with --enable-relocatable on Solaris 7.
46110         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46111         since 2008-02-24.
46112
46113 2009-03-25  Eric Blake  <ebb9@byu.net>
46114
46115         test-sockets: avoid gcc warning
46116         * tests/test-sockets.c (main): Silence compiler warning.
46117
46118 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46119
46120         New modules nproc, pthread, contributed by Glen Lenker.
46121
46122         * MODULES.html.sh: Add pthread, nproc.
46123         * lib/nproc.c: New file.
46124         * lib/nproc.h: New file.
46125         * lib/pthread.in.h: New file.
46126         * m4/pthread.m4: New file.
46127         * modules/nproc: New file.
46128         * modules/pthread: New file.
46129
46130 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46131
46132         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46133         New variable.
46134
46135 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46136
46137         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46138         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46139         * tests/test-filevercmp.c: Add tests for backup suffixes.
46140
46141 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46142
46143         * modules/stdlib (Depends-on): Add stdint, needed when defining
46144         struct random_data on, for example, HP-UX 10.20.  Reported by
46145         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46146
46147 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46148
46149         * lib/readline.c (readline): Call fflush on stdout after printing
46150         prompt.
46151
46152 2009-03-20  Bruno Haible  <bruno@clisp.org>
46153
46154         Remove dependency from 'close' module to -lws2_32 on native Windows.
46155         * lib/close-hook.h: New file.
46156         * lib/close-hook.c: New file.
46157         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46158         w32sock.h.
46159         (_gl_close_fd_maybe_socket): Remove function.
46160         (rpl_close): Invoke execute_all_close_hooks instead of
46161         _gl_close_fd_maybe_socket.
46162         * lib/sockets.c: Include close-hook.h, w32sock.h.
46163         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46164         (close_sockets_hook): New variable.
46165         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46166         (gl_sockets_cleanup): Unregister it.
46167         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46168         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46169         * modules/close-hook: New file.
46170         * modules/close (Files): Remove lib/w32sock.h.
46171         (Depends-on): Add close-hook.
46172         (Link): Remove section.
46173         * modules/sockets (Files): Add lib/w32sock.h.
46174         (Depends-on): Add close-hook.
46175         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46176         invocation.
46177         * NEWS: Mention that LIB_CLOSE is gone.
46178
46179 2009-03-23  Eric Blake  <ebb9@byu.net>
46180
46181         signal-tests: test previous patch
46182         * tests/test-signal.c: New file.
46183         * modules/signal-tests: Likewise.
46184
46185         signal.h: always support 'volatile sig_atomic_t'
46186         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46187         (gl_SIGNAL_H_DEFAULTS): Add a default.
46188         * modules/signal (Makefile.am): Substitute if needed.
46189         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46190         users can blindly add volatile.
46191         * doc/posix-headers/signal.texi (signal.h): Document it.
46192         Reported by Matthew Woehlke.
46193
46194 2009-03-23  Jim Meyering  <meyering@redhat.com>
46195
46196         pathmax: PATH_MAX: use pathconf only when available
46197         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46198         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46199         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46200         This avoids a link failure in a PSP cross-compilation environment
46201         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46202
46203         * lib/vasnprintf.c (divide): Fix typo in comment.
46204
46205 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46206
46207         * gnulib-tool (func_filter_filelist): Fix comment.
46208
46209 2009-03-20  Bruno Haible  <bruno@clisp.org>
46210
46211         Make sockets.h self-contained.
46212         * lib/sockets.c: Include sockets.h first.
46213         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46214
46215 2009-03-19  Eric Blake  <ebb9@byu.net>
46216
46217         doc: mention more functions added in cygwin 1.7.0
46218         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46219         addition.
46220         * doc/posix-functions/log2f.texi: Likewise.
46221
46222 2009-03-19  Jim Meyering  <meyering@redhat.com>
46223
46224         fsusage: avoid syntax error due to statement-before-declaration
46225         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46226         after all declarations.  Reported by Matthew Woehlke in
46227         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46228
46229 2009-03-18  Eric Blake  <ebb9@byu.net>
46230
46231         build-aux/compile: sync from automake
46232         * build-aux/compile: New file, from automake.
46233         * config/srclist.txt: Mention build-aux/compile.
46234
46235 2009-03-17  Bruno Haible  <bruno@clisp.org>
46236
46237         * lib/git-merge-changelog.c: Fix typo in comment.
46238         Reported by Reuben Thomas <rrt@sc3d.org>.
46239
46240 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46241
46242         * m4/regex.m4: update and improve help for
46243         --without-included-regex.
46244
46245 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46246
46247         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46248         failure on missing include files.
46249
46250 2009-03-17  Eric Blake  <ebb9@byu.net>
46251
46252         doc: mention more functions added in cygwin 1.7.0
46253         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46254         addition.
46255         * doc/posix-functions/fwscanf.texi: Likewise.
46256         * doc/posix-functions/swprintf.texi: Likewise.
46257         * doc/posix-functions/swscanf.texi: Likewise.
46258         * doc/posix-functions/vfwprintf.texi: Likewise.
46259         * doc/posix-functions/vfwscanf.texi: Likewise.
46260         * doc/posix-functions/vswprintf.texi: Likewise.
46261         * doc/posix-functions/vswscanf.texi: Likewise.
46262         * doc/posix-functions/vwprintf.texi: Likewise.
46263         * doc/posix-functions/vwscanf.texi: Likewise.
46264         * doc/posix-functions/wcscasecmp.texi: Likewise.
46265         * doc/posix-functions/wcsdup.texi: Likewise.
46266         * doc/posix-functions/wcsftime.texi: Likewise.
46267         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46268         * doc/posix-functions/wprintf.texi: Likewise.
46269         * doc/posix-functions/wscanf.texi: Likewise.
46270         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46271
46272 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46273
46274         maint.mk: really add $(AM_MAKEFLAGS)
46275         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46276         was inadvertently omitted in the last commit.
46277         Spotted by Bruno Haible.
46278
46279         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46280         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46281         $(AM_MAKEFLAGS)' rather than plain `make'.
46282
46283         gnulib-tool: execute $MAKE not make
46284         * gnulib-tool: Default $MAKE to 'make'.
46285         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46286         than make.  Initialize $MAKE in the do-autobuild script.
46287
46288         gnulib-tool: use $MAKE not make in generated files
46289         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
46290         make, in generated files.  Initialize $MAKE in the do-autobuild
46291         script.
46292
46293         * top/GNUmakefile (_have-git-version-gen): Fix typo.
46294
46295         GNUmakefile: disable parallelism only for multiple, recursive targets
46296         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
46297         additions in the Makefile.
46298         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
46299         by Automake.
46300         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46301         are listed on the command line and at least one of them is
46302         listed in $(ALL_RECURSIVE_TARGETS).
46303
46304 2009-03-14  Bruno Haible  <bruno@clisp.org>
46305
46306         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46307         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46308         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46309         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46310         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46311         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46312         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46313         unistr/u8-uctomb.
46314         * modules/unistr/u8-strchr (Depends-on): Likewise.
46315         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46316         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46317         unistr/u16-uctomb.
46318         * modules/unistr/u16-strchr (Depends-on): Likewise.
46319         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46320
46321 2009-03-12  Bruno Haible  <bruno@clisp.org>
46322
46323         Work around select() bug on Interix 3.5.
46324         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46325         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46326         * m4/select.m4: New file.
46327         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46328         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46329         * modules/select (Files): Add m4/select.m4.
46330         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46331         * modules/nanosleep (Depends-on): Add select.
46332         * modules/poll (Depends-on): Likewise.
46333         * doc/posix-functions/select.texi: Mention the Interix bug.
46334         Reported by Markus Duft <mduft@gentoo.org>.
46335
46336         * lib/select.c: Renamed from lib/winsock-select.c.
46337         * modules/select (Files): Add lib/select.c, remove
46338         lib/winsock-select.c.
46339         (configure.ac): Update.
46340
46341 2009-03-12  Jim Meyering  <meyering@redhat.com>
46342
46343         avoid gcc warnings about unused macro definitions
46344         * lib/readtokens.c (STREQ): Remove unused definition.
46345         * lib/xmalloc.c (SIZE_MAX): Likewise.
46346         * lib/openat-die.c (N_): Likewise.
46347         * lib/mountlist.c (SIZE_MAX): Remove definition.
46348         Instead, include <stdint.h>.
46349         * lib/readutmp.c: Likewise.
46350         * modules/readutmp (Depends-on): Add stdint.
46351         * modules/mountlist (Depends-on): Add stdint.
46352         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46353
46354 2009-03-10  Bruno Haible  <bruno@clisp.org>
46355
46356         Tests for module 'mbmemcasecoll'.
46357         * modules/mbmemcasecoll-tests: New file.
46358         * tests/test-mbmemcasecoll1.sh: New file.
46359         * tests/test-mbmemcasecoll2.sh: New file.
46360         * tests/test-mbmemcasecoll3.sh: New file.
46361         * tests/test-mbmemcasecoll.c: New file.
46362
46363         New module 'mbmemcasecoll'.
46364         * lib/mbmemcasecoll.h: New file.
46365         * lib/mbmemcasecoll.c: New file.
46366         * modules/mbmemcasecoll: New file.
46367
46368         * tests/test-mbmemcasecmp.h: New file, extracted from
46369         tests/test-mbmemcasecmp.c.
46370         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
46371         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
46372         (main): Update.
46373         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
46374
46375 2009-03-09  Bruno Haible  <bruno@clisp.org>
46376
46377         Tests for module 'mbmemcasecmp'.
46378         * modules/mbmemcasecmp-tests: New file.
46379         * tests/test-mbmemcasecmp1.sh: New file.
46380         * tests/test-mbmemcasecmp2.sh: New file.
46381         * tests/test-mbmemcasecmp3.sh: New file.
46382         * tests/test-mbmemcasecmp.c: New file.
46383
46384         New module 'mbmemcasecmp'.
46385         * lib/mbmemcasecmp.h: New file.
46386         * lib/mbmemcasecmp.c: New file.
46387         * modules/mbmemcasecmp: New file.
46388
46389 2009-03-09  Bruno Haible  <bruno@clisp.org>
46390
46391         Tests for module 'unicase/ulc-casecoll'.
46392         * modules/unicase/ulc-casecoll-tests: New file.
46393         * tests/unicase/test-ulc-casecoll1.sh: New file.
46394         * tests/unicase/test-ulc-casecoll2.sh: New file.
46395         * tests/unicase/test-ulc-casecoll.c: New file.
46396
46397         New module 'unicase/ulc-casecoll'.
46398         * lib/unicase.h (ulc_casecoll): New declaration.
46399         * lib/unicase/ulc-casecoll.c: New file.
46400         * modules/unicase/ulc-casecoll: New file.
46401
46402         New module 'unicase/ulc-casexfrm'.
46403         * lib/unicase.h (ulc_casexfrm): New declaration.
46404         * lib/unicase/ulc-casexfrm.c: New file.
46405         * modules/unicase/ulc-casexfrm: New file.
46406
46407 2009-03-09  Bruno Haible  <bruno@clisp.org>
46408
46409         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
46410         invocations.
46411
46412         * m4/mbscasecmp.m4: Remove file.
46413         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
46414         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
46415
46416         * m4/mbscasestr.m4: Remove file.
46417         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
46418         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
46419
46420         * m4/mbschr.m4: Remove file.
46421         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46422         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46423
46424         * m4/mbscspn.m4: Remove file.
46425         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46426         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46427
46428         * m4/mbslen.m4: Remove file.
46429         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46430         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46431
46432         * m4/mbsncasecmp.m4: Remove file.
46433         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46434         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46435
46436         * m4/mbsnlen.m4: Remove file.
46437         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46438         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46439
46440         * m4/mbspbrk.m4: Remove file.
46441         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
46442         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
46443
46444         * m4/mbspcasecmp.m4: Remove file.
46445         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
46446         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
46447
46448         * m4/mbsrchr.m4: Remove file.
46449         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
46450         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
46451
46452         * m4/mbssep.m4: Remove file.
46453         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
46454         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
46455
46456         * m4/mbsspn.m4: Remove file.
46457         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
46458         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
46459
46460         * m4/mbsstr.m4: Remove file.
46461         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46462         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46463
46464         * m4/mbstok_r.m4: Remove file.
46465         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46466         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46467
46468         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46469
46470         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46471         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
46472
46473         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
46474
46475 2009-03-08  Bruno Haible  <bruno@clisp.org>
46476
46477         Tests for module 'unicase/ulc-casecmp'.
46478         * modules/unicase/ulc-casecmp-tests: New file.
46479         * tests/unicase/test-ulc-casecmp1.sh: New file.
46480         * tests/unicase/test-ulc-casecmp2.sh: New file.
46481         * tests/unicase/test-ulc-casecmp.c: New file.
46482
46483         New module 'unicase/ulc-casecmp'.
46484         * lib/unicase.h (ulc_casecmp): New declaration.
46485         * lib/unicase/ulc-casecmp.c: New file.
46486         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
46487         'const SRC_UNIT *'.
46488         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
46489         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
46490         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
46491         * modules/unicase/ulc-casecmp: New file.
46492
46493         Tests for module 'unicase/u32-is-cased'.
46494         * modules/unicase/u32-is-cased-tests: New file.
46495         * tests/unicase/test-u32-is-cased.c: New file.
46496
46497         Tests for module 'unicase/u16-is-cased'.
46498         * modules/unicase/u16-is-cased-tests: New file.
46499         * tests/unicase/test-u16-is-cased.c: New file.
46500
46501         Tests for module 'unicase/u8-is-cased'.
46502         * modules/unicase/u8-is-cased-tests: New file.
46503         * tests/unicase/test-u8-is-cased.c: New file.
46504         * tests/unicase/test-is-cased.h: New file.
46505
46506         New module 'unicase/u32-is-cased'.
46507         * lib/unicase/u32-is-cased.c: New file.
46508         * modules/unicase/u32-is-cased: New file.
46509
46510         New module 'unicase/u16-is-cased'.
46511         * lib/unicase/u16-is-cased.c: New file.
46512         * modules/unicase/u16-is-cased: New file.
46513
46514         New module 'unicase/u8-is-cased'.
46515         * lib/unicase/u8-is-cased.c: New file.
46516         * lib/unicase/u-is-cased.h: New file.
46517         * modules/unicase/u8-is-cased: New file.
46518
46519         Tests for module 'unicase/u32-is-casefolded'.
46520         * modules/unicase/u32-is-casefolded-tests: New file.
46521         * tests/unicase/test-u32-is-casefolded.c: New file.
46522
46523         Tests for module 'unicase/u16-is-casefolded'.
46524         * modules/unicase/u16-is-casefolded-tests: New file.
46525         * tests/unicase/test-u16-is-casefolded.c: New file.
46526
46527         Tests for module 'unicase/u8-is-casefolded'.
46528         * modules/unicase/u8-is-casefolded-tests: New file.
46529         * tests/unicase/test-u8-is-casefolded.c: New file.
46530         * tests/unicase/test-is-casefolded.h: New file.
46531
46532         New module 'unicase/u32-is-casefolded'.
46533         * lib/unicase/u32-is-casefolded.c: New file.
46534         * modules/unicase/u32-is-casefolded: New file.
46535
46536         New module 'unicase/u16-is-casefolded'.
46537         * lib/unicase/u16-is-casefolded.c: New file.
46538         * modules/unicase/u16-is-casefolded: New file.
46539
46540         New module 'unicase/u8-is-casefolded'.
46541         * lib/unicase/u8-is-casefolded.c: New file.
46542         * modules/unicase/u8-is-casefolded: New file.
46543
46544         Tests for module 'unicase/u32-is-titlecase'.
46545         * modules/unicase/u32-is-titlecase-tests: New file.
46546         * tests/unicase/test-u32-is-titlecase.c: New file.
46547
46548         Tests for module 'unicase/u16-is-titlecase'.
46549         * modules/unicase/u16-is-titlecase-tests: New file.
46550         * tests/unicase/test-u16-is-titlecase.c: New file.
46551
46552         Tests for module 'unicase/u8-is-titlecase'.
46553         * modules/unicase/u8-is-titlecase-tests: New file.
46554         * tests/unicase/test-u8-is-titlecase.c: New file.
46555         * tests/unicase/test-is-titlecase.h: New file.
46556
46557         New module 'unicase/u32-is-titlecase'.
46558         * lib/unicase/u32-is-titlecase.c: New file.
46559         * modules/unicase/u32-is-titlecase: New file.
46560
46561         New module 'unicase/u16-is-titlecase'.
46562         * lib/unicase/u16-is-titlecase.c: New file.
46563         * modules/unicase/u16-is-titlecase: New file.
46564
46565         New module 'unicase/u8-is-titlecase'.
46566         * lib/unicase/u8-is-titlecase.c: New file.
46567         * modules/unicase/u8-is-titlecase: New file.
46568
46569         Tests for module 'unicase/u32-is-lowercase'.
46570         * modules/unicase/u32-is-lowercase-tests: New file.
46571         * tests/unicase/test-u32-is-lowercase.c: New file.
46572
46573         Tests for module 'unicase/u16-is-lowercase'.
46574         * modules/unicase/u16-is-lowercase-tests: New file.
46575         * tests/unicase/test-u16-is-lowercase.c: New file.
46576
46577         Tests for module 'unicase/u8-is-lowercase'.
46578         * modules/unicase/u8-is-lowercase-tests: New file.
46579         * tests/unicase/test-u8-is-lowercase.c: New file.
46580         * tests/unicase/test-is-lowercase.h: New file.
46581
46582         New module 'unicase/u32-is-lowercase'.
46583         * lib/unicase/u32-is-lowercase.c: New file.
46584         * modules/unicase/u32-is-lowercase: New file.
46585
46586         New module 'unicase/u16-is-lowercase'.
46587         * lib/unicase/u16-is-lowercase.c: New file.
46588         * modules/unicase/u16-is-lowercase: New file.
46589
46590         New module 'unicase/u8-is-lowercase'.
46591         * lib/unicase/u8-is-lowercase.c: New file.
46592         * modules/unicase/u8-is-lowercase: New file.
46593
46594         Tests for module 'unicase/u32-is-uppercase'.
46595         * modules/unicase/u32-is-uppercase-tests: New file.
46596         * tests/unicase/test-u32-is-uppercase.c: New file.
46597
46598         Tests for module 'unicase/u16-is-uppercase'.
46599         * modules/unicase/u16-is-uppercase-tests: New file.
46600         * tests/unicase/test-u16-is-uppercase.c: New file.
46601
46602         Tests for module 'unicase/u8-is-uppercase'.
46603         * modules/unicase/u8-is-uppercase-tests: New file.
46604         * tests/unicase/test-u8-is-uppercase.c: New file.
46605         * tests/unicase/test-is-uppercase.h: New file.
46606
46607         New module 'unicase/u32-is-uppercase'.
46608         * lib/unicase/u32-is-uppercase.c: New file.
46609         * modules/unicase/u32-is-uppercase: New file.
46610
46611         New module 'unicase/u16-is-uppercase'.
46612         * lib/unicase/u16-is-uppercase.c: New file.
46613         * modules/unicase/u16-is-uppercase: New file.
46614
46615         New module 'unicase/u8-is-uppercase'.
46616         * lib/unicase/u8-is-uppercase.c: New file.
46617         * modules/unicase/u8-is-uppercase: New file.
46618
46619         New module 'unicase/u32-is-invariant'.
46620         * lib/unicase/u32-is-invariant.c: New file.
46621         * modules/unicase/u32-is-invariant: New file.
46622
46623         New module 'unicase/u16-is-invariant'.
46624         * lib/unicase/u16-is-invariant.c: New file.
46625         * modules/unicase/u16-is-invariant: New file.
46626
46627         New module 'unicase/u8-is-invariant'.
46628         * lib/unicase/u8-is-invariant.c: New file.
46629         * lib/unicase/invariant.h: New file.
46630         * lib/unicase/u-is-invariant.h: New file.
46631         * modules/unicase/u8-is-invariant: New file.
46632
46633         Tests for module 'unicase/u32-casecoll'.
46634         * modules/unicase/u32-casecoll-tests: New file.
46635         * tests/unicase/test-u32-casecoll.c: New file.
46636
46637         Tests for module 'unicase/u16-casecoll'.
46638         * modules/unicase/u16-casecoll-tests: New file.
46639         * tests/unicase/test-u16-casecoll.c: New file.
46640
46641         Tests for module 'unicase/u8-casecoll'.
46642         * modules/unicase/u8-casecoll-tests: New file.
46643         * tests/unicase/test-u8-casecoll.c: New file.
46644
46645         New module 'unicase/u32-casecoll'.
46646         * lib/unicase/u32-casecoll.c: New file.
46647         * modules/unicase/u32-casecoll: New file.
46648
46649         New module 'unicase/u16-casecoll'.
46650         * lib/unicase/u16-casecoll.c: New file.
46651         * modules/unicase/u16-casecoll: New file.
46652
46653         New module 'unicase/u8-casecoll'.
46654         * lib/unicase/u8-casecoll.c: New file.
46655         * lib/unicase/u-casecoll.h: New file.
46656         * modules/unicase/u8-casecoll: New file.
46657
46658         New module 'unicase/u32-casexfrm'.
46659         * lib/unicase/u32-casexfrm.c: New file.
46660         * modules/unicase/u32-casexfrm: New file.
46661
46662         New module 'unicase/u16-casexfrm'.
46663         * lib/unicase/u16-casexfrm.c: New file.
46664         * modules/unicase/u16-casexfrm: New file.
46665
46666         New module 'unicase/u8-casexfrm'.
46667         * lib/unicase/u8-casexfrm.c: New file.
46668         * lib/unicase/u-casexfrm.h: New file.
46669         * modules/unicase/u8-casexfrm: New file.
46670
46671         Tests for module 'unicase/u32-casecmp'.
46672         * modules/unicase/u32-casecmp-tests: New file.
46673         * tests/unicase/test-u32-casecmp.c: New file.
46674
46675         Tests for module 'unicase/u16-casecmp'.
46676         * modules/unicase/u16-casecmp-tests: New file.
46677         * tests/unicase/test-u16-casecmp.c: New file.
46678
46679         Tests for module 'unicase/u8-casecmp'.
46680         * modules/unicase/u8-casecmp-tests: New file.
46681         * tests/unicase/test-u8-casecmp.c: New file.
46682         * tests/unicase/test-casecmp.h: New file.
46683
46684         New module 'unicase/u32-casecmp'.
46685         * lib/unicase/u32-casecmp.c: New file.
46686         * modules/unicase/u32-casecmp: New file.
46687
46688         New module 'unicase/u16-casecmp'.
46689         * lib/unicase/u16-casecmp.c: New file.
46690         * modules/unicase/u16-casecmp: New file.
46691
46692         New module 'unicase/u8-casecmp'.
46693         * lib/unicase/u8-casecmp.c: New file.
46694         * lib/unicase/u-casecmp.h: New file.
46695         * modules/unicase/u8-casecmp: New file.
46696
46697         Tests for module 'unicase/u32-casefold'.
46698         * modules/unicase/u32-casefold-tests: New file.
46699         * tests/unicase/test-u32-casefold.c: New file.
46700
46701         Tests for module 'unicase/u16-casefold'.
46702         * modules/unicase/u16-casefold-tests: New file.
46703         * tests/unicase/test-u16-casefold.c: New file.
46704
46705         Tests for module 'unicase/u8-casefold'.
46706         * modules/unicase/u8-casefold-tests: New file.
46707         * tests/unicase/test-u8-casefold.c: New file.
46708
46709         New module 'unicase/u32-casefold'.
46710         * lib/unicase/u32-casefold.c: New file.
46711         * modules/unicase/u32-casefold: New file.
46712
46713         New module 'unicase/u16-casefold'.
46714         * lib/unicase/u16-casefold.c: New file.
46715         * modules/unicase/u16-casefold: New file.
46716
46717         New module 'unicase/u8-casefold'.
46718         * lib/unicase/u8-casefold.c: New file.
46719         * lib/unicase/u-casefold.h: New file.
46720         * modules/unicase/u8-casefold: New file.
46721
46722         New module 'unicase/tocasefold'.
46723         * lib/unicase/casefold.h: New file.
46724         * lib/unicase/tocasefold.c: New file.
46725         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46726         * modules/unicase/tocasefold: New file.
46727
46728         Tests for module 'unicase/u32-totitle'.
46729         * modules/unicase/u32-totitle-tests: New file.
46730         * tests/unicase/test-u32-totitle.c: New file.
46731
46732         Tests for module 'unicase/u16-totitle'.
46733         * modules/unicase/u16-totitle-tests: New file.
46734         * tests/unicase/test-u16-totitle.c: New file.
46735
46736         Tests for module 'unicase/u8-totitle'.
46737         * modules/unicase/u8-totitle-tests: New file.
46738         * tests/unicase/test-u8-totitle.c: New file.
46739
46740         New module 'unicase/u32-totitle'.
46741         * lib/unicase/u32-totitle.c: New file.
46742         * modules/unicase/u32-totitle: New file.
46743
46744         New module 'unicase/u16-totitle'.
46745         * lib/unicase/u16-totitle.c: New file.
46746         * modules/unicase/u16-totitle: New file.
46747
46748         New module 'unicase/u8-totitle'.
46749         * lib/unicase/u8-totitle.c: New file.
46750         * lib/unicase/u-totitle.h: New file.
46751         * modules/unicase/u8-totitle: New file.
46752
46753         Tests for module 'unicase/u32-tolower'.
46754         * modules/unicase/u32-tolower-tests: New file.
46755         * tests/unicase/test-u32-tolower.c: New file.
46756
46757         Tests for module 'unicase/u16-tolower'.
46758         * modules/unicase/u16-tolower-tests: New file.
46759         * tests/unicase/test-u16-tolower.c: New file.
46760
46761         Tests for module 'unicase/u8-tolower'.
46762         * modules/unicase/u8-tolower-tests: New file.
46763         * tests/unicase/test-u8-tolower.c: New file.
46764
46765         New module 'unicase/u32-tolower'.
46766         * lib/unicase/u32-tolower.c: New file.
46767         * modules/unicase/u32-tolower: New file.
46768
46769         New module 'unicase/u16-tolower'.
46770         * lib/unicase/u16-tolower.c: New file.
46771         * modules/unicase/u16-tolower: New file.
46772
46773         New module 'unicase/u8-tolower'.
46774         * lib/unicase/u8-tolower.c: New file.
46775         * modules/unicase/u8-tolower: New file.
46776
46777         Tests for module 'unicase/u32-toupper'.
46778         * modules/unicase/u32-toupper-tests: New file.
46779         * tests/unicase/test-u32-toupper.c: New file.
46780
46781         Tests for module 'unicase/u16-toupper'.
46782         * modules/unicase/u16-toupper-tests: New file.
46783         * tests/unicase/test-u16-toupper.c: New file.
46784
46785         Tests for module 'unicase/u8-toupper'.
46786         * modules/unicase/u8-toupper-tests: New file.
46787         * tests/unicase/test-u8-toupper.c: New file.
46788
46789         New module 'unicase/u32-toupper'.
46790         * lib/unicase/u32-toupper.c: New file.
46791         * modules/unicase/u32-toupper: New file.
46792
46793         New module 'unicase/u16-toupper'.
46794         * lib/unicase/u16-toupper.c: New file.
46795         * modules/unicase/u16-toupper: New file.
46796
46797         New module 'unicase/u8-toupper'.
46798         * lib/unicase/u8-toupper.c: New file.
46799         * modules/unicase/u8-toupper: New file.
46800
46801         New module 'unicase/u32-casemap'.
46802         * lib/unicase/u32-casemap.c: New file.
46803         * modules/unicase/u32-casemap: New file.
46804
46805         New module 'unicase/u16-casemap'.
46806         * lib/unicase/u16-casemap.c: New file.
46807         * modules/unicase/u16-casemap: New file.
46808
46809         New module 'unicase/u8-casemap'.
46810         * lib/unicase/unicasemap.h: New file.
46811         * lib/unicase/u8-casemap.c: New file.
46812         * lib/unicase/u-casemap.h: New file.
46813         * modules/unicase/u8-casemap: New file.
46814
46815         New module 'unicase/special-casing'.
46816         * lib/unicase/special-casing.h: New file.
46817         * lib/unicase/special-casing.c: New file.
46818         * lib/unicase/special-casing-table.gperf: New file, generated by
46819         gen-uni-tables.c.
46820         * modules/unicase/special-casing: New file.
46821
46822         Tests for module 'unicase/locale-language'.
46823         * modules/unicase/locale-language-tests: New file.
46824         * tests/unicase/test-locale-language.sh: New file.
46825         * tests/unicase/test-locale-language.c: New file.
46826
46827         New module 'unicase/locale-language'.
46828         * lib/unicase/locale-language.c: New file.
46829         * lib/unicase/locale-languages.gperf: New file.
46830         * modules/unicase/locale-language: New file.
46831
46832         Generate more tables for case conversion and case folding.
46833         * lib/gen-uni-tables.c (SCC_*): New enum items.
46834         (struct special_casing_rule): New type.
46835         (casing_rules, num_casing_rules, allocated_casing_rules): New
46836         variables.
46837         (add_casing_rule, fill_casing_rules): New functions.
46838         (struct casefold_rule): New type.
46839         (casefolding_rules, num_casefolding_rules,
46840         allocated_casefolding_rules): New variables.
46841         (fill_casefolding_rules): New function.
46842         (unicode_casefold): New variable.
46843         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46844         sort_casing_rules, output_casing_rules): New functions.
46845         (main): Accept to more arguments: SpecialCasing.txt and
46846         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46847         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46848         Output mapping for casefolding.
46849
46850         * lib/unicase.h: Include stdbool.h, uninorm.h.
46851         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46852         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46853         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46854         arguments.
46855         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46856         resultp arguments.
46857         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46858         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46859         resultp arguments.
46860         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46861         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46862         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46863         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46864         declarations.
46865         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46866
46867 2009-03-08  Bruno Haible  <bruno@clisp.org>
46868
46869         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46870         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46871         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46872         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46873
46874 2009-03-07  Bruno Haible  <bruno@clisp.org>
46875
46876         Adjust u*_normcmp, u*_normcoll API.
46877         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46878         u16_normcoll, u32_normcoll): Change failure conventions.
46879         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46880         errno and return -1.
46881         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46882
46883 2009-03-07  Bruno Haible  <bruno@clisp.org>
46884
46885         Tests for module 'uninorm/u32-normcoll'.
46886         * modules/uninorm/u32-normcoll-tests: New file.
46887         * tests/uninorm/test-u32-normcoll.c: New file.
46888
46889         Tests for module 'uninorm/u16-normcoll'.
46890         * modules/uninorm/u16-normcoll-tests: New file.
46891         * tests/uninorm/test-u16-normcoll.c: New file.
46892
46893         Tests for module 'uninorm/u8-normcoll'.
46894         * modules/uninorm/u8-normcoll-tests: New file.
46895         * tests/uninorm/test-u8-normcoll.c: New file.
46896
46897 2009-03-07  Bruno Haible  <bruno@clisp.org>
46898
46899         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46900         tests/uninorm/test-u32-normcmp.c.
46901         * tests/uninorm/test-u32-normcmp.c: Include it.
46902         (test_nonascii): New function, extracted from main. Add some more
46903         tests.
46904         (main): Invoke test_ascii and test_nonascii.
46905         * modules/uninorm/u32-normcmp-tests (Files): Add
46906         tests/uninorm/test-u32-normcmp.h.
46907         (Depends-on): Remove uninorm/u32-normcmp.
46908
46909         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46910         tests/uninorm/test-u16-normcmp.c.
46911         * tests/uninorm/test-u16-normcmp.c: Include it.
46912         (test_nonascii): New function, extracted from main. Add some more
46913         tests.
46914         (main): Invoke test_ascii and test_nonascii.
46915         * modules/uninorm/u16-normcmp-tests (Files): Add
46916         tests/uninorm/test-u16-normcmp.h.
46917         (Depends-on): Remove uninorm/u16-normcmp.
46918
46919         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46920         tests/uninorm/test-u8-normcmp.c.
46921         * tests/uninorm/test-u8-normcmp.c: Include it.
46922         (test_nonascii): New function, extracted from main. Add some more
46923         tests.
46924         (main): Invoke test_ascii and test_nonascii.
46925         * modules/uninorm/u8-normcmp-tests (Files): Add
46926         tests/uninorm/test-u8-normcmp.h.
46927         (Depends-on): Remove uninorm/u8-normcmp.
46928
46929 2009-03-07  Bruno Haible  <bruno@clisp.org>
46930
46931         New module 'uninorm/u32-normcoll'.
46932         * lib/uninorm/u32-normcoll.c: New file.
46933         * modules/uninorm/u32-normcoll: New file.
46934
46935         New module 'uninorm/u16-normcoll'.
46936         * lib/uninorm/u16-normcoll.c: New file.
46937         * modules/uninorm/u16-normcoll: New file.
46938
46939         New module 'uninorm/u8-normcoll'.
46940         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46941         declarations.
46942         * lib/uninorm/u8-normcoll.c: New file.
46943         * lib/uninorm/u-normcoll.h: New file.
46944         * modules/uninorm/u8-normcoll: New file.
46945
46946         New module 'uninorm/u32-normxfrm'.
46947         * lib/uninorm/u32-normxfrm.c: New file.
46948         * modules/uninorm/u32-normxfrm: New file.
46949
46950         New module 'uninorm/u16-normxfrm'.
46951         * lib/uninorm/u16-normxfrm.c: New file.
46952         * modules/uninorm/u16-normxfrm: New file.
46953
46954         New module 'uninorm/u8-normxfrm'.
46955         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46956         declarations.
46957         * lib/uninorm/u8-normxfrm.c: New file.
46958         * lib/uninorm/u-normxfrm.h: New file.
46959         * modules/uninorm/u8-normxfrm: New file.
46960
46961 2009-03-07  Bruno Haible  <bruno@clisp.org>
46962
46963         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46964         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46965         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46966
46967 2009-03-07  Bruno Haible  <bruno@clisp.org>
46968
46969         New module 'memxfrm'.
46970         * lib/memxfrm.h: New file.
46971         * lib/memxfrm.c: New file.
46972         * modules/memxfrm: New file.
46973
46974 2009-03-07  Bruno Haible  <bruno@clisp.org>
46975
46976         New module 'memcmp2'.
46977         * lib/memcmp2.h: New file.
46978         * lib/memcmp2.c: New file.
46979         * modules/memcmp2: New file.
46980
46981 2009-03-07  Bruno Haible  <bruno@clisp.org>
46982
46983         Tests for module 'uninorm/decomposing-form'.
46984         * modules/uninorm/decomposing-form-tests: New file.
46985         * tests/uninorm/test-decomposing-form.c: New file.
46986
46987         New module 'uninorm/decomposing-form'.
46988         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46989         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46990         Add 'decomposing_variant' field.
46991         * lib/uninorm/decomposing-form.c: New file.
46992         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46993         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46994         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46995         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46996         * modules/uninorm/decomposing-form: New file.
46997         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46998         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46999
47000 2009-03-07  Bruno Haible  <bruno@clisp.org>
47001
47002         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
47003         strings.
47004
47005 2009-03-06  Bruno Haible  <bruno@clisp.org>
47006
47007         Tests for module 'uninorm/u32-normcmp'.
47008         * tests/uninorm/test-u32-normcmp.c: New file.
47009         * modules/uninorm/u32-normcmp-tests: New file.
47010
47011         Tests for module 'uninorm/u16-normcmp'.
47012         * tests/uninorm/test-u16-normcmp.c: New file.
47013         * modules/uninorm/u16-normcmp-tests: New file.
47014
47015         Tests for module 'uninorm/u8-normcmp'.
47016         * tests/uninorm/test-u8-normcmp.c: New file.
47017         * modules/uninorm/u8-normcmp-tests: New file.
47018
47019         New module 'uninorm/u32-normcmp'.
47020         * lib/uninorm/u32-normcmp.c: New file.
47021         * modules/uninorm/u32-normcmp: New file.
47022
47023         New module 'uninorm/u16-normcmp'.
47024         * lib/uninorm/u16-normcmp.c: New file.
47025         * modules/uninorm/u16-normcmp: New file.
47026
47027         New module 'uninorm/u8-normcmp'.
47028         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
47029         declarations.
47030         * lib/uninorm/u8-normcmp.c: New file.
47031         * lib/uninorm/u-normcmp.h: New file.
47032         * modules/uninorm/u8-normcmp: New file.
47033
47034 2009-03-06  Bruno Haible  <bruno@clisp.org>
47035
47036         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47037         Reported by Eric Blake.
47038
47039 2009-03-06  Eric Blake  <ebb9@byu.net>
47040             Bruno Haible  <bruno@clisp.org>
47041
47042         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47043         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47044         condition.
47045         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47046         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47047         condition.
47048         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47049
47050 2009-03-06  Eric Blake  <ebb9@byu.net>
47051
47052         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47053         to avoid compiler warnings.
47054         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47055
47056 2009-03-05  Bruno Haible  <bruno@clisp.org>
47057
47058         * tests/test-ftell.c (main): Disable test beyond end of file on
47059         FreeMiNT.
47060         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47061
47062 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47063
47064         * lib/filevercmp.c: Move hidden files up in ordering.
47065         * tests/test-filevercmp.c: Add tests for hidden files.
47066
47067 2009-03-04  Bruno Haible  <bruno@clisp.org>
47068
47069         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47070         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47071         AM_CFLAGS.
47072         Reported by Simon Josefsson.
47073
47074 2009-03-03  Bruno Haible  <bruno@clisp.org>
47075
47076         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47077         Reported by Simon Josefsson.
47078
47079         * doc/ld-version-script.texi: Update node reference.
47080
47081 2009-03-03  Bruno Haible  <bruno@clisp.org>
47082
47083         * modules/visibility (License): Change to 'unlimited'.
47084         Suggested by Simon Josefsson.
47085
47086 2009-03-03  Jim Meyering  <meyering@redhat.com>
47087
47088         unlinkdir: cannot_unlink_dir may modify process state
47089         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47090         it's neither thread-safe nor appropriate for use in a library.
47091
47092 2009-03-03  Eric Blake  <ebb9@byu.net>
47093
47094         test-closein: silence test under Darwin
47095         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47096         care if it dies from EPIPE or EBADF.
47097
47098 2009-03-03  Bruno Haible  <bruno@clisp.org>
47099
47100         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47101         earlier.
47102         * doc/visibility.texi: Fix @node and @section.
47103
47104 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47105
47106         * doc/gnulib.texi: Link to sections for ld version script and
47107         visibility.
47108         * doc/visibility.texi: Add @node and @section.
47109         * modules/ld-version-script: New module.
47110         * m4/ld-version-script.m4: New file.
47111         * doc/ld-version-script.texi: New file.
47112
47113 2009-03-02  David Lutterkort  <lutter@redhat.com>
47114
47115         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47116         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47117
47118 2009-03-02  Bruno Haible  <bruno@clisp.org>
47119
47120         * doc/visibility.texi: Mention libtool's -export-symbols option.
47121
47122 2009-03-02  Jim Meyering  <meyering@redhat.com>
47123
47124         announce-gen: new option: --no-print-checksums
47125         * build-aux/announce-gen (usage): Describe it.
47126         (print_checksums): Print a newline here, not in the [*] footnote.
47127         (main): Honor it.
47128
47129 2009-03-01  Bruno Haible  <bruno@clisp.org>
47130
47131         Use socklen_t in the native Windows replacements prototypes.
47132         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47133         instead of 'int'.
47134         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47135         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47136         * modules/getsockopt (Depends-on): Add socklen.
47137         * modules/setsockopt (Depends-on): Add socklen.
47138
47139 2009-03-01  Bruno Haible  <bruno@clisp.org>
47140
47141         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47142         least 4.2.
47143
47144 2009-03-01  Eric Blake  <ebb9@byu.net>
47145             Bruno Haible  <bruno@clisp.org>
47146
47147         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47148         error messages.
47149         * lib/wait-process.c (wait_subprocess): Omit error message about
47150         deadly signal sent to the child of termsigp != NULL.
47151
47152 2009-03-01  Eric Blake  <ebb9@byu.net>
47153
47154         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47155
47156 2009-03-01  Bruno Haible  <bruno@clisp.org>
47157
47158         Avoid a gcc warning.
47159         * tests/test-sched.c (b): Make global.
47160         Reported by Eric Blake.
47161
47162 2009-01-19  Martin Lambers  <marlam@marlam.de>
47163
47164         Provide POSIX semantics for socket timeout options on W32.
47165         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47166         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47167         * modules/setsockopt: Depend on sys_time module for struct timeval.
47168         * modules/getsockopt: Depend on sys_time module for struct timeval.
47169
47170 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47171
47172         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47173         __USE_GNU, for consistency with netdb.in.h.
47174         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47175
47176 2009-03-01  Bruno Haible  <bruno@clisp.org>
47177
47178         More support for FreeMiNT.
47179         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47180         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47181
47182 2009-03-01  Bruno Haible  <bruno@clisp.org>
47183
47184         More support for FreeMiNT.
47185         * lib/fpurge.c (fpurge): Correct last commit.
47186         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47187
47188 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47189
47190         Fix unportable awk script in vc-list-files.
47191         * build-aux/vc-list-files: In the replacement awk script, use
47192         substr with a second argument of 1, not zero.
47193         Report by Simon Josefsson.
47194
47195 2009-02-28  Bruno Haible  <bruno@clisp.org>
47196
47197         More support for FreeMiNT.
47198         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47199         to FreeMiNT today.
47200         * lib/fwriting.c (fwriting): Likewise.
47201         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47202
47203 2009-02-28  Bruno Haible  <bruno@clisp.org>
47204
47205         * tests/test-freadseek.c (main): Disable test beyond end of file on
47206         FreeMiNT.
47207         * tests/test-ftello.c (main): Likewise.
47208         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47209
47210 2009-02-28  Bruno Haible  <bruno@clisp.org>
47211
47212         Add tentative support for FreeMiNT.
47213         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47214         * lib/fpurge.c (fpurge): Likewise.
47215         * lib/freadable.c (freadable): Likewise.
47216         * lib/freading.c (freading): Likewise.
47217         * lib/freadptr.c (freadptr): Likewise.
47218         * lib/freadseek.c (freadptrinc): Likewise.
47219         * lib/fseeko.c (rpl_fseeko): Likewise.
47220         * lib/fseterr.c (fseterr): Likewise.
47221         * lib/fwritable.c (fwritable): Likewise.
47222         * lib/fwriting.c (fwriting): Likewise.
47223         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47224         Hourihane.
47225         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47226
47227 2009-02-28  Bruno Haible  <bruno@clisp.org>
47228
47229         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47230         SIGCHLD.
47231         Reported by Jim Meyering.
47232
47233 2009-02-28  Bruno Haible  <bruno@clisp.org>
47234
47235         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47236         Mention the results of these tests on various platforms.
47237         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47238         order.
47239         * doc/posix-functions/printf.texi: Likewise.
47240         * doc/posix-functions/snprintf.texi: Likewise.
47241         * doc/posix-functions/sprintf.texi: Likewise.
47242         * doc/posix-functions/vfprintf.texi: Likewise.
47243         * doc/posix-functions/vprintf.texi: Likewise.
47244         * doc/posix-functions/vsnprintf.texi: Likewise.
47245         * doc/posix-functions/vsprintf.texi: Likewise.
47246         * doc/glibc-functions/obstack_printf.texi: Likewise.
47247         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47248
47249 2009-02-28  Bruno Haible  <bruno@clisp.org>
47250
47251         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47252         Reported by Loïc Minier <lool@dooz.org>.
47253
47254 2009-02-27  Bruno Haible  <bruno@clisp.org>
47255
47256         * gnulib-tool (func_import): Make the sed expression used to create the
47257         sed script for updating the .gitignore file POSIX compliant.
47258         Reported by Eric Blake.
47259
47260 2009-02-27  Bruno Haible  <bruno@clisp.org>
47261
47262         * gnulib-tool (sed): Don't alias as "sed --posix".
47263         Reported by Eric Blake.
47264
47265 2009-02-27  Bruno Haible  <bruno@clisp.org>
47266
47267         Avoid test link errors.
47268         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47269         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47270         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47271         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47272         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47273
47274 2009-02-27  Bruno Haible  <bruno@clisp.org>
47275
47276         Avoid spurious "(cached)" in configure output.
47277         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47278         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47279         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47280         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47281         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47282         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47283         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47284         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47285         Reported by Eric Blake.
47286
47287 2009-02-27  Eric Blake  <ebb9@byu.net>
47288
47289         printf: fix regression in previous patch
47290         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
47291
47292 2009-02-27  Bruno Haible  <bruno@clisp.org>
47293
47294         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
47295         value.
47296         * lib/stdint.in.h: Likewise.
47297         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
47298
47299 2009-02-27  Eric Blake  <ebb9@byu.net>
47300
47301         doc: mention more functions added in cygwin 1.7.0
47302         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47303         addition.
47304         * doc/posix-functions/open_wmemstream.texi: Likewise.
47305         * doc/posix-functions/wcsnlen.texi: Likewise.
47306         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47307         * doc/posix-functions/wcstod.texi: Likewise.
47308         * doc/posix-functions/wcstof.texi: Likewise.
47309         * doc/posix-functions/wcstoimax.texi: Likewise.
47310         * doc/posix-functions/wcstok.texi: Likewise.
47311         * doc/posix-functions/wcstoumax.texi: Likewise.
47312
47313         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47314         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47315         * doc/posix-functions/fprintf.texi: Update.
47316         * doc/posix-functions/printf.texi: Update.
47317         * doc/posix-functions/snprintf.texi: Update.
47318         * doc/posix-functions/sprintf.texi: Update.
47319         * doc/posix-functions/vfprintf.texi: Update.
47320         * doc/posix-functions/vprintf.texi: Update.
47321         * doc/posix-functions/vsnprintf.texi: Update.
47322         * doc/posix-functions/vsprintf.texi: Update.
47323         * doc/glibc-functions/obstack_printf.texi: Update.
47324         * doc/glibc-functions/obstack_vprintf.texi: Update.
47325
47326 2009-02-26  Eric Blake  <ebb9@byu.net>
47327
47328         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47329         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47330         compilation bug by using runtime conversion.
47331         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47332         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47333         * modules/ceill-tests (Files): Use nan.h.
47334         * modules/floorl-tests (Files): Likewise.
47335         * modules/frexpl-tests (Files): Likewise.
47336         * modules/isnanl-tests (Files): Likewise.
47337         * modules/ldexpl-tests (Files): Likewise.
47338         * modules/roundl-tests (Files): Likewise.
47339         * modules/truncl-tests (Files): Likewise.
47340         * tests/test-ceill.c (main): Use a working NaN.
47341         * tests/test-floorl.c (main): Likewise.
47342         * tests/test-frexpl.c (main): Likewise.
47343         * tests/test-isnan.c (test_long_double): Likewise.
47344         * tests/test-isnanl.h (main): Likewise.
47345         * tests/test-ldexpl.h (main): Likewise.
47346         * tests/test-roundl.h (main): Likewise.
47347         * tests/test-truncl.h (main): Likewise.
47348         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47349
47350 2009-02-26  Eric Blake  <ebb9@byu.net>
47351             Bruno Haible  <bruno@clisp.org>
47352
47353         Work around a *printf bug with %ls on Solaris.
47354         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47355         precision is specified, sprintf stops converting the wide string
47356         argument when the number of bytes that have been produced by this
47357         conversion equals or exceeds the precision.
47358         * doc/posix-functions/fprintf.texi: Update.
47359         * doc/posix-functions/printf.texi: Update.
47360         * doc/posix-functions/snprintf.texi: Update.
47361         * doc/posix-functions/sprintf.texi: Update.
47362         * doc/posix-functions/vfprintf.texi: Update.
47363         * doc/posix-functions/vprintf.texi: Update.
47364         * doc/posix-functions/vsnprintf.texi: Update.
47365         * doc/posix-functions/vsprintf.texi: Update.
47366         * doc/glibc-functions/obstack_printf.texi: Update.
47367         * doc/glibc-functions/obstack_vprintf.texi: Update.
47368
47369 2009-02-26  Eric Blake  <ebb9@byu.net>
47370
47371         stdlib: favor compiler check of random.h
47372         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
47373         to avoid an ObjC random.h installed by Swarm.
47374
47375 2009-02-26  Bruno Haible  <bruno@clisp.org>
47376
47377         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
47378         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
47379         Reported by Gary V. Vaughan <gary@gnu.org>.
47380
47381 2009-02-26  Bruno Haible  <bruno@clisp.org>
47382
47383         Fix *printf behaviour regarding the %ls directive.
47384         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
47385         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
47386         NEED_PRINTF_DIRECTIVE_LS.
47387         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
47388         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47389         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47390         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
47391         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
47392         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
47393         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47394         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47395         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47396         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47397         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47398         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
47399         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47400         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47401         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47402         * doc/posix-functions/fprintf.texi: Update.
47403         * doc/posix-functions/printf.texi: Update.
47404         * doc/posix-functions/snprintf.texi: Update.
47405         * doc/posix-functions/sprintf.texi: Update.
47406         * doc/posix-functions/vfprintf.texi: Update.
47407         * doc/posix-functions/vprintf.texi: Update.
47408         * doc/posix-functions/vsnprintf.texi: Update.
47409         * doc/posix-functions/vsprintf.texi: Update.
47410         * doc/glibc-functions/obstack_printf.texi: Update.
47411         * doc/glibc-functions/obstack_vprintf.texi: Update.
47412         Reported by Eric Blake.
47413
47414 2009-02-25  Bruno Haible  <bruno@clisp.org>
47415
47416         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
47417         with known value.
47418         Reported by Gary V. Vaughan <gary@gnu.org>.
47419
47420 2009-02-25  Bruno Haible  <bruno@clisp.org>
47421
47422         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47423         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47424         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47425         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47426         Reported by Gary V. Vaughan <gary@gnu.org>.
47427
47428 2009-02-25  Bruno Haible  <bruno@clisp.org>
47429
47430         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47431         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47432         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47433         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47434         Reported by Gary V. Vaughan <gary@gnu.org>.
47435
47436 2009-02-25  Eric Blake  <ebb9@byu.net>
47437
47438         tests: skip fseek/ftell tests if ungetc is broken
47439         * m4/ungetc.m4: New file.
47440         * modules/fseek-tests: Split test, so ungetc dependency is
47441         separate from rest of test.
47442         * modules/fseeko-tests: Likewise.
47443         * modules/ftell-tests: Likewise.
47444         * modules/ftello-tests: Likewise.
47445         * tests/test-fseek.c (main): Isolate ungetc dependency.
47446         * tests/test-fseeko.c (main): Likewise.
47447         * tests/test-ftell.c (main): Likewise.
47448         * tests/test-ftello.c (main): Likewise.
47449         * tests/test-fseek2.sh: New file.
47450         * tests/test-fseeko2.sh: Likewise.
47451         * tests/test-ftell2.sh: Likewise.
47452         * tests/test-ftello2.sh: Likewise.
47453
47454 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
47455
47456         test-getaddrinfo: fix usage of skip return code 77
47457         * tests/test-gettaddrinfo.c: Return skip code 77 only
47458         for first occurrence of skip (4x77 is not 77)
47459
47460 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
47461
47462         strtod: avoid C99 decl-after-statement
47463         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47464
47465 2009-02-24  Eric Blake  <ebb9@byu.net>
47466
47467         strtod: detect HP-UX 11.31 bug
47468         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47469         Reported by Gary V. Vaughan.
47470
47471 2009-02-23  Bruno Haible  <bruno@clisp.org>
47472
47473         Fix invalid read past end of memory block.
47474         * lib/vasnprintf.c (DCHAR_SET): Define.
47475         (local_wcslen): Define only when needed.
47476         (local_strnlen, local_wcsnlen): New functions.
47477         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
47478         directives that involve a conversion ourselves.
47479         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
47480         wcsnlen, mbrtowc, wcrtomb.
47481         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
47482         * tests/test-vasprintf-posix.c (test_function): Likewise.
47483         * tests/test-snprintf-posix.h (test_function): Likewise.
47484         * tests/test-sprintf-posix.h (test_function): Likewise.
47485         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47486
47487 2009-02-22  Bruno Haible  <bruno@clisp.org>
47488
47489         Implement new clarified decomposition of Hangul syllables.
47490         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
47491         of type LTV, return only a pairwise decomposition.
47492         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
47493         Likewise.
47494         * tests/uninorm/test-decomposition.c (main): Updated expected result.
47495         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
47496         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
47497
47498 2009-02-22  Bruno Haible  <bruno@clisp.org>
47499
47500         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
47501         zero-length results and shrink excess allocated memory.
47502         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
47503         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
47504         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
47505         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
47506         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
47507         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
47508         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
47509         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
47510         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
47511         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
47512         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
47513         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
47514
47515 2009-02-21  Bruno Haible  <bruno@clisp.org>
47516
47517         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47518         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47519         spaces after a period. Put a space between a macro name and its
47520         argument list. Trivial rewordings.
47521         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47522         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47523         (main): Return 0 explicitly.
47524
47525 2009-02-21  Bruno Haible  <bruno@clisp.org>
47526
47527         Tests for module 'uninorm/filter'.
47528         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47529         * modules/uninorm/filter-tests: New file.
47530
47531         New module 'uninorm/filter'.
47532         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47533         uninorm_filter_flush, uninorm_filter_free): New declarations.
47534         * lib/uninorm/uninorm-filter.c: New file.
47535         * modules/uninorm/filter: New file.
47536
47537 2009-02-21  Bruno Haible  <bruno@clisp.org>
47538
47539         Tests for module 'uninorm/nfkc'.
47540         * tests/uninorm/test-nfkc.c: New file.
47541         * tests/uninorm/test-u8-nfkc.c: New file.
47542         * tests/uninorm/test-u16-nfkc.c: New file.
47543         * tests/uninorm/test-u32-nfkc.c: New file.
47544         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47545         * tests/uninorm/test-u32-nfkc-big.c: New file.
47546         * modules/uninorm/nfkc-tests: New file.
47547
47548         New module 'uninorm/nfkc'.
47549         * lib/uninorm/nfkc.c: New file.
47550         * modules/uninorm/nfkc: New file.
47551
47552         Tests for module 'uninorm/nfkd'.
47553         * tests/uninorm/test-nfkd.c: New file.
47554         * tests/uninorm/test-u8-nfkd.c: New file.
47555         * tests/uninorm/test-u16-nfkd.c: New file.
47556         * tests/uninorm/test-u32-nfkd.c: New file.
47557         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47558         * tests/uninorm/test-u32-nfkd-big.c: New file.
47559         * modules/uninorm/nfkd-tests: New file.
47560
47561         New module 'uninorm/nfkd'.
47562         * lib/uninorm/nfkd.c: New file.
47563         * modules/uninorm/nfkd: New file.
47564
47565         Tests for module 'uninorm/nfc'.
47566         * tests/uninorm/test-nfc.c: New file.
47567         * tests/uninorm/test-u8-nfc.c: New file.
47568         * tests/uninorm/test-u16-nfc.c: New file.
47569         * tests/uninorm/test-u32-nfc.c: New file.
47570         * tests/uninorm/test-u32-nfc-big.sh: New file.
47571         * tests/uninorm/test-u32-nfc-big.c: New file.
47572         * modules/uninorm/nfc-tests: New file.
47573
47574         New module 'uninorm/nfc'.
47575         * lib/uninorm/nfc.c: New file.
47576         * modules/uninorm/nfc: New file.
47577
47578         Tests for module 'uninorm/nfd'.
47579         * tests/uninorm/test-nfd.c: New file.
47580         * tests/uninorm/test-u8-nfd.c: New file.
47581         * tests/uninorm/test-u16-nfd.c: New file.
47582         * tests/uninorm/test-u32-nfd.c: New file.
47583         * tests/uninorm/test-u32-nfd-big.sh: New file.
47584         * tests/uninorm/test-u32-nfd-big.c: New file.
47585         * tests/uninorm/test-u32-normalize-big.h: New file.
47586         * tests/uninorm/test-u32-normalize-big.c: New file.
47587         * tests/uninorm/NormalizationTest.txt: New file, created from
47588         Unicode 5.1.0 NormalizationTest.txt.
47589         * modules/uninorm/nfd-tests: New file.
47590
47591         New module 'uninorm/nfd'.
47592         * lib/uninorm/nfd.c: New file.
47593         * modules/uninorm/nfd: New file.
47594
47595         New module 'uninorm/u32-normalize'.
47596         * lib/uninorm/u32-normalize.c: New file.
47597         * modules/uninorm/u32-normalize: New file.
47598
47599         New module 'uninorm/u16-normalize'.
47600         * lib/uninorm/u16-normalize.c: New file.
47601         * modules/uninorm/u16-normalize: New file.
47602
47603         New module 'uninorm/u8-normalize'.
47604         * lib/uninorm/u8-normalize.c: New file.
47605         * lib/uninorm/normalize-internal.h: New file.
47606         * lib/uninorm/u-normalize-internal.h: New file.
47607         * modules/uninorm/u8-normalize: New file.
47608
47609         New module 'uninorm/decompose-internal'.
47610         * lib/uninorm/decompose-internal.c: New file.
47611         * modules/uninorm/decompose-internal: New file.
47612
47613         Tests for module 'uninorm/composition'.
47614         * tests/uninorm/test-composition.c: New file.
47615         * modules/uninorm/composition-tests: New file.
47616
47617         New module 'uninorm/composition'.
47618         * lib/uninorm/composition.c: New file.
47619         * lib/uninorm/composition-table.gperf: New file, generated by
47620         gen-uni-tables.
47621         * modules/uninorm/composition: New file.
47622
47623         Tests for module 'uninorm/compat-decomposition'.
47624         * tests/uninorm/test-compat-decomposition.c: New file.
47625         * modules/uninorm/compat-decomposition-tests: New file.
47626
47627         New module 'uninorm/compat-decomposition'.
47628         * lib/uninorm/decompose-internal.h: New file.
47629         * lib/uninorm/compat-decomposition.c: New file.
47630         * modules/uninorm/compat-decomposition: New file.
47631
47632         Tests for module 'uninorm/canonical-decomposition'.
47633         * tests/uninorm/test-canonical-decomposition.c: New file.
47634         * modules/uninorm/canonical-decomposition-tests: New file.
47635
47636         New module 'uninorm/canonical-decomposition'.
47637         * lib/uninorm/canonical-decomposition.c: New file.
47638         * modules/uninorm/canonical-decomposition: New file.
47639
47640         Tests for module 'uninorm/decomposition'.
47641         * tests/uninorm/test-decomposition.c: New file.
47642         * modules/uninorm/decomposition-tests: New file.
47643
47644         New module 'uninorm/decomposition'.
47645         * lib/uninorm/decomposition.c: New file.
47646         * modules/uninorm/decomposition: New file.
47647
47648         New module 'uninorm/decomposition-table'.
47649         * lib/uninorm/decomposition-table.h: New file.
47650         * lib/uninorm/decomposition-table.c: New file.
47651         * lib/uninorm/decomposition-table1.h: New file, generated by
47652         gen-uni-tables.
47653         * lib/uninorm/decomposition-table2.h: New file, generated by
47654         gen-uni-tables.
47655         * modules/uninorm/decomposition-table: New file.
47656
47657         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47658         (UC_DECOMP_*): New enumeration items.
47659         (get_decomposition): New function.
47660         (struct decomp_table): New type.
47661         (output_decomposition, output_decomposition_tables): New functions.
47662         (unicode_composition_exclusions): New variable.
47663         (fill_composition_exclusions, debug_output_composition_tables): New
47664         functions.
47665         (main): Accept one more argument. Invoke fill_composition_exclusions.
47666         Output decomposition and composition tables.
47667
47668         New module 'uninorm/base'.
47669         * lib/uninorm.h: New file.
47670         * lib/unictype.h: Update comment.
47671         * modules/uninorm/base: New file.
47672
47673 2009-02-21  David Lutterkort  <lutter@redhat.com>
47674
47675         Tests for module 'safe-alloc'.
47676         * tests/test-safe-alloc.c: New file.
47677         * modules/safe-alloc-tests: New file.
47678
47679         New module 'safe-alloc'.
47680         * lib/safe-alloc.h: New file.
47681         * lib/safe-alloc.c: New file.
47682         * m4/safe-alloc.m4: New file.
47683         * modules/safe-alloc: New file.
47684         * doc/safe-alloc.texi: New file.
47685         * doc/gnulib.texi: Include it.
47686         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47687         safe-alloc.
47688
47689 2009-02-18  Bruno Haible  <bruno@clisp.org>
47690
47691         Fix link error on non-glibc systems.
47692         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47693         variable.
47694         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47695
47696 2009-02-18  Jim Meyering  <meyering@redhat.com>
47697
47698         fts: avoid used-uninitialized error due to recent change
47699         * lib/fts.c (fts_read): Guard uses of the new member,
47700         parent->fts_n_dirs_remaining, since it's not relevant for
47701         the parent of a directory specified on the command-line.
47702
47703 2009-02-17  James Youngman  <jay@gnu.org>
47704             Bruno Haible  <bruno@clisp.org>
47705
47706         * m4/include_next.m4: Reformulate comment.
47707
47708 2009-02-16  Jim Meyering  <meyering@redhat.com>
47709
47710         fts: add #if guards so that the fts_lgpl module still builds
47711         * lib/fts.c: Guard just-added hash-table-using parts with
47712         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47713         Reported by Simon Josefsson.
47714
47715 2009-02-15  Bruno Haible  <bruno@clisp.org>
47716
47717         * modules/array-mergesort-tests: New file.
47718         * tests/test-array-mergesort.c: New file.
47719
47720         New module 'array-mergesort'.
47721         * modules/array-mergesort: New file.
47722         * lib/array-mergesort.h: New file.
47723
47724 2009-02-15  Bruno Haible  <bruno@clisp.org>
47725
47726         Fix 2009-02-07 commit.
47727         * lib/gen-uni-tables.c (output_predicate, output_category,
47728         output_combclass, output_bidi_category, output_decimal_digit,
47729         output_digit, output_numeric, output_mirror, output_scripts,
47730         output_ident_category, output_simple_mapping): Fix format directives.
47731         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47732
47733 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47734
47735         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47736         fixes are available from IBM.
47737
47738 2009-02-13  Jim Meyering  <meyering@redhat.com>
47739
47740         fts: arrange not to stat non-directories in more cases
47741         This makes GNU find (when it doesn't need to stat each file)
47742         *much* more efficient at traversing reiserfs file systems.
47743         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47744         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47745         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47746         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47747         (leaf_optimization_applies): New function.
47748         (LCO_hash, LCO_compare): New helper functions.
47749         (link_count_optimize_ok): New function.
47750         (fts_stat): Initialize new member (if dir).
47751         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47752         we've just stat'ed a directory.  Skip the stat call when possible.
47753         ---
47754         Note this AFS-related exchange:
47755         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47756         and note find's pioctl call in find/fstype.c.
47757         But that is necessary only if you want to enable the
47758         optimization for AFS, and for now, I don't.
47759
47760         fts: move a function definition "up" (no semantic change)
47761         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47762         "up" to precede upcoming use of a related function.
47763
47764 2009-02-11  Jim Meyering  <meyering@redhat.com>
47765
47766         fts: correct internal computation of nlinks (optimization-related)
47767         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47768         whether the current entry is a directory, so don't test it.
47769
47770 2009-02-10  Bruno Haible  <bruno@clisp.org>
47771
47772         Tests for module 'uniwbrk/ulc-wordbreaks'.
47773         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47774         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47775         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47776
47777         Tests for module 'uniwbrk/u32-wordbreaks'.
47778         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47779         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47780
47781         Tests for module 'uniwbrk/u16-wordbreaks'.
47782         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47783         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47784
47785         Tests for module 'uniwbrk/u8-wordbreaks'.
47786         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47787         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47788
47789 2009-02-10  Bruno Haible  <bruno@clisp.org>
47790
47791         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47792         property.
47793         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47794         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47795         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47796
47797 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47798
47799         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47800         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47801
47802 2009-02-10  Bruno Haible  <bruno@clisp.org>
47803
47804         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47805         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47806         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47807         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47808         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47809         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47810
47811 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47812
47813         * lib/sockets.h (gl_fd_to_handle): New function.
47814
47815         * tests/test-sockets.c: Call gl_fd_to_handle.
47816
47817 2009-02-09  Bruno Haible  <bruno@clisp.org>
47818
47819         * doc/havelib.texi: Document the conventions on bi-arch systems.
47820
47821 2009-02-08  Bruno Haible  <bruno@clisp.org>
47822
47823         Document the AC_LIB_LINKFLAGS macro.
47824         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47825         * doc/gnulib.texi: Include it.
47826
47827 2009-02-08  Bruno Haible  <bruno@clisp.org>
47828
47829         Fix wrong order of sections, compared to TOC.
47830         * doc/gnulib.texi: Include relocatable-maint.texi after the
47831         "Regular expressions" node, not before.
47832
47833 2009-02-08  Bruno Haible  <bruno@clisp.org>
47834
47835         Tests for module 'unicase/totitle'.
47836         * modules/unicase/totitle-tests: New file.
47837
47838         Tests for module 'unicase/tolower'.
47839         * modules/unicase/tolower-tests: New file.
47840
47841         Tests for module 'unicase/toupper'.
47842         * modules/unicase/toupper-tests: New file.
47843         * tests/unicase/test-mapping-part1.h: New file.
47844         * tests/unicase/test-mapping-part2.h: New file.
47845
47846         New module 'unicase/totitle'.
47847         * modules/unicase/totitle: New file.
47848         * lib/unicase/totitle.c: New file.
47849
47850         New module 'unicase/tolower'.
47851         * modules/unicase/tolower: New file.
47852         * lib/unicase/tolower.c: New file.
47853
47854         New module 'unicase/toupper'.
47855         * modules/unicase/toupper: New file.
47856         * lib/unicase/toupper.c: New file.
47857         * lib/unicase/simple-mapping.h: New file.
47858
47859         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47860         (mapping_table): New structure.
47861         (output_simple_mapping): New function.
47862         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47863         * modules/gen-uni-tables (Description): Update.
47864         * lib/unicase/toupper.h: New file, automatically generated by
47865         gen-uni-tables.
47866         * lib/unicase/tolower.h: New file, automatically generated by
47867         gen-uni-tables.
47868         * lib/unicase/totitle.h: New file, automatically generated by
47869         gen-uni-tables.
47870         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47871         gen-uni-tables.
47872         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47873         gen-uni-tables.
47874         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47875         gen-uni-tables.
47876
47877         New module 'unicase/base'.
47878         * modules/unicase/base: New file.
47879         * lib/unicase.h: New file.
47880
47881 2009-02-08  Bruno Haible  <bruno@clisp.org>
47882
47883         New module 'uniwbrk/ulc-wordbreaks'.
47884         * modules/uniwbrk/ulc-wordbreaks: New file.
47885         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47886
47887         New module 'uniwbrk/u32-wordbreaks'.
47888         * modules/uniwbrk/u32-wordbreaks: New file.
47889         * lib/uniwbrk/u32-wordbreaks.c: New file.
47890
47891         New module 'uniwbrk/u16-wordbreaks'.
47892         * modules/uniwbrk/u16-wordbreaks: New file.
47893         * lib/uniwbrk/u16-wordbreaks.c: New file.
47894
47895         New module 'uniwbrk/u8-wordbreaks'.
47896         * modules/uniwbrk/u8-wordbreaks: New file.
47897         * lib/uniwbrk/u8-wordbreaks.c: New file.
47898         * lib/uniwbrk/u-wordbreaks.h: New file.
47899
47900         New module 'uniwbrk/table'.
47901         * modules/uniwbrk/table: New file.
47902         * lib/uniwbrk/wbrktable.h: New file.
47903         * lib/uniwbrk/wbrktable.c: New file.
47904
47905         New module 'uniwbrk/wordbreak-property'.
47906         * modules/uniwbrk/wordbreak-property: New file.
47907         * lib/uniwbrk/wordbreak-property.c: New file.
47908
47909         * lib/gen-uni-tables.c (WBP_*): New enum items.
47910         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47911         (unicode_org_wbp): New variable.
47912         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47913         New functions.
47914         (wbp_table): New structure.
47915         (output_wbp, output_wbrk_tables): New functions.
47916         (main): Accept additional argument. Invoke fill_org_wbp,
47917         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47918         output_wbrk_tables.
47919         * modules/gen-uni-tables (Description): Update.
47920         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47921         gen-uni-tables.
47922
47923         New module 'uniwbrk/base'.
47924         * modules/uniwbrk/base: New file.
47925         * lib/uniwbrk.h: New file.
47926
47927 2009-02-08  Bruno Haible  <bruno@clisp.org>
47928
47929         Update to Unicode 5.1.0.
47930         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47931         U+2185..U+2188.
47932         (is_property_default_ignorable_code_point): Don't include characters
47933         of category Cc or Cs and not-a-characters.
47934         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47935         U+0D79, U+109E, U+109F, U+A60C.
47936         * lib/unictype/bidi_of.h: Regenerated.
47937         * lib/unictype/blocks.h: Regenerated.
47938         * lib/unictype/categ_C.h: Regenerated.
47939         * lib/unictype/categ_Cf.h: Regenerated.
47940         * lib/unictype/categ_Cn.h: Regenerated.
47941         * lib/unictype/categ_L.h: Regenerated.
47942         * lib/unictype/categ_Ll.h: Regenerated.
47943         * lib/unictype/categ_Lm.h: Regenerated.
47944         * lib/unictype/categ_Lo.h: Regenerated.
47945         * lib/unictype/categ_Lu.h: Regenerated.
47946         * lib/unictype/categ_M.h: Regenerated.
47947         * lib/unictype/categ_Mc.h: Regenerated.
47948         * lib/unictype/categ_Me.h: Regenerated.
47949         * lib/unictype/categ_Mn.h: Regenerated.
47950         * lib/unictype/categ_N.h: Regenerated.
47951         * lib/unictype/categ_Nd.h: Regenerated.
47952         * lib/unictype/categ_Nl.h: Regenerated.
47953         * lib/unictype/categ_No.h: Regenerated.
47954         * lib/unictype/categ_P.h: Regenerated.
47955         * lib/unictype/categ_Pd.h: Regenerated.
47956         * lib/unictype/categ_Pe.h: Regenerated.
47957         * lib/unictype/categ_Pf.h: Regenerated.
47958         * lib/unictype/categ_Pi.h: Regenerated.
47959         * lib/unictype/categ_Po.h: Regenerated.
47960         * lib/unictype/categ_Ps.h: Regenerated.
47961         * lib/unictype/categ_S.h: Regenerated.
47962         * lib/unictype/categ_Sk.h: Regenerated.
47963         * lib/unictype/categ_Sm.h: Regenerated.
47964         * lib/unictype/categ_So.h: Regenerated.
47965         * lib/unictype/categ_of.h: Regenerated.
47966         * lib/unictype/combining.h: Regenerated.
47967         * lib/unictype/ctype_alnum.h: Regenerated.
47968         * lib/unictype/ctype_alpha.h: Regenerated.
47969         * lib/unictype/ctype_graph.h: Regenerated.
47970         * lib/unictype/ctype_lower.h: Regenerated.
47971         * lib/unictype/ctype_print.h: Regenerated.
47972         * lib/unictype/ctype_punct.h: Regenerated.
47973         * lib/unictype/ctype_upper.h: Regenerated.
47974         * lib/unictype/decdigit.h: Regenerated.
47975         * lib/unictype/digit.h: Regenerated.
47976         * lib/unictype/mirror.h: Regenerated.
47977         * lib/unictype/numeric.h: Regenerated.
47978         * lib/unictype/pr_alphabetic.h: Regenerated.
47979         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47980         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47981         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47982         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47983         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47984         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47985         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47986         * lib/unictype/pr_combining.h: Regenerated.
47987         * lib/unictype/pr_dash.h: Regenerated.
47988         * lib/unictype/pr_decimal_digit.h: Regenerated.
47989         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47990         * lib/unictype/pr_deprecated.h: Regenerated.
47991         * lib/unictype/pr_diacritic.h: Regenerated.
47992         * lib/unictype/pr_extender.h: Regenerated.
47993         * lib/unictype/pr_format_control.h: Regenerated.
47994         * lib/unictype/pr_grapheme_base.h: Regenerated.
47995         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47996         * lib/unictype/pr_grapheme_link.h: Regenerated.
47997         * lib/unictype/pr_id_continue.h: Regenerated.
47998         * lib/unictype/pr_id_start.h: Regenerated.
47999         * lib/unictype/pr_ideographic.h: Regenerated.
48000         * lib/unictype/pr_ignorable_control.h: Regenerated.
48001         * lib/unictype/pr_lowercase.h: Regenerated.
48002         * lib/unictype/pr_math.h: Regenerated.
48003         * lib/unictype/pr_numeric.h: Regenerated.
48004         * lib/unictype/pr_other_alphabetic.h: Regenerated.
48005         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
48006         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
48007         * lib/unictype/pr_other_id_continue.h: Regenerated.
48008         * lib/unictype/pr_other_lowercase.h: Regenerated.
48009         * lib/unictype/pr_other_math.h: Regenerated.
48010         * lib/unictype/pr_punctuation.h: Regenerated.
48011         * lib/unictype/pr_sentence_terminal.h: Regenerated.
48012         * lib/unictype/pr_soft_dotted.h: Regenerated.
48013         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
48014         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
48015         * lib/unictype/pr_unified_ideograph.h: Regenerated.
48016         * lib/unictype/pr_uppercase.h: Regenerated.
48017         * lib/unictype/pr_xid_continue.h: Regenerated.
48018         * lib/unictype/pr_xid_start.h: Regenerated.
48019         * lib/unictype/pr_zero_width.h: Regenerated.
48020         * lib/unictype/scripts.h: Regenerated.
48021         * lib/unictype/scripts_byname.gperf: Regenerated.
48022         * lib/unictype/sy_java_ident.h: Regenerated.
48023         * lib/unilbrk/lbrkprop1.h: Regenerated.
48024         * lib/unilbrk/lbrkprop2.h: Regenerated.
48025         * tests/unictype/test-categ_C.c: Regenerated.
48026         * tests/unictype/test-categ_Cf.c: Regenerated.
48027         * tests/unictype/test-categ_Cn.c: Regenerated.
48028         * tests/unictype/test-categ_L.c: Regenerated.
48029         * tests/unictype/test-categ_Ll.c: Regenerated.
48030         * tests/unictype/test-categ_Lm.c: Regenerated.
48031         * tests/unictype/test-categ_Lo.c: Regenerated.
48032         * tests/unictype/test-categ_Lu.c: Regenerated.
48033         * tests/unictype/test-categ_M.c: Regenerated.
48034         * tests/unictype/test-categ_Mc.c: Regenerated.
48035         * tests/unictype/test-categ_Me.c: Regenerated.
48036         * tests/unictype/test-categ_Mn.c: Regenerated.
48037         * tests/unictype/test-categ_N.c: Regenerated.
48038         * tests/unictype/test-categ_Nd.c: Regenerated.
48039         * tests/unictype/test-categ_Nl.c: Regenerated.
48040         * tests/unictype/test-categ_No.c: Regenerated.
48041         * tests/unictype/test-categ_P.c: Regenerated.
48042         * tests/unictype/test-categ_Pd.c: Regenerated.
48043         * tests/unictype/test-categ_Pe.c: Regenerated.
48044         * tests/unictype/test-categ_Pf.c: Regenerated.
48045         * tests/unictype/test-categ_Pi.c: Regenerated.
48046         * tests/unictype/test-categ_Po.c: Regenerated.
48047         * tests/unictype/test-categ_Ps.c: Regenerated.
48048         * tests/unictype/test-categ_S.c: Regenerated.
48049         * tests/unictype/test-categ_Sk.c: Regenerated.
48050         * tests/unictype/test-categ_Sm.c: Regenerated.
48051         * tests/unictype/test-categ_So.c: Regenerated.
48052         * tests/unictype/test-ctype_alnum.c: Regenerated.
48053         * tests/unictype/test-ctype_alpha.c: Regenerated.
48054         * tests/unictype/test-ctype_graph.c: Regenerated.
48055         * tests/unictype/test-ctype_lower.c: Regenerated.
48056         * tests/unictype/test-ctype_print.c: Regenerated.
48057         * tests/unictype/test-ctype_punct.c: Regenerated.
48058         * tests/unictype/test-ctype_upper.c: Regenerated.
48059         * tests/unictype/test-decdigit.h: Regenerated.
48060         * tests/unictype/test-digit.h: Regenerated.
48061         * tests/unictype/test-numeric.h: Regenerated.
48062         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48063         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48064         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48065         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48066         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48067         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48068         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48069         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48070         * tests/unictype/test-pr_combining.c: Regenerated.
48071         * tests/unictype/test-pr_dash.c: Regenerated.
48072         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48073         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48074         * tests/unictype/test-pr_deprecated.c: Regenerated.
48075         * tests/unictype/test-pr_diacritic.c: Regenerated.
48076         * tests/unictype/test-pr_extender.c: Regenerated.
48077         * tests/unictype/test-pr_format_control.c: Regenerated.
48078         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48079         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48080         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48081         * tests/unictype/test-pr_id_continue.c: Regenerated.
48082         * tests/unictype/test-pr_id_start.c: Regenerated.
48083         * tests/unictype/test-pr_ideographic.c: Regenerated.
48084         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48085         * tests/unictype/test-pr_lowercase.c: Regenerated.
48086         * tests/unictype/test-pr_math.c: Regenerated.
48087         * tests/unictype/test-pr_numeric.c: Regenerated.
48088         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48089         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48090         Regenerated.
48091         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48092         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48093         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48094         * tests/unictype/test-pr_other_math.c: Regenerated.
48095         * tests/unictype/test-pr_punctuation.c: Regenerated.
48096         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48097         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48098         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48099         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48100         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48101         * tests/unictype/test-pr_uppercase.c: Regenerated.
48102         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48103         * tests/unictype/test-pr_xid_start.c: Regenerated.
48104         * tests/unictype/test-pr_zero_width.c: Regenerated.
48105
48106         Update to Unicode 5.1.0.
48107         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48108         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48109         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48110         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48111         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48112         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48113         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48114         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48115         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48116         (nonspacing_table_ind): Update.
48117         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48118
48119         Update to Unicode 5.1.0.
48120         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48121         code transform.
48122         * lib/uniname/uniname.c (unicode_character_name,
48123         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48124         * lib/uniname/uninames.h: Regenerated.
48125         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48126
48127 2009-02-07  Bruno Haible  <bruno@clisp.org>
48128
48129         Merge gen-ctype and gen-lbrk into a single program.
48130         * lib/gen-uni-tables.c: New file, incorporating
48131         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48132         Add directory prefixes to the names of the generated files.
48133         * lib/unictype/gen-ctype.c: Remove file.
48134         * lib/unilbrk/gen-lbrk.c: Remove file.
48135         * modules/gen-uni-tables: New file.
48136         * modules/unictype/gen-ctype: Remove file.
48137         * modules/unilbrk/gen-lbrk: Remove file.
48138
48139 2009-02-07  Bruno Haible  <bruno@clisp.org>
48140
48141         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48142
48143         New module 'unistr/u32-strcoll'.
48144         * modules/unistr/u32-strcoll: New file.
48145         * lib/unistr/u32-strcoll.c: New file.
48146
48147         New module 'unistr/u16-strcoll'.
48148         * modules/unistr/u16-strcoll: New file.
48149         * lib/unistr/u16-strcoll.c: New file.
48150
48151         New module 'unistr/u8-strcoll'.
48152         * modules/unistr/u8-strcoll: New file.
48153         * lib/unistr/u8-strcoll.c: New file.
48154         * lib/unistr/u-strcoll.h: New file.
48155
48156 2009-02-07  Bruno Haible  <bruno@clisp.org>
48157
48158         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48159         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48160         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48161         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48162         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48163         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48164
48165 2009-02-07  Bruno Haible  <bruno@clisp.org>
48166
48167         Make 64-bit clean.
48168         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48169         output_combclass, output_bidi_category, output_decimal_digit,
48170         output_digit, output_numeric, output_mirror, output_scripts,
48171         output_ident_category): Use proper width specifier in format strings.
48172
48173 2009-02-07  Bruno Haible  <bruno@clisp.org>
48174
48175         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48176         failure behaviour.
48177
48178 2009-02-07  Jim Meyering  <meyering@redhat.com>
48179
48180         regex: avoid compilation failure with upcoming gcc-4.4
48181         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48182         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48183         "... error: integer overflow in preprocessor expression".
48184
48185 2009-02-05  Ben Pfaff  <blp@gnu.org>
48186
48187         Fix link errors on Windows when close module is used.
48188         * modules/close: Add $(LIB_CLOSE) to Link section.
48189         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48190         $(LIB_CLOSE) on Windows.
48191
48192 2009-02-05  Jim Meyering  <meyering@redhat.com>
48193
48194         still avoid unused-parameter warnings, but do it cleanly
48195         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48196         (get_fs_usage): Cast to void instead.
48197         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48198         (dev_from_mount_options, read_file_system_list): Cast to void.
48199         Prompted by Bruno Haible.
48200
48201 2009-02-04  Jim Meyering  <meyering@redhat.com>
48202
48203         fsusage.c: correct copyright year
48204         * lib/fsusage.c: Reflect year in which the change is pushed into
48205
48206         avoid misc. warnings
48207         * lib/fsusage.c (UNUSED_PARAM): Define.
48208         (get_fs_usage): Mark parameter "disk" as unused.
48209         * lib/getugroups.c (getgrent): Use "void" in prototype.
48210         * lib/mountlist.c: Mark unused parameters.
48211         (read_file_system_list): Declare a local with "const".
48212         * lib/nanosleep.c (getnow): Declare static.
48213         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48214
48215         dirfd: set errno upon failure
48216         * lib/dirfd.c: Include <errno.h>.
48217         Set errno to ENOTSUP when returning -1.
48218         * modules/dirfd (Depends-on): Add errno.
48219         Suggested by John Kodis <kodis@comcast.net>.
48220
48221 2009-02-01  Bruno Haible  <bruno@clisp.org>
48222
48223         Don't assume sizeof (long) >= sizeof (void *).
48224         * lib/memcmp.c: Include stdint.h.
48225         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48226         srcp2 to 'const byte *'.
48227         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48228         types to uintptr_t.
48229         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48230         * modules/memcmp (Depends-on): Add stdint.
48231         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48232
48233 2009-01-30  Eric Blake  <ebb9@byu.net>
48234
48235         fix more require-before-expand issues
48236         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48237         expand, AC_PROG_AWK.
48238         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48239
48240 2009-01-28  Eric Blake  <ebb9@byu.net>
48241
48242         version-etc: use consistent URL formatting
48243         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48244         Improve formatting.  Use fputs for string without %.
48245
48246 2009-01-28  Jim Meyering  <meyering@redhat.com>
48247
48248         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48249         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48250         "underquoted definition of NAME" from autoconf-2.59.
48251
48252 2009-01-28  Bruno Haible  <bruno@clisp.org>
48253
48254         * doc/gnulib.texi: Add "Obsolete modules" to index.
48255
48256 2009-01-28  Jim Meyering  <meyering@redhat.com>
48257
48258         useless-if-before-free: recognize more variants
48259         * build-aux/useless-if-before-free: Also recognize e.g.,
48260         if (NULL != p) free (p);
48261
48262 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48263
48264         test-getaddrinfo: skip (don't fail) this test when there's no network
48265         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48266         on the presumption that it means you lack network access.
48267
48268 2009-01-26  Jim Meyering  <meyering@redhat.com>
48269
48270         fflush: avoid warnings on modern systems
48271         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48272         pos and result, into scopes where they're used.
48273
48274 2009-01-26  Eric Blake  <ebb9@byu.net>
48275
48276         Silence warning reintroduced by recent extensions patch.
48277         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48278         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48279         autoconf.
48280
48281         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48282         * m4/00gnulib.m4: New file.
48283         * gnulib-tool (func_get_filelist): Always use it.
48284         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48285         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48286
48287 2009-01-25  Bruno Haible  <bruno@clisp.org>
48288
48289         Make test-quotearg work on MacOS X and AIX.
48290         * tests/test-quotearg.sh: New file.
48291         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
48292         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
48293         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
48294         include <libintl.h>.
48295         (fake_locale): Remove variable.
48296         (gettext, dgettext, dcgettext): Remove functions.
48297         (main): Instead of setting a fake locale, set a real locale. Call
48298         textdomain and bindtextdomain.
48299         * modules/quotearg-tests (Files): Add the new files.
48300         (Depends-on): Add gettext, setenv, unsetenv.
48301         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48302         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48303         Augment TESTS_ENVIRONMENT.
48304
48305 2009-01-25  Bruno Haible  <bruno@clisp.org>
48306
48307         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48308         fr_FR.ISO8859-1 locale on MacOS X.
48309         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48310         ja_JP.eucJP locale on MacOS X.
48311         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48312         zh_CN.GB18030 locale on MacOS X.
48313
48314 2009-01-25  Bruno Haible  <bruno@clisp.org>
48315
48316         Avoid link errors on MacOS X 10.3.
48317         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48318         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48319
48320 2009-01-25  Bruno Haible  <bruno@clisp.org>
48321
48322         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48323         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48324         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48325         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48326         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
48327         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48328         posix_spawnattr_init, posix_spawnattr_setsigmask,
48329         posix_spawnattr_setflags, posix_spawnattr_destroy.
48330
48331         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48332         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48333         * modules/execute (Files): Remove m4/posix_spawn.m4.
48334         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48335         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48336         posix_spawnattr_init, posix_spawnattr_setsigmask,
48337         posix_spawnattr_setflags, posix_spawnattr_destroy.
48338
48339 2009-01-25  Bruno Haible  <bruno@clisp.org>
48340
48341         * lib/glthread/threadlib.c: Include <stdlib.h>.
48342
48343 2009-01-25  Bruno Haible  <bruno@clisp.org>
48344
48345         * lib/glthread/threadlib.c (dummy): New declaration.
48346
48347 2009-01-25  Bruno Haible  <bruno@clisp.org>
48348
48349         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48350         multibyte characters also for the GB18030 encoding. Don't crash when
48351         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48352
48353 2009-01-25  Bruno Haible  <bruno@clisp.org>
48354
48355         Avoid redefining 'struct random_data' on OSF/1 5.1.
48356         * lib/stdlib.in.h: Include <random.h> if it exists.
48357         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48358         HAVE_RANDOM_H. Include <random.h> when testing whether
48359         'struct random_data' exists.
48360         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48361
48362 2009-01-25  Bruno Haible  <bruno@clisp.org>
48363
48364         Don't install charset.alias on MacOS X >= 10.3.
48365         * lib/localcharset.c (DARWIN7): New macro.
48366         (get_charset_aliases): Hardcode the result for Darwin7.
48367         * modules/localcharset (install-exec-local): Don't install
48368         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
48369
48370 2009-01-25  Bruno Haible  <bruno@clisp.org>
48371
48372         Don't install charset.alias on mingw and Cygwin.
48373         * modules/localcharset (install-exec-local): Don't install
48374         charset.alias on mingw and Cygwin, if the file does not yet exist.
48375         The result for these platforms is hardcoded in localcharset.c.
48376
48377 2009-01-25  Bruno Haible  <bruno@clisp.org>
48378
48379         Make it possible again to use AC_GNU_SOURCE together with gnulib.
48380         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
48381         before requiring AC_USE_SYSTEM_EXTENSIONS.
48382
48383 2009-01-25  Jim Meyering  <meyering@redhat.com>
48384
48385         c-strtod: avoid warnings
48386         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
48387         "assignment discards qualifiers from pointer target type" warnings.
48388
48389 2009-01-24  Bruno Haible  <bruno@clisp.org>
48390
48391         Add support for non-UTF-8 locales on MacOS X.
48392         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
48393         canonical encodings. For Darwin 7 and newer, don't map traditional
48394         encodings to UTF-8.
48395         Reported by Vincent Lefevre <vincent@vinc17.org>
48396         at <http://savannah.gnu.org/bugs/?25235>.
48397
48398 2009-01-24  Bruno Haible  <bruno@clisp.org>
48399
48400         * doc/gnulib.texi (Obsolete modules): New section.
48401         Reported by Mike Frysinger <vapier@gentoo.org>.
48402
48403 2009-01-24  Bruno Haible  <bruno@clisp.org>
48404
48405         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
48406         (%.dvi): New rule.
48407
48408 2009-01-24  Bruno Haible  <bruno@clisp.org>
48409
48410         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
48411         Reported by Eric Blake.
48412
48413 2009-01-24  Bruno Haible  <bruno@clisp.org>
48414
48415         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
48416         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
48417         Reported by Gary V. Vaughan <gary@gnu.org>.
48418
48419 2009-01-24  Bruno Haible  <bruno@clisp.org>
48420
48421         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48422
48423 2009-01-23  Bruno Haible  <bruno@clisp.org>
48424
48425         Make c-strtod, c-strtold usable in libraries.
48426         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48427         (C_STRTOD): Call strdup instead of xstrdup.
48428         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48429         * modules/c-strtold (Depends-on): Likewise.
48430         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48431         * NEWS: Mention the change.
48432         Reported by Michael Gold <mgold@ncf.ca>.
48433
48434 2009-01-23  Jim Meyering  <meyering@redhat.com>
48435
48436         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48437         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48438         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48439
48440 2009-01-23  Simon Josefsson  <simon@josefsson.org>
48441
48442         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
48443         GNU CoreUtils.
48444         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
48445         * modules/version-etc (Description): Update.
48446
48447 2009-01-22  Bruno Haible  <bruno@clisp.org>
48448
48449         Cache the C locale object.
48450         * lib/c-strtod.c (c_locale_cache): New variable.
48451         (c_locale): New function.
48452         (C_STRTOD): Use it, and don't call freelocale.
48453         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
48454         Suggested by Paolo Bonzini.
48455
48456 2009-01-21  Bruno Haible  <bruno@clisp.org>
48457
48458         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
48459         conditions other than overflow.
48460
48461 2009-01-21  Bruno Haible  <bruno@clisp.org>
48462
48463         * lib/c-strtod.c: Include errno.h.
48464         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48465         value from STRTOD_L and STRTOD.
48466
48467 2009-01-21  Bruno Haible  <bruno@clisp.org>
48468         and Jim Meyering  <meyering@redhat.com>
48469
48470         nanosleep: skip configure test (fail it) for apple universal builds
48471         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
48472         universal builds, assume that nanosleep does not work.
48473         * modules/nanosleep (Depends-on): Add multiarch.
48474
48475         mktime: skip configure test (fail it) for apple universal builds
48476         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
48477         universal builds, assume that mktime does not work.
48478         * modules/mktime (Depends-on): Add multiarch.
48479
48480 2009-01-21  Eric Blake  <ebb9@byu.net>
48481
48482         multiarch: avoid expand-before-require warning
48483         * modules/multiarch (configure.ac): Require, rather than expand,
48484         gl_MULTIARCH.
48485         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
48486         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
48487         enforce that all clients require it.  Partial reversion of
48488         2008-12-29 patch.
48489
48490         error: avoid expand-before-require warning
48491         * modules/errno (configure.ac): Require, rather than expand,
48492         gl_HEADER_ERRNO_H.
48493         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
48494         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
48495         enforce that all clients require it.
48496
48497         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
48498         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
48499         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
48500         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
48501
48502 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
48503
48504         Revert:
48505         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48506
48507         regex: do not depend on obsolete modules.
48508         * modules/regex: Remove memcmp and memmove.
48509
48510 2009-01-20  Bruno Haible  <bruno@clisp.org>
48511
48512         Make the 'link' module link on Windows NT 4.
48513         * lib/link.c (_WIN32_WINNT): Don't define.
48514         (CreateHardLinkFuncType): New type.
48515         (CreateHardLinkFunc, initialized): New variables.
48516         (initialize): New function.
48517         (link): Invoke CreateHardLink indirectly through the function pointer.
48518
48519 2009-01-20  Bruno Haible  <bruno@clisp.org>
48520
48521         Fix compilation failure on mingw.
48522         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48523
48524 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48525
48526         * doc/c-strtod.texi: Mention a couple of restrictions.
48527
48528 2009-01-20  Jim Meyering  <meyering@redhat.com>
48529
48530         gettimeofday: move more declarations out of functions
48531         * lib/gettimeofday.c: Move extern declarations of tzset and
48532         gmtime out of containing functions.  Prompted by Bruno Haible.
48533
48534 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48535
48536         regex: do not depend on obsolete modules.
48537         * modules/regex: Remove memcmp and memmove.
48538
48539 2009-01-19  Bruno Haible  <bruno@clisp.org>
48540
48541         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48542         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48543         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48544         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48545         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48546
48547 2009-01-19  Bruno Haible  <bruno@clisp.org>
48548
48549         * tests/test-link.c: Include <errno.h>.
48550         (main): Exit with code 77 when a hard link cannot be created due to
48551         the file system.
48552         * tests/test-link.sh: Skip test when a hard link cannot be created due
48553         to the file system.
48554         Suggested by Eric Blake.
48555
48556 2009-01-19  Martin Lambers  <marlam@marlam.de>
48557
48558         * modules/link-tests: New file.
48559         * tests/test-link.sh: New file.
48560         * tests/test-link.c: New file.
48561
48562 2009-01-19  Eric Blake  <ebb9@byu.net>
48563
48564         doc: mention another function added in cygwin 1.7.0
48565         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48566         Another new function in cygwin 1.7.
48567
48568 2009-01-19  Bruno Haible  <bruno@clisp.org>
48569
48570         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48571         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48572         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48573         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48574         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48575         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48576         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48577         * m4/md4.m4 (gl_MD4): Likewise.
48578         * m4/md5.m4 (gl_MD5): Likewise.
48579         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48580         * m4/sha1.m4 (gl_SHA1): Likewise.
48581         * m4/sha256.m4 (gl_SHA256): Likewise.
48582         * m4/sha512.m4 (gl_SHA512): Likewise.
48583
48584 2009-01-19  Bruno Haible  <bruno@clisp.org>
48585
48586         * modules/uniname/uniname-tests (Depends-on): Add progname.
48587         * tests/uniname/test-uninames.c: Include progname.h.
48588         (main): Call set_program_name.
48589
48590         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48591         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48592         (main): Call set_program_name.
48593
48594         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48595         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48596         (main): Call set_program_name.
48597
48598         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48599         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48600         (main): Call set_program_name.
48601
48602         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48603         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48604         (main): Call set_program_name.
48605
48606         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48607         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48608         (main): Call set_program_name.
48609
48610         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48611         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48612         (main): Call set_program_name.
48613
48614         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48615         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48616         (main): Call set_program_name.
48617
48618         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48619         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48620         (main): Call set_program_name.
48621
48622 2009-01-19  Eric Blake  <ebb9@byu.net>
48623
48624         test-unistd: test previous patch
48625         * tests/test-unistd.c: Test *_FILENO macros.
48626
48627         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48628         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48629         Guarantee a definition.
48630         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48631         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48632         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48633         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48634         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48635         Likewise.
48636         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48637         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48638         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48639         Likewise.
48640         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48641         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48642         (STDERR_FILENO): Likewise.
48643         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48644         (STDERR_FILENO): Likewise.
48645         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48646         (STDERR_FILENO): Likewise.
48647         Reported by Elbert Pol.
48648
48649 2009-01-19  Eric Blake  <ebb9@byu.net>
48650
48651         doc: mention more functions added in cygwin 1.7.0
48652         * doc/posix-functions/abort.texi (abort): Update wording related
48653         to cygwin.
48654         * doc/posix-functions/daylight.texi (daylight): Likewise.
48655         * doc/posix-functions/optarg.texi (optarg): Likewise.
48656         * doc/posix-functions/optarg.texi (opterr): Likewise.
48657         * doc/posix-functions/optarg.texi (optind): Likewise.
48658         * doc/posix-functions/optarg.texi (optopt): Likewise.
48659         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48660         worked in 1.5.x, and was withdrawn in 1.7.
48661         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48662         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48663         cygwin versions.
48664         * doc/posix-functions/perror.texi (perror): Likewise.
48665         * doc/posix-functions/printf.texi (printf): Likewise.
48666         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48667         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48668         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48669         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48670         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48671         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48672         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48673         Likewise.
48674         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48675         Likewise.
48676         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48677         this function.
48678         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48679         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48680         Likewise.
48681         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48682         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48683         * doc/posix-functions/confstr.texi (confstr): Likewise.
48684         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48685         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48686         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48687         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48688         * doc/posix-functions/fputws.texi (fputws): Likewise.
48689         * doc/posix-functions/fwide.texi (fwide): Likewise.
48690         * doc/posix-functions/getwc.texi (getwc): Likewise.
48691         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48692         * doc/posix-functions/putwc.texi (putwc): Likewise.
48693         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48694         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48695         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48696         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48697         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48698         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48699         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48700         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48701         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48702         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48703         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48704
48705 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48706
48707         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48708         * lib/ioctl.c: Include <sys/ioctl.h>.
48709
48710 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48711
48712         * modules/getdate-tests (Depends-on): Add progname.
48713         * tests/test-getdate.c: Use progname module, to avoid link errors
48714         on non-glibc systems.
48715
48716 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48717
48718         * modules/filenamecat-tests (Depends-on): Add progname.
48719         * modules/fstrcmp-tests (Depends-on): Likewise.
48720
48721         * tests/test-filenamecat.c: Use progname module, to avoid link
48722         errors on non-glibc systems.
48723         * tests/test-fstrcmp.c: Likewise.
48724
48725 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48726
48727         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48728         * lib/gettimeofday.c: Move extern declaration out of function.
48729
48730 2009-01-18  Bruno Haible  <bruno@clisp.org>
48731
48732         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48733         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48734         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48735
48736 2009-01-18  Bruno Haible  <bruno@clisp.org>
48737
48738         * lib/strftime.c (MEMPCPY): Remove unused macro.
48739         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48740
48741 2009-01-18  Martin Lambers  <marlam@marlam.de>
48742
48743         New module 'link'.
48744         * lib/unistd.in.h (link): New declaration.
48745         * lib/link.c: New file.
48746         * m4/link.m4: New file.
48747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48748         HAVE_LINK.
48749         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48750         * modules/link: New file.
48751         * doc/posix-functions/link.texi: Mention the new module.
48752
48753 2009-01-18  Bruno Haible  <bruno@clisp.org>
48754
48755         * tests/test-avltree_list.c (main): Call set_program_name.
48756         * tests/test-avltree_oset.c (main): Likewise.
48757         * tests/test-obstack-printf.c: Include progname.h.
48758         (main): Call set_program_name.
48759         * tests/test-quotearg.c: Include progname.h.
48760         (main): Call set_program_name.
48761         * tests/test-xmemdup0.c: Include progname.h.
48762         (main): Call set_program_name.
48763
48764 2009-01-18  Bruno Haible  <bruno@clisp.org>
48765
48766         New module 'alphasort'.
48767         * lib/dirent.in.h (alphasort): New declaration.
48768         * lib/alphasort.c: New file, from glibc with modifications.
48769         * m4/alphasort.m4: New file.
48770         * modules/alphasort: New file.
48771         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48772         HAVE_ALPHASORT.
48773         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48774         HAVE_ALPHASORT.
48775         * doc/posix-functions/alphasort.texi: Mention the new module and the
48776         portability problems.
48777
48778 2009-01-18  Bruno Haible  <bruno@clisp.org>
48779
48780         New module 'scandir'.
48781         * lib/dirent.in.h (scandir): New declaration.
48782         * lib/scandir.c: New file, from glibc with modifications.
48783         * m4/scandir.m4: New file.
48784         * modules/scandir: New file.
48785         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48786         HAVE_SCANDIR.
48787         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48788         HAVE_SCANDIR.
48789         * doc/posix-functions/scandir.texi: Mention the new module and the
48790         portability problems.
48791
48792 2009-01-17  Bruno Haible  <bruno@clisp.org>
48793
48794         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48795         Update documentation.
48796         (func_remove_suffix): Escape all dots in the suffix. Update
48797         documentation.
48798         (func_filter_filelist): Update documentation.
48799         Reported by Ralf Wildenhues.
48800
48801 2009-01-17  Bruno Haible  <bruno@clisp.org>
48802
48803         * modules/dprintf-posix-tests: New file.
48804         * tests/test-dprintf-posix.sh: New file.
48805         * tests/test-dprintf-posix.c: New file.
48806
48807         New modules 'dprintf', 'dprintf-posix'.
48808         * lib/stdio.in.h (dprintf): New declaration.
48809         * lib/dprintf.c: New file.
48810         * m4/dprintf.m4: New file.
48811         * m4/dprintf-posix.m4: New file.
48812         * modules/dprintf: New file.
48813         * modules/dprintf-posix: New file.
48814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48815         HAVE_DPRINTF, REPLACE_DPRINTF.
48816         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48817         HAVE_DPRINTF, REPLACE_DPRINTF.
48818         * doc/posix-functions/dprintf.texi: Mention the new modules.
48819
48820 2009-01-17  Bruno Haible  <bruno@clisp.org>
48821
48822         * modules/vdprintf-posix-tests: New file.
48823         * tests/test-vdprintf-posix.sh: New file.
48824         * tests/test-vdprintf-posix.c: New file.
48825
48826         New modules 'vdprintf', 'vdprintf-posix'.
48827         * lib/stdio.in.h (vdprintf): New declaration.
48828         * lib/vdprintf.c: New file.
48829         * m4/vdprintf.m4: New file.
48830         * m4/vdprintf-posix.m4: New file.
48831         * modules/vdprintf: New file.
48832         * modules/vdprintf-posix: New file.
48833         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48834         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48835         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48836         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48837         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48838
48839 2009-01-17  Bruno Haible  <bruno@clisp.org>
48840
48841         Fix replacement of fopen on mingw.
48842         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48843         mingw.
48844
48845 2009-01-17  Bruno Haible  <bruno@clisp.org>
48846
48847         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48848         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48849
48850 2009-01-17  Bruno Haible  <bruno@clisp.org>
48851
48852         Avoid test-fflush2.sh failure on mingw.
48853         * tests/test-fflush2.c: Include binary-io.h.
48854         (main): Put standard input into binary mode.
48855         * modules/fflush-tests (Depends-on): Add binary-io.
48856
48857 2009-01-17  Bruno Haible  <bruno@clisp.org>
48858
48859         * lib/wchar.in.h: In another particular situation, include only the
48860         system's <wchar.h> file.
48861         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48862         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48863         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48864
48865 2009-01-17  Bruno Haible  <bruno@clisp.org>
48866
48867         Support for stripping executables in --enable-relocatable.
48868         * build-aux/install-reloc: Expect one more argument, or an environment
48869         variable RELOC_STRIP_PROG. If set, strip the destination program and
48870         its wrapper.
48871         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48872         RELOC_STRIP_PROG.
48873         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48874         to set RELOCATABLE_STRIP.
48875         * NEWS: Mention the new Makefile requirement.
48876
48877 2009-01-17  Bruno Haible  <bruno@clisp.org>
48878
48879         * build-aux/install-reloc: Remove debugging information left over by
48880         C compiler on MacOS X.
48881
48882 2009-01-17  Bruno Haible  <bruno@clisp.org>
48883
48884         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48885         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48886         _NSGetExecutablePath.
48887
48888 2009-01-16  Jim Meyering  <meyering@redhat.com>
48889
48890         strerror: avoid warnings about discarding "const"
48891         * lib/strerror.c (rpl_strerror): Instead of returning a const
48892         string from each and every "case", use a variable, and add a single
48893         cast after the switch.
48894
48895 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48896
48897         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48898
48899 2009-01-16  Bruno Haible  <bruno@clisp.org>
48900
48901         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48902         array initializer syntax that also works in C++ mode.
48903         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48904
48905 2009-01-16  Jim Meyering  <meyering@redhat.com>
48906
48907         poll: suppress a warning
48908         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48909         to ignore "...unsigned expression < 0 is always false" warnings.
48910
48911 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48912
48913         poll: remove declarations of unused variables
48914         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48915         sockbuf and optlen.
48916
48917 2009-01-15  Bruno Haible  <bruno@clisp.org>
48918
48919         Make fflush-after-ungetc POSIX compliant on BSD systems.
48920         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48921         (clear_ungetc_buffer): Implement also for other systems.
48922         (rpl_fflush): On glibc systems, invoke
48923         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48924         clear_ungetc_buffer after fetching the stream's position, not before.
48925
48926 2009-01-15  Bruno Haible  <bruno@clisp.org>
48927
48928         Make fflush-after-ungetc POSIX compliant on glibc systems.
48929         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48930         after ungetc.
48931         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48932         (rpl_fflush): On glibc systems, simply call the system's fflush
48933         function after clearing the ungetc buffer.
48934         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48935         Instead, lseek only to the end of file, then use the system's fseeko
48936         for the rest. On glibc systems, reset the EOF indicator bit.
48937
48938 2009-01-15  Jim Meyering  <meyering@redhat.com>
48939
48940         openmp.m4: revert quote-adding change, for portability to older autoconf
48941         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48942         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48943         Simon Josefsson noticed the problem when using autoconf-2.61.
48944
48945 2009-01-15  Bruno Haible  <bruno@clisp.org>
48946
48947         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48948         * tests/test-fflush2.c (ASSERT): Always fail.
48949         (main): Add two tests for fflush() after ungetc(), taking into account
48950         the Austin Group's clarification.
48951         Suggested by Eric Blake.
48952
48953 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48954
48955         mktime.m4: remove K&R-style function prototypes
48956         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48957         for the Sun C++ compiler.
48958
48959 2009-01-14  Bruno Haible  <bruno@clisp.org>
48960
48961         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48962         while including <wchar.h>.
48963         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48964         the system's <wchar.h> file.
48965         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48966
48967 2009-01-14  Bruno Haible  <bruno@clisp.org>
48968
48969         * m4/csharp.m4: Don't mention gettext on the serial number line.
48970         * m4/csharpexec.m4: Likewise.
48971         * m4/eaccess.m4: Likewise.
48972         * m4/javaexec.m4: Likewise.
48973         * m4/sig_atomic_t.m4: Likewise.
48974         * m4/tmpdir.m4: Likewise.
48975         * m4/intldir.m4: Bump gettext version.
48976         * m4/lib-ld.m4: Likewise.
48977
48978 2009-01-14  Bruno Haible  <bruno@clisp.org>
48979
48980         * lib/progname.c (set_program_name): Add more comments.
48981         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48982
48983 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48984
48985         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48986         were sys/stat.h does not define it.
48987
48988 2009-01-14  Jim Meyering  <meyering@redhat.com>
48989
48990         many *.m4 files: improve m4 quoting
48991         99% of this change was performed by running the following commands:
48992         git ls-files | grep '\.m4$' | xargs perl -pi \
48993           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48994           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48995           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48996           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48997         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48998         The remainder were to add Copyright dates, increment serial numbers,
48999         undo some changes in comments, exclude m4/intl.m4, and add quotes
49000         around the "1" in ",1" where the unusual spacing prohibited the
49001         above regexps from doing the job.  For more details, see
49002         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
49003         * m4/acl.m4: Modified.
49004         * m4/afs.m4: Likewise.
49005         * m4/alloca.m4: Likewise.
49006         * m4/argp.m4: Likewise.
49007         * m4/argz.m4: Likewise.
49008         * m4/atexit.m4: Likewise.
49009         * m4/bison-i18n.m4: Likewise.
49010         * m4/bison.m4: Likewise.
49011         * m4/byteswap.m4: Likewise.
49012         * m4/c-stack.m4: Likewise.
49013         * m4/c-strtod.m4: Likewise.
49014         * m4/calloc.m4: Likewise.
49015         * m4/canonicalize-lgpl.m4: Likewise.
49016         * m4/chown.m4: Likewise.
49017         * m4/clock_time.m4: Likewise.
49018         * m4/codeset.m4: Likewise.
49019         * m4/copy-file.m4: Likewise.
49020         * m4/csharp.m4: Likewise.
49021         * m4/csharpcomp.m4: Likewise.
49022         * m4/csharpexec.m4: Likewise.
49023         * m4/d-ino.m4: Likewise.
49024         * m4/d-type.m4: Likewise.
49025         * m4/dirfd.m4: Likewise.
49026         * m4/double-slash-root.m4: Likewise.
49027         * m4/eaccess.m4: Likewise.
49028         * m4/eealloc.m4: Likewise.
49029         * m4/environ.m4: Likewise.
49030         * m4/errno_h.m4: Likewise.
49031         * m4/euidaccess.m4: Likewise.
49032         * m4/execute.m4: Likewise.
49033         * m4/fatal-signal.m4: Likewise.
49034         * m4/fchdir.m4: Likewise.
49035         * m4/fcntl_h.m4: Likewise.
49036         * m4/fileblocks.m4: Likewise.
49037         * m4/filenamecat.m4: Likewise.
49038         * m4/findprog.m4: Likewise.
49039         * m4/flexmember.m4: Likewise.
49040         * m4/fnmatch.m4: Likewise.
49041         * m4/fopen.m4: Likewise.
49042         * m4/fpending.m4: Likewise.
49043         * m4/fprintf-posix.m4: Likewise.
49044         * m4/free.m4: Likewise.
49045         * m4/frexp.m4: Likewise.
49046         * m4/frexpl.m4: Likewise.
49047         * m4/fsusage.m4: Likewise.
49048         * m4/ftruncate.m4: Likewise.
49049         * m4/gc-camellia.m4: Likewise.
49050         * m4/gc-random.m4: Likewise.
49051         * m4/gc.m4: Likewise.
49052         * m4/getaddrinfo.m4: Likewise.
49053         * m4/getcwd-abort-bug.m4: Likewise.
49054         * m4/getcwd-path-max.m4: Likewise.
49055         * m4/getdate.m4: Likewise.
49056         * m4/getdomainname.m4: Likewise.
49057         * m4/getgroups.m4: Likewise.
49058         * m4/gethostname.m4: Likewise.
49059         * m4/gethrxtime.m4: Likewise.
49060         * m4/getline.m4: Likewise.
49061         * m4/getloadavg.m4: Likewise.
49062         * m4/getndelim2.m4: Likewise.
49063         * m4/getpass.m4: Likewise.
49064         * m4/gettext.m4: Likewise.
49065         * m4/gettime.m4: Likewise.
49066         * m4/gettimeofday.m4: Likewise.
49067         * m4/gnulib-common.m4: Likewise.
49068         * m4/group-member.m4: Likewise.
49069         * m4/host-os.m4: Likewise.
49070         * m4/iconv.m4: Likewise.
49071         * m4/iconv_open.m4: Likewise.
49072         * m4/inet_ntop.m4: Likewise.
49073         * m4/inet_pton.m4: Likewise.
49074         * m4/inline.m4: Likewise.
49075         * m4/intldir.m4: Likewise.
49076         * m4/intlmacosx.m4: Likewise.
49077         * m4/intmax.m4: Likewise.
49078         * m4/intmax_t.m4: Likewise.
49079         * m4/inttypes.m4: Likewise.
49080         * m4/inttypes_h.m4: Likewise.
49081         * m4/inttypes-pri.m4: Likewise.
49082         * m4/isapipe.m4: Likewise.
49083         * m4/isnand.m4: Likewise.
49084         * m4/isnanf.m4: Likewise.
49085         * m4/isnanl.m4: Likewise.
49086         * m4/javacomp.m4: Likewise.
49087         * m4/javaexec.m4: Likewise.
49088         * m4/jm-winsz1.m4: Likewise.
49089         * m4/jm-winsz2.m4: Likewise.
49090         * m4/lchown.m4: Likewise.
49091         * m4/lcmessage.m4: Likewise.
49092         * m4/ldexpl.m4: Likewise.
49093         * m4/lib-ld.m4: Likewise.
49094         * m4/lib-link.m4: Likewise.
49095         * m4/libsigsegv.m4: Likewise.
49096         * m4/link-follow.m4: Likewise.
49097         * m4/localcharset.m4: Likewise.
49098         * m4/locale-fr.m4: Likewise.
49099         * m4/locale-ja.m4: Likewise.
49100         * m4/locale-tr.m4: Likewise.
49101         * m4/locale-zh.m4: Likewise.
49102         * m4/lock.m4: Likewise.
49103         * m4/longlong.m4: Likewise.
49104         * m4/ls-mntd-fs.m4: Likewise.
49105         * m4/lstat.m4: Likewise.
49106         * m4/malloc.m4: Likewise.
49107         * m4/mathl.m4: Likewise.
49108         * m4/mbrtowc.m4: Likewise.
49109         * m4/mbstate_t.m4: Likewise.
49110         * m4/mbswidth.m4: Likewise.
49111         * m4/memchr.m4: Likewise.
49112         * m4/memcmp.m4: Likewise.
49113         * m4/memcpy.m4: Likewise.
49114         * m4/memmem.m4: Likewise.
49115         * m4/memmove.m4: Likewise.
49116         * m4/mempcpy.m4: Likewise.
49117         * m4/memrchr.m4: Likewise.
49118         * m4/memset.m4: Likewise.
49119         * m4/minmax.m4: Likewise.
49120         * m4/mkdir-slash.m4: Likewise.
49121         * m4/mkdtemp.m4: Likewise.
49122         * m4/mktime.m4: Likewise.
49123         * m4/mmap-anon.m4: Likewise.
49124         * m4/mountlist.m4: Likewise.
49125         * m4/nanosleep.m4: Likewise.
49126         * m4/nls.m4: Likewise.
49127         * m4/nocrash.m4: Likewise.
49128         * m4/open.m4: Likewise.
49129         * m4/openat.m4: Likewise.
49130         * m4/openmp.m4: Likewise.
49131         * m4/pathmax.m4: Likewise.
49132         * m4/perl.m4: Likewise.
49133         * m4/physmem.m4: Likewise.
49134         * m4/pipe.m4: Likewise.
49135         * m4/po.m4: Likewise.
49136         * m4/poll.m4: Likewise.
49137         * m4/posixtm.m4: Likewise.
49138         * m4/posixver.m4: Likewise.
49139         * m4/printf-frexp.m4: Likewise.
49140         * m4/printf-frexpl.m4: Likewise.
49141         * m4/printf-posix.m4: Likewise.
49142         * m4/printf-posix-rpl.m4: Likewise.
49143         * m4/printf.m4: Likewise.
49144         * m4/progtest.m4: Likewise.
49145         * m4/putenv.m4: Likewise.
49146         * m4/readline.m4: Likewise.
49147         * m4/readlink.m4: Likewise.
49148         * m4/readutmp.m4: Likewise.
49149         * m4/realloc.m4: Likewise.
49150         * m4/regex.m4: Likewise.
49151         * m4/relocatable.m4: Likewise.
49152         * m4/relocatable-lib.m4: Likewise.
49153         * m4/rename-dest-slash.m4: Likewise.
49154         * m4/rename.m4: Likewise.
49155         * m4/rmdir-errno.m4: Likewise.
49156         * m4/rmdir.m4: Likewise.
49157         * m4/roundf.m4: Likewise.
49158         * m4/roundl.m4: Likewise.
49159         * m4/rpmatch.m4: Likewise.
49160         * m4/save-cwd.m4: Likewise.
49161         * m4/selinux-selinux-h.m4: Likewise.
49162         * m4/setenv.m4: Likewise.
49163         * m4/settime.m4: Likewise.
49164         * m4/sig2str.m4: Likewise.
49165         * m4/sig_atomic_t.m4: Likewise.
49166         * m4/signalblocking.m4: Likewise.
49167         * m4/signbit.m4: Likewise.
49168         * m4/sigpipe.m4: Likewise.
49169         * m4/sockets.m4: Likewise.
49170         * m4/sockpfaf.m4: Likewise.
49171         * m4/st_dm_mode.m4: Likewise.
49172         * m4/stat-time.m4: Likewise.
49173         * m4/stdbool.m4: Likewise.
49174         * m4/stdint.m4: Likewise.
49175         * m4/stdint_h.m4: Likewise.
49176         * m4/stpcpy.m4: Likewise.
49177         * m4/stpncpy.m4: Likewise.
49178         * m4/strcase.m4: Likewise.
49179         * m4/strchrnul.m4: Likewise.
49180         * m4/strcspn.m4: Likewise.
49181         * m4/strdup.m4: Likewise.
49182         * m4/strftime.m4: Likewise.
49183         * m4/strndup.m4: Likewise.
49184         * m4/strnlen.m4: Likewise.
49185         * m4/strpbrk.m4: Likewise.
49186         * m4/strptime.m4: Likewise.
49187         * m4/strsep.m4: Likewise.
49188         * m4/strtod.m4: Likewise.
49189         * m4/strtoimax.m4: Likewise.
49190         * m4/strtok_r.m4: Likewise.
49191         * m4/strtol.m4: Likewise.
49192         * m4/strtoll.m4: Likewise.
49193         * m4/strtoul.m4: Likewise.
49194         * m4/strtoull.m4: Likewise.
49195         * m4/strtoumax.m4: Likewise.
49196         * m4/strverscmp.m4: Likewise.
49197         * m4/threadlib.m4: Likewise.
49198         * m4/timegm.m4: Likewise.
49199         * m4/tm_gmtoff.m4: Likewise.
49200         * m4/tmpdir.m4: Likewise.
49201         * m4/tmpfile.m4: Likewise.
49202         * m4/tzset.m4: Likewise.
49203         * m4/uintmax_t.m4: Likewise.
49204         * m4/unlinkdir.m4: Likewise.
49205         * m4/unlocked-io.m4: Likewise.
49206         * m4/uptime.m4: Likewise.
49207         * m4/userspec.m4: Likewise.
49208         * m4/utimbuf.m4: Likewise.
49209         * m4/utime.m4: Likewise.
49210         * m4/utimes-null.m4: Likewise.
49211         * m4/utimes.m4: Likewise.
49212         * m4/vararrays.m4: Likewise.
49213         * m4/vasnprintf.m4: Likewise.
49214         * m4/vfprintf-posix.m4: Likewise.
49215         * m4/vprintf-posix.m4: Likewise.
49216         * m4/wait-process.m4: Likewise.
49217         * m4/wchar_t.m4: Likewise.
49218         * m4/wint_t.m4: Likewise.
49219         * m4/write-any-file.m4: Likewise.
49220         * m4/yield.m4: Likewise.
49221
49222 2009-01-13  Bruno Haible  <bruno@clisp.org>
49223
49224         Avoid test-copy-file.sh failures when ACL support insufficient.
49225         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49226         TESTS_ENVIRONMENT.
49227         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49228         Reported by Jim Meyering.
49229
49230 2009-01-13  Bruno Haible  <bruno@clisp.org>
49231
49232         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49233         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49234         * modules/unistdio/u8-printf-parse (Files): Likewise.
49235         * modules/unistdio/u32-printf-parse (Files): Likewise.
49236         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49237
49238 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49239
49240         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49241         and m4/inttypes_h.m4 too.
49242
49243 2009-01-12  Eric Blake  <ebb9@byu.net>
49244
49245         tests: IRIX 6.2 cc can't compile -0.0 into .data
49246         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49247         rather than at compile-time.
49248         * tests/test-floorl.c (minus_zero): Likewise.
49249         * tests/test-frexpl.c (minus_zero): Likewise.
49250         * tests/test-isnan.c (minus_zerol): Likewise.
49251         * tests/test-isnanl.h (minus_zero): Likewise.
49252         * tests/test-ldexpl.c (minus_zero): Likewise.
49253         * tests/test-roundl.c (minus_zero): Likewise.
49254         * tests/test-signbit.c (minus_zerol): Likewise.
49255         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49256         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49257         * tests/test-truncl.c (minus_zero): Likewise.
49258         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49259         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49260         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49261
49262 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49263
49264         regex: fix glibc bug 9697
49265         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49266         handling.
49267
49268 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49269
49270         regex: fix glibc bug 697
49271         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49272         being NULL also if there are no backreferences.
49273
49274 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49275
49276         regex: merge glibc changes
49277         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49278         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49279         re_string_skip_chars, re_string_reconstruct): Likewise.
49280         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49281
49282 2009-01-07  Jim Meyering  <meyering@redhat.com>
49283
49284         poll: filter through cppi
49285         * lib/poll.c: Indent cpp directives to reflect nesting.
49286
49287 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49288
49289         poll: don't return uninitialized
49290         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
49291
49292 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
49293
49294         avoid compile failure on AIX 6.1
49295         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
49296         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
49297
49298 2009-01-04  Jim Meyering  <meyering@redhat.com>
49299
49300         remove duplicate inclusion of <stdio.h>
49301         * tests/test-fprintf-posix.c: Likewise.
49302         * tests/test-printf-posix.c: Likewise.
49303         * tests/test-snprintf-posix.c: Likewise.
49304         * tests/test-sprintf-posix.c: Likewise.
49305         * tests/test-vasprintf-posix.c: Likewise.
49306         * tests/test-vfprintf-posix.c: Likewise.
49307         * tests/test-vprintf-posix.c: Likewise.
49308         * tests/test-vsnprintf-posix.c: Likewise.
49309         * tests/test-vsprintf-posix.c: Likewise.
49310
49311 2009-01-03  Jim Meyering  <meyering@redhat.com>
49312
49313         gnulib-tool: fix sed-based filtering
49314         * gnulib-tool (func_filter_filelist): Remove extra backslash
49315         in sed_fff_filter definition.
49316
49317 2009-01-02  Jim Meyering  <meyering@redhat.com>
49318
49319         strftime: avoid compilation failure on Solaris 2.6
49320         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49321         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49322         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49323         be available.  Reported by Tom G. Christensen.  Details in
49324         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49325
49326 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49327             Bruno Haible  <bruno@clisp.org>
49328
49329         Speed up gnulib-tool by doing more string processing through shell
49330         built-ins.
49331         * gnulib-tool (fast_func_append): New variable.
49332         (func_remove_prefix, func_remove_suffix): New functions.
49333         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49334         (func_filter_filelist): New function.
49335         (func_get_dependencies): Use func_remove_suffix instead of sed.
49336         (func_get_automake_snippet): Use func_filter_filelist instead of a
49337         subshell and sed invocation.
49338
49339 2009-01-01  Bruno Haible  <bruno@clisp.org>
49340
49341         Fix a security bug.
49342         * gnulib-tool (func_import, import, update): Don't allow the characters
49343         '"', '$', '`', '\' in macro arguments that become part of commands that
49344         are evaluated.
49345
49346 2009-01-01  Bruno Haible  <bruno@clisp.org>
49347
49348         * gnulib-tool (func_reset_sigpipe): Add more comments.
49349
49350 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49351
49352         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49353         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49354         already know the answer.
49355
49356 2009-01-01  Jim Meyering  <meyering@redhat.com>
49357
49358         * lib/version-etc.c (version_etc_va): Update copyright year.
49359
49360 2008-12-30  Bruno Haible  <bruno@clisp.org>
49361
49362         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49363         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
49364         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
49365
49366 2008-12-29  Eric Blake  <ebb9@byu.net>
49367
49368         multiarch: avoid autoconf AC_REQUIRE bug
49369         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
49370         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
49371         2.63 and older.
49372         Reported by Bruno Haible, and analyzed in
49373         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
49374
49375 2008-12-29  Bruno Haible  <bruno@clisp.org>
49376
49377         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
49378         files in subdirectories correctly.
49379         Reported by Ralf Wildenhues.
49380
49381 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49382
49383         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
49384         rather than 'join FILE -', for Solaris join.
49385
49386 2008-12-29  Bruno Haible  <bruno@clisp.org>
49387
49388         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
49389         quoting.
49390         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49391         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
49392         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
49393         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
49394         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49395         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49396         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49397         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49398         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49399         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49400         * m4/nls.m4 (AM_NLS): Likewise.
49401         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
49402         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49403         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49404         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49405         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49406         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49407         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
49408         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49409         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49410         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49411         * m4/xsize.m4 (gl_XSIZE): Likewise.
49412         Suggested by Jim Meyering.
49413
49414 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49415
49416         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
49417         * lib/parse-duration.c: use a switch instead of cascading if's.
49418
49419 2008-12-29  Eric Blake  <ebb9@byu.net>
49420
49421         wchar.h: supply WEOF on Irix 5.3
49422         * lib/wchar.in.h (wint_t): Also supply WEOF.
49423         * lib/wctype.in.h (wint_t): Likewise.
49424         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49425         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49426         Reported by Tom G. Christensen.
49427
49428 2008-12-26  Bruno Haible  <bruno@clisp.org>
49429
49430         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49431         i486, i586, i686.
49432
49433 2008-12-26  Bruno Haible  <bruno@clisp.org>
49434
49435         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49436
49437 2008-12-26  Bruno Haible  <bruno@clisp.org>
49438
49439         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49440         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
49441         not __STDC_CONSTANT_MACROS.
49442         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49443
49444 2008-12-25  Bruno Haible  <bruno@clisp.org>
49445
49446         Add support for universal builds to vasnprintf.
49447         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
49448         universal builds, guess no.
49449         * modules/vasnprintf-posix (Depends-on): Add multiarch.
49450         * modules/vasprintf-posix (Depends-on): Likewise.
49451         * modules/fprintf-posix (Depends-on): Likewise.
49452         * modules/vfprintf-posix (Depends-on): Likewise.
49453         * modules/snprintf-posix (Depends-on): Likewise.
49454         * modules/vsnprintf-posix (Depends-on): Likewise.
49455         * modules/sprintf-posix (Depends-on): Likewise.
49456         * modules/vsprintf-posix (Depends-on): Likewise.
49457         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49458         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49459         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49460         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49461         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49462         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49463         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49464
49465         Add support for universal builds to <inttypes.h>.
49466         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49467         _SCNu64_PREFIX): In Apple
49468         universal builds, define directly, using _LP64.
49469         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49470         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49471         * modules/inttypes (Depends-on): Add multiarch.
49472         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49473
49474         Add support for universal builds to <stdint.h>.
49475         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
49476         universal builds, define directly, using _LP64.
49477         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
49478         Apple universal builds, don't test for the size and suffix of ptrdiff_t
49479         and size_t.
49480         * modules/stdint (Depends-on): Add multiarch.
49481         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49482
49483         New module 'multiarch'.
49484         * modules/multiarch: New file.
49485         * m4/multiarch.m4: New file.
49486
49487 2008-12-25  Bruno Haible  <bruno@clisp.org>
49488
49489         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
49490
49491 2008-12-25  Bruno Haible  <bruno@clisp.org>
49492
49493         * modules/btowc (License): Relicense under LGPLv2+.
49494         * modules/mbsinit (License): Likewise.
49495         * modules/mbrtowc (License): Likewise.
49496         * modules/wcrtomb (License): Likewise.
49497         * modules/streq (License): Likewise.
49498         Reported by David Lutterkort <lutter@redhat.com>.
49499
49500 2008-12-23  Bruno Haible  <bruno@clisp.org>
49501
49502         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
49503
49504 2008-12-23  Bruno Haible  <bruno@clisp.org>
49505
49506         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
49507         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
49508         GETADDRINFO_LIB, not in LIBS.
49509         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
49510         * modules/canon-host (Link): Likewise.
49511         * NEWS: Mention the change.
49512         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
49513         GETADDRINFO_LIB.
49514
49515 2008-12-22  Bruno Haible  <bruno@clisp.org>
49516
49517         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49518         * doc/posix-functions/iswalpha_l.texi: Likewise.
49519         * doc/posix-functions/iswblank_l.texi: Likewise.
49520         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49521         * doc/posix-functions/iswctype_l.texi: Likewise.
49522         * doc/posix-functions/iswdigit_l.texi: Likewise.
49523         * doc/posix-functions/iswgraph_l.texi: Likewise.
49524         * doc/posix-functions/iswlower_l.texi: Likewise.
49525         * doc/posix-functions/iswprint_l.texi: Likewise.
49526         * doc/posix-functions/iswpunct_l.texi: Likewise.
49527         * doc/posix-functions/iswspace_l.texi: Likewise.
49528         * doc/posix-functions/iswupper_l.texi: Likewise.
49529         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49530         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49531         * doc/posix-functions/open_wmemstream.texi: Likewise.
49532         * doc/posix-functions/swscanf.texi: Likewise.
49533         * doc/posix-functions/towctrans_l.texi: Likewise.
49534         * doc/posix-functions/towlower.texi: Likewise.
49535         * doc/posix-functions/towlower_l.texi: Likewise.
49536         * doc/posix-functions/towupper.texi: Likewise.
49537         * doc/posix-functions/towupper_l.texi: Likewise.
49538         * doc/posix-functions/vfwprintf.texi: Likewise.
49539         * doc/posix-functions/vfwscanf.texi: Likewise.
49540         * doc/posix-functions/vswscanf.texi: Likewise.
49541         * doc/posix-functions/vwprintf.texi: Likewise.
49542         * doc/posix-functions/vwscanf.texi: Likewise.
49543         * doc/posix-functions/wcpcpy.texi: Likewise.
49544         * doc/posix-functions/wcpncpy.texi: Likewise.
49545         * doc/posix-functions/wcscasecmp.texi: Likewise.
49546         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49547         * doc/posix-functions/wcscoll_l.texi: Likewise.
49548         * doc/posix-functions/wcsdup.texi: Likewise.
49549         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49550         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49551         * doc/posix-functions/wcsnlen.texi: Likewise.
49552         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49553         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49554         * doc/posix-functions/wctrans_l.texi: Likewise.
49555         * doc/posix-functions/wctype_l.texi: Likewise.
49556         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49557         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49558         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49559         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49560         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49561         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49562         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49563         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49564         * doc/glibc-functions/wcschrnul.texi: Likewise.
49565         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49566         * doc/glibc-functions/wcstod_l.texi: Likewise.
49567         * doc/glibc-functions/wcstof_l.texi: Likewise.
49568         * doc/glibc-functions/wcstol_l.texi: Likewise.
49569         * doc/glibc-functions/wcstold_l.texi: Likewise.
49570         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49571         * doc/glibc-functions/wcstoq.texi: Likewise.
49572         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49573         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49574         * doc/glibc-functions/wcstouq.texi: Likewise.
49575         * doc/glibc-functions/wmempcpy.texi: Likewise.
49576
49577 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49578             Eric Blake  <ebb9@byu.net>
49579             Paolo Bonzini  <bonzini@gnu.org>
49580             Bruno Haible  <bruno@clisp.org>
49581
49582         Make c-stack work on Haiku.
49583         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49584         (c_stack_action): Use SA_ONSTACK flag.
49585
49586 2008-12-22  Bruno Haible  <bruno@clisp.org>
49587
49588         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49589
49590 2008-12-22  Bruno Haible  <bruno@clisp.org>
49591
49592         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49593         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49594         being overridden.
49595         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49596         New macros.
49597         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49599         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49600         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49601
49602 2008-12-22  Bruno Haible  <bruno@clisp.org>
49603
49604         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49605         from test code.
49606
49607 2008-12-22  Eric Blake  <ebb9@byu.net>
49608
49609         Avoid gcc warnings on cygwin.
49610         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49611         Avoid unused variable.
49612         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49613         Likewise.
49614
49615 2008-12-22  Bruno Haible  <bruno@clisp.org>
49616
49617         Remove HAVE_MBRTOWC conditionals.
49618         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49619         (mbscasecmp): Assume mbrtowc function.
49620         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49621         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49622         * lib/mbschr.c: Include mbuiter.h unconditionally.
49623         (mbschr): Assume mbrtowc function.
49624         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49625         (mbscspn): Assume mbrtowc function.
49626         * lib/mbslen.c: Include mbuiter.h unconditionally.
49627         (mbslen): Assume mbrtowc function.
49628         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49629         (mbsncasecmp): Assume mbrtowc function.
49630         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49631         (mbsnlen): Assume mbrtowc function.
49632         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49633         (mbspbrk): Assume mbrtowc function.
49634         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49635         (mbspcasecmp): Assume mbrtowc function.
49636         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49637         (mbsrchr): Assume mbrtowc function.
49638         * lib/mbssep.c: Include mbuiter.h unconditionally.
49639         (mbssep): Assume mbrtowc function.
49640         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49641         (mbsspn): Assume mbrtowc function.
49642         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49643         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49644         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49645         (mbstok_r): Assume mbrtowc function.
49646         * lib/propername.c: Include mbuiter.h unconditionally.
49647         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49648         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49649         (trim2): Assume mbrtowc function.
49650         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49651         (mbsnwidth): Assume mbrtowc function.
49652         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49653         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49654         fallback definitions.
49655         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49656
49657 2008-12-22  Bruno Haible  <bruno@clisp.org>
49658
49659         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49660
49661 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49662
49663         * modules/regex: Request emulations for the mb*/wc* functions we need.
49664         * m4/regex.m4: Don't look for those functions here.
49665         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49666
49667 2008-12-22  Bruno Haible  <bruno@clisp.org>
49668
49669         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49670
49671 2008-12-21  Bruno Haible  <bruno@clisp.org>
49672
49673         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49674         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49675         (Include): Remove conditionalization.
49676         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49677         (Include): Remove conditionalization.
49678         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49679         (Include): Remove conditionalization.
49680         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49681         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49682         * NEWS: Mention the change.
49683         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49684         via Sergey Poznyakoff <gray@gnu.org.ua>.
49685
49686 2008-12-21  Bruno Haible  <bruno@clisp.org>
49687
49688         * MODULES.html.sh (Extended multibyte and wide character utilities
49689         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49690         wcrtomb, wcsrtombs.
49691         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49692         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49693         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49694         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49695
49696 2008-12-21  Bruno Haible  <bruno@clisp.org>
49697
49698         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49699
49700 2008-12-21  Bruno Haible  <bruno@clisp.org>
49701
49702         * modules/wcsnrtombs-tests: New file.
49703         * tests/test-wcsnrtombs1.sh: New file.
49704         * tests/test-wcsnrtombs2.sh: New file.
49705         * tests/test-wcsnrtombs3.sh: New file.
49706         * tests/test-wcsnrtombs4.sh: New file.
49707         * tests/test-wcsnrtombs.c: New file.
49708
49709         New module 'wcsnrtombs'.
49710         * lib/wchar.in.h (wcsnrtombs): New declaration.
49711         * lib/wcsnrtombs.c: New file.
49712         * lib/wcsrtombs-state.c: New file.
49713         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49714         (internal_state): Remove variable.
49715         * m4/wcsnrtombs.m4: New file.
49716         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49717         compilation units.
49718         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49719         HAVE_WCSNRTOMBS.
49720         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49721         HAVE_WCSNRTOMBS.
49722         * modules/wcsnrtombs: New file.
49723         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49724         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49725
49726 2008-12-21  Bruno Haible  <bruno@clisp.org>
49727
49728         * modules/wcsrtombs-tests: New file.
49729         * tests/test-wcsrtombs1.sh: New file.
49730         * tests/test-wcsrtombs2.sh: New file.
49731         * tests/test-wcsrtombs3.sh: New file.
49732         * tests/test-wcsrtombs4.sh: New file.
49733         * tests/test-wcsrtombs.c: New file.
49734
49735         New module 'wcsrtombs'.
49736         * lib/wchar.in.h (wcsrtombs): New declaration.
49737         * lib/wcsrtombs.c: New file.
49738         * m4/wcsrtombs.m4: New file.
49739         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49740         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49741         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49742         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49743         * modules/wcsrtombs: New file.
49744         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49745         bugs.
49746
49747 2008-12-21  Bruno Haible  <bruno@clisp.org>
49748
49749         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49750         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49751         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49752         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49753         if not correct.
49754         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49755         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49756         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49757         m4/locale-zh.m4, m4/codeset.m4.
49758         * doc/posix-functions/wcrtomb.texi: Document the bug.
49759
49760 2008-12-21  Bruno Haible  <bruno@clisp.org>
49761
49762         Work around a btowc() bug on IRIX 6.5.
49763         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49764         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49765         REPLACE_WTOBC if not.
49766         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49767         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49768         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49769
49770 2008-12-21  Bruno Haible  <bruno@clisp.org>
49771
49772         * modules/wcrtomb-tests: New file.
49773         * tests/test-wcrtomb.sh: New file.
49774         * tests/test-wcrtomb.c: New file.
49775
49776         New module 'wcrtomb'.
49777         * lib/wchar.in.h (wcrtomb): New declaration.
49778         * lib/wcrtomb.c: New file.
49779         * m4/wcrtomb.m4: New file.
49780         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49781         HAVE_WCRTOMB.
49782         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49783         HAVE_WCRTOMB.
49784         * modules/wcrtomb: New file.
49785         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49786
49787 2008-12-21  Bruno Haible  <bruno@clisp.org>
49788
49789         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49790         * modules/mbsrtowcs (Files): Likewise.
49791         * modules/wctob (Files): Likewise.
49792         * modules/c-strcase-tests (Files): Likewise.
49793         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49794         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49795         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49796         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49797         * modules/vasnprintf-posix-tests (Files): Likewise.
49798
49799 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49800
49801         gitlog-to-changelog: pass all command-line arguments to git-log
49802         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49803         it is sometimes convenient to filter the commits in various ways.
49804         gitlog-to-changelog only allows --since to specify a start date,
49805         but git-log itself supports many other filtering mechanisms.
49806         At the moment, I want to filter by branch name.  Rather than
49807         adding a --branch option to gitlog-to-changelog, it seems more
49808         flexible to simply pass all options directly to git-log and let
49809         git do the work.  Notice that this effectively makes --since a
49810         redundant option for gitlog-to-changelog, but removing it would
49811         require current usage to change since calls would then require
49812         an additional '--'.
49813
49814 2008-12-21  Bruno Haible  <bruno@clisp.org>
49815
49816         * modules/mbsnrtowcs-tests: New file.
49817         * tests/test-mbsnrtowcs1.sh: New file.
49818         * tests/test-mbsnrtowcs2.sh: New file.
49819         * tests/test-mbsnrtowcs3.sh: New file.
49820         * tests/test-mbsnrtowcs4.sh: New file.
49821         * tests/test-mbsnrtowcs.c: New file.
49822
49823         New module 'mbsnrtowcs'.
49824         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49825         * lib/mbsnrtowcs.c: New file.
49826         * lib/mbsrtowcs-state.c: New file.
49827         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49828         (internal_state): Remove variable.
49829         * m4/mbsnrtowcs.m4: New file.
49830         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49831         compilation units.
49832         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49833         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49834         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49835         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49836         * modules/mbsnrtowcs: New file.
49837         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49838         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49839         portability problem.
49840
49841 2008-12-21  Bruno Haible  <bruno@clisp.org>
49842
49843         Work around mbsrtowcs bug.
49844         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49845         (gl_FUNC_MBSRTOWCS): Invoke it.
49846         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49847         m4/locale-zh.m4.
49848         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49849
49850 2008-12-21  Bruno Haible  <bruno@clisp.org>
49851
49852         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49853
49854 2008-12-21  Bruno Haible  <bruno@clisp.org>
49855
49856         Update doc for AIX.
49857         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49858         16-bit wchar_t type.
49859         * doc/posix-functions/btowc.texi: Likewise.
49860         * doc/posix-functions/fgetwc.texi: Likewise.
49861         * doc/posix-functions/fgetws.texi: Likewise.
49862         * doc/posix-functions/fputwc.texi: Likewise.
49863         * doc/posix-functions/fputws.texi: Likewise.
49864         * doc/posix-functions/fwide.texi: Likewise.
49865         * doc/posix-functions/fwprintf.texi: Likewise.
49866         * doc/posix-functions/fwscanf.texi: Likewise.
49867         * doc/posix-functions/getwchar.texi: Likewise.
49868         * doc/posix-functions/getwc.texi: Likewise.
49869         * doc/posix-functions/iswalnum.texi: Likewise.
49870         * doc/posix-functions/iswalpha.texi: Likewise.
49871         * doc/posix-functions/iswblank.texi: Likewise.
49872         * doc/posix-functions/iswcntrl.texi: Likewise.
49873         * doc/posix-functions/iswctype.texi: Likewise.
49874         * doc/posix-functions/iswdigit.texi: Likewise.
49875         * doc/posix-functions/iswgraph.texi: Likewise.
49876         * doc/posix-functions/iswlower.texi: Likewise.
49877         * doc/posix-functions/iswprint.texi: Likewise.
49878         * doc/posix-functions/iswpunct.texi: Likewise.
49879         * doc/posix-functions/iswspace.texi: Likewise.
49880         * doc/posix-functions/iswupper.texi: Likewise.
49881         * doc/posix-functions/iswxdigit.texi: Likewise.
49882         * doc/posix-functions/mbrtowc.texi: Likewise.
49883         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49884         * doc/posix-functions/mbstowcs.texi: Likewise.
49885         * doc/posix-functions/mbtowc.texi: Likewise.
49886         * doc/posix-functions/putwchar.texi: Likewise.
49887         * doc/posix-functions/putwc.texi: Likewise.
49888         * doc/posix-functions/swprintf.texi: Likewise.
49889         * doc/posix-functions/tolower.texi: Likewise.
49890         * doc/posix-functions/toupper.texi: Likewise.
49891         * doc/posix-functions/towctrans.texi: Likewise.
49892         * doc/posix-functions/ungetwc.texi: Likewise.
49893         * doc/posix-functions/vswprintf.texi: Likewise.
49894         * doc/posix-functions/wcrtomb.texi: Likewise.
49895         * doc/posix-functions/wcscat.texi: Likewise.
49896         * doc/posix-functions/wcschr.texi: Likewise.
49897         * doc/posix-functions/wcscmp.texi: Likewise.
49898         * doc/posix-functions/wcscoll.texi: Likewise.
49899         * doc/posix-functions/wcscpy.texi: Likewise.
49900         * doc/posix-functions/wcscspn.texi: Likewise.
49901         * doc/posix-functions/wcsftime.texi: Likewise.
49902         * doc/posix-functions/wcslen.texi: Likewise.
49903         * doc/posix-functions/wcsncat.texi: Likewise.
49904         * doc/posix-functions/wcsncmp.texi: Likewise.
49905         * doc/posix-functions/wcsncpy.texi: Likewise.
49906         * doc/posix-functions/wcspbrk.texi: Likewise.
49907         * doc/posix-functions/wcsrchr.texi: Likewise.
49908         * doc/posix-functions/wcsrtombs.texi: Likewise.
49909         * doc/posix-functions/wcsspn.texi: Likewise.
49910         * doc/posix-functions/wcsstr.texi: Likewise.
49911         * doc/posix-functions/wcstod.texi: Likewise.
49912         * doc/posix-functions/wcstof.texi: Likewise.
49913         * doc/posix-functions/wcstoimax.texi: Likewise.
49914         * doc/posix-functions/wcstok.texi: Likewise.
49915         * doc/posix-functions/wcstold.texi: Likewise.
49916         * doc/posix-functions/wcstoll.texi: Likewise.
49917         * doc/posix-functions/wcstol.texi: Likewise.
49918         * doc/posix-functions/wcstombs.texi: Likewise.
49919         * doc/posix-functions/wcstoull.texi: Likewise.
49920         * doc/posix-functions/wcstoul.texi: Likewise.
49921         * doc/posix-functions/wcstoumax.texi: Likewise.
49922         * doc/posix-functions/wcswidth.texi: Likewise.
49923         * doc/posix-functions/wcsxfrm.texi: Likewise.
49924         * doc/posix-functions/wctob.texi: Likewise.
49925         * doc/posix-functions/wctomb.texi: Likewise.
49926         * doc/posix-functions/wctrans.texi: Likewise.
49927         * doc/posix-functions/wctype.texi: Likewise.
49928         * doc/posix-functions/wcwidth.texi: Likewise.
49929         * doc/posix-functions/wmemchr.texi: Likewise.
49930         * doc/posix-functions/wmemcmp.texi: Likewise.
49931         * doc/posix-functions/wmemcpy.texi: Likewise.
49932         * doc/posix-functions/wmemmove.texi: Likewise.
49933         * doc/posix-functions/wmemset.texi: Likewise.
49934         * doc/posix-functions/wprintf.texi: Likewise.
49935         * doc/posix-functions/wscanf.texi: Likewise.
49936
49937 2008-12-21  Bruno Haible  <bruno@clisp.org>
49938
49939         Update doc for HP-UX 11.11.
49940         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49941         in HP-UX version 11.00, not in all versions of HP-UX 11.
49942         * doc/posix-functions/fwide.texi: Likewise.
49943         * doc/posix-functions/fwprintf.texi: Likewise.
49944         * doc/posix-functions/fwscanf.texi: Likewise.
49945         * doc/posix-functions/inet_ntop.texi: Likewise.
49946         * doc/posix-functions/inet_pton.texi: Likewise.
49947         * doc/posix-functions/mbrlen.texi: Likewise.
49948         * doc/posix-functions/mbrtowc.texi: Likewise.
49949         * doc/posix-functions/mbsinit.texi: Likewise.
49950         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49951         * doc/posix-functions/swprintf.texi: Likewise.
49952         * doc/posix-functions/swscanf.texi: Likewise.
49953         * doc/posix-functions/towctrans.texi: Likewise.
49954         * doc/posix-functions/vfwprintf.texi: Likewise.
49955         * doc/posix-functions/vswprintf.texi: Likewise.
49956         * doc/posix-functions/vwprintf.texi: Likewise.
49957         * doc/posix-functions/wcrtomb.texi: Likewise.
49958         * doc/posix-functions/wcsrtombs.texi: Likewise.
49959         * doc/posix-functions/wcsstr.texi: Likewise.
49960         * doc/posix-functions/wctob.texi: Likewise.
49961         * doc/posix-functions/wctrans.texi: Likewise.
49962         * doc/posix-functions/wmemchr.texi: Likewise.
49963         * doc/posix-functions/wmemcmp.texi: Likewise.
49964         * doc/posix-functions/wmemcpy.texi: Likewise.
49965         * doc/posix-functions/wmemmove.texi: Likewise.
49966         * doc/posix-functions/wmemset.texi: Likewise.
49967         * doc/posix-functions/wprintf.texi: Likewise.
49968         * doc/posix-functions/wscanf.texi: Likewise.
49969
49970 2008-12-21  Bruno Haible  <bruno@clisp.org>
49971
49972         Work around a portability problem.
49973         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49974         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49975
49976 2008-12-20  Bruno Haible  <bruno@clisp.org>
49977
49978         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49979         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49980         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49981         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49982         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49983
49984         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49985         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49986         set.
49987         (GNULIB_defined_mbstate_t): New macro.
49988         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49989         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49990         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49991         reuses the system's mbrtowc function but works around the bugs.
49992         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49993         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49994         macros.
49995         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49996         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49997         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49998         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49999         REPLACE_MBSINIT if mbsinit needs to be overridden.
50000         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
50001         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50002         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
50003         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50004         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50005         m4/locale-zh.m4.
50006         (Depends): Add mbsinit.
50007         * modules/mbsinit (Depends): Add mbrtowc.
50008         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
50009
50010 2008-12-20  Bruno Haible  <bruno@clisp.org>
50011
50012         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
50013         so that there are no conversion errors on AIX.
50014         * tests/test-mbsrtowcs.c (main): LIkewise.
50015
50016 2008-12-20  Bruno Haible  <bruno@clisp.org>
50017
50018         Work around wctob bug on Solaris <= 9.
50019         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
50020         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
50021         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
50022         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
50023         * modules/wctob (Files): Add m4/locale-fr.m4.
50024         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
50025
50026 2008-12-20  Bruno Haible  <bruno@clisp.org>
50027
50028         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
50029         /dev/null.
50030         * tests/test-select-in.sh: Likewise.
50031         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50032
50033 2008-12-20  Bruno Haible  <bruno@clisp.org>
50034
50035         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50036         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50037         Cygwin 1.5.x.
50038
50039 2008-12-20  Bruno Haible  <bruno@clisp.org>
50040
50041         Ensure mbstate_t is defined on HP-UX 11.11.
50042         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50043         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50044         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50045         AC_USE_SYSTEM_EXTENSIONS.
50046         * modules/fnmatch (Depends-on): Add extensions.
50047         * modules/mbrlen (Depends-on): Likewise.
50048         * modules/mbrtowc (Depends-on): Likewise.
50049         * modules/mbsinit (Depends-on): Likewise.
50050         * modules/mbsrtowcs (Depends-on): Likewise.
50051         * modules/mbswidth (Depends-on): Likewise.
50052         * modules/quotearg (Depends-on): Likewise.
50053         * modules/strftime (Depends-on): Likewise.
50054
50055 2008-12-20  Bruno Haible  <bruno@clisp.org>
50056
50057         Ensure wctob is declared on IRIX 6.5.
50058         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50059         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50060         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50061         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50062         of HAVE_WCTOB.
50063         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50064         HAVE_WCTOB.
50065         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50066
50067 2008-12-19  Bruno Haible  <bruno@clisp.org>
50068
50069         * modules/mbsrtowcs-tests: New file.
50070         * tests/test-mbsrtowcs1.sh: New file.
50071         * tests/test-mbsrtowcs2.sh: New file.
50072         * tests/test-mbsrtowcs3.sh: New file.
50073         * tests/test-mbsrtowcs4.sh: New file.
50074         * tests/test-mbsrtowcs.c: New file.
50075
50076         New module 'mbsrtowcs'.
50077         * lib/wchar.in.h (mbsrtowcs): New declaration.
50078         * lib/mbsrtowcs.c: New file.
50079         * m4/mbsrtowcs.m4: New file.
50080         * modules/mbsrtowcs: New file.
50081         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50082         HAVE_MBSRTOWCS.
50083         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50084         HAVE_MBSRTOWCS.
50085         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50086
50087 2008-12-19  Bruno Haible  <bruno@clisp.org>
50088
50089         New module 'mbrlen'.
50090         * lib/wchar.in.h (mbrlen): New declaration.
50091         * lib/mbrlen.c: New file.
50092         * m4/mbrlen.m4: New file.
50093         * modules/mbrlen: New file.
50094         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50095         HAVE_MBRLEN.
50096         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50097         HAVE_MBRLEN.
50098         * doc/posix-functions/mbrlen.texi: Document the new module.
50099
50100 2008-12-19  Bruno Haible  <bruno@clisp.org>
50101
50102         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50103         * modules/mbrtowc (Depends-on): Add verify.
50104         Suggested by Paul Eggert.
50105
50106 2008-12-18  Bruno Haible  <bruno@clisp.org>
50107
50108         * modules/mbsinit-tests: New file.
50109         * tests/test-mbsinit.sh: New file.
50110         * tests/test-mbsinit.c: New file.
50111
50112 2008-12-18  Bruno Haible  <bruno@clisp.org>
50113
50114         * modules/mbrtowc-tests: New file.
50115         * tests/test-mbrtowc1.sh: New file.
50116         * tests/test-mbrtowc2.sh: New file.
50117         * tests/test-mbrtowc3.sh: New file.
50118         * tests/test-mbrtowc4.sh: New file.
50119         * tests/test-mbrtowc.c: New file.
50120
50121         New module 'mbrtowc'.
50122         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50123         mbsinit and mbrtowc.
50124         (mbrtowc): New declaration.
50125         * lib/mbrtowc.c: New file.
50126         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50127         * modules/mbrtowc: New file.
50128         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50129         HAVE_MBRTOWC.
50130         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50131         HAVE_MBRTOWC.
50132         * doc/posix-functions/mbrtowc.texi: Document the new module.
50133
50134 2008-12-18  Bruno Haible  <bruno@clisp.org>
50135
50136         New module 'wctob'.
50137         * lib/wchar.in.h (wctob): New declaration.
50138         * lib/wctob.c: New file.
50139         * m4/wctob.m4: New file.
50140         * modules/wctob: New file.
50141         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50142         HAVE_WCTOB.
50143         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50144         * doc/posix-functions/wctob.texi: Document the new module.
50145
50146 2008-12-18  Bruno Haible  <bruno@clisp.org>
50147
50148         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50149         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50150
50151 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50152
50153         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50154         G. Christensen" <tgc@jupiterrise.com>.
50155
50156         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50157         G. Christensen" <tgc@jupiterrise.com>.
50158
50159         * lib/flock.c: Need to include string.h.  Reported by "Tom
50160         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50161         <ebb9@byu.net>.
50162
50163 2008-12-18  Bruno Haible  <bruno@clisp.org>
50164
50165         * m4/locale-ja.m4: New file, from GNU gettext.
50166
50167 2008-12-17  Bruno Haible  <bruno@clisp.org>
50168
50169         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50170         Suggested by Eric Blake.
50171
50172 2008-12-17  Bruno Haible  <bruno@clisp.org>
50173
50174         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50175
50176 2008-12-17  Bruno Haible  <bruno@clisp.org>
50177
50178         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50179         * modules/mbsinit (Depends-on): Add verify.
50180         Suggested by Paul Eggert.
50181
50182 2008-12-17  Bruno Haible  <bruno@clisp.org>
50183
50184         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50185         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50186         gl_FUNC_MBRTOWC.
50187         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50188         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50189         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50190         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50191         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50192         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50193         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50194         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50195         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50196         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50197         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50198         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50199         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50200         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50201         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50202         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50203         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50204         * modules/trim (configure.ac): Likewise.
50205
50206 2008-12-17  Bruno Haible  <bruno@clisp.org>
50207
50208         * modules/btowc-tests: New file.
50209         * tests/test-btowc1.sh: New file.
50210         * tests/test-btowc2.sh: New file.
50211         * tests/test-btowc.c: New file.
50212
50213         New module 'btowc'.
50214         * lib/wchar.in.h (btowc): New declaration.
50215         * lib/btowc.c: New file.
50216         * m4/btowc.m4: New file.
50217         * modules/btowc: New file.
50218         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50219         HAVE_BTOWC.
50220         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50221         * doc/posix-functions/btowc.texi: Document the new module.
50222
50223 2008-12-17  Bruno Haible  <bruno@clisp.org>
50224
50225         New module 'mbsinit'.
50226         * lib/wchar.in.h (mbsinit): New declaration.
50227         * lib/mbsinit.c: New file.
50228         * m4/mbsinit.m4: New file.
50229         * modules/mbsinit: New file.
50230         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50231         HAVE_MBSINIT.
50232         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50233         HAVE_MBSINIT.
50234         * doc/posix-functions/mbsinit.texi: Document the new module.
50235
50236 2008-12-16  Bruno Haible  <bruno@clisp.org>
50237
50238         * lib/unistd.in.h: Add comment.
50239         * tests/test-environ.c: Don't include <stdlib.h>.
50240
50241 2008-12-16  Bruno Haible  <bruno@clisp.org>
50242
50243         * lib/parse-duration.h (parse_duration): Document return value
50244         convention.
50245         * lib/parse-duration.c: Include specification header first. Add
50246         comments.
50247         (_): Remove macro.
50248         (parse_year_month_day, parse_hour_minute_second): Move side effects
50249         outside of strchr call.
50250         (parse_non_iso8601): Move side effects outside of isspace call.
50251         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50252         call.
50253
50254 2008-12-16  Bruno Haible  <bruno@clisp.org>
50255
50256         * tests/test-parse-duration.sh: Produce no output when the test
50257         succeeds.
50258
50259 2008-12-16  Bruno Haible  <bruno@clisp.org>
50260
50261         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50262         expressions.
50263
50264 2008-12-15  Bruno Haible  <bruno@clisp.org>
50265
50266         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50267         * doc/glibc-functions/flistxattr.texi: Likewise.
50268         * doc/glibc-functions/fopencookie.texi: Likewise.
50269         * doc/glibc-functions/fremovexattr.texi: Likewise.
50270         * doc/glibc-functions/fsetxattr.texi: Likewise.
50271         * doc/glibc-functions/getxattr.texi: Likewise.
50272         * doc/glibc-functions/lgetxattr.texi: Likewise.
50273         * doc/glibc-functions/listxattr.texi: Likewise.
50274         * doc/glibc-functions/llistxattr.texi: Likewise.
50275         * doc/glibc-functions/lremovexattr.texi: Likewise.
50276         * doc/glibc-functions/lsetxattr.texi: Likewise.
50277         * doc/glibc-functions/removexattr.texi: Likewise.
50278         * doc/glibc-functions/setxattr.texi: Likewise.
50279         * doc/posix-functions/open_memstream.texi: Likewise.
50280
50281 2008-12-15  Eric Blake  <ebb9@byu.net>
50282
50283         Update doc for cygwin 1.7.
50284         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50285         functions.
50286         * doc/posix-functions/fchmodat.texi: Likewise.
50287         * doc/posix-functions/fchownat.texi: Likewise.
50288         * doc/posix-functions/fdopendir.texi: Likewise.
50289         * doc/posix-functions/fmemopen.texi: Likewise.
50290         * doc/posix-functions/freeaddrinfo.texi: Likewise.
50291         * doc/posix-functions/fstatat.texi: Likewise.
50292         * doc/posix-functions/futimens.texi: Likewise.
50293         * doc/posix-functions/gai_strerror.texi: Likewise.
50294         * doc/posix-functions/getaddrinfo.texi: Likewise.
50295         * doc/posix-functions/getnameinfo.texi: Likewise.
50296         * doc/posix-functions/if_freenameindex.texi: Likewise.
50297         * doc/posix-functions/if_indextoname.texi: Likewise.
50298         * doc/posix-functions/if_nameindex.texi: Likewise.
50299         * doc/posix-functions/if_nametoindex.texi: Likewise.
50300         * doc/posix-functions/insque.texi: Likewise.
50301         * doc/posix-functions/linkat.texi: Likewise.
50302         * doc/posix-functions/llrint.texi: Likewise.
50303         * doc/posix-functions/llrintf.texi: Likewise.
50304         * doc/posix-functions/llrintl.texi: Likewise.
50305         * doc/posix-functions/lockf.texi: Likewise.
50306         * doc/posix-functions/lrintl.texi: Likewise.
50307         * doc/posix-functions/mkdirat.texi: Likewise.
50308         * doc/posix-functions/mkfifoat.texi: Likewise.
50309         * doc/posix-functions/mknodat.texi: Likewise.
50310         * doc/posix-functions/mq_close.texi: Likewise.
50311         * doc/posix-functions/mq_getattr.texi: Likewise.
50312         * doc/posix-functions/mq_notify.texi: Likewise.
50313         * doc/posix-functions/mq_open.texi: Likewise.
50314         * doc/posix-functions/mq_receive.texi: Likewise.
50315         * doc/posix-functions/mq_send.texi: Likewise.
50316         * doc/posix-functions/mq_setattr.texi: Likewise.
50317         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50318         * doc/posix-functions/mq_timedsend.texi: Likewise.
50319         * doc/posix-functions/mq_unlink.texi: Likewise.
50320         * doc/posix-functions/open_memstream.texi: Likewise.
50321         * doc/posix-functions/openat.texi: Likewise.
50322         * doc/posix-functions/posix_fadvise.texi: Likewise.
50323         * doc/posix-functions/posix_fallocate.texi: Likewise.
50324         * doc/posix-functions/posix_madvise.texi: Likewise.
50325         * doc/posix-functions/posix_memalign.texi: Likewise.
50326         * doc/posix-functions/posix_openpt.texi: Likewise.
50327         * doc/posix-functions/readlinkat.texi: Likewise.
50328         * doc/posix-functions/remque.texi: Likewise.
50329         * doc/posix-functions/renameat.texi: Likewise.
50330         * doc/posix-functions/rintl.texi: Likewise.
50331         * doc/posix-functions/sem_unlink.texi: Likewise.
50332         * doc/posix-functions/shm_open.texi: Likewise.
50333         * doc/posix-functions/shm_unlink.texi: Likewise.
50334         * doc/posix-functions/signgam.texi: Likewise.
50335         * doc/posix-functions/sigset.texi: Likewise.
50336         * doc/posix-functions/stpcpy.texi: Likewise.
50337         * doc/posix-functions/stpncpy.texi: Likewise.
50338         * doc/posix-functions/strerror.texi: Likewise.
50339         * doc/posix-functions/strtod.texi: Likewise.
50340         * doc/posix-functions/symlinkat.texi: Likewise.
50341         * doc/posix-functions/unlinkat.texi: Likewise.
50342         * doc/posix-functions/utimensat.texi: Likewise.
50343         * doc/glibc-functions/bindresvport.texi: Likewise.
50344         * doc/glibc-functions/dn_expand.texi: Likewise.
50345         * doc/glibc-functions/exp10.texi: Likewise.
50346         * doc/glibc-functions/exp10f.texi: Likewise.
50347         * doc/glibc-functions/fgetxattr.texi: Likewise.
50348         * doc/glibc-functions/flistxattr.texi: Likewise.
50349         * doc/glibc-functions/fopencookie.texi: Likewise.
50350         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50351         * doc/glibc-functions/fremovexattr.texi: Likewise.
50352         * doc/glibc-functions/fsetxattr.texi: Likewise.
50353         * doc/glibc-functions/getifaddrs.texi: Likewise.
50354         * doc/glibc-functions/getxattr.texi: Likewise.
50355         * doc/glibc-functions/lgetxattr.texi: Likewise.
50356         * doc/glibc-functions/listxattr.texi: Likewise.
50357         * doc/glibc-functions/llistxattr.texi: Likewise.
50358         * doc/glibc-functions/lremovexattr.texi: Likewise.
50359         * doc/glibc-functions/lsetxattr.texi: Likewise.
50360         * doc/glibc-functions/pow10.texi: Likewise.
50361         * doc/glibc-functions/pow10f.texi: Likewise.
50362         * doc/glibc-functions/rcmd_af.texi: Likewise.
50363         * doc/glibc-functions/removexattr.texi: Likewise.
50364         * doc/glibc-functions/res_init.texi: Likewise.
50365         * doc/glibc-functions/res_mkquery.texi: Likewise.
50366         * doc/glibc-functions/res_query.texi: Likewise.
50367         * doc/glibc-functions/res_querydomain.texi: Likewise.
50368         * doc/glibc-functions/res_send.texi: Likewise.
50369         * doc/glibc-functions/rresvport_af.texi: Likewise.
50370         * doc/glibc-functions/setxattr.texi: Likewise.
50371         * doc/glibc-functions/strcasestr.texi: Likewise.
50372
50373 2008-12-15  Bruno Haible  <bruno@clisp.org>
50374
50375         Fix compilation error on OSF/1 4.0.
50376         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
50377         <sys/time.h>, simply delegate to the system header.
50378         Reported by Daniel Richard G. <oss@teragram.com>.
50379
50380 2008-12-15  Bruno Haible  <bruno@clisp.org>
50381
50382         * doc/posix-functions/openat.texi: Mention the 'openat' module.
50383         * doc/posix-functions/fchmodat.texi: Likewise.
50384         * doc/posix-functions/fchownat.texi: Likewise.
50385         * doc/posix-functions/fdopendir.texi: Likewise.
50386         * doc/posix-functions/fstatat.texi: Likewise.
50387         * doc/posix-functions/mkdirat.texi: Likewise.
50388         * doc/posix-functions/unlinkat.texi: Likewise.
50389
50390 2008-12-14  Bruno Haible  <bruno@clisp.org>
50391
50392         Update doc for POSIX:2008.
50393         * doc/posix-functions/faccessat.texi: New file.
50394         * doc/posix-functions/fchmodat.texi: New file.
50395         * doc/posix-functions/fchownat.texi: New file.
50396         * doc/posix-functions/fdopendir.texi: New file.
50397         * doc/posix-functions/fstatat.texi: New file.
50398         * doc/posix-functions/futimens.texi: New file.
50399         * doc/posix-functions/linkat.texi: New file.
50400         * doc/posix-functions/mkdirat.texi: New file.
50401         * doc/posix-functions/mkfifoat.texi: New file.
50402         * doc/posix-functions/mknodat.texi: New file.
50403         * doc/posix-functions/open_wmemstream.texi: New file.
50404         * doc/posix-functions/openat.texi: New file.
50405         * doc/posix-functions/psiginfo.texi: New file.
50406         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
50407         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
50408         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
50409         * doc/posix-functions/readlinkat.texi: New file.
50410         * doc/posix-functions/renameat.texi: New file.
50411         * doc/posix-functions/strerror_l.texi: New file.
50412         * doc/posix-functions/symlinkat.texi: New file.
50413         * doc/posix-functions/unlinkat.texi: New file.
50414         * doc/posix-functions/utimensat.texi: New file.
50415         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50416
50417 2008-12-14  Bruno Haible  <bruno@clisp.org>
50418
50419         Update doc for POSIX:2008.
50420         * doc/posix-functions/alphasort.texi: Renamed from
50421         doc/glibc-functions/alphasort.texi.
50422         * doc/posix-functions/dirfd.texi: Renamed from
50423         doc/glibc-functions/dirfd.texi.
50424         * doc/posix-functions/dprintf.texi: Renamed from
50425         doc/glibc-functions/dprintf.texi.
50426         * doc/posix-functions/duplocale.texi: Renamed from
50427         doc/glibc-functions/duplocale.texi.
50428         * doc/posix-functions/fexecve.texi: Renamed from
50429         doc/glibc-functions/fexecve.texi.
50430         * doc/posix-functions/fmemopen.texi: Renamed from
50431         doc/glibc-functions/fmemopen.texi.
50432         * doc/posix-functions/freelocale.texi: Renamed from
50433         doc/glibc-functions/freelocale.texi.
50434         * doc/posix-functions/getdate_err.texi: Renamed from
50435         doc/glibc-functions/getdate_err.texi.
50436         * doc/posix-functions/isalnum_l.texi: Renamed from
50437         doc/glibc-functions/isalnum_l.texi.
50438         * doc/posix-functions/isalpha_l.texi: Renamed from
50439         doc/glibc-functions/isalpha_l.texi.
50440         * doc/posix-functions/isblank_l.texi: Renamed from
50441         doc/glibc-functions/isblank_l.texi.
50442         * doc/posix-functions/iscntrl_l.texi: Renamed from
50443         doc/glibc-functions/iscntrl_l.texi.
50444         * doc/posix-functions/isdigit_l.texi: Renamed from
50445         doc/glibc-functions/isdigit_l.texi.
50446         * doc/posix-functions/isgraph_l.texi: Renamed from
50447         doc/glibc-functions/isgraph_l.texi.
50448         * doc/posix-functions/islower_l.texi: Renamed from
50449         doc/glibc-functions/islower_l.texi.
50450         * doc/posix-functions/isprint_l.texi: Renamed from
50451         doc/glibc-functions/isprint_l.texi.
50452         * doc/posix-functions/ispunct_l.texi: Renamed from
50453         doc/glibc-functions/ispunct_l.texi.
50454         * doc/posix-functions/isspace_l.texi: Renamed from
50455         doc/glibc-functions/isspace_l.texi.
50456         * doc/posix-functions/isupper_l.texi: Renamed from
50457         doc/glibc-functions/isupper_l.texi.
50458         * doc/posix-functions/iswalnum_l.texi: Renamed from
50459         doc/glibc-functions/iswalnum_l.texi.
50460         * doc/posix-functions/iswalpha_l.texi: Renamed from
50461         doc/glibc-functions/iswalpha_l.texi.
50462         * doc/posix-functions/iswblank_l.texi: Renamed from
50463         doc/glibc-functions/iswblank_l.texi.
50464         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50465         doc/glibc-functions/iswcntrl_l.texi.
50466         * doc/posix-functions/iswctype_l.texi: Renamed from
50467         doc/glibc-functions/iswctype_l.texi.
50468         * doc/posix-functions/iswdigit_l.texi: Renamed from
50469         doc/glibc-functions/iswdigit_l.texi.
50470         * doc/posix-functions/iswgraph_l.texi: Renamed from
50471         doc/glibc-functions/iswgraph_l.texi.
50472         * doc/posix-functions/iswlower_l.texi: Renamed from
50473         doc/glibc-functions/iswlower_l.texi.
50474         * doc/posix-functions/iswprint_l.texi: Renamed from
50475         doc/glibc-functions/iswprint_l.texi.
50476         * doc/posix-functions/iswpunct_l.texi: Renamed from
50477         doc/glibc-functions/iswpunct_l.texi.
50478         * doc/posix-functions/iswspace_l.texi: Renamed from
50479         doc/glibc-functions/iswspace_l.texi.
50480         * doc/posix-functions/iswupper_l.texi: Renamed from
50481         doc/glibc-functions/iswupper_l.texi.
50482         * doc/posix-functions/iswxdigit_l.texi: Renamed from
50483         doc/glibc-functions/iswxdigit_l.texi.
50484         * doc/posix-functions/isxdigit_l.texi: Renamed from
50485         doc/glibc-functions/isxdigit_l.texi.
50486         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
50487         doc/glibc-functions/mbsnrtowcs.texi.
50488         * doc/posix-functions/mkdtemp.texi: Renamed from
50489         doc/glibc-functions/mkdtemp.texi.
50490         * doc/posix-functions/newlocale.texi: Renamed from
50491         doc/glibc-functions/newlocale.texi.
50492         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
50493         doc/glibc-functions/nl_langinfo_l.texi.
50494         * doc/posix-functions/open_memstream.texi: Renamed from
50495         doc/glibc-functions/open_memstream.texi.
50496         * doc/posix-functions/opterr.texi: Renamed from
50497         doc/glibc-functions/opterr.texi.
50498         * doc/posix-functions/optind.texi: Renamed from
50499         doc/glibc-functions/optind.texi.
50500         * doc/posix-functions/optopt.texi: Renamed from
50501         doc/glibc-functions/optopt.texi.
50502         * doc/posix-functions/psignal.texi: Renamed from
50503         doc/glibc-functions/psignal.texi.
50504         * doc/posix-functions/scandir.texi: Renamed from
50505         doc/glibc-functions/scandir.texi.
50506         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
50507         doc/glibc-functions/sched_get_priority_min.texi.
50508         * doc/posix-functions/signgam.texi: Renamed from
50509         doc/glibc-functions/signgam.texi.
50510         * doc/posix-functions/stpcpy.texi: Renamed from
50511         doc/glibc-functions/stpcpy.texi.
50512         * doc/posix-functions/stpncpy.texi: Renamed from
50513         doc/glibc-functions/stpncpy.texi.
50514         * doc/posix-functions/strcasecmp_l.texi: Renamed from
50515         doc/glibc-functions/strcasecmp_l.texi.
50516         * doc/posix-functions/strcoll_l.texi: Renamed from
50517         doc/glibc-functions/strcoll_l.texi.
50518         * doc/posix-functions/strfmon_l.texi: Renamed from
50519         doc/glibc-functions/strfmon_l.texi.
50520         * doc/posix-functions/strftime_l.texi: Renamed from
50521         doc/glibc-functions/strftime_l.texi.
50522         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50523         doc/glibc-functions/strncasecmp_l.texi.
50524         * doc/posix-functions/strndup.texi: Renamed from
50525         doc/glibc-functions/strndup.texi.
50526         * doc/posix-functions/strnlen.texi: Renamed from
50527         doc/glibc-functions/strnlen.texi.
50528         * doc/posix-functions/strsignal.texi: Renamed from
50529         doc/glibc-functions/strsignal.texi.
50530         * doc/posix-functions/strxfrm_l.texi: Renamed from
50531         doc/glibc-functions/strxfrm_l.texi.
50532         * doc/posix-functions/timer_gettime.texi: Renamed from
50533         doc/glibc-functions/timer_gettime.texi.
50534         * doc/posix-functions/tolower_l.texi: Renamed from
50535         doc/glibc-functions/tolower_l.texi.
50536         * doc/posix-functions/toupper_l.texi: Renamed from
50537         doc/glibc-functions/toupper_l.texi.
50538         * doc/posix-functions/towctrans_l.texi: Renamed from
50539         doc/glibc-functions/towctrans_l.texi.
50540         * doc/posix-functions/towlower_l.texi: Renamed from
50541         doc/glibc-functions/towlower_l.texi.
50542         * doc/posix-functions/towupper_l.texi: Renamed from
50543         doc/glibc-functions/towupper_l.texi.
50544         * doc/posix-functions/uselocale.texi: Renamed from
50545         doc/glibc-functions/uselocale.texi.
50546         * doc/posix-functions/vdprintf.texi: Renamed from
50547         doc/glibc-functions/vdprintf.texi.
50548         * doc/posix-functions/wcpcpy.texi:
50549         Renamed from doc/glibc-functions/wcpcpy.texi.
50550         * doc/posix-functions/wcpncpy.texi: Renamed from
50551         doc/glibc-functions/wcpncpy.texi.
50552         * doc/posix-functions/wcscasecmp.texi: Renamed from
50553         doc/glibc-functions/wcscasecmp.texi.
50554         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50555         doc/glibc-functions/wcscasecmp_l.texi.
50556         * doc/posix-functions/wcscoll_l.texi: Renamed from
50557         doc/glibc-functions/wcscoll_l.texi.
50558         * doc/posix-functions/wcsdup.texi: Renamed from
50559         doc/glibc-functions/wcsdup.texi.
50560         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50561         doc/glibc-functions/wcsncasecmp.texi.
50562         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50563         doc/glibc-functions/wcsncasecmp_l.texi.
50564         * doc/posix-functions/wcsnlen.texi: Renamed from
50565         doc/glibc-functions/wcsnlen.texi.
50566         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50567         doc/glibc-functions/wcsnrtombs.texi.
50568         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50569         doc/glibc-functions/wcsxfrm_l.texi.
50570         * doc/posix-functions/wctrans_l.texi: Renamed from
50571         doc/glibc-functions/wctrans_l.texi.
50572         * doc/posix-functions/wctype_l.texi: Renamed from
50573         doc/glibc-functions/wctype_l.texi.
50574         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50575         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50576         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50577         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50578         these subsections.
50579         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50580         Remove sections.
50581
50582 2008-12-14  Bruno Haible  <bruno@clisp.org>
50583
50584         Update doc for POSIX:2008.
50585         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50586
50587 2008-12-14  Bruno Haible  <bruno@clisp.org>
50588
50589         Update doc for POSIX:2008.
50590         * doc/pastposix-functions/bcmp.texi: Renamed from
50591         doc/posix-functions/bcmp.texi.
50592         * doc/pastposix-functions/bcopy.texi: Renamed from
50593         doc/posix-functions/bcopy.texi.
50594         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50595         doc/posix-functions/bsd_signal.texi.
50596         * doc/pastposix-functions/bzero.texi: Renamed from
50597         doc/posix-functions/bzero.texi.
50598         * doc/pastposix-functions/ecvt.texi: Renamed from
50599         doc/posix-functions/ecvt.texi.
50600         * doc/pastposix-functions/fcvt.texi: Renamed from
50601         doc/posix-functions/fcvt.texi.
50602         * doc/pastposix-functions/ftime.texi: Renamed from
50603         doc/posix-functions/ftime.texi.
50604         * doc/pastposix-functions/gcvt.texi: Renamed from
50605         doc/posix-functions/gcvt.texi.
50606         * doc/pastposix-functions/getcontext.texi: Renamed from
50607         doc/posix-functions/getcontext.texi.
50608         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50609         doc/posix-functions/gethostbyaddr.texi.
50610         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50611         doc/posix-functions/gethostbyname.texi.
50612         * doc/pastposix-functions/getwd.texi: Renamed from
50613         doc/posix-functions/getwd.texi.
50614         * doc/pastposix-functions/h_errno.texi: Renamed from
50615         doc/posix-functions/h_errno.texi.
50616         * doc/pastposix-functions/index.texi: Renamed from
50617         doc/posix-functions/index.texi.
50618         * doc/pastposix-functions/makecontext.texi: Renamed from
50619         doc/posix-functions/makecontext.texi.
50620         * doc/pastposix-functions/mktemp.texi: Renamed from
50621         doc/posix-functions/mktemp.texi.
50622         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50623         doc/posix-functions/pthread_attr_getstackaddr.texi.
50624         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50625         doc/posix-functions/pthread_attr_setstackaddr.texi.
50626         * doc/pastposix-functions/rindex.texi: Renamed from
50627         doc/posix-functions/rindex.texi.
50628         * doc/pastposix-functions/scalb.texi: Renamed from
50629         doc/posix-functions/scalb.texi.
50630         * doc/pastposix-functions/setcontext.texi: Renamed from
50631         doc/posix-functions/setcontext.texi.
50632         * doc/pastposix-functions/swapcontext.texi: Renamed from
50633         doc/posix-functions/swapcontext.texi.
50634         * doc/pastposix-functions/ualarm.texi: Renamed from
50635         doc/posix-functions/ualarm.texi.
50636         * doc/pastposix-functions/usleep.texi: Renamed from
50637         doc/posix-functions/usleep.texi.
50638         * doc/pastposix-functions/vfork.texi: Renamed from
50639         doc/posix-functions/vfork.texi.
50640         * doc/pastposix-functions/wcswcs.texi: Renamed from
50641         doc/posix-functions/wcswcs.texi.
50642         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50643         (Function Substitutes): Update.
50644
50645 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50646
50647         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50648         m4/strerror.m4.
50649
50650 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50651             Bruno Haible  <bruno@clisp.org>
50652
50653         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50654
50655 2008-12-13  Bruno Haible  <bruno@clisp.org>
50656
50657         * modules/strtoull (Depends-on): Remove unistd.
50658
50659 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50660
50661         * modules/strtoull (Depends-on): Add stdlib.
50662
50663 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50664
50665         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50666
50667 2008-12-10  Jim Meyering  <meyering@redhat.com>
50668
50669         gl_ASSERT: don't say assertions are disabled when they're not
50670         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50671         "checking whether to enable assertions... no", when they are in
50672         fact enabled.  This is solely a bug in the output of configure.
50673         In spite of saying "no", NDEBUG was not defined in that case.
50674         Also, as noted by Eric Blake, leave assertions enabled upon
50675         --enable-assert=INVALID.
50676
50677 2008-12-10  Bruno Haible  <bruno@clisp.org>
50678
50679         Change MODULES.html to refer to POSIX:2008 where possible.
50680         * MODULES.html.sh (POSIX2008_URL): New variable.
50681         (posix_headers): Remove sys/timeb, ucontext.
50682         (posix2001_headers): New variable.
50683         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50684         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50685         index, makecontext, mktemp, pthread_attr_getstackaddr,
50686         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50687         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50688         (posix2001_functions): New variable.
50689         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50690         otherwise.
50691
50692 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50693
50694         add missing include to parse-duration.c
50695         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50696         * modules/parse-duration (Depends-on): Add xalloc.
50697
50698         fix sed script reading maint.mk
50699         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50700         (syntax-check-rules): Use it.
50701
50702 2008-12-09  Bruno Haible  <bruno@clisp.org>
50703
50704         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50705         MacOS X 10.4/PowerPC.
50706         Reported by Simon Josefsson.
50707
50708 2008-12-08  Jim Meyering  <meyering@redhat.com>
50709
50710         work around mingw's lack of some S_IF definitions
50711         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50712         Reported by Simon Josefsson.
50713
50714 2008-12-08  Bruno Haible  <bruno@clisp.org>
50715
50716         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50717         applied to variables. Needed on MacOS X 10.4/PowerPC.
50718         Reported by Simon Josefsson.
50719
50720 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50721         and Eric Blake  <ebb9@byu.net>
50722
50723         assert: honor --enable-assert
50724         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50725         order to honor --enable-assert, rather than treating it as a
50726         synonym for --disable-assert.
50727
50728 2008-12-08  Jim Meyering  <meyering@redhat.com>
50729
50730         * lib/posixtm.c: Remove now-useless declaration of mktime.
50731
50732         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50733
50734 2008-12-07  Bruno Haible  <bruno@clisp.org>
50735
50736         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50737         test_once): Mark functions as static.
50738         * tests/test-tls.c (test_tls): Likewise.
50739
50740 2008-12-07  Bruno Haible  <bruno@clisp.org>
50741
50742         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50743         iconv_register_autodetect.
50744
50745 2008-12-07  Jim Meyering  <meyering@redhat.com>
50746
50747         posixtm.c: avoid a warning
50748         * lib/posixtm.c (posixtime): Don't initialize tm0.
50749         It's no longer needed to placate gcc4's -Wuninitialized,
50750         and the attempt to placate would elicit a new warning.
50751
50752         unicodeio.c: mark unused parameters
50753         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50754         (fallback_failure_callback): Likewise.
50755
50756 2008-12-07  Bruno Haible  <bruno@clisp.org>
50757
50758         * gnulib-tool (func_create_testdir): When building the tests
50759         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50760         Reported by Simon Josefsson.
50761
50762 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50763
50764         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50765
50766 2008-12-06  Bruno Haible  <bruno@clisp.org>
50767
50768         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50769         Suggested by Eric Blake.
50770
50771 2008-12-06  Bruno Haible  <bruno@clisp.org>
50772
50773         Fix a c-stack test failure on MacOS X.
50774         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50775         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50776         handler for SIGBUS as well.
50777         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50778         install a signal handler for SIGBUS as well.
50779         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50780
50781 2008-12-06  Bruno Haible  <bruno@clisp.org>
50782
50783         Advocacy documentation.
50784         * doc/gnulib-intro.texi (Benefits): New section.
50785         * doc/gnulib.texi: Update.
50786
50787 2008-12-06  Bruno Haible  <bruno@clisp.org>
50788
50789         Document the 'manywarnings' module.
50790         * doc/manywarnings.texi: New file.
50791         * doc/gnulib.texi: Include it.
50792
50793 2008-12-05  Eric Blake  <ebb9@byu.net>
50794
50795         tests: silence some gcc warnings
50796         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50797         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50798         type mismatches.
50799
50800 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50801             Bruno Haible  <bruno@clisp.org>
50802
50803         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50804
50805 2008-11-29  Jim Meyering  <meyering@redhat.com>
50806
50807         unicodeio.c: mark unused parameters
50808         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50809         (fallback_failure_callback): Likewise.
50810
50811         fts: fix a thinko
50812         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50813         (set_stat_type): Return S_IF*-valued "type" directly.
50814         Prompted by James Youngman's spotting a related bug.
50815         Confirmed by further testing through find.
50816
50817         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50818         * lib/fts.c (D_TYPE): Define.
50819         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50820         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50821         (s_ifmt_shift_bits): New function.
50822         (set_stat_type): New function.
50823         (fts_build): When not calling fts_stat, call set_stat_type
50824         to propagate dirent.d_type info to fts_read caller.
50825         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50826         fts_statp->st_mode type information may be valid.
50827
50828 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50829
50830         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50831         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50832         <sds@gnu.org>.
50833
50834 2008-11-20  Bruno Haible  <bruno@clisp.org>
50835
50836         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50837         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50838         INCLUDE_NEXT.
50839         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50840         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50841         * modules/math (Makefile.am): Substitute
50842         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50843         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50844
50845 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50846             Bruno Haible  <bruno@clisp.org>
50847
50848         * lib/stdint.in.h: Define all type macros so that their expansion is
50849         a single typedef'ed token. Fixes a compilation failure in Boost which
50850         does "using ::int8_t;".
50851
50852 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50853
50854         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50855         gl_MANYWARN_ALL_GCC.
50856         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50857         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50858         * modules/manywarnings: New file.
50859         * MODULES.html.sh: Mention manywarnings module.
50860
50861 2008-11-18  Bruno Haible  <bruno@clisp.org>
50862
50863         * doc/gnulib-tool.texi (Unit tests): New section.
50864
50865 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50866
50867         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50868         paths like 'lib/po/foo.po'.
50869
50870 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50871
50872         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50873         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50874
50875 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50876
50877         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50878         parameter works.
50879
50880 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50881
50882         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50883
50884 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50885
50886         * modules/parse-duration-tests: New file.
50887         * tests/test-parse-duration.sh: New file.
50888         * tests/test-parse-duration.c: New file.
50889
50890         New module 'parse-duration'.
50891         * lib/parse-duration.h: New file.
50892         * lib/parse-duration.c: New file.
50893         * modules/parse-duration: New file.
50894
50895 2008-11-17  Bruno Haible  <bruno@clisp.org>
50896
50897         * tests/test-select-out.sh: Comment out the first pipe test.
50898         Reported by Simon Josefsson.
50899
50900 2008-11-17  Bruno Haible  <bruno@clisp.org>
50901
50902         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50903         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50904         gl_HOSTENT.
50905
50906 2008-11-17  Bruno Haible  <bruno@clisp.org>
50907
50908         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50909         -lnetwork and -lnet. Needed for Haiku and BeOS.
50910
50911 2008-11-16  Bruno Haible  <bruno@clisp.org>
50912
50913         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50914
50915 2008-11-16  Bruno Haible  <bruno@clisp.org>
50916
50917         Avoid test failure on Haiku.
50918         * tests/test-fsync.c: Include <errno.h>.
50919         (main): Don't require that fsync (0) fails.
50920
50921 2008-11-15  Bruno Haible  <bruno@clisp.org>
50922
50923         New module 'hostent'.
50924         * modules/hostent: New file.
50925         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50926
50927 2008-11-15  Bruno Haible  <bruno@clisp.org>
50928
50929         New module 'servent'.
50930         * modules/servent: New file.
50931         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50932
50933 2008-11-15  Bruno Haible  <bruno@clisp.org>
50934
50935         Avoid generating same test program with two different rules.
50936         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50937         test-frexp to test-frexp-nolibm.
50938         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50939         test-frexpl to test-frexpl-nolibm.
50940
50941 2008-11-15  Bruno Haible  <bruno@clisp.org>
50942
50943         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50944         $(FREXPL_LIBM).
50945
50946 2008-11-15  Bruno Haible  <bruno@clisp.org>
50947
50948         * lib/netdb.in.h: Activate the definitions also when the system's
50949         <netdb.h> has 'struct addrinfo'.
50950         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50951         EAI_OVERFLOW or AI_NUMERICSERV.
50952         * doc/posix-headers/netdb.texi: Document the problem.
50953
50954 2008-11-15  Bruno Haible  <bruno@clisp.org>
50955
50956         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50957
50958         Make the 'sched' module work on platforms where <sched.h> exists but
50959         is incomplete (such as Haiku).
50960         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50961         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50962         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50963         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50964         HAVE_STRUCT_SCHED_PARAM.
50965         * modules/sched (Depends-on): Add include_next.
50966         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50967         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50968         * doc/posix-headers/sched.texi: Document the issue.
50969
50970 2008-11-13  Jim Meyering  <meyering@redhat.com>
50971
50972         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50973         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50974         test would fail due to the difference in the Report bugs to ...
50975         line.  The expected address is empty, "<>", while the actual
50976         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50977
50978 2008-11-12  Bruno Haible  <bruno@clisp.org>
50979
50980         lstat: don't compile lstat.c on systems lacking lstat
50981         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50982         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50983         Reported by Daniel P. Berrange via Jim Meyering.
50984
50985 2008-11-12  Jim Meyering  <meyering@redhat.com>
50986
50987         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50988
50989 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50990
50991         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50992         instead.
50993
50994 2008-11-12  Bruno Haible  <bruno@clisp.org>
50995
50996         * lib/unicodeio.c: Include unistr.h.
50997         (utf8_wctomb): Remove function.
50998         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50999
51000 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51001
51002         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
51003         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
51004         <bruno@clisp.org>.
51005         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
51006
51007 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51008
51009         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
51010         * doc/gnulib.texi: Add section for warnings.
51011
51012 2008-11-11  Bruno Haible  <bruno@clisp.org>
51013
51014         * lib/sockets.h: Add a comment.
51015
51016 2008-11-11  Karl Berry  <karl@gnu.org>
51017
51018         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
51019
51020 2008-11-11  Eric Blake  <ebb9@byu.net>
51021
51022         fdl.texi: avoid git symlinks
51023         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
51024
51025 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51026
51027         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
51028
51029 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51030
51031         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
51032         (gl_WARN_ADD): Substitute $2 if literal.
51033
51034 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51035
51036         * m4/warning.m4: Remove.
51037
51038 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51039
51040         * m4/warnings.m4: Almost complete rewrite. :-)
51041
51042 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51043
51044         * modules/warnings: New module.
51045         * m4/warnings.m4: New file.
51046         * MODULES.html.sh: Mention warnings module.
51047         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51048         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51049
51050 2008-11-10  Eric Blake  <ebb9@byu.net>
51051
51052         fdl.texi: make a symlink to the latest version
51053         * doc/standards.texi: Revert today's earlier change.
51054         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51055         * doc/fdl.texi: ...and replace this with a symlink to the newer
51056         fdl-1.3.texi.
51057
51058 2008-11-10  Bruno Haible  <bruno@clisp.org>
51059
51060         * tests/test-select-fd.c (main): Accept the result file name as fourth
51061         argument.
51062         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51063         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51064
51065 2008-11-10  Bruno Haible  <bruno@clisp.org>
51066
51067         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51068         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51069         as autoconf-substituted macros.
51070         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51071         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51072         gl_NETDB_H_DEFAULTS. Set these variables.
51073         * modules/netdb (Makefile.am): Substitute these variables.
51074
51075 2008-11-10  Eric Blake  <ebb9@byu.net>
51076
51077         standards.texi: include correct file for FDL 1.3
51078         * doc/standards.texi (GNU Free Documentation License): Change
51079         include file to pull in FDL 1.3, not 1.2.
51080
51081         fdl.texi: revert accidental change to license
51082         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51083
51084 2008-11-10  Bruno Haible  <bruno@clisp.org>
51085
51086         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51087         cross-compiling guesses also when the native compile gives no result.
51088
51089 2008-11-10  Bruno Haible  <bruno@clisp.org>
51090
51091         * lib/spawni.c (__spawni): Force variable into the stack.
51092
51093 2008-11-10  Bruno Haible  <bruno@clisp.org>
51094
51095         Add support for Haiku.
51096         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51097         glibc and BeOS, but also on Haiku.
51098         * lib/fpurge.c (fpurge): Likewise.
51099         * lib/freadable.c (freadable): Likewise.
51100         * lib/freadahead.c (freadahead): Likewise.
51101         * lib/freading.c (freading): Likewise.
51102         * lib/freadptr.c (freadptr): Likewise.
51103         * lib/freadseek.c (freadptrinc): Likewise.
51104         * lib/fseeko.c (rpl_fseeko): Likewise.
51105         * lib/fseterr.c (fseterr): Likewise.
51106         * lib/fwritable.c (fwritable): Likewise.
51107         * lib/fwriting.c (fwriting): Likewise.
51108         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51109
51110 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51111
51112         * lib/config.charset: Treat Haiku like BeOS.
51113
51114 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51115
51116         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51117         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51118
51119 2008-11-08  Bruno Haible  <bruno@clisp.org>
51120
51121         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51122         AC_CACHE_CHECK.
51123
51124 2008-11-08  Bruno Haible  <bruno@clisp.org>
51125
51126         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51127
51128 2008-11-08  Bruno Haible  <bruno@clisp.org>
51129
51130         * tests/test-select-fd.c: New file.
51131         * tests/test-select-in.sh: New file.
51132         * tests/test-select-out.sh: New file.
51133         * tests/test-select-stdin.c: New file.
51134         * modules/select-tests (Files): Add the new files.
51135         (Depends-on): Add gettimeofday.
51136         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51137         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51138         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51139
51140 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51141             Bruno Haible  <bruno@clisp.org>
51142
51143         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51144
51145 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51146
51147         * build-aux/pmccabe2html: Added support for C++ source files.
51148
51149 2008-11-05  Ben Pfaff  <blp@gnu.org>
51150
51151         Fix lib/close.c build on Windows.
51152         * modules/close (Files): Add lib/w32sock.h.
51153
51154 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51155
51156         Accept Bison's NEWS format.
51157         * build-aux/announce-gen (print_news_deltas): Tweak
51158         $re_prefix.
51159
51160 2008-11-04  Bruno Haible  <bruno@clisp.org>
51161
51162         * modules/random_r (Maintainer): Add glibc.
51163
51164 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51165
51166         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51167         by karl@freefriends.org (Karl Berry).
51168         * doc/alloca.texi: Likewise.
51169         * doc/c-ctype.texi: Likewise.
51170         * doc/c-strcase.texi: Likewise.
51171         * doc/c-strcaseeq.texi: Likewise.
51172         * doc/c-strcasestr.texi: Likewise.
51173         * doc/c-strstr.texi: Likewise.
51174         * doc/c-strtod.texi: Likewise.
51175         * doc/c-strtold.texi: Likewise.
51176         * doc/ctime.texi: Likewise.
51177         * doc/error.texi: Likewise.
51178         * doc/fdl.texi: Likewise.
51179         * doc/gcd.texi: Likewise.
51180         * doc/getdate.texi: Likewise.
51181         * doc/gnulib-intro.texi: Likewise.
51182         * doc/gnulib-tool.texi: Likewise.
51183         * doc/gnulib.texi: Likewise.
51184         * doc/inet_ntoa.texi: Likewise.
51185         * doc/maintain.texi: Likewise.
51186         * doc/make-stds.texi: Likewise.
51187         * doc/quote.texi: Likewise.
51188         * doc/regexprops-generic.texi: Likewise.
51189         * doc/standards.texi: Likewise.
51190         * doc/verify.texi: Likewise.
51191         * doc/visibility.texi: Likewise.
51192         * doc/gnulib.texi (GNU Free Documentation License): Include
51193         fdl-1.3.texi instead of fdl.texi.
51194
51195 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51196
51197         * doc/fdl-1.3.texi: New file, from
51198         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51199         * modules/fdl-1.3: Add.
51200         * MODULES.html.sh: Add fdl-1.3.
51201
51202 2008-11-03  Bruno Haible  <bruno@clisp.org>
51203
51204         Make determination of absolute name of header file work with AIX xlc.
51205         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51206         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51207         preprocessing.
51208         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51209         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51210
51211 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51212
51213         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51214         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51215         <ludo@gnu.org>.
51216
51217 2008-11-02  Bruno Haible  <bruno@clisp.org>
51218
51219         Mark 'strpbrk' obsolete.
51220         * modules/strpbrk (Status, Notice): New sections.
51221         * modules/strtok_r (Depends-on): Add strpbrk.
51222
51223 2008-11-02  Bruno Haible  <bruno@clisp.org>
51224
51225         Mark 'strdup' obsolete.
51226         * modules/strdup (Status, Notice): New sections.
51227         * modules/findprog (Depends-on): Add strdup.
51228         * modules/getaddrinfo (Depends-on): Likewise.
51229         * modules/localename (Depends-on): Likewise.
51230         * modules/relocatable-lib (Depends-on): Likewise.
51231         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51232         * modules/relocatable-prog (Depends-on): Likewise.
51233         * modules/trim (Depends-on): Likewise.
51234         * modules/unictype/gen-ctype (Depends-on): Likewise.
51235         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51236
51237 2008-11-02  Bruno Haible  <bruno@clisp.org>
51238
51239         Mark 'strcspn' obsolete.
51240         * modules/strcspn (Status, Notice): New sections.
51241
51242 2008-11-02  Bruno Haible  <bruno@clisp.org>
51243
51244         Mark 'rmdir' obsolete.
51245         * modules/rmdir (Status, Notice): New sections.
51246         * modules/clean-temp (Depends-on): Add rmdir.
51247         * modules/openat (Depends-on): Likewise.
51248
51249 2008-11-02  Bruno Haible  <bruno@clisp.org>
51250
51251         Mark 'raise' obsolete.
51252         * modules/raise (Status, Notice): New sections.
51253         (Include): Specify <signal.h>.
51254         * modules/stdio (Depends-on): Add raise.
51255         * modules/write (Depends-on): Likewise.
51256
51257 2008-11-02  Bruno Haible  <bruno@clisp.org>
51258
51259         Mark 'memset' obsolete.
51260         * modules/memset (Status, Notice): New sections.
51261
51262 2008-11-02  Bruno Haible  <bruno@clisp.org>
51263
51264         Mark 'memmove' obsolete.
51265         * modules/memmove (Status, Notice): New sections.
51266         * modules/argp (Depends-on): Add memmove.
51267         * modules/argz (Depends-on): Likewise.
51268         * modules/canonicalize (Depends-on): Likewise.
51269         * modules/canonicalize-lgpl (Depends-on): Likewise.
51270         * modules/fts (Depends-on): Likewise.
51271         * modules/getcwd (Depends-on): Likewise.
51272         * modules/human (Depends-on): Likewise.
51273         * modules/regex (Depends-on): Likewise.
51274         * modules/striconveh (Depends-on): Likewise.
51275         * modules/trim (Depends-on): Likewise.
51276         * modules/unistr/u8-move (Depends-on): Likewise.
51277         * modules/unistr/u16-move (Depends-on): Likewise.
51278         * modules/unistr/u32-move (Depends-on): Likewise.
51279
51280 2008-11-02  Bruno Haible  <bruno@clisp.org>
51281
51282         Mark 'memcpy' obsolete.
51283         * modules/memcpy (Status, Notice): New sections.
51284
51285 2008-11-02  Bruno Haible  <bruno@clisp.org>
51286
51287         Mark 'memcmp' obsolete.
51288         * modules/memcmp (Status, Notice): New sections.
51289         * modules/argmatch (Depends-on): Add memchr.
51290         * modules/backupfile (Depends-on): Likewise.
51291         * modules/c-strcasestr (Depends-on): Likewise.
51292         * modules/crypto/des (Depends-on): Likewise.
51293         * modules/csharpcomp (Depends-on): Likewise.
51294         * modules/fnmatch (Depends-on): Likewise.
51295         * modules/git-merge-changelog (Depends-on): Likewise.
51296         * modules/isnand (Depends-on): Likewise.
51297         * modules/isnand-nolibm (Depends-on): Likewise.
51298         * modules/isnanf (Depends-on): Likewise.
51299         * modules/isnanf-nolibm (Depends-on): Likewise.
51300         * modules/isnanl (Depends-on): Likewise.
51301         * modules/isnanl-nolibm (Depends-on): Likewise.
51302         * modules/mbchar (Depends-on): Likewise.
51303         * modules/memcoll (Depends-on): Likewise.
51304         * modules/quotearg (Depends-on): Likewise.
51305         * modules/regex (Depends-on): Likewise.
51306         * modules/relocatable-prog (Depends-on): Likewise.
51307         * modules/same (Depends-on): Likewise.
51308         * modules/signbit (Depends-on): Likewise.
51309         * modules/strcasestr-simple (Depends-on): Likewise.
51310         * modules/unictype/gen-ctype (Depends-on): Likewise.
51311         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51312         * modules/uniname/uniname (Depends-on): Likewise.
51313         * modules/unistr/u8-cmp (Depends-on): Likewise.
51314
51315 2008-11-02  Bruno Haible  <bruno@clisp.org>
51316
51317         Mark 'memchr' obsolete.
51318         * modules/memchr (Status, Notice): New sections.
51319         * modules/argp (Depends-on): Add memchr.
51320         * modules/base64 (Depends-on): Likewise.
51321         * modules/c-strcasestr (Depends-on): Likewise.
51322         * modules/chdir-long (Depends-on): Likewise.
51323         * modules/fnmatch (Depends-on): Likewise.
51324         * modules/getsubopt (Depends-on): Likewise.
51325         * modules/git-merge-changelog (Depends-on): Likewise.
51326         * modules/glob (Depends-on): Likewise.
51327         * modules/strcasestr-simple (Depends-on): Likewise.
51328         * modules/strnlen (Depends-on): Likewise.
51329
51330 2008-11-02  Bruno Haible  <bruno@clisp.org>
51331
51332         Mark 'atexit' obsolete.
51333         * modules/atexit (Status, Notice): New sections.
51334         * modules/chdir-long (Depends-on): Add atexit.
51335         * modules/wait-process (Depends-on): Likewise.
51336
51337 2008-11-02  Bruno Haible  <bruno@clisp.org>
51338
51339         * gnulib-tool: New option --with-obsolete.
51340         (func_usage): Document it.
51341         (func_modules_transitive_closure): Drop obsolete dependencies if
51342         incobsolete is not true.
51343         (func_import): Read and save the incobsolete variable to the cache.
51344
51345 2008-11-02  Bruno Haible  <bruno@clisp.org>
51346
51347         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51348         * gnulib-tool: New option --extract-status.
51349         (func_usage): Document it.
51350         (sed_extract_prog): Recognize it.
51351         (func_get_status): New function.
51352
51353 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51354
51355         * modules/sockets (License): Change from LGPL to LGPLv2+.
51356
51357 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51358
51359         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51360
51361 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51362
51363         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51364         Mention times and sys_times.
51365         * modules/sys_times, modules/sys_times-tests: New modules.
51366         * modules/times, modules/times-tests: Likewise
51367         * m4/sys_times_h.m4: New file.
51368         * lib/sys_times.in.h: Likewise
51369         * lib/times.c: Likewise.
51370         * tests/test-sys_times.c: Likewise.
51371         * tests/test-times.c: Likewise.
51372         * doc/posix-headers/sys_times.texi: Update.
51373         * doc/posix-functions/times.texi: Update.
51374
51375 2008-10-28  Jim Meyering  <meyering@redhat.com>
51376
51377         * modules/tempname (Depends-on): Add lstat.
51378
51379         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
51380
51381 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51382
51383         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
51384         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
51385         using idiom used elsewhere in gnulib.
51386
51387 2008-10-27  Jim Meyering  <meyering@redhat.com>
51388
51389         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
51390
51391 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51392
51393         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
51394         TESTS_ENVIRONMENT, for shell scripts that needs to call built
51395         programs.
51396         * tests/test-argp-2.sh: Use $EXEEXT when needed.
51397
51398 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51399
51400         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
51401
51402 2008-10-27  Bruno Haible  <bruno@clisp.org>
51403
51404         * tests/test-lstat.c: Include <stdio.h>.
51405
51406 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51407
51408         * modules/lstat-tests: New module.
51409         * tests/test-lstat.c: New file.
51410
51411 2008-10-26  Jim Meyering  <meyering@redhat.com>
51412
51413         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
51414
51415 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51416             Bruno Haible  <bruno@clisp.org>
51417
51418         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
51419         * modules/configmake (Include): Add a note that the include must come
51420         after all system headers.
51421         * lib/javaversion.c: Include configmake.h after all other includes.
51422
51423 2008-10-26  Bruno Haible  <bruno@clisp.org>
51424
51425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51426         HAVE_STRUCT_RANDOM_DATA to 1.
51427         (gl_STDLIB_H): Simplify.
51428
51429 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51430
51431         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51432         substitute HAVE_STRUCT_RANDOM_DATA.
51433         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51434         random_data.
51435         * modules/stdlib (Makefile.am): Substitute
51436         HAVE_STRUCT_RANDOM_DATA.
51437
51438 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51439
51440         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
51441         * doc/gnulib-intro.texi (Copyright): Likewise.
51442
51443 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51444
51445         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
51446         findings.
51447
51448 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
51449             Bruno Haible  <bruno@clisp.org>
51450
51451         * lib/unistd.in.h: Include <winsock2.h>.
51452         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
51453         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
51454         Provide dummy declarations.
51455         (gethostname): Override.
51456         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
51457         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
51458         gl_PREREQ_SYS_H_WINSOCK2.
51459         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
51460         * doc/posix-functions/gethostname.texi: More details.
51461
51462 2008-10-25  Bruno Haible  <bruno@clisp.org>
51463
51464         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51465         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51466         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51467
51468         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51469         here ...
51470         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51471         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
51472         gl_UNISTD_H_DEFAULTS.
51473
51474 2008-10-25  Eric Blake  <ebb9@byu.net>
51475
51476         signbit: avoid spurious compiler failure
51477         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
51478         declarations inside function.
51479
51480 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51481             Bruno Haible  <bruno@clisp.org>
51482
51483         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
51484         * modules/random_r (Depends-on): Add stdint.
51485
51486 2008-10-24  Bruno Haible  <bruno@clisp.org>
51487
51488         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
51489         Eggert.
51490         * modules/strerror (License): Likewise.
51491
51492 2008-10-24  Jim Meyering  <meyering@redhat.com>
51493
51494         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
51495         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
51496
51497 2008-10-24  Eric Blake  <ebb9@byu.net>
51498
51499         getgroups: fix compilation when getgroups is available
51500         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
51501         but with <config.h> override of getgroups disabled.
51502
51503 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51504
51505         * doc/gnulib.texi (Header files): Add note about C++ problems.
51506         Explained by Bruno Haible <bruno@clisp.org>.
51507
51508 2008-10-23  Bruno Haible  <bruno@clisp.org>
51509
51510         Define a dummy SA_NODEFER macro on Interix.
51511         * lib/signal.in.h (SA_NODEFER): Define fallback.
51512         Reported by Aleksey Cheusov <cheusov@tut.by> via
51513         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
51514
51515 2008-10-23  Bruno Haible  <bruno@clisp.org>
51516
51517         * modules/freadahead (License): Change to LGPLv2+.
51518         Suggested by Simon Josefsson.
51519
51520 2008-10-23  Jim Meyering  <meyering@redhat.com>
51521
51522         random_r: new module
51523         * modules/random_r: New file.
51524         * m4/random_r.m4: New file.
51525         * lib/random_r.c: New file, from glibc.
51526         * modules/random_r-tests: New file.
51527         * tests/test-random_r.c: New file.
51528         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51529          Declare.
51530         (RAND_MAX): Define.
51531         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51532         * modules/stdlib: Substitute them, too.
51533         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51534         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51535         * doc/glibc-functions/random_r.texi: Likewise.
51536         * doc/glibc-functions/setstate_r.texi: Likewise.
51537         * doc/glibc-functions/srandom_r.texi: Likewise.
51538         * config/srclist.txt: Mention it.
51539
51540 2008-10-23  David Lutterkort  <lutter@redhat.com>
51541
51542         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51543         link requirement
51544
51545 2008-10-23  Jim Meyering  <meyering@redhat.com>
51546
51547         selinux-h: mark parameters of stub functions as intentionally unused
51548         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51549         * lib/se-context.in.h: Likewise.
51550
51551 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51552
51553         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51554
51555 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51556
51557         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51558
51559 2008-10-22  Eric Blake  <ebb9@byu.net>
51560
51561         glthread/thread: avoid compiler warning
51562         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51563         Add unreachable abort to silence compiler.
51564
51565 2008-10-22  Eric Blake  <ebb9@byu.net>
51566
51567         netdb: also supply struct addrinfo for cygwin 1.5.x
51568         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51569         older cygwin.
51570         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51571         cygwin.
51572         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51573
51574 2008-10-22  Bruno Haible  <bruno@clisp.org>
51575
51576         * users.txt: Update entry about pspp.
51577
51578 2008-10-21  Bruno Haible  <bruno@clisp.org>
51579
51580         Simplification.
51581         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51582         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51583
51584         Simplification.
51585         * lib/ioctl.c (ioctl): Don't undefine.
51586         * lib/socket.c (socket): Don't undefine.
51587
51588         Remove unused module indicator macros.
51589         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51590         GNULIB_$1 as a C macro.
51591
51592         * doc/posix-functions/close.texi: Undo last change.
51593         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51594         Windows platforms.
51595
51596 2008-10-21  Bruno Haible  <bruno@clisp.org>
51597
51598         Add gethostname() declaration to <unistd.h>.
51599         * lib/unistd.in.h (gethostname): New declaration.
51600         * lib/gethostname.c: Include <unistd.h>.
51601         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51602         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51604         and HAVE_GETHOSTNAME.
51605         * modules/gethostname (Depends-on): Add unistd.
51606         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51607         (Include): Specify <unistd.h>.
51608         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51609         HAVE_GETHOSTNAME.
51610         * tests/test-gethostname.c: Include <unistd.h> first.
51611
51612 2008-10-21  Bruno Haible  <bruno@clisp.org>
51613
51614         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51615         * modules/select-tests (Depends-on): Likewise.
51616         Reported by Simon Josefsson.
51617
51618 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51619
51620         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51621         * lib/accept.c: New file, based on winsock.c.
51622         * lib/bind.c: New file, based on winsock.c.
51623         * lib/connect.c: New file, based on winsock.c.
51624         * lib/getpeername.c: New file, based on winsock.c.
51625         * lib/getsockname.c: New file, based on winsock.c.
51626         * lib/getsockopt.c: New file, based on winsock.c.
51627         * lib/ioctl.c: New file, based on winsock.c.
51628         * lib/listen.c: New file, based on winsock.c.
51629         * lib/recv.c: New file, based on winsock.c.
51630         * lib/recvfrom.c: New file, based on winsock.c.
51631         * lib/send.c: New file, based on winsock.c.
51632         * lib/sendto.c: New file, based on winsock.c.
51633         * lib/setsockopt.c: New file, based on winsock.c.
51634         * lib/shutdown.c: New file, based on winsock.c.
51635         * lib/socket.c: New file, based on winsock.c.
51636         * lib/w32sock.h: New file, based on winsock.c.
51637         * lib/winsock.c: Remove file.
51638         * modules/accept: Likewise.
51639         * modules/bind: Likewise.
51640         * modules/connect: Likewise.
51641         * modules/getpeername: Likewise.
51642         * modules/getsockname: Likewise.
51643         * modules/getsockopt: Likewise.
51644         * modules/ioctl: Likewise.
51645         * modules/listen: Likewise.
51646         * modules/recv: Likewise.
51647         * modules/recvfrom: Likewise.
51648         * modules/send: Likewise.
51649         * modules/sendto: Likewise.
51650         * modules/setsockopt: Likewise.
51651         * modules/shutdown: Likewise.
51652         * modules/socket: Use socket.c instead of winsock.c.
51653         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51654         * doc/posix-functions/accept.texi: Doc fix.
51655         * doc/posix-functions/bind.texi: Doc fix.
51656         * doc/posix-functions/close.texi: Doc fix.
51657         * doc/posix-functions/connect.texi: Doc fix.
51658         * doc/posix-functions/getpeername.texi: Doc fix.
51659         * doc/posix-functions/getsockname.texi: Doc fix.
51660         * doc/posix-functions/getsockopt.texi: Doc fix.
51661         * doc/posix-functions/ioctl.texi: Doc fix.
51662         * doc/posix-functions/listen.texi: Doc fix.
51663         * doc/posix-functions/recv.texi: Doc fix.
51664         * doc/posix-functions/recvfrom.texi: Doc fix.
51665         * doc/posix-functions/send.texi: Doc fix.
51666         * doc/posix-functions/sendto.texi: Doc fix.
51667         * doc/posix-functions/setsockopt.texi: Doc fix.
51668         * doc/posix-functions/shutdown.texi: Doc fix.
51669         * doc/posix-functions/socket.texi: Doc fix.
51670
51671 2008-10-20  Bruno Haible  <bruno@clisp.org>
51672
51673         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51674         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51675         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51676         as an alias for SIGABRT.
51677         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51678         (sigaction): Map it to SIGABRT.
51679         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51680
51681 2008-10-20  Bruno Haible  <bruno@clisp.org>
51682
51683         * lib/fts.c: Don't include lstat.h.
51684         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51685
51686         Move the lstat() declaration to <sys/stat.h>.
51687         * lib/lstat.h: Remove file.
51688         * lib/sys_stat.in.h: Add special invocation convention.
51689         (lstat): New declaration.
51690         * lib/lstat.c (orig_lstat): New function.
51691         (rpl_lstat): Use orig_lstat instead of lstat.
51692         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51693         AC_C_INLINE. Set REPLACE_LSTAT.
51694         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51695         and REPLACE_LSTAT.
51696         * modules/lstat (Files): Remove lib/lstat.h.
51697         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51698         (Include): Specify <sys/stat.h> instead of lstat.h.
51699         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51700         REPLACE_LSTAT.
51701         * NEWS: Mention the change.
51702
51703 2008-10-20  Bruno Haible  <bruno@clisp.org>
51704
51705         * modules/posix_spawn-tests: New file.
51706         * tests/test-posix_spawn3.c: New file.
51707
51708 2008-10-20  Bruno Haible  <bruno@clisp.org>
51709
51710         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51711         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51712         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51713         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51714         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51715
51716 2008-10-20  Bruno Haible  <bruno@clisp.org>
51717
51718         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51719         of posix_spawn on AIX 5.3.
51720
51721 2008-10-20  Bruno Haible  <bruno@clisp.org>
51722
51723         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51724
51725 2008-10-20  Bruno Haible  <bruno@clisp.org>
51726
51727         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51728         of AC_LANG_PROGRAM.
51729
51730 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51731
51732         * lib/netdb.in.h: Don't define GNU specific constants until they
51733         are supported or needed.  Reported by Bruno Haible
51734         <bruno@clisp.org>.
51735
51736 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51737
51738         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51739
51740 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51741
51742         * lib/getaddrinfo.h: Remove file.
51743         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51744         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51745         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51746         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51747         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51748         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51749         * tests/test-getaddrinfo.c: Likewise.
51750         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51751         * NEWS: Mention change.
51752
51753 2008-10-19  Bruno Haible  <bruno@clisp.org>
51754
51755         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51756
51757 2008-10-19  Bruno Haible  <bruno@clisp.org>
51758
51759         * lib/wait-process.c: Include simply <sys/wait.h>.
51760         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51761         WIFSTOPPED): Remove fallback definitions.
51762         * modules/wait-process (Depends-on): Add sys_wait.
51763
51764         New module 'sys_wait'.
51765         * modules/sys_wait: New file.
51766         * lib/sys_wait.in.h: New file, partially copied from
51767         lib/wait-process.c.
51768         * m4/sys_wait_h.m4: New file.
51769         * doc/posix-headers/sys_wait.texi: Mention the new module.
51770
51771 2008-10-19  Bruno Haible  <bruno@clisp.org>
51772
51773         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51774
51775 2008-10-19  Bruno Haible  <bruno@clisp.org>
51776
51777         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51778         * lib/wait-process.c (WAIT_T): Remove type.
51779         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51780         (wait_subprocess): Update.
51781
51782 2008-10-19  Bruno Haible  <bruno@clisp.org>
51783
51784         New module 'atoll'.
51785         * modules/atoll: New file.
51786         * lib/stdlib.in.h (atoll): New declaration.
51787         * lib/atoll.c: New file, from glibc with modifications.
51788         * m4/atoll.m4: New file.
51789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51790         HAVE_ATOLL.
51791         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51792         * doc/posix-functions/atoll.texi: Mention the new module.
51793
51794 2008-10-19  Bruno Haible  <bruno@clisp.org>
51795
51796         Add strtoull() declaration to <stdlib.h>.
51797         * lib/stdlib.in.h (strtoull): New declaration.
51798         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51799         Set HAVE_STRTOULL.
51800         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51801         HAVE_STRTOULL.
51802         * modules/strtoull (Depends-on): Add stdlib.
51803         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51804         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51805         HAVE_STRTOULL.
51806
51807 2008-10-19  Bruno Haible  <bruno@clisp.org>
51808
51809         Add strtoll() declaration to <stdlib.h>.
51810         * lib/stdlib.in.h (strtoll): New declaration.
51811         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51812         Set HAVE_STRTOLL.
51813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51814         HAVE_STRTOLL.
51815         * modules/strtoll (Depends-on): Add stdlib.
51816         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51817         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51818
51819 2008-10-19  Bruno Haible  <bruno@clisp.org>
51820
51821         * modules/bcopy (Depends-on): Add strings.
51822         (Include): Specify <strings.h>.
51823
51824 2008-10-19  Bruno Haible  <bruno@clisp.org>
51825
51826         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51827
51828 2008-10-19  Bruno Haible  <bruno@clisp.org>
51829
51830         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51831         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51832         mingw.
51833
51834 2008-10-19  Bruno Haible  <bruno@clisp.org>
51835
51836         * lib/atanl.c: Don't include isnanl.h.
51837         * lib/cosl.c: Likewise.
51838         * lib/ldexpl.c: Likewise.
51839         * lib/logl.c: Likewise.
51840         * lib/sinl.c: Likewise.
51841         * lib/sqrtl.c: Likewise.
51842         * lib/tanl.c: Likewise.
51843
51844         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51845         * lib/isnanf.h: Remove file.
51846         * lib/isnand.h: Remove file.
51847         * lib/isnanl.h: Remove file.
51848         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51849         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51850         macros.
51851         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51852         HAVE_ISNANF, don't define it as a C macro.
51853         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51854         HAVE_ISNAND, don't define it as a C macro.
51855         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51856         HAVE_ISNANL, don't define it as a C macro.
51857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51858         HAVE_ISNAN[FDL].
51859         * modules/isnanf (Files): Remove lib/isnanf.h.
51860         (Depends-on): Add math.
51861         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51862         (Include): Specify <math.h> instead of isnanf.h.
51863         * modules/isnand (Files): Remove lib/isnand.h.
51864         (Depends-on): Add math.
51865         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51866         (Include): Specify <math.h> instead of isnand.h.
51867         * modules/isnanl (Files): Remove lib/isnanl.h.
51868         (Depends-on): Add math.
51869         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51870         (Include): Specify <math.h> instead of isnanl.h.
51871         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51872         HAVE_ISNAN[FDL].
51873         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51874         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51875         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51876         * NEWS: Mention the change.
51877
51878 2008-10-18  Bruno Haible  <bruno@clisp.org>
51879
51880         Add getusershell(), setusershell(), endusershell() declarations to
51881         <unistd.h>.
51882         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51883         declarations.
51884         * lib/getusershell.c: Include unistd.h.
51885         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51886         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51887         HAVE_GETUSERSHELL.
51888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51889         and HAVE_GETUSERSHELL.
51890         * modules/getusershell (Depends-on): Add unistd, extensions.
51891         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51892         (Include): Specify <unistd.h>.
51893         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51894         HAVE_GETUSERSHELL.
51895
51896 2008-10-18  Bruno Haible  <bruno@clisp.org>
51897
51898         Add a getloadavg() declaration to <stdlib.h>.
51899         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51900         getloadavg declaration.
51901         (getloadavg): New declaration.
51902         * lib/getloadavg.c: Include <stdlib.h> first.
51903         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51904         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51905         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51907         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51908         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51909         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51910         (Include): Specify <stdlib.h>.
51911         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51912         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51913
51914 2008-10-18  Bruno Haible  <bruno@clisp.org>
51915
51916         * lib/dirchownmod.c: Don't include lchmod.h.
51917
51918         Move the lchmod() declaration to <sys/stat.h>.
51919         * lib/lchmod.h: Remove file.
51920         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51921         (lchmod): New declaration, moved here from lib/lchown.h.
51922         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51923         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51924         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51925         and HAVE_LCHMOD.
51926         * modules/lchmod (Files): Remove lib/lchmod.h.
51927         (Depends-on): Add sys_stat, extensions.
51928         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51929         (Include): Specify <sys/stat.h> instead of lchmod.h.
51930         * modules/sys_stat (Depends-on): Add link-warning.
51931         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51932         definition of GL_LINK_WARNING.
51933         * NEWS: Mention the change.
51934
51935 2008-10-18  Bruno Haible  <bruno@clisp.org>
51936
51937         * lib/fchdir.c: Don't include dirfd.h.
51938         * lib/fts.c: Likewise.
51939         * lib/getcwd.c: Likewise.
51940         * lib/glob.c: Likewise.
51941
51942         Move the dirfd() declaration to <dirent.h>.
51943         * lib/dirfd.h: Remove file.
51944         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51945         (dirfd): New declaration.
51946         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51947         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51948         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51949         HAVE_DECL_DIRFD.
51950         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51951         HAVE_DECL_DIRFD.
51952         * modules/dirfd (Files): Remove lib/dirfd.h.
51953         (Depends-on): Add dirent, extensions.
51954         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51955         (Include): Specify <dirent.h> instead of dirfd.h.
51956         * modules/dirent (Depends-on): Add link-warning.
51957         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51958         definition of GL_LINK_WARNING.
51959         * NEWS: Mention the change.
51960
51961 2008-10-18  Bruno Haible  <bruno@clisp.org>
51962
51963         Move the euidaccess() declaration to <unistd.h>.
51964         * lib/euidaccess.h: Remove file.
51965         * lib/unistd.in.h (euidaccess): New declaration.
51966         * lib/euidaccess.c: Don't include euidaccess.h.
51967         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51968         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51969         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51970         and HAVE_EUIDACCESS.
51971         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51972         (Depends-on): Add unistd.
51973         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51974         (Include): Specify <unistd.h> instead of euidaccess.h.
51975         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51976         HAVE_EUIDACCESS.
51977         * NEWS: Mention the change.
51978
51979 2008-10-18  Bruno Haible  <bruno@clisp.org>
51980
51981         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51982
51983         Move the getdomainname() declaration to <unistd.h>.
51984         * lib/getdomainname.h: Remove file.
51985         * lib/unistd.in.h (getdomainname): New declaration.
51986         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51987         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51988         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51989         HAVE_GETDOMAINNAME.
51990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51991         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51992         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51993         (Depends-on): Add unistd, extensions.
51994         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51995         (Includes): Specify <unistd.h> instead of getdomainname.h.
51996         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51997         HAVE_GETDOMAINNAME.
51998         * NEWS: Mention the change.
51999
52000 2008-10-18  Bruno Haible  <bruno@clisp.org>
52001
52002         * modules/dirent: New file.
52003         * m4/dirent_h.m4: New file.
52004         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
52005         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
52006         * modules/fchdir (Files): Remove lib/dirent.in.h.
52007         (Depends-on): Add dirent.
52008         (Makefile.am): Move rules to modules/dirent.
52009         * doc/posix-headers/dirent.texi: Mention the new module.
52010
52011 2008-10-18  Bruno Haible  <bruno@clisp.org>
52012
52013         Avoid -Wunused-parameter warnings in public gnulib header files.
52014         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
52015         macro.
52016         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
52017
52018 2008-10-18  Bruno Haible  <bruno@clisp.org>
52019
52020         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
52021         * doc/glibc-functions/error.texi: Mention the module 'error'.
52022         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
52023         * doc/glibc-functions/getdomainname.texi: Mention the module
52024         'getdomainname'.
52025         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
52026         * doc/glibc-functions/getpagesize.texi: Mention the module
52027         'getpagesize'.
52028         * doc/glibc-functions/getusershell.texi: Mention the module
52029         'getusershell'.
52030         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
52031         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
52032         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
52033         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
52034         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52035         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52036         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52037         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52038         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52039         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52040         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52041         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52042         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52043         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52044
52045 2008-10-17  Bruno Haible  <bruno@clisp.org>
52046
52047         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52048         HP-UX and IRIX, use -0.0L.
52049         * tests/test-ceill.c (minus_zero): Likewise.
52050         * tests/test-floorl.c (minus_zero): Likewise.
52051         * tests/test-frexpl.c (minus_zero): Likewise.
52052         * tests/test-isnan.c (minus_zerol): Likewise.
52053         * tests/test-isnanl.h (minus_zero): Likewise.
52054         * tests/test-ldexpl.c (minus_zero): Likewise.
52055         * tests/test-roundl.c (minus_zero): Likewise.
52056         * tests/test-signbit.c (minus_zerol): Likewise.
52057         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52058         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52059         * tests/test-truncl.c (minus_zero): Likewise.
52060         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52061         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52062         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52063         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52064
52065 2008-10-17  Bruno Haible  <bruno@clisp.org>
52066
52067         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52068         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52069         that it gets activated only for gcc >= 3.0.
52070         * lib/dirent.in.h: Likewise.
52071         * lib/errno.in.h: Likewise.
52072         * lib/fcntl.in.h: Likewise.
52073         * lib/float.in.h: Likewise.
52074         * lib/iconv.in.h: Likewise.
52075         * lib/inttypes.in.h: Likewise.
52076         * lib/locale.in.h: Likewise.
52077         * lib/math.in.h: Likewise.
52078         * lib/netdb.in.h: Likewise.
52079         * lib/netinet_in.in.h: Likewise.
52080         * lib/search.in.h: Likewise.
52081         * lib/signal.in.h: Likewise.
52082         * lib/spawn.in.h: Likewise.
52083         * lib/stdarg.in.h: Likewise.
52084         * lib/stdint.in.h: Likewise.
52085         * lib/stdio.in.h: Likewise.
52086         * lib/stdlib.in.h: Likewise.
52087         * lib/string.in.h: Likewise.
52088         * lib/strings.in.h: Likewise.
52089         * lib/sys_file.in.h: Likewise.
52090         * lib/sys_ioctl.in.h: Likewise.
52091         * lib/sys_select.in.h: Likewise.
52092         * lib/sys_socket.in.h: Likewise.
52093         * lib/sys_stat.in.h: Likewise.
52094         * lib/sys_time.in.h: Likewise.
52095         * lib/sysexits.in.h: Likewise.
52096         * lib/time.in.h: Likewise.
52097         * lib/unistd.in.h: Likewise.
52098         * lib/wchar.in.h: Likewise.
52099         * lib/wctype.in.h: Likewise.
52100         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52101
52102 2008-10-17  Jim Meyering  <meyering@redhat.com>
52103
52104         ignore-value: don't depend on inline module
52105         * modules/ignore-value (Depends-on): Remove 'inline'.
52106         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52107         Suggestion from Bruno Haible.
52108
52109 2008-10-17  Bruno Haible  <bruno@clisp.org>
52110
52111         New implementation of condition variables for Win32.
52112         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52113         (gl_linked_waitqueue_t): New type.
52114         (gl_cond_t): Use it.
52115         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52116         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52117         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52118         (glthread_cond_init_func, glthread_cond_wait_func,
52119         glthread_cond_timedwait_func, glthread_cond_signal_func,
52120         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52121         Reimplemented on the basis of gl_linked_waitqueue_t.
52122         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52123         gl_waitqueue_t.
52124         (gl_rwlock_t): Update.
52125         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52126
52127 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52128
52129         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52130         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52131
52132 2008-10-17  Jim Meyering  <meyering@redhat.com>
52133
52134         ignore-value: new module
52135         * modules/ignore-value: New file.
52136         * lib/ignore-value.h: New file.
52137         * MODULES.html.sh (Compiler warning management): New section,
52138         just for this module.  More to come.
52139
52140 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52141
52142         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52143         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52144         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52145
52146 2008-10-16  Jim Meyering  <meyering@redhat.com>
52147
52148         openat-die.c: avoid 'no previous prototype' warning
52149         * lib/openat-die.c: Include "openat.h".
52150         Reported by Reuben Thomas <rrt@sc3d.org>.
52151
52152 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52153
52154         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52155         * lib/netdb.in.h: Fix typo.
52156         Reported by Bruno Haible  <bruno@clisp.org>
52157
52158         * lib/netdb.in.h: Include sys/socket.h for platforms without
52159         netdb.h, to get structures like hostent on MinGW.
52160         * modules/netdb (Depends-on): Add sys_socket.
52161
52162 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52163
52164         * modules/netdb, modules/netdb-tests: New file.
52165         * m4/netdb_h.m4: New file.
52166         * lib/netdb.in.h: Add, currently just an empty file pending
52167         definitions.
52168         * tests/test-netdb.c: New file.
52169         * doc/posix-headers/netdb.texi: Mention that we replace it if
52170         needed.
52171         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52172         netdb.
52173
52174 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52175
52176         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52177         with code.
52178
52179 2008-10-13  Bruno Haible  <bruno@clisp.org>
52180
52181         * lib/glthread/cond.c (glthread_cond_wait_func,
52182         glthread_cond_timedwait_func): Add a comment.
52183
52184 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52185
52186         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52187         * tests/test-select.c: Likewise,
52188
52189 2008-10-13  Bruno Haible  <bruno@clisp.org>
52190
52191         * lib/glthread/cond.c (glthread_cond_wait_func,
52192         glthread_cond_timedwait_func): Fix variable name.
52193         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52194
52195 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52196
52197         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52198         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52199         struct sockaddr.sa_len.
52200         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52201
52202 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52203
52204         * build-aux/pmccabe2html: Add css and css_url parameters.
52205
52206 2008-10-12  Bruno Haible  <bruno@clisp.org>
52207
52208         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52209         calling aclx_get.
52210         Reported by Rainer Tammer <tammer@tammer.net>.
52211
52212 2008-10-12  Bruno Haible  <bruno@clisp.org>
52213
52214         Use msvcrt aware primitives for creation/termination of Win32 threads.
52215         * lib/glthread/thread.c: Include <process.h>.
52216         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52217         (wrapper_func): Update signature.
52218         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52219
52220 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52221             Bruno Haible  <bruno@clisp.org>
52222
52223         Provide a Win32 implementation of the 'cond' module.
52224         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52225         * lib/glthread/cond.c (glthread_cond_init_func,
52226         glthread_cond_wait_func, glthread_cond_timedwait_func,
52227         glthread_cond_signal_func, glthread_cond_broadcast_func,
52228         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52229         * modules/cond (Dependencies): Add gettimeofday.
52230
52231 2008-10-11  Bruno Haible  <bruno@clisp.org>
52232
52233         Make sleep work on older versions of mingw.
52234         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52235         only whether it exists.
52236         * doc/posix-functions/sleep.texi: Mention the problem with older
52237         versions of mingw.
52238
52239 2008-10-11  Bruno Haible  <bruno@clisp.org>
52240
52241         New module 'shutdown'.
52242         * modules/shutdown: New file.
52243         * lib/sys_socket.in.h (shutdown): New declaration.
52244         * lib/winsock.c (shutdown): New function.
52245         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52246         GNULIB_SHUTDOWN.
52247         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52248         * doc/posix-functions/shutdown.texi: Document the new module.
52249
52250 2008-10-11  Jim Meyering  <meyering@redhat.com>
52251
52252         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52253
52254 2008-10-11  Bruno Haible  <bruno@clisp.org>
52255
52256         New module 'fclose'.
52257         * modules/fclose: New file.
52258         * lib/stdio.in.h (fclose): New declaration.
52259         * lib/fclose.c: New file.
52260         * m4/fclose.m4: New file.
52261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52262         REPLACE_FCLOSE.
52263         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52264         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52265         REPLACE_FCLOSE.
52266         * modules/close (Depends-on): fclose.
52267         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52268
52269 2008-10-11  Bruno Haible  <bruno@clisp.org>
52270
52271         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52272         set errno and don't call _close.
52273
52274 2008-10-10  Bruno Haible  <bruno@clisp.org>
52275
52276         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52277         ACL, not afterwards. Fixes test failure on Cygwin.
52278
52279 2008-10-09  Ben Pfaff  <blp@gnu.org>
52280
52281         * build-aux/announce-gen: Fix gnulib version related part of usage
52282         message.  Die with a useful error message if no tarballs are
52283         found.
52284
52285 2008-10-10  Jim Meyering  <meyering@redhat.com>
52286
52287         bootstrap: use git's --depth=N option only if it's supported
52288         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52289         recognize the --depth option.  Reported by Pádraig Brady.
52290
52291 2008-10-09  Bruno Haible  <bruno@clisp.org>
52292
52293         New module 'ioctl'.
52294         * modules/ioctl: New file.
52295         * lib/sys_socket.in.h (ioctl): Remove declaration.
52296         * lib/winsock.c: Include <sys/ioctl.h>.
52297         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
52298         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52299         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
52300         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52301         * doc/posix-functions/ioctl.texi: Mention the new module.
52302
52303 2008-10-09  Bruno Haible  <bruno@clisp.org>
52304
52305         New module 'sys_ioctl'.
52306         * lib/sys_ioctl.in.h: New file.
52307         * m4/sys_ioctl_h.m4: New file.
52308         * modules/sys_ioctl: New file.
52309         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52310
52311 2008-10-09  Bruno Haible  <bruno@clisp.org>
52312
52313         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52314         * lib/winsock.c: Include <stdarg.h>.
52315         (rpl_ioctl): Change to second argument 'int' and then varargs.
52316
52317 2008-10-09  Bruno Haible  <bruno@clisp.org>
52318
52319         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52320         when the sys_socket module is present and the system has <winsock2.h>.
52321
52322 2008-10-09  Bruno Haible  <bruno@clisp.org>
52323
52324         * doc/posix-functions/close.texi: Mention module 'close' instead of
52325         module 'sys_socket'.
52326
52327 2008-10-09  Bruno Haible  <bruno@clisp.org>
52328
52329         * doc/glibc-headers/sys_ioctl.texi: New file.
52330         * doc/gnulib.texi: Include it.
52331
52332 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52333             Bruno Haible  <bruno@clisp.org>
52334
52335         Combine the two replacements of 'close'.
52336         * lib/sys_socket.in.h (close): Define to a reminder to include
52337         <unistd.h>.
52338         (_gl_close_fd_maybe_socket): New declaration.
52339         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52340         * lib/winsock.c (close): Remove undefinition.
52341         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52342         needed for the gnulib module 'close'.
52343         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52344         define to an error symbol or to a warning, if suitable.
52345         * lib/close.c: Include <sys/socket.h>.
52346         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52347         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52348         UNISTD_H_HAVE_WINSOCK2_H.
52349         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52351         UNISTD_H_HAVE_WINSOCK2_H.
52352         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52353         (configure.ac): Set a module indicator.
52354         (Makefile.am): Substitute GNULIB_CLOSE.
52355         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52356         * modules/poll-tests (Depends-on): Add close.
52357         * modules/select-tests (Depends-on): Likewise.
52358
52359 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52360             Bruno Haible  <bruno@clisp.org>
52361
52362         New module 'close'.
52363         * modules/close: New file.
52364         * lib/unistd.in.h (close): Move declaration out of the
52365         FCHDIR_REPLACEMENT scope.
52366         (_gl_unregister_fd): New declaration.
52367         * lib/close.c: New file.
52368         * lib/fchdir.c (rpl_close): Remove function.
52369         * m4/close.m4: New file.
52370         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52371         close.
52372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
52373         REPLACE_CLOSE.
52374         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
52375         REPLACE_CLOSE.
52376         * modules/fchdir (Depends-on): Add close.
52377
52378 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52379             Bruno Haible  <bruno@clisp.org>
52380
52381         * lib/fcntl.in.h (open): Simplify conditionals.
52382         (_gl_register_fd): New declaration.
52383         * lib/fchdir.c (rpl_open): Remove function.
52384         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
52385         also.
52386         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
52387         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52388         open.
52389
52390 2008-10-09  Jim Meyering  <meyering@redhat.com>
52391
52392         GNUmakefile: use the more name-space-friendly "_version"
52393         * top/GNUmakefile (_dummy): Update.
52394         (_version): Rename from "version".
52395
52396 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52397             Bruno Haible  <bruno@clisp.org>
52398
52399         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
52400         rpl_close.
52401         (_gl_register_fd): New function, extracted from rpl_open.
52402         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
52403         (rpl_open, rpl_opendir): Use _gl_register_fd.
52404
52405 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52406
52407         Fix organization of 'open' replacement.
52408         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
52409         (gl_FUNC_OPEN): Use it.
52410         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
52411
52412 2008-10-08  Bruno Haible  <bruno@clisp.org>
52413
52414         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
52415
52416 2008-10-08  Simon Josefsson  <simon@josefsson.org>
52417
52418         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
52419         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
52420         listen).
52421
52422 2008-10-08  Eric Blake  <ebb9@byu.net>
52423
52424         GNUmakefile: add 'make version' target
52425         * top/GNUmakefile (_curr-ver): Split version update rules...
52426         (version): ...into a target.
52427
52428 2008-10-07  Bruno Haible  <bruno@clisp.org>
52429
52430         Use a more portable replacement expression for -0.0L.
52431         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52432         instead of -0.0L. Fix m4 quotation.
52433
52434         * tests/test-signbit.c: Include <float.h>.
52435         (minus_zero): New variable.
52436         (test_signbitl): Use minus_zero instead of -zero.
52437         * modules/signbit-tests (Depends-on): Add float.
52438
52439         * tests/test-ceill.c: Include <float.h>.
52440         (zero): Remove variable.
52441         (minus_zero): New variable.
52442         (main): Use minus_zero instead of -zero.
52443         * modules/ceill-tests (Depends-on): Add float.
52444
52445         * tests/test-floorl.c: Include <float.h>.
52446         (zero): Remove variable.
52447         (minus_zero): New variable.
52448         (main): Use minus_zero instead of -zero.
52449         * modules/floorl-tests (Depends-on): Add float.
52450
52451         * tests/test-roundl.c: Include <float.h>.
52452         (zero): Remove variable.
52453         (minus_zero): New variable.
52454         (main): Use minus_zero instead of -zero.
52455         * modules/roundl-tests (Depends-on): Add float.
52456
52457         * tests/test-truncl.c: Include <float.h>.
52458         (zero): Remove variable.
52459         (minus_zero): New variable.
52460         (main): Use minus_zero instead of -zero.
52461         * modules/truncl-tests (Depends-on): Add float.
52462
52463         * tests/test-frexpl.c (zero): Remove variable.
52464         (minus_zero): New variable.
52465         (main): Use minus_zero instead of -zero.
52466         * modules/frexpl-tests (Depends-on): Add float.
52467
52468         * tests/test-isnan.c (zerol): Remove variable.
52469         (minus_zerol): New variable.
52470         (test_long_double): Use minus_zerol instead of -zerol.
52471         * modules/isnan-tests (Depends-on): Add float.
52472
52473         * tests/test-isnanl.h (zero): Remove variable.
52474         (minus_zero): New variable.
52475         (main): Use minus_zero instead of -zero.
52476         * modules/isnanl-nolibm-tests (Depends-on): Add float.
52477         * modules/isnanl-tests (Depends-on): Add float.
52478
52479         * tests/test-ldexpl.c (zero): Remove variable.
52480         (minus_zero): New variable.
52481         (main): Use minus_zero instead of -zero.
52482         * modules/ldexpl-tests (Depends-on): Add float.
52483
52484         * tests/test-snprintf-posix.h (zerol): Remove variable.
52485         (minus_zerol): New variable.
52486         (test_function): Use minus_zerol instead of -zerol.
52487         * modules/snprintf-posix-tests (Depends-on): Add float.
52488         * modules/vsnprintf-posix-tests (Depends-on): Add float.
52489
52490         * tests/test-sprintf-posix.h (zerol): Remove variable.
52491         (minus_zerol): New variable.
52492         (test_function): Use minus_zerol instead of -zerol.
52493         * modules/sprintf-posix-tests (Depends-on): Add float.
52494         * modules/vsprintf-posix-tests (Depends-on): Add float.
52495
52496         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
52497         (minus_zerol): New variable.
52498         (test_function): Use minus_zerol instead of -zerol.
52499         * modules/vasnprintf-posix-tests (Depends-on): Add float.
52500
52501         * tests/test-vasprintf-posix.c (zerol): Remove variable.
52502         (minus_zerol): New variable.
52503         (test_function): Use minus_zerol instead of -zerol.
52504         * modules/vasprintf-posix-tests (Depends-on): Add float.
52505
52506 2008-10-07  Simon Josefsson  <simon@josefsson.org>
52507
52508         * MODULES.html.sh (Support for building documentation): Mention
52509         pmccabe2html.  Sort entries.
52510
52511         Add pmccabe2html module, from gnupdf.
52512         * build-aux/pmccabe.css: New file.
52513         * build-aux/pmccabe2html: New file.
52514         * m4/pmccabe2html.m4: New file.
52515         * modules/pmccabe2html: New file.
52516
52517 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52518
52519         flock: new module
52520         * MODULES.html.sh: Add to list of modules.
52521         * lib/flock.c: flock implementation for Windows and Unix systems
52522         which have fcntl.
52523         * doc/glibc-functions/flock.texi: Update documentation.
52524         * lib/sys_file.in.h: <sys/file.h> header file.
52525         * m4/flock.m4: M4 macros.
52526         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52527         * modules/flock: flock module.
52528         * modules/flock-tests: flock tests module.
52529         * modules/sys_file: sys/file.h module.
52530         * tests/test-flock.c: test suite for flock.
52531
52532 2008-10-06  Jim Meyering  <meyering@redhat.com>
52533
52534         bootstrap: check for LT_INIT more portably still ;-)
52535         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52536         Spotted by Bruno Haible.
52537
52538 2008-10-06  Eric Blake  <ebb9@byu.net>
52539
52540         test-signbit: avoid tripping Irix cc bug on -0.0L
52541         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52542         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52543         entire testsuite consistent and avoids an Irix 6.2 bug.
52544
52545 2008-10-05  Bruno Haible  <bruno@clisp.org>
52546             Jim Meyering  <jim@meyering.net>
52547
52548         Add an option for ignoring EPIPE during close_stdout.
52549         * lib/closeout.h: Include <stdbool.h>.
52550         (close_stdout_set_ignore_EPIPE): New declaration.
52551         * lib/closeout.c: Include <stdbool.h>.
52552         (ignore_EPIPE): New variable.
52553         (close_stdout_set_ignore_EPIPE): New function.
52554         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52555         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52556         failure.
52557         * modules/closeout (Depends-on): Add stdbool.
52558
52559 2008-10-05  Bruno Haible  <bruno@clisp.org>
52560
52561         * modules/accept: New file.
52562         * modules/bind: New file.
52563         * modules/connect: New file.
52564         * modules/getpeername: New file.
52565         * modules/getsockname: New file.
52566         * modules/getsockopt: New file.
52567         * modules/listen: New file.
52568         * modules/recv: New file.
52569         * modules/recvfrom: New file.
52570         * modules/send: New file.
52571         * modules/sendto: New file.
52572         * modules/setsockopt: New file.
52573         * modules/socket: New file.
52574         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52575         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52576         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52577         the particular module is requested. Add a link warning when the
52578         particular module is not requested.
52579         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52580         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52581         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52582         the particular module is requested.
52583         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52584         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52585         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52586         * modules/sys_socket (Depends-on): Add link-warning.
52587         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52588         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52589         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52590         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52591         GL_LINK_WARNING.
52592         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52593         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52594         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52595         * doc/posix-functions/getpeername.texi: Mention the new module
52596         'getpeername'.
52597         * doc/posix-functions/getsockname.texi: Mention the new module
52598         'getsockname'.
52599         * doc/posix-functions/getsockopt.texi: Mention the new module
52600         'getsockopt'.
52601         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52602         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52603         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52604         * doc/posix-functions/send.texi: Mention the new module 'send'.
52605         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52606         * doc/posix-functions/setsockopt.texi: Mention the new module
52607         'setsockopt'.
52608         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52609         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52610         listen, connect, accept.
52611         * modules/select-tests (Depends-on): Likewise.
52612
52613 2008-10-05  Bruno Haible  <bruno@clisp.org>
52614
52615         * lib/winsock.c (strerror): Remove unused #undef.
52616         (rpl_close): Remove unused local variable.
52617
52618         * modules/sys_socket (Depends-on); Add errno.
52619
52620 2008-10-05  Bruno Haible  <bruno@clisp.org>
52621
52622         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52623         (select): Add a link warning when the 'select' module is not used.
52624         * modules/sys_select (Depends-on): Add link-warning.
52625         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52626         Suggested by Paolo Bonzini.
52627
52628 2008-10-05  Jim Meyering  <meyering@redhat.com>
52629
52630         bootstrap: check for LT_INIT more portably
52631         * build-aux/bootstrap: Avoid using grep -E, since it's not
52632         portable enough.  Suggestion from Bruno Haible.
52633
52634 2008-10-05  Bruno Haible  <bruno@clisp.org>
52635
52636         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52637         as being fixed by gnulib.
52638
52639 2008-10-05  Bruno Haible  <bruno@clisp.org>
52640
52641         * modules/select-tests: New file, mostly copied from
52642         modules/sys_select-tests.
52643         * tests/test-select.c: New file, mostly copied from
52644         tests/test-sys_select.c.
52645         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52646         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52647         (Makefile.am): Remove test_sys_select_LDADD.
52648
52649         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52650         to an undefined symbol, for an error message.
52651         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52652         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52653         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52654         winsock-select.c here.
52655         * modules/sys_select (Files): Remove lib/winsock-select.c.
52656         (Depends-on): Remove alloca.
52657         (Makefile.am): Substitute GNULIB_SELECT.
52658         * modules/select: New file.
52659         * doc/posix-functions/select.texi: Update.
52660
52661 2008-10-05  Bruno Haible  <bruno@clisp.org>
52662
52663         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52664         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52665         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52666         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52667         getdtablesize.
52668         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52669         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52670
52671 2008-10-05  Bruno Haible  <bruno@clisp.org>
52672
52673         * modules/getdtablesize-tests: New file.
52674         * tests/test-getdtablesize.c: New file.
52675
52676         New module 'getdtablesize'.
52677         * lib/unistd.in.h (getdtablesize): New declaration.
52678         * lib/getdtablesize.c: New file.
52679         * m4/getdtablesize.m4: New file.
52680         * modules/getdtablesize: New file.
52681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52682         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52683         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52684         HAVE_GETDTABLESIZE.
52685         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52686
52687 2008-10-05  Bruno Haible  <bruno@clisp.org>
52688
52689         * modules/sched (Makefile.am): Fix typo.
52690         Reported by Simon Josefsson.
52691
52692 2008-10-05  Jim Meyering  <meyering@redhat.com>
52693
52694         bootstrap: check for LT_INIT, too
52695         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52696         are deprecated.  Suggestion from Ralf Wildenhues.
52697
52698 2008-10-05  Bruno Haible  <bruno@clisp.org>
52699
52700         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52701         overriding them by ours.
52702         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52703
52704 2008-10-05  Jim Meyering  <meyering@redhat.com>
52705
52706         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52707         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52708         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52709
52710 2008-10-04  Bruno Haible  <bruno@clisp.org>
52711
52712         * modules/dup2 (License): Change to LGPLv2+.
52713         * modules/sleep (License): Likewise.
52714         * modules/perror (License): Likewise.
52715         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52716         Blake.
52717         * modules/signal (License): Likewise.
52718         * modules/sigprocmask (License): Likewise.
52719         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52720         Meyering.
52721
52722 2008-10-04  Bruno Haible  <bruno@clisp.org>
52723
52724         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52725         Reported by Rainer Tammer <tammer@tammer.net>.
52726
52727 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52728             Bruno Haible  <bruno@clisp.org>
52729
52730         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52731         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52732         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52733
52734 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52735
52736         filevercmp: new module
52737         * lib/filevercmp.h: New function filevercmp comparing version strings.
52738         * lib/filevercmp.c: Implementation of filevercmp function.
52739         * modules/filevercmp: Module metadata.
52740         * tests/test-filevercmp.c: Unit test for new module.
52741         * modules/filevercmp-tests: Unit test metadata.
52742         * MODULES.html.sh: Add filevercmp module.
52743
52744 2008-10-03  Bruno Haible  <bruno@clisp.org>
52745
52746         * lib/c-ctype.h: Add comment.
52747         Reported by Jim Meyering.
52748
52749 2008-10-02  Bruno Haible  <bruno@clisp.org>
52750
52751         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52752
52753 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52754
52755         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52756         name of bootstrap.conf accordingly.
52757
52758 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52759
52760         * build-aux/bootstrap: Install git-merge-changelog configuration
52761         items into .gitconfig if needed.
52762
52763 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52764
52765         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52766         git repository, and initialize/update it accordingly.
52767
52768 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52769
52770         * modules/fsync-tests: New file.
52771         * tests/test-fsync.c: New file.
52772
52773         New module 'fsync'.
52774         * lib/fsync.c: New file.
52775         * m4/fsync.m4: New file.
52776         * modules/fsync: New file.
52777         * lib/unistd.in.h (fsync): New declaration.
52778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52779         GNULIB_FSYNC and HAVE_FSYNC.
52780         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52781         * MODULES.html.sh (posix_functions): Add fsync.
52782         * doc/posix-functions/fsync.texi: Mention the new module.
52783
52784 2008-10-02  Jim Meyering  <meyering@redhat.com>
52785
52786         fts.c: sync with similar code from coreutils' remove.c
52787         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52788         Guard also with "#if defined __linux__", since for now at least,
52789         this code is Linux-kernel-specific.
52790
52791 2008-10-02  Jim Meyering  <meyering@redhat.com>
52792
52793         fts: bug fixes
52794         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52795         Include <sys/vfs.h>, not <sys/statfs.h>.
52796
52797         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52798         Include <sys/vfs.h>, not <sys/statfs.h>.
52799
52800 2008-10-01  Bruno Haible  <bruno@clisp.org>
52801
52802         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52803         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52804         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52805         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52806         * doc/posix-functions/posix_spawnp.texi: Likewise.
52807         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52808         whether posix_spawn actually works.
52809         * m4/pipe.m4 (gl_PIPE): Likewise.
52810         * modules/execute (Files): Add m4/posix_spawn.m4.
52811         * modules/pipe (Files): Add m4/posix_spawn.m4.
52812         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52813
52814 2008-10-01  Jim Meyering  <meyering@redhat.com>
52815
52816         remove trailing spaces
52817         * NEWS: Likewise.
52818         * lib/poll.c (poll): Likewise.
52819         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52820         * lib/winsock.c (rpl_close): Likewise.
52821         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52822         * modules/yield: Likewise.
52823         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52824         * tests/test-sys_select.c (connect_to_socket): Likewise.
52825
52826         fts.c: adjust a new interface to be more generally useful
52827         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52828         (fts_build): Adjust caller.
52829
52830 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52831
52832         * modules/cond-tests: New file.
52833         * tests/test-cond.c: New file.
52834
52835 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52836             Bruno Haible  <bruno@clisp.org>
52837
52838         * modules/cond (Dependencies): Add errno, time.
52839         * lib/glthread/cond.h: Include <time.h>.
52840         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52841         across platforms.
52842
52843 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52844             Bruno Haible  <bruno@clisp.org>
52845
52846         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52847
52848 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52849             Bruno Haible  <bruno@clisp.org>
52850
52851         * modules/tls-tests (Depends-on): Add thread, yield.
52852         (configure.ac): Remove all checks.
52853         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52854         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52855         gl_thread_self): Remove definitions. Include glthread/thread.h and
52856         glthread/yield.h instead.
52857         (test_tls): Pass an additional NULL argument to gl_thread_join.
52858
52859 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52860             Bruno Haible  <bruno@clisp.org>
52861
52862         * modules/lock-tests (Depends-on): Add thread, yield.
52863         (configure.ac): Remove all checks.
52864         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52865         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52866         gl_thread_self): Remove definitions. Include glthread/thread.h and
52867         glthread/yield.h instead.
52868         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52869         additional NULL argument to gl_thread_join.
52870
52871 2008-09-30  Bruno Haible  <bruno@clisp.org>
52872
52873         Fix the Win32 implementation of the 'thread' module.
52874         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52875         pointer type.
52876         (gl_thread_self): Invoke gl_thread_self_func.
52877         (gl_thread_self_func): New declaration.
52878         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52879         (do_init_self_key, init_self_key): New functions.
52880         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52881         Remove some fields.
52882         (running_threads, running_lock): Remove variables.
52883         (get_current_thread_handle): New function.
52884         (gl_thread_self_func, wrapper_func, glthread_create_func,
52885         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52886         simplified.
52887
52888 2008-09-30  Bruno Haible  <bruno@clisp.org>
52889
52890         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52891         files.
52892
52893 2008-09-30  Jim Meyering  <meyering@redhat.com>
52894
52895         fts.m4: correct the test for statfs.f_type
52896         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52897         when checking for statfs.f_type.
52898
52899 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52900
52901         tests: avoid some compiler warnings
52902         * tests/test-memchr.c (main): Pass NULL indirectly.
52903         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52904
52905 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52906
52907         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52908         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52909         exactly specified dayshifts.
52910         (dayshift): New rule.
52911         (rel): Add dayshift.
52912         (relative_time_table) [tomorrow, yesterday, today, now]:
52913         Use tDAY_SHIFT in place of tDAY_UNIT.
52914         * tests/test-getdate.c: Add tests for now-disallowed countable
52915         dayshifts, e.g., "4 yesterday ago".
52916
52917 2008-09-29  Bruno Haible  <bruno@clisp.org>
52918
52919         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52920         * tests/test-posix_spawn1.in.sh: Renamed from
52921         tests/test-posix_spawn.in.sh.
52922         * tests/test-posix_spawn2.c: New file.
52923         * tests/test-posix_spawn2.in.sh: New file.
52924         * modules/posix_spawnp-tests (Files): Update.
52925         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52926
52927 2008-09-29  Bruno Haible  <bruno@clisp.org>
52928
52929         Propagate effects of putenv/setenv/unsetenv to child processes.
52930         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52931         * lib/pipe.c (create_pipe): Likewise.
52932
52933 2008-09-29  Bruno Haible  <bruno@clisp.org>
52934
52935         Enable use of shell scripts as executables in mingw.
52936         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52937         run the program as a shell script.
52938         * lib/pipe.c (create_pipe): Likewise.
52939         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52940         resulting array.
52941
52942 2008-09-29  Eric Blake  <ebb9@byu.net>
52943
52944         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52945
52946 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52947
52948         * doc/posix-functions/accept.texi: Update mingw problems.
52949         * doc/posix-functions/bind.texi: Update mingw problems.
52950         * doc/posix-functions/close.texi: Update mingw problems.
52951         * doc/posix-functions/connect.texi: Update mingw problems.
52952         * doc/posix-functions/getpeername.texi: Update mingw problems.
52953         * doc/posix-functions/getsockname.texi: Update mingw problems.
52954         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52955         * doc/posix-functions/ioctl.texi: Update mingw problems.
52956         * doc/posix-functions/listen.texi: Update mingw problems.
52957         * doc/posix-functions/recv.texi: Update mingw problems.
52958         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52959         * doc/posix-functions/select.texi: Update mingw problems.
52960         * doc/posix-functions/send.texi: Update mingw problems.
52961         * doc/posix-functions/sendto.texi: Update mingw problems.
52962         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52963         * doc/posix-functions/socket.texi: Update mingw problems.
52964
52965 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52966             Bruno Haible  <bruno@clisp.org>
52967
52968         * lib/sys_select.in.h: Include sys/time.h.
52969         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52970         * modules/sys_select: Depend on sys_time.
52971         * tests/test-sys_select.c: Test that sys/select.h defines struct
52972         timeval fully.
52973
52974 2008-09-29  Bruno Haible  <bruno@clisp.org>
52975
52976         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52977         * lib/sys_select.in.h: Likewise.
52978
52979 2008-09-29  Bruno Haible  <bruno@clisp.org>
52980
52981         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52982
52983 2008-09-29  Bruno Haible  <bruno@clisp.org>
52984
52985         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52986         Set LIBSOCKET instead of augmenting LIBS.
52987         * modules/sockets (Link): New section.
52988         * modules/sockets-tests (test_sockets_LDADD): New variable.
52989         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52990         * modules/poll-tests (test_poll_LDADD): New variable.
52991         * NEWS: Document the change.
52992
52993 2008-09-29  Bruno Haible  <bruno@clisp.org>
52994
52995         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52996         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52997         ARPA_INET_H directly.
52998         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52999
53000 2008-09-28  Bruno Haible  <bruno@clisp.org>
53001
53002         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
53003         from gl_HEADER_SYS_SOCKET.
53004         (gl_HEADER_SYS_SOCKET): Invoke it.
53005         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53006
53007 2008-09-28  Bruno Haible  <bruno@clisp.org>
53008
53009         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
53010         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
53011         Needed on OSF/1 4.0.
53012
53013 2008-09-28  Bruno Haible  <bruno@clisp.org>
53014
53015         Override open more carefully.
53016         * lib/open.c (orig_open): New function.
53017         (rpl_open): Use orig_open instead of open.
53018         * lib/fcntl.in.h: Add special invocation convention.
53019         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
53020         (gl_FUNC_OPEN): Invoke it.
53021
53022         Override freopen more carefully.
53023         * lib/freopen.c (orig_freopen): New function.
53024         (rpl_freopen): Use orig_freopen instead of freopen.
53025         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
53026         (gl_FUNC_FREOPEN): Invoke it.
53027
53028         Override fopen more carefully.
53029         * lib/fopen.c (orig_fopen): New function.
53030         (rpl_fopen): Use orig_fopen instead of fopen.
53031         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
53032         (gl_FUNC_FOPEN): Invoke it.
53033         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
53034
53035 2008-09-28  Bruno Haible  <bruno@clisp.org>
53036
53037         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53038         SIGPIPE.
53039
53040 2008-09-28  Bruno Haible  <bruno@clisp.org>
53041
53042         * tests/test-sigaction.c (handler, main): Disable the check whether
53043         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53044         glibc systems with LinuxThreads.
53045
53046 2008-09-28  Bruno Haible  <bruno@clisp.org>
53047
53048         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53049
53050         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53051         with AIX xlc.
53052         * lib/fcntl.in.h (open): Likewise.
53053         Reported by Rainer Tammer <tammer@tammer.net>.
53054
53055 2008-09-28  Bruno Haible  <bruno@clisp.org>
53056
53057         * modules/posix_spawnp-tests: New file.
53058         * tests/test-posix_spawn.c: New file.
53059         * tests/test-posix_spawn.in.sh: New file.
53060
53061         New module 'posix_spawnp'.
53062         * modules/posix_spawnp: New file.
53063         * lib/spawnp.c: New file, from GNU libc with modifications.
53064         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53065
53066         New module 'posix_spawn'.
53067         * modules/posix_spawn: New file.
53068         * lib/spawn.c: New file, from GNU libc with modifications.
53069         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53070
53071         New module 'posix_spawnattr_destroy'.
53072         * modules/posix_spawnattr_destroy: New file.
53073         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53074         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53075         module.
53076
53077         New module 'posix_spawnattr_setsigmask'.
53078         * modules/posix_spawnattr_setsigmask: New file.
53079         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53080         modifications.
53081         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53082         new module.
53083
53084         New module 'posix_spawnattr_getsigmask'.
53085         * modules/posix_spawnattr_getsigmask: New file.
53086         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53087         modifications.
53088         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53089         new module.
53090
53091         New module 'posix_spawnattr_setsigdefault'.
53092         * modules/posix_spawnattr_setsigdefault: New file.
53093         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53094         modifications.
53095         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53096         new module.
53097
53098         New module 'posix_spawnattr_getsigdefault'.
53099         * modules/posix_spawnattr_getsigdefault: New file.
53100         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53101         modifications.
53102         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53103         new module.
53104
53105         New module 'posix_spawnattr_setschedpolicy'.
53106         * modules/posix_spawnattr_setschedpolicy: New file.
53107         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53108         modifications.
53109         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53110         new module.
53111
53112         New module 'posix_spawnattr_getschedpolicy'.
53113         * modules/posix_spawnattr_getschedpolicy: New file.
53114         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53115         modifications.
53116         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53117         new module.
53118
53119         New module 'posix_spawnattr_setschedparam'.
53120         * modules/posix_spawnattr_setschedparam: New file.
53121         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53122         modifications.
53123         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53124         new module.
53125
53126         New module 'posix_spawnattr_getschedparam'.
53127         * modules/posix_spawnattr_getschedparam: New file.
53128         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53129         modifications.
53130         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53131         new module.
53132
53133         New module 'posix_spawnattr_setpgroup'.
53134         * modules/posix_spawnattr_setpgroup: New file.
53135         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53136         modifications.
53137         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53138         module.
53139
53140         New module 'posix_spawnattr_getpgroup'.
53141         * modules/posix_spawnattr_getpgroup: New file.
53142         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53143         modifications.
53144         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53145         module.
53146
53147         New module 'posix_spawnattr_setflags'.
53148         * modules/posix_spawnattr_setflags: New file.
53149         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53150         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53151         module.
53152
53153         New module 'posix_spawnattr_getflags'.
53154         * modules/posix_spawnattr_getflags: New file.
53155         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53156         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53157         module.
53158
53159         New module 'posix_spawnattr_init'.
53160         * modules/posix_spawnattr_init: New file.
53161         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53162         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53163         module.
53164
53165         New module 'posix_spawn_file_actions_destroy'.
53166         * modules/posix_spawn_file_actions_destroy: New file.
53167         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53168         modifications.
53169         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53170         the new module.
53171
53172         New module 'posix_spawn_file_actions_addopen'.
53173         * modules/posix_spawn_file_actions_addopen: New file.
53174         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53175         modifications.
53176         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53177         the new module.
53178
53179         New module 'posix_spawn_file_actions_adddup2'.
53180         * modules/posix_spawn_file_actions_adddup2: New file.
53181         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53182         modifications.
53183         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53184         the new module.
53185
53186         New module 'posix_spawn_file_actions_addclose'.
53187         * modules/posix_spawn_file_actions_addclose: New file.
53188         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53189         modifications.
53190         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53191         the new module.
53192
53193         New module 'posix_spawn_file_actions_init'.
53194         * modules/posix_spawn_file_actions_init: New file.
53195         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53196         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53197         new module.
53198
53199         New module 'posix_spawn-internal'.
53200         * modules/posix_spawn-internal: New file.
53201         * lib/spawn_int.h: New file, from GNU libc with modifications.
53202         * lib/spawni.c: New file, from GNU libc with modifications.
53203         * m4/posix_spawn.m4: New file.
53204
53205         New module 'spawn'.
53206         * modules/spawn: New file.
53207         * lib/spawn.in.h: New file, from GNU libc with modifications.
53208         * m4/spawn_h.m4: New file.
53209         * doc/posix-headers/spawn.texi: Mention the new module.
53210
53211 2008-09-28  Bruno Haible  <bruno@clisp.org>
53212
53213         * modules/sched-tests: New file.
53214         * tests/test-sched.c: New file.
53215
53216         New module 'sched'.
53217         * modules/sched: New file.
53218         * lib/sched.in.h: New file.
53219         * m4/sched_h.m4: New file.
53220         * doc/posix-headers/sched.texi: Mention the new module.
53221
53222 2008-09-27  Eric Blake  <ebb9@byu.net>
53223
53224         Fix previous patch, and tweak references to $0.
53225         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53226         (func_version, func_gnulib_dir): Don't call this program
53227         gnulib-tool.
53228         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53229         with using $0 in function.
53230         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53231         (func_fatal_error): Reuse the name the user invoked us with.
53232
53233 2008-09-27  Bruno Haible  <bruno@clisp.org>
53234
53235         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53236         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53237         (gl_ICONV_H): Not here.
53238         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53239         instead of assigning ICONV_H directly.
53240
53241         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53242         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53243         WCHAR_H directly.
53244
53245 2008-09-27  Bruno Haible  <bruno@clisp.org>
53246
53247         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53248         * modules/arpa_inet (Depends-on): Add link-warning.
53249         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53250         * modules/unistd (Makefile.am): Likewise.
53251
53252 2008-09-26  Bruno Haible  <bruno@clisp.org>
53253
53254         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53255         variables.
53256         (func_version): Essentially copied from gnulib-tool.
53257         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53258         func_readlink): Copied from gnulib-tool.
53259
53260 2008-09-26  Bruno Haible  <bruno@clisp.org>
53261
53262         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53263         invoking git-version-gen.
53264
53265 2008-09-26  Bruno Haible  <bruno@clisp.org>
53266
53267         * posix-modules: Update to directory names changed on 2008-01-19.
53268         Remove commas in output before splitting into words. No more need to
53269         avoid 'ftruncate' since 2007-02-19.
53270
53271 2008-09-26  Bruno Haible  <bruno@clisp.org>
53272
53273         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53274
53275 2008-09-26  Bruno Haible  <bruno@clisp.org>
53276
53277         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53278         * modules/fwriteerror (Depends-on): Add errno.
53279
53280 2008-09-26  Bruno Haible  <bruno@clisp.org>
53281
53282         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53283         * tests/test-vc-list-files-cvs.sh: Likewise.
53284
53285 2008-09-26  Bruno Haible  <bruno@clisp.org>
53286
53287         * doc/posix-headers/sys_resource.texi: Reorder items.
53288
53289 2008-09-26  Jim Meyering  <meyering@redhat.com>
53290
53291         fts: tweak inode comparison function
53292         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
53293         inode numbers, as documented.
53294
53295         fts: sort dirent entries on inode number before traversing
53296         This avoids a quadratic, seek-related performance penalty when
53297         operating on a directory containing many entries (measurable at 10k;
53298         3.5 hours at 2 million entries with a cold cache) on certain types
53299         of file systems, including ext3 and ext4, but not tmpfs.
53300         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53301         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53302         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53303         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53304         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53305         (fts_build): Set the stat.st_ino member from D_INO.
53306         If it is likely to be useful, sort dirent entries on inode number.
53307
53308         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53309         and the struct statfs.f_type member.
53310         * modules/fts (Depends-on): Add d-ino.
53311
53312 2008-09-26  Bruno Haible  <bruno@clisp.org>
53313
53314         * modules/sigpipe-die (Depends-on): Add sigpipe.
53315
53316         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53317         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53318         and GNULIB_STDIO_H_SIGPIPE are set.
53319         * lib/stdio-write.c: New file.
53320         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53321         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53322         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53323         REPLACE_STDIO_WRITE_FUNCS.
53324         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53325         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53326         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53327         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53328         * modules/stdio (Files): Add lib/stdio-write.c.
53329         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53330         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53331         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53332         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53333         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53334         REPLACE_FPRINTF_POSIX.
53335         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53336         REPLACE_PRINTF_POSIX.
53337         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53338         REPLACE_VFPRINTF_POSIX.
53339         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53340         REPLACE_VPRINTF_POSIX.
53341         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53342         SIGPIPE issue.
53343         * doc/posix-functions/fputc.texi: Likewise.
53344         * doc/posix-functions/fputs.texi: Likewise.
53345         * doc/posix-functions/fwrite.texi: Likewise.
53346         * doc/posix-functions/printf.texi: Likewise.
53347         * doc/posix-functions/putc.texi: Likewise.
53348         * doc/posix-functions/putchar.texi: Likewise.
53349         * doc/posix-functions/puts.texi: Likewise.
53350         * doc/posix-functions/vfprintf.texi: Likewise.
53351         * doc/posix-functions/vprintf.texi: Likewise.
53352
53353         * modules/safe-write (Depends-on): Add write.
53354
53355         * modules/sigpipe-tests: New file.
53356         * tests/test-sigpipe.c: New file.
53357         * tests/test-sigpipe.sh: New file.
53358
53359         * modules/write: New file.
53360         * lib/unistd.in.h: Include <sys/types.h>.
53361         (write): New declaration.
53362         * lib/write.c: New file.
53363         * m4/write.m4: New file.
53364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53365         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
53366         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
53367         GNULIB_WRITE, REPLACE_WRITE.
53368         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
53369         and the SIGPIPE issue.
53370
53371         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
53372         (raise): New declaration.
53373         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
53374         (ext_signal): New function.
53375         (rpl_raise): New function.
53376         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
53377         GNULIB_SIGNAL_H_SIGPIPE.
53378         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
53379         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
53380
53381         * modules/sigpipe: New file.
53382         * m4/sigpipe.m4: New file.
53383
53384 2008-09-25  Derek Price  <derek@ximbiot.com>
53385             Bruno Haible  <bruno@clisp.org>
53386
53387         * gnulib-tool (func_import): Report all license incompatibilities, not
53388         just the first one.
53389
53390 2008-09-25  Bruno Haible  <bruno@clisp.org>
53391
53392         * gnulib-tool (func_import): When computing the edits, consider not
53393         only the Makefile.ams that exist but also those that will be generated.
53394
53395 2008-09-25  Simon Josefsson  <simon@josefsson.org>
53396
53397         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
53398         fixes gnulib-tool --test warning about duplicate dependency.
53399
53400 2008-09-25  Bruno Haible  <bruno@clisp.org>
53401
53402         * gnulib-tool: Don't ask the user to perform edits in the generated
53403         Makefile.ams.
53404         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
53405         apply to the Makefile.am being generated.
53406         (func_emit_tests_Makefile_am): Execute edits that apply to the
53407         Makefile.am being generated.
53408         (func_import): Setup list of Makefile.am edits before emitting the
53409         Makefile.ams, not at the end.
53410         (func_create_testdir): Update.
53411         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53412
53413 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53414
53415         * gnulib-tool (func_import): Store the --tests-base option in the
53416         comment in gnulib-cache.m4.
53417
53418 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
53419
53420         * NEWS: Document increased portability that sys_select now provides.
53421
53422         * lib/sys_select.in.h: Install select wrapper.
53423         * lib/sys_socket.in.h: Use more descriptive name when there is no
53424         select wrapper.
53425         * lib/winsock-select.c: New.
53426         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53427         Require gl_HEADER_SYS_SOCKET.
53428         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53429         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53430         * tests/test-sys_select.c: Add functional tests.
53431
53432 2008-09-24  Eric Blake  <ebb9@byu.net>
53433
53434         open, fopen: close fd leak in last patch
53435         * lib/open.c (rpl_open): Close fd before returning error.
53436         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53437         * doc/posix-functions/open.texi (open): Document that Irix also
53438         has the bug.
53439         * doc/posix-functions/fopen.texi (fopen): Likewise.
53440         Reported by Paolo Bonzini.
53441
53442 2008-09-24  Bruno Haible  <bruno@clisp.org>
53443
53444         Ensure that a filename ending in a slash cannot be used to access a
53445         non-directory.
53446         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
53447         to check whether it's really a directory.
53448         * lib/fopen.c: Include fcntl.h, unistd.h.
53449         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
53450         and fdopen().
53451         * modules/fopen (Depends-on): Add unistd.
53452         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
53453         * tests/test-fopen.c (main): Likewise.
53454         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
53455         * doc/posix-functions/fopen.texi: Likewise.
53456         Reported by Eric Blake.
53457
53458 2008-09-23  Eric Blake  <ebb9@byu.net>
53459
53460         c-stack: avoid compiler optimizations when provoking overflow
53461         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53462         recursion harder to optimize, to ensure a stack overflow occurs.
53463         * tests/test-c-stack.c (recurse): Likewise.
53464         Borrowed from libsigsegv.
53465
53466         c-stack: work around Irix sigaltstack bug
53467         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53468         whether sigaltstack uses wrong end of stack_t (copied in part from
53469         libsigsegv).
53470         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53471         Irix bug, without requiring an over-allocation.
53472         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
53473         bug.
53474
53475         fopen: document mingw bug on directories
53476         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
53477         not allowing a stream visiting a directory, even though reading
53478         from such a stream is not portable.
53479
53480 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53481
53482         * lib/poll.c: Rewrite.
53483         * modules/poll: Depend on alloca.
53484
53485 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53486
53487         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
53488         instead define prototypes for a full set of wrappers.  Ensure
53489         that Cygwin does not use the compatibility code, which is only
53490         for MinGW.
53491         * lib/winsock.c: New.
53492         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
53493         * modules/sys_socket: Add lib/winsock.c.
53494
53495         * modules/poll-tests: Add errno and perror.
53496         * tests/test-poll.c: Use ioctl, not ioctlsocket.
53497
53498 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53499
53500         * tests/test-poll.c: Downgrade minimum needed Winsock version.
53501
53502 2008-09-23  Bruno Haible  <bruno@clisp.org>
53503
53504         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
53505         * doc/glibc-functions/*: Likewise.
53506
53507 2008-09-23  Simon Josefsson  <simon@josefsson.org>
53508
53509         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
53510         success.
53511
53512 2008-09-22  Eric Blake  <ebb9@byu.net>
53513             Bruno Haible  <bruno@clisp.org>
53514
53515         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
53516         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53517         supply %A but mishandle pseudo-NaN.
53518         Reported by Simon Josefsson.
53519
53520 2008-09-21  Bruno Haible  <bruno@clisp.org>
53521
53522         * tests/test-lock.c (main): Tweak skip message.
53523         * tests/test-tls.c (main): Likewise.
53524
53525 2008-09-21  Bruno Haible  <bruno@clisp.org>
53526
53527         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53528         whether 'struct sigaction' has sa_sigaction here...
53529         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53530         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53531
53532 2008-09-21  Bruno Haible  <bruno@clisp.org>
53533
53534         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53535         section.
53536         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53537         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53538         the new section.
53539         (Support for obsolete systems lacking POSIX:2001): New section.
53540         (String handling <string.h>): Move strdup to the new section.
53541         Suggested by Simon Josefsson and Paolo Bonzini.
53542
53543 2008-09-21  Bruno Haible  <bruno@clisp.org>
53544
53545         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53546         exponents in %e and %g results on 'long double'. Needed for mingw's
53547         improved *printf functions.
53548         * tests/test-vasprintf-posix.c (test_function): Likewise.
53549         * tests/test-snprintf-posix.h (test_function): Likewise.
53550         * tests/test-sprintf-posix.h (test_function): Likewise.
53551         Reported by Eric Blake.
53552
53553 2008-09-21  Bruno Haible  <bruno@clisp.org>
53554
53555         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53556         * tests/test-sprintf-posix.h (test_function): Likewise.
53557
53558 2008-09-21  Bruno Haible  <bruno@clisp.org>
53559
53560         * modules/getpass (Depends-on): Add strdup-posix.
53561
53562         New module 'strdup-posix'.
53563         * modules/strdup-posix: New file.
53564         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53565         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53566         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53567         REPLACE_STRDUP.
53568         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53569         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53570         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53571         strdup-posix.
53572
53573         * modules/strdup (Depends-on): Remove malloc-posix.
53574
53575 2008-09-20  Bruno Haible  <bruno@clisp.org>
53576
53577         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53578         Wildenhues.
53579
53580 2008-09-20  Bruno Haible  <bruno@clisp.org>
53581
53582         Ensure that wint_t gets defined on IRIX 5.3.
53583         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53584         * lib/wctype.in.h (wint_t): Likewise.
53585         (__wctype_wint_t): Remove type.
53586         (isw*): Use wint_t instead of __wctype_wint_t.
53587         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53588         * modules/wchar (Files): Add m4/wint_t.m4.
53589         (Makefile.am): Substitute HAVE_WINT_T.
53590         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53591         * tests/test-wctype.c: Check that wint_t is defined.
53592         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53593         * doc/posix-headers/wctype.texi: Likewise.
53594         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53595
53596 2008-09-18  Bruno Haible  <bruno@clisp.org>
53597
53598         * gnulib-tool (func_exit): Update comment.
53599
53600 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53601
53602         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53603         assumes strdup exists and does not depend on strdup to return
53604         ENOMEM on out of memory conditions.
53605
53606 2008-09-18  Bruno Haible  <bruno@clisp.org>
53607
53608         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
53609         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53610         digits for the exponent.
53611
53612 2008-09-18  Jim Meyering  <meyering@redhat.com>
53613             Bruno Haible  <bruno@clisp.org>
53614
53615         * lib/vasnprintf.c (decimal_point_char): Define also if
53616         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53617
53618 2008-09-16  Bruno Haible  <bruno@clisp.org>
53619         and Eric Blake  <ebb9@byu.net>
53620
53621         vasnprintf: support Irix 5.3
53622         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53623         that mishandle long double infinity.
53624         Reported by Tom G. Christensen.
53625
53626 2008-09-16  Bruno Haible  <bruno@clisp.org>
53627
53628         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53629         Solaris 9.
53630         * doc/glibc-functions/alphasort.texi: Likewise.
53631         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53632
53633 2008-09-16  Jim Meyering  <meyering@redhat.com>
53634
53635         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53636         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53637         a umask modification leak out of a subshell.  Otherwise, the
53638         opensolaris /bin/sh would be accepted and thus cause unwarranted
53639         failures in the coreutils test suite.
53640
53641 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53642
53643         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53644         to succeed.
53645
53646 2008-09-16  Jim Meyering  <meyering@redhat.com>
53647
53648         avoid spurious test failure when library is built without ACL support
53649         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53650         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53651         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53652         * tests/test-copy-acl.sh: Likewise.
53653
53654 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53655
53656         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53657         based on character occurrence counts.
53658
53659 2008-09-15  Eric Blake  <ebb9@byu.net>
53660
53661         tests: avoid some compiler warnings
53662         * tests/test-memchr.c (main): Pass NULL indirectly.
53663         * tests/test-closein.c (main): Avoid unused variable.
53664
53665 2008-09-15  Bruno Haible  <bruno@clisp.org>
53666
53667         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53668         are missing on OpenBSD 4.0 individually.
53669         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53670
53671 2008-09-15  Bruno Haible  <bruno@clisp.org>
53672
53673         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53674         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53675         * doc/posix-functions/perror.texi: Likewise.
53676         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53677         is missing.
53678         Reported by Eric Blake.
53679
53680         * lib/errno.in.h: Use replacement values >= 2000.
53681         Reported by Eric Blake.
53682
53683 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53684
53685         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53686         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53687         limit.
53688         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53689         compareseq was aborted.
53690
53691 2008-09-14  Bruno Haible  <bruno@clisp.org>
53692
53693         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53694         yvec_edit_count.
53695         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53696         (fstrcmp_bounded): Simplify result computation accordingly.
53697
53698 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53699
53700         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53701         (fstrcmp): Define in terms of fstrcmp_bounded.
53702         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53703         lower_bound argument.
53704         Return quickly if the result is certainly < lower_bound.
53705         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53706
53707 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53708
53709         * lib/diffseq.h (EARLY_ABORT): New macro.
53710         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53711         evaluates to true.
53712
53713 2008-09-14  Bruno Haible  <bruno@clisp.org>
53714
53715         * modules/perror-tests: New file.
53716         * tests/test-perror.sh: New file.
53717         * tests/test-perror.c: New file.
53718
53719         New module 'perror'.
53720         * lib/stdio.in.h (perror): New declaration.
53721         * lib/perror.c: New file.
53722         * m4/perror.m4: New file.
53723         * modules/perror: New file.
53724         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53725         * doc/posix-functions/perror.texi: Mention the perror module.
53726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53727         REPLACE_PERROR.
53728         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53729         REPLACE_PERROR.
53730
53731 2008-09-14  Bruno Haible  <bruno@clisp.org>
53732
53733         * modules/stdio (Makefile.am): Reorder to match the order in
53734         lib/stdio.in.h.
53735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53736
53737 2008-09-13  Bruno Haible  <bruno@clisp.org>
53738
53739         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53740
53741 2008-09-13  Bruno Haible  <bruno@clisp.org>
53742
53743         Extend strerror to cover the added errno values.
53744         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53745         (rpl_strerror): Provide error messages for the added errno values and
53746         for the WSA* values.
53747         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53748         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53749         strerror.
53750         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53751         * modules/strerror (Depends-on): Add errno.
53752         * doc/posix-functions/strerror.texi: Document the change.
53753         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53754         and EOVERFLOW.
53755
53756 2008-09-13  Bruno Haible  <bruno@clisp.org>
53757
53758         * modules/EOVERFLOW: Remove file.
53759         * m4/eoverflow.m4: Remove file.
53760         * modules/EOVERFLOW-tests: Remove file.
53761         * tests/test-EOVERFLOW.c: Remove file.
53762         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53763         * modules/ftell (Depends-on): Likewise.
53764         * modules/getdelim (Depends-on): Likewise.
53765         * modules/getugroups (Depends-on): Likewise.
53766         * modules/poll (Depends-on): Likewise.
53767         * modules/snprintf (Depends-on): Likewise.
53768         * modules/sprintf-posix (Depends-on): Likewise.
53769         * modules/vasnprintf (Depends-on): Likewise.
53770         * modules/vasprintf (Depends-on): Likewise.
53771         * modules/vfprintf-posix (Depends-on): Likewise.
53772         * modules/vsnprintf (Depends-on): Likewise.
53773         * modules/vsprintf-posix (Depends-on): Likewise.
53774         * modules/xvasprintf (Depends-on): Likewise.
53775         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53776         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53777         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53778         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53779         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53780         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53781         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53782         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53783         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53784         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53785         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53786         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53787         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53788         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53789         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53790         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53791         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53792         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53793         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53794         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53795         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53796         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53797         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53798         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53799         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53800         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53801         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53802         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53803         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53804         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53805         * MODULES.html.sh: Remove EOVERFLOW.
53806         * NEWS: Mention the change.
53807
53808 2008-09-13  Bruno Haible  <bruno@clisp.org>
53809
53810         * modules/errno-tests: New file.
53811         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53812
53813         * lib/errno.in.h: New file.
53814         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53815         * modules/errno: New file.
53816         * doc/posix-headers/errno.texi: Update documentation.
53817         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53818
53819 2008-09-13  Bruno Haible  <bruno@clisp.org>
53820
53821         * tests/test-poll.c: Use #if for native Windows, rather than testing
53822         __MSVCRT__.
53823
53824 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53825             Bruno Haible  <bruno@clisp.org>
53826
53827         * lib/glob.c: Don't include <pwd.h> on native Windows.
53828         (WINDOWS32): New macro.
53829         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53830
53831 2008-09-13  Bruno Haible  <bruno@clisp.org>
53832
53833         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53834         (ETIMEDOUT): Remove macro.
53835         (glthread_cond_timedwait_multithreaded): New declaration.
53836         (glthread_cond_timedwait): Use it.
53837         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53838         (glthread_cond_timedwait_multithreaded): New function.
53839
53840 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53841
53842         * modules/poll-tests: Do not check for io.h.
53843         * tests/test-poll.c: Check for __MSVCRT__ instead.
53844
53845 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53846
53847         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53848         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53849         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53850
53851 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53852
53853         * modules/poll-tests: New.
53854         * tests/test-poll.c: New.
53855
53856 2008-09-12  Eric Blake  <ebb9@byu.net>
53857
53858         frexp: test for NetBSD failure on -0.0
53859         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53860         not all, bugs from NetBSD 3.0 have been fixed.
53861         * doc/posix-functions/frexp.texi (frexp): Document bug.
53862         Reported by Thomas Klausner.
53863
53864         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53865         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53866         literal -0.0.
53867         Reported by Jonathan C. Patschke <jp@centtech.com>.
53868
53869 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53870
53871         * lib/glthread/cond.h: Use dummy implementation also if
53872         USE_WIN32_THREADS.
53873
53874 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53875
53876         * modules/fnmatch-posix (License): Change to LGPLv2+.
53877         * modules/fnmatch-gnu (License): Likewise.
53878
53879 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53880
53881         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53882
53883 2008-09-11  Jim Meyering  <meyering@redhat.com>
53884
53885         * users.txt: Add gtk-vnc.
53886
53887 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53888
53889         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53890         rotate amounts.
53891
53892         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53893         required for 16-bit and 8-bit rotates.
53894         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53895         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53896         UINT8_MAX instead of hard-coded constants.
53897         Suggested by Paul Eggert.
53898
53899 2008-09-07  Bruno Haible  <bruno@clisp.org>
53900
53901         * tests/test-striconveh.c (main): Check behaviour when converting from
53902         UTF-7.
53903
53904         Make striconveh work better with stateful encodings.
53905         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53906         that iconv does not increment the inptr when returning -1/EINVAL.
53907
53908 2008-09-07  Bruno Haible  <bruno@clisp.org>
53909
53910         * build-aux/config.rpath: Update according to libtool-2.2.6.
53911         * build-aux/config.libpath: Likewise.
53912
53913 2008-09-06  Bruno Haible  <bruno@clisp.org>
53914
53915         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53916         * lib/freadptr.c (freadptr): Likewise.
53917         * lib/freadseek.c (freadptrinc): Likewise.
53918         Reported by Simon Josefsson.
53919
53920 2008-09-06  Bruno Haible  <bruno@clisp.org>
53921
53922         * modules/freadptr (License): Change to LGPLv2+.
53923         * modules/freadseek (License): Likewise.
53924         Suggested by Eric Blake.
53925
53926         * modules/memchr2 (License): Change to LGPLv2+.
53927         Approved by Eric Blake.
53928
53929 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53930             Bruno Haible  <bruno@clisp.org>
53931
53932         Make gnulib-tool work with native 'sed' on AIX.
53933         * gnulib-tool (sed_noop): New variable.
53934         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53935         func_add_or_update, func_create_testdir): Use it to initialize sed
53936         script variables.
53937         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53938
53939 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53940             Bruno Haible  <bruno@clisp.org>
53941
53942         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53943         also works after #include directives.
53944
53945 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53946
53947         getdate.y: reject an out-of-range timezone value
53948         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53949         the range [-24...+24].  When specified with only one or two digits,
53950         * tests/test-getdate.c: Tests for the fix.
53951         * doc/getdate.texi: Document this change.
53952
53953 2008-09-03  Bruno Haible  <bruno@clisp.org>
53954
53955         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53956
53957 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53958
53959         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53960         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53961         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53962         Blake <ebb9@byu.net>.
53963
53964         * tests/test-bitrotate.c: Add more test vectors.
53965
53966 2008-09-02  Eric Blake  <ebb9@byu.net>
53967
53968         vasnprintf-posix: handle large precision via %.*d
53969         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53970         when handling it ourselves.
53971         * tests/test-vasnprintf-posix.c (test_function): Add test.
53972         * tests/test-snprintf-posix.h (test_function): Likewise.
53973         * tests/test-sprintf-posix.h (test_function): Likewise.
53974         * tests/test-vasprintf-posix.c (test_function): Likewise.
53975         Reported by Alain Guibert.
53976
53977 2008-09-01  Eric Blake  <ebb9@byu.net>
53978
53979         c-stack: make configure-time check more robust
53980         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53981         successful sigaction call.
53982         Reported by Tom G. Christensen.
53983
53984 2008-09-01  Bruno Haible  <bruno@clisp.org>
53985
53986         New module 'findprog-lgpl'.
53987         * modules/findprog-lgpl: New file.
53988         * lib/findprog-lgpl.c: New file.
53989         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53990         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53991         to decide whether to use strdup or xstrdup, concatenated_filename or
53992         xconcatenated_filename.
53993
53994 2008-09-01  Bruno Haible  <bruno@clisp.org>
53995
53996         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53997         'xconcat-filename' (GPL).
53998         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53999         (License): Change to LGPLv2+.
54000         * modules/xconcat-filename: New file.
54001         * lib/concat-filename.h (concatenated_filename): Change specification.
54002         (xconcatenated_filename): New declaration.
54003         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
54004         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
54005         memory situations.
54006         * lib/xconcat-filename.c: New file.
54007         * NEWS: Mention the change.
54008         * lib/findprog.c: Include concat-filename.h, not filename.h.
54009         (find_in_path): Use xconcatenated_filename instead of
54010         concatenated_filename.
54011         * lib/javacomp.c: Include concat-filename.h, not filename.h.
54012         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54013         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54014         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54015         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
54016         instead of concatenated_filename.
54017         * lib/javaexec.c: Include concat-filename.h, not filename.h.
54018         (execute_java_class): Use xconcatenated_filename instead of
54019         concatenated_filename.
54020         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
54021         * modules/javacomp (Depends-on): Likewise.
54022         * modules/javaexec (Depends-on): Likewise.
54023
54024 2008-09-01  Bruno Haible  <bruno@clisp.org>
54025
54026         Split module 'filename' into 'filename' and 'concat-filename'.
54027         * modules/filename: Keep only lib/filename.h.
54028         (License): Change to LGPLv2+.
54029         * modules/concat-filename: New file, extracted from modules/filename.
54030         * lib/filename.h (concatenated_filename): Remove declaration.
54031         * lib/concat-filename.h: New file, extracted from lib/filename.h.
54032         * lib/concat-filename.c: Include concat-filename.h.
54033         * NEWS: Mention the change.
54034
54035 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54036
54037         * lib/bitrotate.h (rotl8, rotr8): Add.
54038
54039         * modules/bitrotate (configure.ac): Need
54040         AC_REQUIRE([AC_C_INLINE]).
54041         (Description): Mention stdint.h.  Reported by Bruno Haible
54042         <bruno@clisp.org>.
54043
54044         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54045         Paolo Bonzini <bonzini@gnu.org>.
54046
54047 2008-08-31  Bruno Haible  <bruno@clisp.org>
54048
54049         Assume Solaris specific bi-arch conventions on Solaris systems.
54050         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54051         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54052         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54053         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54054         like acl_libdirstem.
54055         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54056         acl_libdirstem.
54057         * NEWS: Mention the change.
54058         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54059
54060 2008-08-31  Jim Meyering  <meyering@redhat.com>
54061
54062         * lib/strftime.h: Add comments describing the two added arguments.
54063
54064         remove duplicate #include directives
54065         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54066         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54067
54068 2008-08-31  Bruno Haible  <bruno@clisp.org>
54069
54070         New module 'sigpipe-die'.
54071         * modules/sigpipe-die: New file.
54072         * lib/sigpipe-die.h: New file.
54073         * lib/sigpipe-die.c: New file.
54074         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54075
54076 2008-08-31  Bruno Haible  <bruno@clisp.org>
54077
54078         Don't override previously installed signal handlers.
54079         * lib/fatal-signal.c (saved_sigactions): New variable.
54080         (uninstall_handlers): Reset the signal to the saved handler, not
54081         to SIG_DFL (except when ignored).
54082         (install_handlers): Save the previous handlers.
54083
54084 2008-08-30  Bruno Haible  <bruno@clisp.org>
54085
54086         * gnulib-tool (func_reset_sigpipe): New function.
54087         (func_get_automake_snippet, func_modules_transitive_closure,
54088         func_import): Invoke it before a join command that reads from stdin,
54089         to avoid "echo: write error: Broken pipe" error messages on stderr.
54090         Reported by Sam Steingold <sds@gnu.org>.
54091
54092 2008-08-30  Bruno Haible  <bruno@clisp.org>
54093
54094         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54095         Code copied from m4/open.m4.
54096         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54097         access and the filename ends in a slash. Code copied from lib/open.c.
54098         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54099         * tests/test-fopen.c (main): Check against bug with trailing slash.
54100
54101 2008-08-29  Bruno Haible  <bruno@clisp.org>
54102
54103         Avoid some "gcc -pedantic" warnings.
54104         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54105         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54106         * lib/dirent.in.h: Likewise.
54107         * lib/fcntl.in.h: Likewise.
54108         * lib/float.in.h: Likewise.
54109         * lib/iconv.in.h: Likewise.
54110         * lib/inttypes.in.h: Likewise.
54111         * lib/locale.in.h: Likewise.
54112         * lib/math.in.h: Likewise.
54113         * lib/netinet_in.in.h: Likewise.
54114         * lib/search.in.h: Likewise.
54115         * lib/signal.in.h: Likewise.
54116         * lib/stdarg.in.h: Likewise.
54117         * lib/stdint.in.h: Likewise.
54118         * lib/stdio.in.h: Likewise.
54119         * lib/stdlib.in.h: Likewise.
54120         * lib/string.in.h: Likewise.
54121         * lib/strings.in.h: Likewise.
54122         * lib/sys_select.in.h: Likewise.
54123         * lib/sys_socket.in.h: Likewise.
54124         * lib/sys_stat.in.h: Likewise.
54125         * lib/sys_time.in.h: Likewise.
54126         * lib/sysexits.in.h: Likewise.
54127         * lib/time.in.h: Likewise.
54128         * lib/unistd.in.h: Likewise.
54129         * lib/wchar.in.h: Likewise.
54130         * lib/wctype.in.h: Likewise.
54131         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54132         * modules/fchdir (Makefile.am): Likewise.
54133         * modules/fcntl (Makefile.am): Likewise.
54134         * modules/float (Makefile.am): Likewise.
54135         * modules/iconv_open (Makefile.am): Likewise.
54136         * modules/inttypes (Makefile.am): Likewise.
54137         * modules/locale (Makefile.am): Likewise.
54138         * modules/math (Makefile.am): Likewise.
54139         * modules/netinet_in (Makefile.am): Likewise.
54140         * modules/search (Makefile.am): Likewise.
54141         * modules/signal (Makefile.am): Likewise.
54142         * modules/stdarg (Makefile.am): Likewise.
54143         * modules/stdint (Makefile.am): Likewise.
54144         * modules/stdio (Makefile.am): Likewise.
54145         * modules/stdlib (Makefile.am): Likewise.
54146         * modules/string (Makefile.am): Likewise.
54147         * modules/strings (Makefile.am): Likewise.
54148         * modules/sys_select (Makefile.am): Likewise.
54149         * modules/sys_socket (Makefile.am): Likewise.
54150         * modules/sys_stat (Makefile.am): Likewise.
54151         * modules/sys_time (Makefile.am): Likewise.
54152         * modules/sysexits (Makefile.am): Likewise.
54153         * modules/time (Makefile.am): Likewise.
54154         * modules/unistd (Makefile.am): Likewise.
54155         * modules/wchar (Makefile.am): Likewise.
54156         * modules/wctype (Makefile.am): Likewise.
54157         Reported by Reuben Thomas <rrt@sc3d.org>.
54158
54159 2008-08-29  Bruno Haible  <bruno@clisp.org>
54160
54161         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54162         any more.
54163
54164 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54165
54166         * MODULES.html.sh (Misc): Add bitrotate.
54167
54168         * modules/bitrotate: New file.
54169
54170         * lib/bitrotate.h: New file.
54171
54172         * modules/bitrotate-tests: New file.
54173
54174         * tests/test-bitrotate.c: New file.
54175
54176         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54177         on the bitrotate module.
54178
54179         * lib/arctwo.c: Use new bitrotate module.
54180
54181 2008-08-29  Jim Meyering  <meyering@redhat.com>
54182
54183         bootstrap: merge changes from coreutils
54184         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54185         of copied files.  Remove a kludge, now that this is fixed.
54186         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54187         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54188         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54189
54190 2008-08-29  Bruno Haible  <bruno@clisp.org>
54191
54192         * MODULES.html.sh: Remove --cvs-urls option.
54193
54194 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54195
54196         maint.mk: adjust to file name change
54197         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54198
54199 2008-08-28  Jim Meyering  <meyering@redhat.com>
54200
54201         * modules/getndelim2 (License): Relicense to LGPLv2+.
54202         Approved by Richard Stallman for the version of 1995, and by
54203         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54204
54205 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54206
54207         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54208         dummy if one is not available.  Do not touch them if
54209         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54210         (getc_maybe_unlocked): New.
54211         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54212
54213 2008-08-26  Eric Blake  <ebb9@byu.net>
54214
54215         doc/INSTALL: resync from autoconf
54216         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54217         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54218         moving...
54219         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54220         * INSTALL: Regenerate.
54221         * INSTALL.ISO: New file.
54222         * INSTALL.UTF-8: Likewise.
54223
54224 2008-08-26  Jim Meyering  <meyering@redhat.com>
54225
54226         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54227         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54228         these definitions conditional, so that they may be overridden, too.
54229
54230 2008-08-26  Bruno Haible  <bruno@clisp.org>
54231
54232         Generate INSTALL file variants with prettier quotes.
54233         * doc/Makefile (INSTALL_PRELUDE): New macro.
54234         (INSTALL): Use it.
54235         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54236
54237 2008-08-26  Bruno Haible  <bruno@clisp.org>
54238
54239         Run makeinfo in an English locale.
54240         * doc/Makefile (MAKEINFO): New variable.
54241
54242 2008-08-26  Bruno Haible  <bruno@clisp.org>
54243
54244         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54245         Suggested by Eric Blake.
54246
54247 2008-08-25  Bruno Haible  <bruno@clisp.org>
54248
54249         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54250
54251 2008-08-25  Eric Blake  <ebb9@byu.net>
54252
54253         c-stack: test that stack overflow can be caught
54254         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54255         that platform allows handling stack overflow; at least OS/2 EMX
54256         has sigaltstack, but crashes before transferring control to
54257         handler on stack overflow.
54258         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54259         check for HAVE_STACK_OVERFLOW_HANDLING.
54260         Reported by Elbert Pol.
54261
54262 2008-08-25  Bruno Haible  <bruno@clisp.org>
54263
54264         * doc/posix-functions/strftime.texi: Fix description of strftime
54265         module.
54266
54267 2008-08-24  Bruno Haible  <bruno@clisp.org>
54268
54269         * tests/uniwidth/test-uc_width2.c: New file.
54270         * tests/uniwidth/test-uc_width2.sh: New file.
54271         * modules/uniwidth/width-tests (Files): Add the new files.
54272         (TESTS): Add uniwidth/test-uc_width2.sh.
54273         (TESTS_ENVIRONMENT): New variable.
54274         (check_PROGRAMS): Add test-uc_width2.
54275         (test_uc_width2_SOURCES): New variable.
54276
54277         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54278         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54279         not 0x00AB.
54280         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54281
54282 2008-08-22  Eric Blake  <ebb9@byu.net>
54283
54284         test-lock, test-tls: mention why a test is skipped
54285         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54286         skipped.
54287         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54288
54289         count-one-bits: relax license
54290         * modules/count-one-bits (License): Relicense to LGPLv2+.
54291         Suggested by Ludovic Courtès, approved by Ben Pfaff.
54292
54293 2008-08-22  Andreas Schwab  <schwab@suse.de>
54294
54295         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54296         Remove spurious space in assignment.
54297
54298 2008-08-21  Simon Josefsson  <simon@josefsson.org>
54299
54300         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54301         Paul Eggert <eggert@CS.UCLA.EDU>.
54302
54303 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54304
54305         * modules/gettext: Add m4/threadlib.m4.
54306
54307 2008-08-19  Eric Blake  <ebb9@byu.net>
54308
54309         test-c-stack: fix compilation failure on FreeBSD 5.0
54310         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54311         headers before <sys/resource.h>.
54312         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54313         the bug.
54314         Reported by Nelson H. F. Beebe.
54315
54316         strverscmp: migrate from "strverscmp.h" to <string.h>
54317         * modules/string (Makefile.am): Add new hooks.
54318         * modules/strverscmp (Files): Remove strverscmp.h.
54319         (Depends-on): Add string.
54320         (configure.ac): Add indicator.
54321         (Include): Mention new header.
54322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54323         defaults.
54324         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54325         results.
54326         * lib/strverscmp.h: Delete.
54327         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54328         * tests/test-strverscmp.c (includes): Adjust client.
54329         * lib/check-version.c (includes): Likewise.
54330         * NEWS: Document the change.
54331
54332         strverscmp: add unit test
54333         * modules/strverscmp-tests: New file.
54334         * tests/test-strverscmp.c: Likewise.
54335
54336 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54337
54338         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54339         regarding Windows crypto stuff, from Mono.
54340
54341 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54342
54343         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54344         if present, for intel RND.  Return error on failures.
54345
54346 2008-08-18  Ben Pfaff  <blp@gnu.org>
54347
54348         gitlog-to-changelog: give better diagnostic for failed pipe-open
54349         * build-aux/gitlog-to-changelog: Improve error message: suggest
54350         that the version of Git may be too old.
54351
54352 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54353
54354         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54355         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54356
54357 2008-08-18  Bruno Haible  <bruno@clisp.org>
54358
54359         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54360         pthread_in_use().
54361
54362 2008-08-18  Bruno Haible  <bruno@clisp.org>
54363
54364         * lib/glthread/threadlib.c: Include <pthread.h>.
54365
54366 2008-08-18  Bruno Haible  <bruno@clisp.org>
54367
54368         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
54369         glthread_recursive_lock_* macros.
54370         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
54371         Fix syntax error.
54372
54373 2008-08-18  Bruno Haible  <bruno@clisp.org>
54374
54375         * lib/glthread/thread.c: Avoid forcing a context switch right after
54376         thread creation.
54377
54378 2008-08-17  Bruno Haible  <bruno@clisp.org>
54379
54380         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
54381         * lib/glthread/thread.h: Provide Win32 specific implementation.
54382         * modules/thread (Files): Add lib/glthread/thread.c.
54383         (Depends-on): Add lock.
54384         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
54385
54386 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54387
54388         New module 'yield'.
54389         * modules/yield: New file.
54390         * lib/glthread/yield.h: New file.
54391         * m4/yield.m4: New file.
54392         * MODULES.html.sh (Multithreading): Add yield.
54393
54394 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54395
54396         New module 'thread'.
54397         * modules/thread: New file.
54398         * lib/glthread/thread.h: New file.
54399         * m4/thread.m4: New file.
54400         * MODULES.html.sh (Multithreading): Add thread.
54401
54402 2008-08-17  Bruno Haible  <bruno@clisp.org>
54403
54404         * lib/glthread/lock.h: Include <stdlib.h> always.
54405         * lib/glthread/tls.h: Likewise.
54406         * lib/glthread/cond.h: Likewise.
54407
54408 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54409
54410         New module 'cond'.
54411         * modules/cond: New file.
54412         * lib/glthread/cond.h: New file.
54413         * lib/glthread/cond.c: New file.
54414         * m4/cond.m4: New file.
54415         * MODULES.html.sh (Multithreading): Add cond.
54416
54417 2008-08-16  Eric Blake  <ebb9@byu.net>
54418
54419         c-stack: fix regression on Irix 5.3 from 2008-06-21
54420         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54421         sa_sigaction...
54422         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54423         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54424         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54425         * modules/signal (Makefile.am): Use the value.
54426         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54427         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54428         * doc/posix-headers/signal.texi (signal.h): Document this
54429         portability issue.
54430         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54431         Reported by Tom G. Christensen.
54432
54433 2008-08-17  Bruno Haible  <bruno@clisp.org>
54434
54435         New module 'threadlib'.
54436         * modules/threadlib: New file.
54437         * lib/glthread/threadlib.c: New file, extracted from
54438         lib/glthread/lock.c.
54439         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54440         functions.
54441         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
54442         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
54443         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
54444         macros.
54445         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
54446         (gl_DISABLE_THREADS): Remove macro.
54447         * modules/lock (Files): Remove build-aux/config.rpath.
54448         (Depends-on): Remove havelib. Add threadlib.
54449         (configure.ac-early): Remove section.
54450         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
54451         * modules/tls (Depends-on): Remove lock. Add threadlib.
54452         (Link): New section, copied from threadlib.
54453         * MODULES.html.sh (Multithreading): Add threadlib.
54454
54455 2008-08-14  Bruno Haible  <bruno@clisp.org>
54456
54457         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
54458         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
54459         glthread_rwlock_unlock, glthread_rwlock_destroy,
54460         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
54461         glthread_recursive_lock_destroy): Define as macros always.
54462         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54463         glthread_lock_lock.
54464         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54465         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54466         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54467         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54468         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54469         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54470         (glthread_recursive_lock_lock_func): Renamed from
54471         glthread_recursive_lock_lock.
54472         (glthread_recursive_lock_unlock_func): Renamed from
54473         glthread_recursive_lock_unlock.
54474         (glthread_recursive_lock_destroy_func): Renamed from
54475         glthread_recursive_lock_destroy.
54476
54477 2008-08-14  Bruno Haible  <bruno@clisp.org>
54478
54479         * lib/glthread/lock.h: Renamed from lib/lock.h.
54480         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
54481         * lib/glthread/tls.h: Renamed from lib/tls.h.
54482         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
54483         * lib/fstrcmp.c: Update includes.
54484         * lib/strsignal.c: Update includes.
54485         * modules/lock (Files, Makefile.am): Update.
54486         (Include): Change to "glthread/lock.h".
54487         * modules/tls (Files, Makefile.am): Update.
54488         (Include): Change to "glthread/tls.h".
54489         * tests/test-lock.c: Update includes.
54490         * tests/test-tls.c: Update includes.
54491         * NEWS: Mention the renamed header files.
54492
54493 2008-08-11  Jim Meyering  <meyering@redhat.com>
54494
54495         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
54496
54497 2008-08-11  Eric Blake  <ebb9@byu.net>
54498
54499         test-c-stack: avoid C99-ism
54500         * tests/test-c-stack.c (main): Fix whitespace, move declaration
54501         before statement.
54502         Reported by Alain Guibert.
54503
54504 2008-08-10  Jim Meyering  <meyering@redhat.com>
54505
54506         ensure that return value of uinttostr et al are not ignored
54507         * lib/inttostr.h (__GNUC_PREREQ): Define.
54508         (__attribute_warn_unused_result__): Define.
54509         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
54510
54511 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
54512
54513         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
54514         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
54515
54516 2008-08-07  Jim Meyering  <meyering@redhat.com>
54517
54518         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54519
54520         * modules/mkstemp (License): Relicense under LGPLv2+.
54521         * modules/tempname (License): Likewise.
54522
54523 2008-08-06  Bruno Haible  <bruno@clisp.org>
54524
54525         * lib/poll.c (poll): Further micro-optimization.
54526
54527 2008-08-06  Jim Meyering  <meyering@redhat.com>
54528
54529         inet_pton.c: use locale-independent tolower
54530         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54531         (inet_pton6): Use c_tolower rather than tolower.
54532         * modules/inet_pton (Depends-on): Add c-ctype.
54533
54534 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54535
54536         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54537         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54538
54539 2008-08-06  Jim Meyering  <meyering@redhat.com>
54540
54541         * modules/inet_pton (License): Relicense under LGPLv2+.
54542
54543 2008-08-03  Bruno Haible  <bruno@clisp.org>
54544
54545         Additional non-aborting API for lock and tls.
54546         * lib/lock.h: Include <errno.h>.
54547         (glthread_lock_init): New macro/function.
54548         (gl_lock_init): Define as wrapper around glthread_lock_init.
54549         (glthread_lock_lock): New macro/function.
54550         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54551         (glthread_lock_unlock): New macro/function.
54552         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54553         (glthread_lock_destroy): New macro/function.
54554         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54555         (glthread_rwlock_init): New macro/function.
54556         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54557         (glthread_rwlock_rdlock): New macro/function.
54558         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54559         (glthread_rwlock_wrlock): New macro/function.
54560         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54561         (glthread_rwlock_unlock): New macro/function.
54562         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54563         (glthread_rwlock_destroy): New macro/function.
54564         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54565         (glthread_recursive_lock_init): New macro/function.
54566         (gl_recursive_lock_init): Define as wrapper around
54567         glthread_recursive_lock_init.
54568         (glthread_recursive_lock_lock): New macro/function.
54569         (gl_recursive_lock_lock): Define as wrapper around
54570         glthread_recursive_lock_lock.
54571         (glthread_recursive_lock_unlock): New macro/function.
54572         (gl_recursive_lock_unlock): Define as wrapper around
54573         glthread_recursive_lock_unlock.
54574         (glthread_recursive_lock_destroy): New macro/function.
54575         (gl_recursive_lock_destroy): Define as wrapper around
54576         glthread_recursive_lock_destroy.
54577         (glthread_once): New macro/function.
54578         (gl_once): Define as wrapper around glthread_once.
54579         Update function declarations.
54580         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54581         glthread_rwlock_init. Return error code.
54582         (glthread_rwlock_rdlock_multithreaded): Renamed from
54583         glthread_rwlock_rdlock. Return error code.
54584         (glthread_rwlock_wrlock_multithreaded): Renamed from
54585         glthread_rwlock_wrlock. Return error code.
54586         (glthread_rwlock_unlock_multithreaded): Renamed from
54587         glthread_rwlock_unlock. Return error code.
54588         (glthread_rwlock_destroy_multithreaded): Renamed from
54589         glthread_rwlock_destroy. Return error code.
54590         (glthread_recursive_lock_init_multithreaded): Renamed from
54591         glthread_recursive_lock_init. Return error code.
54592         (glthread_recursive_lock_lock_multithreaded): Renamed from
54593         glthread_recursive_lock_lock. Return error code.
54594         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54595         glthread_recursive_lock_unlock. Return error code.
54596         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54597         glthread_recursive_lock_destroy. Return error code.
54598         (glthread_once_call): Make static.
54599         (glthread_once_multithreaded): Renamed from glthread_once.
54600         * lib/tls.h: Include <errno.h>.
54601         (glthread_tls_key_init): New macro/function.
54602         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54603         (glthread_tls_set): New macro/function.
54604         (gl_tls_set): Define as wrapper around glthread_tls_set.
54605         (glthread_tls_key_destroy): New macro/function.
54606         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54607         Update function declarations.
54608         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54609         glthread_tls_get.
54610         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54611
54612 2008-08-04  Eric Blake  <ebb9@byu.net>
54613
54614         gnumakefile: use space, not TAB, outside of targets
54615         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54616
54617 2008-08-02  Jim Meyering  <meyering@redhat.com>
54618
54619         getdate.y: avoid locale-dependent date parsing failure
54620         In Turkish locales, getdate would fail to recognize keywords
54621         containing a lowercase "i".  The solution is not to rely on
54622         locale-sensitive case-conversion.
54623         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54624         (lookup_word): Use c_toupper in place of toupper.
54625         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54626         Reported by Vefa Bicakci <bicave@superonline.com> in
54627         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54628         * modules/getdate (Depends-on): Add c-ctype.
54629
54630 2008-08-02  Bruno Haible  <bruno@clisp.org>
54631
54632         * gnulib-tool (func_import): When updating or creating a .gitignore
54633         file, prepend each added line with a slash, and ignore leading slashes
54634         from the existing lines.
54635         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54636
54637 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54638
54639         Portability fix for GNU make 3.79.1.
54640         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54641         versions do not understand.
54642
54643 2008-08-01  Bruno Haible  <bruno@clisp.org>
54644
54645         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54646         * tests/test-isnanf.h (zero): New variable.
54647         (main): Avoid literal -0.0f.
54648         * tests/test-isnand.h (zero): New variable.
54649         (main): Avoid literal -0.0.
54650         * tests/test-isnanl.h (zero): New variable.
54651         (main): Avoid literal -0.0L.
54652         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54653         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54654         -0.0, -0.0L.
54655         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54656         (test_signbitd): Avoid literal -0.0.
54657         (test_signbitl): Avoid literal -0.0L.
54658         * tests/test-ceilf1.c (zero): New variable.
54659         (main): Avoid literal -0.0f.
54660         * tests/test-ceill.c (zero): New variable.
54661         (main): Avoid literal -0.0L.
54662         * tests/test-floorf1.c (zero): New variable.
54663         (main): Avoid literal -0.0f.
54664         * tests/test-floorl.c (zero): New variable.
54665         (main): Avoid literal -0.0L.
54666         * tests/test-roundf1.c (zero): New variable.
54667         (main): Avoid literal -0.0f.
54668         * tests/test-round1.c (zero): New variable.
54669         (main): Avoid literal -0.0.
54670         * tests/test-roundl.c (zero): New variable.
54671         (main): Avoid literal -0.0L.
54672         * tests/test-truncf1.c (zero): New variable.
54673         (main): Avoid literal -0.0f.
54674         * tests/test-trunc1.c (zero): New variable.
54675         (main): Avoid literal -0.0.
54676         * tests/test-truncl.c (zero): New variable.
54677         (main): Avoid literal -0.0L.
54678         * tests/test-frexp.c (zero): New variable.
54679         (main): Avoid literal -0.0.
54680         * tests/test-frexpl.c (zero): New variable.
54681         (main): Avoid literal -0.0L.
54682         * tests/test-ldexpl.c (zero): New variable.
54683         (main): Avoid literal -0.0L.
54684         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54685         (zerod, zerol): New variables.
54686         (test_function): Avoid literals -0.0, -0.0L.
54687         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54688         (zerod, zerol): New variables.
54689         (test_function): Avoid literals -0.0, -0.0L.
54690         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54691         (zerod, zerol): New variables.
54692         (test_function): Avoid literals -0.0, -0.0L.
54693         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54694         (zerod, zerol): New variables.
54695         (test_function): Avoid literals -0.0, -0.0L.
54696         * tests/test-strtod.c (zero): New variable.
54697         (main): Avoid literal -0.0.
54698         Reported by Jonathan C. Patschke <jp@centtech.com>.
54699
54700 2008-07-31  Jim Meyering  <meyering@redhat.com>
54701
54702         sha256.h: correct definition of SHA224_DIGEST_SIZE
54703         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54704         Reported by Paulie Pena IV <paulie4@gmail.com>.
54705         Define as 224 / 8, rather than as a literal.
54706         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54707         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54708         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54709
54710 2008-07-31  Bruno Haible  <bruno@clisp.org>
54711
54712         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54713         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54714         Reported by Jonathan Patschke <jp@centtech.com>.
54715
54716 2008-07-31  Bruno Haible  <bruno@clisp.org>
54717
54718         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54719         Reported by Paolo Bonzini <bonzini@gnu.org>.
54720
54721 2008-07-30  Eric Blake  <ebb9@byu.net>
54722
54723         test-strtod: allow compilation without -lm
54724         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54725         Reported by Dennis Clarke <blastwave@gmail.com>.
54726
54727 2008-07-28  Jim Meyering  <meyering@redhat.com>
54728
54729         bootstrap: work also when there are no .po files in po/
54730         * build-aux/bootstrap (update_po_files): Complete the change
54731         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54732
54733 2008-07-27  Jim Meyering  <meyering@redhat.com>
54734
54735         * users.txt: Add zile.
54736
54737 2008-07-26  Ben Pfaff  <blp@gnu.org>
54738
54739         Add missing dependencies on new m4/exponent[fdl].m4 files.
54740         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54741         * modules/isnand-nolibm: Add m4/exponentd.m4.
54742         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54743         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54744         m4/isnan[fdl].m4, because the macros actually used moved.
54745         Reported by Jim Meyering.
54746
54747 2008-07-14  Ben Pfaff  <blp@gnu.org>
54748
54749         Add isinf module.
54750         * lib/isinf.c: New file.
54751         * lib/math.in.h: Define isinf macro if we have decided to replace
54752         it.
54753         * m4/isinf.m4: New file.
54754         * m4/math_h.m4: Initialize and substitute variables for isinf
54755         module.
54756         * modules/isinf: New file.
54757         * modules/isinf-tests: New file.
54758         * modules/math: Add substitutions for new module.
54759         * tests/test-isinf.c: New file.
54760         * doc/posix-functions/isinf.texi: Mention new module.
54761         * MODULES.html.sh: Mention new module.
54762
54763 2008-07-14  Ben Pfaff  <blp@gnu.org>
54764
54765         Factor out some macros for use by additional modules.
54766         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54767         exponentf.m4.
54768         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54769         exponentd.m4.
54770         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54771         file exponentl.m4.
54772         * m4/exponentf.m4: New file.
54773         * m4/exponentd.m4: New file.
54774         * m4/exponentl.m4: New file.
54775         * modules/isnanf: Use new file m4/exponentf.m4.
54776         * modules/isnand: Use new file m4/exponentd.m4.
54777         * modules/isnanl: Use new file m4/exponentl.m4.
54778
54779 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54780
54781         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54782         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54783         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54784         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54785
54786         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54787         readlink on platforms without PATH_MAX.
54788
54789 2008-07-21  Eric Blake  <ebb9@byu.net>
54790
54791         Warn, not fail, on stale version.
54792         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54793
54794         Don't allow installation with stale devel version number.
54795         * top/GNUmakefile (_is-install-target): New macro.
54796         (_curr-ver): Forbid installation with stale version number.
54797
54798 2008-07-20  Bruno Haible  <bruno@clisp.org>
54799
54800         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54801         TESTS_ENVIRONMENT.
54802         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54803
54804 2008-07-20  Bruno Haible  <bruno@clisp.org>
54805
54806         * lib/c-stack.h (c_stack_action): Add documentation.
54807         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54808
54809 2008-07-20  Bruno Haible  <bruno@clisp.org>
54810
54811         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54812         * modules/readlink (License): Likewise.
54813
54814 2008-07-17  Eric Blake  <ebb9@byu.net>
54815
54816         * modules/c-stack (Link): Fix typo.
54817
54818         Make c-stack use libsigsegv, when available.
54819         * modules/c-stack (Depends-on): Add libsigsegv.
54820         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54821         needed.
54822         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54823         (segv_handler, overflow_handler, c_stack_action)
54824         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54825         implementation when libsigsegv is available, but only when using
54826         the library is necessary.
54827         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54828         comment, explaining why XSI check fails on Linux.
54829         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54830         * tests/test-c-stack2.sh: Tweak skip message.
54831         * NEWS: Document new link-time requirements.
54832
54833 2008-07-16  Eric Blake  <ebb9@byu.net>
54834
54835         c-stack: Expose false positives when not using libsigsegv.
54836         * modules/c-stack-tests (Files): Expand test.
54837         * tests/test-c-stack.c (main): Add means to conditionally trigger
54838         non-overflow SIGSEGV.
54839         * tests/test-c-stack2.sh: New file.
54840
54841 2008-07-14  Bruno Haible  <bruno@clisp.org>
54842
54843         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54844         Reported by Eric Blake.
54845
54846 2008-07-14  Sam Steingold  <sds@gnu.org>
54847             Bruno Haible  <bruno@clisp.org>
54848
54849         New module libsigsegv.
54850         * modules/libsigsegv: New file.
54851         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54852         modifications.
54853         * MODULES.html.sh (Signal handling): New section.
54854
54855 2008-07-14  Bruno Haible  <bruno@clisp.org>
54856
54857         * modules/unictype/ctype-* (Description): Add the word "function".
54858         Improves the resulting doc in MODULES.html.
54859
54860 2008-07-12  Ben Pfaff  <blp@gnu.org>
54861
54862         Add longlong module.
54863         * modules/longlong: New file.
54864
54865 2008-07-12  Bruno Haible  <bruno@clisp.org>
54866
54867         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54868         to empty.
54869
54870 2008-07-10  Ben Pfaff  <blp@gnu.org>
54871
54872         Add isnan module.
54873         * doc/posix-functions/isnan.texi: Mention new module.
54874         * lib/math.in.h: Define isnan macro if we have decided to replace
54875         it.
54876         * m4/isnan.m4: New file.
54877         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54878         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54879         also.
54880         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54881         redundancy.
54882         * m4/math_h.m4: Initialize and substitute variables for isnan
54883         module.
54884         * modules/isnan: New file.
54885         * modules/isnan-tests: New file.
54886         * modules/math: Add substitutions for new module.
54887         * tests/test-isnan.c: New file.
54888         * MODULES.html.sh: Mention new module.
54889
54890 2008-07-10  Ben Pfaff  <blp@gnu.org>
54891
54892         Add isnanf module.
54893         * lib/isnanf.m4: New file.
54894         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54895         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54896         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54897         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54898         * modules/isnanf: New file.
54899         * modules/isnanf-tests: New file.
54900         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54901         files.
54902         * tests/test-isnanf-nolibm.c: factored most of its contents into
54903         new file tests/test-isnanf.h.
54904         * tests/test-isnanf.h: New file.
54905         * tests/test-isnanf.c: New file.
54906         * MODULES.html.sh: Mention new module.
54907         * doc/glibc-functions/isnanf.texi: Mention new module.
54908
54909 2008-07-10  Ben Pfaff  <blp@gnu.org>
54910
54911         Add isnand module.
54912         * lib/isnand.h: New file.
54913         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54914         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54915         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54916         functionality also.
54917         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54918         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54919         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54920         * modules/isnand: New file.
54921         * modules/isnand-tests: New file.
54922         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54923         files.
54924         * tests/test-isnand-nolibm.c: factored most of its contents into
54925         new file tests/test-isnand.h.
54926         * tests/test-isnand.h: New file.
54927         * tests/test-isnand.c: New file.
54928         * MODULES.html.sh: Mention new module.
54929
54930 2008-07-10  Ben Pfaff  <blp@gnu.org>
54931
54932         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54933         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54934         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54935         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54936         * modules/isnanf-nolibm: Update references to renamed files.
54937         * modules/isnand-nolibm: Likewise.
54938         * modules/isnanf-nolibm-tests: Likewise.
54939         * modules/isnand-nolibm-tests: Likewise.
54940         * lib/frexp.c: Likewise.
54941         * lib/isfinite.c: Likewise.
54942         * lib/signbitd.c: Likewise.
54943         * lib/signbitf.c: Likewise.
54944         * lib/vasnprintf.c: Likewise.
54945         * tests/test-ceilf1.c: Likewise.
54946         * tests/test-ceilf2.c: Likewise.
54947         * tests/test-floorf1.c: Likewise.
54948         * tests/test-floorf2.c: Likewise.
54949         * tests/test-frexp.c: Likewise.
54950         * tests/test-round1.c: Likewise.
54951         * tests/test-round2.c: Likewise.
54952         * tests/test-roundf1.c: Likewise.
54953         * tests/test-strtod.c: Likewise.
54954         * tests/test-trunc1.c: Likewise.
54955         * tests/test-trunc2.c: Likewise.
54956         * tests/test-truncf1.c: Likewise.
54957         * tests/test-truncf2.c: Likewise.
54958         * NEWS: Mention the renamed header files.
54959
54960 2008-07-11  Jim Meyering  <meyering@redhat.com>
54961
54962         vc-list-files: make the last-resort awk code more portable
54963         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54964         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54965         does not support it.
54966
54967 2008-07-10  Eric Blake  <ebb9@byu.net>
54968
54969         Work with tar's bootstrap.
54970         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54971         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54972         an m4 comment.
54973
54974 2008-07-09  Jim Meyering  <meyering@redhat.com>
54975
54976         posix-shell.m4: fix typo that made this test malfunction
54977         * m4/posix-shell.m4: Remove capitalization in variable name.
54978
54979 2008-07-08  Bruno Haible  <bruno@clisp.org>
54980
54981         * m4/onceonly.m4: Update comments.
54982         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54983
54984 2008-07-04  Jim Meyering  <meyering@redhat.com>
54985
54986         * users.txt: Add vc-dwim.
54987         (bison, coreutils): Use the gitweb URL.
54988
54989 2008-07-03  Jim Meyering  <meyering@redhat.com>
54990
54991         * users.txt: Add libffcall.  From Sam Steingold.
54992
54993 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54994
54995         getdate.y: do not ignore TZ with relative day, month or year offset
54996         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54997         relative-date-handling, since otherwise, the latter would clobber the
54998         sole output (an updated Start value) of the tz-handling block.
54999         * tests/test-getdate.c: Tests for the fix
55000
55001 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55002
55003         Recognize 'foo_LIBRARIES += libgnu.a'.
55004         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
55005         makefile snippet has already specified an installation location,
55006         also using '+='.
55007
55008 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
55009
55010         getdate.y: factor out common actions
55011         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
55012         Use them in place of open-coded actions.
55013
55014 2008-07-01  Simon Josefsson  <simon@josefsson.org>
55015
55016         Add self-test for getdate module.
55017         * modules/getdate-tests: New file.
55018         * tests/test-getdate.c: New file.
55019
55020 2008-06-29  Bruno Haible  <bruno@clisp.org>
55021
55022         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
55023         .gitignore.
55024         Reported by Sylvain Beucler <beuc@beuc.net>.
55025
55026 2008-06-29  Bruno Haible  <bruno@clisp.org>
55027
55028         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
55029         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
55030
55031 2008-06-29  Bruno Haible  <bruno@clisp.org>
55032
55033         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
55034         EXTRA_DIST.
55035         Reported by Sylvain Beucler <beuc@beuc.net>.
55036
55037 2008-06-26  Jim Meyering  <meyering@redhat.com>
55038
55039         make several modules depend on the "open" module
55040         This provides slightly increased consistency when opening-for-write
55041         the name of a non-directory spelled with a trailing slash.
55042         * modules/chdir-safer: Likewise.
55043         * modules/chown: Likewise.
55044         * modules/clean-temp: Likewise.
55045         * modules/copy-file: Likewise.
55046         * modules/fchdir: Likewise.
55047         * modules/fcntl-safer: Likewise.
55048         * modules/pipe: Likewise.
55049         * modules/utime: Likewise.
55050         Prompted by Eric Blake and Bruno Haible.
55051
55052 2008-06-24  Andreas Schwab  <schwab@suse.de>
55053
55054         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55055         literals can be used as initializers for global variables.
55056
55057 2008-06-23  Eric Blake  <ebb9@byu.net>
55058
55059         Make gnulib-cache.m4 easier to diff.
55060         * gnulib-tool (func_import): Allow newlines when reading cached
55061         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55062
55063 2008-06-23  Bruno Haible  <bruno@clisp.org>
55064
55065         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55066         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55067         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55068         m4/signalblocking.m4.
55069         (gl_PREREQ_SIGACTION): Don't invoke it.
55070         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55071         gl_PREREQ_SIG_HANDLER_H.
55072         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55073         Don't check for sigaction here.
55074
55075 2008-06-23  Bruno Haible  <bruno@clisp.org>
55076
55077         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55078         (install_handlers): Don't set the SA_RESETHAND flag.
55079
55080 2008-06-23  Bruno Haible  <bruno@clisp.org>
55081
55082         * m4/sigaction.m4: Comment fixes.
55083         * lib/signal.in.h: Likewise.
55084
55085 2008-06-23  Eric Blake  <ebb9@byu.net>
55086
55087         Fix typo.
55088         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55089
55090         Avoid SA_ namespace.
55091         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55092         Reported by Ralf Wildenhues.
55093
55094         Avoid test failure due to SA_RESTORER.
55095         * tests/test-sigaction.c (SA_MASK): New macro.
55096         (main): Avoid failing due to extension flags being set.
55097         Reported by Jim Meyering.
55098
55099         Revert use of sig-handler.h in sigprocmask.c.
55100         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55101         it requires the existence of struct sigaction.
55102         * lib/sigprocmask.c (handler_t): Restore typedef.
55103         (rpl_signal, old_handlers): Use local type.
55104
55105 2008-06-22  Bruno Haible  <bruno@clisp.org>
55106
55107         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55108         conditionally.
55109         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55110
55111 2008-06-22  Bruno Haible  <bruno@clisp.org>
55112
55113         * doc/posix-functions/siginterrupt.texi: Move note.
55114
55115         * lib/signal.in.h (SA_RESTART): New macro.
55116         * lib/sigaction.c: Update comment.
55117
55118         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55119
55120         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55121         (gl_PREREQ_SIGPROCMASK): Invoke it.
55122         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55123
55124         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55125
55126         * lib/sigprocmask.c: Update a comment.
55127
55128 2008-06-21  Eric Blake  <ebb9@byu.net>
55129
55130         Use sigaction module rather than signal().
55131         * modules/c-stack (Depends-on): Add sigaction.
55132         * modules/fatal-signal (Depends-on): Likewise.
55133         * modules/nanosleep (Depends-on): Likewise.
55134         * modules/sigprocmask (Files): Add sig-handler.h.
55135         * modules/sigaction (Files): Likewise.
55136         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55137         Eggert.
55138         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55139         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55140         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55141         (init_fatal_signals): Likewise.
55142         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55143         (siginterrupt): Delete fallback.
55144         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55145         instead.
55146         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55147         siginterrupt.
55148
55149         New module sigaction, for mingw.
55150         * modules/sigaction: New module...
55151         * modules/sigaction-tests: ...and its test.
55152         * m4/sigaction.m4: New file.
55153         * lib/sigaction.c: Likewise.
55154         * tests/test-sigaction.c: Likewise.
55155         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55156         * modules/signal (Makefile.am): Likewise.
55157         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55158         needed.
55159         * doc/posix-headers/signal.texi (signal.h): Mention provided
55160         types.
55161         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55162         that sigaction is preferable.
55163         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55164         module.
55165         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55166         sigaction.
55167
55168         Improve robustness of sigprocmask by overriding signal.
55169         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55170         is in use.
55171         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55172         (SIGKILL, SIGSTOP): Provide fallbacks.
55173         (rpl_signal): Implement.
55174         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55175         signal can be called inside handlers.
55176
55177         Fix nanosleep module on mingw.
55178         * modules/nanosleep (Depends-on): Add sys_select.
55179         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55180
55181         Fix licensing of sigprocmask.
55182         * modules/raise (License): Relicense as LGPL.
55183
55184 2008-06-21  Bruno Haible  <bruno@clisp.org>
55185
55186         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55187         result if it contains question marks.
55188         Reported by Michael Geng <linux@michaelgeng.de>.
55189
55190 2008-06-19  Bruno Haible  <bruno@clisp.org>
55191
55192         Fix CVS-ism.
55193         * doc/gnulib.texi: Include updated-stamp.texi.
55194         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55195         (updated-stamp.texi): New rule.
55196         (gnulib.info): Depend on it.
55197         * doc/.gitignore: Add updated-stamp.texi.
55198         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55199
55200 2008-06-19  Bruno Haible  <bruno@clisp.org>
55201
55202         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55203         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55204
55205 2008-06-19  Eric Blake  <ebb9@byu.net>
55206
55207         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55208         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55209         Reported by Stepan Kasal.
55210
55211 2008-06-18  Bruno Haible  <bruno@clisp.org>
55212
55213         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55214         Reported by Eric Blake.
55215
55216 2008-06-18  Eric Blake  <ebb9@byu.net>
55217
55218         Work around cygwin 1.5.25 strsignal bug.
55219         * tests/test-strsignal.c: Allow for const char *.
55220         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55221
55222 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55223
55224         * users.txt: Update URL to article and add author/date
55225         information.
55226
55227 2008-06-17  Bruno Haible  <bruno@clisp.org>
55228
55229         New macro gl_DISABLE_THREADS.
55230         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55231         if the user did not pass --enable-threads or --disable-threads option.
55232         (gl_DISABLE_THREADS): New macro.
55233         Reported by Eric Blake <ebb9@byu.net>.
55234
55235 2008-06-17  Bruno Haible  <bruno@clisp.org>
55236
55237         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55238         when the macro ignores it.
55239         Based on a patch by Eric Blake <ebb9@byu.net>.
55240
55241 2008-06-17  Bruno Haible  <bruno@clisp.org>
55242
55243         * modules/tls (License): Change to LGPLv2+.
55244         Reported by Eric Blake.
55245
55246 2008-06-17  Eric Blake  <ebb9@byu.net>
55247
55248         Simplify c-stack prerequisites.
55249         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55250         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55251         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55252         check.
55253         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55254         <sys/resource.h>.
55255
55256         Move c-stack test into testsuite.
55257         * modules/c-stack-tests: New file.
55258         * lib/c-stack.c [DEBUG]: Move test program...
55259         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55260         fail test if sigaltstack is lacking.
55261         * tests/test-c-stack.sh: New driver file.
55262
55263 2008-06-16  Eric Blake  <ebb9@byu.net>
55264
55265         Use raise module consistently.
55266         * modules/fatal-signal (Depends-on): Add raise.
55267         * modules/sigprocmask (Depends-on): Likewise.
55268         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55269         * lib/sigprocmask.c (sigprocmask): Likewise.
55270         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55271         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55272
55273         Fix compliance bug in sigpending.
55274         * lib/sigprocmask.c (sigpending): Return pending array via
55275         parameter, not return value.
55276
55277 2008-06-14  Eric Blake  <ebb9@byu.net>
55278
55279         Improve obstack-printf test code.
55280         * tests/test-obstack-printf.c (test_function): Fix comment, and
55281         simplify usage of obstack_* in macros.  Add a test for coverage.
55282         Reported by Bruno Haible.
55283
55284 2008-06-14  Bruno Haible  <bruno@clisp.org>
55285
55286         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55287         array size as a constant, not as a const variable.
55288         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55289         AC_USE_SYSTEM_EXTENSIONS.
55290         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
55291         Test whether the obstack_printf function actually exists.
55292         * modules/obstack-printf (Depends-on): Add extensions.
55293         (Include): Remove obstack.h.
55294         * modules/obstack-printf-posix (Depends-on): Add extensions.
55295         (Include): Remove obstack.h.
55296
55297 2008-06-13  Eric Blake  <ebb9@byu.net>
55298
55299         Add obstack-printf and obstack-printf-posix modules.
55300         * modules/obstack-printf: New file.
55301         * modules/obstack-printf-posix: Likewise.
55302         * MODULES.html.sh (Misc): Mention them.
55303         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55304         Likewise.
55305         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55306         Likewise.
55307         * modules/stdio (Makefile.am): Accomodate new modules.
55308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55309         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55310         Declare.
55311         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55312         functions.
55313         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55314         (gl_REPLACE_OBSTACK_PRINTF): New macros
55315         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55316         * tests/test-obstack-printf.c: New file.
55317         * modules/obstack-printf-tests: Likewise.
55318         * modules/obstack-printf-posix-tests: Likewise.
55319
55320 2008-06-11  Bruno Haible  <bruno@clisp.org>
55321
55322         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55323         * lib/open.c: Include errno.h.
55324         (open): Fail when attempting to write to a file that has a trailing
55325         slash.
55326         * tests/test-open.c (main): Test against trailing slash bug.
55327         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55328
55329 2008-06-10  Bruno Haible  <bruno@clisp.org>
55330
55331         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55332         for $? to work inside the trap command, with various /bin/sh-s.
55333         * tests/test-vc-list-files-cvs.sh: Likewise.
55334
55335 2008-06-10  Bruno Haible  <bruno@clisp.org>
55336
55337         * lib/acl-internal.h: Don't include gettext.h here.
55338         * lib/set-mode-acl.c: Include gettext.h here.
55339         * lib/copy-acl.c: Likewise.
55340
55341 2008-06-10  Bruno Haible  <bruno@clisp.org>
55342
55343         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55344         * lib/wait-process.c (wait_subprocess): Likewise.
55345         * lib/execute.h (execute): Add termsigp argument.
55346         * lib/execute.c (execute): Likewise.
55347         * lib/csharpcomp.c (compile_csharp_using_pnet,
55348         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55349         * lib/csharpexec.c (execute_csharp_using_pnet,
55350         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55351         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55352         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55353         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55354         is_jikes_present): Update.
55355         * lib/javaexec.c (execute_java_class): Update.
55356         * lib/javaversion.c (execute_and_read_line): Update.
55357         * NEWS: Document the changes.
55358         Reported by Eric Blake.
55359
55360 2008-06-10  Eric Blake  <ebb9@byu.net>
55361
55362         Add missing include.
55363         * tests/test-strstr.c (includes): Add <signal.h>.
55364         * tests/test-strcasestr.c (includes): Likewise.
55365         * tests/test-memmem.c (includes): Likewise.
55366
55367 2008-06-10  Bruno Haible  <bruno@clisp.org>
55368
55369         * lib/wait-process.c (wait_subprocess): Add an assertion.
55370
55371 2008-06-10  Bruno Haible  <bruno@clisp.org>
55372
55373         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55374
55375 2008-06-10  Bruno Haible  <bruno@clisp.org>
55376
55377         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
55378         using alarm().
55379         * tests/test-strcasestr.c (main): Likewise.
55380         * tests/test-strstr.c (main): Likewise.
55381
55382 2008-06-09  Bruno Haible  <bruno@clisp.org>
55383
55384         Work around the Solaris 10 ACE ACLs ABI change.
55385         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
55386         declare if ACL_NO_TRIVIAL is present.
55387         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
55388         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
55389         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
55390         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
55391         define if ACL_NO_TRIVIAL is present.
55392         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
55393         and use the current ABI.
55394         (file_has_acl): Use same #if condition as elsewhere.
55395         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
55396         in use, and use the current ABI.
55397         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
55398         Reported by Jim Meyering.
55399
55400 2008-06-09  Eric Blake  <ebb9@byu.net>
55401
55402         Work around environments that (stupidly) ignore SIGALRM.
55403         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
55404         before using alarm().
55405         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55406         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55407         Reported by Ian Beckwith <ianb@erislabs.net>.
55408
55409         Produce autobuild blurb earlier in log.
55410         * modules/autobuild (configure.ac-early): Move AB_INIT here.
55411
55412 2008-06-09  Jim Meyering  <meyering@redhat.com>
55413         and OndÅ™ej Vašík  <ovasik@redhat.com>
55414
55415         utimens.c: correct kernel bug work-around
55416         OndÅ™ej Vašík found that the invalid return value of 280 indicates
55417         failure, not success, and the kernel bug we're trying to work
55418         around affects not just the utimensat call, but also the fallback
55419         futimens call.
55420         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55421         not success.
55422         [HAVE_FUTIMENS]: Use the same work-around, here.
55423
55424 2008-06-09  Jim Meyering  <meyering@redhat.com>
55425
55426         add more guards around definition of ACE_-related code
55427         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55428         ALLOW and ACE_OWNER are also defined.
55429
55430 2008-06-08  Bruno Haible  <bruno@clisp.org>
55431
55432         * lib/acl-internal.h: Add me as co-author.
55433         * lib/file-has-acl.c: Likewise.
55434         * lib/set-mode-acl.c: Likewise.
55435         * lib/copy-acl.c: Likewise.
55436
55437 2008-06-08  Bruno Haible  <bruno@clisp.org>
55438
55439         Add support for AIX ACLs.
55440         * lib/acl-internal.h (acl_nontrivial): New declaration.
55441         * lib/file-has-acl.c (acl_nontrivial): New function.
55442         (file_has_acl): Add implementation using AIX 4 ACL API.
55443         * lib/set-mode-acl.c (qset_acl): Likewise.
55444         * lib/copy-acl.c (qcopy_acl): Likewise.
55445
55446 2008-06-08  Bruno Haible  <bruno@clisp.org>
55447
55448         Add support for HP-UX ACLs.
55449         * lib/acl-internal.h (acl_nontrivial): New declaration.
55450         * lib/file-has-acl.c (acl_nontrivial): New function.
55451         (file_has_acl): Add implementation using HP-UX 11 ACL API.
55452         * lib/set-mode-acl.c (qset_acl): Likewise.
55453         * lib/copy-acl.c (qcopy_acl): Likewise.
55454
55455 2008-06-08  Bruno Haible  <bruno@clisp.org>
55456
55457         Add support for Cygwin ACLs.
55458         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
55459         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
55460         the chmod_or_fchmod call.
55461         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55462
55463 2008-06-08  Bruno Haible  <bruno@clisp.org>
55464
55465         Fix bug with setuid modes in Solaris 10+ code.
55466         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55467         succeeded, when the mode contains some special bits.
55468
55469 2008-06-08  Bruno Haible  <bruno@clisp.org>
55470
55471         Add support for Solaris 7..10 ACLs.
55472         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
55473         declarations.
55474         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
55475         functions.
55476         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
55477         * lib/set-mode-acl.c (qset_acl): Likewise.
55478         * lib/copy-acl.c (qcopy_acl): Likewise.
55479
55480 2008-06-08  Bruno Haible  <bruno@clisp.org>
55481
55482         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
55483         declaration.
55484         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
55485         (acl_access_nontrivial): Remove MacOS X case.
55486         (file_has_acl): Use acl_extended_nontrivial.
55487         * lib/copy-acl.c (qcopy_acl): Likewise.
55488
55489 2008-06-08  Bruno Haible  <bruno@clisp.org>
55490
55491         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
55492
55493 2008-06-08  Jim Meyering  <meyering@redhat.com>
55494
55495         * modules/acl (Maintainer): Add Bruno Haible.
55496
55497 2008-06-07  Bruno Haible  <bruno@clisp.org>
55498
55499         Improve support for Tru64 ACLs.
55500         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
55501         ACL on OSF/1.
55502
55503 2008-06-07  Bruno Haible  <bruno@clisp.org>
55504
55505         Add support for MacOS X ACLs.
55506         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
55507         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
55508         * lib/set-mode-acl.c (qset_acl): Likewise.
55509         * lib/copy-acl.c (qcopy_acl): Likewise.
55510
55511 2008-06-07  Bruno Haible  <bruno@clisp.org>
55512
55513         Fix memory leak introduced on 2008-05-22.
55514         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
55515         use.
55516
55517 2008-06-07  Bruno Haible  <bruno@clisp.org>
55518
55519         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55520         to construct an empty ACL.
55521
55522 2008-06-07  Bruno Haible  <bruno@clisp.org>
55523
55524         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55525         precisely.
55526         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55527
55528 2008-06-07  Bruno Haible  <bruno@clisp.org>
55529
55530         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55531         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55532
55533 2008-06-07  Bruno Haible  <bruno@clisp.org>
55534
55535         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55536         regardless of POSIX.
55537         * doc/posix-functions/_longjmp.texi: Likewise.
55538         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55539         SystemV platform in this case.
55540
55541 2008-06-06  Eric Blake  <ebb9@byu.net>
55542
55543         Document abort() bugs.
55544         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55545
55546         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55547         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55548         sigsetjmp.
55549         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55550         siglongjmp, but only as a macro.
55551         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55552         is obsolete.
55553         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55554
55555         Tweak documentation to cover cygwin argz bugs.
55556         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55557         argz bug fix; no code change needed since no cygwin releases
55558         occurred between the last fix and the bug being tested.
55559         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55560         module and recently fixed cygwin bugs.
55561         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55562         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55563         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55564         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55565         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55566         Likewise.
55567         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55568         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55569         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55570         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55571         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55572         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55573         Likewise.
55574
55575         Avoid gcc warning on cygwin.
55576         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55577         !ACL_NO_TRIVIAL]: Avoid unused variable.
55578
55579 2008-06-05  Eric Blake  <ebb9@byu.net>
55580
55581         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55582         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55583         git-version-gen fails to come up with a version.
55584         Reported by Simon Josefsson.
55585
55586 2008-06-05  Jim Meyering  <meyering@redhat.com>
55587             Paul Eggert  <eggert@cs.ucla.edu>
55588
55589         utimens.c: work around a probable Linux kernel bug
55590         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55591         appears to be a kernel bug that causes utimensat to return 280
55592         instead of 0, indicating success.
55593
55594 2008-06-04  Bruno Haible  <bruno@clisp.org>
55595
55596         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55597         2008-06-01 commit.
55598
55599 2008-06-04  Bruno Haible  <bruno@clisp.org>
55600
55601         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55602         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55603         (file_has_acl): Use it. Save errno afterwards.
55604         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55605
55606 2008-06-03  Bruno Haible  <bruno@clisp.org>
55607
55608         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55609         draft code. Simplify #ifs.
55610         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55611         Put Solaris code after POSIX-draft code. Fix comments regarding
55612         Solaris 10, HP-UX. Mention Cygwin.
55613         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55614
55615 2008-06-03  Eric Blake  <ebb9@byu.net>
55616
55617         Provide fallback for older kernels.
55618         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55619         Provide runtime fallback if kernel lacks support.
55620         Reported by Mike Frysinger.
55621
55622 2008-06-02  Bruno Haible  <bruno@clisp.org>
55623
55624         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55625         it exists.
55626
55627 2008-06-02  Bruno Haible  <bruno@clisp.org>
55628
55629         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55630         * lib/copy-acl.c (qcopy_acl): Update comment.
55631
55632 2008-06-02  Bruno Haible  <bruno@clisp.org>
55633
55634         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55635         like ACL APIs.
55636
55637 2008-06-02  Bruno Haible  <bruno@clisp.org>
55638
55639         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55640         * tests/test-set-mode-acl.sh: Likewise.
55641         * tests/test-copy-acl.sh: Likewise.
55642         * tests/test-copy-file.sh: Likewise.
55643
55644 2008-06-02  Bruno Haible  <bruno@clisp.org>
55645
55646         * tests/test-file-has-acl.sh: Remove unused code.
55647
55648 2008-06-01  Bruno Haible  <bruno@clisp.org>
55649
55650         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55651         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55652         messages.
55653         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55654
55655 2008-06-01  Bruno Haible  <bruno@clisp.org>
55656
55657         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55658         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55659         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55660         APIs.
55661         * modules/acl-tests (configure.ac): Remove tests now contained in
55662         m4/acl.m4.
55663
55664 2008-06-02  Jim Meyering  <meyering@redhat.com>
55665
55666         announce-gen: use a better key-server host name
55667         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55668         it may be more consistently reliable.  Suggested by Werner Koch
55669         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55670
55671 2008-06-01  Bruno Haible  <bruno@clisp.org>
55672
55673         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55674         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55675
55676 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55677
55678         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55679
55680 2008-06-01  Bruno Haible  <bruno@clisp.org>
55681
55682         New ACL tests.
55683         * tests/test-file-has-acl.sh: New file.
55684         * tests/test-file-has-acl.c: New file.
55685         * tests/test-set-mode-acl.sh: New file.
55686         * tests/test-set-mode-acl.c: New file.
55687         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55688         * tests/test-copy-acl.c: New file.
55689         * modules/acl-tests: New file, based on modules/copy-file-tests.
55690         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55691         (Depends-on): Add acl-tests.
55692         (configure.ac): Remove checks.
55693         (Makefile.am): Don't create test-sameacls program here any more.
55694
55695 2008-06-01  Bruno Haible  <bruno@clisp.org>
55696
55697         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55698         * tests/test-sameacls.c: Include progname.h.
55699         (main): Invoke set_program_name. Portability fixes for MacOS X,
55700         Solaris, HP-UX.
55701
55702 2008-06-01  Bruno Haible  <bruno@clisp.org>
55703
55704         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55705         function.
55706         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55707
55708 2008-06-01  Bruno Haible  <bruno@clisp.org>
55709
55710         * modules/rpmatch (Depends-on): Add strdup.
55711
55712 2008-06-01  Bruno Haible  <bruno@clisp.org>
55713
55714         * lib/pipe.c: Include unistd-safer.h.
55715         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55716         * modules/pipe (Depends-on): Add unistd-safer.
55717
55718 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55719
55720         * modules/autobuild (configure.ac): Call AB_INIT.
55721
55722 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55723
55724         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55725         Suggested by Bruno Haible <bruno@clisp.org>.
55726
55727 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55728
55729         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55730         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55731         <bruno@clisp.org>.
55732
55733 2008-05-29  Eric Blake  <ebb9@byu.net>
55734
55735         Prefer new POSIX 200x interfaces over futimesat.
55736         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55737         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55738         when available.
55739         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55740
55741 2008-05-28  Bruno Haible  <bruno@clisp.org>
55742
55743         * modules/stpcpy (License): Change to LGPLv2+.
55744         Requested by David Lutterkort <dlutter@redhat.com>.
55745
55746 2008-05-27  Bruno Haible  <bruno@clisp.org>
55747
55748         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55749         current mingw.
55750         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55751
55752 2008-05-27  Bruno Haible  <bruno@clisp.org>
55753
55754         * modules/iconv_open (Link): New section, from module 'iconv'.
55755         * modules/striconv (Link): Likewise.
55756         * modules/striconveh (Link): Likewise.
55757         * modules/xstriconv (Link): Likewise.
55758         * modules/unicodeio (Link): Likewise.
55759         * modules/propername (Link): Likewise.
55760         Reported by Jim Meyering.
55761
55762 2008-05-26  Jim Meyering  <meyering@redhat.com>
55763
55764         sha256: do not artificially restrict buffer length to be < 2^32
55765         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55766         uint32_t to size_t.
55767         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55768         to match.
55769
55770         avoid unaligned access errors, e.g., on sparc
55771         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55772         direct access through a possibly-unaligned uint64* pointer.
55773         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55774         direct access through a possibly-unaligned uint32* pointer.
55775         Prompted by this patch from Tom "spot" Callaway:
55776         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55777
55778         sha512.c: fix typo in comment
55779         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55780
55781 2008-05-25  Bruno Haible  <bruno@clisp.org>
55782
55783         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55784         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55785         (Makefile.am): Update lib_SOURCES.
55786
55787 2008-05-25  Bruno Haible  <bruno@clisp.org>
55788
55789         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55790
55791 2008-05-25  Jim Meyering  <meyering@redhat.com>
55792
55793         useless-if-before-free: freed expr may have white-space differences
55794         * build-aux/useless-if-before-free: Recognize cases in which the
55795         freed expression differs from the tested one in embedded white
55796         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55797         $1 was used, so we can't make any regexp shy.  Improved tests now
55798         detect this.
55799
55800         useless-if-before-free: accept white space in the expression.
55801         * build-aux/useless-if-before-free: For now, any white space
55802         in the expression must be identical in the free argument.
55803
55804         useless-if-before-free: efficiency tweak
55805         * build-aux/useless-if-before-free: Make the expression-matching
55806         regexp "shy".
55807         Make the *outer* regexp shy, not the expr-matching one.
55808
55809         update code-in-comment to accept cast of free arg
55810         * build-aux/useless-if-before-free: Update regexp.
55811
55812 2008-05-25  Bruno Haible  <bruno@clisp.org>
55813
55814         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55815         * modules/copy-file-tests (Files, Makefile.am): Update.
55816         * tests/test-copy-file.c (func_test_copy): Update.
55817
55818 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55819
55820         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55821
55822 2008-05-23  Bruno Haible  <bruno@clisp.org>
55823
55824         Improve support for ACLs on OSF/1.
55825         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55826         Remove fallback for unknown flavors of ACLs.
55827
55828 2008-05-22  Bruno Haible  <bruno@clisp.org>
55829
55830         Add support for ACLs on OSF/1.
55831         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55832         replacements.
55833         (acl_free_text): New macro fallback.
55834         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55835         acl_free.
55836         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55837         acl_free_text function. Require AC_C_INLINE.
55838
55839 2008-05-22  Bruno Haible  <bruno@clisp.org>
55840
55841         Make copy_acl work on MacOS X 10.5.
55842         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55843         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55844         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55845         If MODE_INSIDE_ACL, don't assume that every system has the same text
55846         representation for ACLs as FreeBSD.
55847         * lib/copy-acl.c (copy_acl): Add support for platforms with
55848         !MODE_INSIDE_ACL.
55849         * lib/file-has-acl.c (file_has_acl): Likewise.
55850         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55851         FreeBSD, MacOS X, or IRIX, respectively.
55852
55853 2008-05-22  Bruno Haible  <bruno@clisp.org>
55854
55855         * lib/acl.h: Don't include <sys/acl.h>.
55856         (GETACLCNT): Move fallback to lib/acl-internal.h.
55857         * lib/acl-internal.h: Include <sys/acl.h> here.
55858         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55859
55860 2008-05-22  Bruno Haible  <bruno@clisp.org>
55861
55862         Split off copy_acl function to separate file.
55863         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55864         * lib/acl.c (copy_acl): Moved function to separate file.
55865         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55866         * modules/acl (Files): Add lib/copy-acl.c.
55867         (Makefiles.am): Augment lib_SOURCES.
55868
55869 2008-05-22  Bruno Haible  <bruno@clisp.org>
55870
55871         * modules/copy-file-tests: New file.
55872         * tests/test-copy-file.sh: New file.
55873         * tests/test-copy-file.c: New file.
55874         * tests/test-copy-file-sameacls.c: New file.
55875
55876 2008-05-22  Eric Blake  <ebb9@byu.net>
55877
55878         Avoid gcc warning.
55879         * tests/test-memcmp.c (main): Pass NULL indirectly.
55880
55881 2008-05-21  Bruno Haible  <bruno@clisp.org>
55882
55883         Add reference doc about ACLs.
55884         * doc/acl-resources.txt: New file.
55885         * doc/acl-cygwin.txt: New file.
55886
55887 2008-05-21  Bruno Haible  <bruno@clisp.org>
55888
55889         Avoid one more warning from gcc.
55890         * lib/vasnprintf.c (IF_LINT): Update comments.
55891         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55892
55893 2008-05-21  Jim Meyering  <meyering@redhat.com>
55894
55895         avoid a warning from gcc
55896         * lib/vasnprintf.c (IF_LINT): Define.
55897         (scale10_round_decimal_long_double):
55898         Use it to avoid a "may be used uninitialized" warning.
55899         (scale10_round_decimal_double): Likewise.
55900
55901 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55902
55903         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55904         declared.
55905
55906 2008-05-20  Bruno Haible  <bruno@clisp.org>
55907
55908         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55909         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55910
55911 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55912
55913         * modules/memcmp-tests: New file.
55914         * tests/test-memcmp.c: New file.
55915
55916 2008-05-19  Bruno Haible  <bruno@clisp.org>
55917
55918         * modules/propername (Notice, configure.ac): Put quoted "..." into
55919         --keyword option.
55920         * lib/propername.h: Update comments accordingly.
55921         Reported by Eric Blake.
55922
55923 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55924
55925         * modules/getpass-gnu (Depends-on): Add fseeko.
55926
55927 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55928
55929         * modules/base64-tests: New file.
55930
55931 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55932
55933         * lib/base64.c (base64_decode_ctx): If a decode context structure
55934         was passed in use it to ignore newlines.  If a context structure
55935         was _not_ passed in, continue to treat newlines as garbage (this
55936         is the historical behavior).  Formerly base64_decode.
55937         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55938         takes a decode context structure.
55939         * lib/base64.h (base64_decode): Macro for four-argument calls.
55940         (base64_decode_alloc): Likewise.
55941         * lib/base64.c (base64_decode_ctx): If a decode context structure
55942         was passed in use it to ignore newlines.  If a context structure
55943         was _not_ passed in, continue to treat newlines as garbage (this
55944         is the historical behavior).  Formerly base64_decode.
55945         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55946         takes a decode context structure.
55947         * lib/base64.h (base64_decode): Macro for four-argument calls.
55948         (base64_decode_alloc): Likewise.
55949
55950 2008-05-19  Jim Meyering  <meyering@redhat.com>
55951
55952         avoid a warning from gcc
55953         * lib/trim.c (IF_LINT): Define.
55954         (trim2): Use it to avoid a "may be used uninitialized" warning.
55955
55956         Fix doc typo.
55957         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55958
55959 2008-05-19  Bruno Haible  <bruno@clisp.org>
55960
55961         * doc/glibc-functions/getpass.texi: Document limits of other
55962         implementations.
55963
55964 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55965             Bruno Haible <bruno@clisp.org>
55966
55967         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55968
55969 2008-05-18  Bruno Haible  <bruno@clisp.org>
55970
55971         * modules/propername: New file, from GNU gettext.
55972         * lib/propername.h: New file, from GNU gettext.
55973         * lib/propername.c: New file, from GNU gettext.
55974         * MODULES.html.sh (Internationalization functions): Add propername.
55975
55976 2008-05-16  Jim Meyering  <meyering@redhat.com>
55977             Bruno Haible  <bruno@clisp.org>
55978
55979         Avoid some warnings from "gcc -Wshadow".
55980         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55981
55982 2008-05-15  Eric Blake  <ebb9@byu.net>
55983
55984         Extend previous patch to cygwin 1.7.0.
55985         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55986         fast implementation in cygwin >= 1.7.0.
55987         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55988         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55989
55990 2008-05-15  Bruno Haible  <bruno@clisp.org>
55991
55992         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55993         implementation in glibc >= 2.9.
55994         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55995         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55996
55997 2008-05-15  Bruno Haible  <bruno@clisp.org>
55998
55999         * MODULES.html.sh (Internationalization functions): Remove linebreak.
56000         (Unicode string functions): Add unilbrk/*.
56001         Reported by Karl Berry.
56002
56003 2008-05-15  Eric Blake  <ebb9@byu.net>
56004
56005         Fix violation of <stdbool.h> replacement in regex.
56006         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
56007         * lib/regexec.c (re_search_internal): Likewise.
56008         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
56009
56010 2008-05-15  Jim Meyering  <meyering@redhat.com>
56011
56012         avoid distracting test output when git or cvs is not found
56013         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
56014         * tests/test-vc-list-files-git.sh: Likewise.
56015
56016 2008-05-15  Eric Blake  <ebb9@byu.net>
56017
56018         Glibc finally accepted the memmem speedup code, bugzilla #5514.
56019         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
56020         glibc version.
56021         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56022         * doc/posix-functions/strstr.texi (strstr): Likewise.
56023         * lib/str-two-way.h (MAX): Sychronize with glibc.
56024
56025 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
56026
56027         * lib/regcomp.c (optimize_utf8): Add a note on why we test
56028         opr.ctx_type.
56029         (calc_first): Initialize constraint field.
56030         (duplicate_node_closure): Use it instead of special casing ANCHORS.
56031         Fix grammar.
56032         (duplicate_node): Merge constraint field for all node types.
56033         (calc_eclosure_iter): Look at constraint field for all node types.
56034         * lib/regex_internal.c (create_cd_newstate): Don't look at
56035         opr.ctx_type.
56036
56037 2008-05-14  Bruno Haible  <bruno@clisp.org>
56038
56039         Help GCC to do better code generation.
56040         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56041         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56042         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56043         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56044         Declare with attribute 'malloc' if supported.
56045
56046 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56047
56048         use "echo STR|wc -c" rather than unportable "expr length STR"
56049         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56050         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56051
56052 2008-05-14  Jim Meyering  <meyering@redhat.com>
56053
56054         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56055         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56056         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56057         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56058         via Collin Lasse.
56059
56060 2008-05-14  Eric Blake  <ebb9@byu.net>
56061
56062         Avoid quadratic growth in gl_LIBSOURCES.
56063         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56064         Suggested by Bruno Haible.
56065
56066         Test xmemdup0.
56067         * modules/xmemdup0-tests: New file.
56068         * tests/test-xmemdup0.c: Likewise.
56069
56070 2008-05-13  Eric Blake  <ebb9@byu.net>
56071
56072         Split xmemdup0 into its own module.
56073         * modules/xmemdup0: New file.
56074         * lib/xmemdup0.h: Likewise.
56075         * lib/xmemdup0.c: Likewise.
56076         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56077         * lib/xalloc.h (xmemdup0): Remove.
56078         * lib/xmalloc.c (xmemdup0): Likewise.
56079
56080 2008-05-13  Eric Blake  <ebb9@byu.net>
56081             Bruno Haible  <bruno@clisp.org>
56082
56083         Reduce number of forks required during autoconf.
56084         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56085         and gl_LIBSOURCES_DIR.
56086         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56087         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56088         m4_syscmd per file.
56089         <m4_foreach_w>: Move...
56090         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56091
56092 2008-05-13  Eric Blake  <ebb9@byu.net>
56093
56094         * gnulib-tool: Fix various comment typos.
56095
56096 2008-05-12  Bruno Haible  <bruno@clisp.org>
56097
56098         Tailor the linebreaking algorithm.
56099         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56100
56101 2008-05-12  Bruno Haible  <bruno@clisp.org>
56102
56103         Update to Unicode 5.0.0.
56104         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56105         LBP_JV, LBP_JT. Redistribute values.
56106         (unilbrk_table): Change size.
56107         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56108         Unicode TR#14 rev. 22.
56109         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56110         LBP_JV, LBP_JT. Redistribute values.
56111         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56112         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56113         Update.
56114         * lib/unilbrk/lbrkprop1.h: Regenerated.
56115         * lib/unilbrk/lbrkprop2.h: Regenerated.
56116         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56117         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56118         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56119         Likewise.
56120         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56121         Likewise.
56122         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56123         result.
56124         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56125         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56126         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56127         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56128         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56129         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56130
56131 2008-05-11  Bruno Haible  <bruno@clisp.org>
56132
56133         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56134
56135 2008-05-11  Bruno Haible  <bruno@clisp.org>
56136
56137         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56138         * modules/unilbrk/gen-lbrk: New file.
56139
56140 2008-05-11  Bruno Haible  <bruno@clisp.org>
56141
56142         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56143         * m4/sha512.m4 (gl_SHA512): Likewise.
56144
56145 2008-05-11  Jim Meyering  <meyering@redhat.com>
56146
56147         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56148         * modules/crypto/sha256: New file.
56149         * modules/crypto/sha512: Likewise.
56150         * lib/sha256.c: Likewise.
56151         * lib/sha256.h: Likewise.
56152         * lib/sha512.c: Likewise.
56153         * lib/sha512.h: Likewise.
56154         * lib/u64.h: Likewise.
56155         * m4/sha256.m4: Likewise.
56156         * m4/sha512.m4: Likewise.
56157         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56158
56159 2008-05-10  Bruno Haible  <bruno@clisp.org>
56160
56161         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56162         (Input/Output <stdio.h>): Add xprintf.
56163         (Signal handling <signal.h>): Add strsignal.
56164         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56165         (Core language properties): Add func.
56166         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56167         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56168         strings.
56169         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56170         (Input/output): New section.
56171         (File system functions): Add openat-die, stat-macros.
56172         (Networking functions): Add sockets.
56173         (Unicode string functions): Add unictype/*.
56174         (Support for building libraries and executables): Add gperf.
56175         (Support for building documentation): Add agpl-3.0.
56176         (Misc): Add nocrash.
56177
56178 2008-05-10  Bruno Haible  <bruno@clisp.org>
56179
56180         * modules/unictype/gen-ctype: New file.
56181
56182 2008-05-10  Jim Meyering  <meyering@redhat.com>
56183
56184         Make chdir-safer.c more efficient on a system with no symlinks.
56185         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56186         also if ELOOP is zero.  Suggested by Bruno Haible.
56187
56188         Make chdir-safer.c slightly safer.
56189         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56190         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56191
56192         Avoid compile failure on systems without ELOOP (like mingw).
56193         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56194         Reported by Bruno Haible.
56195
56196 2008-05-10  Bruno Haible  <bruno@clisp.org>
56197
56198         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56199         (is_utf8_encoding): Use a case-insensitive comparison.
56200         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56201         streq.
56202
56203 2008-05-10  Bruno Haible  <bruno@clisp.org>
56204
56205         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56206         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56207         * lib/unilbrk/ulc-common.h (iconv_string_length,
56208         iconv_string_keeping_offsets): Remove declarations.
56209         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56210         Don't include <iconv.h>, streq.h, xsize.h.
56211         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56212         conversion.
56213         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56214         <iconv.h>, streq.h, xsize.h.
56215         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56216         conversion.
56217         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56218         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56219         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56220         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56221
56222 2008-05-10  Bruno Haible  <bruno@clisp.org>
56223
56224         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56225         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56226
56227         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56228         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56229
56230         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56231         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56232
56233         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56234         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56235
56236         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56237         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56238
56239         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56240         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56241
56242         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56243         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56244
56245         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56246         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56247
56248 2008-05-10  Bruno Haible  <bruno@clisp.org>
56249
56250         Split up 'linebreak' module.
56251         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56252         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56253         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56254         modifications.
56255         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56256         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56257         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56258         lib/linebreak.c.
56259         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56260         lib/linebreak.c.
56261         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56262         lib/linebreak.c.
56263         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56264         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56265         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56266         lib/linebreak.c.
56267         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56268         lib/linebreak.c.
56269         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56270         lib/linebreak.c.
56271         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56272         lib/linebreak.c.
56273         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56274         lib/linebreak.c.
56275         * modules/unilbrk/base: New file.
56276         * modules/unilbrk/tables: New file.
56277         * modules/unilbrk/u8-possible-linebreaks: New file.
56278         * modules/unilbrk/u16-possible-linebreaks: New file.
56279         * modules/unilbrk/u32-possible-linebreaks: New file.
56280         * modules/unilbrk/ulc-common: New file.
56281         * modules/unilbrk/ulc-possible-linebreaks: New file.
56282         * modules/unilbrk/u8-width-linebreaks: New file.
56283         * modules/unilbrk/u16-width-linebreaks: New file.
56284         * modules/unilbrk/u32-width-linebreaks: New file.
56285         * modules/unilbrk/ulc-width-linebreaks: New file.
56286         * lib/linebreak.h: Remove file.
56287         * lib/linebreak.c: Remove file.
56288         * m4/linebreak.m4: Remove file.
56289         * modules/linebreak: Remove file.
56290         * NEWS: Mention the changes.
56291
56292 2008-05-09  Eric Blake  <ebb9@byu.net>
56293
56294         Add xmemdup0.
56295         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
56296         implementation.
56297         * lib/xmalloc.c (xmemdup0): New C implementation.
56298
56299 2008-05-08  Bruno Haible  <bruno@clisp.org>
56300
56301         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56302
56303 2008-05-07  Eric Blake  <ebb9@byu.net>
56304
56305         Support cross-compilation of <wctype.h>.
56306         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56307         AC_CACHE_CHECK.
56308
56309 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56310
56311         * build-aux/vc-list-files: Add support for bzr.
56312
56313 2008-05-03  Jim Meyering  <meyering@redhat.com>
56314
56315         avoid failed assertion with tight malloc
56316         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56317
56318 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56319
56320         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56321         are needed from arpa/inet.h.
56322         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56323         Reported by Bruno Haible.
56324
56325 2008-05-02  Jim Meyering  <meyering@redhat.com>
56326
56327         avoid compilation error on FreeBSD 6
56328         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56329
56330 2008-05-01  Jim Meyering  <meyering@redhat.com>
56331
56332         useless-if-before-free: correct --help's exit status description
56333         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56334         for one or more matches, etc.  Reported by Bruno Haible.
56335
56336         vc-list-files: make the stand-alone gnulib test work
56337         * modules/vc-list-files-tests (configure.ac):
56338         Define and AC_SUBST abs_aux_dir.
56339         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56340         $(abs_top_srcdir) to each script and having each of them
56341         duplicate the work of setting PATH, set PATH here, using
56342         the new variable, abs_aux_dir instead.
56343         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56344         * tests/test-vc-list-files-git.sh: Likewise.
56345         Reported by Bruno Haible.
56346
56347 2008-05-01  Bruno Haible  <bruno@clisp.org>
56348
56349         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56350         reallocation. Rename 'done' to 'found_delimiter'.
56351
56352 2008-05-01  Jim Meyering  <meyering@redhat.com>
56353
56354         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56355         * build-aux/vc-list-files: Use `...`, not $(...).
56356
56357 2008-04-30  Jim Meyering  <meyering@redhat.com>
56358
56359         add tests for vc-list-files
56360         * modules/vc-list-files-tests: New module.
56361         * tests/test-vc-list-files-cvs.sh: New file.
56362         * tests/test-vc-list-files-git.sh: New file.
56363
56364         avoid a warning from gcc
56365         * lib/getndelim2.c (IF_LINT): Define.
56366         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
56367
56368         vc-list-files: work properly with build-aux/cvsu, too
56369         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
56370         to all cvs-based clauses.
56371
56372         vc-list-files: work properly in the CVS+awk case, too
56373         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
56374
56375         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
56376         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
56377         take more than one file argument, so .  Add quotes, just in case $dir
56378         ever contains a shell meta-character.  Prompted by Soren Hansen in
56379         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
56380
56381 2008-04-29  Eric Blake  <ebb9@byu.net>
56382
56383         Optimize getndelim2 to use block operations when possible.
56384         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
56385         freadseek, and memchr2.
56386         * lib/getndelim2.c (getndelim2): Use them for block reads.
56387
56388 2008-04-29  Bruno Haible  <bruno@clisp.org>
56389
56390         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
56391         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56392         * modules/inet_ntop (Depends-on): Add extensions.
56393         * modules/inet_pton (Depends-on): Likewise.
56394         Reported by Simon Josefsson.
56395
56396 2008-04-29  Jim Meyering  <meyering@redhat.com>
56397
56398         When the is more than one match in a block, match all of them.
56399         * build-aux/useless-if-before-free: Iterate through each block
56400         until there are no more matches.
56401
56402         Fix broken useless-if-before-free script.
56403         * build-aux/useless-if-before-free: Fix typo: missing "?" after
56404         the expression to match cast of argument to free-like function.
56405
56406 2008-04-29  Eric Blake  <ebb9@byu.net>
56407
56408         Use new header.
56409         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
56410
56411 2008-04-29  Jim Meyering  <meyering@redhat.com>
56412
56413         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
56414         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
56415         by gnulib to exist and to declare e.g., inet_ntop.
56416         Don't include "inet_ntop.h", now removed.
56417
56418         * m4/arpa_inet_h.m4: Remove trailing blanks.
56419
56420 2008-04-29  Eric Blake  <ebb9@byu.net>
56421
56422         Silence valgrind on safe reads beyond potential array bounds.
56423         * lib/rawmemchr.valgrind: New file.
56424         * lib/strchrnul.valgrind: Likewise.
56425         * modules/rawmemchr (Files): Distribute new file.
56426         * modules/strchrnul (Files): Likewise.
56427         Suggested by Bruno Haible.
56428
56429 2008-04-29  Bruno Haible  <bruno@clisp.org>
56430
56431         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56432         (inet_ntop, inet_pton): Change portability warning's wording.
56433         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56434         Invoke gl_CHECK_NEXT_HEADERS.
56435         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56436         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56437         set ARPA_INET_H.
56438         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56439         * modules/arpa_inet (Description): No longer only for systems that
56440         lack it.
56441         (Depends-on): Add include_next.
56442         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
56443         HAVE_ARPA_INET_H.
56444
56445 2008-04-29  Jim Meyering  <meyering@redhat.com>
56446
56447         * modules/mkdir (License): Re-license as LGPLv2+.
56448
56449 2008-04-29  Bruno Haible  <bruno@clisp.org>
56450
56451         * modules/rawmemchr (Maintainer): Set to Eric.
56452         * modules/strchrnul (Maintainer): Likewise.
56453
56454 2008-04-29  Simon Josefsson  <simon@josefsson.org>
56455
56456         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
56457         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
56458
56459         * modules/arpa_inet (arpa/inet.h): Use them.
56460
56461 2008-04-28  Eric Blake  <ebb9@byu.net>
56462
56463         Test getndelim2.
56464         * modules/getndelim2-tests: New file.
56465         * tests/test-getndelim2.c: Likewise.
56466         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56467         stream.
56468         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56469
56470         * MODULES.html.sh: Document new module.
56471
56472 2008-04-20  Bruno Haible  <bruno@clisp.org>
56473
56474         * lib/c-stack.c (die): Use raise.
56475         * modules/c-stack (Depends-on): Add raise.
56476
56477 2008-04-28  Bruno Haible  <bruno@clisp.org>
56478
56479         Expect rpmatch to be declared.
56480         * lib/yesno.c (rpmatch): Remove declaration.
56481
56482         Declare rpmatch.
56483         * lib/stdlib.in.h (rpmatch): New declaration.
56484         * lib/rpmatch.c: Include <stdlib.h> first.
56485         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
56486         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
56487         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
56488         HAVE_RPMATCH.
56489         * modules/rpmatch (Depends-on): Add stdlib, extensions.
56490         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56491         (Include): Set to <stdlib.h>.
56492         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
56493         HAVE_RPMATCH.
56494         * NEWS: Document the change.
56495
56496 2008-04-28  Bruno Haible  <bruno@clisp.org>
56497
56498         Change rpmatch to use nl_langinfo when appropriate.
56499         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
56500         (N_): New macro.
56501         (localized_pattern): New function/macro.
56502         (try): Remove match, nomatch arguments. Copy the pattern into safe
56503         memory before caching it.
56504         (rpmatch): Use localized_pattern. Add translator comments.
56505         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
56506         Suggested by Eric Blake.
56507         * modules/rpmatch (Depends-on): Add stdbool.
56508
56509 2008-04-28  Eric Blake  <ebb9@byu.net>
56510
56511         Add rawmemchr module, matching glibc.
56512         * modules/string (Makefile.am): New indicator.
56513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
56514         * lib/string.in.h (rawmemchr): Declare when appropriate.
56515         * modules/rawmemchr: New file.
56516         * m4/rawmemchr.m4: Likewise.
56517         * lib/rawmemchr.c: Likewise.
56518         * modules/rawmemchr-tests: Likewise.
56519         * tests/test-rawmemchr.c: Likewise.
56520         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56521         module.
56522         * modules/strchrnul (Depends-on): Add rawmemchr.
56523         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56524
56525         Whitespace cleanup.
56526         * tests/test-strchrnul.c: Reindent.
56527         * lib/strchrnul.c: Likewise.
56528
56529         Optimize and test strchrnul.
56530         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56531         * modules/strchrnul-tests: New file.
56532         * tests/test-strchrnul.c: Likewise.
56533
56534         Remove intprops dependency.
56535         * modules/memchr (Depends-on): Remove intprops.
56536         * modules/memrchr (Depends-on): Likewise.
56537         * modules/memchr2 (Depends-on): Likewise.
56538         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56539         * lib/memrchr.c (__memrchr): Likewise.
56540         * lib/memrchr2.c (memchr2): Likewise.
56541         Reported by Simon Josefsson.
56542
56543 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56544
56545         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56546         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56547
56548 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56549
56550         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56551
56552         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56553
56554         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56555
56556         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56557         declarations.
56558         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56559
56560         * m4/inet_pton.m4: Don't check for header files.
56561
56562         * m4/inet_ntop.m4: Don't check for header files.
56563
56564 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56565
56566         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56567         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56568         trigger for cygwin).
56569         Reported by Bruno Haible  <bruno@clisp.org>.
56570
56571 2008-04-28  Bruno Haible  <bruno@clisp.org>
56572
56573         * doc/posix-functions/strdup.texi: Mention mingw problem.
56574
56575 2008-04-27  Bruno Haible  <bruno@clisp.org>
56576
56577         * modules/stat-time-tests (Depends-on): Add sleep.
56578         * tests/test-stat-time.c (force_unlink): New function.
56579         (cleanup): Use it.
56580         (test_mtime): Remove the ctime related tests.
56581         (test_ctime): New function, containing the ctime related tests.
56582         (main): Call test_ctime, except on native Windows platforms.
56583
56584 2008-04-27  Bruno Haible  <bruno@clisp.org>
56585
56586         * lib/rpmatch.c (rpmatch): Add some comments.
56587         Reported by James Youngman <jay@gnu.org>.
56588
56589 2008-04-27  Bruno Haible  <bruno@clisp.org>
56590
56591         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56592         quiet NaNs.
56593
56594 2008-04-27  Bruno Haible  <bruno@clisp.org>
56595
56596         Make test-yesno.sh work on mingw.
56597         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56598         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56599         (main): Set stdin to binary mode.
56600         * modules/yesno-tests (Depends-on): Add binary-io.
56601
56602 2008-04-27  Bruno Haible  <bruno@clisp.org>
56603
56604         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56605         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56606         argument that lie outside the IEEE 854 domain.
56607         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56608         (gl_ISFINITE): Use it.
56609         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56610
56611 2008-04-27  Bruno Haible  <bruno@clisp.org>
56612
56613         Allow local renaming in config.h.
56614         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56615
56616 2008-04-27  Bruno Haible  <bruno@clisp.org>
56617
56618         * lib/memchr.c (__memchr): Change type of 'i'.
56619         * lib/memchr2.c (memchr2): Likewise.
56620
56621 2008-04-26  Eric Blake  <ebb9@byu.net>
56622         and Bruno Haible  <bruno@clisp.org>
56623
56624         Optimize and test memrchr.
56625         * modules/memrchr (Depends-on): Add intprops.
56626         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56627         * modules/memrchr-tests: New file.
56628         * tests/test-memrchr.c: New file.
56629
56630 2008-04-26  Bruno Haible  <bruno@clisp.org>
56631
56632         Add tentative support for DragonFly BSD.
56633         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56634         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56635         fp.
56636         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56637         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56638         * lib/fpurge.c (fpurge): Likewise.
56639         * lib/freadable.c (freaadable): Likewise.
56640         * lib/freadahead.c (freadahead): Likewise.
56641         * lib/freading.c (freading): Likewise.
56642         * lib/freadptr.c (freadptr): Likewise.
56643         * lib/freadseek.c (freadptrinc): Likewise.
56644         * lib/fseeko.c (fseeko): Likewise.
56645         * lib/fseterr.c (fseterr): Likewise.
56646         * lib/fwritable.c (fwritable): Likewise.
56647         * lib/fwriting.c (fwriting): Likewise.
56648
56649 2008-04-26  Bruno Haible  <bruno@clisp.org>
56650
56651         * lib/stdio-impl.h: New file.
56652         * lib/fbufmode.c: Include stdio-impl.h.
56653         (fbufmode): Use fp_, remove redundant #defines.
56654         * lib/fflush.c: Include stdio-impl.h.
56655         (clear_ungetc_buffer): Remove redundant #defines.
56656         * lib/fpurge.c: Include stdio-impl.h.
56657         (fpurge): Remove redundant #defines.
56658         * lib/freadable.c: Include stdio-impl.h.
56659         (freadable): Remove redundant #defines.
56660         * lib/freadahead.c: Include stdio-impl.h.
56661         (freadahead): Remove redundant #defines.
56662         * lib/freading.c: Include stdio-impl.h.
56663         (freading): Remove redundant #defines.
56664         * lib/freadptr.c: Include stdio-impl.h.
56665         (freadptr): Remove redundant #defines.
56666         * lib/freadseek.c: Include stdio-impl.h.
56667         (freadptrinc): Remove redundant #defines.
56668         * lib/fseeko.c: Include stdio-impl.h.
56669         (rpl_fseeko): Remove redundant #defines.
56670         * lib/fseterr.c: Include stdio-impl.h.
56671         (fseterr): Remove redundant #defines.
56672         * lib/fwritable.c: Include stdio-impl.h.
56673         (fwritable: Remove redundant #defines.
56674         * lib/fwriting.c: Include stdio-impl.h.
56675         (fwriting): Remove redundant #defines.
56676         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56677         * modules/fflush (Files): Likewise.
56678         * modules/fpurge (Files): Likewise.
56679         * modules/freadable (Files): Likewise.
56680         * modules/freadahead (Files): Likewise.
56681         * modules/freading (Files): Likewise.
56682         * modules/freadptr (Files): Likewise.
56683         * modules/freadseek (Files): Likewise.
56684         * modules/fseeko (Files): Likewise.
56685         * modules/fseterr (Files): Likewise.
56686         * modules/fwritable (Files): Likewise.
56687         * modules/fwriting (Files): Likewise.
56688
56689 2008-04-26  Bruno Haible  <bruno@clisp.org>
56690
56691         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56692         restore_seek_optimization, update_fpos_cache): New functions, extracted
56693         from rpl_fflush.
56694         (rpl_fflush): Use them.
56695         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56696         (gl_REPLACE_FFLUSH): Use it.
56697
56698 2008-04-26  Bruno Haible  <bruno@clisp.org>
56699
56700         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56701         on Solaris.
56702         * tests/test-xstrtoimax.sh: Likewise.
56703         * tests/test-xstrtoumax.sh: Likewise.
56704         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56705
56706 2008-04-26  Bruno Haible  <bruno@clisp.org>
56707
56708         * modules/memchr-tests: New file.
56709         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56710
56711 2008-04-26  Eric Blake  <ebb9@byu.net>
56712             Bruno Haible  <bruno@clisp.org>
56713
56714         * lib/memchr.c: Include intprops.h.
56715         (__memchr): Optimize parallel detection of matching bytes. Rename local
56716         variables. Add explanatory comments.
56717
56718 2008-04-26  Bruno Haible  <bruno@clisp.org>
56719
56720         Fix module 'memchr', broken since 2000-10-28.
56721         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56722
56723 2008-04-26  Bruno Haible  <bruno@clisp.org>
56724
56725         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56726         comments.
56727
56728 2008-04-25  Eric Blake  <ebb9@byu.net>
56729
56730         Use native fstatat on cygwin 1.7.0.
56731         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56732         first.
56733
56734 2008-04-23  Eric Blake  <ebb9@byu.net>
56735
56736         Improve memchr2 performance.
56737         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56738         NUL bytes.
56739         * modules/memchr2 (Depends-on): Use intprops.h.
56740
56741 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56742
56743         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56744         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56745         <blp@cs.stanford.edu>.
56746
56747 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56748
56749         * lib/arpa_inet.in.h: New file.
56750
56751         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56752         (Makefile.am): Sed in substitute header file.
56753
56754         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56755         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56756
56757         * modules/inet_ntop (configure.ac): Use
56758         gl_ARPA_INET_MODULE_INDICATOR.
56759
56760         * modules/inet_pton (configure.ac): Use
56761         gl_ARPA_INET_MODULE_INDICATOR.
56762
56763 2008-04-22  Jim Meyering  <meyering@redhat.com>
56764
56765         * modules/verify (License): Re-license as LGPLv2+.
56766
56767 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56768
56769         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56770         parameter to void* as per POSIX standard (MinGW uses char*).
56771
56772 2008-04-21  Bruno Haible  <bruno@clisp.org>
56773
56774         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56775         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56776         Define to replacements if REPLACE_ISWCNTRL is 1.
56777         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56778         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56779         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56780         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56781         what it fixes.
56782         * doc/posix-functions/iswalpha.texi: Likewise.
56783         * doc/posix-functions/iswblank.texi: Likewise.
56784         * doc/posix-functions/iswcntrl.texi: Likewise.
56785         * doc/posix-functions/iswdigit.texi: Likewise.
56786         * doc/posix-functions/iswgraph.texi: Likewise.
56787         * doc/posix-functions/iswlower.texi: Likewise.
56788         * doc/posix-functions/iswprint.texi: Likewise.
56789         * doc/posix-functions/iswpunct.texi: Likewise.
56790         * doc/posix-functions/iswspace.texi: Likewise.
56791         * doc/posix-functions/iswupper.texi: Likewise.
56792         * doc/posix-functions/iswxdigit.texi: Likewise.
56793         Reported by Alain Guibert.
56794
56795 2008-04-21  Bruno Haible  <bruno@clisp.org>
56796
56797         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56798         Patch by Alain Guibert.
56799
56800 2008-04-21  Bruno Haible  <bruno@clisp.org>
56801
56802         Fix test failures on mingw.
56803         * tests/test-xstrtol.c (print_no_progname): New function.
56804         (main): Install it in error_print_progname hook.
56805         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56806         * tests/test-xstrtoimax.sh: Likewise.
56807         * tests/test-xstrtoumax.sh: Likewise.
56808
56809 2008-04-21  Bruno Haible  <bruno@clisp.org>
56810
56811         Fix test failure on mingw.
56812         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56813
56814 2008-04-21  Bruno Haible  <bruno@clisp.org>
56815
56816         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56817         Actually assign a value.
56818
56819 2008-04-20  Bruno Haible  <bruno@clisp.org>
56820
56821         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56822         take 2.
56823         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56824         'canonicalize-lgpl' module is also used.
56825         * lib/canonicalize-lgpl.c: Undo last change.
56826         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56827
56828 2008-04-20  Bruno Haible  <bruno@clisp.org>
56829
56830         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56831         config.h. Provide _mkdir based fallback for mingw.
56832         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56833         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56834         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56835         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56836         rather than defining mkdir in config.h.
56837         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56838         (gl_SYS_STAT_H_DEFAULTS): New macro.
56839         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56840         HAVE_IO_H any more.
56841         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56842         HAVE_DECL_MKDIR and HAVE_IO_H.
56843
56844 2008-04-20  Bruno Haible  <bruno@clisp.org>
56845
56846         * lib/isapipe.c: Port to native Windows platforms.
56847
56848 2008-04-20  Bruno Haible  <bruno@clisp.org>
56849
56850         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56851
56852 2008-04-21  Eric Blake  <ebb9@byu.net>
56853
56854         Work around preprocessors that don't handle UINTMAX_MAX.
56855         * lib/memchr2.c (memchr2): Avoid embedded #if.
56856         Reported by Alain Guibert, fix suggested by Bruno Haible.
56857
56858 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56859
56860         * doc/posix-functions/strftime.texi (strftime): Explain better
56861         Windows incompatibility.  Suggested by Micah Cowan
56862         <micah@cowan.name>.
56863
56864 2008-04-20  Bruno Haible  <bruno@clisp.org>
56865
56866         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56867         unistr/u8-mblen.
56868
56869 2008-04-20  Bruno Haible  <bruno@clisp.org>
56870
56871         Fix test failure on platforms with non-GNU iconv.
56872         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56873         (U_TO_U8): Use it, rather than u16_to_u8.
56874         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56875         units at the end of the input string.
56876         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56877
56878 2008-04-20  Bruno Haible  <bruno@clisp.org>
56879
56880         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56881         when the resulting length is 0.
56882         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56883
56884 2008-04-20  Bruno Haible  <bruno@clisp.org>
56885
56886         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56887         works.
56888         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56889
56890 2008-04-20  Bruno Haible  <bruno@clisp.org>
56891
56892         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56893         * modules/tsearch-tests (configure.ac): Test for initstate function.
56894
56895 2008-04-20  Bruno Haible  <bruno@clisp.org>
56896
56897         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56898         for nlink_t if missing.
56899         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56900
56901 2008-04-19  Bruno Haible  <bruno@clisp.org>
56902
56903         Work around snprintf bug on Linux libc5.
56904         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56905         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56906         gl_SNPRINTF_SIZE1.
56907         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56908         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56909         that test failed.
56910         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56911         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56912         * modules/snprintf (Files): Add m4/printf.m4.
56913         * modules/vsnprintf (Files): Likewise.
56914         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56915         * doc/posix-functions/vsnprintf.texi: Likewise.
56916
56917 2008-04-19  Bruno Haible  <bruno@clisp.org>
56918
56919         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56920         from 0.0058 to less than 10^-7.
56921
56922 2008-04-19  Bruno Haible  <bruno@clisp.org>
56923
56924         Fix rounding when a precision is given.
56925         * lib/vasnprintf.c (is_borderline): New function.
56926         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56927         9...9x.
56928         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56929         %e, %g.
56930         * tests/test-vasprintf-posix.c (test_function): Likewise.
56931         * tests/test-snprintf-posix.h (test_function): Likewise.
56932         * tests/test-sprintf-posix.h (test_function): Likewise.
56933         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56934         * tests/test-printf-posix.h (test_function): Likewise.
56935         * tests/test-printf-posix.output: Update.
56936         Reported by John Darrington <john@darrington.wattle.id.au> via
56937         Ben Pfaff <blp@cs.stanford.edu>.
56938
56939 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56940
56941         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56942         Suggested by Bruno Haible <bruno@clisp.org>.
56943
56944 2008-04-17  Bruno Haible  <bruno@clisp.org>
56945
56946         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56947         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56948         implementation.
56949         Patch by Bruce Merry <bmerry@gmail.com>.
56950
56951 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56952
56953         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56954         doesn't work under Windows.
56955
56956 2008-04-16  Bruno Haible  <bruno@clisp.org>
56957
56958         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56959         New macros.
56960         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56961         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56962         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56963         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56964         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56965         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56966         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56967         macros.
56968         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56969         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56970         Northern Sotho, Uighur.
56971
56972 2008-04-16  Bruno Haible  <bruno@clisp.org>
56973
56974         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56975         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56976         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56977         Reported by Daniel Bergström <daniel@octocode.com>.
56978
56979 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56980             Bruno Haible  <bruno@clisp.org>
56981
56982         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56983         function.
56984         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56985         New functions, mostly extracted from gl_locale_name_default.
56986         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56987
56988 2008-04-16  Eric Blake  <ebb9@byu.net>
56989
56990         Adjust strtod detection to catch glibc 2.7 bug.
56991         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56992         Reported by John Gatewood Ham.
56993
56994 2008-04-16  Bruno Haible  <bruno@clisp.org>
56995
56996         Add tentative support for Linux libc5.
56997         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56998         * lib/fpurge.c (fpurge): Likewise.
56999         * lib/freadable.c (freadable): Likewise.
57000         * lib/freadahead.c (freadahead): Likewise.
57001         * lib/freading.c (freading): Likewise.
57002         * lib/freadptr.c (freadptr): Likewise.
57003         * lib/freadseek.c (freadptrinc): Likewise.
57004         * lib/fseeko.c (rpl_fseeko): Likewise.
57005         * lib/fseterr.c (fseterr): Likewise.
57006         * lib/fwritable.c (fwritable): Likewise.
57007         * lib/fwriting.c (fwriting): Likewise.
57008         Reported by Alain Guibert <alguibert+bts@free.fr>.
57009
57010 2008-04-15  Bruno Haible  <bruno@clisp.org>
57011
57012         * modules/mathl (configure.ac): Define module indicator.
57013
57014 2008-04-15  Bruno Haible  <bruno@clisp.org>
57015
57016         * lib/logl.c (logl): Remove unused variables.
57017
57018 2008-04-15  Bruno Haible  <bruno@clisp.org>
57019
57020         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
57021         fails.
57022
57023 2008-04-15  Bruno Haible  <bruno@clisp.org>
57024
57025         * lib/trim.c (trim2): Fix argument of isspace() macro.
57026
57027 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
57028
57029         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
57030         to 0.
57031         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
57032
57033 2008-04-14  Bruno Haible  <bruno@clisp.org>
57034
57035         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57036         AC_LANG_PROGRAM argument.
57037         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57038         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57039         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57040         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57041         * m4/math_h.m4 (gl_MATH_H): Likewise.
57042         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57043         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57044         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57045         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57046         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57047         * m4/regex.m4 (gl_REGEX): Likewise.
57048         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57049         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57050         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57051         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57052         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57053         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57054         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57055         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57056
57057 2008-04-14  Jim Meyering  <meyering@redhat.com>
57058
57059         test-strtod: fix typos: s/abs/fabs/
57060         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57061
57062 2008-04-13  Bruno Haible  <bruno@clisp.org>
57063
57064         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57065         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57066         module is also used and while not building the reloc-wrapper.
57067
57068 2008-04-13  Bruno Haible  <bruno@clisp.org>
57069
57070         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57071
57072 2008-04-13  Bruno Haible  <bruno@clisp.org>
57073
57074         Fix AIX compilation failure introduced on 2008-04-02.
57075         * tests/test-frexp.c (exp): Undefine before redefining.
57076         * tests/test-frexpl.c (exp): Likewise.
57077
57078 2008-04-13  Bruno Haible  <bruno@clisp.org>
57079
57080         Work around a HP-UX stdio bug.
57081         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57082         * tests/test-ftello.c (main): Likewise.
57083         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57084         * doc/posix-functions/ftello.texi: Likewise.
57085
57086 2008-04-13  Bruno Haible  <bruno@clisp.org>
57087
57088         Make test-signbit pass on HP-UX/hppa.
57089         * tests/test-signbit.c (minus_zerol): New variable.
57090         (test_signbitl): Use it.
57091
57092 2008-04-13  Bruno Haible  <bruno@clisp.org>
57093
57094         Make truncl work on OSF/1 4.0.
57095         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57096         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57097         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57099         HAVE_DECL_TRUNCL.
57100         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57101         HAVE_DECL_TRUNCL.
57102         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57103
57104 2008-04-13  Bruno Haible  <bruno@clisp.org>
57105
57106         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57107
57108 2008-04-13  Bruno Haible  <bruno@clisp.org>
57109
57110         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57111         expression, so as to avoid HP-UX 11 cc compiler bug.
57112
57113 2008-04-13  Bruno Haible  <bruno@clisp.org>
57114
57115         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57116
57117 2008-04-13  Bruno Haible  <bruno@clisp.org>
57118
57119         * lib/git-merge-changelog.c: Remove empty declaration outside of
57120         functions.
57121
57122 2008-04-13  Bruno Haible  <bruno@clisp.org>
57123
57124         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57125
57126 2008-04-13  Bruno Haible  <bruno@clisp.org>
57127
57128         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57129         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57130         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57131         also if it exists but lacks definitions of the SHUT_* macros.
57132         * modules/sys_socket (Description): Update.
57133         Reported by Elbert Pol <e.pol@chello.nl>.
57134
57135 2008-04-13  Bruno Haible  <bruno@clisp.org>
57136
57137         * lib/localcharset.c (OS2): Don't redefine if already defined.
57138         Reported by Elbert Pol <e.pol@chello.nl>.
57139
57140 2008-04-13  Bruno Haible  <bruno@clisp.org>
57141
57142         * lib/binary-io.h [__EMX__]: Include <io.h>.
57143         Reported by Elbert Pol <e.pol@chello.nl>.
57144
57145 2008-04-12  Bruno Haible  <bruno@clisp.org>
57146
57147         * lib/fpucw.h: Enable the definitions also for x86_64.
57148         Needed for NetBSD/x86_64.
57149         Reported by Thomas Klausner <tk@giga.or.at>.
57150
57151 2008-04-12  Bruno Haible  <bruno@clisp.org>
57152
57153         * tests/test-strtod.c: Include isnand.h.
57154         (main): Use isnand instead of isnan.
57155         Reported by Jim Meyering.
57156
57157 2008-04-12  Bruno Haible  <bruno@clisp.org>
57158
57159         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57160         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57161
57162 2008-04-12  Jim Meyering  <meyering@redhat.com>
57163
57164         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57165
57166 2008-04-12  Bruno Haible  <bruno@clisp.org>
57167
57168         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57169         Reported by Elbert Pol <e.pol@chello.nl>.
57170
57171 2008-04-12  Eric Blake  <ebb9@byu.net>
57172
57173         Work around Solaris 10 math.h bug.
57174         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57175         (gl_MATH_H_DEFAULTS): Set up default.
57176         * modules/math (Makefile.am): Replace new indicators.
57177         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57178         * tests/test-math.c (main): Test this.
57179         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57180         * doc/posix-headers/math.texi (math.h): Mention bug.
57181         Reported by Nelson H. F. Beebe and Jim Meyering.
57182
57183 2008-04-11  Bruno Haible  <bruno@clisp.org>
57184
57185         Adapt to future versions of Apple GCC.
57186         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57187         Reported by Peter O'Gorman <peter@pogma.com>.
57188
57189 2008-04-11  Bruno Haible  <bruno@clisp.org>
57190
57191         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57192
57193 2008-04-11  Bruno Haible  <bruno@clisp.org>
57194
57195         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57196
57197         * modules/getaddrinfo-tests (Makefile.am): Define
57198         test_getaddrinfo_LDADD.
57199
57200 2008-04-11  Bruno Haible  <bruno@clisp.org>
57201
57202         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57203         (init): Fix syntax error.
57204         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57205         is declared.
57206
57207 2008-04-11  Bruno Haible  <bruno@clisp.org>
57208
57209         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57210         * modules/glob (Depends-on): Add stdbool.
57211
57212 2008-04-11  Bruno Haible  <bruno@clisp.org>
57213
57214         * lib/trim.c: Include <string.h>.
57215
57216 2008-04-11  Eric Blake  <ebb9@byu.net>
57217
57218         Avoid compile failure on OS/2.
57219         * lib/regex_internal.h (internal_function): Disable optimization
57220         on OS/2 (__EMX__), where it caused compiler error.
57221         Reported by Elbert Pol.
57222
57223 2008-04-11  Bruno Haible  <bruno@clisp.org>
57224
57225         Flush the standard error stream before aborting. Needed on mingw.
57226         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57227         * tests/test-array_list.c (ASSERT): Likewise.
57228         * tests/test-array_oset.c (ASSERT): Likewise.
57229         * tests/test-avltree_list.c (ASSERT): Likewise.
57230         * tests/test-avltree_oset.c (ASSERT): Likewise.
57231         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57232         * tests/test-binary-io.c (ASSERT): Likewise.
57233         * tests/test-byteswap.c (ASSERT): Likewise.
57234         * tests/test-c-ctype.c (ASSERT): Likewise.
57235         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57236         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57237         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57238         * tests/test-c-strstr.c (ASSERT): Likewise.
57239         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57240         * tests/test-canonicalize.c (ASSERT): Likewise.
57241         * tests/test-carray_list.c (ASSERT): Likewise.
57242         * tests/test-ceilf1.c (ASSERT): Likewise.
57243         * tests/test-ceilf2.c (ASSERT): Likewise.
57244         * tests/test-ceill.c (ASSERT): Likewise.
57245         * tests/test-count-one-bits.c (ASSERT): Likewise.
57246         * tests/test-fbufmode.c (ASSERT): Likewise.
57247         * tests/test-fflush2.c (ASSERT): Likewise.
57248         * tests/test-floorf1.c (ASSERT): Likewise.
57249         * tests/test-floorf2.c (ASSERT): Likewise.
57250         * tests/test-floorl.c (ASSERT): Likewise.
57251         * tests/test-fopen.c (ASSERT): Likewise.
57252         * tests/test-fpending.c (ASSERT): Likewise.
57253         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57254         * tests/test-fpurge.c (ASSERT): Likewise.
57255         * tests/test-freadable.c (ASSERT): Likewise.
57256         * tests/test-freadahead.c (ASSERT): Likewise.
57257         * tests/test-freading.c (ASSERT): Likewise.
57258         * tests/test-freadptr.c (ASSERT): Likewise.
57259         * tests/test-freadptr2.c (ASSERT): Likewise.
57260         * tests/test-freadseek.c (ASSERT): Likewise.
57261         * tests/test-freopen.c (ASSERT): Likewise.
57262         * tests/test-frexp.c (ASSERT): Likewise.
57263         * tests/test-frexpl.c (ASSERT): Likewise.
57264         * tests/test-fseek.c (ASSERT): Likewise.
57265         * tests/test-fseeko.c (ASSERT): Likewise.
57266         * tests/test-fstrcmp.c (ASSERT): Likewise.
57267         * tests/test-ftell.c (ASSERT): Likewise.
57268         * tests/test-ftello.c (ASSERT): Likewise.
57269         * tests/test-func.c (ASSERT): Likewise.
57270         * tests/test-fwritable.c (ASSERT): Likewise.
57271         * tests/test-fwriting.c (ASSERT): Likewise.
57272         * tests/test-getdelim.c (ASSERT): Likewise.
57273         * tests/test-getline.c (ASSERT): Likewise.
57274         * tests/test-i-ring.c (ASSERT): Likewise.
57275         * tests/test-iconv-utf.c (ASSERT): Likewise.
57276         * tests/test-iconv.c (ASSERT): Likewise.
57277         * tests/test-isfinite.c (ASSERT): Likewise.
57278         * tests/test-isnand.c (ASSERT): Likewise.
57279         * tests/test-isnanf.c (ASSERT): Likewise.
57280         * tests/test-isnanl.h (ASSERT): Likewise.
57281         * tests/test-ldexpl.c (ASSERT): Likewise.
57282         * tests/test-linked_list.c (ASSERT): Likewise.
57283         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57284         * tests/test-localename.c (ASSERT): Likewise.
57285         * tests/test-lseek.c (ASSERT): Likewise.
57286         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57287         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57288         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57289         * tests/test-mbscasestr3.c (ASSERT): Likewise.
57290         * tests/test-mbscasestr4.c (ASSERT): Likewise.
57291         * tests/test-mbschr.c (ASSERT): Likewise.
57292         * tests/test-mbscspn.c (ASSERT): Likewise.
57293         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
57294         * tests/test-mbspbrk.c (ASSERT): Likewise.
57295         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
57296         * tests/test-mbsrchr.c (ASSERT): Likewise.
57297         * tests/test-mbsspn.c (ASSERT): Likewise.
57298         * tests/test-mbsstr1.c (ASSERT): Likewise.
57299         * tests/test-mbsstr2.c (ASSERT): Likewise.
57300         * tests/test-mbsstr3.c (ASSERT): Likewise.
57301         * tests/test-memchr2.c (ASSERT): Likewise.
57302         * tests/test-memmem.c (ASSERT): Likewise.
57303         * tests/test-open.c (ASSERT): Likewise.
57304         * tests/test-printf-frexp.c (ASSERT): Likewise.
57305         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57306         * tests/test-printf-posix.c (ASSERT): Likewise.
57307         * tests/test-quotearg.c (ASSERT): Likewise.
57308         * tests/test-rbtree_list.c (ASSERT): Likewise.
57309         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57310         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57311         * tests/test-round1.c (ASSERT): Likewise.
57312         * tests/test-roundf1.c (ASSERT): Likewise.
57313         * tests/test-roundl.c (ASSERT): Likewise.
57314         * tests/test-signbit.c (ASSERT): Likewise.
57315         * tests/test-sleep.c (ASSERT): Likewise.
57316         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57317         * tests/test-snprintf.c (ASSERT): Likewise.
57318         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57319         * tests/test-stat-time.c (ASSERT): Likewise.
57320         * tests/test-strcasestr.c (ASSERT): Likewise.
57321         * tests/test-strerror.c (ASSERT): Likewise.
57322         * tests/test-striconv.c (ASSERT): Likewise.
57323         * tests/test-striconveh.c (ASSERT): Likewise.
57324         * tests/test-striconveha.c (ASSERT): Likewise.
57325         * tests/test-strsignal.c (ASSERT): Likewise.
57326         * tests/test-strstr.c (ASSERT): Likewise.
57327         * tests/test-strtod.c (ASSERT): Likewise.
57328         * tests/test-trunc1.c (ASSERT): Likewise.
57329         * tests/test-trunc2.c (ASSERT): Likewise.
57330         * tests/test-truncf1.c (ASSERT): Likewise.
57331         * tests/test-truncf2.c (ASSERT): Likewise.
57332         * tests/test-truncl.c (ASSERT): Likewise.
57333         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57334         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57335         * tests/test-vasnprintf.c (ASSERT): Likewise.
57336         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57337         * tests/test-vasprintf.c (ASSERT): Likewise.
57338         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57339         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57340         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57341         * tests/test-vsnprintf.c (ASSERT): Likewise.
57342         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57343         * tests/test-wcwidth.c (ASSERT): Likewise.
57344         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57345         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57346         * tests/test-xvasprintf.c (ASSERT): Likewise.
57347         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57348         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57349         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57350         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57351         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57352         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57353         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57354         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57355         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57356         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57357         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57358         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57359         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57360         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57361         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57362         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57363         * tests/unictype/test-block_list.c (ASSERT): Likewise.
57364         * tests/unictype/test-block_of.c (ASSERT): Likewise.
57365         * tests/unictype/test-block_test.c (ASSERT): Likewise.
57366         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
57367         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
57368         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
57369         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
57370         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
57371         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
57372         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
57373         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
57374         * tests/unictype/test-combining.c (ASSERT): Likewise.
57375         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
57376         * tests/unictype/test-digit.c (ASSERT): Likewise.
57377         * tests/unictype/test-mirror.c (ASSERT): Likewise.
57378         * tests/unictype/test-numeric.c (ASSERT): Likewise.
57379         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
57380         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
57381         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
57382         * tests/unictype/test-scripts.c (ASSERT): Likewise.
57383         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
57384         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
57385         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
57386         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
57387         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
57388         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
57389         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
57390         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
57391         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
57392         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
57393         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
57394         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
57395         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
57396         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
57397         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
57398         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
57399         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
57400         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
57401         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
57402         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
57403         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
57404         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
57405         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
57406         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
57407         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
57408         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
57409         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
57410         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
57411         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
57412         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
57413         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
57414         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
57415         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
57416         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
57417         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
57418         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
57419         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
57420         Reported by Eric Blake.
57421
57422 2008-04-11  Bruno Haible  <bruno@clisp.org>
57423
57424         * lib/wchar.in.h: Tweak comment.
57425
57426 2008-04-11  Bruno Haible  <bruno@clisp.org>
57427
57428         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57429         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57430         gl_COMMON.
57431         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57432
57433 2008-04-11  Bruno Haible  <bruno@clisp.org>
57434
57435         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57436
57437 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57438
57439         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57440         of attempting to use non-existing /dev/*random.  Based on patch
57441         from Adam Strzelecki <ono@java.pl> in
57442         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
57443
57444 2008-04-08  Bruno Haible  <bruno@clisp.org>
57445
57446         Add tentative support for emx+gcc.
57447         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
57448         * lib/fpurge.c (fpurge): Likewise.
57449         * lib/freadable.c (freadable): Likewise.
57450         * lib/freadahead.c (freadahead): Likewise.
57451         * lib/freading.c (freading): Likewise.
57452         * lib/freadptr.c (freadptr): Likewise.
57453         * lib/freadseek.c (freadptrinc): Likewise.
57454         * lib/fseeko.c (rpl_fseeko): Likewise.
57455         * lib/fseterr.c (fseterr): Likewise.
57456         * lib/fwritable.c (fwritable): Likewise.
57457         * lib/fwriting.c (fwriting): Likewise.
57458         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
57459
57460 2008-04-09  Eric Blake  <ebb9@byu.net>
57461
57462         Avoid some autoconf warnings.
57463         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57464         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57465         * m4/afs.m4 (gl_AFS): Likewise.
57466         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57467         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57468         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57469         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57470         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57471         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
57472         (AC_CHECK_DECLS_ONCE): Likewise.
57473         Rename file...
57474         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
57475         gnulib-tool requires autoconf 2.59 or better.
57476         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
57477
57478 2008-04-08  Eric Blake  <ebb9@byu.net>
57479
57480         Use 'git describe --match' if present (added in git 1.5.5).
57481         * build-aux/git-version-gen: Limit result to tags that match 'v*'
57482         if possible.
57483
57484 2008-04-08  Bruno Haible  <bruno@clisp.org>
57485
57486         Add tentative support for OpenServer.
57487         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
57488         _ptr, _cnt.
57489         * lib/fpurge.c (fpurge): Likewise.
57490         * lib/freadable.c (freadable): Likewise.
57491         * lib/freadahead.c (freadahead): Likewise.
57492         * lib/freading.c (freading): Likewise.
57493         * lib/freadptr.c (freadptr): Likewise.
57494         * lib/freadseek.c (freadptrinc): Likewise.
57495         * lib/fseeko.c (rpl_fseeko): Likewise.
57496         * lib/fseterr.c (fseterr): Likewise.
57497         * lib/fwritable.c (fwritable): Likewise.
57498         * lib/fwriting.c (fwriting): Likewise.
57499         Reported by Roger Cornelius <rac@tenzing.org> and
57500         Brian K. White <brian@aljex.com>.
57501
57502 2008-04-06  Jim Meyering  <meyering@redhat.com>
57503
57504         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
57505
57506 2008-04-06  Bruno Haible  <bruno@clisp.org>
57507
57508         Avoid possible error with non-ASCII bytes in UTF-8 locales.
57509         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
57510         * tests/test-printf-posix.sh: Likewise.
57511         * tests/test-vfprintf-posix.sh: Likewise.
57512         * tests/test-vprintf-posix.sh: Likewise.
57513         * tests/test-xprintf-posix.sh: Likewise.
57514
57515 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57516
57517         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57518         hide error from 'ls', needed on OS/2.
57519         Report by Elbert Pol <elbert.pol@gmail.com>.
57520
57521 2008-04-04  Eric Blake  <ebb9@byu.net>
57522
57523         Make test-fseeko.c failures meaningful.
57524         * tests/test-fseeko.c: Print line number on failure.
57525         * tests/test-fseek.c: Likewise.
57526         Reported by Nelson H. F. Beebe.
57527
57528         Improve strtod bug detection check.
57529         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57530         required for Solaris 10.
57531         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57532
57533 2008-04-04  Bruno Haible  <bruno@clisp.org>
57534
57535         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57536         by m4/setenv.m4.
57537
57538 2008-04-03  Eric Blake  <ebb9@byu.net>
57539
57540         Ensure sane .version contents.
57541         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57542         version string.
57543         * build-aux/git-version-gen: Improve documentation.
57544
57545         Make GNU make output nicer.
57546         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57547         MAKECMDGOALS to enforce message for all command line targets.  Set
57548         srcdir for use in maint.mk.
57549
57550         Another maintainer tweak.
57551         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57552         a target that regenerates version.
57553
57554 2008-04-03  Jim Meyering  <meyering@redhat.com>
57555
57556         vc-list-files: don't cause coreutils "make po-check" failure
57557         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57558
57559 2008-04-03  Eric Blake  <ebb9@byu.net>
57560
57561         Allow VPATH usage of vc-list-files.
57562         * build-aux/vc-list-files (scriptversion): Add timestamp.
57563         (options): Add --help, --version, -C.
57564         (CVS): Support installed cvsu.
57565
57566 2008-04-02  Bruno Haible  <bruno@clisp.org>
57567
57568         Avoid some "statement with no effect" warnings from gcc.
57569         * tests/test-wctype.c (main): Explicitly ignore unused values.
57570         Reported by Jim Meyering.
57571
57572 2008-04-02  Jim Meyering  <meyering@redhat.com>
57573
57574         Avoid some warnings from "gcc -Wshadow".
57575         * tests/test-frexp.c (exp): Define to a different identifier.
57576         * tests/test-frexpl.c (exp): Likewise.
57577
57578 2008-04-03  Jim Meyering  <meyering@redhat.com>
57579
57580         bootstrap: remove dangling *.[ch] symlinks from lib
57581         * build-aux/bootstrap [dangling symlink removal]: Move find's
57582         -depth option to precede all others, to avoid a warning.
57583         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57584
57585 2008-04-02  Bruno Haible  <bruno@clisp.org>
57586
57587         Avoid some warnings from "gcc -Wshadow".
57588         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57589         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57590         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57591         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57592         Reported by Jim Meyering.
57593
57594 2008-04-01  Bruno Haible  <bruno@clisp.org>
57595
57596         Fix test to work on IRIX 6.5 with cc.
57597         * tests/test-math.c (numeric_equal): New function.
57598         (main): Use it.
57599
57600 2008-04-01  Bruno Haible  <bruno@clisp.org>
57601
57602         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57603
57604 2008-04-01  Bruno Haible  <bruno@clisp.org>
57605
57606         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57607         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57608         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57609         (Depends-on): Remove math.
57610
57611         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57612         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57613         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57614         (Depends-on): Remove math.
57615
57616         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57617         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57618         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57619         (Depends-on): Remove math.
57620         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57621         (Depends-on): Remove math.
57622
57623         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57624         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57625         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57626         (Depends-on): Remove math.
57627         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57628         (Depends-on): Remove math.
57629
57630         * tests/test-round1.c: Include nan.h.
57631         (main): Use NaNd instead of NAN.
57632         * modules/round-tests (Files): Add tests/nan.h.
57633
57634         * tests/test-trunc1.c: Include nan.h.
57635         (main): Use NaNd instead of NAN.
57636         * modules/trunc-tests (Files): Add tests/nan.h.
57637
57638         * tests/test-roundf1.c: Include nan.h.
57639         (main): Use NaNf instead of NAN.
57640         * modules/roundf-tests (Files): Add tests/nan.h.
57641
57642         * tests/test-truncf1.c: Include nan.h.
57643         (main): Use NaNf instead of NAN.
57644         * modules/truncf-tests (Files): Add tests/nan.h.
57645
57646         * tests/test-ceilf1.c: Include nan.h.
57647         (main): Use NaNf instead of NAN.
57648         * modules/ceilf-tests (Files): Add tests/nan.h.
57649
57650         * tests/test-floorf1.c: Include nan.h.
57651         (main): Use NaNf instead of NAN.
57652         * modules/floorf-tests (Files): Add tests/nan.h.
57653
57654         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57655         (main): Use NaNf instead of NAN.
57656         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57657
57658         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57659         (main): Use NaNd instead of NAN.
57660         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57661
57662         * tests/test-frexp.c: Include nan.h.
57663         (main): Use NaNd instead of NAN.
57664         * modules/frexp-tests (Files): Add tests/nan.h.
57665
57666         * lib/isnan.c: Don't include <math.h>.
57667         (FUNC): Don't use NAN macro.
57668         * modules/isnand-nolibm (Depends-on): Remove math.
57669         * modules/isnanf-nolibm (Depends-on): Remove math.
57670         * modules/isnanl (Depends-on): Remove math.
57671         * modules/isnanl-nolibm (Depends-on): Remove math.
57672
57673         * tests/nan.h: New file.
57674
57675 2008-04-01  Eric Blake  <ebb9@byu.net>
57676
57677         Fix typos.
57678         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57679         values to be the right type.
57680
57681         For now, cater to gnulib strtod inaccuracies.
57682         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57683         fractional results.  While not as nice from a QoI perspective, it
57684         is a quicker patch than correctly implementing decimal to binary
57685         rounding.
57686
57687 2008-03-31  Eric Blake  <ebb9@byu.net>
57688
57689         Guarantee a definition of NAN.
57690         * lib/math.in.h (NAN): Define if missing.
57691         * tests/test-math.c (main): Test it.
57692         * doc/posix-headers/math.texi (math.h): Document this.
57693         * lib/isnan.c (rpl_isnand): Use it.
57694         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57695         * tests/test-floorf1.c (NaN): Likewise.
57696         * tests/test-frexp.c (NaN): Likewise.
57697         * tests/test-isnand.c (NaN): Likewise.
57698         * tests/test-isnanf.c (NaN): Likewise.
57699         * tests/test-round1.c (NaN): Likewise.
57700         * tests/test-roundf1.c (NaN): Likewise.
57701         * tests/test-snprintf-posix.h (NaN): Likewise.
57702         * tests/test-sprintf-posix.h (NaN): Likewise.
57703         * tests/test-trunc1.c (NaN): Likewise.
57704         * tests/test-truncf1.c (NaN): Likewise.
57705         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57706         * tests/test-vasprintf-posix.c (NaN): Likewise.
57707         * modules/isnand-nolibm (Depends-on): Add math.
57708         * modules/isnanf-nolibm (Depends-on): Likewise.
57709         * modules/isnanl (Depends-on): Likewise.
57710         * modules/isnanl-nolibm (Depends-on): Likewise.
57711         * modules/snprintf-posix-tests (Depends-on): Likewise.
57712         * modules/sprintf-posix-tests (Depends-on): Likewise.
57713         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57714         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57715         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57716         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57717
57718 2008-03-31  Bruno Haible  <bruno@clisp.org>
57719
57720         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57721         * doc/posix-functions/strtod.texi: Likewise.
57722
57723 2008-03-31  Bruno Haible  <bruno@clisp.org>
57724
57725         * tests/test-strtod.c (main): Don't use C99 syntax.
57726
57727 2008-03-31  Bruno Haible  <bruno@clisp.org>
57728
57729         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57730         Reported by Eric Blake.
57731
57732 2008-03-31  Jim Meyering  <meyering@redhat.com>
57733
57734         Don't compare actual signbit return values.
57735         * tests/test-strtod.c (main): Rather, compare only their
57736         zero/non-zero nature.
57737
57738 2008-03-31  Eric Blake  <ebb9@byu.net>
57739
57740         More strtod documentation.
57741         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57742         failures as distinct bugs.
57743
57744 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57745
57746         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57747         Problem reported by Erik Benada in
57748         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57749
57750 2008-03-30  Bruno Haible  <bruno@clisp.org>
57751
57752         * tests/test-strtod.c: Add comments about which assertion fails on which
57753         platform.
57754         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57755
57756 2008-03-30  Eric Blake  <ebb9@byu.net>
57757
57758         Test signbit behavior on zeros.
57759         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57760         (test_signbitd, test_signbitl): Likewise.
57761
57762         More strtod touchups.
57763         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57764         sign of negative underflow, for now.  Use .5, not .1.
57765         * doc/posix-functions/strtod.texi (strtod): Mention these
57766         limitations.
57767         Reported by Jim Meyering.
57768
57769 2008-03-30  Bruno Haible  <bruno@clisp.org>
57770
57771         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57772         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57773
57774 2008-03-30  Bruno Haible  <bruno@clisp.org>
57775
57776         Avoid failure when attempting to return empty iconv results on some
57777         platforms.
57778         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57779         allocation, don't report ENOMEM when the resulting string is empty.
57780
57781 2008-03-30  Bruno Haible  <bruno@clisp.org>
57782
57783         Fix buffer overrun.
57784         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57785         Don't consider the width for tmp_length. Check count against tmp_length
57786         before doing the padding. Ensure enough allocation during padding.
57787
57788 2008-03-30  Eric Blake  <ebb9@byu.net>
57789
57790         strtod touchups.
57791         * lib/strtod.c (strtod): Avoid compiler warnings.
57792         Reported by Jim Meyering.
57793
57794 2008-03-30  Bruno Haible  <bruno@clisp.org>
57795
57796         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57797         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57798         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57799         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57800         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57801         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57802         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57803         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57804
57805         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57806         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57807         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57808         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57809         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57810         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57811         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57812         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57813
57814         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57815         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57816         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57817         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57818         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57819         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57820         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57821         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57822
57823         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57824         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57825
57826         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57827         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57828
57829         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57830         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57831
57832         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57833         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57834         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57835
57836         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57837         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57838         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57839
57840         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57841         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57842         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57843
57844         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57845         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57846         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57847
57848         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57849         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57850         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57851         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57852         (Depends-on): Add EOVERFLOW.
57853         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57854         (Depends-on): Add EOVERFLOW.
57855         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57856         (Depends-on): Add EOVERFLOW.
57857         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57858         (Depends-on): Add EOVERFLOW.
57859         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57860         (Depends-on): Add EOVERFLOW.
57861         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57862         (Depends-on): Add EOVERFLOW.
57863         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57864         (Depends-on): Add EOVERFLOW.
57865         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57866         (Depends-on): Add EOVERFLOW.
57867
57868         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57869         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57870         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57871
57872         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57873         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57874         * modules/snprintf (Depends-on): Add EOVERFLOW.
57875
57876         * lib/poll.c (EOVERFLOW): Remove fallback.
57877         * modules/poll (Depends-on): Add EOVERFLOW.
57878
57879         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57880         * modules/getugroups (Depends-on): Add EOVERFLOW.
57881
57882         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57883         * modules/getdelim (Depends-on): Add EOVERFLOW.
57884
57885         * lib/ftell.c (EOVERFLOW): Remove fallback.
57886         * modules/ftell (Depends-on): Add EOVERFLOW.
57887
57888         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57889         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57890         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57891
57892         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57893
57894         * modules/EOVERFLOW-tests: New file.
57895         * tests/test-EOVERFLOW.c: New file.
57896
57897         * modules/EOVERFLOW: New file.
57898         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57899
57900 2008-03-30  Bruno Haible  <bruno@clisp.org>
57901
57902         Fix bug introduced on 2007-06-10.
57903         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57904         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57905
57906 2008-03-30  Bruno Haible  <bruno@clisp.org>
57907
57908         Improve freadseek's efficiency after ungetc.
57909         * lib/freadseek.c: Include freadahead.h.
57910         (freadptrinc): New function, extracted from freadseek.
57911         (freadseek): Use it in a loop. Use freadahead to determine the number
57912         of loop iterations.
57913         * modules/freadseek (Depends-on): Add freadahead.
57914         (configure.ac): Require AC_C_INLINE.
57915
57916 2008-03-30  Bruno Haible  <bruno@clisp.org>
57917
57918         * lib/freadseek.c (freadseek): Don't ignore the return value of
57919         freadptr.
57920
57921 2008-03-29  Eric Blake  <ebb9@byu.net>
57922
57923         Add hex float support.
57924         * modules/strtod (Depends-on): Add c-ctype.
57925         (Link): Mention POW_LIB.
57926         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57927         whitespace between 'e' and exponent.
57928         * tests/test-strtod.c (main): Enable hex float tests.
57929         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57930         now provides.
57931
57932         Document various strtod bugs, with some fixes.
57933         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57934         "-0x", "inf", "nan", and hex constants.
57935         * doc/posix-functions/atof.texi (atof): Likewise.
57936         * modules/stdlib (Makefile.am): Support strtod.
57937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57938         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57939         detect additional strtod bugs.
57940         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57941         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57942         bool where appropriate.  Parse 'inf' and 'nan'.
57943         * tests/test-strtod.c: New file.
57944         * modules/strtod (Depends-on): Add stdbool, stdlib.
57945         (configure.ac): Turn on module indicator.
57946         * modules/strtod-tests: New module.
57947
57948 2008-03-29  Eric Blake  <ebb9@byu.net>
57949
57950         Fix ftell on mingw.
57951         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57952         * modules/ftell-tests (Depends-on): Add binary-io.
57953         * modules/ftello-tests (Depends-on): Likewise.
57954         * tests/test-ftell.c (main): Enhance test to cover behavior after
57955         ungetc.  Enforce binary mode.
57956         * tests/test-ftello.c (main): Likewise.
57957
57958         Pass test-freadseek on cygwin.
57959         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57960         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57961         ungetc buffer.
57962
57963         * tests/test-fflush2.c (main): Fix typo.
57964
57965 2008-03-29  Bruno Haible  <bruno@clisp.org>
57966
57967         * tests/test-fflush2.c (main): Temporarily disable the contents of
57968         this test.
57969         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57970         Reported by Eric Blake.
57971
57972 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57973
57974         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57975         (GC_SHA224_DIGEST_SIZE): Add.
57976
57977         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57978         (gc_hash_digest_length): Likewise.
57979         (gc_hash_buffer): Likewise.
57980
57981 2008-03-25  Bruno Haible  <bruno@clisp.org>
57982
57983         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57984         detail which gettext release to use.
57985         Reported by Simon Josefsson.
57986
57987 2008-03-26  Jim Meyering  <meyering@redhat.com>
57988
57989         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57990         * modules/gnumakefile (clean-GNUmakefile): Also, use
57991         test ... && ... || : syntax rather than if-then ... fi.
57992
57993         gnumakefile: Don't double-quote-expand $(VPATH) value.
57994         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57995
57996 2008-03-24  Eric Blake  <ebb9@byu.net>
57997
57998         Alter GNUmakefile to install into top directory.
57999         * modules/maintainer-makefile: Split, and add dependency...
58000         * modules/gnumakefile: to this new module.
58001         * build-aux/GNUmakefile: Move...
58002         * top/GNUmakefile: ...here.
58003         * build-aux/maint.mk: Move...
58004         * top/maint.mk: ...here.
58005         * MODULES.html.sh (Support for maintaining...): Document new
58006         module.
58007
58008 2008-03-23  Bruno Haible  <bruno@clisp.org>
58009
58010         * gnulib-tool: New options --vc-files, --no-vc-files.
58011         (func_usage): Document them.
58012         (vc_files): New variable.
58013         (func_import): Consider vc_files.
58014         (func_create_testdir): Set vc_files to empty.
58015         Suggested by Jim Meyering and Karl Berry.
58016
58017 2008-03-23  Bruno Haible  <bruno@clisp.org>
58018
58019         Fix regex compilation error on HP-UX 11.
58020         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
58021         * modules/regex (Files): Add m4/mbstate_t.m4.
58022         Reported by Ton Voon <ton.voon@altinity.com>.
58023
58024 2008-03-23  Bruno Haible  <bruno@clisp.org>
58025
58026         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
58027
58028 2008-03-23  Eric Blake  <ebb9@byu.net>
58029             Bruno Haible  <bruno@clisp.org>
58030
58031         Install files from top/ in the destination directory.
58032         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58033         augmentation also for the files from top/.
58034         (func_import, func_create_testdir): Rewrite file names:
58035         top/filename -> filename.
58036
58037 2008-03-23  Bruno Haible  <bruno@clisp.org>
58038
58039         Tweak "gnulib --version" output.
58040         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58041
58042 2008-03-23  Bruno Haible  <bruno@clisp.org>
58043
58044         Tweak "gnulib --version" output.
58045         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58046         rather than contents of ChangeLog, when possible.
58047
58048 2008-03-21  Eric Blake  <ebb9@byu.net>
58049
58050         More --version tweaks.
58051         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58052         date of last ChangeLog entry.
58053
58054 2008-03-21  Jim Meyering  <meyering@redhat.com>
58055
58056         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58057
58058 2008-03-20  Eric Blake  <ebb9@byu.net>
58059
58060         VPATH fix.
58061         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58062
58063 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58064
58065         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58066         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58067
58068 2008-03-20  Eric Blake  <ebb9@byu.net>
58069
58070         Sync GNUmakefile with coreutils.
58071         * build-aux/GNUmakefile (have-Makefile): Rename...
58072         (_have-Makefile): ...to this, for namespace consideration.
58073         (GNUmakefile.cfg): Include, if present.
58074         (_autoreconf): Define a default.
58075         (_is-dist-target): New rule for rebuilds to pick up intra-release
58076         version.
58077         (maint-cfg.mk): Rename...
58078         (cfg.mk): ...to this.
58079
58080 2008-03-18  Jim Meyering  <meyering@redhat.com>
58081
58082         New script and module: mktempd
58083         * MODULES.html.sh (maint+release support): Add mktempd.
58084         * build-aux/mktempd: New file.
58085         * modules/mktempd: New file.
58086
58087 2008-03-15  Jim Meyering  <meyering@redhat.com>
58088
58089         Undo last change.
58090         * lib/sha1.c, lib/md5.c: 63 != ~63.
58091         Reported by Andreas Schwab.
58092
58093         sha1.c, md5.c: Hoist a redundant expression.
58094         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58095         "ctx->buflen" only once, before calling *_process_block.
58096         * lib/md5.c (md5_process_bytes): Likewise.
58097
58098 2008-03-14  Eric Blake  <ebb9@byu.net>
58099
58100         Bump copyright year in files generated by gnulib-tool.
58101         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58102         gnulib-tool, rather than hard-coding it.
58103
58104         Fix 'gnulib-tool --version' output to work with git.
58105         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58106         (startup): ...here.
58107         (func_version): Use it to invoke git-version-gen, rather than
58108         relying on CVS keyword expansion.  Modernize wording.
58109         (cvsdatestamp, last_checkin_date, version): Kill unused
58110         variables.
58111
58112 2008-03-12  Jim Meyering  <meyering@redhat.com>
58113
58114         Recognize optional cast of the argument to free.
58115         * build-aux/useless-if-before-free: Update regexps.
58116
58117         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58118
58119 2008-03-11  Bruno Haible  <bruno@clisp.org>
58120
58121         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58122         by a single package.
58123         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58124         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58125         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58126         Reported by Sam Steingold <sds@gnu.org>.
58127
58128 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58129
58130         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58131         repositories.
58132
58133 2008-03-11  Bruno Haible  <bruno@clisp.org>
58134
58135         Avoid conflicts between local macro definitions.
58136         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58137         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58138
58139 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58140             Bruno Haible  <bruno@clisp.org>
58141
58142         Make va_copy work with some version of xlc on AIX 5.1.
58143         * lib/stdarg.in.h: New file.
58144         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58145         On AIX, use a <stdarg.h> file substitute.
58146         * modules/stdarg (Files): Add lib/stdarg.in.h.
58147         (Depends-on): Add include_next.
58148         (Makefile.am): Build a stdarg.h substitute if requested.
58149         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58150
58151 2008-03-10  Bruno Haible  <bruno@clisp.org>
58152
58153         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58154         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58155         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58156
58157 2008-03-10  Bruno Haible  <bruno@clisp.org>
58158
58159         * modules/stdlib (Depends-on): Add include_next, remove
58160         absolute-header.
58161
58162 2008-03-09  Bruno Haible  <bruno@clisp.org>
58163
58164         * lib/freadahead.h (freadahead): Document more precisely.
58165         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58166         the sum of both buffer sizes.
58167         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58168         * NEWS: Document the change.
58169
58170 2008-03-09  Bruno Haible  <bruno@clisp.org>
58171
58172         Extend freadptr to return also the buffer size.
58173         * lib/freadptr.h (freadptr): Add sizep argument.
58174         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58175         (freadptr): Add sizep argument. Determine buffer size like freadahead
58176         does.
58177         * tests/test-freadptr.c: Don't include freadahead.h.
58178         (main): Adapt for new calling convention of freadptr.
58179         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58180         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58181         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58182         tests/test-freadptr2.sh.
58183         (Depends): Remove freadahead.
58184         (TESTS): Add test-freadptr2.sh.
58185         (check_PROGRAMS): Add test-freadptr2.
58186
58187 2008-03-09  Bruno Haible  <bruno@clisp.org>
58188
58189         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58190         Report and solution by Simon Josefsson.
58191
58192 2008-03-06  Bruno Haible  <bruno@clisp.org>
58193
58194         Make fflush after ungetc work on BSD platforms.
58195         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58196         * tests/test-fflush2.c: New file.
58197         * tests/test-fflush2.sh: New file.
58198         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58199         tests/test-fflush2.c.
58200         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58201         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58202
58203 2008-03-06  Eric Blake  <ebb9@byu.net>
58204
58205         Likewise for ftello.
58206         * modules/ftello (Dependencies): Add extensions.
58207         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58208
58209 2008-03-06  Bruno Haible  <bruno@clisp.org>
58210
58211         * modules/fseeko (Dependencies): Add extensions.
58212         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58213         Needed on glibc systems.
58214
58215 2008-03-06  Bruno Haible  <bruno@clisp.org>
58216
58217         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58218         email address.
58219         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58220
58221 2008-03-06  Bruno Haible  <bruno@clisp.org>
58222
58223         * users.txt: Add libgnupdf.
58224
58225 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58226
58227         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58228         (Header File Substitutes, Function Substitutes,
58229         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58230         (Build robot for gnulib): Fix typo.
58231
58232 2008-03-06  Bruno Haible  <bruno@clisp.org>
58233
58234         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58235         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58236
58237 2008-03-06  Bruno Haible  <bruno@clisp.org>
58238
58239         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58240         * doc/gnulib.texi: Include it.
58241
58242 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58243
58244         * modules/func (License): Change license to unlimited; there was
58245         no LGPL parts in the module anyway.
58246
58247 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58248
58249         * modules/__func__: Renamed to modules/func.
58250         * modules/__func__-tests: Renamed to modules/func-tests.
58251         * tests/test-__func__.c: Renamed to tests/test-func.c.
58252         * m4/__func__.m4: Renamed to m4/func.m4.
58253         * doc/gnulib.texi (__func__): Section renamed to func.
58254         Suggested by Eric Blake <ebb9@byu.net>.
58255
58256 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58257
58258         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58259         about __func__.  Make example self-contained.  Suggested by Eric
58260         Blake <ebb9@byu.net>.
58261
58262         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58263         Suggested by Eric Blake <ebb9@byu.net>.
58264
58265 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58266
58267         * modules/__func__: New file.
58268         * modules/__func__-tests: New file.
58269         * tests/test-__func__.c: New file.
58270         * m4/__func__.m4: New file.
58271         * doc/gnulib.texi (__func__): Document __func__ module.
58272
58273 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58274
58275         * modules/byteswap (License): Re-license as LGPLv2+.
58276
58277 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58278
58279         * doc/Makefile: Add pdf target.
58280
58281 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58282
58283         * modules/inline (License): Use 'unlimited', since there are only
58284         *.m4 files in this module.
58285
58286 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58287             Bruno Haible  <bruno@clisp.org>
58288
58289         Add support for HP C 7.1 on OpenVMS 8.3.
58290         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
58291
58292 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58293
58294         Update VMS specifics.
58295         * lib/getopt.c [VMS]: Remove include of unixlib.h.
58296
58297 2008-03-02  Jim Meyering  <meyering@redhat.com>
58298
58299         Remove the last dependency on the "free" module.
58300         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58301         Reported by Bob Proulx.
58302
58303         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58304
58305         Remove useless "if" tests before free.  Deprecate "free" module.
58306         * doc/posix-functions/free.texi: Mention that this
58307         module is no longer useful.
58308         * modules/free (Notice): Say this module is obsolete.
58309         * modules/readutmp (Depends-on): Remove free.
58310         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58311         * lib/putenv.c (putenv): Likewise.
58312         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58313         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58314         * tests/test-c-strcasestr.c (main): Likewise.
58315         * tests/test-c-strstr.c (main): Likewise.
58316         * tests/test-mbscasestr1.c (main): Likewise.
58317         * tests/test-mbscasestr2.c (main): Likewise.
58318         * tests/test-mbsstr1.c (main): Likewise.
58319         * tests/test-mbsstr2.c (main): Likewise.
58320         * tests/test-memmem.c (main): Likewise.
58321         * tests/test-strcasestr.c (main): Likewise.
58322         * tests/test-striconv.c (main): Likewise.
58323         * tests/test-striconveh.c (main): Likewise.
58324         * tests/test-striconveha.c (main): Likewise.
58325         * tests/test-strstr.c (main): Likewise.
58326
58327         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58328
58329         bootstrap: sync from coreutils again
58330         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58331
58332 2008-03-01  Jim Meyering  <meyering@redhat.com>
58333
58334         bootstrap: sync from coreutils
58335         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58336         also when the target doesn't exist.
58337
58338 2008-03-01  Eric Blake  <ebb9@byu.net>
58339
58340         Fix bugs in last patch.
58341         * lib/memchr2.c (memchr2): Fix typo.
58342         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58343         extension.
58344         Reported by Bruce Korb.
58345
58346         New module 'memchr2'.
58347         * modules/memchr2: New file.
58348         * modules/memchr2-tests: Likewise.
58349         * lib/memchr2.h: Likewise.
58350         * lib/memchr2.c: Likewise, based on memchr.c.
58351         * tests/test-memchr2.c: New test.
58352         * MODULES.html.sh (String handling): Add memchr2.
58353
58354 2008-02-29  Bruno Haible  <bruno@clisp.org>
58355
58356         * modules/freadseek-tests: New file.
58357         * tests/test-freadseek.sh: New file.
58358         * tests/test-freadseek.c: New file.
58359
58360         New module 'freadseek'.
58361         * modules/freadseek: New file.
58362         * lib/freadseek.h: New file.
58363         * lib/freadseek.c: New file.
58364         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
58365
58366 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58367
58368         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
58369         wydawca.
58370
58371         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
58372         program_invocation_name and program_invocation_short_name are
58373         present.
58374
58375 2008-02-28  Bruno Haible  <bruno@clisp.org>
58376
58377         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
58378         * tests/test-freadptr.sh: Also test non-seekable stdin.
58379
58380 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
58381
58382         * build-aux/bootstrap (source_base, m4_base)
58383         (doc_base, tests_base): New variables.
58384         (gnulib_tool_options): Do not hardcode base directories, use
58385         the above variables instead.
58386
58387 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
58388
58389         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
58390
58391 2008-02-28  Bruno Haible  <bruno@clisp.org>
58392
58393         * modules/freadptr-tests: New file.
58394         * tests/test-freadptr.sh: New file.
58395         * tests/test-freadptr.c: New file.
58396
58397         New module 'freadptr'.
58398         * modules/freadptr: New file.
58399         * lib/freadptr.h: New file.
58400         * lib/freadptr.c: New file.
58401         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
58402
58403 2008-02-26  Karl Berry  <karl@freefriends.org>
58404
58405         Sync from Libtool:
58406         * libltdl/argz.c (argz_add, argz_count): New functions.
58407         * libltdl/argz.in.h: Declare them.
58408         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
58409
58410 2008-02-22  Bruno Haible  <bruno@clisp.org>
58411
58412         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
58413         is a pointer type.  Needed for HP-UX 10.
58414         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
58415         * doc/posix-functions/gmtime_r.texi: Likewise.
58416         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58417
58418 2008-02-24  Bruno Haible  <bruno@clisp.org>
58419
58420         * modules/environ-tests: New file.
58421         * tests/test-environ.c: New file.
58422
58423         New module 'environ'.
58424         * modules/environ: New file.
58425         * lib/unistd.in.h (environ): New declaration.
58426         * m4/environ.m4: New file.
58427         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58428         after use.
58429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58430         HAVE_DECL_ENVIRON.
58431         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58432         HAVE_DECL_ENVIRON.
58433         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58434         wrong claim that 'environ' is missing on some systems.
58435         * modules/execute (Depends-on): Add environ.
58436         * lib/execute.c (environ): Remove fallback declaration.
58437         * modules/pipe (Depends-on): Add environ.
58438         * lib/pipe.c (environ): Remove fallback declaration.
58439         * modules/setenv (Depends-on): Add environ.
58440         * lib/setenv.c (environ): Remove fallback declaration.
58441         * modules/unsetenv (Depends-on): Add environ.
58442         * lib/unsetenv.c (environ): Remove fallback declaration.
58443         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
58444         m4/environ.m4.
58445         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
58446         (gl_PREREQ_UNSETENV): Likewise.
58447
58448 2008-02-24  Bruno Haible  <bruno@clisp.org>
58449
58450         * doc/posix-functions/environ.texi: Document the MacOS X problem.
58451
58452 2008-02-20  Bob Proulx  <bob@proulx.com>
58453
58454         Enable use of older two part flavor 'git describe'.
58455         * build-aux/git-version-gen: If using the older two part flavor of
58456         git version then recreate the third part now present in the
58457         newer three part flavor of git describe.
58458
58459 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
58460
58461         * lib/fts.c (fts_build): Typo correction to comment.
58462
58463 2008-02-17  Bruno Haible  <bruno@clisp.org>
58464
58465         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58466         generating no-op conflicts.
58467
58468 2008-02-17  Bruno Haible  <bruno@clisp.org>
58469
58470         Speed up by 10%.
58471         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
58472         result_entries, rather than an index-based loop.
58473
58474 2008-02-17  Bruno Haible  <bruno@clisp.org>
58475
58476         Speed up by 25%.
58477         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58478         'hashcode_cached'.
58479         (entry_create): New function.
58480         (entry_hashcode): Use the cached hashcode if possible.
58481         (read_changelog_file, try_split_merged_entry): Use entry_create.
58482
58483 2008-02-17  Bruno Haible  <bruno@clisp.org>
58484
58485         Speed up from O(n^2) to O(n) for long ChangeLog files.
58486         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
58487         (read_changelog_file): Change implementation of entries_reversed list
58488         to rbtreehash.
58489         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
58490
58491 2008-02-17  Bruno Haible  <bruno@clisp.org>
58492
58493         New option --split-merged-entry.
58494         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
58495         (find_paragraph_end, try_split_merged_entry): New functions.
58496         (long_options): Add option --split-merged-entry.
58497         (usage): Document option --split-merged-entry.
58498         (main): Implement option --split-merged-entry.
58499         Reported by Eric Blake.
58500
58501 2008-02-17  Bruno Haible  <bruno@clisp.org>
58502
58503         * lib/git-merge-changelog.c: Include c-strstr.h.
58504         (main): Support the "git pull --rebase" situation.
58505         * modules/git-merge-changelog (Depends-on): Add c-strstr.
58506         Reported by Eric Blake.
58507
58508 2008-02-16  Eric Blake  <ebb9@byu.net>
58509
58510         Avoid doubling \ in common case of "c-maybe" quoting style.
58511         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
58512         eliding outer quotes.
58513         * lib/quotearg.h: Document this.
58514         * tests/test-quotearg.c (result_strings, inputs, results_g)
58515         (flag_results, locale_results): Test it by adding a new string to
58516         each test group.
58517         (compare_strings): Test new string.
58518
58519 2008-02-13  Eric Blake  <ebb9@byu.net>
58520
58521         Avoid trigraph quoting in default output.
58522         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58523         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58524         unless explicitly requested.
58525         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58526
58527 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58528
58529         Don't rely on signed integer overflowing to negative value.
58530         * lib/getugroups.c (getugroups): Include <limits.h>.
58531         Instead, compare against INT_MAX, and increment only if the test passes.
58532
58533 2008-02-13  Jim Meyering  <meyering@redhat.com>
58534         and Eric Blake  <ebb9@byu.net>
58535
58536         Avoid shadowing warning and compile errors on Linux.
58537         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58538         forwarding macros on Linux.
58539         (dcgettext): Define a stub, for Linux.
58540         (results_g, main): Avoid warnings.
58541
58542 2008-02-12  Eric Blake  <ebb9@byu.net>
58543
58544         Silence warning in last patch.
58545         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58546
58547         Quotearg part 4: add tests, fix c-maybe colon quoting.
58548         * lib/quotearg.h: Improve documentation.
58549         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58550         escapes when adding outer quotes.  When quoting trigraphs, use
58551         valid C notation.  When quoting NUL, omit extra characters if next
58552         character is not digit.  Alter prototype.
58553         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58554         callers.
58555         * modules/quotearg-tests: New module.
58556         * tests/test-quotearg.c: New test.
58557
58558 2008-02-07  Eric Blake  <ebb9@byu.net>
58559
58560         Quotearg part 3: add flag to control outer quote elision.
58561         * lib/quotearg.h (c_maybe_quoting_style): New style.
58562         (enum quoting_flags): Better documentation of flags.
58563         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58564         c-maybe style.
58565         (quotearg_buffer_restyled): Handle new flag to elide outer
58566         quotes.
58567
58568         Quotearg part 2: add flag that can control NUL elision.
58569         * lib/quotearg.h (set_quoting_flags): New prototype.
58570         * lib/quotearg.c (struct quoting_options): Add flag field.
58571         (set_quoting_flags): New function.
58572         (quotearg_buffer_restyled): Add flags parameter.
58573         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58574         (quotearg_n_options): Set the flag, since length cannot be
58575         returned.
58576         (quoting_options_from_style): Default flags correctly.
58577
58578         Quotearg part 1: more wrappers, restore quotearg_char state.
58579         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58580         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58581         (quotearg_colon_mem): New wrappers.
58582         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58583         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58584         functions.
58585         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58586         (quotearg_colon_mem): New functions.
58587
58588 2008-02-11  Bruno Haible  <bruno@clisp.org>
58589
58590         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58591         library in the current directory: it does not work with parallel make.
58592         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58593
58594 2008-02-11  Bruno Haible  <bruno@clisp.org>
58595
58596         * .gitattributes: New file.
58597
58598 2008-02-11  Jim Meyering  <meyering@redhat.com>
58599
58600         useless-if-before-free: Fix reversed exit values.
58601         * build-aux/useless-if-before-free: Use correct values
58602         for EXIT_MATCH and EXIT_NO_MATCH.
58603
58604         * build-aux/useless-if-before-free: Close stdout carefully.
58605
58606 2008-02-10  Bruno Haible  <bruno@clisp.org>
58607
58608         New module 'git-merge-changelog'.
58609         * modules/git-merge-changelog: New file.
58610         * lib/git-merge-changelog.c: New file.
58611
58612 2008-02-10  Jim Meyering  <meyering@redhat.com>
58613
58614         useless-if-before-free: New option: --list (-l).
58615
58616         useless-if-before-free: Don't exit immediately upon open failure.
58617         * build-aux/useless-if-before-free: Exit 2 for errors.
58618         Upon failure to open a file, don't exit immediately.
58619         Rather, just warn and continue with any remaining files.
58620
58621 2008-02-10  Bruno Haible  <bruno@clisp.org>
58622
58623         New abstract list operation 'node_set_value'.
58624         * lib/gl_list.h (gl_list_node_set_value): New function.
58625         (struct gl_list_implementation): New field node_set_value.
58626         * lib/gl_list.c (gl_list_node_set_value): New function.
58627         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58628         (gl_array_list_implementation): Update.
58629         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58630         (gl_carray_list_implementation): Update.
58631         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58632         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58633         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58634         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58635         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58636         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58637         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58638         Update.
58639         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58640         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58641         (gl_sublist_list_implementation): Update.
58642
58643 2008-02-10  Bruno Haible  <bruno@clisp.org>
58644
58645         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58646         Needed when ELEMENT is #defined to 'some_type *'.
58647
58648 2008-02-10  Jim Meyering  <meyering@redhat.com>
58649
58650         New script and module: useless-if-before-free
58651         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58652         * build-aux/useless-if-before-free: New file.
58653         * modules/useless-if-before-free: New file.
58654
58655         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58656
58657         xstrtol_error: Fix typo.
58658         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58659         s/exit_failure/exit_status/.
58660
58661 2008-02-09  Jim Meyering  <meyering@redhat.com>
58662
58663         New script and module: gitlog-to-changelog
58664         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58665         * modules/gitlog-to-changelog: New file.
58666         * build-aux/gitlog-to-changelog: New file.
58667
58668 2008-02-08  Jim Meyering  <meyering@redhat.com>
58669
58670         Avoid two "parameter unused" warnings.
58671         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58672         Mark "st" as used.
58673
58674         Use "git COMMAND", not "git-COMMAND".
58675         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58676         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58677         * build-aux/git-version-gen: Use "git status", not "git-status".
58678
58679 2008-02-07  Bruno Haible  <bruno@clisp.org>
58680
58681         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58682         Avoids a crash on Windows Vista.
58683         Reported by Adam Strzelecki <ono@java.pl> via
58684         Simon Josefsson <simon@josefsson.org>.
58685
58686 2008-02-06  Bruno Haible  <bruno@clisp.org>
58687
58688         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58689         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58690         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58692         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58693         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58694         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58695         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58696         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58697         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58698         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58699         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58700         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58701         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58702         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58703         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58704         left-adjust flag.
58705         * tests/test-snprintf-posix.h (test_function): Likewise.
58706         * tests/test-sprintf-posix.h (test_function): Likewise.
58707         * tests/test-vasprintf-posix.c (test_function): Likewise.
58708         * doc/posix-functions/fprintf.texi: Update.
58709         * doc/posix-functions/printf.texi: Update.
58710         * doc/posix-functions/snprintf.texi: Update.
58711         * doc/posix-functions/sprintf.texi: Update.
58712         * doc/posix-functions/vfprintf.texi: Update.
58713         * doc/posix-functions/vprintf.texi: Update.
58714         * doc/posix-functions/vsnprintf.texi: Update.
58715         * doc/posix-functions/vsprintf.texi: Update.
58716         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58717
58718 2008-02-06  Bruno Haible  <bruno@clisp.org>
58719
58720         Fix bug introduced on 2008-01-26.
58721         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58722
58723 2008-02-06  Bruno Haible  <bruno@clisp.org>
58724
58725         Fix bug introduced on 2007-06-10.
58726         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58727         !NEED_PRINTF_FLAG_ZERO.
58728
58729 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58730
58731         getloadavg: use libperfstat on AIX5
58732         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58733
58734 2008-02-03  Bruno Haible  <bruno@clisp.org>
58735
58736         * lib/diffseq.h: Add comments about required #includes.
58737         Reported by Michael Biggs <gnulib@doubleplum.net>.
58738
58739 2008-02-01  Bruno Haible  <bruno@clisp.org>
58740
58741         * users.txt: Add gnuit.
58742
58743 2008-01-31  Bruno Haible  <bruno@clisp.org>
58744
58745         * lib/md4.c (set_uint32): Mark as inline.
58746         * lib/md5.c (set_uint32): Likewise.
58747         * lib/sha1.c (set_uint32): Likewise.
58748         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58749         * m4/md5.m4 (gl_MD5): Likewise.
58750         * m4/sha1.m4 (gl_SHA1): Likewise.
58751
58752 2008-01-31  Jim Meyering  <meyering@redhat.com>
58753
58754         Use "sizeof VAR", rather than a literal "4".
58755         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58756         * lib/md4.c (md4_read_ctx): Likewise.
58757         * lib/sha1.c (sha1_read_ctx): Likewise.
58758
58759 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58760
58761         * tests/test-sha1.c: New file, based on test-md5.c.
58762
58763         * modules/crypto/sha1-tests: New file.
58764
58765 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58766
58767         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58768
58769 2008-01-31  Jim Meyering  <meyering@redhat.com>
58770
58771         Prefer "sizeof v" over the equivalent "4".
58772         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58773         * lib/md5.c (set_uint32): Likewise.
58774         * lib/sha1.c (set_uint32): Likewise.
58775
58776 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58777
58778         * lib/sha1.c (set_uint32): Mark function as static.
58779
58780 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58781
58782         md2: clarify comments to say that alignment is not required.
58783         * lib/md2.h: Remove warning about alignment in comment.
58784         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58785         never been required.
58786
58787 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58788
58789         md4: adapt alignment constraint fix from sha1.
58790         * lib/md4.c (set_uint32): New function, from sha1.c
58791         (md4_read_ctx): Use it.
58792         (md4_finish_ctx): Doc fix.
58793         * lib/md4.h: Doc fix.
58794
58795 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58796
58797         md5: adapt alignment constraint fix from sha1.
58798         * lib/md5.c (set_uint32): New function, from sha1.c
58799         (md5_read_ctx): Use it.
58800         (md5_finish_ctx): Doc fix.
58801         * lib/md5.h: Doc fix.
58802
58803 2008-01-30  Peter Palfrader  <weasel@debian.org>
58804
58805         sha1: remove the result buffer alignment constraint
58806         * lib/sha1.c (set_uint32): New function.
58807         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58808         constraint.
58809         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58810         * lib/sha1.h: Likewise.
58811
58812 2008-01-30  Andreas Schwab  <schwab@suse.de>
58813             Bruno Haible  <bruno@clisp.org>
58814
58815         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58816         correct definition of LDBL_MIN_EXP.
58817
58818 2008-01-30  Karl Berry  <karl@gnu.org>
58819
58820         * config/srclist-update: try to preserve x bit on updates.
58821         * config/srclistvars.sh: update for karl.
58822
58823 2008-01-29  Jim Meyering  <meyering@redhat.com>
58824
58825         vasnprintf.c: Avoid warning about unused label
58826         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58827         "overflow" label definition and associated code with the
58828         same cpp condition that guards the sole use of that label.
58829
58830 2008-01-26  Bruno Haible  <bruno@clisp.org>
58831
58832         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58833         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58834         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58835         * lib/isnanl-nolibm.h (isnanl): Likewise.
58836         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58837
58838 2008-01-26  Bruno Haible  <bruno@clisp.org>
58839
58840         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58841         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58842
58843 2008-01-26  Bruno Haible  <bruno@clisp.org>
58844
58845         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58846         GCC >= 4.0 built-in.
58847         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58848
58849 2008-01-26  Bruno Haible  <bruno@clisp.org>
58850
58851         Rename isnan, applicable to 'double' only, to isnand.
58852         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58853         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58854         (configure.ac): Update.
58855         (Include): Replace "isnan.h" with "isnand.h".
58856         * m4/isnand.m4: Renamed from m4/isnan.m4.
58857         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58858         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58859         instead of isnan.c.
58860         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58861         instead of HAVE_ISNAN_IN_LIBC.
58862         (isnand): Renamed from isnan.
58863         * lib/isnand.c: New file.
58864         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58865         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58866         (Makefile.am): Update.
58867         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58868         Include isnand.h instead of isnan.h.
58869         (main): Test isnand instead of isnan.
58870         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58871         isnan-nolibm.
58872         * modules/frexp (Depends-on): Likewise.
58873         * modules/frexp-tests (Depends-on): Likewise.
58874         * modules/frexp-nolibm (Depends-on): Likewise.
58875         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58876         * modules/isfinite (Depends-on): Likewise.
58877         * modules/round-tests (Depends-on): Likewise.
58878         * modules/signbit (Depends-on): Likewise.
58879         * modules/signbit-tests (Depends-on): Likewise.
58880         * modules/snprintf-posix (Depends-on): Likewise.
58881         * modules/sprintf-posix (Depends-on): Likewise.
58882         * modules/trunc-tests (Depends-on): Likewise.
58883         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58884         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58885         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58886         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58887         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58888         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58889         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58890         * modules/vasnprintf-posix (Depends-on): Likewise.
58891         * modules/vasprintf-posix (Depends-on): Likewise.
58892         * modules/vfprintf-posix (Depends-on): Likewise.
58893         * modules/vsnprintf-posix (Depends-on): Likewise.
58894         * modules/vsprintf-posix (Depends-on): Likewise.
58895         * lib/frexp.c: Include isnand.h instead of isnan.h.
58896         (ISNAN): Set to isnand instead of isnan.
58897         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58898         (gl_isfinited): Use isnand instead of isnan.
58899         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58900         (gl_signbitd): Use isnand instead of isnan.
58901         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58902         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58903         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58904         (main): Use isnand instead of isnan.
58905         * tests/test-round1.c: Include isnand.h.
58906         (main): Use isnand instead of isnan.
58907         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58908         (ISNAN): Set to isnand instead of isnan.
58909         * tests/test-trunc1.c: Include isnand.h.
58910         (main): Use isnand instead of isnan.
58911         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58912         (equal): Use isnand instead of isnan.
58913         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58914         isnand-nolibm.
58915         * NEWS: Mention the change.
58916
58917 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58918             Bruno Haible  <bruno@clisp.org>
58919
58920         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58921         the GCC builtins for signbits are present and set
58922         REPLACE_SIGNBIT_USING_GCC if so.
58923         * lib/math.in.h (signbit): Define using GCC builtins if
58924         REPLACE_SIGNBIT_USING_GCC is set.
58925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58926         REPLACE_SIGNBIT_USING_GCC.
58927         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58928
58929 2008-01-25  Jim Meyering  <meyering@redhat.com>
58930
58931         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58932         * lib/poll.c: Include <config.h>, not "config.h".
58933         * tests/test-getaddrinfo.c: Likewise.
58934
58935 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58936
58937         * modules/sockets-tests: New file.
58938
58939 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58940
58941         * modules/sockets: New module, can be used to call WSA_Startup and
58942         WSA_Cleanup when needed.
58943
58944         * lib/sockets.h, lib/sockets.c: New files.
58945
58946         * m4/sockets.m4: New file.
58947
58948         * tests/test-sockets.c: New file.
58949
58950 2008-01-19  Bruno Haible  <bruno@clisp.org>
58951
58952         * doc/posix-headers: Renamed from doc/headers.
58953         * doc/posix-functions: Renamed from doc/functions.
58954         * doc/gnulib.texi: Update.
58955
58956 2008-01-19  Bruno Haible  <bruno@clisp.org>
58957
58958         * doc/glibc-functions/strcasestr.texi: Include contents of
58959         doc/functions/strcasestr.texi, fixing the list of platforms.
58960         * doc/functions/strcasestr.texi: Remove file.
58961
58962 2008-01-19  Bruno Haible  <bruno@clisp.org>
58963
58964         * doc/glibc-functions/memmem.texi: Include contents of
58965         doc/functions/memmem.texi.
58966         * doc/functions/memmem.texi: Remove file.
58967
58968 2008-01-18  Bruno Haible  <bruno@clisp.org>
58969
58970         * doc/glibc-functions/*.texi: New files.
58971         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58972         to use the new files.
58973
58974 2008-01-17  Bruno Haible  <bruno@clisp.org>
58975
58976         * tests/test-gethostname.c (main): Fix printf statement.
58977
58978 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58979
58980         * modules/gethostname-tests: New file.
58981
58982         * tests/test-gethostname.c: New file.
58983
58984 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58985
58986         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58987         used by the UNAME case.  Reported by Bruno Haible
58988         <bruno@clisp.org>.
58989
58990 2008-01-17  Eric Blake  <ebb9@byu.net>
58991
58992         Convert c-strcasestr to be more efficient.
58993         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58994         (Depends-on): Add c-strcase, remove malloca, strnlen.
58995         * tests/test-c-strcasestr.c (main): Enhance test.
58996         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58997
58998 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58999
59000         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
59001         Use it in creating po/Makevars.
59002
59003 2008-01-15  Simon Josefsson  <simon@josefsson.org>
59004
59005         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
59006         Applications that requires it should initialize libgcrypt
59007         manually.
59008
59009 2008-01-16  Simon Josefsson  <simon@josefsson.org>
59010
59011         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
59012
59013 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
59014
59015         Fix problem with getdate on mingw32 reported by Simon Josefsson
59016         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
59017         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
59018         tzname", when deciding whether to declare tzname.
59019         * lib/strftime.c (tzname): Likewise.
59020
59021 2008-01-15  Bruno Haible  <bruno@clisp.org>
59022
59023         Work around a MacOS X 10.5 bug in frexpl().
59024         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
59025         * doc/functions/frexpl.texi: Document the bug.
59026         Reported by Elias Pipping <pipping@gentoo.org>.
59027
59028 2008-01-14  Eric Blake  <ebb9@byu.net>
59029
59030         Touch up previous patch.
59031         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
59032         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
59033
59034         Convert strcasestr module to use Two-Way algorithm.
59035         * modules/strcasestr-simple: New module, based on the old
59036         strcasestr, but with Two-Way rather than KMP.
59037         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59038         * lib/string.in.h (rpl_strcasestr): Declare.
59039         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59040         performance.
59041         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59042         * modules/string (Makefile.am): Support strcasestr.
59043         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59044         * modules/strcasestr-tests (Depends-on): Check for alarm.
59045         * tests/test-strcasestr.c: Augment test.
59046         * lib/str-two-way.h: Clean up stray macro.
59047         * NEWS: Document new module.
59048         * MODULES.html.sh (string handling): Likewise.
59049         * doc/functions/strcasestr.texi: New file.
59050         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59051         here, since it is not a POSIX function.
59052
59053 2008-01-14  Colin Watson  <cjwatson@debian.org>
59054             Bruno Haible  <bruno@clisp.org>
59055
59056         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59057         works fine; if not, set REPLACE_STRSIGNAL.
59058         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59059         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59060         REPLACE_STRSIGNAL.
59061         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59062         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59063         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59064
59065 2008-01-14  Bruno Haible  <bruno@clisp.org>
59066
59067         * modules/strsignal (Include): Change to <string.h>.
59068
59069 2008-01-14  Colin Watson  <cjwatson@debian.org>
59070
59071         * modules/argp (Notice): Add a notice recommending to change
59072         XGETTEXT_OPTIONS.
59073         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59074
59075 2008-01-13  Colin Watson  <cjwatson@debian.org>
59076
59077         * modules/strsignal-tests: New file.
59078         * tests/test-strsignal.c: New file.
59079
59080         * lib/strsignal.c: New file, from glibc with modifications.
59081         * lib/siglist.h: New file, from glibc with modifications.
59082         * lib/string.in.h (strsignal): New declaration.
59083         * m4/strsignal.m4: New file.
59084         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59085         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59086         * modules/strsignal: New file.
59087         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59088         HAVE_DECL_STRSIGNAL.
59089
59090 2008-01-13  Bruno Haible  <bruno@clisp.org>
59091
59092         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59093         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59094         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59095         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59096
59097 2008-01-13  Bruno Haible  <bruno@clisp.org>
59098
59099         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59100         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59101         * lib/argp.h (__attribute__): Likewise.
59102         * lib/c-stack.c (__attribute__): Likewise.
59103         * lib/error.h (__attribute__): Likewise.
59104         * lib/fts.c (__attribute__): Likewise.
59105         * lib/openat.h (__attribute__): Likewise.
59106         * lib/stdio.in.h (__attribute__): Likewise.
59107         * lib/string.in.h (__attribute__): Likewise.
59108         * lib/utimens.c (__attribute__): Likewise.
59109         * lib/vasnprintf.h (__attribute__): Likewise.
59110         * lib/xalloc.h (__attribute__): Likewise.
59111         * lib/xprintf.h (__attribute__): Likewise.
59112         * lib/xstrtol.h (__attribute__): Likewise.
59113         * lib/xvasprintf.h (__attribute__): Likewise.
59114
59115 2008-01-12  Bruno Haible  <bruno@clisp.org>
59116
59117         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59118         * doc/glibc-headers/a.out.texi: New file.
59119         * doc/glibc-headers/aliases.texi: New file.
59120         * doc/glibc-headers/alloca.texi: New file.
59121         * doc/glibc-headers/ar.texi: New file.
59122         * doc/glibc-headers/argp.texi: New file.
59123         * doc/glibc-headers/argz.texi: New file.
59124         * doc/glibc-headers/byteswap.texi: New file.
59125         * doc/glibc-headers/crypt.texi: New file.
59126         * doc/glibc-headers/endian.texi: New file.
59127         * doc/glibc-headers/envz.texi: New file.
59128         * doc/glibc-headers/err.texi: New file.
59129         * doc/glibc-headers/error.texi: New file.
59130         * doc/glibc-headers/execinfo.texi: New file.
59131         * doc/glibc-headers/fpu_control.texi: New file.
59132         * doc/glibc-headers/fstab.texi: New file.
59133         * doc/glibc-headers/fts.texi: New file.
59134         * doc/glibc-headers/getopt.texi: New file.
59135         * doc/glibc-headers/ieee754.texi: New file.
59136         * doc/glibc-headers/ifaddrs.texi: New file.
59137         * doc/glibc-headers/libintl.texi: New file.
59138         * doc/glibc-headers/mcheck.texi: New file.
59139         * doc/glibc-headers/mntent.texi: New file.
59140         * doc/glibc-headers/obstack.texi: New file.
59141         * doc/glibc-headers/paths.texi: New file.
59142         * doc/glibc-headers/printf.texi: New file.
59143         * doc/glibc-headers/pty.texi: New file.
59144         * doc/glibc-headers/resolv.texi: New file.
59145         * doc/glibc-headers/shadow.texi: New file.
59146         * doc/glibc-headers/sysexits.texi: New file.
59147         * doc/glibc-headers/ttyent.texi: New file.
59148
59149 2008-01-12  Jim Meyering  <meyering@redhat.com>
59150
59151         announce-gen: emit Gnulib's git-based version string.
59152         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59153         New option --gnulib-version=V, where V is expected to be
59154         the output of running git describe in the gnulib directory.
59155         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59156         not useful, and plan to stop publishing an xdelta file with each
59157         coreutils release.
59158
59159         * build-aux/announce-gen: Also check for lzma-compressed files.
59160
59161 2008-01-11  Bruno Haible  <bruno@clisp.org>
59162
59163         * tests/test-memmem.c (main): Increase maximum allowed time.
59164         * tests/test-strstr.c (main): Likewise.
59165
59166 2008-01-11  Bruno Haible  <bruno@clisp.org>
59167
59168         * doc/functions/memmem.texi: Add more precisions about platforms.
59169         * doc/functions/strstr.texi: Likewise.
59170
59171 2008-01-10  Eric Blake  <ebb9@byu.net>
59172
59173         * m4/strstr.m4: Delete cruft from copy-n-paste.
59174         Reported by Bruno Haible.
59175
59176 2008-01-10  Bruno Haible  <bruno@clisp.org>
59177
59178         Make c-strstr rely on strstr.
59179         * lib/c-strstr.c: Don't include str-kmp.h.
59180         (c_strstr): Define in terms of strstr.
59181         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59182         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59183
59184 2008-01-10  Bruno Haible  <bruno@clisp.org>
59185
59186         * doc/gnulib.texi (String Functions in C Locale): New section.
59187         * doc/c-ctype.texi: New file.
59188         * doc/c-strcase.texi: New file.
59189         * doc/c-strcaseeq.texi: New file.
59190         * doc/c-strcasestr.texi: New file.
59191         * doc/c-strstr.texi: New file.
59192         * doc/c-strtod.texi: New file.
59193         * doc/c-strtold.texi: New file.
59194
59195 2008-01-10  Eric Blake  <ebb9@byu.net>
59196
59197         * lib/relocatable.h: Fix a comment.
59198
59199 2008-01-10  Eric Blake  <ebb9@byu.net>
59200
59201         Share two-way algorithm.
59202         * lib/str-two-way.h: New file, merged from...
59203         * lib/memmem.c: ...here...
59204         * lib/strstr.c: ...and here.
59205         * modules/memmem (Files): Use it.
59206         * modules/strstr (Files): Likewise.
59207
59208         Avoid quadratic strstr implementations.
59209         * lib/strstr.c: New file.
59210         * m4/strstr.m4: Likewise.
59211         * modules/strstr: Likewise.
59212         * modules/strstr-tests: Likewise.
59213         * tests/test-strstr.c: Likewise.
59214         * lib/string.in.h (rpl_strstr): Declare.
59215         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59216         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59217         * modules/string (Makefile.am): Likewise.
59218         * MODULES.html.sh (string handling): Mention new module.
59219         * doc/functions/strstr.texi (strstr): Document the bug.
59220
59221 2008-01-10  Bruno Haible  <bruno@clisp.org>
59222
59223         * lib/relocatable.h (relocate): State whether result is freshly
59224         allocated or not.
59225         * lib/relocatable.c (relocate): Return a freshly allocated string
59226         instead of a pointer to a privately held string.
59227         Reported by Sylvain Beucler <beuc@gnu.org>.
59228
59229 2008-01-10  Colin Watson  <cjwatson@debian.org>
59230
59231         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59232         s/S_ISNLK/S_ISLNK/.
59233
59234 2008-01-09  Bruno Haible  <bruno@clisp.org>
59235
59236         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59237         and other files.
59238         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59239         if it's only a guess.
59240         * modules/memmem: Simplify by depending on memmem-simple.
59241
59242 2008-01-09  Bruno Haible  <bruno@clisp.org>
59243
59244         Work around OpenBSD 4.0 tdelete() bug.
59245         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59246         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59247         macros and don't redefine the enum values.
59248         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59249         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59250         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59251
59252 2008-01-09  Bruno Haible  <bruno@clisp.org>
59253
59254         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59255         (main): Don't perform the tests if setlocale did not install a UTF-8
59256         locale. Needed on OpenBSD 4.0.
59257         * modules/wcwidth-tests (Depends-on): Add localcharset.
59258
59259 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59260
59261         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59262         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59263         * NEWS: announce this.
59264         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59265
59266 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59267         and Eric Blake  <ebb9@byu.net>
59268
59269         Add memmem-simple module.
59270         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59271         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59272         * modules/memmem-simple: New file.
59273         * modules/memmem (Description): Tweak.
59274         * MODULES.html.sh (string handling): Mention new module.
59275         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59276         addressed by memmem-simple.
59277         * NEWS: Document the difference.
59278
59279 2008-01-09  Eric Blake  <ebb9@byu.net>
59280
59281         Give gcc some memmem optimization hints.
59282         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59283         (strcasestr): Declare as pure.
59284         * modules/memmem (Maintainer): Claim my implementation.
59285
59286 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59287
59288         Support AIX 6.1 and higher.
59289         * build-aux/config.libpath: Likewise.
59290         * build-aux/config.rpath: Likewise.
59291
59292 2008-01-08  Jim Meyering  <meyering@redhat.com>
59293             Bruno Haible  <bruno@clisp.org>
59294
59295         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
59296         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
59297         Reported by Peter Fales in
59298         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
59299
59300 2008-01-08  Bruno Haible  <bruno@clisp.org>
59301
59302         * modules/unictype/category-of (Depends-on): Add
59303         unictype/category-none.
59304         * modules/unictype/category-and-tests (Depends-on): Add
59305         unictype/category-{L,N,Lu,Nd}.
59306         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59307         * modules/unictype/category-or-tests (Depends-on): Add
59308         unictype/category-{L,N}.
59309         * modules/unictype/category-name-tests (Depends-on): Add
59310         unictype/category-{Z,Nl}.
59311         Reported by Simon Josefsson.
59312
59313 2008-01-08  Bruno Haible  <bruno@clisp.org>
59314
59315         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59316         convention better.
59317         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59318         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59319         Reported by Peter Miller <millerp@canb.auug.org.au>.
59320
59321 2008-01-08  Eric Blake  <ebb9@byu.net>
59322
59323         Rewrite memmem to guarantee linear complexity without malloc.
59324         * lib/memmem.c (memmem): Use Two-Way rather than
59325         Knuth-Morris-Pratt, to allow O(1) space usage.
59326         (critical_factorization, two_way_short_needle)
59327         (two_way_long_needle): New functions.
59328         (knuth_morris_pratt): Delete.
59329         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59330         Add stdint.
59331         * tests/test-memmem.c (main): Add tests for periodic needle and
59332         sublinear performance.
59333         * doc/functions/memmem.texi (memmem): Document other deficiencies
59334         in cygwin and older glibc.
59335
59336 2008-01-08  Bruno Haible  <bruno@clisp.org>
59337
59338         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59339         augmentation.
59340
59341 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59342
59343         Add a configure time option: --disable-acl.
59344         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59345         AC_ARG_ENABLE(acl).
59346
59347 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59348
59349         * tests/test-localename.c: Don't include obsolete "setenv.h".
59350
59351         * modules/localename-tests (Depends-on): Need unsetenv.
59352
59353 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59354
59355         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59356
59357 2008-01-06  Colin Watson  <cjwatson@debian.org>
59358
59359         * users.txt: Add man-db.
59360
59361 2008-01-07  Bruno Haible  <bruno@clisp.org>
59362
59363         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
59364         previous section name.
59365
59366 2008-01-07  Bruno Haible  <bruno@clisp.org>
59367
59368         * lib/progname.c (set_program_name): Don't strip off a leading
59369         "lt-" prefix outside a .libs directory.
59370         Suggested by Paul Eggert.
59371
59372 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
59373             Bruno Haible  <bruno@clisp.org>
59374
59375         Improve memory cleanup in 'relocatable' module.
59376         * lib/relocatable.h (compute_curr_prefix): Change return type to
59377         'char *'.
59378         * lib/relocatable.c (compute_curr_prefix): Change return type to
59379         'char *'. Free curr_installdir after use.
59380         (relocate): Free curr_prefix_better after use.
59381         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
59382
59383 2008-01-01  Bruno Haible  <bruno@clisp.org>
59384
59385         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
59386         failure on older glibc systems.
59387         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59388
59389 2008-01-05  Eric Blake  <ebb9@byu.net>
59390
59391         Avoid quadratic system memmem.
59392         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
59393         Reported by Ralf Wildenhues.
59394
59395         Fix memmem test for mingw.
59396         * modules/memmem-tests (configure.ac): Check for alarm.
59397         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
59398         it.
59399         * doc/functions/memmem.texi: New file.
59400         * doc/gnulib.texi (Function Substitutes): Add memmem.
59401         Reported by Bruno Haible.
59402
59403 2008-01-04  Bruno Haible  <bruno@clisp.org>
59404
59405         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
59406         Require gl_HEADER_STRINGS_H_DEFAULTS, not
59407         gl_HEADER_STRING_H_DEFAULTS.
59408
59409 2008-01-04  Eric Blake  <ebb9@byu.net>
59410
59411         Shorten duration of memmem test.
59412         * tests/test-memmem.c (main): Use alarm to declare failure if test
59413         is taking too long.
59414         Reported by Ralf Wildenhues.
59415
59416 2007-12-21  Simon Josefsson  <simon@josefsson.org>
59417
59418         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
59419         string, needed by strerror.
59420
59421 2008-01-03  Colin Watson  <cjwatson@debian.org>
59422             Bruno Haible  <bruno@clisp.org>
59423
59424         * doc/gnulib-tool.texi (Localization): New section.
59425
59426 2008-01-02  Bruno Haible  <bruno@clisp.org>
59427
59428         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59429         variables to 'unsigned char *' type.
59430         Reported by Paul Eggert.
59431
59432 2008-01-02  Jim Meyering  <jim@meyering.net>
59433
59434         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59435
59436 2007-12-31  Jim Meyering  <jim@meyering.net>
59437
59438         Avoid use of private FTS type name.
59439         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59440
59441 2007-12-30  Karl Berry  <karl@gnu.org>
59442
59443         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
59444         work around defect in Texinfo and/or the standalone Info browser.
59445
59446 2007-12-30  Bruno Haible  <bruno@clisp.org>
59447
59448         Unify 5 copies of the KMP code.
59449         * lib/str-kmp.h: New file.
59450         * lib/c-strcasestr.c: Include str-kmp.h.
59451         (knuth_morris_pratt): Remove function.
59452         (c_strcasestr): Update.
59453         * lib/c-strstr.c: Include str-kmp.h.
59454         (knuth_morris_pratt): Remove function.
59455         (c_strcasestr): Update.
59456         * lib/mbscasestr.c: Include str-kmp.h.
59457         (knuth_morris_pratt_unibyte): Remove function.
59458         * lib/mbsstr.c: Include str-kmp.h.
59459         (knuth_morris_pratt_unibyte): Remove function.
59460         * lib/strcasestr.c: Include str-kmp.h.
59461         (knuth_morris_pratt): Remove function.
59462         (strcasestr): Update.
59463         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59464         * modules/c-strstr (Files): Likewise.
59465         * modules/mbscasestr (Files): Likewise.
59466         * modules/mbsstr (Files): Likewise.
59467         * modules/strcasestr (Files): Likewise.
59468         Suggested by Paul Eggert.
59469
59470 2007-12-30  Bruno Haible  <bruno@clisp.org>
59471
59472         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
59473         defined.
59474
59475 2007-12-30  Bruno Haible  <bruno@clisp.org>
59476
59477         * lib/xmalloca.h: Include xalloc.h.
59478         (xnmalloca): New macro.
59479
59480 2007-12-30  Bruno Haible  <bruno@clisp.org>
59481
59482         * lib/malloca.h (nmalloca): New macro.
59483         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
59484         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
59485         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
59486         knuth_morris_pratt_multibyte): Likewise.
59487         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
59488         knuth_morris_pratt_multibyte): Likewise.
59489         * lib/memmem.c (knuth_morris_pratt): Likewise.
59490         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
59491
59492 2007-12-25  Bruno Haible  <bruno@clisp.org>
59493
59494         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
59495         * lib/glob.c: Don't include openat.h.
59496         (link_exists2_p): Add back the code that deals with the
59497         !GLOB_ALTDIRFUNC case.
59498         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
59499         let it do the filename concatenation.
59500         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
59501         * modules/glob (Depends-on): Remove openat.
59502
59503 2007-12-31  Bruno Haible  <bruno@clisp.org>
59504
59505         * modules/dirfd (License): Change to LGPLv2+.
59506         Approved by Jim Meyering.
59507
59508 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59509
59510         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
59511         when multiplying M by sizeof (size_t).
59512
59513 2007-12-10  Martin Lambers  <marlam@marlam.de>
59514
59515         Override getpagesize on mingw.
59516         * lib/getpagesize.c: New file.
59517         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59518         * modules/getpagesize (Files): Add lib/getpagesize.c.
59519         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59521         REPLACE_GETPAGESIZE.
59522         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59523
59524 2007-12-25  Bruno Haible  <bruno@clisp.org>
59525
59526         * modules/localcharset (Notice): New field.
59527         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59528         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59529
59530 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59531             Bruno Haible  <bruno@clisp.org>
59532
59533         Avoid using the syntax symbol() in formatted documentation.
59534         * MODULES.html.sh (func_module): When replacing symbol() with a
59535         hyperlink, remove the parentheses. Show an error if some remain.
59536         Recognize and render the '...' syntax.
59537         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59538         Rework. Add paragraph about GCC's inlining.
59539         * doc/alloca.texi: Likewise.
59540         * doc/error.texi: Remove parentheses from symbol reference.
59541         * doc/gnulib-intro.texi: Likewise.
59542         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59543         * modules/fnmatch (Description): Reword to say "the ... function".
59544         * modules/full-read (Description): Likewise.
59545         * modules/full-write (Description): Likewise.
59546         * modules/safe-read (Description): Likewise.
59547         * modules/safe-write (Description): Likewise.
59548         * modules/strchrnul (Description): Likewise.
59549         * modules/trim (Description): Likewise.
59550         * modules/error (Description): Remove parentheses from symbol
59551         references.
59552         * modules/verror (Description): Likewise.
59553         Reported by Karl Berry.
59554
59555 2007-12-25  Bruno Haible  <bruno@clisp.org>
59556
59557         Fixup after 2007-10-16 commit.
59558         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59559
59560 2007-12-24  Bruno Haible  <bruno@clisp.org>
59561
59562         Make --enable-relocatable work with DESTDIR.
59563         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59564         to compute installdir from destprog.
59565         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59566         also set the RELOC_DESTDIR variable.
59567         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
59568
59569 2007-12-24  Bruno Haible  <bruno@clisp.org>
59570
59571         Fix link error due to xalloc_die().
59572         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59573         of xreadlink.
59574         * lib/relocwrapper.c: Update comments.
59575         * build-aux/install-reloc: Remove xreadlink.c from file list.
59576         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59577         xreadlink.c.
59578         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
59579
59580 2007-12-24  Bruno Haible  <bruno@clisp.org>
59581
59582         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59583         * lib/setenv.h: Remove file.
59584         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59585         lib/setenv.h.
59586         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59587         (Depends-on): Add stdlib.
59588         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59589         gl_FUNC_UNSETENV.
59590         (Include): Replace setenv.h with <stdlib.h>.
59591         * modules/unsetenv: New file.
59592         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59593         * lib/unsetenv.c: Include <stdlib.h> first.
59594         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59595         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59596         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59597         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59598         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59599         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59600         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59601         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59602         * doc/functions/unsetenv.texi: Update.
59603         * modules/xsetenv (Depends-on): Add unsetenv.
59604         * modules/getdate (Depends-on): Likewise.
59605         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59606         * lib/xsetenv.c: Don't include setenv.h.
59607         * lib/getdate.y: Likewise.
59608         * lib/relocwrapper.c: Likewise.
59609         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59610         (Depends-on): Add stdlib.
59611         * NEWS: Mention the changes.
59612         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
59613
59614 2007-12-23  Bruno Haible  <bruno@clisp.org>
59615
59616         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59617         indentation.
59618
59619 2007-12-23  Bruno Haible  <bruno@clisp.org>
59620
59621         * lib/c-strcasestr.c: Add more comments.
59622         * lib/c-strstr.c: Likewise.
59623         * lib/mbscasestr.c: Likewise.
59624         * lib/mbsstr.c: Likewise.
59625         * lib/strcasestr.c: Likewise.
59626         * lib/memmem.c: Likewise.
59627
59628 2007-12-23  Bruno Haible  <bruno@clisp.org>
59629
59630         * tests/test-memmem.c: Include <string.h> first.
59631
59632 2007-12-22  Bruno Haible  <bruno@clisp.org>
59633
59634         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59635         the contents of $testsbase.
59636         Reported by Ralf Wildenhues.
59637
59638 2007-12-22  Bruno Haible  <bruno@clisp.org>
59639
59640         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59641         two variables local_ldadd_before, local_ldadd_last.
59642
59643 2007-12-20  Eric Blake  <ebb9@byu.net>
59644
59645         Work around circular library issue when cross-compiling.
59646         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59647         that progname.o does not need to pull in rpl_memcmp.
59648
59649 2007-12-19  Eric Blake  <ebb9@byu.net>
59650
59651         Fix memmem to avoid O(n^2) worst-case complexity.
59652         * lib/memmem.c (knuth_morris_pratt): New function.
59653         (memmem): Use it if first few naive iterations fail.
59654         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59655         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59656         * modules/memchr (License): Likewise.
59657         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59658         malloca.
59659         * tests/test-memmem.c: Rewrite, borrowing ideas from
59660         test-mbsstr1.c; the old version wouldn't even compile!
59661         * modules/memmem-tests: New file.
59662         * lib/string.in.h (rpl_memmem): Add declaration.
59663         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59665         REPLACE_MEMMEM.
59666
59667 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59668
59669         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59670         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59671         before any system include files, and undef after them all.  This
59672         should fix a problem on VMS reported by John E. Malmberg in
59673         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59674
59675 2007-12-17  Eric Blake  <ebb9@byu.net>
59676
59677         Revert addition of verify, for BSD/OS.
59678         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59679         can't handle large files, for the sake of obsolete platforms.
59680         * modules/fseeko (Depends-on): Remove verify.
59681         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59682         * doc/functions/ftello.texi (ftello): Likewise.
59683         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59684         Reported by Larry Jones.
59685
59686 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59687
59688         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59689         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59690
59691 2007-12-17  Jim Meyering  <meyering@redhat.com>
59692
59693         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59694         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59695         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59696         * modules/getcwd (Depends-on): Add openat.
59697         Reported by Petr Salinger.
59698
59699 2007-12-17  Bruno Haible  <bruno@clisp.org>
59700
59701         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59702         avoid a segmentation fault of the configure test on x86_64 systems.
59703
59704 2007-12-15  Jim Meyering  <meyering@redhat.com>
59705
59706         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59707
59708 2007-12-13  Eric Blake  <ebb9@byu.net>
59709
59710         Another fseek test.
59711         * tests/test-fseek.c (main): Also test ungetc handling.
59712         * tests/test-fseeko.c (main): Likewise.
59713         * modules/fseeko (Depends-on): Add verify.
59714         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59715         large.
59716         Reported by Larry Jones.
59717
59718         Fix fseeko on mingw.
59719         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59720         seek.
59721
59722         Beef up fseek tests.
59723         * tests/test-fseek.c (main): Also test eof handling.
59724         * tests/test-fseeko.c (main): Likewise.
59725         Reported by Larry Jones.
59726
59727 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59728
59729         Fix fseeko on BSD-based platforms.
59730         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59731         successful seek.
59732
59733 2007-12-12  Eric Blake  <ebb9@byu.net>
59734
59735         Allow circular dependency of separate libtests.a
59736         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59737         when use_libtests.
59738
59739 2007-12-11  Eric Blake  <ebb9@byu.net>
59740
59741         Fix bug with -0.0L in previous patch.
59742         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59743         * tests/test-isnan.c (main): Also test on zeroes.
59744         * tests/test-isnanf.c (main): Likewise.
59745         * tests/test-isnanl.h (main): Likewise.
59746
59747         Detect pseudo-denormals on x86 even when cross-compiling.
59748         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59749         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59750         invalid bit patterns that happen to satisfy ==.
59751
59752         Avoid link failures with separate libtests.a.
59753         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59754         last, to satisfy circular dependencies.
59755
59756 2007-12-11  Eric Blake  <ebb9@byu.net>
59757         and Bruno Haible  <bruno@clisp.org>
59758
59759         Fix OpenBSD 4.0 <float.h> handling of long double.
59760         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59761         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59762         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59763
59764 2007-12-11  Jim Meyering  <meyering@redhat.com>
59765
59766         * users.txt: Add libvirt.
59767
59768         Support versions of autoconf prior to 2.59c.
59769         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59770         if it is not already defined.
59771
59772 2007-12-09  Bruno Haible  <bruno@clisp.org>
59773
59774         Let 'gnulib-tool --import' collect sources needed for the tests in
59775         tests/ rather than in lib/.
59776         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59777         argument. If true, add rules to generate libtests.a, and put libtests.a
59778         into $(LDADD). Consider source files in subdirectories and set
59779         uses_subdirs.
59780         (func_emit_initmacro_start, func_emit_initmacro_end,
59781         func_emit_initmacro_done): Pass all arguments explicitly.
59782         (func_import): Determine two module lists main_modules,
59783         testsrelated_modules. Determine use_libtests. Determine two variables
59784         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59785         instead of just sed_transform_lib_file. Determine two variables
59786         main_files and testsrelated_files. Compute 'files' as the union of
59787         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59788         func_add_or_update. In the generated gnulib-comp.m4, collect the
59789         object files for tests/ in different variables than those for lib/.
59790         Substitute LIBTESTS_LIBDEPS.
59791         (func_create_testdir): Combine the uses_subdirs results from
59792         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59793
59794 2007-12-09  Bruno Haible  <bruno@clisp.org>
59795
59796         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59797         the build-aux directory.
59798
59799 2007-12-09  Bruno Haible  <bruno@clisp.org>
59800
59801         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59802         introduced on 2006-09-09.
59803
59804 2007-12-07  Jim Meyering  <meyering@redhat.com>
59805
59806         Let these macros work also with autoconf-2.59.
59807         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59808         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59809         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59810
59811 2007-12-06  Jim Meyering  <meyering@redhat.com>
59812
59813         Avoid a configure-time syntax error in gl_FUNC_ACL.
59814         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59815         function in each branch, before testing the cache variable.
59816
59817 2007-12-04  Eric Blake  <ebb9@byu.net>
59818
59819         Make scripts executable.
59820         * build-aux/config.guess: Add execute permissions.
59821         * build-aux/config.sub: Likewise.
59822         * build-aux/gendocs.sh: Likewise.
59823
59824         Fix frexp on mingw.
59825         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59826         cross-compiling.
59827         * doc/functions/frexp.texi (frexp): Document the bug.
59828
59829         Make cygwin fseeko check more reliable.
59830         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59831         version numbers, rather than unrelated feature check.
59832         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59833         * doc/functions/ftello.texi (ftello): Likewise.
59834         Reported by Bruno Haible.
59835
59836         * m4/strerror.m4: Bump version number.
59837
59838 2007-12-03  Bruno Haible  <bruno@clisp.org>
59839
59840         * doc/functions/mprotect.texi: Mention the mingw problem.
59841
59842 2007-12-03  Eric Blake  <ebb9@byu.net>
59843
59844         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59845         REPLACE_STRERROR is initialized before this macro.
59846
59847 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59848
59849         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59850         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59851         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59852         put -lsec in even for programs other than 'ls'.  This fixes a problem
59853         for gettext reported by Bruno Haible in
59854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59855         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59856         Add support for Solaris 10.  This isn't efficient, but should get the
59857         job done for now.
59858
59859 2007-12-03  James Youngman  <jay@gnu.org>
59860
59861         * doc/regexprops-generic.texi: change "an close-group" to "a
59862         close-group" and "illegal" to "not allowed".
59863
59864 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59865
59866         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59867         pr_byname.h. Needed for the rare case when the maintainer has done
59868         "make maintainer-clean" in the source directory and then attempts a
59869         build outside the source directory.
59870         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59871         scripts_byname.h.
59872
59873 2007-12-02  Martin Lambers <marlam@marlam.de>
59874             Bruno Haible  <bruno@clisp.org>
59875
59876         * lib/getpagesize.h: Remove file.
59877         * lib/unistd.in.h: Include declaration of getpagesize here.
59878         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59879         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59880         HAVE_SYS_PARAM_H.
59881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59882         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59883         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59884         (Depends-on): Add unistd.
59885         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59886         (Include): Use <unistd.h> instead of getpagesize.h.
59887         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59888         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59889         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59890         gl_GETPAGESIZE invocation, already handled by module dependency.
59891         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59892
59893 2007-12-02  Bruno Haible  <bruno@clisp.org>
59894
59895         * modules/strings-tests: New file.
59896         * tests/test-strings.c: New file.
59897
59898         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59899         * lib/strings.in.h: New file.
59900         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59901         * m4/strings_h.m4: New file.
59902         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59903         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59904         * modules/strings: New file.
59905         * modules/string (Makefile.am): Update.
59906         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59907         Reported by Karl Berry.
59908
59909 2007-12-01  Eric Blake  <ebb9@byu.net>
59910
59911         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59912         accommodate fix in cygwin 1.5.25.
59913
59914 2007-12-01  Jim Meyering  <meyering@redhat.com>
59915
59916         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59917         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59918         that would inhibit utf8-optimization of a regexp containing line-
59919         or buffer-anchors, e.g., `^', `$'.
59920
59921 2007-11-30  Bruno Haible  <bruno@clisp.org>
59922
59923         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59924         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59925         glthread_recursive_lock_init.
59926         * lib/lock.c (glthread_recursive_lock_init)
59927         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59928         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59929
59930 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59931
59932         New function qset_acl, like set_acl but with syscall semantics.
59933         * lib/acl.h (qset_acl): New decl.
59934         * lib/acl.c (qset_acl): New function.
59935         (set_acl): Use new function.  Use more-consistent diagnostics.
59936
59937 2007-11-28  Jim Meyering  <meyering@redhat.com>
59938
59939         * modules/physmem (License): Change from GPL to LGPLv2+.
59940
59941 2007-11-26  Bruno Haible  <bruno@clisp.org>
59942
59943         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59944         'long double' type has excess precision.
59945         Reported by Jim Meyering in
59946         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59947
59948 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59949
59950         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59951         Sync from <http://gnu.org/licenses>.
59952         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59953         with license text from same location.
59954         * doc/maintain.texi, doc/standards.texi:  Sync from
59955         <http://savannah.gnu.org/projects/gnustandards>.
59956
59957 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59958         and Jim Meyering  <meyering@redhat.com>
59959
59960         Adjust getdate' grammar to accept a slightly more regular language.
59961         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59962         Before, the former was rejected.
59963         * lib/getdate.y (digits_to_date_time): New function, factored
59964         out of ...
59965         (number): ...here.  Just call digits_to_date_time.
59966         (hybrid): New non-terminal to handle an <unsigned number,
59967         signed relative offset> sequence consistently.
59968
59969 2007-11-18  Jim Meyering  <meyering@redhat.com>
59970
59971         Pull my changes from coreutils:
59972         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59973         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59974         use of $gnulib_tool_option_extras, so that it's separated from the
59975         preceding argument.
59976
59977         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59978         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59979         parent destination directories before copying a file into place.
59980
59981 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59982
59983         bootstrap: work also with 4-argument variant of AC_INIT
59984         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59985
59986 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59987
59988         Port test-getaddrinfo to Solaris.
59989         Problem reported by Bruno Haible in
59990         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59991         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59992         explanation of setting 'hints'.
59993         Don't reject an implementation merely because it returns EAI_SERVICE.
59994         (EAI_SERVICE): Define to 0 if not defined.
59995
59996 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59997
59998         The license of gnu-make and posix-shell is now "GPLed build tool".
59999         * modules/gnu-make (License): Likewise.
60000         * modules/posix-shell (License): Likewise.
60001
60002         New module posix-shell, for determining a POSIX shell
60003         or perhaps something that is close enough to a POSIX shell.
60004         * m4/posix-shell.m4: New file.
60005         * modules/posix-shell: New file.
60006
60007         * MODULES.html.sh: Mention new module.
60008
60009         New module gnu-make, for determining whether we're using GNU Make.
60010         * m4/gnu-make.m4: New file.
60011         * modules/gnu-make: New file.
60012         * MODULES.html.sh: Mention new module.
60013
60014 2007-11-14  Jim Meyering  <meyering@redhat.com>
60015
60016         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
60017         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
60018         use this macro to create a function _definition_.
60019         Remove useless "#undef ARGMATCH_DIE".
60020
60021 2007-11-14  Bruno Haible  <bruno@clisp.org>
60022
60023         * lib/config.charset: Update for OpenBSD 4.1.
60024         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
60025
60026 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
60027
60028         Document 64-bit #if problems in stdint.texi.
60029         * doc/headers/stdint.texi (stdint.h): Mention problems with
60030         64-bit-#if, and how to work around them.
60031
60032         Don't insist on 'long long int' support in the preprocessor.  It
60033         breaks too many things.  For example, PRIdMAX still uses a 'long
60034         long int' format with the latest Sun compiler, even though
60035         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60036         preprocessor problem.  This causes the latest coreutils to dump
60037         core on Solaris 10 sparc with the Sun C compiler.
60038         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60039         the troublesome expressions at configure-time, not at #if-time.
60040         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60041         preprocessor.
60042         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60043         compile-time C checks, done at 'configure'-time.
60044         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60045         * modules/inttypes (Makefile): Substitute the new symbols that
60046         gl_INTTYPES_H now generates.
60047         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60048
60049 2007-11-12  Bruno Haible  <bruno@clisp.org>
60050
60051         Tests for Unicode character classification functions.
60052
60053         * modules/unictype/bidicategory-byname-tests: New file.
60054         * modules/unictype/bidicategory-name-tests: New file.
60055         * modules/unictype/bidicategory-of-tests: New file.
60056         * modules/unictype/bidicategory-test-tests: New file.
60057         * modules/unictype/block-list-tests: New file.
60058         * modules/unictype/block-of-tests: New file.
60059         * modules/unictype/block-test-tests: New file.
60060         * modules/unictype/category-C-tests: New file.
60061         * modules/unictype/category-Cc-tests: New file.
60062         * modules/unictype/category-Cf-tests: New file.
60063         * modules/unictype/category-Cn-tests: New file.
60064         * modules/unictype/category-Co-tests: New file.
60065         * modules/unictype/category-Cs-tests: New file.
60066         * modules/unictype/category-L-tests: New file.
60067         * modules/unictype/category-Ll-tests: New file.
60068         * modules/unictype/category-Lm-tests: New file.
60069         * modules/unictype/category-Lo-tests: New file.
60070         * modules/unictype/category-Lt-tests: New file.
60071         * modules/unictype/category-Lu-tests: New file.
60072         * modules/unictype/category-M-tests: New file.
60073         * modules/unictype/category-Mc-tests: New file.
60074         * modules/unictype/category-Me-tests: New file.
60075         * modules/unictype/category-Mn-tests: New file.
60076         * modules/unictype/category-N-tests: New file.
60077         * modules/unictype/category-Nd-tests: New file.
60078         * modules/unictype/category-Nl-tests: New file.
60079         * modules/unictype/category-No-tests: New file.
60080         * modules/unictype/category-P-tests: New file.
60081         * modules/unictype/category-Pc-tests: New file.
60082         * modules/unictype/category-Pd-tests: New file.
60083         * modules/unictype/category-Pe-tests: New file.
60084         * modules/unictype/category-Pf-tests: New file.
60085         * modules/unictype/category-Pi-tests: New file.
60086         * modules/unictype/category-Po-tests: New file.
60087         * modules/unictype/category-Ps-tests: New file.
60088         * modules/unictype/category-S-tests: New file.
60089         * modules/unictype/category-Sc-tests: New file.
60090         * modules/unictype/category-Sk-tests: New file.
60091         * modules/unictype/category-Sm-tests: New file.
60092         * modules/unictype/category-So-tests: New file.
60093         * modules/unictype/category-Z-tests: New file.
60094         * modules/unictype/category-Zl-tests: New file.
60095         * modules/unictype/category-Zp-tests: New file.
60096         * modules/unictype/category-Zs-tests: New file.
60097         * modules/unictype/category-and-not-tests: New file.
60098         * modules/unictype/category-and-tests: New file.
60099         * modules/unictype/category-byname-tests: New file.
60100         * modules/unictype/category-name-tests: New file.
60101         * modules/unictype/category-none-tests: New file.
60102         * modules/unictype/category-of-tests: New file.
60103         * modules/unictype/category-or-tests: New file.
60104         * modules/unictype/category-test-withtable-tests: New file.
60105         * modules/unictype/combining-class-tests: New file.
60106         * modules/unictype/ctype-alnum-tests: New file.
60107         * modules/unictype/ctype-alpha-tests: New file.
60108         * modules/unictype/ctype-blank-tests: New file.
60109         * modules/unictype/ctype-cntrl-tests: New file.
60110         * modules/unictype/ctype-digit-tests: New file.
60111         * modules/unictype/ctype-graph-tests: New file.
60112         * modules/unictype/ctype-lower-tests: New file.
60113         * modules/unictype/ctype-print-tests: New file.
60114         * modules/unictype/ctype-punct-tests: New file.
60115         * modules/unictype/ctype-space-tests: New file.
60116         * modules/unictype/ctype-upper-tests: New file.
60117         * modules/unictype/ctype-xdigit-tests: New file.
60118         * modules/unictype/decimal-digit-tests: New file.
60119         * modules/unictype/digit-tests: New file.
60120         * modules/unictype/mirror-tests: New file.
60121         * modules/unictype/numeric-tests: New file.
60122         * modules/unictype/property-alphabetic-tests: New file.
60123         * modules/unictype/property-ascii-hex-digit-tests: New file.
60124         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60125         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60126         * modules/unictype/property-bidi-block-separator-tests: New file.
60127         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60128         * modules/unictype/property-bidi-common-separator-tests: New file.
60129         * modules/unictype/property-bidi-control-tests: New file.
60130         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60131         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60132         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60133         * modules/unictype/property-bidi-european-digit-tests: New file.
60134         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60135         * modules/unictype/property-bidi-left-to-right-tests: New file.
60136         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60137         * modules/unictype/property-bidi-other-neutral-tests: New file.
60138         * modules/unictype/property-bidi-pdf-tests: New file.
60139         * modules/unictype/property-bidi-segment-separator-tests: New file.
60140         * modules/unictype/property-bidi-whitespace-tests: New file.
60141         * modules/unictype/property-byname-tests: New file.
60142         * modules/unictype/property-combining-tests: New file.
60143         * modules/unictype/property-composite-tests: New file.
60144         * modules/unictype/property-currency-symbol-tests: New file.
60145         * modules/unictype/property-dash-tests: New file.
60146         * modules/unictype/property-decimal-digit-tests: New file.
60147         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60148         * modules/unictype/property-deprecated-tests: New file.
60149         * modules/unictype/property-diacritic-tests: New file.
60150         * modules/unictype/property-extender-tests: New file.
60151         * modules/unictype/property-format-control-tests: New file.
60152         * modules/unictype/property-grapheme-base-tests: New file.
60153         * modules/unictype/property-grapheme-extend-tests: New file.
60154         * modules/unictype/property-grapheme-link-tests: New file.
60155         * modules/unictype/property-hex-digit-tests: New file.
60156         * modules/unictype/property-hyphen-tests: New file.
60157         * modules/unictype/property-id-continue-tests: New file.
60158         * modules/unictype/property-id-start-tests: New file.
60159         * modules/unictype/property-ideographic-tests: New file.
60160         * modules/unictype/property-ids-binary-operator-tests: New file.
60161         * modules/unictype/property-ids-trinary-operator-tests: New file.
60162         * modules/unictype/property-ignorable-control-tests: New file.
60163         * modules/unictype/property-iso-control-tests: New file.
60164         * modules/unictype/property-join-control-tests: New file.
60165         * modules/unictype/property-left-of-pair-tests: New file.
60166         * modules/unictype/property-line-separator-tests: New file.
60167         * modules/unictype/property-logical-order-exception-tests: New file.
60168         * modules/unictype/property-lowercase-tests: New file.
60169         * modules/unictype/property-math-tests: New file.
60170         * modules/unictype/property-non-break-tests: New file.
60171         * modules/unictype/property-not-a-character-tests: New file.
60172         * modules/unictype/property-numeric-tests: New file.
60173         * modules/unictype/property-other-alphabetic-tests: New file.
60174         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60175         * modules/unictype/property-other-grapheme-extend-tests: New file.
60176         * modules/unictype/property-other-id-continue-tests: New file.
60177         * modules/unictype/property-other-id-start-tests: New file.
60178         * modules/unictype/property-other-lowercase-tests: New file.
60179         * modules/unictype/property-other-math-tests: New file.
60180         * modules/unictype/property-other-uppercase-tests: New file.
60181         * modules/unictype/property-paired-punctuation-tests: New file.
60182         * modules/unictype/property-paragraph-separator-tests: New file.
60183         * modules/unictype/property-pattern-syntax-tests: New file.
60184         * modules/unictype/property-pattern-white-space-tests: New file.
60185         * modules/unictype/property-private-use-tests: New file.
60186         * modules/unictype/property-punctuation-tests: New file.
60187         * modules/unictype/property-quotation-mark-tests: New file.
60188         * modules/unictype/property-radical-tests: New file.
60189         * modules/unictype/property-sentence-terminal-tests: New file.
60190         * modules/unictype/property-soft-dotted-tests: New file.
60191         * modules/unictype/property-space-tests: New file.
60192         * modules/unictype/property-terminal-punctuation-tests: New file.
60193         * modules/unictype/property-test-tests: New file.
60194         * modules/unictype/property-titlecase-tests: New file.
60195         * modules/unictype/property-unassigned-code-value-tests: New file.
60196         * modules/unictype/property-unified-ideograph-tests: New file.
60197         * modules/unictype/property-uppercase-tests: New file.
60198         * modules/unictype/property-variation-selector-tests: New file.
60199         * modules/unictype/property-white-space-tests: New file.
60200         * modules/unictype/property-xid-continue-tests: New file.
60201         * modules/unictype/property-xid-start-tests: New file.
60202         * modules/unictype/property-zero-width-tests: New file.
60203         * modules/unictype/scripts-tests: New file.
60204         * modules/unictype/syntax-c-ident-tests: New file.
60205         * modules/unictype/syntax-c-whitespace-tests: New file.
60206         * modules/unictype/syntax-java-ident-tests: New file.
60207         * modules/unictype/syntax-java-whitespace-tests: New file.
60208         * tests/unictype/test-bidi_byname.c: New file.
60209         * tests/unictype/test-bidi_name.c: New file.
60210         * tests/unictype/test-bidi_of.c: New file.
60211         * tests/unictype/test-bidi_test.c: New file.
60212         * tests/unictype/test-block_list.c: New file.
60213         * tests/unictype/test-block_of.c: New file.
60214         * tests/unictype/test-block_test.c: New file.
60215         * tests/unictype/test-categ_and.c: New file.
60216         * tests/unictype/test-categ_and_not.c: New file.
60217         * tests/unictype/test-categ_byname.c: New file.
60218         * tests/unictype/test-categ_name.c: New file.
60219         * tests/unictype/test-categ_none.c: New file.
60220         * tests/unictype/test-categ_of.c: New file.
60221         * tests/unictype/test-categ_or.c: New file.
60222         * tests/unictype/test-categ_test_withtable.c: New file.
60223         * tests/unictype/test-combining.c: New file.
60224         * tests/unictype/test-decdigit.c: New file.
60225         * tests/unictype/test-digit.c: New file.
60226         * tests/unictype/test-mirror.c: New file.
60227         * tests/unictype/test-numeric.c: New file.
60228         * tests/unictype/test-pr_byname.c: New file.
60229         * tests/unictype/test-pr_test.c: New file.
60230         * tests/unictype/test-predicate-part1.h: New file.
60231         * tests/unictype/test-predicate-part2.h: New file.
60232         * tests/unictype/test-scripts.c: New file.
60233         * tests/unictype/test-sy_c_ident.c: New file.
60234         * tests/unictype/test-sy_java_ident.c: New file.
60235
60236         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60237         for Unicode 5.0.0.
60238         * tests/unictype/test-categ_Cc.c: Likewise.
60239         * tests/unictype/test-categ_Cf.c: Likewise.
60240         * tests/unictype/test-categ_Cn.c: Likewise.
60241         * tests/unictype/test-categ_Co.c: Likewise.
60242         * tests/unictype/test-categ_Cs.c: Likewise.
60243         * tests/unictype/test-categ_L.c: Likewise.
60244         * tests/unictype/test-categ_Ll.c: Likewise.
60245         * tests/unictype/test-categ_Lm.c: Likewise.
60246         * tests/unictype/test-categ_Lo.c: Likewise.
60247         * tests/unictype/test-categ_Lt.c: Likewise.
60248         * tests/unictype/test-categ_Lu.c: Likewise.
60249         * tests/unictype/test-categ_M.c: Likewise.
60250         * tests/unictype/test-categ_Mc.c: Likewise.
60251         * tests/unictype/test-categ_Me.c: Likewise.
60252         * tests/unictype/test-categ_Mn.c: Likewise.
60253         * tests/unictype/test-categ_N.c: Likewise.
60254         * tests/unictype/test-categ_Nd.c: Likewise.
60255         * tests/unictype/test-categ_Nl.c: Likewise.
60256         * tests/unictype/test-categ_No.c: Likewise.
60257         * tests/unictype/test-categ_P.c: Likewise.
60258         * tests/unictype/test-categ_Pc.c: Likewise.
60259         * tests/unictype/test-categ_Pd.c: Likewise.
60260         * tests/unictype/test-categ_Pe.c: Likewise.
60261         * tests/unictype/test-categ_Pf.c: Likewise.
60262         * tests/unictype/test-categ_Pi.c: Likewise.
60263         * tests/unictype/test-categ_Po.c: Likewise.
60264         * tests/unictype/test-categ_Ps.c: Likewise.
60265         * tests/unictype/test-categ_S.c: Likewise.
60266         * tests/unictype/test-categ_Sc.c: Likewise.
60267         * tests/unictype/test-categ_Sk.c: Likewise.
60268         * tests/unictype/test-categ_Sm.c: Likewise.
60269         * tests/unictype/test-categ_So.c: Likewise.
60270         * tests/unictype/test-categ_Z.c: Likewise.
60271         * tests/unictype/test-categ_Zl.c: Likewise.
60272         * tests/unictype/test-categ_Zp.c: Likewise.
60273         * tests/unictype/test-categ_Zs.c: Likewise.
60274         * tests/unictype/test-ctype_alnum.c: Likewise.
60275         * tests/unictype/test-ctype_alpha.c: Likewise.
60276         * tests/unictype/test-ctype_blank.c: Likewise.
60277         * tests/unictype/test-ctype_cntrl.c: Likewise.
60278         * tests/unictype/test-ctype_digit.c: Likewise.
60279         * tests/unictype/test-ctype_graph.c: Likewise.
60280         * tests/unictype/test-ctype_lower.c: Likewise.
60281         * tests/unictype/test-ctype_print.c: Likewise.
60282         * tests/unictype/test-ctype_punct.c: Likewise.
60283         * tests/unictype/test-ctype_space.c: Likewise.
60284         * tests/unictype/test-ctype_upper.c: Likewise.
60285         * tests/unictype/test-ctype_xdigit.c: Likewise.
60286         * tests/unictype/test-decdigit.h: Likewise.
60287         * tests/unictype/test-digit.h: Likewise.
60288         * tests/unictype/test-numeric.h: Likewise.
60289         * tests/unictype/test-pr_alphabetic.c: Likewise.
60290         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
60291         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60292         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60293         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
60294         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60295         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
60296         * tests/unictype/test-pr_bidi_control.c: Likewise.
60297         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
60298         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
60299         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60300         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60301         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60302         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60303         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60304         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60305         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60306         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60307         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60308         * tests/unictype/test-pr_combining.c: Likewise.
60309         * tests/unictype/test-pr_composite.c: Likewise.
60310         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60311         * tests/unictype/test-pr_dash.c: Likewise.
60312         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60313         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60314         * tests/unictype/test-pr_deprecated.c: Likewise.
60315         * tests/unictype/test-pr_diacritic.c: Likewise.
60316         * tests/unictype/test-pr_extender.c: Likewise.
60317         * tests/unictype/test-pr_format_control.c: Likewise.
60318         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60319         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60320         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60321         * tests/unictype/test-pr_hex_digit.c: Likewise.
60322         * tests/unictype/test-pr_hyphen.c: Likewise.
60323         * tests/unictype/test-pr_id_continue.c: Likewise.
60324         * tests/unictype/test-pr_id_start.c: Likewise.
60325         * tests/unictype/test-pr_ideographic.c: Likewise.
60326         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60327         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60328         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60329         * tests/unictype/test-pr_iso_control.c: Likewise.
60330         * tests/unictype/test-pr_join_control.c: Likewise.
60331         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60332         * tests/unictype/test-pr_line_separator.c: Likewise.
60333         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60334         * tests/unictype/test-pr_lowercase.c: Likewise.
60335         * tests/unictype/test-pr_math.c: Likewise.
60336         * tests/unictype/test-pr_non_break.c: Likewise.
60337         * tests/unictype/test-pr_not_a_character.c: Likewise.
60338         * tests/unictype/test-pr_numeric.c: Likewise.
60339         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60340         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60341         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60342         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60343         * tests/unictype/test-pr_other_id_start.c: Likewise.
60344         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60345         * tests/unictype/test-pr_other_math.c: Likewise.
60346         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60347         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60348         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60349         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60350         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60351         * tests/unictype/test-pr_private_use.c: Likewise.
60352         * tests/unictype/test-pr_punctuation.c: Likewise.
60353         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60354         * tests/unictype/test-pr_radical.c: Likewise.
60355         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60356         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60357         * tests/unictype/test-pr_space.c: Likewise.
60358         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60359         * tests/unictype/test-pr_titlecase.c: Likewise.
60360         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60361         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60362         * tests/unictype/test-pr_uppercase.c: Likewise.
60363         * tests/unictype/test-pr_variation_selector.c: Likewise.
60364         * tests/unictype/test-pr_white_space.c: Likewise.
60365         * tests/unictype/test-pr_xid_continue.c: Likewise.
60366         * tests/unictype/test-pr_xid_start.c: Likewise.
60367         * tests/unictype/test-pr_zero_width.c: Likewise.
60368         * tests/unictype/test-sy_c_whitespace.c: Likewise.
60369         * tests/unictype/test-sy_java_whitespace.c: Likewise.
60370
60371 2007-11-12  Bruno Haible  <bruno@clisp.org>
60372
60373         Unicode character classification functions.
60374         * lib/unictype.h: New file.
60375         * modules/unictype/base: New file.
60376         * modules/unictype/category-L: New file.
60377         * modules/unictype/category-Lu: New file.
60378         * modules/unictype/category-Ll: New file.
60379         * modules/unictype/category-Lt: New file.
60380         * modules/unictype/category-Lm: New file.
60381         * modules/unictype/category-Lo: New file.
60382         * modules/unictype/category-M: New file.
60383         * modules/unictype/category-Mn: New file.
60384         * modules/unictype/category-Mc: New file.
60385         * modules/unictype/category-Me: New file.
60386         * modules/unictype/category-N: New file.
60387         * modules/unictype/category-Nd: New file.
60388         * modules/unictype/category-Nl: New file.
60389         * modules/unictype/category-No: New file.
60390         * modules/unictype/category-P: New file.
60391         * modules/unictype/category-Pc: New file.
60392         * modules/unictype/category-Pd: New file.
60393         * modules/unictype/category-Ps: New file.
60394         * modules/unictype/category-Pe: New file.
60395         * modules/unictype/category-Pi: New file.
60396         * modules/unictype/category-Pf: New file.
60397         * modules/unictype/category-Po: New file.
60398         * modules/unictype/category-S: New file.
60399         * modules/unictype/category-Sm: New file.
60400         * modules/unictype/category-Sc: New file.
60401         * modules/unictype/category-Sk: New file.
60402         * modules/unictype/category-So: New file.
60403         * modules/unictype/category-Z: New file.
60404         * modules/unictype/category-Zs: New file.
60405         * modules/unictype/category-Zl: New file.
60406         * modules/unictype/category-Zp: New file.
60407         * modules/unictype/category-C: New file.
60408         * modules/unictype/category-Cc: New file.
60409         * modules/unictype/category-Cf: New file.
60410         * modules/unictype/category-Cs: New file.
60411         * modules/unictype/category-Co: New file.
60412         * modules/unictype/category-Cn: New file.
60413         * modules/unictype/category-or: New file.
60414         * modules/unictype/category-of: New file.
60415         * modules/unictype/category-test: New file.
60416         * modules/unictype/category-test-withtable: New file.
60417         * modules/unictype/category-byname: New file.
60418         * modules/unictype/category-none: New file.
60419         * modules/unictype/category-and: New file.
60420         * modules/unictype/category-and-not: New file.
60421         * modules/unictype/category-name: New file.
60422         * modules/unictype/combining-class: New file.
60423         * modules/unictype/category-all: New file.
60424         * modules/unictype/bidicategory-all: New file.
60425         * modules/unictype/bidicategory-byname: New file.
60426         * modules/unictype/bidicategory-name: New file.
60427         * modules/unictype/bidicategory-of: New file.
60428         * modules/unictype/bidicategory-test: New file.
60429         * modules/unictype/decimal-digit: New file.
60430         * modules/unictype/digit: New file.
60431         * modules/unictype/numeric: New file.
60432         * modules/unictype/mirror: New file.
60433         * modules/unictype/property-white-space: New file.
60434         * modules/unictype/property-alphabetic: New file.
60435         * modules/unictype/property-other-alphabetic: New file.
60436         * modules/unictype/property-not-a-character: New file.
60437         * modules/unictype/property-default-ignorable-code-point: New file.
60438         * modules/unictype/property-other-default-ignorable-code-point: New
60439         file.
60440         * modules/unictype/property-deprecated: New file.
60441         * modules/unictype/property-logical-order-exception: New file.
60442         * modules/unictype/property-variation-selector: New file.
60443         * modules/unictype/property-private-use: New file.
60444         * modules/unictype/property-unassigned-code-value: New file.
60445         * modules/unictype/property-uppercase: New file.
60446         * modules/unictype/property-other-uppercase: New file.
60447         * modules/unictype/property-lowercase: New file.
60448         * modules/unictype/property-other-lowercase: New file.
60449         * modules/unictype/property-titlecase: New file.
60450         * modules/unictype/property-soft-dotted: New file.
60451         * modules/unictype/property-id-start: New file.
60452         * modules/unictype/property-other-id-start: New file.
60453         * modules/unictype/property-id-continue: New file.
60454         * modules/unictype/property-other-id-continue: New file.
60455         * modules/unictype/property-xid-start: New file.
60456         * modules/unictype/property-xid-continue: New file.
60457         * modules/unictype/property-pattern-white-space: New file.
60458         * modules/unictype/property-pattern-syntax: New file.
60459         * modules/unictype/property-join-control: New file.
60460         * modules/unictype/property-grapheme-base: New file.
60461         * modules/unictype/property-grapheme-extend: New file.
60462         * modules/unictype/property-other-grapheme-extend: New file.
60463         * modules/unictype/property-grapheme-link: New file.
60464         * modules/unictype/property-bidi-control: New file.
60465         * modules/unictype/property-bidi-left-to-right: New file.
60466         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60467         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60468         * modules/unictype/property-bidi-european-digit: New file.
60469         * modules/unictype/property-bidi-eur-num-separator: New file.
60470         * modules/unictype/property-bidi-eur-num-terminator: New file.
60471         * modules/unictype/property-bidi-arabic-digit: New file.
60472         * modules/unictype/property-bidi-common-separator: New file.
60473         * modules/unictype/property-bidi-block-separator: New file.
60474         * modules/unictype/property-bidi-segment-separator: New file.
60475         * modules/unictype/property-bidi-whitespace: New file.
60476         * modules/unictype/property-bidi-non-spacing-mark: New file.
60477         * modules/unictype/property-bidi-boundary-neutral: New file.
60478         * modules/unictype/property-bidi-pdf: New file.
60479         * modules/unictype/property-bidi-embedding-or-override: New file.
60480         * modules/unictype/property-bidi-other-neutral: New file.
60481         * modules/unictype/property-hex-digit: New file.
60482         * modules/unictype/property-ascii-hex-digit: New file.
60483         * modules/unictype/property-ideographic: New file.
60484         * modules/unictype/property-unified-ideograph: New file.
60485         * modules/unictype/property-radical: New file.
60486         * modules/unictype/property-ids-binary-operator: New file.
60487         * modules/unictype/property-ids-trinary-operator: New file.
60488         * modules/unictype/property-zero-width: New file.
60489         * modules/unictype/property-space: New file.
60490         * modules/unictype/property-non-break: New file.
60491         * modules/unictype/property-iso-control: New file.
60492         * modules/unictype/property-format-control: New file.
60493         * modules/unictype/property-dash: New file.
60494         * modules/unictype/property-hyphen: New file.
60495         * modules/unictype/property-punctuation: New file.
60496         * modules/unictype/property-line-separator: New file.
60497         * modules/unictype/property-paragraph-separator: New file.
60498         * modules/unictype/property-quotation-mark: New file.
60499         * modules/unictype/property-sentence-terminal: New file.
60500         * modules/unictype/property-terminal-punctuation: New file.
60501         * modules/unictype/property-currency-symbol: New file.
60502         * modules/unictype/property-math: New file.
60503         * modules/unictype/property-other-math: New file.
60504         * modules/unictype/property-paired-punctuation: New file.
60505         * modules/unictype/property-left-of-pair: New file.
60506         * modules/unictype/property-combining: New file.
60507         * modules/unictype/property-composite: New file.
60508         * modules/unictype/property-decimal-digit: New file.
60509         * modules/unictype/property-numeric: New file.
60510         * modules/unictype/property-diacritic: New file.
60511         * modules/unictype/property-extender: New file.
60512         * modules/unictype/property-ignorable-control: New file.
60513         * modules/unictype/property-test: New file.
60514         * modules/unictype/property-byname: New file.
60515         * modules/unictype/property-all: New file.
60516         * modules/unictype/scripts: New file.
60517         * modules/unictype/scripts-all: New file.
60518         * modules/unictype/block-of: New file.
60519         * modules/unictype/block-test: New file.
60520         * modules/unictype/block-list: New file.
60521         * modules/unictype/block-all: New file.
60522         * modules/unictype/syntax-c-whitespace: New file.
60523         * modules/unictype/syntax-java-whitespace: New file.
60524         * modules/unictype/syntax-c-ident: New file.
60525         * modules/unictype/syntax-java-ident: New file.
60526         * modules/unictype/ctype-alnum: New file.
60527         * modules/unictype/ctype-alpha: New file.
60528         * modules/unictype/ctype-cntrl: New file.
60529         * modules/unictype/ctype-digit: New file.
60530         * modules/unictype/ctype-graph: New file.
60531         * modules/unictype/ctype-lower: New file.
60532         * modules/unictype/ctype-print: New file.
60533         * modules/unictype/ctype-punct: New file.
60534         * modules/unictype/ctype-space: New file.
60535         * modules/unictype/ctype-upper: New file.
60536         * modules/unictype/ctype-xdigit: New file.
60537         * modules/unictype/ctype-blank: New file.
60538         * lib/unictype/bidi_byname.c: New file.
60539         * lib/unictype/bidi_name.c: New file.
60540         * lib/unictype/bidi_of.c: New file.
60541         * lib/unictype/bidi_test.c: New file.
60542         * lib/unictype/bitmap.h: New file.
60543         * lib/unictype/block_test.c: New file.
60544         * lib/unictype/blocks.c: New file.
60545         * lib/unictype/categ_C.c: New file.
60546         * lib/unictype/categ_Cc.c: New file.
60547         * lib/unictype/categ_Cf.c: New file.
60548         * lib/unictype/categ_Cn.c: New file.
60549         * lib/unictype/categ_Co.c: New file.
60550         * lib/unictype/categ_Cs.c: New file.
60551         * lib/unictype/categ_L.c: New file.
60552         * lib/unictype/categ_Ll.c: New file.
60553         * lib/unictype/categ_Lm.c: New file.
60554         * lib/unictype/categ_Lo.c: New file.
60555         * lib/unictype/categ_Lt.c: New file.
60556         * lib/unictype/categ_Lu.c: New file.
60557         * lib/unictype/categ_M.c: New file.
60558         * lib/unictype/categ_Mc.c: New file.
60559         * lib/unictype/categ_Me.c: New file.
60560         * lib/unictype/categ_Mn.c: New file.
60561         * lib/unictype/categ_N.c: New file.
60562         * lib/unictype/categ_Nd.c: New file.
60563         * lib/unictype/categ_Nl.c: New file.
60564         * lib/unictype/categ_No.c: New file.
60565         * lib/unictype/categ_P.c: New file.
60566         * lib/unictype/categ_Pc.c: New file.
60567         * lib/unictype/categ_Pd.c: New file.
60568         * lib/unictype/categ_Pe.c: New file.
60569         * lib/unictype/categ_Pf.c: New file.
60570         * lib/unictype/categ_Pi.c: New file.
60571         * lib/unictype/categ_Po.c: New file.
60572         * lib/unictype/categ_Ps.c: New file.
60573         * lib/unictype/categ_S.c: New file.
60574         * lib/unictype/categ_Sc.c: New file.
60575         * lib/unictype/categ_Sk.c: New file.
60576         * lib/unictype/categ_Sm.c: New file.
60577         * lib/unictype/categ_So.c: New file.
60578         * lib/unictype/categ_Z.c: New file.
60579         * lib/unictype/categ_Zl.c: New file.
60580         * lib/unictype/categ_Zp.c: New file.
60581         * lib/unictype/categ_Zs.c: New file.
60582         * lib/unictype/categ_and.c: New file.
60583         * lib/unictype/categ_and_not.c: New file.
60584         * lib/unictype/categ_byname.c: New file.
60585         * lib/unictype/categ_name.c: New file.
60586         * lib/unictype/categ_none.c: New file.
60587         * lib/unictype/categ_of.c: New file.
60588         * lib/unictype/categ_or.c: New file.
60589         * lib/unictype/categ_test.c: New file.
60590         * lib/unictype/combining.c: New file.
60591         * lib/unictype/ctype_alnum.c: New file.
60592         * lib/unictype/ctype_alpha.c: New file.
60593         * lib/unictype/ctype_blank.c: New file.
60594         * lib/unictype/ctype_cntrl.c: New file.
60595         * lib/unictype/ctype_digit.c: New file.
60596         * lib/unictype/ctype_graph.c: New file.
60597         * lib/unictype/ctype_lower.c: New file.
60598         * lib/unictype/ctype_print.c: New file.
60599         * lib/unictype/ctype_punct.c: New file.
60600         * lib/unictype/ctype_space.c: New file.
60601         * lib/unictype/ctype_upper.c: New file.
60602         * lib/unictype/ctype_xdigit.c: New file.
60603         * lib/unictype/decdigit.c: New file.
60604         * lib/unictype/digit.c: New file.
60605         * lib/unictype/identsyntaxmap.h: New file.
60606         * lib/unictype/mirror.c: New file.
60607         * lib/unictype/numeric.c: New file.
60608         * lib/unictype/pr_alphabetic.c: New file.
60609         * lib/unictype/pr_ascii_hex_digit.c: New file.
60610         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60611         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60612         * lib/unictype/pr_bidi_block_separator.c: New file.
60613         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60614         * lib/unictype/pr_bidi_common_separator.c: New file.
60615         * lib/unictype/pr_bidi_control.c: New file.
60616         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60617         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60618         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60619         * lib/unictype/pr_bidi_european_digit.c: New file.
60620         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60621         * lib/unictype/pr_bidi_left_to_right.c: New file.
60622         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60623         * lib/unictype/pr_bidi_other_neutral.c: New file.
60624         * lib/unictype/pr_bidi_pdf.c: New file.
60625         * lib/unictype/pr_bidi_segment_separator.c: New file.
60626         * lib/unictype/pr_bidi_whitespace.c: New file.
60627         * lib/unictype/pr_byname.c: New file.
60628         * lib/unictype/pr_byname.gperf: New file.
60629         * lib/unictype/pr_combining.c: New file.
60630         * lib/unictype/pr_composite.c: New file.
60631         * lib/unictype/pr_currency_symbol.c: New file.
60632         * lib/unictype/pr_dash.c: New file.
60633         * lib/unictype/pr_decimal_digit.c: New file.
60634         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60635         * lib/unictype/pr_deprecated.c: New file.
60636         * lib/unictype/pr_diacritic.c: New file.
60637         * lib/unictype/pr_extender.c: New file.
60638         * lib/unictype/pr_format_control.c: New file.
60639         * lib/unictype/pr_grapheme_base.c: New file.
60640         * lib/unictype/pr_grapheme_extend.c: New file.
60641         * lib/unictype/pr_grapheme_link.c: New file.
60642         * lib/unictype/pr_hex_digit.c: New file.
60643         * lib/unictype/pr_hyphen.c: New file.
60644         * lib/unictype/pr_id_continue.c: New file.
60645         * lib/unictype/pr_id_start.c: New file.
60646         * lib/unictype/pr_ideographic.c: New file.
60647         * lib/unictype/pr_ids_binary_operator.c: New file.
60648         * lib/unictype/pr_ids_trinary_operator.c: New file.
60649         * lib/unictype/pr_ignorable_control.c: New file.
60650         * lib/unictype/pr_iso_control.c: New file.
60651         * lib/unictype/pr_join_control.c: New file.
60652         * lib/unictype/pr_left_of_pair.c: New file.
60653         * lib/unictype/pr_line_separator.c: New file.
60654         * lib/unictype/pr_logical_order_exception.c: New file.
60655         * lib/unictype/pr_lowercase.c: New file.
60656         * lib/unictype/pr_math.c: New file.
60657         * lib/unictype/pr_non_break.c: New file.
60658         * lib/unictype/pr_not_a_character.c: New file.
60659         * lib/unictype/pr_numeric.c: New file.
60660         * lib/unictype/pr_other_alphabetic.c: New file.
60661         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60662         * lib/unictype/pr_other_grapheme_extend.c: New file.
60663         * lib/unictype/pr_other_id_continue.c: New file.
60664         * lib/unictype/pr_other_id_start.c: New file.
60665         * lib/unictype/pr_other_lowercase.c: New file.
60666         * lib/unictype/pr_other_math.c: New file.
60667         * lib/unictype/pr_other_uppercase.c: New file.
60668         * lib/unictype/pr_paired_punctuation.c: New file.
60669         * lib/unictype/pr_paragraph_separator.c: New file.
60670         * lib/unictype/pr_pattern_syntax.c: New file.
60671         * lib/unictype/pr_pattern_white_space.c: New file.
60672         * lib/unictype/pr_private_use.c: New file.
60673         * lib/unictype/pr_punctuation.c: New file.
60674         * lib/unictype/pr_quotation_mark.c: New file.
60675         * lib/unictype/pr_radical.c: New file.
60676         * lib/unictype/pr_sentence_terminal.c: New file.
60677         * lib/unictype/pr_soft_dotted.c: New file.
60678         * lib/unictype/pr_space.c: New file.
60679         * lib/unictype/pr_terminal_punctuation.c: New file.
60680         * lib/unictype/pr_test.c: New file.
60681         * lib/unictype/pr_titlecase.c: New file.
60682         * lib/unictype/pr_unassigned_code_value.c: New file.
60683         * lib/unictype/pr_unified_ideograph.c: New file.
60684         * lib/unictype/pr_uppercase.c: New file.
60685         * lib/unictype/pr_variation_selector.c: New file.
60686         * lib/unictype/pr_white_space.c: New file.
60687         * lib/unictype/pr_xid_continue.c: New file.
60688         * lib/unictype/pr_xid_start.c: New file.
60689         * lib/unictype/pr_zero_width.c: New file.
60690         * lib/unictype/scripts.c: New file.
60691         * lib/unictype/sy_c_ident.c: New file.
60692         * lib/unictype/sy_c_whitespace.c: New file.
60693         * lib/unictype/sy_java_ident.c: New file.
60694         * lib/unictype/sy_java_whitespace.c: New file.
60695
60696         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60697         Unicode 5.0.0.
60698         * lib/unictype/blocks.h: Likewise.
60699         * lib/unictype/categ_C.h: Likewise.
60700         * lib/unictype/categ_Cc.h: Likewise.
60701         * lib/unictype/categ_Cf.h: Likewise.
60702         * lib/unictype/categ_Cn.h: Likewise.
60703         * lib/unictype/categ_Co.h: Likewise.
60704         * lib/unictype/categ_Cs.h: Likewise.
60705         * lib/unictype/categ_L.h: Likewise.
60706         * lib/unictype/categ_Ll.h: Likewise.
60707         * lib/unictype/categ_Lm.h: Likewise.
60708         * lib/unictype/categ_Lo.h: Likewise.
60709         * lib/unictype/categ_Lt.h: Likewise.
60710         * lib/unictype/categ_Lu.h: Likewise.
60711         * lib/unictype/categ_M.h: Likewise.
60712         * lib/unictype/categ_Mc.h: Likewise.
60713         * lib/unictype/categ_Me.h: Likewise.
60714         * lib/unictype/categ_Mn.h: Likewise.
60715         * lib/unictype/categ_N.h: Likewise.
60716         * lib/unictype/categ_Nd.h: Likewise.
60717         * lib/unictype/categ_Nl.h: Likewise.
60718         * lib/unictype/categ_No.h: Likewise.
60719         * lib/unictype/categ_P.h: Likewise.
60720         * lib/unictype/categ_Pc.h: Likewise.
60721         * lib/unictype/categ_Pd.h: Likewise.
60722         * lib/unictype/categ_Pe.h: Likewise.
60723         * lib/unictype/categ_Pf.h: Likewise.
60724         * lib/unictype/categ_Pi.h: Likewise.
60725         * lib/unictype/categ_Po.h: Likewise.
60726         * lib/unictype/categ_Ps.h: Likewise.
60727         * lib/unictype/categ_S.h: Likewise.
60728         * lib/unictype/categ_Sc.h: Likewise.
60729         * lib/unictype/categ_Sk.h: Likewise.
60730         * lib/unictype/categ_Sm.h: Likewise.
60731         * lib/unictype/categ_So.h: Likewise.
60732         * lib/unictype/categ_Z.h: Likewise.
60733         * lib/unictype/categ_Zl.h: Likewise.
60734         * lib/unictype/categ_Zp.h: Likewise.
60735         * lib/unictype/categ_Zs.h: Likewise.
60736         * lib/unictype/categ_of.h: Likewise.
60737         * lib/unictype/combining.h: Likewise.
60738         * lib/unictype/ctype_alnum.h: Likewise.
60739         * lib/unictype/ctype_alpha.h: Likewise.
60740         * lib/unictype/ctype_blank.h: Likewise.
60741         * lib/unictype/ctype_cntrl.h: Likewise.
60742         * lib/unictype/ctype_digit.h: Likewise.
60743         * lib/unictype/ctype_graph.h: Likewise.
60744         * lib/unictype/ctype_lower.h: Likewise.
60745         * lib/unictype/ctype_print.h: Likewise.
60746         * lib/unictype/ctype_punct.h: Likewise.
60747         * lib/unictype/ctype_space.h: Likewise.
60748         * lib/unictype/ctype_upper.h: Likewise.
60749         * lib/unictype/ctype_xdigit.h: Likewise.
60750         * lib/unictype/decdigit.h: Likewise.
60751         * lib/unictype/digit.h: Likewise.
60752         * lib/unictype/mirror.h: Likewise.
60753         * lib/unictype/numeric.h: Likewise.
60754         * lib/unictype/pr_alphabetic.h: Likewise.
60755         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60756         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60757         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60758         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60759         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60760         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60761         * lib/unictype/pr_bidi_control.h: Likewise.
60762         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60763         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60764         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60765         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60766         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60767         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60768         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60769         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60770         * lib/unictype/pr_bidi_pdf.h: Likewise.
60771         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60772         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60773         * lib/unictype/pr_combining.h: Likewise.
60774         * lib/unictype/pr_composite.h: Likewise.
60775         * lib/unictype/pr_currency_symbol.h: Likewise.
60776         * lib/unictype/pr_dash.h: Likewise.
60777         * lib/unictype/pr_decimal_digit.h: Likewise.
60778         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60779         * lib/unictype/pr_deprecated.h: Likewise.
60780         * lib/unictype/pr_diacritic.h: Likewise.
60781         * lib/unictype/pr_extender.h: Likewise.
60782         * lib/unictype/pr_format_control.h: Likewise.
60783         * lib/unictype/pr_grapheme_base.h: Likewise.
60784         * lib/unictype/pr_grapheme_extend.h: Likewise.
60785         * lib/unictype/pr_grapheme_link.h: Likewise.
60786         * lib/unictype/pr_hex_digit.h: Likewise.
60787         * lib/unictype/pr_hyphen.h: Likewise.
60788         * lib/unictype/pr_id_continue.h: Likewise.
60789         * lib/unictype/pr_id_start.h: Likewise.
60790         * lib/unictype/pr_ideographic.h: Likewise.
60791         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60792         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60793         * lib/unictype/pr_ignorable_control.h: Likewise.
60794         * lib/unictype/pr_iso_control.h: Likewise.
60795         * lib/unictype/pr_join_control.h: Likewise.
60796         * lib/unictype/pr_left_of_pair.h: Likewise.
60797         * lib/unictype/pr_line_separator.h: Likewise.
60798         * lib/unictype/pr_logical_order_exception.h: Likewise.
60799         * lib/unictype/pr_lowercase.h: Likewise.
60800         * lib/unictype/pr_math.h: Likewise.
60801         * lib/unictype/pr_non_break.h: Likewise.
60802         * lib/unictype/pr_not_a_character.h: Likewise.
60803         * lib/unictype/pr_numeric.h: Likewise.
60804         * lib/unictype/pr_other_alphabetic.h: Likewise.
60805         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60806         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60807         * lib/unictype/pr_other_id_continue.h: Likewise.
60808         * lib/unictype/pr_other_id_start.h: Likewise.
60809         * lib/unictype/pr_other_lowercase.h: Likewise.
60810         * lib/unictype/pr_other_math.h: Likewise.
60811         * lib/unictype/pr_other_uppercase.h: Likewise.
60812         * lib/unictype/pr_paired_punctuation.h: Likewise.
60813         * lib/unictype/pr_paragraph_separator.h: Likewise.
60814         * lib/unictype/pr_pattern_syntax.h: Likewise.
60815         * lib/unictype/pr_pattern_white_space.h: Likewise.
60816         * lib/unictype/pr_private_use.h: Likewise.
60817         * lib/unictype/pr_punctuation.h: Likewise.
60818         * lib/unictype/pr_quotation_mark.h: Likewise.
60819         * lib/unictype/pr_radical.h: Likewise.
60820         * lib/unictype/pr_sentence_terminal.h: Likewise.
60821         * lib/unictype/pr_soft_dotted.h: Likewise.
60822         * lib/unictype/pr_space.h: Likewise.
60823         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60824         * lib/unictype/pr_titlecase.h: Likewise.
60825         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60826         * lib/unictype/pr_unified_ideograph.h: Likewise.
60827         * lib/unictype/pr_uppercase.h: Likewise.
60828         * lib/unictype/pr_variation_selector.h: Likewise.
60829         * lib/unictype/pr_white_space.h: Likewise.
60830         * lib/unictype/pr_xid_continue.h: Likewise.
60831         * lib/unictype/pr_xid_start.h: Likewise.
60832         * lib/unictype/pr_zero_width.h: Likewise.
60833         * lib/unictype/scripts.h: Likewise.
60834         * lib/unictype/scripts_byname.gperf: Likewise.
60835         * lib/unictype/sy_c_ident.h: Likewise.
60836         * lib/unictype/sy_c_whitespace.h: Likewise.
60837         * lib/unictype/sy_java_ident.h: Likewise.
60838         * lib/unictype/sy_java_whitespace.h: Likewise.
60839
60840         * lib/unictype/Makefile: New file.
60841         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60842         glibc.
60843         * lib/unictype/3level.h: New file, copied from glibc.
60844         * lib/unictype/3levelbit.h: New file.
60845
60846 2007-11-11  Bruno Haible  <bruno@clisp.org>
60847
60848         * modules/gperf: New file.
60849         * modules/iconv_open (Depends-on): Add it.
60850         (Makefile.am): Remove the GPERF definition.
60851
60852 2007-11-11  Bruno Haible  <bruno@clisp.org>
60853
60854         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60855         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60856
60857 2007-11-11  Bruno Haible  <bruno@clisp.org>
60858
60859         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60860         (usage): Remove function.
60861
60862 2007-11-11  Bruno Haible  <bruno@clisp.org>
60863
60864         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60865         gl_FUNC_CEILF_LIBS.
60866         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60867         gl_FUNC_CEIL_LIBS.
60868         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60869         gl_FUNC_CEILL_LIBS.
60870         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60871         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60872         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60873
60874 2007-11-11  Bruno Haible  <bruno@clisp.org>
60875
60876         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60877         roundf were declared but do not exist on functions.
60878         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60879         roundl were declared but do not exist on functions.
60880         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60881         HAVE_FLOORL_AND_CEILL, respectively.
60882         Needed for Sun C on Solaris 10.
60883
60884 2007-11-11  Bruno Haible  <bruno@clisp.org>
60885
60886         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60887         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60888         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60889         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60890         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60891         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60892         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60893         HAVE_DECL_ROUNDF.
60894         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60895         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60897         of HAVE_DECL_ROUND*.
60898         * modules/math (Makefile.am): Update.
60899
60900 2007-11-10  Bruno Haible  <bruno@clisp.org>
60901
60902         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60903         ptrdiff_t as m4/intl.m4.
60904
60905 2007-11-10  Jim Meyering  <meyering@redhat.com>
60906
60907         Avoid link failure for the argmatch test.
60908         * tests/test-argmatch.c (usage): Define function to avoid a link
60909         failure: argmatch_die requires a usage function.
60910
60911 2007-11-09  Bruno Haible  <bruno@clisp.org>
60912
60913         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60914         * doc/functions/vsnprintf.texi: Likewise.
60915         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60916         with a size argument < 2.
60917
60918 2007-11-09  Bruno Haible  <bruno@clisp.org>
60919
60920         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60921         buffer. Fixes an inefficiency introduced on 2007-11-03.
60922
60923 2007-11-09  Bruno Haible  <bruno@clisp.org>
60924
60925         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60926         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60927
60928 2007-11-08  Jim Meyering  <meyering@redhat.com>
60929
60930         Change cache variable name prefix "jm_" to "gl_" everywhere.
60931         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60932         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60933         * m4/uptime.m4: s/gl_/jm_/
60934
60935 2007-11-07  Bruno Haible  <bruno@clisp.org>
60936
60937         Update to GNU gettext 0.17.
60938         * m4/intl.m4: Update to GNU gettext 0.17.
60939         * m4/po.m4: Likewise.
60940         * modules/gettext (Files): Remove m4/ulonglong.m4.
60941         (configure.ac): Require gettext infrastructure from version 0.17.
60942
60943 2007-11-06  Bruno Haible  <bruno@clisp.org>
60944
60945         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60946         symbolic values are not defined in a public header.
60947         * lib/freadable.c (freadable) [QNX]: Likewise.
60948         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60949         * lib/freading.c (freading) [QNX]: Likewise.
60950         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60951         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60952         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60953         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60954         Reported by Alain Magloire.
60955
60956         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60957
60958 2007-11-05  Bruno Haible  <bruno@clisp.org>
60959
60960         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60961         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60962         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60963         Reported by Eric Blake.
60964
60965 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60966             Bruno Haible  <bruno@clisp.org>
60967
60968         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60969         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60970         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60971         (malloc): Undefine also before including <stdlib.h>.
60972         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60973         Needed on OSF/1 4.0.
60974
60975 2007-11-05  Jim Meyering  <meyering@redhat.com>
60976
60977         git-version-gen: sync from coreutils.
60978         * build-aux/git-version-gen: Add comments.
60979         Change the first '-' to '.' in the snapshot version string,
60980         e.g., 6.9-377-08144 -> 6.9.377-08144
60981         Remove first parameter.
60982         Don't declare a version "-dirty" merely because a time
60983         stamp has changed.
60984
60985 2007-11-04  Bruno Haible  <bruno@clisp.org>
60986
60987         * lib/lock.h: Protect all macro definitions containing an 'if'
60988         statement through a "do { ... } while (0)".
60989         * lib/tls.h: Likewise.
60990
60991 2007-11-04  Bruno Haible  <bruno@clisp.org>
60992
60993         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60994
60995 2007-11-04  Bruno Haible  <bruno@clisp.org>
60996
60997         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60998         * modules/fprintf-posix (Depends-on): Add nocrash.
60999         * modules/snprintf-posix (Depends-on): Likewise.
61000         * modules/sprintf-posix (Depends-on): Likewise.
61001         * modules/vasnprintf-posix (Depends-on): Likewise.
61002         * modules/vasprintf-posix (Depends-on): Likewise.
61003         * modules/vfprintf-posix (Depends-on): Likewise.
61004         * modules/vsnprintf-posix (Depends-on): Likewise.
61005         * modules/vsprintf-posix (Depends-on): Likewise.
61006         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61007         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61008         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61009         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61010         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61011         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61012         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61013
61014 2007-11-04  Bruno Haible  <bruno@clisp.org>
61015
61016         * modules/nocrash: New file.
61017         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
61018         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
61019
61020 2007-11-04  Bruno Haible  <bruno@clisp.org>
61021
61022         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
61023         precision handling.
61024         * tests/test-vasprintf-posix.c (test_function): Likewise.
61025         * tests/test-snprintf-posix.h (test_function): Likewise.
61026         * tests/test-sprintf-posix.h (test_function): Likewise.
61027
61028         Fix *printf behaviour for large precisions on mingw and BeOS.
61029         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
61030         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
61031         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
61032         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61033         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61034         gl_PRINTF_PRECISION and test its result. Invoke
61035         gl_PREREQ_VASNPRINTF_PRECISION.
61036         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61037         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61038         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61039         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61040         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61041         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61042         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61043         * doc/functions/fprintf.texi: Update.
61044         * doc/functions/printf.texi: Update.
61045         * doc/functions/snprintf.texi: Update.
61046         * doc/functions/sprintf.texi: Update.
61047         * doc/functions/vfprintf.texi: Update.
61048         * doc/functions/vprintf.texi: Update.
61049         * doc/functions/vsnprintf.texi: Update.
61050         * doc/functions/vsprintf.texi: Update.
61051
61052 2007-11-04  Bruno Haible  <bruno@clisp.org>
61053
61054         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61055
61056 2007-11-04  Bruno Haible  <bruno@clisp.org>
61057
61058         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61059         Reported by Sylvain Beucler <beuc@gnu.org>.
61060
61061 2007-11-03  Bruno Haible  <bruno@clisp.org>
61062
61063         * tests/test-fprintf-posix2.sh: New file.
61064         * tests/test-fprintf-posix2.c: New file.
61065         * modules/fprintf-posix-tests (Files): Add them.
61066         (TESTS): Add test-fprintf-posix2.sh.
61067         (configure.ac): Check for getrlimit and setrlimit.
61068         (check_PROGRAMS): Add test-fprintf-posix2.
61069
61070         * tests/test-printf-posix2.sh: New file.
61071         * tests/test-printf-posix2.c: New file.
61072         * modules/printf-posix-tests (Files): Add them.
61073         (TESTS): Add test-printf-posix2.sh.
61074         (configure.ac): Check for getrlimit and setrlimit.
61075         (check_PROGRAMS): Add test-printf-posix2.
61076
61077         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61078         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61079         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61080         (decode_double): New function, copied from decode_long_double.
61081         (scale10_round_decimal_decoded): New function, extracted from
61082         scale10_round_decimal_long_double.
61083         (scale10_round_decimal_long_double): Use it.
61084         (scale10_round_decimal_double): New function.
61085         (floorlog10): New function.
61086         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61087         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61088         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61089         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61090         gl_PRINTF_ENOMEM and test its result. Invoke
61091         gl_PREREQ_VASNPRINTF_ENOMEM.
61092         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61093         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61094         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61095         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61096         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61097         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61098         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61099         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61100         * modules/snprintf-posix (Depends-on): Likewise.
61101         * modules/sprintf-posix (Depends-on): Likewise.
61102         * modules/vasnprintf-posix (Depends-on): Likewise.
61103         * modules/vasprintf-posix (Depends-on): Likewise.
61104         * modules/vfprintf-posix (Depends-on): Likewise.
61105         * modules/vsnprintf-posix (Depends-on): Likewise.
61106         * modules/vsprintf-posix (Depends-on): Likewise.
61107         * doc/functions/fprintf.texi: Update.
61108         * doc/functions/printf.texi: Update.
61109         * doc/functions/snprintf.texi: Update.
61110         * doc/functions/sprintf.texi: Update.
61111         * doc/functions/vfprintf.texi: Update.
61112         * doc/functions/vprintf.texi: Update.
61113         * doc/functions/vsnprintf.texi: Update.
61114         * doc/functions/vsprintf.texi: Update.
61115
61116 2007-11-03  Bruno Haible  <bruno@clisp.org>
61117
61118         * modules/frexp-nolibm-tests: New file.
61119
61120         * modules/frexp-nolibm: New file.
61121         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61122
61123 2007-11-03  Bruno Haible  <bruno@clisp.org>
61124
61125         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61126         value is C99 compliant.
61127         Needed for OSF/1 5.1.
61128
61129 2007-11-03  Bruno Haible  <bruno@clisp.org>
61130
61131         Fix out-of-memory handling of vasnprintf.
61132         * lib/printf-parse.c: Include <errno.h>.
61133         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61134         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61135         is already set.
61136
61137 2007-11-02  Eric Blake  <ebb9@byu.net>
61138
61139         Fix tests on cygwin.
61140         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61141
61142 2007-11-01  Bruno Haible  <bruno@clisp.org>
61143
61144         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61145         warning.
61146         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61147         needed for POSIX compatibility.
61148
61149 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61150
61151         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61152         for compatibility with GNU.
61153
61154 2007-11-01  Bruno Haible  <bruno@clisp.org>
61155
61156         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61157         (putenv): Renamed from rpl_putenv. Change argument type from
61158         'const char *' to 'char *'.
61159         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61160         of defining putenv in config.h, just set REPLACE_PUTENV.
61161         * modules/putenv (Depends-on): Add stdlib.
61162         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61163         (Include): Use <stdlib.h>.
61164         * lib/stdlib.in.h (putenv): New declaration.
61165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61166         REPLACE_PUTENV.
61167         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61168         REPLACE_PUTENV.
61169         Needed for MacOS X 10.5.0.
61170         Reported by Peter O'Gorman <peter@pogma.com>.
61171
61172 2007-11-01  Jim Meyering  <meyering@redhat.com>
61173
61174         Treat an empty date string exactly like "0".
61175         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61176         if the remaining date string (to be parsed) is empty, use "0".
61177         Reported by Mischa Molhoek and discussed in this thread:
61178         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61179
61180 2007-10-31  Bruno Haible  <bruno@clisp.org>
61181
61182         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61183         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61184         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61185         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61186         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61187         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61188
61189 2007-10-31  Bruno Haible  <bruno@clisp.org>
61190
61191         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61192         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61193         (AC_TYPE_LONG_LONG_INT): Use it.
61194         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61195         it as well.
61196         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61197         to m4/longlong.m4.
61198         * modules/stdint (Files): Remove m4/ulonglong.m4.
61199         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61200         m4/ulonglong.m4.
61201         * modules/strtoumax (Files): Likewise.
61202
61203 2007-10-30  Bruno Haible  <bruno@clisp.org>
61204
61205         * modules/xvasprintf-posix: New file.
61206         Suggested by Eric Blake.
61207
61208 2007-10-30  Bruno Haible  <bruno@clisp.org>
61209
61210         * modules/xprintf-posix-tests: New file.
61211         * tests/test-xprintf-posix.sh: New file.
61212         * tests/test-xprintf-posix.c: New file.
61213         * tests/test-xfprintf-posix.c: New file.
61214
61215         * modules/xprintf-posix: New file.
61216
61217 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61218
61219         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61220         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61221         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61222
61223 2007-10-29  Bruno Haible  <bruno@clisp.org>
61224
61225         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61226         contain the special marker '_cv_'.
61227         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61228         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61229         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61230         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61231         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61232         Reported by Ralf Wildenhues.
61233
61234 2007-10-29  Bruno Haible  <bruno@clisp.org>
61235
61236         * gnulib-tool (func_import): When --lgpl is not specified, set
61237         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61238         GPLv3.
61239         Reported by Simon Josefsson.
61240
61241 2007-10-28  Bruno Haible  <bruno@clisp.org>
61242
61243         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61244         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61245         HAVE_DECL_ISFINITE.
61246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61247         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61248         HAVE_DECL_ISFINITE.
61249
61250 2007-10-28  Bruno Haible  <bruno@clisp.org>
61251
61252         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61253         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61254
61255 2007-10-28  Bruno Haible  <bruno@clisp.org>
61256
61257         Fix link errors with Sun C 5.0 on Solaris 10.
61258         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61259         function is declared but not present in the compiler's libm.
61260         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61261         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61262         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61263         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61264         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61265         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61266         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61268         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61269         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61270         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61271         HAVE_DECL_FLOORL.
61272
61273 2007-10-28  Bruno Haible  <bruno@clisp.org>
61274
61275         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61276         gl_FUNC_FLOORL. Cache the result.
61277         (gl_FUNC_FLOORL): Use it.
61278         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61279         gl_FUNC_CEILL. Cache the result.
61280         (gl_FUNC_CEILL): Use it.
61281
61282         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61283         gl_FUNC_FLOOR. Cache the result.
61284         (gl_FUNC_FLOOR): Use it.
61285         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61286         gl_FUNC_CEIL. Cache the result.
61287         (gl_FUNC_CEIL): Use it.
61288
61289         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
61290         gl_FUNC_FLOORF. Cache the result.
61291         (gl_FUNC_FLOORF): Use it.
61292         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
61293         gl_FUNC_CEILF. Cache the result.
61294         (gl_FUNC_CEILF): Use it.
61295
61296 2007-10-28  Bruno Haible  <bruno@clisp.org>
61297
61298         * gnulib-tool: Allow specifying the LGPL version number through
61299         --lgpl=2 or --lgpl=3.
61300         (func_usage): Document --lgpl with argument.
61301         Handle --lgpl=... arguments.
61302         (func_import): Recognize also gl_LGPL calls with an argument. When
61303         --lgpl=2 is used and the module's license is just LGPL, report an
61304         error. Set sed_transform_lib_file according to the lgpl variable. In
61305         the generated files, use --lgpl or gl_LGPL invocations with argument,
61306         if necessary.
61307         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61308         an LGPv2+ license.
61309         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61310         gl_LGPL macro.
61311
61312 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61313             Bruno Haible  <bruno@clisp.org>
61314
61315         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61316         (u16_uctomb_aux): Likewise.
61317         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61318         !HAVE_INLINE.
61319         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61320
61321 2007-10-28  Bruno Haible  <bruno@clisp.org>
61322
61323         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61324         Invoke AM_GETTEXT_OPTION if it exists.
61325         * modules/vasprintf: Likewise.
61326         * modules/verror: Likewise.
61327         * modules/xprintf: Likewise.
61328         * modules/xvasprintf: Likewise.
61329
61330 2007-10-27  Ben Pfaff  <blp@gnu.org>
61331
61332         * lib/math.in.h: Define isfinite macro and prototypes for
61333         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61334         implementations.
61335         * m4/math_h.m4: New substitutions for isfinite module.
61336         * lib/isfinite.c: New file.
61337         * m4/isfinite.m4: New file.
61338         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61339         * modules/isfinite: New file.
61340         * modules/isfinite-tests: New file.
61341         * tests/tests-isfinite.c: New file.
61342         * doc/functions/isfinite.texi: Mention isfinite module.
61343         * MODULES.html.sh: Mention new module.
61344
61345 2007-10-27  Ben Pfaff  <blp@gnu.org>
61346
61347         Ralf Wildenhues reported that Tru64 4.0D declares the round
61348         functions but does not have definitions.
61349         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61350         cannot be found in any library, set the output variable to
61351         "missing" instead of "".
61352         * m4/round.m4: Also use our substitute if we cannot find round in
61353         any library, even if it is declared.
61354         * m4/roundf.m4: Likewise for roundf.
61355         * m4/roundl.m4: Likewise for roundl.
61356         * lib/math.in.h: Undefine roundf, round, roundl before defining
61357         their replacements, to allow for hypothetical systems where these
61358         may be defined as macros but not available in libraries.
61359
61360 2007-10-27  Bruno Haible  <bruno@clisp.org>
61361
61362         * doc/gnulib.texi: Invoke @firstparagraphindent.
61363         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
61364         changes in gnulib.
61365         (Source changes): New section.
61366
61367 2007-10-26  Bruno Haible  <bruno@clisp.org>
61368
61369         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
61370         borrowed from autoconf.
61371
61372 2007-10-26  Bruno Haible  <bruno@clisp.org>
61373
61374         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
61375         strerror returned the empty string. Needed on HP-UX 11.00.
61376
61377 2007-10-24  Micah Cowan  <micah@cowan.name>
61378
61379         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
61380         * build-aux/bootstrap: Remove support for now-unnecessary option,
61381         --cvs-user, and envvars CVS_USER, CVS_RSH.
61382
61383 2007-10-24  Jim Meyering  <meyering@redhat.com>
61384
61385         Avoid diagnostics from sha1sum when there is no cached checksum.
61386         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
61387         if the po.s1 file hasn't been created yet.
61388
61389         * build-aux/bootstrap: Sync from coreutils:
61390         2007-10-24  Jim Meyering  <meyering@redhat.com>
61391         Get gnulib from the git repository, not from an obsolete cvs one.
61392         * build-aux/bootstrap: Suggestion from Micah Cowan.
61393         2007-10-04  Jim Meyering  <jim@meyering.net>
61394         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
61395         (update_po_files): Work also when there are no .po files in po/.
61396
61397 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61398
61399         * README: Append ".git" to git and cg examples.
61400         Problem reported by Benoit Sigoure.
61401
61402 2007-10-23  Micah Cowan  <micah@cowan.name>
61403
61404         * users.txt: Add wget.
61405
61406 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61407
61408         Fix linking of some unistdio tests on FreeBSD.
61409         * modules/unistdio/u16-vsnprintf-tests
61410         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
61411         * modules/unistdio/u16-vsprintf-tests
61412         (test_u16_vsnprintf1_LDADD): Likewise.
61413         * modules/unistdio/u32-vsnprintf-tests
61414         (test_u32_vsnprintf1_LDADD): Likewise.
61415         * modules/unistdio/u32-vsprintf-tests
61416         (test_u32_vsprintf1_LDADD): Likewise.
61417         * modules/unistdio/u8-vsnprintf-tests
61418         (test_u8_vsnprintf1_LDADD): Likewise.
61419         * modules/unistdio/u8-vsprintf-tests
61420         (test_u8_vsprintf1_LDADD): Likewise.
61421         * modules/unistdio/ulc-vsnprintf-tests
61422         (test_ulc_vsnprintf1_LDADD): Likewise.
61423         * modules/unistdio/ulc-vsprintf-tests
61424         (test_ulc_vsprintf1_LDADD): Likewise.
61425
61426         Fix linking of some uniconv tests on FreeBSD.
61427         * modules/uniconv/u16-conv-from-enc-tests
61428         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61429         * modules/uniconv/u16-conv-to-enc-tests
61430         (test_u16_conv_to_enc_LDADD): Likewise.
61431         * modules/uniconv/u16-strconv-from-enc-tests
61432         (test_u16_strconv_from_enc_LDADD): Likewise.
61433         * modules/uniconv/u16-strconv-to-enc-tests
61434         (test_u16_strconv_to_enc_LDADD): Likewise.
61435         * modules/uniconv/u32-conv-from-enc-tests
61436         (test_u32_conv_from_enc_LDADD): Likewise.
61437         * modules/uniconv/u32-conv-to-enc-tests
61438         (test_u32_conv_to_enc_LDADD): Likewise.
61439         * modules/uniconv/u32-strconv-from-enc-tests
61440         (test_u32_strconv_from_enc_LDADD): Likewise.
61441         * modules/uniconv/u32-strconv-to-enc-tests
61442         (test_u32_strconv_to_enc_LDADD): Likewise.
61443         * modules/uniconv/u8-conv-from-enc-tests
61444         (test_u8_conv_from_enc_LDADD): Likewise.
61445         * modules/uniconv/u8-conv-to-enc-tests
61446         (test_u8_conv_to_enc_LDADD): Likewise.
61447         * modules/uniconv/u8-strconv-from-enc-tests
61448         (test_u8_strconv_from_enc_LDADD): Likewise.
61449         * modules/uniconv/u8-strconv-to-enc-tests
61450         (test_u8_strconv_to_enc_LDADD): Likewise.
61451
61452 2007-10-22  Bruno Haible  <bruno@clisp.org>
61453
61454         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
61455         size.
61456
61457 2007-10-22  Eric Blake  <ebb9@byu.net>
61458
61459         Tweak x*printf documentation.
61460         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
61461         variable name and comments.
61462         Suggested by Bruno Haible.
61463
61464 2007-10-22  Bruno Haible  <bruno@clisp.org>
61465
61466         * lib/acl.c (copy_acl): Fix file name in comment.
61467
61468 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61469
61470         Fix Tru64 problem with stdbool.h.
61471         * lib/stdbool.in.h (false, true):
61472         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
61473         Don't declare as an enum in this situation; it runs afoul of Tru64.
61474         Problem reported by Steven M. Schweda in
61475         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
61476
61477 2007-10-22  Eric Blake  <ebb9@byu.net>
61478
61479         Also wrap vf?printf.
61480         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
61481         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
61482         (xvprintf, xvfprintf): New functions.
61483
61484 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61485
61486         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
61487         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
61488
61489         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
61490         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
61491
61492 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61493
61494         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
61495         by Bruno Haible.
61496
61497 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61498
61499         * lib/getloadavg.c
61500         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
61501         Undef `sys' after including sys/table.h, for Tru64 4.0D.
61502
61503         * tests/test-i-ring.c: Work for C89.
61504
61505 2007-10-22  Bruno Haible  <bruno@clisp.org>
61506
61507         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
61508         -1u, in preprocessor expression, so that we don't test for the bug
61509         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
61510         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
61511
61512 2007-10-22  Eric Blake  <ebb9@byu.net>
61513
61514         * tests/test-yesno.sh: Silence stderr during test.
61515
61516 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61517
61518         * modules/crypto/gc-camellia: New file.
61519
61520         * m4/gc-camellia.m4: New file.
61521
61522         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61523
61524         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61525
61526 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61527
61528         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61529         --help to stdout.  Reported by sms@antinode.org (Steven
61530         M. Schweda).
61531
61532 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61533
61534         * users.txt: Fix link to libksba.
61535
61536 2007-10-21  Ben Pfaff  <blp@gnu.org>
61537
61538         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61539         round.c roundf implementation that depends on floorf and ceilf to
61540         be tested unconditionally.
61541
61542 2007-10-21  Ben Pfaff  <blp@gnu.org>
61543
61544         * m4/check-libm-func.m4: Removed.
61545         * m4/check-math-lib.m4: New file.
61546         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61547         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61548         definition and lack of AC_LIBOBJ([roundf]).
61549         * m4/roundl.m4: Ditto, and similarly for roundl.
61550         * modules/round: Reference new m4 file.
61551         * modules/roundf: Ditto.
61552         * modules/roundl: Ditto.
61553         * tests/test-round2.c (main): Use ROUND instead of round.
61554         Bug report from Bruno Haible.
61555
61556 2007-10-21  Bruno Haible  <bruno@clisp.org>
61557
61558         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61559         context.
61560
61561 2007-10-21  Bruno Haible  <bruno@clisp.org>
61562
61563         * tests/test-wcwidth.c (main): Allow negative result for some control
61564         characters.
61565
61566         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61567         Needed on OSF/1 5.1.
61568
61569 2007-10-21  Bruno Haible  <bruno@clisp.org>
61570
61571         * tests/test-floorf1.c: Include isnanf.h.
61572         (main): Use isnanf() instead of isnan().
61573         * tests/test-ceilf1.c: Include isnanf.h.
61574         (main): Use isnanf() instead of isnan().
61575         * tests/test-truncf1.c: Include isnanf.h.
61576         (main): Use isnanf() instead of isnan().
61577         * tests/test-roundf1.c: Include isnanf.h.
61578         (main): Use isnanf() instead of isnan().
61579
61580 2007-10-21  Eric Blake  <ebb9@byu.net>
61581
61582         * users.txt: Update URL for m4.
61583
61584 2007-10-21  Bruno Haible  <bruno@clisp.org>
61585
61586         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61587
61588 2007-10-21  Bruno Haible  <bruno@clisp.org>
61589
61590         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61591         Git's management files if the CVS files are not present.
61592
61593 2007-10-20  Bruno Haible  <bruno@clisp.org>
61594
61595         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61596         gcc-3.4.x.
61597
61598 2007-10-20  Ben Pfaff  <blp@gnu.org>
61599
61600         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61601         implementations.
61602         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61603         * lib/round.c: New file.
61604         * lib/roundf.c: New file.
61605         * lib/roundl.c: New file.
61606         * m4/round.m4: New file.
61607         * m4/roundf.m4: New file.
61608         * m4/roundl.m4: New file.
61609         * m4/check-libm-func-m4: New file.
61610         * modules/math: Replace round, roundf, roundl related @VARS@ in
61611         math.in.h.
61612         * modules/round: New file.
61613         * modules/round-tests: New file.
61614         * modules/roundf: New file.
61615         * modules/roundf-tests: New file.
61616         * modules/roundl: New file.
61617         * modules/roundl-tests: New file.
61618         * tests/test-round1.c: New file.
61619         * tests/test-round2.c: New file.
61620         * tests/test-roundf1.c: New file.
61621         * tests/test-roundf2.c: New file.
61622         * tests/test-roundl.c: New file.
61623         * doc/functions/round.texi: Mention round module.
61624         * doc/functions/roundf.texi: Mention roundf module.
61625         * doc/functions/roundl.texi: Mention roundl module.
61626         * MODULES.html.sh: Mention new modules.
61627         Thanks to Bruno Haible for suggestions.
61628
61629 2007-10-20  Jim Meyering  <meyering@redhat.com>
61630
61631         * lib/xprintf.c: Include <config.h> unconditionally.
61632
61633         Change xprintf's license to GPL.
61634         * modules/xprintf (License): s/LGPL/GPL/, since this module
61635         depends on modules (exit and exitfail) which are GPL.
61636         Suggestion from Bruno Haible.
61637
61638         xprintf fixes.
61639         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61640         Use a clearer diagnostic.
61641         Patch from Bruno Haible.
61642
61643 2007-10-20  Bruno Haible  <bruno@clisp.org>
61644
61645         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61646         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61647         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61648
61649 2007-10-20  Bruno Haible  <bruno@clisp.org>
61650
61651         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61652         precision in the comparison result > x - 1 or similar.
61653         * tests/test-ceilf2.c (correct_result_p): Likewise.
61654         * tests/test-truncf2.c (correct_result_p): Likewise.
61655         * tests/test-trunc2.c (correct_result_p): Likewise.
61656         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61657
61658 2007-10-20  Bruno Haible  <bruno@clisp.org>
61659
61660         * modules/ceil: New file.
61661         * m4/ceil.m4: New file.
61662         * doc/functions/ceil.texi: Mention the 'ceil' module.
61663
61664 2007-10-20  Bruno Haible  <bruno@clisp.org>
61665
61666         * modules/floor: New file.
61667         * m4/floor.m4: New file.
61668         * doc/functions/floor.texi: Mention the 'floor' module.
61669
61670 2007-10-20  Bruno Haible  <bruno@clisp.org>
61671
61672         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61673         of %a.
61674         * modules/floorf-tests (Depends-on): Likewise.
61675         * modules/truncf-tests (Depends-on): Likewise.
61676         * modules/trunc-tests (Depends-on): Likewise.
61677         Reported by Ben Pfaff.
61678
61679 2007-10-19  Jim Meyering  <meyering@redhat.com>
61680
61681         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61682         Don't bother testing specific errno values.  Just test ferror.
61683
61684         New module: xprintf
61685         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61686
61687 2007-10-19  Bruno Haible  <bruno@clisp.org>
61688
61689         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61690         syntax.
61691         * modules/javaexec (Makefile.am): Likewise.
61692         * modules/relocatable-prog (Makefile.am): Likewise.
61693         Suggested by Jim Meyering.
61694
61695 2007-10-18  Bruno Haible  <bruno@clisp.org>
61696
61697         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61698         Reported by Jim Meyering.
61699
61700 2007-10-18  Eric Blake  <ebb9@byu.net>
61701
61702         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61703
61704 2007-10-18  Bruno Haible  <bruno@clisp.org>
61705
61706         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61707         the format string into writable memory. Needed in Fortify conditions.
61708
61709 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61710             Bruno Haible  <bruno@clisp.org>
61711
61712         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61713         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61714         * modules/trim (Depends-on): Add mbchar.
61715         (configure.ac): Add gl_FUNC_MBRTOWC.
61716         (Makefile.am): Augment lib_SOURCES.
61717
61718 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61719
61720         Modify glob.c to use fstatat and dirfd, to simplify it.
61721         Suggested by Eric Blake.
61722         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61723         Don't include <stdbool.h>; not used.
61724         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61725         (link_exists_p): Simplify implementation, since we can now assume
61726         dirfd and fstatat.
61727         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61728
61729 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61730
61731         * gnulib-tool (func_get_dependencies): Fix sed script to
61732         match only tests.
61733
61734 2007-10-17  Bruno Haible  <bruno@clisp.org>
61735
61736         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61737         allow locale names without encoding suffix.
61738         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61739         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61740
61741 2007-10-16  Bruno Haible  <bruno@clisp.org>
61742
61743         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61744         * lib/getgroups.c (getgroups): Likewise.
61745         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61746
61747 2007-10-16  Bruno Haible  <bruno@clisp.org>
61748
61749         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61750         * modules/malloc-posix (License): Likewise.
61751         * modules/realloc-posix (License): Likewise.
61752         * modules/calloc-posix (License): Likewise.
61753         * modules/intprops (License): Change from GPL to LGPL, with
61754         Paul Eggert's approval.
61755
61756 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61757
61758         Merge glibc changes into lib/glob.c.
61759
61760         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61761         2007-10-15 04:59:03 UTC.  Here are the changes:
61762
61763         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61764
61765         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61766
61767         * lib/glob.c: Add some branch prediction throughout.
61768
61769         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61770
61771         [BZ #5103]
61772         * lib/glob.c (glob): Recognize patterns starting \/.
61773
61774         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61775
61776         [BZ #3996]
61777         * lib/glob.c (attribute_hidden): Define if not defined.
61778         (glob): Unescape dirname, filename or username when needed and not
61779         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61780         is NULL.  Handle unescaped [ in pattern without closing ].
61781         Don't pass GLOB_CHECK down to recursive glob for directories.
61782         (__glob_pattern_type): New function.
61783         (__glob_pattern_p): Implement using __glob_pattern_type.
61784         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61785         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61786         Remove unreachable code.
61787
61788         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61789
61790         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61791         explain why there are no leaks.
61792
61793         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61794
61795         [BZ #3253]
61796         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61797         time, rather allocate increasingly bigger arrays of pointers, if
61798         possible with alloca, if too large with malloc.
61799
61800 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61801
61802         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61803         Problem reported by H.Merijn Brand in
61804         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61805         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61806         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61807
61808 2007-10-15  Bruno Haible  <bruno@clisp.org>
61809
61810         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61811         with explicit rpl_ prefix.
61812         * lib/fopen.c (fopen): Likewise.
61813         * lib/freopen.c (freopen): Likewise.
61814         * lib/iconv.c (iconv): Likewise.
61815         * lib/iconv_close.c (iconv_close): Likewise.
61816
61817 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61818
61819         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61820
61821 2007-10-15  Bruno Haible  <bruno@clisp.org>
61822
61823         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61824         <stddef.h> instead of <stdlib.h> since we only need NULL.
61825         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61826
61827 2007-10-15  Bruno Haible  <bruno@clisp.org>
61828
61829         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61830         Replace paragraph talking about LIBOBJS.
61831         Reported by Colin Watson <cjwatson@debian.org>.
61832
61833 2007-10-15  Bruno Haible  <bruno@clisp.org>
61834
61835         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61836         <stdlib.h> before using NULL.
61837
61838 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61839
61840         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61841         Reported by Albert Chin <china@thewrittenword.com>.
61842
61843 2007-10-14  Bruno Haible  <bruno@clisp.org>
61844
61845         * modules/iconv_open-utf-tests: New file.
61846         * tests/test-iconv-utf.c: New file.
61847
61848         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61849         * modules/iconv_open-utf: New file.
61850         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61851         (iconv, iconv_close): New declarations.
61852         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61853         be defined.
61854         (iconv_open): Add special handling of conversion between UTF-8 and
61855         UTF-{16,32}{BE,LE}.
61856         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61857         * lib/iconv_close.c: New file.
61858         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61859         gl_FUNC_ICONV_OPEN.
61860         (gl_FUNC_ICONV_OPEN): Use it.
61861         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61862         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61863         and REPLACE_ICONV_UTF.
61864         * modules/iconv_open (Depends-on): Add c-strcase.
61865         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61866         ICONV_CONST.
61867         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61868
61869 2007-10-13  Albert Chin  <china@thewrittenword.com>
61870             Bruno Haible  <bruno@clisp.org>
61871
61872         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61873         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61874
61875 2007-10-13  Bruno Haible  <bruno@clisp.org>
61876
61877         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61878         defined, use the ISO C99 inline semantics.
61879         * lib/argp.h (ARGP_EI): Likewise.
61880
61881 2007-10-13  Bruno Haible  <bruno@clisp.org>
61882
61883         Handle 'inline' change in gcc 4.3.0.
61884         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61885         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61886         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61887         argp_fmtstream_point): Disable 'extern' declaration if the function
61888         definition is going to be provided inline.
61889         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61890         semantics, not the ISO C99 inline semantics.
61891         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61892         'extern' declaration if the function definition is going to be provided
61893         inline.
61894         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61895         the GNU C inline semantics, not the ISO C99 inline semantics. With
61896         GCC 4.2, avoid a warning.
61897
61898 2007-10-13  Bruno Haible  <bruno@clisp.org>
61899
61900         * lib/freading.h (freading): Enable the use of __freading for
61901         glibc >= 2.7.
61902         * lib/freading.c (freading): Likewise.
61903
61904 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61905
61906         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61907         "warning: C99 inline functions are not supported; using GNU89".
61908
61909 2007-10-12  Bruno Haible  <bruno@clisp.org>
61910
61911         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61912         of 2.
61913         * tests/test-ceilf2.c: New file.
61914         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61915
61916         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61917         * modules/ceilf-tests: Update.
61918
61919 2007-10-12  Bruno Haible  <bruno@clisp.org>
61920
61921         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61922         of 2.
61923         * tests/test-floorf2.c: New file.
61924         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61925
61926         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61927         * modules/floorf-tests: Update.
61928
61929 2007-10-12  Bruno Haible  <bruno@clisp.org>
61930
61931         * tests/test-trunc2.c: New file.
61932         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61933
61934         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61935         * modules/trunc-tests: Update.
61936
61937 2007-10-12  Bruno Haible  <bruno@clisp.org>
61938
61939         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61940         of 2.
61941         * tests/test-truncf2.c: New file.
61942         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61943
61944         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61945         * modules/truncf-tests: Update.
61946
61947 2007-10-11  Eric Blake  <ebb9@byu.net>
61948
61949         Don't claim strerror is broken on Interix.
61950         * doc/functions/strerror.texi (strerror): Known broken systems are
61951         now Solaris 8, and not Interix.
61952         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61953         Interix on cross-compile.
61954         Reported by Martin Koeppe in
61955         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61956
61957 2007-10-11  Bruno Haible  <bruno@clisp.org>
61958
61959         * modules/i-ring-tests: New file.
61960         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61961         instead of assert.
61962
61963 2007-10-11  Bruno Haible  <bruno@clisp.org>
61964
61965         * modules/filenamecat-tests: New file.
61966         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61967         * lib/filenamecat.c: Remove test code.
61968
61969 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61970
61971         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61972
61973         * lib/strerror.c: Include <string.h> always, to test interface,
61974         and to remove the need for the dummy.
61975         Include intprops.h to compute width instead of doing it ourselves
61976         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61977         (strerror): Define it to return NULL if there's no system strerror.
61978         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61979         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61980         ancient pre-strerror Unix systems well any more.  Saying "unknown
61981         system error" is enough.
61982         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61983         simpler strerror.c implementation.
61984         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61985         Simplify the tests to reflect the simpler strerror implementation.
61986         * modules/strerror (Depends-on): Add intprops.
61987
61988 2007-10-09  Eric Blake  <ebb9@byu.net>
61989
61990         Silence test-fpending.
61991         * modules/fpending-tests (Files): Add wrapper script.
61992         * tests/test-fpending.sh: New file.
61993
61994 2007-10-09  Bruno Haible  <bruno@clisp.org>
61995
61996         * MODULES.html.sh (func_module): Don't create a hyperlink for
61997         function names like 'printf_frexp'.
61998         (Misc): Add crc, memxor.
61999         (Characteristics of floating types): New section.
62000         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
62001         isnanf-nolibm, signbit, trunc, truncf, truncl.
62002         (Enhancements for ISO C 99 functions): New subsection Input/output.
62003         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
62004         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
62005         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
62006         (Compatibility checks for POSIX:2001 functions): Add clock-time.
62007         (Enhancements for POSIX:2001 functions): Add chdir-long.
62008         (File system functions): Add areadlink, chdir-safer, read-file.
62009         Remove cycle-check.
62010         (File system as inode set): New section.
62011         (Date and time): Add gethrxtime.
62012         (Multithreading): Add openmp.
62013         (Internationalization functions): Add localename.
62014         (Unicode string functions): Add unistr/u*-mbsnlen.
62015         (Support for maintaining and releasing projects): Add git-version-gen.
62016         (Lone files): Remove directories.
62017
62018 2007-10-08  Ben Pfaff  <blp@gnu.org>
62019
62020         * lib/xmalloca.h: Fix typo in comment.
62021
62022 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62023
62024         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
62025         when avoiding problems with integer overflow.  Use a portable test
62026         instead.
62027
62028 2007-10-08  Simon Josefsson  <simon@josefsson.org>
62029
62030         * modules/dummy (License): Change to LGPLv2+.
62031         * modules/float (License): Likewise
62032         * modules/realloc (License): Likewise
62033         * modules/stdlib (License): Likewise
62034
62035 2007-10-07  Bruno Haible  <bruno@clisp.org>
62036
62037         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62038         * floor.c (TWO_MANT_DIG): Likewise.
62039         * ceil.c (TWO_MANT_DIG): Likewise.
62040         Reported by Ben Pfaff.
62041
62042 2007-10-07  Bruno Haible  <bruno@clisp.org>
62043
62044         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62045         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62046         * lib/frexp.c (FUNC): Likewise.
62047         * lib/printf-frexp.h (printf_frexp): Likewise.
62048         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62049         * lib/printf-frexp.c (FUNC): Likewise.
62050         Suggested by Jim Meyering.
62051
62052 2007-10-07  Jim Meyering  <meyering@redhat.com>
62053
62054         Make xnanosleep's integer overflow test more robust.
62055         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62056         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62057
62058 2007-10-07  Bruno Haible  <bruno@clisp.org>
62059
62060         * NEWS: Mention the license change.
62061
62062         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62063         abbreviations in the modules files.
62064
62065         Change copyright notice from GPLv2+ to GPLv3+.
62066         * README: Change copyright notice.
62067         * MODULES.html.sh: Likewise.
62068         * build-aux/bootstrap.conf: Likewise.
62069         * build-aux/config.libpath: Likewise.
62070         * build-aux/csharpcomp.sh.in: Likewise.
62071         * build-aux/csharpexec.sh.in: Likewise.
62072         * build-aux/install-reloc: Likewise.
62073         * build-aux/javacomp.sh.in: Likewise.
62074         * build-aux/javaexec.sh.in: Likewise.
62075         * build-aux/ldd.sh.in: Likewise.
62076         * build-aux/reloc-ldflags: Likewise.
62077         * build-aux/relocatable.sh.in: Likewise.
62078         * build-aux/x-to-1.in: Likewise.
62079         * check-module: Likewise.
62080         * config/srclistvars.sh: Likewise.
62081         * gnulib-tool: Likewise.
62082         * lib/acl-internal.h: Likewise.
62083         * lib/acl.c: Likewise.
62084         * lib/acl.h: Likewise.
62085         * lib/acl_entries.c: Likewise.
62086         * lib/areadlink-with-size.c: Likewise.
62087         * lib/areadlink.c: Likewise.
62088         * lib/areadlink.h: Likewise.
62089         * lib/argmatch.c: Likewise.
62090         * lib/argmatch.h: Likewise.
62091         * lib/argp-ba.c: Likewise.
62092         * lib/argp-eexst.c: Likewise.
62093         * lib/argp-fmtstream.c: Likewise.
62094         * lib/argp-fmtstream.h: Likewise.
62095         * lib/argp-fs-xinl.c: Likewise.
62096         * lib/argp-help.c: Likewise.
62097         * lib/argp-namefrob.h: Likewise.
62098         * lib/argp-parse.c: Likewise.
62099         * lib/argp-pin.c: Likewise.
62100         * lib/argp-pv.c: Likewise.
62101         * lib/argp-pvh.c: Likewise.
62102         * lib/argp-xinl.c: Likewise.
62103         * lib/argp.h: Likewise.
62104         * lib/at-func.c: Likewise.
62105         * lib/atanl.c: Likewise.
62106         * lib/backupfile.c: Likewise.
62107         * lib/backupfile.h: Likewise.
62108         * lib/basename.c: Likewise.
62109         * lib/binary-io.h: Likewise.
62110         * lib/byteswap.in.h: Likewise.
62111         * lib/c-stack.c: Likewise.
62112         * lib/c-stack.h: Likewise.
62113         * lib/c-strcasestr.c: Likewise.
62114         * lib/c-strcasestr.h: Likewise.
62115         * lib/c-strstr.c: Likewise.
62116         * lib/c-strstr.h: Likewise.
62117         * lib/c-strtod.c: Likewise.
62118         * lib/calloc.c: Likewise.
62119         * lib/canon-host.c: Likewise.
62120         * lib/canon-host.h: Likewise.
62121         * lib/canonicalize-lgpl.c: Likewise.
62122         * lib/canonicalize.c: Likewise.
62123         * lib/canonicalize.h: Likewise.
62124         * lib/ceil.c: Likewise.
62125         * lib/ceilf.c: Likewise.
62126         * lib/ceill.c: Likewise.
62127         * lib/chdir-long.c: Likewise.
62128         * lib/chdir-long.h: Likewise.
62129         * lib/chdir-safer.c: Likewise.
62130         * lib/chdir-safer.h: Likewise.
62131         * lib/chown.c: Likewise.
62132         * lib/classpath.c: Likewise.
62133         * lib/classpath.h: Likewise.
62134         * lib/clean-temp.c: Likewise.
62135         * lib/clean-temp.h: Likewise.
62136         * lib/cloexec.c: Likewise.
62137         * lib/close-stream.c: Likewise.
62138         * lib/closein.c: Likewise.
62139         * lib/closein.h: Likewise.
62140         * lib/closeout.c: Likewise.
62141         * lib/closeout.h: Likewise.
62142         * lib/concat-filename.c: Likewise.
62143         * lib/copy-file.c: Likewise.
62144         * lib/copy-file.h: Likewise.
62145         * lib/count-one-bits.h: Likewise.
62146         * lib/crc.c: Likewise.
62147         * lib/crc.h: Likewise.
62148         * lib/creat-safer.c: Likewise.
62149         * lib/csharpcomp.c: Likewise.
62150         * lib/csharpcomp.h: Likewise.
62151         * lib/csharpexec.c: Likewise.
62152         * lib/csharpexec.h: Likewise.
62153         * lib/cycle-check.c: Likewise.
62154         * lib/cycle-check.h: Likewise.
62155         * lib/diacrit.c: Likewise.
62156         * lib/diacrit.h: Likewise.
62157         * lib/diffseq.h: Likewise.
62158         * lib/dirchownmod.c: Likewise.
62159         * lib/dirent.in.h: Likewise.
62160         * lib/dirfd.c: Likewise.
62161         * lib/dirfd.h: Likewise.
62162         * lib/dirname.c: Likewise.
62163         * lib/dirname.h: Likewise.
62164         * lib/dummy.c: Likewise.
62165         * lib/dup-safer.c: Likewise.
62166         * lib/dup2.c: Likewise.
62167         * lib/eealloc.h: Likewise.
62168         * lib/error.c: Likewise.
62169         * lib/error.h: Likewise.
62170         * lib/euidaccess.c: Likewise.
62171         * lib/exclude.c: Likewise.
62172         * lib/exclude.h: Likewise.
62173         * lib/execute.c: Likewise.
62174         * lib/execute.h: Likewise.
62175         * lib/exitfail.c: Likewise.
62176         * lib/exitfail.h: Likewise.
62177         * lib/expl.c: Likewise.
62178         * lib/fatal-signal.c: Likewise.
62179         * lib/fatal-signal.h: Likewise.
62180         * lib/fbufmode.c: Likewise.
62181         * lib/fbufmode.h: Likewise.
62182         * lib/fchdir.c: Likewise.
62183         * lib/fchmodat.c: Likewise.
62184         * lib/fchownat.c: Likewise.
62185         * lib/fcntl--.h: Likewise.
62186         * lib/fcntl-safer.h: Likewise.
62187         * lib/fcntl.in.h: Likewise.
62188         * lib/fd-safer.c: Likewise.
62189         * lib/fflush.c: Likewise.
62190         * lib/file-has-acl.c: Likewise.
62191         * lib/file-set.c: Likewise.
62192         * lib/file-type.c: Likewise.
62193         * lib/file-type.h: Likewise.
62194         * lib/fileblocks.c: Likewise.
62195         * lib/filemode.c: Likewise.
62196         * lib/filemode.h: Likewise.
62197         * lib/filename.h: Likewise.
62198         * lib/filenamecat.c: Likewise.
62199         * lib/filenamecat.h: Likewise.
62200         * lib/findprog.c: Likewise.
62201         * lib/findprog.h: Likewise.
62202         * lib/float.in.h: Likewise.
62203         * lib/floor.c: Likewise.
62204         * lib/floorf.c: Likewise.
62205         * lib/floorl.c: Likewise.
62206         * lib/fopen-safer.c: Likewise.
62207         * lib/fopen.c: Likewise.
62208         * lib/fpending.c: Likewise.
62209         * lib/fpending.h: Likewise.
62210         * lib/fprintf.c: Likewise.
62211         * lib/fprintftime.h: Likewise.
62212         * lib/fpucw.h: Likewise.
62213         * lib/fpurge.c: Likewise.
62214         * lib/fpurge.h: Likewise.
62215         * lib/freadable.c: Likewise.
62216         * lib/freadable.h: Likewise.
62217         * lib/freadahead.c: Likewise.
62218         * lib/freadahead.h: Likewise.
62219         * lib/freading.c: Likewise.
62220         * lib/freading.h: Likewise.
62221         * lib/free.c: Likewise.
62222         * lib/freopen.c: Likewise.
62223         * lib/frexp.c: Likewise.
62224         * lib/frexpl.c: Likewise.
62225         * lib/fseek.c: Likewise.
62226         * lib/fseterr.c: Likewise.
62227         * lib/fseterr.h: Likewise.
62228         * lib/fstatat.c: Likewise.
62229         * lib/fstrcmp.c: Likewise.
62230         * lib/fstrcmp.h: Likewise.
62231         * lib/fsusage.c: Likewise.
62232         * lib/fsusage.h: Likewise.
62233         * lib/ftell.c: Likewise.
62234         * lib/ftello.c: Likewise.
62235         * lib/fts-cycle.c: Likewise.
62236         * lib/fts.c: Likewise.
62237         * lib/fts_.h: Likewise.
62238         * lib/full-read.c: Likewise.
62239         * lib/full-read.h: Likewise.
62240         * lib/full-write.c: Likewise.
62241         * lib/full-write.h: Likewise.
62242         * lib/fwritable.c: Likewise.
62243         * lib/fwritable.h: Likewise.
62244         * lib/fwriteerror.c: Likewise.
62245         * lib/fwriteerror.h: Likewise.
62246         * lib/fwriting.c: Likewise.
62247         * lib/fwriting.h: Likewise.
62248         * lib/gcd.c: Likewise.
62249         * lib/gcd.h: Likewise.
62250         * lib/getcwd.c: Likewise.
62251         * lib/getdate.h: Likewise.
62252         * lib/getdate.y: Likewise.
62253         * lib/getdomainname.c: Likewise.
62254         * lib/getdomainname.h: Likewise.
62255         * lib/getgroups.c: Likewise.
62256         * lib/gethostname.c: Likewise.
62257         * lib/gethrxtime.c: Likewise.
62258         * lib/gethrxtime.h: Likewise.
62259         * lib/getloadavg.c: Likewise.
62260         * lib/getndelim2.c: Likewise.
62261         * lib/getndelim2.h: Likewise.
62262         * lib/getnline.c: Likewise.
62263         * lib/getnline.h: Likewise.
62264         * lib/getopt.c: Likewise.
62265         * lib/getopt.in.h: Likewise.
62266         * lib/getopt1.c: Likewise.
62267         * lib/getopt_int.h: Likewise.
62268         * lib/getpagesize.h: Likewise.
62269         * lib/getsubopt.c: Likewise.
62270         * lib/gettime.c: Likewise.
62271         * lib/getugroups.c: Likewise.
62272         * lib/getugroups.h: Likewise.
62273         * lib/getusershell.c: Likewise.
62274         * lib/gl_anyavltree_list1.h: Likewise.
62275         * lib/gl_anyavltree_list2.h: Likewise.
62276         * lib/gl_anyhash_list1.h: Likewise.
62277         * lib/gl_anyhash_list2.h: Likewise.
62278         * lib/gl_anylinked_list1.h: Likewise.
62279         * lib/gl_anylinked_list2.h: Likewise.
62280         * lib/gl_anyrbtree_list1.h: Likewise.
62281         * lib/gl_anyrbtree_list2.h: Likewise.
62282         * lib/gl_anytree_list1.h: Likewise.
62283         * lib/gl_anytree_list2.h: Likewise.
62284         * lib/gl_anytree_oset.h: Likewise.
62285         * lib/gl_anytreehash_list1.h: Likewise.
62286         * lib/gl_anytreehash_list2.h: Likewise.
62287         * lib/gl_array_list.c: Likewise.
62288         * lib/gl_array_list.h: Likewise.
62289         * lib/gl_array_oset.c: Likewise.
62290         * lib/gl_array_oset.h: Likewise.
62291         * lib/gl_avltree_list.c: Likewise.
62292         * lib/gl_avltree_list.h: Likewise.
62293         * lib/gl_avltree_oset.c: Likewise.
62294         * lib/gl_avltree_oset.h: Likewise.
62295         * lib/gl_avltreehash_list.c: Likewise.
62296         * lib/gl_avltreehash_list.h: Likewise.
62297         * lib/gl_carray_list.c: Likewise.
62298         * lib/gl_carray_list.h: Likewise.
62299         * lib/gl_linked_list.c: Likewise.
62300         * lib/gl_linked_list.h: Likewise.
62301         * lib/gl_linkedhash_list.c: Likewise.
62302         * lib/gl_linkedhash_list.h: Likewise.
62303         * lib/gl_list.c: Likewise.
62304         * lib/gl_list.h: Likewise.
62305         * lib/gl_oset.c: Likewise.
62306         * lib/gl_oset.h: Likewise.
62307         * lib/gl_rbtree_list.c: Likewise.
62308         * lib/gl_rbtree_list.h: Likewise.
62309         * lib/gl_rbtree_oset.c: Likewise.
62310         * lib/gl_rbtree_oset.h: Likewise.
62311         * lib/gl_rbtreehash_list.c: Likewise.
62312         * lib/gl_rbtreehash_list.h: Likewise.
62313         * lib/gl_sublist.c: Likewise.
62314         * lib/gl_sublist.h: Likewise.
62315         * lib/group-member.c: Likewise.
62316         * lib/group-member.h: Likewise.
62317         * lib/hard-locale.c: Likewise.
62318         * lib/hard-locale.h: Likewise.
62319         * lib/hash-pjw.c: Likewise.
62320         * lib/hash-pjw.h: Likewise.
62321         * lib/hash-triple.c: Likewise.
62322         * lib/hash.c: Likewise.
62323         * lib/hash.h: Likewise.
62324         * lib/human.c: Likewise.
62325         * lib/human.h: Likewise.
62326         * lib/i-ring.c: Likewise.
62327         * lib/i-ring.h: Likewise.
62328         * lib/idcache.c: Likewise.
62329         * lib/imaxabs.c: Likewise.
62330         * lib/imaxdiv.c: Likewise.
62331         * lib/inet_pton.c: Likewise.
62332         * lib/inet_pton.h: Likewise.
62333         * lib/intprops.h: Likewise.
62334         * lib/inttostr.c: Likewise.
62335         * lib/inttostr.h: Likewise.
62336         * lib/inttypes.in.h: Likewise.
62337         * lib/isapipe.c: Likewise.
62338         * lib/isdir.c: Likewise.
62339         * lib/isnan.c: Likewise.
62340         * lib/isnan.h: Likewise.
62341         * lib/isnanf.c: Likewise.
62342         * lib/isnanf.h: Likewise.
62343         * lib/isnanl-nolibm.h: Likewise.
62344         * lib/isnanl.c: Likewise.
62345         * lib/isnanl.h: Likewise.
62346         * lib/javacomp.c: Likewise.
62347         * lib/javacomp.h: Likewise.
62348         * lib/javaexec.c: Likewise.
62349         * lib/javaexec.h: Likewise.
62350         * lib/javaversion.c: Likewise.
62351         * lib/javaversion.h: Likewise.
62352         * lib/javaversion.java: Likewise.
62353         * lib/lbrkprop.h: Likewise.
62354         * lib/lchmod.h: Likewise.
62355         * lib/lchown.c: Likewise.
62356         * lib/ldexpl.c: Likewise.
62357         * lib/linebreak.c: Likewise.
62358         * lib/linebreak.h: Likewise.
62359         * lib/linebuffer.c: Likewise.
62360         * lib/linebuffer.h: Likewise.
62361         * lib/locale.in.h: Likewise.
62362         * lib/logl.c: Likewise.
62363         * lib/long-options.c: Likewise.
62364         * lib/long-options.h: Likewise.
62365         * lib/lstat.c: Likewise.
62366         * lib/lstat.h: Likewise.
62367         * lib/math.in.h: Likewise.
62368         * lib/mbchar.c: Likewise.
62369         * lib/mbchar.h: Likewise.
62370         * lib/mbfile.h: Likewise.
62371         * lib/mbiter.h: Likewise.
62372         * lib/mbscasecmp.c: Likewise.
62373         * lib/mbscasestr.c: Likewise.
62374         * lib/mbschr.c: Likewise.
62375         * lib/mbscspn.c: Likewise.
62376         * lib/mbslen.c: Likewise.
62377         * lib/mbsncasecmp.c: Likewise.
62378         * lib/mbsnlen.c: Likewise.
62379         * lib/mbspbrk.c: Likewise.
62380         * lib/mbspcasecmp.c: Likewise.
62381         * lib/mbsrchr.c: Likewise.
62382         * lib/mbssep.c: Likewise.
62383         * lib/mbsspn.c: Likewise.
62384         * lib/mbsstr.c: Likewise.
62385         * lib/mbstok_r.c: Likewise.
62386         * lib/mbswidth.c: Likewise.
62387         * lib/mbswidth.h: Likewise.
62388         * lib/mbuiter.h: Likewise.
62389         * lib/memcasecmp.c: Likewise.
62390         * lib/memcasecmp.h: Likewise.
62391         * lib/memchr.c: Likewise.
62392         * lib/memcmp.c: Likewise.
62393         * lib/memcoll.c: Likewise.
62394         * lib/memcoll.h: Likewise.
62395         * lib/memcpy.c: Likewise.
62396         * lib/memrchr.c: Likewise.
62397         * lib/mkancesdirs.c: Likewise.
62398         * lib/mkdir-p.c: Likewise.
62399         * lib/mkdir-p.h: Likewise.
62400         * lib/mkdir.c: Likewise.
62401         * lib/mkdirat.c: Likewise.
62402         * lib/mkdtemp.c: Likewise.
62403         * lib/mkstemp-safer.c: Likewise.
62404         * lib/mkstemp.c: Likewise.
62405         * lib/modechange.c: Likewise.
62406         * lib/modechange.h: Likewise.
62407         * lib/mountlist.c: Likewise.
62408         * lib/mountlist.h: Likewise.
62409         * lib/mpsort.c: Likewise.
62410         * lib/nanosleep.c: Likewise.
62411         * lib/obstack.c: Likewise.
62412         * lib/obstack.h: Likewise.
62413         * lib/open-safer.c: Likewise.
62414         * lib/open.c: Likewise.
62415         * lib/openat-die.c: Likewise.
62416         * lib/openat-priv.h: Likewise.
62417         * lib/openat-proc.c: Likewise.
62418         * lib/openat.c: Likewise.
62419         * lib/openat.h: Likewise.
62420         * lib/pagealign_alloc.c: Likewise.
62421         * lib/pagealign_alloc.h: Likewise.
62422         * lib/physmem.c: Likewise.
62423         * lib/physmem.h: Likewise.
62424         * lib/pipe-safer.c: Likewise.
62425         * lib/pipe.c: Likewise.
62426         * lib/pipe.h: Likewise.
62427         * lib/posixtm.c: Likewise.
62428         * lib/posixtm.h: Likewise.
62429         * lib/posixver.c: Likewise.
62430         * lib/printf-frexp.c: Likewise.
62431         * lib/printf-frexp.h: Likewise.
62432         * lib/printf-frexpl.c: Likewise.
62433         * lib/printf-frexpl.h: Likewise.
62434         * lib/printf.c: Likewise.
62435         * lib/progname.c: Likewise.
62436         * lib/progname.h: Likewise.
62437         * lib/progreloc.c: Likewise.
62438         * lib/putenv.c: Likewise.
62439         * lib/quote.c: Likewise.
62440         * lib/quote.h: Likewise.
62441         * lib/quotearg.c: Likewise.
62442         * lib/quotearg.h: Likewise.
62443         * lib/raise.c: Likewise.
62444         * lib/readline.c: Likewise.
62445         * lib/readline.h: Likewise.
62446         * lib/readlink.c: Likewise.
62447         * lib/readtokens.c: Likewise.
62448         * lib/readtokens.h: Likewise.
62449         * lib/readtokens0.c: Likewise.
62450         * lib/readtokens0.h: Likewise.
62451         * lib/readutmp.c: Likewise.
62452         * lib/readutmp.h: Likewise.
62453         * lib/realloc.c: Likewise.
62454         * lib/relocwrapper.c: Likewise.
62455         * lib/rename-dest-slash.c: Likewise.
62456         * lib/rename.c: Likewise.
62457         * lib/rmdir.c: Likewise.
62458         * lib/rpmatch.c: Likewise.
62459         * lib/safe-read.c: Likewise.
62460         * lib/safe-read.h: Likewise.
62461         * lib/safe-write.c: Likewise.
62462         * lib/safe-write.h: Likewise.
62463         * lib/same-inode.h: Likewise.
62464         * lib/same.c: Likewise.
62465         * lib/same.h: Likewise.
62466         * lib/save-cwd.c: Likewise.
62467         * lib/save-cwd.h: Likewise.
62468         * lib/savedir.c: Likewise.
62469         * lib/savedir.h: Likewise.
62470         * lib/savewd.c: Likewise.
62471         * lib/savewd.h: Likewise.
62472         * lib/search.in.h: Likewise.
62473         * lib/setenv.c: Likewise.
62474         * lib/setenv.h: Likewise.
62475         * lib/settime.c: Likewise.
62476         * lib/sh-quote.c: Likewise.
62477         * lib/sh-quote.h: Likewise.
62478         * lib/sig2str.c: Likewise.
62479         * lib/sig2str.h: Likewise.
62480         * lib/signal.in.h: Likewise.
62481         * lib/signbitd.c: Likewise.
62482         * lib/signbitf.c: Likewise.
62483         * lib/signbitl.c: Likewise.
62484         * lib/sigprocmask.c: Likewise.
62485         * lib/sincosl.c: Likewise.
62486         * lib/sleep.c: Likewise.
62487         * lib/sprintf.c: Likewise.
62488         * lib/sqrtl.c: Likewise.
62489         * lib/stat-time.h: Likewise.
62490         * lib/stdio--.h: Likewise.
62491         * lib/stdio-safer.h: Likewise.
62492         * lib/stdlib--.h: Likewise.
62493         * lib/stdlib-safer.h: Likewise.
62494         * lib/stdlib.in.h: Likewise.
62495         * lib/stpcpy.c: Likewise.
62496         * lib/stpncpy.c: Likewise.
62497         * lib/strchrnul.c: Likewise.
62498         * lib/strcspn.c: Likewise.
62499         * lib/strerror.c: Likewise.
62500         * lib/strftime.c: Likewise.
62501         * lib/strftime.h: Likewise.
62502         * lib/striconveh.c: Likewise.
62503         * lib/striconveh.h: Likewise.
62504         * lib/striconveha.c: Likewise.
62505         * lib/striconveha.h: Likewise.
62506         * lib/stripslash.c: Likewise.
62507         * lib/strnlen1.c: Likewise.
62508         * lib/strnlen1.h: Likewise.
62509         * lib/strtod.c: Likewise.
62510         * lib/strtoimax.c: Likewise.
62511         * lib/strtok_r.c: Likewise.
62512         * lib/strtol.c: Likewise.
62513         * lib/strtoll.c: Likewise.
62514         * lib/strtoul.c: Likewise.
62515         * lib/strtoull.c: Likewise.
62516         * lib/sysexits.in.h: Likewise.
62517         * lib/tempname.c: Likewise.
62518         * lib/tempname.h: Likewise.
62519         * lib/timespec.h: Likewise.
62520         * lib/tls.c: Likewise.
62521         * lib/tls.h: Likewise.
62522         * lib/tmpdir.c: Likewise.
62523         * lib/tmpdir.h: Likewise.
62524         * lib/tmpfile-safer.c: Likewise.
62525         * lib/tmpfile.c: Likewise.
62526         * lib/trigl.c: Likewise.
62527         * lib/trigl.h: Likewise.
62528         * lib/trim.c: Likewise.
62529         * lib/trim.h: Likewise.
62530         * lib/trunc.c: Likewise.
62531         * lib/truncf.c: Likewise.
62532         * lib/truncl.c: Likewise.
62533         * lib/tsearch.c: Likewise.
62534         * lib/unicodeio.c: Likewise.
62535         * lib/unicodeio.h: Likewise.
62536         * lib/unistd--.h: Likewise.
62537         * lib/unistd-safer.h: Likewise.
62538         * lib/unistdio/ulc-fprintf.c: Likewise.
62539         * lib/unistdio/ulc-vfprintf.c: Likewise.
62540         * lib/unlinkdir.c: Likewise.
62541         * lib/unlinkdir.h: Likewise.
62542         * lib/unlocked-io.h: Likewise.
62543         * lib/unsetenv.c: Likewise.
62544         * lib/userspec.c: Likewise.
62545         * lib/utime.c: Likewise.
62546         * lib/utimecmp.c: Likewise.
62547         * lib/utimecmp.h: Likewise.
62548         * lib/utimens.c: Likewise.
62549         * lib/verify.h: Likewise.
62550         * lib/verror.c: Likewise.
62551         * lib/verror.h: Likewise.
62552         * lib/version-etc-fsf.c: Likewise.
62553         * lib/version-etc.c: Likewise.
62554         * lib/version-etc.h: Likewise.
62555         * lib/vfprintf.c: Likewise.
62556         * lib/vprintf.c: Likewise.
62557         * lib/vsprintf.c: Likewise.
62558         * lib/w32spawn.h: Likewise.
62559         * lib/wait-process.c: Likewise.
62560         * lib/wait-process.h: Likewise.
62561         * lib/wcwidth.c: Likewise.
62562         * lib/write-any-file.c: Likewise.
62563         * lib/xalloc-die.c: Likewise.
62564         * lib/xalloc.h: Likewise.
62565         * lib/xasprintf.c: Likewise.
62566         * lib/xgetcwd.c: Likewise.
62567         * lib/xgetcwd.h: Likewise.
62568         * lib/xgetdomainname.c: Likewise.
62569         * lib/xgetdomainname.h: Likewise.
62570         * lib/xgethostname.c: Likewise.
62571         * lib/xmalloc.c: Likewise.
62572         * lib/xmalloca.c: Likewise.
62573         * lib/xmalloca.h: Likewise.
62574         * lib/xmemcoll.c: Likewise.
62575         * lib/xnanosleep.c: Likewise.
62576         * lib/xreadlink.c: Likewise.
62577         * lib/xreadlink.h: Likewise.
62578         * lib/xsetenv.c: Likewise.
62579         * lib/xsetenv.h: Likewise.
62580         * lib/xstriconv.c: Likewise.
62581         * lib/xstriconv.h: Likewise.
62582         * lib/xstrndup.c: Likewise.
62583         * lib/xstrndup.h: Likewise.
62584         * lib/xstrtod.c: Likewise.
62585         * lib/xstrtod.h: Likewise.
62586         * lib/xstrtol-error.c: Likewise.
62587         * lib/xstrtol.c: Likewise.
62588         * lib/xstrtol.h: Likewise.
62589         * lib/xtime.h: Likewise.
62590         * lib/xvasprintf.c: Likewise.
62591         * lib/xvasprintf.h: Likewise.
62592         * lib/yesno.c: Likewise.
62593         * lib/yesno.h: Likewise.
62594         * posix-modules: Likewise.
62595         * tests/test-alloca-opt.c: Likewise.
62596         * tests/test-arcfour.c: Likewise.
62597         * tests/test-arctwo.c: Likewise.
62598         * tests/test-argmatch.c: Likewise.
62599         * tests/test-argp-2.sh: Likewise.
62600         * tests/test-argp.c: Likewise.
62601         * tests/test-arpa_inet.c: Likewise.
62602         * tests/test-array_list.c: Likewise.
62603         * tests/test-array_oset.c: Likewise.
62604         * tests/test-atexit.c: Likewise.
62605         * tests/test-avltree_list.c: Likewise.
62606         * tests/test-avltree_oset.c: Likewise.
62607         * tests/test-avltreehash_list.c: Likewise.
62608         * tests/test-base64.c: Likewise.
62609         * tests/test-binary-io.c: Likewise.
62610         * tests/test-byteswap.c: Likewise.
62611         * tests/test-c-ctype.c: Likewise.
62612         * tests/test-c-strcasecmp.c: Likewise.
62613         * tests/test-c-strcasestr.c: Likewise.
62614         * tests/test-c-strncasecmp.c: Likewise.
62615         * tests/test-c-strstr.c: Likewise.
62616         * tests/test-canonicalize-lgpl.c: Likewise.
62617         * tests/test-canonicalize.c: Likewise.
62618         * tests/test-carray_list.c: Likewise.
62619         * tests/test-ceilf.c: Likewise.
62620         * tests/test-ceill.c: Likewise.
62621         * tests/test-count-one-bits.c: Likewise.
62622         * tests/test-crc.c: Likewise.
62623         * tests/test-dirname.c: Likewise.
62624         * tests/test-fbufmode.c: Likewise.
62625         * tests/test-fcntl.c: Likewise.
62626         * tests/test-fflush.c: Likewise.
62627         * tests/test-floorf.c: Likewise.
62628         * tests/test-floorl.c: Likewise.
62629         * tests/test-fopen.c: Likewise.
62630         * tests/test-fprintf-posix.c: Likewise.
62631         * tests/test-fprintf-posix.h: Likewise.
62632         * tests/test-fpurge.c: Likewise.
62633         * tests/test-freadable.c: Likewise.
62634         * tests/test-freadahead.c: Likewise.
62635         * tests/test-freading.c: Likewise.
62636         * tests/test-freopen.c: Likewise.
62637         * tests/test-frexp.c: Likewise.
62638         * tests/test-frexpl.c: Likewise.
62639         * tests/test-fseek.c: Likewise.
62640         * tests/test-fseeko.c: Likewise.
62641         * tests/test-fseterr.c: Likewise.
62642         * tests/test-fstrcmp.c: Likewise.
62643         * tests/test-ftell.c: Likewise.
62644         * tests/test-ftello.c: Likewise.
62645         * tests/test-fwritable.c: Likewise.
62646         * tests/test-fwriting.c: Likewise.
62647         * tests/test-getaddrinfo.c: Likewise.
62648         * tests/test-getpass.c: Likewise.
62649         * tests/test-gettimeofday.c: Likewise.
62650         * tests/test-hmac-md5.c: Likewise.
62651         * tests/test-hmac-sha1.c: Likewise.
62652         * tests/test-iconv.c: Likewise.
62653         * tests/test-iconvme.c: Likewise.
62654         * tests/test-inttypes.c: Likewise.
62655         * tests/test-isnan.c: Likewise.
62656         * tests/test-isnanf.c: Likewise.
62657         * tests/test-isnanl-nolibm.c: Likewise.
62658         * tests/test-isnanl.c: Likewise.
62659         * tests/test-isnanl.h: Likewise.
62660         * tests/test-ldexpl.c: Likewise.
62661         * tests/test-linked_list.c: Likewise.
62662         * tests/test-linkedhash_list.c: Likewise.
62663         * tests/test-locale.c: Likewise.
62664         * tests/test-localename.c: Likewise.
62665         * tests/test-lock.c: Likewise.
62666         * tests/test-lseek.c: Likewise.
62667         * tests/test-malloca.c: Likewise.
62668         * tests/test-math.c: Likewise.
62669         * tests/test-mbscasecmp.c: Likewise.
62670         * tests/test-mbscasestr1.c: Likewise.
62671         * tests/test-mbscasestr2.c: Likewise.
62672         * tests/test-mbscasestr3.c: Likewise.
62673         * tests/test-mbscasestr4.c: Likewise.
62674         * tests/test-mbschr.c: Likewise.
62675         * tests/test-mbscspn.c: Likewise.
62676         * tests/test-mbsncasecmp.c: Likewise.
62677         * tests/test-mbspbrk.c: Likewise.
62678         * tests/test-mbspcasecmp.c: Likewise.
62679         * tests/test-mbsrchr.c: Likewise.
62680         * tests/test-mbsspn.c: Likewise.
62681         * tests/test-mbsstr1.c: Likewise.
62682         * tests/test-mbsstr2.c: Likewise.
62683         * tests/test-mbsstr3.c: Likewise.
62684         * tests/test-md5.c: Likewise.
62685         * tests/test-memmem.c: Likewise.
62686         * tests/test-netinet_in.c: Likewise.
62687         * tests/test-open.c: Likewise.
62688         * tests/test-printf-frexp.c: Likewise.
62689         * tests/test-printf-frexpl.c: Likewise.
62690         * tests/test-printf-posix.c: Likewise.
62691         * tests/test-printf-posix.h: Likewise.
62692         * tests/test-rbtree_list.c: Likewise.
62693         * tests/test-rbtree_oset.c: Likewise.
62694         * tests/test-rbtreehash_list.c: Likewise.
62695         * tests/test-read-file.c: Likewise.
62696         * tests/test-rijndael.c: Likewise.
62697         * tests/test-search.c: Likewise.
62698         * tests/test-signbit.c: Likewise.
62699         * tests/test-sleep.c: Likewise.
62700         * tests/test-snprintf-posix.c: Likewise.
62701         * tests/test-snprintf-posix.h: Likewise.
62702         * tests/test-snprintf.c: Likewise.
62703         * tests/test-sprintf-posix.c: Likewise.
62704         * tests/test-sprintf-posix.h: Likewise.
62705         * tests/test-stat-time.c: Likewise.
62706         * tests/test-stdbool.c: Likewise.
62707         * tests/test-stdint.c: Likewise.
62708         * tests/test-stdio.c: Likewise.
62709         * tests/test-stdlib.c: Likewise.
62710         * tests/test-stpncpy.c: Likewise.
62711         * tests/test-strcasestr.c: Likewise.
62712         * tests/test-striconv.c: Likewise.
62713         * tests/test-striconveh.c: Likewise.
62714         * tests/test-striconveha.c: Likewise.
62715         * tests/test-string.c: Likewise.
62716         * tests/test-sys_select.c: Likewise.
62717         * tests/test-sys_socket.c: Likewise.
62718         * tests/test-sys_stat.c: Likewise.
62719         * tests/test-sys_time.c: Likewise.
62720         * tests/test-sysexits.c: Likewise.
62721         * tests/test-time.c: Likewise.
62722         * tests/test-tls.c: Likewise.
62723         * tests/test-trunc.c: Likewise.
62724         * tests/test-truncf.c: Likewise.
62725         * tests/test-truncl.c: Likewise.
62726         * tests/test-unistd.c: Likewise.
62727         * tests/test-vasnprintf-posix.c: Likewise.
62728         * tests/test-vasnprintf-posix2.c: Likewise.
62729         * tests/test-vasnprintf.c: Likewise.
62730         * tests/test-vasprintf-posix.c: Likewise.
62731         * tests/test-vasprintf.c: Likewise.
62732         * tests/test-verify.c: Likewise.
62733         * tests/test-vfprintf-posix.c: Likewise.
62734         * tests/test-vprintf-posix.c: Likewise.
62735         * tests/test-vsnprintf-posix.c: Likewise.
62736         * tests/test-vsnprintf.c: Likewise.
62737         * tests/test-vsprintf-posix.c: Likewise.
62738         * tests/test-wchar.c: Likewise.
62739         * tests/test-wctype.c: Likewise.
62740         * tests/test-wcwidth.c: Likewise.
62741         * tests/test-xstrtol.c: Likewise.
62742         * tests/test-xvasprintf.c: Likewise.
62743         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62744         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62745         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62746         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62747         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62748         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62749         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62750         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62751         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62752         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62753         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62754         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62755         * tests/uniname/test-uninames.c: Likewise.
62756         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62757         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62758         * tests/unistdio/test-u16-printf1.h: Likewise.
62759         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62760         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62761         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62762         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62763         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62764         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62765         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62766         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62767         * tests/unistdio/test-u32-printf1.h: Likewise.
62768         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62769         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62770         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62771         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62772         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62773         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62774         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62775         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62776         * tests/unistdio/test-u8-printf1.h: Likewise.
62777         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62778         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62779         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62780         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62781         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62782         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62783         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62784         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62785         * tests/unistdio/test-ulc-printf1.h: Likewise.
62786         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62787         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62788         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62789         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62790         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62791         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62792         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62793         * tests/uniwidth/test-u16-width.c: Likewise.
62794         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62795         * tests/uniwidth/test-u32-width.c: Likewise.
62796         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62797         * tests/uniwidth/test-u8-width.c: Likewise.
62798         * tests/uniwidth/test-uc_width.c: Likewise.
62799         * config/srclist-update: Likewise.
62800         (fixlicense): Update to GPLv3+.
62801
62802         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62803         * tests/test-tsearch.c: Change copyright notice.
62804
62805         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62806         * lib/c-strcaseeq.h: Change copyright notice.
62807         * lib/streq.h: Likewise.
62808         * lib/uniconv.h: Likewise.
62809         * lib/uniconv/u-conv-from-enc.h: Likewise.
62810         * lib/uniconv/u-conv-to-enc.h: Likewise.
62811         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62812         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62813         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62814         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62815         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62816         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62817         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62818         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62819         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62820         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62821         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62822         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62823         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62824         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62825         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62826         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62827         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62828         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62829         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62830         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62831         * lib/uniname.h: Likewise.
62832         * lib/uniname/uniname.c: Likewise.
62833         * lib/unistdio.h: Likewise.
62834         * lib/unistdio/u-asnprintf.h: Likewise.
62835         * lib/unistdio/u-asprintf.h: Likewise.
62836         * lib/unistdio/u-printf-args.c: Likewise.
62837         * lib/unistdio/u-printf-args.h: Likewise.
62838         * lib/unistdio/u-printf-parse.h: Likewise.
62839         * lib/unistdio/u-snprintf.h: Likewise.
62840         * lib/unistdio/u-sprintf.h: Likewise.
62841         * lib/unistdio/u-vasprintf.h: Likewise.
62842         * lib/unistdio/u-vsnprintf.h: Likewise.
62843         * lib/unistdio/u-vsprintf.h: Likewise.
62844         * lib/unistdio/u16-asnprintf.c: Likewise.
62845         * lib/unistdio/u16-asprintf.c: Likewise.
62846         * lib/unistdio/u16-printf-parse.c: Likewise.
62847         * lib/unistdio/u16-snprintf.c: Likewise.
62848         * lib/unistdio/u16-sprintf.c: Likewise.
62849         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62850         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62851         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62852         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62853         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62854         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62855         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62856         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62857         * lib/unistdio/u16-vasnprintf.c: Likewise.
62858         * lib/unistdio/u16-vasprintf.c: Likewise.
62859         * lib/unistdio/u16-vsnprintf.c: Likewise.
62860         * lib/unistdio/u16-vsprintf.c: Likewise.
62861         * lib/unistdio/u32-asnprintf.c: Likewise.
62862         * lib/unistdio/u32-asprintf.c: Likewise.
62863         * lib/unistdio/u32-printf-parse.c: Likewise.
62864         * lib/unistdio/u32-snprintf.c: Likewise.
62865         * lib/unistdio/u32-sprintf.c: Likewise.
62866         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62867         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62868         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62869         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62870         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62871         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62872         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62873         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62874         * lib/unistdio/u32-vasnprintf.c: Likewise.
62875         * lib/unistdio/u32-vasprintf.c: Likewise.
62876         * lib/unistdio/u32-vsnprintf.c: Likewise.
62877         * lib/unistdio/u32-vsprintf.c: Likewise.
62878         * lib/unistdio/u8-asnprintf.c: Likewise.
62879         * lib/unistdio/u8-asprintf.c: Likewise.
62880         * lib/unistdio/u8-printf-parse.c: Likewise.
62881         * lib/unistdio/u8-snprintf.c: Likewise.
62882         * lib/unistdio/u8-sprintf.c: Likewise.
62883         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62884         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62885         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62886         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62887         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62888         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62889         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62890         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62891         * lib/unistdio/u8-vasnprintf.c: Likewise.
62892         * lib/unistdio/u8-vasprintf.c: Likewise.
62893         * lib/unistdio/u8-vsnprintf.c: Likewise.
62894         * lib/unistdio/u8-vsprintf.c: Likewise.
62895         * lib/unistdio/ulc-asnprintf.c: Likewise.
62896         * lib/unistdio/ulc-asprintf.c: Likewise.
62897         * lib/unistdio/ulc-printf-parse.c: Likewise.
62898         * lib/unistdio/ulc-snprintf.c: Likewise.
62899         * lib/unistdio/ulc-sprintf.c: Likewise.
62900         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62901         * lib/unistdio/ulc-vasprintf.c: Likewise.
62902         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62903         * lib/unistdio/ulc-vsprintf.c: Likewise.
62904         * lib/unistr.h: Likewise.
62905         * lib/unistr/u-cpy-alloc.h: Likewise.
62906         * lib/unistr/u-cpy.h: Likewise.
62907         * lib/unistr/u-endswith.h: Likewise.
62908         * lib/unistr/u-move.h: Likewise.
62909         * lib/unistr/u-set.h: Likewise.
62910         * lib/unistr/u-startswith.h: Likewise.
62911         * lib/unistr/u-stpcpy.h: Likewise.
62912         * lib/unistr/u-stpncpy.h: Likewise.
62913         * lib/unistr/u-strcat.h: Likewise.
62914         * lib/unistr/u-strcpy.h: Likewise.
62915         * lib/unistr/u-strcspn.h: Likewise.
62916         * lib/unistr/u-strdup.h: Likewise.
62917         * lib/unistr/u-strlen.h: Likewise.
62918         * lib/unistr/u-strncat.h: Likewise.
62919         * lib/unistr/u-strncpy.h: Likewise.
62920         * lib/unistr/u-strnlen.h: Likewise.
62921         * lib/unistr/u-strpbrk.h: Likewise.
62922         * lib/unistr/u-strspn.h: Likewise.
62923         * lib/unistr/u-strstr.h: Likewise.
62924         * lib/unistr/u-strtok.h: Likewise.
62925         * lib/unistr/u16-check.c: Likewise.
62926         * lib/unistr/u16-chr.c: Likewise.
62927         * lib/unistr/u16-cmp.c: Likewise.
62928         * lib/unistr/u16-cpy-alloc.c: Likewise.
62929         * lib/unistr/u16-cpy.c: Likewise.
62930         * lib/unistr/u16-endswith.c: Likewise.
62931         * lib/unistr/u16-mblen.c: Likewise.
62932         * lib/unistr/u16-mbsnlen.c: Likewise.
62933         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62934         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62935         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62936         * lib/unistr/u16-mbtouc.c: Likewise.
62937         * lib/unistr/u16-mbtoucr.c: Likewise.
62938         * lib/unistr/u16-move.c: Likewise.
62939         * lib/unistr/u16-next.c: Likewise.
62940         * lib/unistr/u16-prev.c: Likewise.
62941         * lib/unistr/u16-set.c: Likewise.
62942         * lib/unistr/u16-startswith.c: Likewise.
62943         * lib/unistr/u16-stpcpy.c: Likewise.
62944         * lib/unistr/u16-stpncpy.c: Likewise.
62945         * lib/unistr/u16-strcat.c: Likewise.
62946         * lib/unistr/u16-strchr.c: Likewise.
62947         * lib/unistr/u16-strcmp.c: Likewise.
62948         * lib/unistr/u16-strcpy.c: Likewise.
62949         * lib/unistr/u16-strcspn.c: Likewise.
62950         * lib/unistr/u16-strdup.c: Likewise.
62951         * lib/unistr/u16-strlen.c: Likewise.
62952         * lib/unistr/u16-strmblen.c: Likewise.
62953         * lib/unistr/u16-strmbtouc.c: Likewise.
62954         * lib/unistr/u16-strncat.c: Likewise.
62955         * lib/unistr/u16-strncmp.c: Likewise.
62956         * lib/unistr/u16-strncpy.c: Likewise.
62957         * lib/unistr/u16-strnlen.c: Likewise.
62958         * lib/unistr/u16-strpbrk.c: Likewise.
62959         * lib/unistr/u16-strrchr.c: Likewise.
62960         * lib/unistr/u16-strspn.c: Likewise.
62961         * lib/unistr/u16-strstr.c: Likewise.
62962         * lib/unistr/u16-strtok.c: Likewise.
62963         * lib/unistr/u16-to-u32.c: Likewise.
62964         * lib/unistr/u16-to-u8.c: Likewise.
62965         * lib/unistr/u16-uctomb-aux.c: Likewise.
62966         * lib/unistr/u16-uctomb.c: Likewise.
62967         * lib/unistr/u32-check.c: Likewise.
62968         * lib/unistr/u32-chr.c: Likewise.
62969         * lib/unistr/u32-cmp.c: Likewise.
62970         * lib/unistr/u32-cpy-alloc.c: Likewise.
62971         * lib/unistr/u32-cpy.c: Likewise.
62972         * lib/unistr/u32-endswith.c: Likewise.
62973         * lib/unistr/u32-mblen.c: Likewise.
62974         * lib/unistr/u32-mbsnlen.c: Likewise.
62975         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62976         * lib/unistr/u32-mbtouc.c: Likewise.
62977         * lib/unistr/u32-mbtoucr.c: Likewise.
62978         * lib/unistr/u32-move.c: Likewise.
62979         * lib/unistr/u32-next.c: Likewise.
62980         * lib/unistr/u32-prev.c: Likewise.
62981         * lib/unistr/u32-set.c: Likewise.
62982         * lib/unistr/u32-startswith.c: Likewise.
62983         * lib/unistr/u32-stpcpy.c: Likewise.
62984         * lib/unistr/u32-stpncpy.c: Likewise.
62985         * lib/unistr/u32-strcat.c: Likewise.
62986         * lib/unistr/u32-strchr.c: Likewise.
62987         * lib/unistr/u32-strcmp.c: Likewise.
62988         * lib/unistr/u32-strcpy.c: Likewise.
62989         * lib/unistr/u32-strcspn.c: Likewise.
62990         * lib/unistr/u32-strdup.c: Likewise.
62991         * lib/unistr/u32-strlen.c: Likewise.
62992         * lib/unistr/u32-strmblen.c: Likewise.
62993         * lib/unistr/u32-strmbtouc.c: Likewise.
62994         * lib/unistr/u32-strncat.c: Likewise.
62995         * lib/unistr/u32-strncmp.c: Likewise.
62996         * lib/unistr/u32-strncpy.c: Likewise.
62997         * lib/unistr/u32-strnlen.c: Likewise.
62998         * lib/unistr/u32-strpbrk.c: Likewise.
62999         * lib/unistr/u32-strrchr.c: Likewise.
63000         * lib/unistr/u32-strspn.c: Likewise.
63001         * lib/unistr/u32-strstr.c: Likewise.
63002         * lib/unistr/u32-strtok.c: Likewise.
63003         * lib/unistr/u32-to-u16.c: Likewise.
63004         * lib/unistr/u32-to-u8.c: Likewise.
63005         * lib/unistr/u32-uctomb.c: Likewise.
63006         * lib/unistr/u8-check.c: Likewise.
63007         * lib/unistr/u8-chr.c: Likewise.
63008         * lib/unistr/u8-cmp.c: Likewise.
63009         * lib/unistr/u8-cpy-alloc.c: Likewise.
63010         * lib/unistr/u8-cpy.c: Likewise.
63011         * lib/unistr/u8-endswith.c: Likewise.
63012         * lib/unistr/u8-mblen.c: Likewise.
63013         * lib/unistr/u8-mbsnlen.c: Likewise.
63014         * lib/unistr/u8-mbtouc-aux.c: Likewise.
63015         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63016         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63017         * lib/unistr/u8-mbtouc.c: Likewise.
63018         * lib/unistr/u8-mbtoucr.c: Likewise.
63019         * lib/unistr/u8-move.c: Likewise.
63020         * lib/unistr/u8-next.c: Likewise.
63021         * lib/unistr/u8-prev.c: Likewise.
63022         * lib/unistr/u8-set.c: Likewise.
63023         * lib/unistr/u8-startswith.c: Likewise.
63024         * lib/unistr/u8-stpcpy.c: Likewise.
63025         * lib/unistr/u8-stpncpy.c: Likewise.
63026         * lib/unistr/u8-strcat.c: Likewise.
63027         * lib/unistr/u8-strchr.c: Likewise.
63028         * lib/unistr/u8-strcmp.c: Likewise.
63029         * lib/unistr/u8-strcpy.c: Likewise.
63030         * lib/unistr/u8-strcspn.c: Likewise.
63031         * lib/unistr/u8-strdup.c: Likewise.
63032         * lib/unistr/u8-strlen.c: Likewise.
63033         * lib/unistr/u8-strmblen.c: Likewise.
63034         * lib/unistr/u8-strmbtouc.c: Likewise.
63035         * lib/unistr/u8-strncat.c: Likewise.
63036         * lib/unistr/u8-strncmp.c: Likewise.
63037         * lib/unistr/u8-strncpy.c: Likewise.
63038         * lib/unistr/u8-strnlen.c: Likewise.
63039         * lib/unistr/u8-strpbrk.c: Likewise.
63040         * lib/unistr/u8-strrchr.c: Likewise.
63041         * lib/unistr/u8-strspn.c: Likewise.
63042         * lib/unistr/u8-strstr.c: Likewise.
63043         * lib/unistr/u8-strtok.c: Likewise.
63044         * lib/unistr/u8-to-u16.c: Likewise.
63045         * lib/unistr/u8-to-u32.c: Likewise.
63046         * lib/unistr/u8-uctomb-aux.c: Likewise.
63047         * lib/unistr/u8-uctomb.c: Likewise.
63048         * lib/unitypes.h: Likewise.
63049         * lib/uniwidth.h: Likewise.
63050         * lib/uniwidth/cjk.h: Likewise.
63051         * lib/uniwidth/u16-strwidth.c: Likewise.
63052         * lib/uniwidth/u16-width.c: Likewise.
63053         * lib/uniwidth/u32-strwidth.c: Likewise.
63054         * lib/uniwidth/u32-width.c: Likewise.
63055         * lib/uniwidth/u8-strwidth.c: Likewise.
63056         * lib/uniwidth/u8-width.c: Likewise.
63057         * lib/uniwidth/width.c: Likewise.
63058
63059 2007-10-07  Bruno Haible  <bruno@clisp.org>
63060
63061         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63062         The file is still under LGPL (see modules/inttypes).
63063
63064 2007-10-06  Bruno Haible  <bruno@clisp.org>
63065
63066         * modules/trunc (Dependencies): Add 'extensions'.
63067         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63068         Reported by Ben Pfaff <blp@gnu.org>.
63069
63070 2007-10-06  Bruno Haible  <bruno@clisp.org>
63071
63072         * modules/freopen-tests: New file.
63073         * tests/test-freopen.c: New file.
63074
63075         * modules/fopen-tests: New file.
63076         * tests/test-fopen.c: New file.
63077
63078         * modules/fopen: New file.
63079         * lib/fopen.c: New file.
63080         * m4/fopen.m4: New file.
63081         * modules/freopen: New file.
63082         * lib/freopen.c: New file.
63083         * m4/freopen.m4: New file.
63084         * lib/stdio.in.h (fopen, freopen): New declarations.
63085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63086         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63087         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63088         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63089         * doc/functions/fopen.texi: Mention the 'fopen' module.
63090         * doc/functions/freopen.texi: Mention the 'freopen' module.
63091
63092 2007-10-06  Bruno Haible  <bruno@clisp.org>
63093
63094         * modules/open-tests: New file.
63095         * tests/test-open.c: New file.
63096
63097         * modules/open: New file.
63098         * lib/open.c: New file.
63099         * m4/open.m4: New file.
63100         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63101         lib/open.c does.
63102         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63103         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63104         macros.
63105         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63106         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63107         REPLACE_OPEN.
63108         * doc/functions/open.texi: Mention the 'open' module.
63109
63110 2007-10-04  Bruno Haible  <bruno@clisp.org>
63111
63112         * modules/ceill-tests: New file.
63113         * tests/test-ceill.c: New file.
63114
63115         * modules/ceill: New file.
63116         * lib/ceill.c: Replace entire file.
63117         * m4/ceill.m4: New file.
63118         * lib/math.in.h (ceill): Replace declaration.
63119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63120         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63121         * doc/functions/ceill.texi: Mention the 'ceill' module.
63122         * modules/mathl (Files): Remove lib/ceill.c.
63123         (Depends-on): Add ceill.
63124
63125 2007-10-04  Bruno Haible  <bruno@clisp.org>
63126
63127         * modules/ceilf-tests: New file.
63128         * tests/test-ceilf.c: New file.
63129
63130         * modules/ceilf: New file.
63131         * lib/ceil.c: New file.
63132         * lib/ceilf.c: New file.
63133         * m4/ceilf.m4: New file.
63134         * lib/math.in.h (ceilf): New declaration.
63135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63136         HAVE_DECL_CEILF.
63137         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63138         HAVE_DECL_CEILF.
63139         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63140
63141 2007-10-04  Bruno Haible  <bruno@clisp.org>
63142
63143         * modules/floorl-tests: New file.
63144         * tests/test-floorl.c: New file.
63145
63146         * modules/floorl: New file.
63147         * lib/floorl.c: Replace entire file.
63148         * m4/floorl.m4: New file.
63149         * lib/math.in.h (floorl): Replace declaration.
63150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63151         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63152         * doc/functions/floorl.texi: Mention the 'floorl' module.
63153         * modules/mathl (Files): Remove lib/floorl.c.
63154         (Depends-on): Add floorl.
63155
63156 2007-10-04  Bruno Haible  <bruno@clisp.org>
63157
63158         * modules/floorf-tests: New file.
63159         * tests/test-floorf.c: New file.
63160
63161         * modules/floorf: New file.
63162         * lib/floor.c: New file.
63163         * lib/floorf.c: New file.
63164         * m4/floorf.m4: New file.
63165         * lib/math.in.h (floorf): New declaration.
63166         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63167         HAVE_DECL_FLOORF.
63168         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63169         HAVE_DECL_FLOORF.
63170         * doc/functions/floorf.texi: Mention the 'floorf' module.
63171
63172 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63173             Bruno Haible  <bruno@clisp.org>
63174
63175         Advertise for the Git server instead of the CVS server.
63176         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63177         repository instead of the CVS one.
63178         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63179         about all VCS systems generically.
63180         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63181
63182 2007-10-04  Bruno Haible  <bruno@clisp.org>
63183
63184         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63185         means.
63186         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63187
63188 2007-10-04  Bruno Haible  <bruno@clisp.org>
63189
63190         * modules/truncl-tests: New file.
63191         * tests/test-truncl.c: New file.
63192
63193         * modules/truncl: New file.
63194         * lib/truncl.c: New file.
63195         * m4/truncl.m4: New file.
63196         * lib/math.in.h (truncl): New declaration.
63197         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63198         HAVE_DECL_TRUNCL.
63199         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63200         HAVE_DECL_TRUNCL.
63201         * doc/functions/truncl.texi: Mention the 'truncl' module.
63202
63203 2007-10-04  Bruno Haible  <bruno@clisp.org>
63204
63205         * modules/truncf-tests: New file.
63206         * tests/test-truncf.c: New file.
63207
63208         * modules/truncf: New file.
63209         * lib/trunc.c: Make paramerizable through USE_* macros.
63210         * lib/truncf.c: New file.
63211         * m4/truncf.m4: New file.
63212         * lib/math.in.h (truncf): New declaration.
63213         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63214         HAVE_DECL_TRUNCF.
63215         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63216         HAVE_DECL_TRUNCF.
63217         * doc/functions/truncf.texi: Mention the 'truncf' module.
63218
63219 2007-10-03  Bruno Haible  <bruno@clisp.org>
63220
63221         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63222         augmentation also for tests modules.
63223         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63224         * modules/atexit-tests (Makefile.am): Likewise.
63225         * modules/binary-io-tests (Makefile.am): Likewise.
63226         * modules/c-strcase-tests (Makefile.am): Likewise.
63227         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63228         * modules/canonicalize-tests (Makefile.am): Likewise.
63229         * modules/closein-tests (Makefile.am): Likewise.
63230         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63231         * modules/freadahead-tests (Makefile.am): Likewise.
63232         * modules/fseek-tests (Makefile.am): Likewise.
63233         * modules/fseeko-tests (Makefile.am): Likewise.
63234         * modules/ftell-tests (Makefile.am): Likewise.
63235         * modules/ftello-tests (Makefile.am): Likewise.
63236         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63237         * modules/isnanl-tests (Makefile.am): Likewise.
63238         * modules/lseek-tests (Makefile.am): Likewise.
63239         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63240         * modules/mbscasestr-tests (Makefile.am): Likewise.
63241         * modules/mbschr-tests (Makefile.am): Likewise.
63242         * modules/mbscspn-tests (Makefile.am): Likewise.
63243         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63244         * modules/mbspbrk-tests (Makefile.am): Likewise.
63245         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63246         * modules/mbsrchr-tests (Makefile.am): Likewise.
63247         * modules/mbsspn-tests (Makefile.am): Likewise.
63248         * modules/mbsstr-tests (Makefile.am): Likewise.
63249         * modules/printf-posix-tests (Makefile.am): Likewise.
63250         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63251         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63252         * modules/tsearch-tests (Makefile.am): Likewise.
63253         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63254         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63255         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63256         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63257         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63258         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63259         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63260         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63261         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63262         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63263         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63264         * modules/xstrtol-tests (Makefile.am): Likewise.
63265         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63266         * modules/yesno-tests (Makefile.am): Likewise.
63267
63268 2007-10-03  Bruno Haible  <bruno@clisp.org>
63269
63270         * modules/trunc-tests: New file.
63271         * tests/test-trunc.c: New file.
63272
63273         * modules/trunc: New file.
63274         * lib/trunc.c: New file.
63275         * m4/trunc.m4: New file.
63276         * lib/math.in.h (trunc): New declaration.
63277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63278         HAVE_DECL_TRUNC.
63279         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63280         HAVE_DECL_TRUNC.
63281         * doc/functions/trunc.texi: Mention the 'trunc' module.
63282
63283 2007-10-03  Bruno Haible  <bruno@clisp.org>
63284
63285         * tests/test-fpending.c: New file, mostly copied
63286         from coreutils/lib/t-fpending.c.
63287         * modules/fpending-tests: New file.
63288
63289 2007-10-03  Bruno Haible  <bruno@clisp.org>
63290
63291         Port the stdio extensions to QNX (untested).
63292         * lib/fseterr.c (fseterr): Add support for QNX.
63293         * lib/fbufmode.c (fbufmode): Likewise.
63294         * lib/freadable.c (freadable): Likewise.
63295         * lib/fwritable.c (fwritable): Likewise.
63296         * lib/freading.c (freading): Likewise.
63297         * lib/fwriting.c (fwriting): Likewise.
63298         * lib/freadahead.c (freadahed): Likewise.
63299         * lib/fpurge.c (fpurge): Likewise.
63300         * lib/fseeko.c (rpl_fseeko): Likewise.
63301
63302 2007-10-03  Bruno Haible  <bruno@clisp.org>
63303             Jim Meyering  <jim@meyering.net>
63304             Eric Blake  <ebb9@byu.net>
63305
63306         * doc/relocatable.texi: Use @command instead of @program.
63307
63308 2007-10-02  Jim Meyering  <jim@meyering.net>
63309
63310         Perform one more "_.h" -> ".in.h" substitution.
63311         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63312         instead of unistd_.h here, too.
63313
63314 2007-10-01  Bruno Haible  <bruno@clisp.org>
63315
63316         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63317         Needed for the alloca-opt module.
63318
63319 2007-09-30  Bruno Haible  <bruno@clisp.org>
63320
63321         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63322         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63323         alloca_.h.
63324         * lib/argz.in.h: Renamed from lib/argz_.h.
63325         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63326         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63327         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63328         byteswap_.h.
63329         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63330         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63331         dirent_.h.
63332         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63333         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63334         fcntl_.h.
63335         * lib/float.in.h: Renamed from lib/float_.h.
63336         * modules/float (Files, Makefile.am): Use float.in.h instead of
63337         float_.h.
63338         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63339         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63340         fnmatch_.h.
63341         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63342         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63343         getopt_.h.
63344         * lib/glob.in.h: Renamed from lib/glob_.h.
63345         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63346         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63347         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63348         iconv_.h.
63349         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63350         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63351         inttypes_.h.
63352         * lib/locale.in.h: Renamed from lib/locale_.h.
63353         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63354         locale_.h.
63355         * lib/math.in.h: Renamed from lib/math_.h.
63356         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63357         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63358         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63359         of netinet_in_.h. Add dependency.
63360         * lib/poll.in.h: Renamed from lib/poll_.h.
63361         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63362         * lib/search.in.h: Renamed from lib/search_.h.
63363         * modules/search (Files, Makefile.am): Use search.in.h instead of
63364         search_.h.
63365         * lib/signal.in.h: Renamed from lib/signal_.h.
63366         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
63367         _signal.h.
63368         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
63369         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
63370         stdbool_.h.
63371         * lib/stdint.in.h: Renamed from lib/stdint_.h.
63372         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
63373         stdint_.h.
63374         * lib/stdio.in.h: Renamed from lib/stdio_.h.
63375         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
63376         stdio_.h.
63377         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
63378         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
63379         stdlib_.h.
63380         * lib/string.in.h: Renamed from lib/string_.h.
63381         * modules/string (Files, Makefile.am): Use string.in.h instead of
63382         string_.h.
63383         * doc/gnulib-tool.texi (Initial import): Update.
63384         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
63385         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
63386         of sys_select_.h. Add dependency.
63387         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
63388         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
63389         of sys_socket_.h.
63390         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
63391         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
63392         sys_stat_.h.
63393         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
63394         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
63395         sys_time_.h.
63396         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
63397         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
63398         sysexits_.h.
63399         * lib/time.in.h: Renamed from lib/time_.h.
63400         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
63401         * lib/unistd.in.h: Renamed from lib/unistd_.h.
63402         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
63403         unistd_.h.
63404         * lib/wchar.in.h: Renamed from lib/wchar_.h.
63405         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
63406         wchar_.h.
63407         * lib/wctype.in.h: Renamed from lib/wctype_.h.
63408         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
63409         wctype_.h.
63410         * build-aux/bootstrap (slurp): Update.
63411         * lib/.cppi-disable: Update.
63412
63413 2007-09-30  Bruno Haible  <bruno@clisp.org>
63414
63415         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
63416         Needed on BeOS.
63417
63418 2007-09-30  Bruno Haible  <bruno@clisp.org>
63419
63420         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63421
63422 2007-09-29  Bruno Haible  <bruno@clisp.org>
63423
63424         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63425
63426 2007-09-29  Bruno Haible  <bruno@clisp.org>
63427
63428         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63429         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63430         * build-aux/install-reloc: Compile also areadlink.c.
63431         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63432
63433 2007-09-29  Bruno Haible  <bruno@clisp.org>
63434
63435         * gnulib-tool (func_emit_initmacro_done): Indentation.
63436
63437 2007-09-29  Bruno Haible  <bruno@clisp.org>
63438
63439         * README: Add CVS checkout update instructions.
63440         Info from Bob Proulx <bob@proulx.com>.
63441
63442 2007-09-28  Eric Blake  <ebb9@byu.net>
63443
63444         Provide move-if-change.
63445         * build-aux/move-if-change: New file, based on best practice
63446         rather than any canonical upstream location.
63447
63448 2007-09-28  Jim Meyering  <jim@meyering.net>
63449
63450         Fix canonicalize loop-detection corner case.
63451         Do not attempt to stat the symlink values stored via seen_triple.
63452         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
63453         on linux-2.6.18, (but not 2.6.22).
63454         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
63455         triple_compare.  The former compares dev,ino,filename, while the latter
63456         would actually stat dirname(filename) when dev and ino were equal.
63457         * lib/hash-triple.c: Install <string.h>.
63458         (STREQ): Define.
63459         (triple_compare_ino_str): New function.
63460         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
63461
63462 2007-09-28  Eric Blake  <ebb9@byu.net>
63463
63464         Enforce that AC_REPLACE_FUNCS files exist.
63465         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63466         override check for typos.
63467
63468         Fix test-closein on Solaris 10.
63469         * tests/test-closein.c (main): Don't assume stdin can be inherited
63470         closed on all systems.
63471         * tests/test-closein.sh: Likewise.
63472         Reported by Piotr Tarnowski.
63473
63474 2007-09-28  Jim Meyering  <jim@meyering.net>
63475
63476         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
63477
63478 2007-09-27  Jim Meyering  <jim@meyering.net>
63479
63480         canonicalize: Avoid a false-positive cycle failure.
63481         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
63482         Sort.  Remove cycle-check.
63483         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
63484         not cycle-check.h.
63485         (seen_triple): New function.
63486         (canonicalize_filename_mode): Use it instead of cycle-check.
63487         * tests/test-canonicalize.c: Add a test for this bug.
63488         * tests/test-canonicalize.sh: Set up and run the test.
63489
63490         New module, file-set, from coreutils.
63491         * modules/file-set: Define it.
63492         * lib/file-set.c, lib/file-set.h: Implement.
63493
63494         New module, hash-triple, from coreutils.
63495         * modules/hash-triple: Define it.
63496         * lib/hash-triple.c, lib/hash-triple.h: Implement.
63497
63498 2007-09-25  Eric Blake  <ebb9@byu.net>
63499
63500         Fix strerror on Interix.
63501         * lib/string_.h (strerror): Declare replacement.
63502         * doc/functions/strerror.texi (strerror): Document the Interix
63503         shortcoming.
63504         * modules/string (Makefile.am): Support new hooks.
63505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
63506         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
63507         gl_FUNC_STRERROR_SEPARATE.
63508         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
63509         * lib/strerror.c (rpl_strerror): Provide replacement.
63510         * modules/strerror (Depends-on): Add string.
63511         (configure.ac): Detect use of module.
63512         * tests/test-strerror.c: New file.
63513         * modules/strerror-tests: New test module.
63514         * modules/argp (Depends-on): Add strerror.
63515         * modules/error (Depends-on): Likewise.
63516         Reported by Martin Koeppe.
63517
63518 2007-09-24  Bruno Haible  <bruno@clisp.org>
63519
63520         * README: Update git instructions.
63521
63522 2007-09-24  Eric Blake  <ebb9@byu.net>
63523
63524         Revert fpending breakage from 2007-09-08.
63525         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63526         __fpending.c.
63527
63528 2007-09-24  Jim Meyering  <jim@meyering.net>
63529
63530         filenamecat.c: Add a test.
63531         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63532         showing how the function works when DIR is the empty string.
63533
63534 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63535
63536         * tests/test-canonicalize.sh: Turn on executable bit.
63537
63538 2007-09-19  Eric Blake  <ebb9@byu.net>
63539
63540         * README: Update CVS instructions.
63541
63542 2007-09-18  Bruno Haible  <bruno@clisp.org>
63543
63544         * modules/areadlink: New file.
63545         * lib/areadlink.h (areadlink): New declaration.
63546         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63547
63548 2007-09-17  Jim Meyering  <jim@meyering.net>
63549
63550         * lib/savewd.c (ESTALE) [!defined]: Define.
63551         Reported to be required on Interix by Martin Koeppe.
63552
63553 2007-09-17  Bruno Haible  <bruno@clisp.org>
63554
63555         * gnulib-tool (func_version): Use $version.
63556
63557 2007-09-16  Bruno Haible  <bruno@clisp.org>
63558
63559         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63560         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63561         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63562         Reported by Greg Schafer <gschafer@zip.com.au>.
63563
63564 2007-09-15  Bruno Haible  <bruno@clisp.org>
63565
63566         * gnulib-tool (sed): Try a little harder to make bash understand the
63567         alias.
63568         Reported by Bruce Korb <bruce.korb@gmail.com>.
63569
63570 2007-09-13  Eric Blake  <ebb9@byu.net>
63571
63572         * ChangeLog: Remove conflict markers.
63573
63574 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63575
63576         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63577         Reported by Bruno Haible <bruno@clisp.org>.
63578
63579 2007-09-12  Bruno Haible  <bruno@clisp.org>
63580
63581         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63582         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63583         is not defined.
63584
63585 2007-09-12  Eric Blake  <ebb9@byu.net>
63586
63587         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63588         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63589         Autoconf definition.
63590         * modules/euidaccess (Depends-on): Add extensions, for
63591         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63592         * modules/fnmatch (Depends-on): Likewise.
63593         * modules/getaddrinfo (Depends-on): Likewise.
63594         * modules/getdelim (Depends-on): Likewise.
63595         * modules/getline (Depends-on): Likewise.
63596         * modules/getsubopt (Depends-on): Likewise.
63597         * modules/gettext (Depends-on): Likewise.
63598         * modules/group-member (Depends-on): Likewise.
63599         * modules/mbchar (Depends-on): Likewise.
63600         * modules/memmem (Depends-on): Likewise.
63601         * modules/mempcpy (Depends-on): Likewise.
63602         * modules/memrchr (Depends-on): Likewise.
63603         * modules/pagealign_alloc (Depends-on): Likewise.
63604         * modules/readutmp (Depends-on): Likewise.
63605         * modules/stpcpy (Depends-on): Likewise.
63606         * modules/stpncpy (Depends-on): Likewise.
63607         * modules/strchrnul (Depends-on): Likewise.
63608         * modules/strndup (Depends-on): Likewise.
63609         * modules/strsep (Depends-on): Likewise.
63610         * modules/strverscmp (Depends-on): Likewise.
63611         * modules/vasprintf (Depends-on): Likewise.
63612         * modules/wcwidth (Depends-on): Likewise.
63613         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63614         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63615         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63616         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63617         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63618         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63619         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63620         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63621         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63622         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63623         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63624         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63625         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63626         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63627         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63628         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63629         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63630         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63631         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63632         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63633         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63634         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63635         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63636         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63637         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63638         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63639         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63640         so that lock.m4 can be used in gettext without extensions module.
63641
63642 2007-09-11  Bruno Haible  <bruno@clisp.org>
63643
63644         * m4/isc-posix.m4: Remove file.
63645         Suggested by Eric Blake.
63646
63647 2007-09-11  Eric Blake  <ebb9@byu.net>
63648
63649         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63650
63651 2007-09-10  Bruno Haible  <bruno@clisp.org>
63652
63653         * posix-modules: Fix typo in error message.
63654         Reported by Matt <mkraai@beckman.com>.
63655
63656 2007-09-09  Bruno Haible  <bruno@clisp.org>
63657
63658         * doc/functions/getdelim.texi: Update list of platforms lacking the
63659         function.
63660         * doc/functions/getline.texi: Likewise.
63661
63662 2007-09-09  Jim Meyering  <jim@meyering.net>
63663
63664         * lib/hash.c (hash_initialize): Detect calloc failure.
63665         Reported by Bruno Haible.
63666
63667 2007-09-09  Bruno Haible  <bruno@clisp.org>
63668
63669         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63670         malloc or realloc fails.
63671
63672 2007-09-09  Bruno Haible  <bruno@clisp.org>
63673
63674         * modules/getcwd (Depends-on): Add malloc-posix.
63675         * modules/glob (Depends-on): Likewise.
63676         * modules/putenv (Depends-on): Likewise.
63677         * modules/strdup (Depends-on): Likewise.
63678         * modules/getdelim (Depends-on): Add realloc-posix.
63679         * modules/read-file (Depends-on): Likewise.
63680
63681 2007-09-09  Bruno Haible  <bruno@clisp.org>
63682
63683         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63684         (gl_FUNC_MALLOC_POSIX): Require it.
63685         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63686         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63687         * modules/realloc (Files): Add m4/malloc.m4.
63688         * modules/calloc (Files): Likewise.
63689
63690 2007-09-09  Bruno Haible  <bruno@clisp.org>
63691
63692         * modules/malloc-posix: New file.
63693         * modules/malloc (Depends-on): Add malloc-posix.
63694         * lib/malloc.c: Include errno.h.
63695         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63696         and a POSIX-compatible malloc into a single function. Set ENOMEM
63697         when returning NULL.
63698         * m4/malloc.m4: New file.
63699         * doc/functions/malloc.texi: Mention the malloc-posix module.
63700         * lib/stdlib_.h (malloc): New declaration.
63701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63702         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63703         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63704         and HAVE_MALLOC_POSIX.
63705
63706 2007-09-09  Bruno Haible  <bruno@clisp.org>
63707
63708         * modules/realloc-posix: New file.
63709         * modules/realloc (Depends-on): Add realloc-posix.
63710         * lib/realloc.c: Include errno.h.
63711         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63712         and a POSIX-compatible realloc into a single function. Set ENOMEM
63713         when returning NULL.
63714         * m4/realloc.m4: New file.
63715         * doc/functions/realloc.texi: Mention the realloc-posix module.
63716         * lib/stdlib_.h (realloc): New declaration.
63717         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63718         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63719         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63720         and HAVE_REALLOC_POSIX.
63721
63722 2007-09-09  Bruno Haible  <bruno@clisp.org>
63723
63724         * modules/calloc-posix: New file.
63725         * modules/calloc (Depends-on): Add calloc-posix.
63726         * lib/calloc.c: Include errno.h.
63727         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63728         and a POSIX-compatible calloc into a single function. Set ENOMEM
63729         when returning NULL.
63730         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63731         * doc/functions/calloc.texi: Mention the calloc-posix module.
63732         * lib/stdlib_.h (calloc): New declaration.
63733         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63734         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63735         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63736         and HAVE_CALLOC_POSIX.
63737
63738 2007-09-09  Bruno Haible  <bruno@clisp.org>
63739
63740         Allow for modules to show an arbitrary notice.
63741         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63742         * gnulib-tool: New option --extract-notice.
63743         (func_usage): Document it.
63744         (sed_extract_prog): Update.
63745         (func_get_notice): New function.
63746         (func_modules_notice): New function.
63747         (func_import, func_create_testdir): Invoke it.
63748         Suggested by Jim Meyering.
63749
63750 2007-09-09  Bruno Haible  <bruno@clisp.org>
63751
63752         * gnulib-tool: New options --verbose, --quiet.
63753         (func_usage): Document them.
63754         (verbose): New variable.
63755         (func_execute_command): New function.
63756         (func_import): Don't show the module list and the file list if
63757         $verbose < 0.
63758         (func_create_testdir): Likewise. Use func_execute_command.
63759         (func_create_megatestdir): Use func_execute_command.
63760
63761 2007-09-08  Bruno Haible  <bruno@clisp.org>
63762
63763         * gnulib-tool (func_import): Prefer rsync over wget when available,
63764         for fetching the PO files.
63765
63766 2007-09-08  Bruno Haible  <bruno@clisp.org>
63767
63768         * posix-modules: New file. Portions copied from gnulib-tool.
63769         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63770
63771 2007-09-08  Jim Meyering  <jim@meyering.net>
63772
63773         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63774         * lib/fpending.h: Rename from __fpending.h.
63775         * lib/fpending.c: Rename from __fpending.c.
63776         Include "fpending.h", not "__fpending.h".
63777         * lib/__fpending.h, lib/__fpending.c: Remove files.
63778         * modules/fpending (Files): Reflect new file names.
63779         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63780
63781 2007-09-08  Bruno Haible  <bruno@clisp.org>
63782
63783         * m4/inttypes-h.m4: Remove stub file.
63784
63785 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63786
63787         * doc/headers/stdint.texi: Discuss #include_next issue.
63788
63789 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63790
63791         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63792
63793 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63794
63795         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63796         in variable name.
63797
63798 2007-09-03  Jim Meyering  <jim@meyering.net>
63799
63800         New module: git-version-gen.
63801         * modules/git-version-gen: New file.
63802
63803         Import changes from coreutils for bootstrap script.
63804
63805         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63806
63807         bootstrap: uses rsync to download the .po files
63808         * build-aux/bootstrap (po_download_command_format): New global.
63809         (download_po_files): Use rsync.
63810         (update_po_files): Don't remove .po files after download,
63811         so future rsync runs can take advantage of the copies.
63812
63813         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63814
63815         Solve the unnecessary-.po-file-regeneration problem once and for all.
63816         * build-aux/bootstrap (download_po_files): New function, renamed from
63817         get_translations.  Now, downloads, but doesn't update LINGUAS.
63818         (update_po_files): New function.
63819
63820         bootstrap: Ignore more.
63821         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63822         uniwidth to e.g., lib/.gitignore.
63823         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63824
63825         * build-aux/bootstrap: New setting: vc_ignore.
63826         (insert_sorted_if_absent): Create $file if absent.
63827         Adapt to new, possibly empty, list: $vc_ignore.
63828
63829         bootstrap: generate more ignorable names
63830         * build-aux/bootstrap (slurp): When generating ignorable names,
63831         also map .sin to .sed, .gperf to .c, and .y to .c.
63832
63833 2007-09-03  Jim Meyering  <jim@meyering.net>
63834
63835         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63836         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63837
63838 2007-09-02  Bruno Haible  <bruno@clisp.org>
63839
63840         Fix mis-recognition of 'mcs' on QNX 6.
63841         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63842         output contains the string "Mono".
63843         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63844         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63845
63846 2007-09-01  Bruno Haible  <bruno@clisp.org>
63847
63848         Fix collision between uniwidth/* and linebreak modules.
63849         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63850         u32_width): Remove declarations.
63851         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63852         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63853         streq3, streq2, streq1, streq0): Remove functions.
63854         (STREQ): Remove macro.
63855         (is_cjk_encoding): Remove function.
63856         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63857         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63858         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63859         * NEWS: Document the change.
63860
63861 2007-09-01  Bruno Haible  <bruno@clisp.org>
63862
63863         * lib/streq.h: Add double-inclusion guard.
63864
63865 2007-09-01  Karl Berry  <karl@gnu.org>
63866
63867         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63868
63869 2007-08-28  Jim Meyering  <jim@meyering.net>
63870
63871         Rename mreadlink_with_size to areadlink_with_size.
63872         * NEWS: Document the change.
63873         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63874         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63875         * lib/mreadlink.h: Rename this to...
63876         * lib/areadlink.h: ...this.
63877         * modules/mreadlink-with-size: Rename this to...
63878         * modules/areadlink-with-size: ...this.
63879         * lib/canonicalize.c: Reflect the renaming.
63880         * modules/canonicalize: Likewise.
63881
63882 2007-08-26  Bruno Haible  <bruno@clisp.org>
63883
63884         * gnulib-tool (func_import): When deciding which files to remove,
63885         consider also dangling symbolic links.
63886         Reported by Eric Blake.
63887
63888 2007-08-26  Bruno Haible  <bruno@clisp.org>
63889
63890         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63891
63892 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63893
63894         * lib/readline.c: Don't include getline.h, the prototype is now
63895         found in stdio.h.
63896
63897 2007-08-23  Jim Meyering  <jim@meyering.net>
63898
63899         Getdelim touchup.
63900         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63901         around the funlockfile call, since funlockfile never sets errno.
63902         Don't set errno upon failed realloc.
63903
63904 2007-08-22  Eric Blake  <ebb9@byu.net>
63905
63906         Getline touchups.
63907         * lib/getdelim.c (getdelim): Revert regression that required *n to
63908         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63909         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63910         getdelim, rather than whether implementation is missing.
63911         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63912         * lib/stdio_.h (getline): Also declare if replacement is
63913         required.
63914         * doc/functions/getdelim.texi: New file.
63915         * doc/functions/getline.texi: Likewise.
63916         * doc/gnulib.texi (Function Substitutes): Add new files.
63917         Reported by Bruno Haible.
63918
63919 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63920
63921         * users.txt: Add Guile.
63922
63923 2007-08-22  Eric Blake  <ebb9@byu.net>
63924
63925         * tests/test-getdelim.c (main): Use remove, not unlink.
63926         * tests/test-getline.c (main): Likewise.
63927
63928         Move getline and getdelim into stdio.h, per POSIX 200x.
63929         * modules/getline (Files): Remove getline.h.
63930         (Depends-on): Add stdio.
63931         (configure.ac): Add module indicator.
63932         * modules/getdelim (Files): Remove getdelim.h.
63933         (Depends-on): Add stdio.
63934         (configure.ac): Add module indicator.
63935         * modules/stdio (Makefile.am): Work with new indicators.
63936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63937         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63938         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63939         * lib/getdelim.h: Delete.
63940         * lib/getline.h: Delete.
63941         * lib/stdio_.h (getdelim, getline): Declare.
63942         * modules/getdelim-tests: New module.
63943         * modules/getline-tests: Likewise.
63944         * tests/test-getdelim.c: New file.
63945         * tests/test-getline.c: Likewise.
63946         * NEWS: Document the change.
63947         * lib/getline.c: Update choice of header.
63948         * lib/csharpcomp.c: Likewise.
63949         * lib/getpass.c: Likewise.
63950         * lib/javacomp.c: Likewise.
63951         * lib/javaversion.c: Likewise.
63952         * lib/yesno.c: Likewise.
63953         * lib/getdelim.c: Likewise.
63954         (getdelim): Set errno on failure, and avoid memory leak.
63955
63956 2007-08-19  Bruno Haible  <bruno@clisp.org>
63957
63958         * modules/closein (Depends-on): Add freadahead.
63959         * lib/closein.c: Include freadahead.h.
63960         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63961         is zero.
63962
63963 2007-08-19  Bruno Haible  <bruno@clisp.org>
63964
63965         * modules/freadahead-tests: New file.
63966         * tests/test-freadahead.sh: New file.
63967         * tests/test-freadahead.c: New file.
63968
63969         * modules/freadahead: New file.
63970         * lib/freadahead.h: New file.
63971         * lib/freadahead.c: New file.
63972         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63973         fbufmode, fpurge, freadable, fwritable.
63974
63975 2007-08-19  Eric Blake  <ebb9@byu.net>
63976
63977         Test yesno in combination with closein.
63978         * lib/yesno.c (yesno): Document use of stdin.
63979         * modules/yesno-tests (Files): New module.
63980         * tests/test-yesno.c (main): New file.
63981         * tests/test-yesno.sh: Likewise.
63982
63983 2007-08-19  Bruno Haible  <bruno@clisp.org>
63984
63985         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63986         * lib/fseeko.c (rpl_fseeko): Likewise.
63987         * lib/fseterr.c (fseterr): Likewise.
63988
63989 2007-08-19  Bruno Haible  <bruno@clisp.org>
63990
63991         * tests/test-lseek.c (main): Disable a test for BeOS.
63992         * doc/functions/lseek.texi: Document the BeOS bug.
63993
63994 2007-08-19  Bruno Haible  <bruno@clisp.org>
63995             Eric Blake  <ebb9@byu.net>
63996
63997         * lib/lseek.c: Include <sys/stat.h>.
63998         (rpl_lseek): Add workaround code also for Unix platforms.
63999         Needed for BeOS.
64000         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
64001         * doc/functions/lseek.texi: Document BeOS definiency.
64002
64003 2007-08-18  Bruno Haible  <bruno@clisp.org>
64004
64005         * modules/fstrcmp-tests: New file.
64006         * tests/test-fstrcmp.c: New file.
64007
64008 2007-08-18  Bruno Haible  <bruno@clisp.org>
64009
64010         * modules/fstrcmp: New file, from GNU gettext with modifications.
64011         * lib/fstrcmp.h: New file, from GNU gettext.
64012         * lib/fstrcmp.c: New file, from GNU gettext.
64013         * MODULES.html.sh (String handling): Add fstrcmp.
64014
64015 2007-08-18  Bruno Haible  <bruno@clisp.org>
64016
64017         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64018         'bool'.
64019         (diag, compareseq): Remove const from the ctxt argument.
64020         (USE_HEURISTIC): Undefine at the end.
64021
64022 2007-08-18  Jim Meyering  <jim@meyering.net>
64023
64024         New file: lib/idcache.h
64025         * NEWS: Mention the addition.
64026         * modules/idcache (Files): Add lib/idcache.h
64027         * lib/idcache.c: Include "idcache.h".
64028         Don't include <sys/types.h>.
64029         Add a FIXME comment.
64030         Move file-scoped "static" declarations to the top.
64031         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
64032
64033 2007-08-17  Bruno Haible  <bruno@clisp.org>
64034         and Paul Eggert  <eggert@cs.ucla.edu>
64035
64036         * MODULES.html.sh: Add diffseq.
64037         * modules/diffseq: New file.
64038         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64039         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64040
64041 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64042
64043         Import changes from coreutils for bootstrap script.
64044
64045         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64046
64047         * build-aux/bootstrap (slurp): Work even in environments where
64048         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64049         current code does not slurp files whose names start with ".", and
64050         this looks like it might be a troublesome area.
64051
64052         2007-07-11  Jim Meyering  <jim@meyering.net>
64053
64054         If there's a GPL vN copyright comment, require that N == 3.
64055
64056         2007-07-08  Jim Meyering  <jim@meyering.net>
64057
64058         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64059         * build-aux/bootstrap (mam_template): Move definition out of loop.
64060
64061         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64062
64063         * build-aux/bootstrap (symlink_to_dir): Rename function from
64064         symlink_to_gnulib.  Add a directory parameter.  Update all
64065         callers.
64066         (cp_mark_as_generated): Also check for -- and link to -- files in
64067         gl/.
64068
64069         2007-07-08  Jim Meyering  <jim@meyering.net>
64070
64071         Adapt to deeper hierarchy in gnulib.
64072         * build-aux/bootstrap (symlink_to_dir): If the destination
64073         directory doesn't exist, create it. This is required at least for
64074         "lib/uniwidth/cjk.h".
64075
64076         2007-05-15  Jim Meyering  <jim@meyering.net>
64077
64078         * build-aux/bootstrap: Now that generated Makefile.am files
64079         are no longer under version control, they must be created at
64080         bootstrap time.
64081
64082 2007-08-14  Ben Pfaff  <blp@gnu.org>
64083
64084         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64085
64086 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64087
64088         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64089         given the changes below.
64090         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64091         even on hosts that have padding bits beyond the supported 64.
64092
64093 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64094
64095         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64096         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64097         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64098         depends on it.
64099         (xstrtol_error): Remove.
64100         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64101         but with a different signature.
64102         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64103         * lib/xstrtol-error.c: Include exitfail.h.
64104         (xstrtol_fatal): New function, with a different signature from the
64105         old xstrtol_error, so that the caller need not worry about passing
64106         in an exit status, or about storage management of the option argument.
64107         (xstrtol_error): Now a static function.  Redo signature to
64108         implement xstrtol_fatal.  Output the correct number of hyphens in
64109         front of the option so that the caller need not worry about
64110         storage management.
64111         (N_): New macro.
64112         (_): Remove; not used now.
64113         * modules/xstrtol: Depend on getopt.
64114         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64115         of old STRTOL_FATAL_ERROR macro.
64116         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64117         of test program.
64118         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64119         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64120
64121 2007-08-08  Eric Blake  <ebb9@byu.net>
64122
64123         * lib/xstrtol-error.c: Add missing include.
64124
64125         Move xstrtol messages into gnulib domain, when --pobase is used.
64126         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64127         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64128         * modules/xstrtol (Files): Distribute new file.
64129         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64130         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64131         * tests/test-xstrtol.c: ...into new file.
64132         * tests/test-xstrtoul.c: Also test xstrtoul.
64133         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64134         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64135         * tests/test-xstrtol.sh: Drive the tests.
64136         * tests/test-xstrtoimax.sh: Likewise.
64137         * tests/test-xstrtoumax.sh: Likewise.
64138         * modules/xstrtol-tests: New module.
64139         * modules/xstrtoimax-tests: Likewise.
64140         * modules/xstrtoumax-tests: Likewise.
64141
64142 2007-08-08  Jim Meyering  <jim@meyering.net>
64143
64144         New function: mfile_name_concat.
64145         * lib/filenamecat.c (mfile_name_concat): New function, just like
64146         file_name_concat, but return NULL upon failure rather than exiting
64147         with a diagnostic.
64148         * lib/filenamecat.h: Declare it.
64149
64150 2007-08-07  Bruno Haible  <bruno@clisp.org>
64151
64152         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64153         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64154         warning from gcc.
64155         Reported by Eric Blake.
64156
64157 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64158
64159         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64160         * modules/crypto/arcfour (License): Likewise.
64161         * modules/crypto/des-tests (License): Likewise.
64162         * modules/crypto/gc-arctwo-tests (License): Likewise.
64163         * modules/crypto/gc-des-tests (License): Likewise.
64164         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64165         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64166         * modules/crypto/gc-md2-tests (License): Likewise.
64167         * modules/crypto/gc-md4-tests (License): Likewise.
64168         * modules/crypto/gc-md5-tests (License): Likewise.
64169         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64170         * modules/crypto/gc-rijndael-tests (License): Likewise.
64171         * modules/crypto/gc-sha1-tests (License): Likewise.
64172         * modules/crypto/gc-tests (License): Likewise.
64173         * modules/crypto/hmac-md5 (License): Likewise.
64174         * modules/crypto/hmac-sha1 (License): Likewise.
64175         * modules/crypto/md2-tests (License): Likewise.
64176         * modules/crypto/md4-tests (License): Likewise.
64177         * modules/crypto/md5 (License): Likewise.
64178         * modules/crypto/rijndael (License): Likewise.
64179         * modules/crypto/sha1 (License): Likewise.
64180         * modules/memxor (License): Likewise.
64181
64182 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64183         and Bruno Haible  <bruno@clisp.org>
64184
64185         * NEWS: Describe interface changes to human, xstrtol.
64186         * lib/human.h: Include <xstrtol.h>.
64187         (human_options): Return enum strtol_error, not int.  Remove
64188         bool arg; take int * instead.
64189         * lib/human.c: Don't include "gettext.h".
64190         (_): Remove; no longer used.
64191         Don't include <xstrtol.h>, since human.h does it.
64192         (human_options): Adjust to abovementioned interface changes.
64193         Do not report error to stderr; that's now the caller's
64194         responsibility.
64195         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64196         interface change.
64197         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64198         Str, Argument_type_string.  All uses changed.  Put " argument"
64199         in diagnostics to make them clearer.  Change wording of suffix
64200         message for clarity.
64201         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64202         Argument_type_string.
64203         (STRTOL_FATAL_WARN): Remove; no longer used.
64204         * modules/human (Depends-on): Remove gettext-h.
64205
64206 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64207
64208         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64209
64210 2007-07-31  Bruno Haible  <bruno@clisp.org>
64211
64212         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64213         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64214         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64215
64216 2007-07-31  Bruno Haible  <bruno@clisp.org>
64217
64218         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64219         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64220
64221 2007-07-30  Bruno Haible  <bruno@clisp.org>
64222
64223         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64224         * modules/c-ctype (License): Likewise.
64225         * modules/c-strcase (License): Likewise.
64226         * modules/check-version (License): Likewise.
64227         * modules/iconv (License): Likewise.
64228         * modules/iconv_open (License): Likewise.
64229         * modules/read-file (License): Likewise.
64230         * modules/striconv (License): Likewise.
64231         * modules/strverscmp (License): Likewise.
64232         * modules/vasprintf (License): Likewise.
64233         * modules/crypto/des (License): Likewise.
64234         * modules/crypto/gc (License): Likewise.
64235         * modules/crypto/gc-arcfour (License): Likewise.
64236         * modules/crypto/gc-arctwo (License): Likewise.
64237         * modules/crypto/gc-des (License): Likewise.
64238         * modules/crypto/gc-hmac-md5 (License): Likewise.
64239         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64240         * modules/crypto/gc-md2 (License): Likewise.
64241         * modules/crypto/gc-md4 (License): Likewise.
64242         * modules/crypto/gc-md5 (License): Likewise.
64243         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64244         * modules/crypto/gc-random (License): Likewise.
64245         * modules/crypto/gc-rijndael (License): Likewise.
64246         * modules/crypto/gc-sha1 (License): Likewise.
64247         * modules/crypto/md2 (License): Likewise.
64248         * modules/crypto/md4 (License): Likewise.
64249
64250 2007-07-30  Jim Meyering  <jim@meyering.net>
64251
64252         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64253         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64254         it has valid stat data.  This bug would cause du not to count the
64255         sizes of inaccessible directories.
64256         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64257         in <http://bugzilla.redhat.com/250077>.
64258
64259 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64260             Bruno Haible  <bruno@clisp.org>
64261
64262         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64263         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64264         #include_next, gives a diagnostic about it, but reports no error in
64265         the exit code.
64266         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64267
64268 2007-07-24  Ben Pfaff  <blp@gnu.org>
64269
64270         Improve name: "count-one-bits" is better than "popcount".
64271         * MODULES.html.sh: Update name.
64272         * lib/popcount.h: Renamed lib/count-one-bits.h.
64273         (popcount): Renamed count_one_bits.
64274         (popcountl): Renamed count_one_bits_l.
64275         (popcountll): Renamed count_one_bits_ll.
64276         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64277         * modules/popcount: Renamed module/count-one-bits.
64278         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64279         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64280
64281 2007-07-23  Ben Pfaff  <blp@gnu.org>
64282
64283         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64284         better code generation, and add U to large constants to avoid
64285         warnings, in non-GCC case.
64286         Suggested by Bruno Haible.
64287
64288 2007-07-23  Ben Pfaff  <blp@gnu.org>
64289
64290         * lib/popcount.h: Use verify_true instead of if...abort.
64291         * modules/popcount: Depend on verify module.
64292         Suggested by Jim Meyering.
64293
64294 2007-07-23  Bruno Haible  <bruno@clisp.org>
64295
64296         * gnulib-tool (func_import): Create a .cvsignore file also when the
64297         directory is not yet in CVS but the toplevel directory is. When
64298         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
64299         Reported by Karl Berry.
64300
64301 2007-07-22  Ben Pfaff  <blp@gnu.org>
64302
64303         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64304         case.
64305         Suggested by Eric Blake.
64306
64307 2007-07-22  Ben Pfaff  <blp@gnu.org>
64308
64309         New module: popcount.
64310         * MODULES.html.sh: Add popcount.
64311         * modules/popcount: New file.
64312         * modules/popcount-tests: New file.
64313         * tests/test-popcount.c: New file.
64314         * lib/popcount.h: New file.
64315         * m4/popcount.m4: New file.
64316
64317 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64318
64319         * build-aux/announce-gen: Update to GPLv3.
64320
64321         * build-aux/config.guess: Update from config.
64322
64323 2007-07-21  Bruno Haible  <bruno@clisp.org>
64324
64325         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64326         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64327
64328 2007-07-20  Jim Meyering  <jim@meyering.net>
64329
64330         * check-module: Diagnose a self-dependency.
64331
64332 2007-07-19  Bruno Haible  <bruno@clisp.org>
64333
64334         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64335         empty.
64336         Reported by Eric Blake.
64337
64338 2007-07-18  Bruno Haible  <bruno@clisp.org>
64339
64340         * gnulib-tool: New options --po-base, --po-domain.
64341         (func_usage): Document them.
64342         (pobase, po_domain): New variables.
64343         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64344         DEFAULT_TEXT_DOMAIN.
64345         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64346         (func_import): Consider pobase and po_domain. Create a po/ directory.
64347         (func_create_testdir): Set pobase and po_domain to empty.
64348         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64349         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64350
64351 2007-07-18  Bruno Haible  <bruno@clisp.org>
64352
64353         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64354         EXTRA_DIST augmentation for files in build-aux/.
64355
64356 2007-07-16  Bruno Haible  <bruno@clisp.org>
64357
64358         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64359         * modules/getdelim (License): Likewise.
64360
64361 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64362
64363         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
64364         * modules/d-type (License): Likewise.
64365         * modules/extensions (License): Likewise.
64366         * modules/fnmatch (License): Likewise.
64367         * modules/fseeko (License): Likewise.
64368         * modules/getaddrinfo (License): Likewise.
64369         * modules/getline (License): Likewise.
64370         * modules/getlogin_r (License): Likewise.
64371         * modules/getpass (License): Likewise.
64372         * modules/gettimeofday (License): Likewise.
64373         * modules/glob (License): Likewise.
64374         * modules/inet_ntop (License): Likewise.
64375         * modules/malloc (License): Likewise.
64376         * modules/malloca (License): Likewise.
64377         * modules/memmem (License): Likewise.
64378         * modules/mempcpy (License): Likewise.
64379         * modules/memset (License): Likewise.
64380         * modules/minmax (License): Likewise.
64381         * modules/mktime (License): Likewise.
64382         * modules/netinet_in (License): Likewise.
64383         * modules/pathmax (License): Likewise.
64384         * modules/poll (License): Likewise.
64385         * modules/regex (License): Likewise.
64386         * modules/snprintf (License): Likewise.
64387         * modules/stdbool (License): Likewise.
64388         * modules/stdint (License): Likewise.
64389         * modules/stdio (License): Likewise.
64390         * modules/strcase (License): Likewise.
64391         * modules/strcasestr (License): Likewise.
64392         * modules/strdup (License): Likewise.
64393         * modules/string (License): Likewise.
64394         * modules/strndup (License): Likewise.
64395         * modules/strnlen (License): Likewise.
64396         * modules/strpbrk (License): Likewise.
64397         * modules/strptime (License): Likewise.
64398         * modules/strsep (License): Likewise.
64399         * modules/sys_select (License): Likewise.
64400         * modules/sys_socket (License): Likewise.
64401         * modules/sys_stat (License): Likewise.
64402         * modules/sys_time (License): Likewise.
64403         * modules/time (License): Likewise.
64404         * modules/time_r (License): Likewise.
64405         * modules/timegm (License): Likewise.
64406         * modules/unistd (License): Likewise.
64407         * modules/vsnprintf (License): Likewise.
64408         * modules/wctype (License): Likewise.
64409
64410 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64411
64412         * modules/argz (License): LGPLv2+.
64413
64414 2007-07-15  Karl Berry  <karl@gnu.org>
64415
64416         * doc/gnulib.texi: revise node structure per new fdl.texi.
64417
64418 2007-07-14  Bruno Haible  <bruno@clisp.org>
64419
64420         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64421         the output file.
64422         * lib/uniname/uninames.h: Regenerated.
64423
64424 2007-07-14  Karl Berry  <karl@gnu.org>
64425
64426         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64427         omitting sectioning and index commands.
64428
64429 2007-07-13  Bruno Haible  <bruno@clisp.org>
64430
64431         New gnulib-tool option --more-symlinks.
64432         * gnulib-tool (func_usage): Document --more-symlinks.
64433         (do_copyrights): New variable.
64434         Recognize option --more-symlinks.
64435         (func_import): Don't add a copyright notice transform to
64436         sed_transform_lib_file if do_copyrights is empty.
64437
64438 2007-07-13  Bruno Haible  <bruno@clisp.org>
64439
64440         * lib/vasnprintf.c (decimal_point_char): Define also if
64441         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
64442         && !NEED_PRINTF_DIRECTIVE_A.
64443         Reported by Clemens Koller <clemens.koller@anagramm.de> via
64444         Gary V. Vaughan <gary@gnu.org>.
64445
64446 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
64447
64448         * lib/inttypes_.h: Undo previous change, since it was fixed
64449         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
64450
64451 2007-07-13  Bruno Haible  <bruno@clisp.org>
64452
64453         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
64454         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
64455
64456 2007-07-13  Jim Meyering  <jim@meyering.net>
64457
64458         df: Don't fail for Tru64's "file-on-file mount".
64459         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
64460         so we fall through and use statfs instead.  Details here:
64461         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64462         Reported by Albert Chin.
64463
64464 2007-07-13  Bruno Haible  <bruno@clisp.org>
64465
64466         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64467         * modules/configmake (License): Likewise.
64468         * modules/gettext (License): Likewise.
64469         * modules/gettext-h (License): Likewise.
64470         * modules/include_next (License): Likewise.
64471         * modules/link-warning (License): Likewise.
64472         * modules/localcharset (License): Likewise.
64473         * modules/localename (License): Likewise.
64474         * modules/lock (License): Likewise.
64475         * modules/relocatable-lib-lgpl (License): Likewise.
64476         * modules/size_max (License): Likewise.
64477         * modules/vasnprintf (License): Likewise.
64478         * modules/wchar (License): Likewise.
64479         * modules/xsize (License): Likewise.
64480
64481 2007-07-13  Bruno Haible  <bruno@clisp.org>
64482
64483         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
64484         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
64485
64486 2007-07-12  Bruno Haible  <bruno@clisp.org>
64487
64488         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
64489         in the modules files.
64490
64491 2007-07-11  Karl Berry  <karl@gnu.org>
64492
64493         * MODULES.html.sh (func_module): use
64494          sed -e '\|^'"${includefile}"'$|d'
64495          instead of /.../d, to avoid errors on $includefile's containing /.
64496
64497 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64498
64499         * gnulib-tool (func_import): Avoid duplication of --avoid
64500         statements
64501         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
64502         names to `_' in variable names.
64503
64504 2007-07-10  Eric Blake  <ebb9@byu.net>
64505
64506         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
64507         * NEWS: Document this change.
64508
64509 2007-07-08  Bruno Haible  <bruno@clisp.org>
64510
64511         Update to Unicode 5.0.
64512         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
64513         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
64514         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
64515         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
64516         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64517         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64518         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64519         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64520         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64521         U+10A3F, U+1D242..U+1D244.
64522         (nonspacing_table_ind): Update.
64523         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64524         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64525
64526 2007-07-08  Bruno Haible  <bruno@clisp.org>
64527
64528         Update to Unicode 5.0.
64529         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64530         code transform. Extend the name index field of unicode_name_to_code and
64531         unicode_code_to_name from 16 to 24 bits.
64532         * lib/uniname/uniname.c (unicode_character_name,
64533         unicode_name_character): Add the range 0x12xxx to the code transform.
64534         * lib/uniname/uninames.h: Regenerated.
64535         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64536
64537 2007-07-07  Bruno Haible  <bruno@clisp.org>
64538
64539         * modules/wcwidth-tests: New file.
64540         * tests/test-wcwidth.c: New file.
64541
64542         Work around MacOS X wcwidth() bug.
64543         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64544         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64545         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64546         original wcwidth in non-UTF-8 locales.
64547         * modules/wcwidth (Depends-on): Add localcharset, streq,
64548         uniwidth/width.
64549         * doc/functions/wcwidth.texi: Update.
64550
64551 2007-07-07  Bruno Haible  <bruno@clisp.org>
64552
64553         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64554         (wcwidth): New declaration.
64555         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64556         macros.
64557         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64558         here. Prepare for creating <wchar.h> unconditionally.
64559         * modules/wchar (Depends-on): Add link-warning.
64560         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64561         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64562         * lib/wcwidth.h: Remove file.
64563         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64564         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64565         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64566         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64567         (Include): Replace wcwidth.h with <wchar.h>.
64568         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64569         * lib/mbchar.h: Don't include wcwidth.h.
64570         * lib/mbswidth.c: Likewise.
64571         * NEWS: Mention the change.
64572
64573 2007-07-07  Bruno Haible  <bruno@clisp.org>
64574
64575         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64576         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64577         definition with an external declaration.
64578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64579         defined as a function. Remove AC_C_INLINE requirement.
64580         * modules/wcwidth (Files): Add lib/wcwidth.c.
64581         (Makefile.am): Remove redundant statement.
64582
64583 2007-07-07  Bruno Haible  <bruno@clisp.org>
64584
64585         * MODULES.html.sh (Unicode string functions): Add the new modules.
64586
64587         * tests/uniwidth/test-u32-strwidth.c: New file.
64588         * modules/uniwidth/u32-strwidth-tests: New file.
64589
64590         * lib/uniwidth/u32-strwidth.c: New file.
64591         * modules/uniwidth/u32-strwidth: New file.
64592
64593         * tests/uniwidth/test-u16-strwidth.c: New file.
64594         * modules/uniwidth/u16-strwidth-tests: New file.
64595
64596         * lib/uniwidth/u16-strwidth.c: New file.
64597         * modules/uniwidth/u16-strwidth: New file.
64598
64599         * tests/uniwidth/test-u8-strwidth.c: New file.
64600         * modules/uniwidth/u8-strwidth-tests: New file.
64601
64602         * lib/uniwidth/u8-strwidth.c: New file.
64603         * modules/uniwidth/u8-strwidth: New file.
64604
64605         * tests/uniwidth/test-u32-width.c: New file.
64606         * modules/uniwidth/u32-width-tests: New file.
64607
64608         * lib/uniwidth/u32-width.c: New file.
64609         * modules/uniwidth/u32-width: New file.
64610
64611         * tests/uniwidth/test-u16-width.c: New file.
64612         * modules/uniwidth/u16-width-tests: New file.
64613
64614         * lib/uniwidth/u16-width.c: New file.
64615         * modules/uniwidth/u16-width: New file.
64616
64617         * tests/uniwidth/test-u8-width.c: New file.
64618         * modules/uniwidth/u8-width-tests: New file.
64619
64620         * lib/uniwidth/u8-width.c: New file.
64621         * modules/uniwidth/u8-width: New file.
64622
64623         * tests/uniwidth/test-uc_width.c: New file.
64624         * modules/uniwidth/width-tests: New file.
64625
64626         * lib/uniwidth/width.c: New file, from GNU libiconv.
64627         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64628         * modules/uniwidth/width: New file.
64629
64630         * lib/uniwidth.h: New file, from GNU libiconv.
64631         * modules/uniwidth/base: New file.
64632
64633 2007-07-07  Bruno Haible  <bruno@clisp.org>
64634
64635         * lib/uniname.h: New file, from GNU gettext.
64636         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64637         * lib/uniname/uninames.h: New file, from GNU gettext.
64638         * lib/uniname/uniname.c: New file, from GNU gettext.
64639         * tests/uniname/test-uninames.sh: New file.
64640         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64641         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64642         * modules/uniname/base: New file.
64643         * modules/uniname/uniname: New file.
64644         * modules/uniname/uniname-tests: New file.
64645         * MODULES.html.sh (Unicode string functions): Add the new modules.
64646
64647 2007-07-06  Bruno Haible  <bruno@clisp.org>
64648
64649         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64650
64651 2007-07-06  Bruno Haible  <bruno@clisp.org>
64652
64653         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64654         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64655         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64656         include <sys/time.h>.
64657         Reported by Eric Blake.
64658
64659 2007-07-06  Eric Blake  <ebb9@byu.net>
64660
64661         Fix testing canonicalize on cygwin.
64662         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64663         Revert patch from 2007-06-19.
64664         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64665         canonicalize module is also in use.
64666         * tests/test-canonicalize.c: New file.
64667         * tests/test-canonicalize.sh: Likewise.
64668         * modules/canonicalize-tests: Likewise.
64669
64670 2007-07-06  Jim Meyering  <jim@meyering.net>
64671
64672         * lib/getugroups.c (getugroups): Detect getgrent failure.
64673         Adjust comment to reflect reality: this function may return -1.
64674
64675 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64676
64677         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64678         the new TP address.
64679         (usage): Fix typo
64680         (gnulib_mk): New variable.
64681
64682 2007-07-05  Jim Meyering  <jim@meyering.net>
64683
64684         Don't let endgrent clobber errno, no matter how improbable.
64685         * lib/getugroups.c (getugroups): Save and restore errno around
64686         endgrent call.
64687
64688         Close the group DB even when failing with 2^31 or more members.
64689         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64690
64691 2007-07-04  Jim Meyering  <jim@meyering.net>
64692
64693         * lib/getugroups.h: New file.
64694         * lib/getugroups.c: Include "getugroups.h".
64695         Remove uses of "register" keyword.
64696         Move local variable, "cp", down into scope where used.
64697         Give "username" parameter the "const" attribute.
64698         * modules/getugroups (Files): Add lib/getugroups.h
64699
64700 2007-07-04  Karl Berry  <karl@gnu.org>
64701
64702         * MODULES.html.sh (func_all_modules): Complete rename of
64703         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64704
64705 2007-07-02  Bruno Haible  <bruno@clisp.org>
64706
64707         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64708         mode, when inttypes.h comes from gnulib.
64709         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64710
64711 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64712
64713         * NEWS: Mention lgpl module name change.
64714
64715         * modules/lgpl-2.1: Renamed from lgpl.
64716
64717         * NEWS: Mention gpl module name change.
64718
64719         * modules/gpl-3.0: New file, based on gpl-2.0.
64720
64721         * modules/gpl-2.0: Renamed from gpl.
64722
64723         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64724         doc/gpl-2.0.texi.
64725
64726 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64727
64728         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64729         #define __STDC_LIMIT_MACROS temporarily while including
64730         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64731         Problem reported by Joel E. Denny in
64732         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64733
64734 2007-07-01  Bruno Haible  <bruno@clisp.org>
64735
64736         * lib/unistdio.h: New file.
64737         * lib/unistdio/u-asnprintf.h: New file.
64738         * lib/unistdio/u-asprintf.h: New file.
64739         * lib/unistdio/u-printf-args.c: New file.
64740         * lib/unistdio/u-printf-args.h: New file.
64741         * lib/unistdio/u-printf-parse.h: New file.
64742         * lib/unistdio/u-snprintf.h: New file.
64743         * lib/unistdio/u-sprintf.h: New file.
64744         * lib/unistdio/u-vasprintf.h: New file.
64745         * lib/unistdio/u-vsnprintf.h: New file.
64746         * lib/unistdio/u-vsprintf.h: New file.
64747         * lib/unistdio/ulc-asnprintf.c: New file.
64748         * lib/unistdio/ulc-asprintf.c: New file.
64749         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64750         * lib/unistdio/ulc-printf-parse.c: New file.
64751         * lib/unistdio/ulc-snprintf.c: New file.
64752         * lib/unistdio/ulc-sprintf.c: New file.
64753         * lib/unistdio/ulc-vasnprintf.c: New file.
64754         * lib/unistdio/ulc-vasprintf.c: New file.
64755         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64756         * lib/unistdio/ulc-vsnprintf.c: New file.
64757         * lib/unistdio/ulc-vsprintf.c: New file.
64758         * lib/unistdio/u8-asnprintf.c: New file.
64759         * lib/unistdio/u8-asprintf.c: New file.
64760         * lib/unistdio/u8-printf-parse.c: New file.
64761         * lib/unistdio/u8-snprintf.c: New file.
64762         * lib/unistdio/u8-sprintf.c: New file.
64763         * lib/unistdio/u8-vasnprintf.c: New file.
64764         * lib/unistdio/u8-vasprintf.c: New file.
64765         * lib/unistdio/u8-vsnprintf.c: New file.
64766         * lib/unistdio/u8-vsprintf.c: New file.
64767         * lib/unistdio/u8-u8-asnprintf.c: New file.
64768         * lib/unistdio/u8-u8-asprintf.c: New file.
64769         * lib/unistdio/u8-u8-snprintf.c: New file.
64770         * lib/unistdio/u8-u8-sprintf.c: New file.
64771         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64772         * lib/unistdio/u8-u8-vasprintf.c: New file.
64773         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64774         * lib/unistdio/u8-u8-vsprintf.c: New file.
64775         * lib/unistdio/u16-asnprintf.c: New file.
64776         * lib/unistdio/u16-asprintf.c: New file.
64777         * lib/unistdio/u16-printf-parse.c: New file.
64778         * lib/unistdio/u16-snprintf.c: New file.
64779         * lib/unistdio/u16-sprintf.c: New file.
64780         * lib/unistdio/u16-vasnprintf.c: New file.
64781         * lib/unistdio/u16-vasprintf.c: New file.
64782         * lib/unistdio/u16-vsnprintf.c: New file.
64783         * lib/unistdio/u16-vsprintf.c: New file.
64784         * lib/unistdio/u16-u16-asnprintf.c: New file.
64785         * lib/unistdio/u16-u16-asprintf.c: New file.
64786         * lib/unistdio/u16-u16-snprintf.c: New file.
64787         * lib/unistdio/u16-u16-sprintf.c: New file.
64788         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64789         * lib/unistdio/u16-u16-vasprintf.c: New file.
64790         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64791         * lib/unistdio/u16-u16-vsprintf.c: New file.
64792         * lib/unistdio/u32-asnprintf.c: New file.
64793         * lib/unistdio/u32-asprintf.c: New file.
64794         * lib/unistdio/u32-printf-parse.c: New file.
64795         * lib/unistdio/u32-snprintf.c: New file.
64796         * lib/unistdio/u32-sprintf.c: New file.
64797         * lib/unistdio/u32-vasnprintf.c: New file.
64798         * lib/unistdio/u32-vasprintf.c: New file.
64799         * lib/unistdio/u32-vsnprintf.c: New file.
64800         * lib/unistdio/u32-vsprintf.c: New file.
64801         * lib/unistdio/u32-u32-asnprintf.c: New file.
64802         * lib/unistdio/u32-u32-asprintf.c: New file.
64803         * lib/unistdio/u32-u32-snprintf.c: New file.
64804         * lib/unistdio/u32-u32-sprintf.c: New file.
64805         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64806         * lib/unistdio/u32-u32-vasprintf.c: New file.
64807         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64808         * lib/unistdio/u32-u32-vsprintf.c: New file.
64809         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64810         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64811         * tests/unistdio/test-ulc-printf1.h: New file.
64812         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64813         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64814         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64815         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64816         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64817         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64818         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64819         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64820         * tests/unistdio/test-u8-asnprintf1.c: New file.
64821         * tests/unistdio/test-u8-asnprintf1.h: New file.
64822         * tests/unistdio/test-u8-printf1.h: New file.
64823         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64824         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64825         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64826         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64827         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64828         * tests/unistdio/test-u8-vasprintf1.c: New file.
64829         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64830         * tests/unistdio/test-u8-vsprintf1.c: New file.
64831         * tests/unistdio/test-u16-asnprintf1.c: New file.
64832         * tests/unistdio/test-u16-asnprintf1.h: New file.
64833         * tests/unistdio/test-u16-printf1.h: New file.
64834         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64835         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64836         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64837         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64838         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64839         * tests/unistdio/test-u16-vasprintf1.c: New file.
64840         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64841         * tests/unistdio/test-u16-vsprintf1.c: New file.
64842         * tests/unistdio/test-u32-asnprintf1.c: New file.
64843         * tests/unistdio/test-u32-asnprintf1.h: New file.
64844         * tests/unistdio/test-u32-printf1.h: New file.
64845         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64846         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64847         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64848         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64849         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64850         * tests/unistdio/test-u32-vasprintf1.c: New file.
64851         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64852         * tests/unistdio/test-u32-vsprintf1.c: New file.
64853         * modules/unistdio/base: New file.
64854         * modules/unistdio/u-printf-args: New file.
64855         * modules/unistdio/ulc-asnprintf: New file.
64856         * modules/unistdio/ulc-asprintf: New file.
64857         * modules/unistdio/ulc-fprintf: New file.
64858         * modules/unistdio/ulc-printf-parse: New file.
64859         * modules/unistdio/ulc-snprintf: New file.
64860         * modules/unistdio/ulc-sprintf: New file.
64861         * modules/unistdio/ulc-vasnprintf: New file.
64862         * modules/unistdio/ulc-vasprintf: New file.
64863         * modules/unistdio/ulc-vfprintf: New file.
64864         * modules/unistdio/ulc-vsnprintf: New file.
64865         * modules/unistdio/ulc-vsprintf: New file.
64866         * modules/unistdio/u8-asnprintf: New file.
64867         * modules/unistdio/u8-asprintf: New file.
64868         * modules/unistdio/u8-printf-parse: New file.
64869         * modules/unistdio/u8-snprintf: New file.
64870         * modules/unistdio/u8-sprintf: New file.
64871         * modules/unistdio/u8-vasnprintf: New file.
64872         * modules/unistdio/u8-vasprintf: New file.
64873         * modules/unistdio/u8-vsnprintf: New file.
64874         * modules/unistdio/u8-vsprintf: New file.
64875         * modules/unistdio/u8-u8-asnprintf: New file.
64876         * modules/unistdio/u8-u8-asprintf: New file.
64877         * modules/unistdio/u8-u8-snprintf: New file.
64878         * modules/unistdio/u8-u8-sprintf: New file.
64879         * modules/unistdio/u8-u8-vasnprintf: New file.
64880         * modules/unistdio/u8-u8-vasprintf: New file.
64881         * modules/unistdio/u8-u8-vsnprintf: New file.
64882         * modules/unistdio/u8-u8-vsprintf: New file.
64883         * modules/unistdio/u16-asnprintf: New file.
64884         * modules/unistdio/u16-asprintf: New file.
64885         * modules/unistdio/u16-printf-parse: New file.
64886         * modules/unistdio/u16-snprintf: New file.
64887         * modules/unistdio/u16-sprintf: New file.
64888         * modules/unistdio/u16-vasnprintf: New file.
64889         * modules/unistdio/u16-vasprintf: New file.
64890         * modules/unistdio/u16-vsnprintf: New file.
64891         * modules/unistdio/u16-vsprintf: New file.
64892         * modules/unistdio/u16-u16-asnprintf: New file.
64893         * modules/unistdio/u16-u16-asprintf: New file.
64894         * modules/unistdio/u16-u16-snprintf: New file.
64895         * modules/unistdio/u16-u16-sprintf: New file.
64896         * modules/unistdio/u16-u16-vasnprintf: New file.
64897         * modules/unistdio/u16-u16-vasprintf: New file.
64898         * modules/unistdio/u16-u16-vsnprintf: New file.
64899         * modules/unistdio/u16-u16-vsprintf: New file.
64900         * modules/unistdio/u32-asnprintf: New file.
64901         * modules/unistdio/u32-asprintf: New file.
64902         * modules/unistdio/u32-printf-parse: New file.
64903         * modules/unistdio/u32-snprintf: New file.
64904         * modules/unistdio/u32-sprintf: New file.
64905         * modules/unistdio/u32-vasnprintf: New file.
64906         * modules/unistdio/u32-vasprintf: New file.
64907         * modules/unistdio/u32-vsnprintf: New file.
64908         * modules/unistdio/u32-vsprintf: New file.
64909         * modules/unistdio/u32-u32-asnprintf: New file.
64910         * modules/unistdio/u32-u32-asprintf: New file.
64911         * modules/unistdio/u32-u32-snprintf: New file.
64912         * modules/unistdio/u32-u32-sprintf: New file.
64913         * modules/unistdio/u32-u32-vasnprintf: New file.
64914         * modules/unistdio/u32-u32-vasprintf: New file.
64915         * modules/unistdio/u32-u32-vsnprintf: New file.
64916         * modules/unistdio/u32-u32-vsprintf: New file.
64917         * modules/unistdio/ulc-asnprintf-tests: New file.
64918         * modules/unistdio/ulc-vasnprintf-tests: New file.
64919         * modules/unistdio/ulc-vasprintf-tests: New file.
64920         * modules/unistdio/ulc-vsnprintf-tests: New file.
64921         * modules/unistdio/ulc-vsprintf-tests: New file.
64922         * modules/unistdio/u8-asnprintf-tests: New file.
64923         * modules/unistdio/u8-vasnprintf-tests: New file.
64924         * modules/unistdio/u8-vasprintf-tests: New file.
64925         * modules/unistdio/u8-vsnprintf-tests: New file.
64926         * modules/unistdio/u8-vsprintf-tests: New file.
64927         * modules/unistdio/u16-asnprintf-tests: New file.
64928         * modules/unistdio/u16-vasnprintf-tests: New file.
64929         * modules/unistdio/u16-vasprintf-tests: New file.
64930         * modules/unistdio/u16-vsnprintf-tests: New file.
64931         * modules/unistdio/u16-vsprintf-tests: New file.
64932         * modules/unistdio/u32-asnprintf-tests: New file.
64933         * modules/unistdio/u32-vasnprintf-tests: New file.
64934         * modules/unistdio/u32-vasprintf-tests: New file.
64935         * modules/unistdio/u32-vsnprintf-tests: New file.
64936         * modules/unistdio/u32-vsprintf-tests: New file.
64937         * MODULES.html.sh (Unicode string functions): Add the new modules.
64938
64939 2007-07-01  Bruno Haible  <bruno@clisp.org>
64940
64941         * lib/sprintf.c (sprintf): Limit the available length estimation,
64942         to avoid address wraparound.
64943         * lib/vsprintf.c (vsprintf): Likewise.
64944         * modules/sprintf-posix (Dependencies): Add stdint.
64945         * modules/vsprintf-posix (Dependencies): Likewise.
64946
64947 2007-07-01  Bruno Haible  <bruno@clisp.org>
64948
64949         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64950         Windows PATH as well. Conservative double-quoting. Comments.
64951
64952 2007-07-01  Bruno Haible  <bruno@clisp.org>
64953             Eric Blake  <ebb9@byu.net>
64954             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64955
64956         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64957         empty components in $PATH, denoting '.'.
64958
64959 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64960
64961         * gnulib-tool: Fix indentation.
64962         (func_create_megatestdir): Likewise.
64963         Report by Bruno Haible.
64964
64965 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64966
64967         Sync from Automake.
64968         * build-aux/gnupload: Fix shell portability issues with for loops.
64969         Report by Karl Berry.
64970
64971 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64972
64973         * build-aux/maint.mk (POURL): Use translationproject.org.
64974
64975 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64976             Bruno Haible  <bruno@clisp.org>
64977
64978         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64979         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64980         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64981         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64982         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64983
64984 2007-06-27  Bruno Haible  <bruno@clisp.org>
64985
64986         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64987         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64988
64989 2007-06-26  Karl Berry  <karl@gnu.org>
64990
64991         * MODULES.html.sh: remove xreadlink-with-size.
64992
64993 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64994
64995         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64996         method that I hope also handles the double-include problem noted
64997         by Bruno Haible in
64998         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64999
65000 2007-06-23  Bruno Haible  <bruno@clisp.org>
65001
65002         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65003         Don't let the 'mostlyclean' target fail if the last subdirectory could
65004         not be removed.
65005         Reported by Karl Berry.
65006
65007 2007-06-23  Bruno Haible  <bruno@clisp.org>
65008
65009         * gnulib-tool (echo): Add a speedier workaround for ksh.
65010         * tests/test-echo.sh: Likewise.
65011
65012 2007-06-23  Bruno Haible  <bruno@clisp.org>
65013
65014         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
65015         * tests/test-echo.sh: Likewise.
65016
65017 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65018
65019         * gnulib-tool (IFS): Initialize early, so we don't set it to
65020         empty later.
65021         (self_abspathname): Rewrite algorithm to set it, reindent.
65022         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
65023         (func_create_megatestdir): Merge some sed scripts.
65024
65025 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65026
65027         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
65028         exposed by Sun Studio 11 cc on Solaris 8.
65029
65030 2007-06-22  Bruno Haible  <bruno@clisp.org>
65031
65032         * gnulib-tool (echo): Ensure the echo primitive does not interpret
65033         backslashes.
65034         * tests/test-echo.sh: New file.
65035
65036 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65037
65038         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65039         simplify `sed_replace_build_aux' scripts, they are portable but
65040         echoing them with `echo' is not.
65041         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65042
65043 2007-06-21  Karl Berry  <karl@gnu.org>
65044
65045         * config/srclist.txt: guess we can't handle the licenses via
65046         srclist at the moment.
65047
65048 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65049
65050         * MODULES.html.sh: Add include_next.
65051         * modules/include_next: New file.
65052
65053 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65054
65055         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65056         INCLUDE_NEXT.
65057         (gl_CHECK_NEXT_HEADERS): New macro.
65058         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65059         the obsolescent gl_ABSOLUTE_HEADER.
65060         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65061         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65062         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65063         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65064         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65065         * m4/math_h.m4 (gl_MATH_H): Likewise.
65066         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65067         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65068         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65069         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65070         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65071         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65072         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65073         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65074         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65075         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65076         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65077         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65078         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65079         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65080         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65081         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65082         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65083         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65084         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65085         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65086         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65087         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65088         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65089         * lib/float_.h: Likewise.
65090         * lib/inttypes_.h: Likewise.
65091         * lib/math_.h: Likewise.
65092         * lib/search_.h: Likewise.
65093         * lib/signal_.h: Likewise.
65094         * lib/stdint_.h: Likewise.
65095         * lib/stdio_.h: Likewise.
65096         * lib/stdlib_.h: Likewise.
65097         * lib/string_.h: Likewise.
65098         * lib/sys_stat_.h: Likewise.
65099         * lib/sys_time_.h: Likewise.
65100         * lib/time_.h: Likewise.
65101         * lib/unistd_.h: Likewise.
65102         * lib/wchar_.h: Likewise.
65103         * lib/wctype_.h: Likewise.
65104         * lib/dirent_.h: Likewise.
65105         * lib/iconv_.h: Likewise.
65106         * lib/locale_.h: Likewise.
65107         * lib/netinet_in_.h: Likewise.
65108         * lib/sys_select_.h: Likewise.
65109         * lib/sys_socket_.h: Likewise.
65110         * lib/sysexits_.h: Likewise.
65111         * modules/fcntl (Depends-on): Depend on include_next, not
65112         absolute_header.
65113         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65114         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65115         * modules/fchdir: Likewise.
65116         * modules/float: Likewise.
65117         * modules/iconv_open: Likewise.
65118         * modules/inttypes: Likewise.
65119         * modules/locale: Likewise.
65120         * modules/math: Likewise.
65121         * modules/netinet_in: Likewise.
65122         * modules/search: Likewise.
65123         * modules/signal: Likewise.
65124         * modules/stdint: Likewise.
65125         * modules/stdio: Likewise.
65126         * modules/stdlib: Likewise.
65127         * modules/string: Likewise.
65128         * modules/sys_select: Likewise.
65129         * modules/sys_socket: Likewise.
65130         * modules/sys_stat: Likewise.
65131         * modules/sys_time: Likewise.
65132         * modules/sysexits: Likewise.
65133         * modules/time: Likewise.
65134         * modules/unistd: Likewise.
65135         * modules/wchar: Likewise.
65136         * modules/wctype: Likewise.
65137         * modules/sys_stat: Change maintainer to "all".
65138         * modules/unistd: Likewise.
65139
65140 2007-06-20  Karl Berry  <karl@gnu.org>
65141
65142         * config/srclist.txt: track www changes in license files.
65143
65144 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65145
65146         * build-aux/bootstrap: Remove stray dot.
65147         Make sure build_aux settings are honored when linking
65148         gnulib_extra_files.
65149
65150 2007-06-19  Eric Blake  <ebb9@byu.net>
65151
65152         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65153         Allow compilation on cygwin.
65154
65155 2007-06-19  Jim Meyering  <jim@meyering.net>
65156
65157         xreadlink-with-size: Remove module.  No longer used.
65158         Ex-callers now use xreadlink or mreadlink-with-size.
65159         * modules/xreadlink-with-size: Remove module.
65160         * lib/xreadlink-with-size.c: Remove file.
65161         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65162         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65163         just before the function definition *is* accurate.
65164
65165         Eliminate one way canonicalize_filename_mode could exit.
65166         * lib/canonicalize.c (canonicalize_filename_mode):
65167         Use mreadlink_with_size, not xreadlink_with_size.
65168
65169 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65170
65171         Detect porting problems to FreeBSD/arm, which has time_t wider than
65172         long int.  Original problem reported for GNU diff by Xin Li in
65173         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65174         * modules/getdate (Depends-on): Add intprops, verify.
65175         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65176         is an integer type no wider than long int.
65177
65178 2007-06-18  Jim Meyering  <jim@meyering.net>
65179
65180         New module: mreadlink-with-size.
65181         * MODULES.html.sh: Add mreadlink-with-size.
65182         * modules/mreadlink-with-size: New module
65183         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65184         not xreadlink-with-size.
65185         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65186
65187 2007-06-16  Bruno Haible  <bruno@clisp.org>
65188
65189         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65190         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65191         Reported by Gary V. Vaughan <gary@gnu.org>.
65192
65193 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65194
65195         Revamp lchown so that it lives in unistd.h where it belongs.
65196         * lib/lchown.h: Remove.
65197         * lib/dirchownmod.c: Don't include lib/lchown.h.
65198         * lib/fchownat.c: Likewise.
65199         * lib/openat.c: Likewise.
65200         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65201         does not follow symlinks.
65202         (EOPNOTSUPP): Define if not defined.
65203         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65204         is defined to 0.
65205         (lchown): New decl.
65206         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65207         Do not check for lchown decl.
65208         Set REPLACE_LCHOWN.
65209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65210         REPLACE_LCHOWN.
65211         * modules/chown: Make it clear it follows symlinks.
65212         * modules/lchown: Make it clear it doesn't follow symlinks.
65213         (Files): Remove lib/lchown.h
65214         (Depends-on): Add unistd.
65215         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65216         (Include): Include <unistd.h>, not "lchown.h".
65217         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65218         REPLACE_LCHOWN.
65219
65220 2007-06-15  Jim Meyering  <jim@meyering.net>
65221
65222         Change license (GPL to LGPL) of fsusage and dependents.
65223         * modules/fsusage (License): Change to LGPL.
65224         * modules/full-read (License): Likewise.
65225         * modules/full-write (License): Likewise.
65226         * modules/safe-read (License): Likewise.
65227         * modules/safe-write (License): Likewise.
65228
65229 2007-06-14  Ben Pfaff  <blp@gnu.org>
65230
65231         Missing part of allocsa -> malloca transition.
65232         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65233         gl_MALLOCA.
65234
65235 2007-06-12  Bruno Haible  <bruno@clisp.org>
65236
65237         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65238         to ia64, x86_64, i386.
65239         Reported by Eric Blake.
65240
65241 2007-06-12  Bruno Haible  <bruno@clisp.org>
65242
65243         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65244         cross-compiling to x86_64.
65245
65246 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65247
65248         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65249         glitch reported by Ralf Wildenhues in
65250         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65251
65252         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65253         Vin Shelton.
65254
65255 2007-06-11  Bruno Haible  <bruno@clisp.org>
65256
65257         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65258         replacement string.
65259         Reported by Eric Blake.
65260
65261 2007-06-10  Bruno Haible  <bruno@clisp.org>
65262
65263         Prepare vasnprintf code for use with Unicode strings.
65264         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65265         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65266         TYPE_U32_STRING.
65267         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65268         a_u32_string variants.
65269         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65270         * lib/printf-args.c: Don't include config.h and the specification
65271         header if PRINTF_FETCHARGS is already defined.
65272         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65273         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65274         TYPE_U16_STRING, TYPE_U32_STRING.
65275         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65276         u16_directive, u16_directives, u32_directive, u32_directives): New
65277         types.
65278         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65279         New declarations.
65280         * lib/printf-parse.c: Don't include config.h and the specification
65281         header if PRINTF_PARSE is already defined. Eliminate the set of
65282         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65283         them now. Include c-ctype.h.
65284         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65285         directive and CHAR_T_ONLY_ASCII.
65286         * lib/vasnprintf.c: Don't include config.h and the specification header
65287         if VASNPRINTF is already defined.
65288         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65289         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
65290         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
65291         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
65292         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
65293         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
65294         code accordingly.
65295         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
65296         pad_ourselves also in this case, with the 'c' and 's' directives, and
65297         with a different notion of "width".
65298         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
65299
65300 2007-06-10  Bruno Haible  <bruno@clisp.org>
65301
65302         * modules/unistr/u32-mbsnlen: New file.
65303         * lib/unistr/u32-mbsnlen.c: New file.
65304
65305         * modules/unistr/u16-mbsnlen: New file.
65306         * lib/unistr/u16-mbsnlen.c: New file.
65307
65308         * modules/unistr/u8-mbsnlen: New file.
65309         * lib/unistr/u8-mbsnlen.c: New file.
65310
65311         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65312         declarations.
65313
65314 2007-06-10  Bruno Haible  <bruno@clisp.org>
65315
65316         * lib/string_.h (mbsnlen): New declaration.
65317         * lib/mbsnlen.c: New file.
65318         * m4/mbsnlen.m4: New file.
65319         * modules/mbsnlen: New file.
65320         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65321         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65322         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65323
65324 2007-06-10  Bruno Haible  <bruno@clisp.org>
65325
65326         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65327
65328 2007-06-10  Bruno Haible  <bruno@clisp.org>
65329
65330         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65331         * lib/mbuiter.h: Likewise.
65332
65333 2007-06-10  Bruno Haible  <bruno@clisp.org>
65334
65335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65336         declaration.
65337
65338 2007-06-10  Karl Berry  <karl@gnu.org>
65339
65340         * config/srclist.txt: remove gettext entries, Bruno prefers
65341         to update individually.
65342
65343 2007-06-10  Bruno Haible  <bruno@clisp.org>
65344
65345         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65346         'maxlen'. Ensure only length + width bytes are allocated, not
65347         length + 1 + width.
65348
65349 2007-06-09  Bruno Haible  <bruno@clisp.org>
65350
65351         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65352         (CHAR_T): Remove macro.
65353         (VASNPRINTF): Update.
65354
65355 2007-06-09  Bruno Haible  <bruno@clisp.org>
65356
65357         * MODULES.html.sh (Unicode string functions): Add the new modules.
65358
65359         * modules/uniconv/u32-conv-to-enc: New file.
65360         * lib/uniconv/u32-conv-to-enc.c: New file.
65361         * modules/uniconv/u32-conv-to-enc-tests: New file.
65362         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65363
65364         * modules/uniconv/u16-conv-to-enc: New file.
65365         * lib/uniconv/u16-conv-to-enc.c: New file.
65366         * lib/uniconv/u-conv-to-enc.h: New file.
65367         * modules/uniconv/u16-conv-to-enc-tests: New file.
65368         * tests/uniconv/test-u16-conv-to-enc.c: New file.
65369
65370         * modules/uniconv/u8-conv-to-enc: New file.
65371         * lib/uniconv/u8-conv-to-enc.c: New file.
65372         * modules/uniconv/u8-conv-to-enc-tests: New file.
65373         * tests/uniconv/test-u8-conv-to-enc.c: New file.
65374
65375         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65376         u32_conv_to_encoding): New declarations.
65377
65378 2007-06-09  Bruno Haible  <bruno@clisp.org>
65379
65380         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
65381
65382 2007-06-09  Bruno Haible  <bruno@clisp.org>
65383
65384         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
65385         * modules/malloca: Renamed from modules/allocsa, updated.
65386         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
65387         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
65388         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
65389         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
65390         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
65391         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
65392         * modules/xmalloca: Renamed from modules/xallocsa, updated.
65393         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
65394         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
65395         * modules/c-strcasestr (Depends-on): Update.
65396         * lib/c-strcasestr.c: Update.
65397         * modules/c-strstr (Depends-on): Update.
65398         * lib/c-strstr.c: Update.
65399         * modules/canonicalize-lgpl (Depends-on): Update.
65400         * lib/canonicalize-lgpl.c: Update.
65401         * modules/clean-temp (Depends-on): Update.
65402         * lib/clean-temp.c: Update.
65403         * modules/csharpcomp (Depends-on): Update.
65404         * lib/csharpcomp.c: Update.
65405         * modules/csharpexec (Depends-on): Update.
65406         * lib/csharpexec.c: Update.
65407         * modules/javacomp (Depends-on): Update.
65408         * lib/javacomp.c: Update.
65409         * modules/javaexec (Depends-on): Update.
65410         * lib/javaexec.c: Update.
65411         * modules/mbscasestr (Depends-on): Update.
65412         * lib/mbscasestr.c: Update.
65413         * modules/mbsstr (Depends-on): Update.
65414         * lib/mbsstr.c: Update.
65415         * modules/setenv (Depends-on): Update.
65416         * lib/setenv.c: Update.
65417         * modules/strcasestr (Depends-on): Update.
65418         * lib/strcasestr.c: Update.
65419         * modules/striconveha (Depends-on): Update.
65420         * lib/striconveha.c: Update.
65421         * modules/relocatable-prog-wrapper (Files): Update.
65422         * lib/relocwrapper.c: Update.
65423         * build-aux/install-reloc: Update.
65424         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65425
65426 2007-06-08  Bruno Haible  <bruno@clisp.org>
65427
65428         Port to uClibc.
65429         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65430         * lib/fpurge.c (fpurge): Likewise.
65431         * lib/freading.c (freading): Likewise.
65432         * lib/fseeko.c (rpl_fseeko): Likewise.
65433         * lib/fseterr.c (fseterr): Likewise.
65434         * lib/fwriting.c (fwriting): Likewise.
65435         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65436
65437 2007-06-08  Bruno Haible  <bruno@clisp.org>
65438
65439         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65440         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
65441         * modules/gettext (Files): Add m4/intlmacosx.m4.
65442
65443 2007-06-07  Bruno Haible  <bruno@clisp.org>
65444
65445         * modules/localename-tests: New file.
65446         * tests/test-localename.c: New file.
65447
65448         New module 'localename'.
65449         * lib/localename.h: New file.
65450         * lib/localename.c: New file, from GNU gettext.
65451         * m4/localename.m4: New file.
65452         * modules/localename: New file.
65453
65454 2007-06-07  Bruno Haible  <bruno@clisp.org>
65455
65456         Work around the lack of <wchar.h> on some builds of uClibc.
65457         * doc/headers/wchar.texi: Update.
65458         * lib/wchar_.h: Include <wchar.h> only if it exists.
65459         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
65460         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
65461         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65462         doesn't exist.
65463         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65464         * modules/mbfile (Depends-on): Add wchar.
65465         * modules/mbiter (Depends-on): Likewise.
65466         * modules/mbuiter (Depends-on): Likewise.
65467         Reported by Simon Josefsson.
65468
65469 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65470
65471         Work around problem reported by Steven M. Schweda in
65472         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
65473         Tru64 5.1B with the Compaq compiler environment installed declares
65474         an 'isblank' function but does not define it in the C library.
65475         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
65476         * lib/regex_internal.h (isblank): Likewise.
65477         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
65478         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65479
65480 2007-06-05  Bruno Haible  <bruno@clisp.org>
65481
65482         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
65483         ia64.
65484         * modules/printf-safe: New file.
65485         * modules/fprintf-posix (Depends-on): Add printf-safe.
65486         * modules/printf-posix (Depends-on): Likewise.
65487         * modules/snprintf-posix (Depends-on): Likewise.
65488         * modules/sprintf-posix (Depends-on): Likewise.
65489         * modules/vasnprintf-posix (Depends-on): Likewise.
65490         * modules/vasprintf-posix (Depends-on): Likewise.
65491         * modules/vfprintf-posix (Depends-on): Likewise.
65492         * modules/vprintf-posix (Depends-on): Likewise.
65493         * modules/vsnprintf-posix (Depends-on): Likewise.
65494         * modules/vsprintf-posix (Depends-on): Likewise.
65495         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
65496         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
65497         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
65498         "no" on i386, x86_64, ia64.
65499         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
65500         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65501         on i386, x86_64, ia64.
65502         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
65503         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65504         on i386, x86_64, ia64.
65505         * tests/test-vasnprintf-posix.c: Include float.h.
65506         (LDBL80_WORDS): New macro.
65507         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65508         on i386, x86_64, ia64.
65509         * tests/test-vasprintf-posix.c: Include float.h.
65510         (LDBL80_WORDS): New macro.
65511         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65512         on i386, x86_64, ia64.
65513         * tests/test-snprintf-posix.c: Include float.h.
65514         * tests/test-sprintf-posix.c: Likewise.
65515         * tests/test-vsnprintf-posix.c: Likewise.
65516         * tests/test-vsprintf-posix.c: Likewise.
65517
65518 2007-06-05  Bruno Haible  <bruno@clisp.org>
65519
65520         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65521         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65522         non-IEEE numbers on i386, x86_64, ia64.
65523         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65524         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65525         * tests/test-isnanl.h: Include float.h.
65526         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65527
65528 2007-06-05  Bruno Haible  <bruno@clisp.org>
65529
65530         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65531         also the %a / %A. Handle the %a / %A code before this extra handling.
65532
65533 2007-06-05  Bruno Haible  <bruno@clisp.org>
65534
65535         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65536         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65537
65538 2007-06-05  Bruno Haible  <bruno@clisp.org>
65539
65540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65541         typo in variable name.
65542
65543 2007-06-05  Eric Blake  <ebb9@byu.net>
65544
65545         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65546         Reported by Simon Josefsson.
65547
65548 2007-06-04  Bruno Haible  <bruno@clisp.org>
65549
65550         Avoid test failures on some PowerPC platforms.
65551         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65552         Define differently for PowerPC.
65553         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65554         Reported by Gary V. Vaughan <gary@gnu.org>.
65555
65556 2007-06-02  Bruno Haible  <bruno@clisp.org>
65557
65558         Fix test-stdint failure on FreeBSD/ia64.
65559         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65560         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65561         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65562         * doc/headers/stdint.texi: Update.
65563
65564 2007-06-01  Bruno Haible  <bruno@clisp.org>
65565
65566         * tests/test-binary-io.c (main): Pass a third argument to open().
65567         Reported by Gary V. Vaughan <gary@gnu.org>.
65568
65569 2007-06-01  Bruno Haible  <bruno@clisp.org>
65570
65571         * doc/functions/frexpl.texi: Update for mingw.
65572
65573 2007-06-01  Bruno Haible  <bruno@clisp.org>
65574
65575         * tests/test-lseek.c (main): Disable test of errno for invalid third
65576         argument.
65577         * doc/functions/lseek.texi: Update.
65578         Reported by Gary V. Vaughan <gary@gnu.org>.
65579
65580 2007-05-28  Bruno Haible  <bruno@clisp.org>
65581
65582         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65583
65584 2007-05-31  Eric Blake  <ebb9@byu.net>
65585
65586         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65587         cross compiling.
65588
65589 2007-05-30  Eric Blake  <ebb9@byu.net>
65590         and Bruno Haible  <bruno@clisp.org>
65591
65592         Work around mingw test failures exposed by m4-1.4.9b.
65593         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65594         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65595         moment.
65596
65597 2007-05-30  Bruno Haible  <bruno@clisp.org>
65598
65599         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65600         assuming that they are closed. Needed on HP-UX 11.
65601
65602 2007-05-29  Bruno Haible  <bruno@clisp.org>
65603
65604         Fix a problem with #include_next.
65605         * lib/dirent_.h: Split the double-inclusion guard.
65606         * lib/fcntl_.h: Likewise.
65607         * lib/float_.h: Likewise.
65608         * lib/iconv_.h: Likewise.
65609         * lib/inttypes_.h: Likewise.
65610         * lib/locale_.h: Likewise.
65611         * lib/math_.h: Likewise.
65612         * lib/netinet_in_.h: Likewise.
65613         * lib/search_.h: Likewise.
65614         * lib/signal_.h: Likewise.
65615         * lib/stdint_.h: Likewise.
65616         * lib/stdio_.h: Likewise.
65617         * lib/stdlib_.h: Likewise.
65618         * lib/string_.h: Likewise.
65619         * lib/sys_select_.h: Likewise.
65620         * lib/sys_socket_.h: Likewise.
65621         * lib/sys_stat_.h: Likewise.
65622         * lib/sys_time_.h: Likewise.
65623         * lib/sysexits_.h: Likewise.
65624         * lib/time_.h: Likewise.
65625         * lib/unistd_.h: Likewise.
65626         * lib/wchar_.h: Likewise.
65627         * lib/wctype_.h: Likewise.
65628
65629 2007-05-29  Bruno Haible  <bruno@clisp.org>
65630
65631         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65632         for the moment.
65633
65634 2007-05-29  Bruno Haible  <bruno@clisp.org>
65635
65636         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65637         invocation.
65638         Reported by Eric Blake.
65639
65640 2007-05-29  Bruno Haible  <bruno@clisp.org>
65641
65642         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65643         compiling case.
65644
65645 2007-05-29  Eric Blake  <ebb9@byu.net>
65646             Bruno Haible  <bruno@clisp.org>
65647
65648         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65649         cross compiles.
65650
65651 2007-05-28  Eric Blake  <ebb9@byu.net>
65652
65653         * modules/closein-tests (test_closein_LDADD): Support test on
65654         cygwin with libtool.
65655
65656 2007-05-28  Bruno Haible  <bruno@clisp.org>
65657
65658         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65659         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65660         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65661         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65662         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65663         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65664         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65665         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65666         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65667
65668 2007-05-28  Eric Blake  <ebb9@byu.net>
65669
65670         Unconditionally include <config.h> in unit tests.
65671         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65672         * tests/test-allocsa.c, tests/test-arcfour.c,
65673         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65674         tests/test-array_list.c, tests/test-array_oset.c,
65675         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65676         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65677         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65678         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65679         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65680         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65681         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65682         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65683         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65684         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65685         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65686         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65687         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65688         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65689         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65690         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65691         test-md5.c, test-memmem.c, test-printf-posix.c,
65692         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65693         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65694         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65695         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65696         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65697         test-vasnprintf-posix2.c, test-vasnprintf.c,
65698         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65699         test-vfprintf-posix.c, test-vprintf-posix.c,
65700         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65701         test-xvasprintf.c: Likewise.
65702
65703 2007-05-28  Bruno Haible  <bruno@clisp.org>
65704
65705         * gnulib-tool (func_import): Remember the --with-tests command-line
65706         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65707         Reported by Eric Blake.
65708
65709 2007-05-28  Bruno Haible  <bruno@clisp.org>
65710
65711         * modules/ftell-tests: New file.
65712         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65713         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65714
65715         * lib/ftell.c: New file.
65716         * modules/ftell: New file.
65717         * m4/ftell.m4: New file.
65718         * doc/functions/ftell.texi: Update.
65719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65720         REPLACE_FTELL.
65721         * lib/stdio_.h (rpl_ftell): New declaration.
65722         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65723         REPLACE_FTELL.
65724
65725 2007-05-28  Eric Blake  <ebb9@byu.net>
65726
65727         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65728
65729 2007-05-28  Bruno Haible  <bruno@clisp.org>
65730
65731         * modules/fseek-tests: New file.
65732         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65733         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65734
65735         * lib/fseek.c: New file.
65736         * modules/fseek: New file.
65737         * m4/fseek.m4: New file.
65738         * doc/functions/fseek.texi: Update.
65739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65740         REPLACE_FSEEK.
65741         * lib/stdio_.h (rpl_fseek): New declaration.
65742         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65743         REPLACE_FSEEK.
65744
65745 2007-05-28  Bruno Haible  <bruno@clisp.org>
65746
65747         * lib/stdio_.h (fflush): More comments.
65748
65749 2007-05-28  Bruno Haible  <bruno@clisp.org>
65750
65751         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65752         runtime test.
65753
65754 2007-05-28  Eric Blake  <ebb9@byu.net>
65755
65756         Improve lseek module.
65757         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65758         * lib/unistd_.h (lseek): Scale back link warning message.
65759         * tests/test-lseek.c: Beef up test.
65760         * tests/test-lseek.sh: Exercise more facets of lseek.
65761         Reported by Bruno Haible.
65762
65763 2007-05-28  Bruno Haible  <bruno@clisp.org>
65764
65765         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65766         to define.
65767
65768 2007-05-27  Bruno Haible  <bruno@clisp.org>
65769
65770         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65771
65772 2007-05-27  Bruno Haible  <bruno@clisp.org>
65773
65774         * modules/openmp: New file.
65775         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65776         Noah Misch.
65777
65778 2007-05-26  Bruno Haible  <bruno@clisp.org>
65779
65780         * modules/chdir-long (Depends-on): Add fchdir.
65781         * modules/chdir-safer (Depends-on): Likewise.
65782         * modules/fts (Depends-on): Likewise.
65783         * modules/fts-lgpl (Depends-on): Likewise.
65784         * modules/openat (Depends-on): Likewise.
65785         * modules/savewd (Depends-on): Likewise.
65786
65787 2007-05-24  Eric Blake  <ebb9@byu.net>
65788
65789         Fix lseek on mingw.
65790         * modules/lseek: New module.
65791         * m4/lseek.m4: New file.
65792         * lib/lseek.c: New file.
65793         * modules/lseek-tests: New file.
65794         * tests/test-lseek.c: New file.
65795         * tests/test-lseek.sh: New file.
65796         * MODULES.html.sh: Document lseek module.
65797         * modules/fflush (Depends-on): Add lseek, fseeko.
65798         * modules/fseeko (Depends-on): Likewise.
65799         * modules/ftello (Depends-on): Likewise.
65800         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65801         broken.
65802         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65803         broken.
65804         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65805         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65806         * lib/ftello.c (rpl_ftello): Likewise.
65807         * tests/test-fseeko.c (main): Test this.
65808         * tests/test-fseeko.sh: Likewise.
65809         * tests/test-ftello.c (main): Likewise.
65810         * tests/test-ftello.sh: Likewise.
65811         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65812         implies replacing fseek.
65813         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65814         HAVE_FTELLO.
65815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65816         * modules/unistd (Makefile.am): Likewise.
65817         * lib/unistd_.h (lseek): Declare a replacement.
65818         * doc/functions/lseek.texi (lseek): Document this fix.
65819         * doc/functions/fseek.texi (fseek): Likewise.
65820         * doc/functions/ftell.texi (ftell): Likewise.
65821
65822 2007-05-24  Bruno Haible  <bruno@clisp.org>
65823
65824         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65825         in the printed representation of a NaN.
65826         * tests/test-vasprintf-posix.c (test_function): Likewise.
65827         * tests/test-snprintf-posix.h (test_function): Likewise.
65828         * tests/test-sprintf-posix.h (test_function): Likewise.
65829         Reported by Eric Blake.
65830
65831 2007-05-23  Eric Blake  <ebb9@byu.net>
65832
65833         Fix fseeko/ftello on cygwin 1.5.24.
65834         * doc/functions/fseeko.texi (fseeko): Document the fix.
65835         * doc/functions/ftello.texi (ftello): Document the fix.
65836         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65837         * doc/functions/stdout.text (stdout): New file.
65838         * doc/functions/stderr.text (stderr): New file.
65839         * doc/gnulib.texi (Function Substitutes): Use new files.
65840         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65841         prior to 1.7.0.
65842         * tests/test-ftello.c (main): Likewise for ftello.
65843         * tests/test-fseeko.sh: New file.
65844         * tests/test-ftello.sh: New file.
65845         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65846         with seekable stdin.
65847         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65848         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65849         (gl_REPLACE_FSEEKO): New macro.
65850         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65851         * modules/fseeko (Files): Distribute fseeko.c.
65852         * modules/ftello (Files): Distribute ftello.c.
65853         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65854         mode.
65855         * lib/ftello.c (rpl_ftello): New file.
65856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65857         fseeko, ftello.
65858         (gl_STDIN_LARGE_OFFSET): New macro.
65859         * modules/stdio (Makefile.am): Perform the replacement.
65860         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65861
65862 2007-05-23  Bruno Haible  <bruno@clisp.org>
65863
65864         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65865         GNULIB_POSIXCHECK is defined.
65866
65867 2007-05-21  Bruno Haible  <bruno@clisp.org>
65868
65869         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65870         Check also the output for NaN arguments. When cross-compiling, guess
65871         no on IRIX.
65872         * lib/vasnprintf.c: Update comments.
65873         * tests/test-vasnprintf-posix.c (strisnan): New function.
65874         (test_function): Use it.
65875         * tests/test-vasprintf-posix.c (strisnan): New function.
65876         (test_function): Use it.
65877         * tests/test-snprintf-posix.h (strisnan): New function.
65878         (test_function): Use it.
65879         * tests/test-sprintf-posix.h (strisnan): New function.
65880         (test_function): Use it.
65881         Reported by Eric Blake.
65882
65883 2007-05-20  Bruno Haible  <bruno@clisp.org>
65884
65885         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65886         numbers that fails on BeOS.
65887         * doc/functions/frexpl.texi: Update.
65888
65889 2007-05-20  Jim Meyering  <jim@meyering.net>
65890
65891         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65892         forced upon us by glibc-2.6.
65893
65894 2007-05-20  Bruno Haible  <bruno@clisp.org>
65895
65896         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65897         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65898         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65899         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65900         NEED_PRINTF_INFINITE.
65901         (is_infinitel): New function.
65902         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65903         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65904         gl_PREREQ_VASNPRINTF_INFINITE.
65905         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65906         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65907         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65908         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65909         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65910         gl_PREREQ_VASNPRINTF_INFINITE.
65911         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65912         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65913         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65914         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65915         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65916         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65917         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65918         * doc/functions/fprintf.texi: Update.
65919         * doc/functions/printf.texi: Update.
65920         * doc/functions/snprintf.texi: Update.
65921         * doc/functions/sprintf.texi: Update.
65922         * doc/functions/vfprintf.texi: Update.
65923         * doc/functions/vprintf.texi: Update.
65924         * doc/functions/vsnprintf.texi: Update.
65925         * doc/functions/vsprintf.texi: Update.
65926
65927 2007-05-20  Bruno Haible  <bruno@clisp.org>
65928
65929         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65930         was not found in libc.
65931         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65932
65933 2007-05-20  Bruno Haible  <bruno@clisp.org>
65934
65935         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65936         printed as "-nan" instead of "nan".
65937         * tests/test-vasprintf-posix.c (test_function): Likewise.
65938         * tests/test-snprintf-posix.h (test_function): Likewise.
65939         * tests/test-sprintf-posix.h (test_function): Likewise.
65940         Needed for HP-UX 11.
65941
65942 2007-05-20  Jim Meyering  <jim@meyering.net>
65943
65944         Fix buggy test for the fchownat-deref bug.
65945         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65946         symlink required for the run-test.  Without it, this test would
65947         always declare that fchownat doesn't work, and client code would
65948         unnecessarily use the replacement function with fixed libc.
65949         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65950         Reported by Greg Schafer.
65951
65952 2007-05-19  Bruno Haible  <bruno@clisp.org>
65953
65954         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65955         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65956         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65957         Needed for IRIX 6.5 and Solaris 2.5.1.
65958
65959 2007-05-19  Bruno Haible  <bruno@clisp.org>
65960
65961         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65962         (test_function): Skip tests involving -0.0 on platforms where
65963         -0.0 = 0.0.
65964         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65965         (test_function): Skip tests involving -0.0 on platforms where
65966         -0.0 = 0.0.
65967         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65968         (test_function): Skip tests involving -0.0 on platforms where
65969         -0.0 = 0.0.
65970         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65971         (test_function): Skip tests involving -0.0 on platforms where
65972         -0.0 = 0.0.
65973         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65974         tests.
65975         * tests/test-printf-posix.h (test_function): Likewise.
65976         * tests/test-printf-posix.output: Remove all -0.0 related results.
65977         Needed for IRIX 6.5.
65978
65979 2007-05-19  Bruno Haible  <bruno@clisp.org>
65980
65981         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65982         printed as "nan0x7fffffff" instead of "nan".
65983         * tests/test-vasprintf-posix.c (test_function): Likewise.
65984         * tests/test-snprintf-posix.h (test_function): Likewise.
65985         * tests/test-sprintf-posix.h (test_function): Likewise.
65986         * tests/test-fprintf-posix.h (NaN): Remove macro.
65987         (test_function): Remove all NaN related tests.
65988         * tests/test-printf-posix.h (NaN): Remove macro.
65989         (test_function): Remove all NaN related tests.
65990         * tests/test-printf-posix.output: Remove all NaN related results.
65991         Needed for IRIX 6.5.
65992
65993 2007-05-19  Bruno Haible  <bruno@clisp.org>
65994
65995         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65996         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65997
65998 2007-05-19  Bruno Haible  <bruno@clisp.org>
65999
66000         * lib/float_.h: New file.
66001         * m4/float_h.m4: New file.
66002         * modules/float: New file.
66003         * modules/isnanl (Dependencies): Add float.
66004         * modules/isnanl-nolibm (Dependencies): Likewise.
66005         * modules/mathl (Dependencies): Likewise.
66006         * modules/printf-frexpl (Dependencies): Likewise.
66007         * modules/signbit (Dependencies): Likewise.
66008         * modules/vasnprintf (Dependencies): Likewise.
66009         * doc/headers/float.texi: Update.
66010
66011 2007-05-19  Jim Meyering  <jim@meyering.net>
66012
66013         * lib/utimens.c (gl_futimens): Rename from futimens,
66014         now that glibc-2.6 declares futimens.
66015         * lib/utimens.h: Likewise.
66016
66017 2007-05-19  Bruno Haible  <bruno@clisp.org>
66018
66019         Avoid test failures on mingw.
66020         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
66021         * tests/test-printf-posix.sh: Likewise.
66022         * tests/test-vfprintf-posix.sh: Likewise.
66023         * tests/test-vprintf-posix.sh: Likewise.
66024
66025 2007-05-19  Bruno Haible  <bruno@clisp.org>
66026
66027         Fix *printf result for NaN, Inf, -0.0 on mingw.
66028         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
66029         * lib/vasnprintf.c: Include math.h and isnan.h.
66030         (is_infinite_or_zero): New function.
66031         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
66032         values in the %f, %F, %e, %E, %g, %G directives.
66033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
66034         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66035         gl_PRINTF_INFINITE and test its result. Invoke
66036         gl_PREREQ_VASNPRINTF_INFINITE.
66037         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66038         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66039         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66040         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66041         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66042         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66043         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66044         * doc/functions/fprintf.texi: Update.
66045         * doc/functions/printf.texi: Update.
66046         * doc/functions/snprintf.texi: Update.
66047         * doc/functions/sprintf.texi: Update.
66048         * doc/functions/vfprintf.texi: Update.
66049         * doc/functions/vprintf.texi: Update.
66050         * doc/functions/vsnprintf.texi: Update.
66051         * doc/functions/vsprintf.texi: Update.
66052
66053 2007-05-19  Bruno Haible  <bruno@clisp.org>
66054
66055         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66056         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66057         Instead of multiplying with 10^k, set extra_zeroes to k.
66058         (scale10_round_long_double): Remove function.
66059
66060 2007-05-18  Bruno Haible  <bruno@clisp.org>
66061
66062         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66063         introduced on 2007-05-06.
66064
66065 2007-05-18  Bruno Haible  <bruno@clisp.org>
66066
66067         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66068         %g directives.
66069         * tests/test-vasprintf-posix.c (test_function): Likewise.
66070         * tests/test-snprintf-posix.h (test_function): Likewise.
66071         * tests/test-sprintf-posix.h (test_function): Likewise.
66072
66073 2007-05-18  Bruno Haible  <bruno@clisp.org>
66074
66075         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66076         (strmatch): New function.
66077         (test_function): Test the %f directive on numbers of various exponents.
66078         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66079         (strmatch): New function.
66080         (test_function): Test the %f directive on numbers of various exponents.
66081         * tests/test-snprintf-posix.h (strmatch): New function.
66082         (test_function): Test the %f directive on numbers of various exponents.
66083         * tests/test-sprintf-posix.h (strmatch): New function.
66084         (test_function): Test the %f directive on numbers of various exponents.
66085         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66086         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66087         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66088         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66089
66090 2007-05-18  Bruno Haible  <bruno@clisp.org>
66091
66092         Add support for 'long double' number output.
66093         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66094         * lib/vasnprintf.c: Include math.h and float+.h.
66095         (mp_limb_t): New type.
66096         (GMP_LIMB_BITS): New macro.
66097         (mp_twolimb_t): New type.
66098         (GMP_TWOLIMB_BITS): New macro.
66099         (mpn_t): New type.
66100         (multiply, divide, convert_to_decimal, decode_long_double,
66101         scale10_round_long_double, scale10_round_decimal_long_double,
66102         floorlog10l): New functions.
66103         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66104         for the %f, %F, %e, %E, %g, %G directives.
66105         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66106         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66107         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66108         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66109         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66110         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66111         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66112         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66113         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66114         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66115         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66116         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66117         * modules/snprintf-posix (Depends-on): Likewise.
66118         * modules/sprintf-posix (Depends-on): Likewise.
66119         * modules/vasnprintf-posix (Depends-on): Likewise.
66120         * modules/vasprintf-posix (Depends-on): Likewise.
66121         * modules/vfprintf-posix (Depends-on): Likewise.
66122         * modules/vsnprintf-posix (Depends-on): Likewise.
66123         * modules/vsprintf-posix (Depends-on): Likewise.
66124         * modules/vasnprintf (Files): Add lib/float+.h.
66125         * doc/functions/fprintf.texi: Update.
66126         * doc/functions/printf.texi: Update.
66127         * doc/functions/snprintf.texi: Update.
66128         * doc/functions/sprintf.texi: Update.
66129         * doc/functions/vfprintf.texi: Update.
66130         * doc/functions/vprintf.texi: Update.
66131         * doc/functions/vsnprintf.texi: Update.
66132         * doc/functions/vsprintf.texi: Update.
66133
66134 2007-05-18  Bruno Haible  <bruno@clisp.org>
66135
66136         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66137
66138 2007-05-18  Bruno Haible  <bruno@clisp.org>
66139
66140         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66141         for printing 64-bit integers. Needed for mingw.
66142
66143 2007-05-18  Bruno Haible  <bruno@clisp.org>
66144
66145         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66146         gl_FUNC_FREXPL_WORKS.
66147         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66148
66149 2007-05-18  Bruno Haible  <bruno@clisp.org>
66150
66151         * modules/frexpl-nolibm-tests: New file.
66152
66153         * modules/frexpl-nolibm: New file.
66154         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66155
66156 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66157
66158         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66159         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66160         GCC 4.2, which otherwise issues a lot of warnings.
66161         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66162         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66163         Likewise.
66164         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66165         * modules/iconv_open (iconv.h): Likewise.
66166         * modules/locale (locale.h): Likewise.
66167         * modules/netinet_in (netinet/in.h): Likewise.
66168         * modules/sys_select (sys_select.h): Likewise.
66169         * modules/sys_socket (sys/socket.h): Likewise.
66170         * modules/sys_stat (sys/stat.h): Likewise.
66171         * modules/sysexits (sysexits.h): Likewise.
66172         * modules/unistd (unistd.h): Likewise.
66173
66174 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66175
66176         * modules/closein-tests (Makefile.am): Distribute
66177         `test-closein.sh'.
66178
66179 2007-05-17  Bruno Haible  <bruno@clisp.org>
66180
66181         * tests/test-printf-posix.output: Renamed from
66182         tests/test-fprintf-posix.out.
66183         * modules/fprintf-posix-tests: Update.
66184         * modules/printf-posix-tests: Update.
66185         * modules/vfprintf-posix-tests: Update.
66186         * modules/vprintf-posix-tests: Update.
66187         * tests/test-fprintf-posix.sh: Update.
66188         * tests/test-printf-posix.sh: Update.
66189         * tests/test-vfprintf-posix.sh: Update.
66190         * tests/test-vprintf-posix.sh: Update.
66191         Reported by Ralf Wildenhues.
66192
66193 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66194
66195         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66196         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66197         GCC 4.2, which otherwise issues a lot of warnings.
66198         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66199         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66200         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66201         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66202         it should no longer be needed.
66203         * lib/string_.h: Likewise.
66204         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66205         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66206         * modules/inttypes (inttypes.h): Likewise.
66207         * modules/math (math.h): Likewise.
66208         * modules/search (search.h): Likewise.
66209         * modules/signal (signal.h): Likewise.
66210         * modules/stdint (stdint.h): Likewise.
66211         * modules/stdio (stdio.h): Likewise.
66212         * modules/stdlib (stdlib.h): Likewise.
66213         * modules/string (string.h): Likewise.
66214         * modules/sys_time (sys/time.h): Likewise.
66215         * modules/time (time.h): Likewise.
66216         * modules/wchar (wchar.h): Likewise.
66217         * modules/wctype (wtype.h): Likewise.
66218
66219 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66220
66221         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66222
66223 2007-05-13  Bruno Haible  <bruno@clisp.org>
66224
66225         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66226         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66227         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66228         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66229         (gl_PREREQ_STRTOK_R): Don't require it here.
66230
66231 2007-05-13  Bruno Haible  <bruno@clisp.org>
66232
66233         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66234         when used in C++ mode.
66235
66236 2007-05-12  Bruno Haible  <bruno@clisp.org>
66237
66238         * lib/linebuffer.h: Tweak doc.
66239         * lib/linebuffer.c: Likewise.
66240
66241 2007-05-12  James Youngman  <jay@gnu.org>
66242
66243         * lib/linebuffer.c (readlinebuffer_delim): New function,
66244         like readlinebuffer, but use a caller-specified delimiter.
66245         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66246         as the delimiter.
66247         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66248
66249 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66250
66251         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66252         * modules/openat (Files): Remove openat-die.c.
66253         (Depends-on): Add openat-die.
66254         * modules/openat-die: New module.
66255
66256 2007-05-06  Bruno Haible  <bruno@clisp.org>
66257
66258         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66259         Update with info about Cygwin.
66260         * doc/functions/fprintf.texi: Update.
66261         * doc/functions/printf.texi: Update.
66262         * doc/functions/snprintf.texi: Update.
66263         * doc/functions/sprintf.texi: Update.
66264         * doc/functions/vfprintf.texi: Update.
66265         * doc/functions/vprintf.texi: Update.
66266         * doc/functions/vsnprintf.texi: Update.
66267         * doc/functions/vsprintf.texi: Update.
66268         Reported by Eric Blake.
66269
66270 2007-05-06  Bruno Haible  <bruno@clisp.org>
66271
66272         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66273         padding ourselves for the floating-point directives.
66274         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66276         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66277         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66278         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
66279         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66280         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66281         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66282         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66283         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66286         * tests/test-snprintf-posix.h (test_function): Also check the width
66287         and some flags in the %f directive.
66288         * tests/test-sprintf-posix.h (test_function): Likewise.
66289         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66290         * tests/test-vasprintf-posix.c (test_function): Likewise.
66291         * doc/functions/fprintf.texi: Update.
66292         * doc/functions/printf.texi: Update.
66293         * doc/functions/snprintf.texi: Update.
66294         * doc/functions/sprintf.texi: Update.
66295         * doc/functions/vfprintf.texi: Update.
66296         * doc/functions/vprintf.texi: Update.
66297         * doc/functions/vsnprintf.texi: Update.
66298         * doc/functions/vsprintf.texi: Update.
66299
66300 2007-05-06  Bruno Haible  <bruno@clisp.org>
66301
66302         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66303         pass the ' flag character to sprintf or snprintf.
66304         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66306         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66307         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66308         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66309         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66310         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66311         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66312         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66313         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66314         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66315         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66316         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66317         flag.
66318         * tests/test-sprintf-posix.h (test_function): Likewise.
66319         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66320         * tests/test-vasprintf-posix.c (test_function): Likewise.
66321         * doc/functions/fprintf.texi: Update.
66322         * doc/functions/printf.texi: Update.
66323         * doc/functions/snprintf.texi: Update.
66324         * doc/functions/sprintf.texi: Update.
66325         * doc/functions/vfprintf.texi: Update.
66326         * doc/functions/vprintf.texi: Update.
66327         * doc/functions/vsnprintf.texi: Update.
66328         * doc/functions/vsprintf.texi: Update.
66329
66330 2007-05-01  Bruno Haible  <bruno@clisp.org>
66331
66332         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66333
66334 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66335
66336         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66337         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66338
66339 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66340
66341         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66342         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66343         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66344
66345 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66346
66347         * lib/argp-help.c (struct hol_entry): New member `ord'.
66348         (HOL_ENTRY_PTRCMP): Use ord for comparison
66349         (hol_sort): Initialize ord.
66350
66351 2007-05-01  Bruno Haible  <bruno@clisp.org>
66352
66353         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66354         Reported by Eric Blake.
66355         * doc/gnulib.texi (Function Substitutes): Update.
66356
66357 2007-05-01  Bruno Haible  <bruno@clisp.org>
66358
66359         * doc/functions.texi: Remove file, now redundant through
66360         doc/functions/*.texi.
66361
66362 2007-05-01  Bruno Haible  <bruno@clisp.org>
66363
66364         * modules/argp (Depends-on): Add sleep.
66365
66366 2007-05-01  Bruno Haible  <bruno@clisp.org>
66367
66368         * modules/sleep-tests: New file.
66369         * tests/test-sleep.c: New file.
66370
66371         * modules/sleep: New file.
66372         * lib/sleep.c: New file.
66373         * m4/sleep.m4: New file.
66374         * lib/unistd_.h (sleep): New declaration.
66375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
66376         HAVE_SLEEP.
66377         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
66378         * doc/functions/sleep.texi: Document the sleep module.
66379
66380 2007-05-01  Bruno Haible  <bruno@clisp.org>
66381
66382         * lib/sigprocmask.h: Remove file.
66383         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
66384         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
66385         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
66386         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
66387         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
66388         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
66389         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
66390         HAVE_SIGSET_T as a shell variable.
66391         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
66392         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
66393         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
66394         (Depends-on): Add signal. Remove verify.
66395         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
66396         (Include): Mention <signal.h> instead of sigprocmask.h.
66397         * NEWS: Mention the change.
66398         * lib/fatal-signal.c: Don't include sigprocmask.h.
66399
66400 2007-05-01  Bruno Haible  <bruno@clisp.org>
66401
66402         * modules/signal: New file.
66403         * lib/signal_.h: New file.
66404         * m4/signal_h.m4: New file.
66405
66406 2007-05-01  Bruno Haible  <bruno@clisp.org>
66407
66408         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
66409         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
66410         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
66411         HAVE_WCTYPE_CTMP_BUG into wctype.h.
66412
66413 2007-05-01  Bruno Haible  <bruno@clisp.org>
66414
66415         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
66416         configure time.
66417         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
66418         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
66419         * modules/sys_stat (Makefile.am): Substitute their values into
66420         sys/stat.h.
66421
66422 2007-05-01  Bruno Haible  <bruno@clisp.org>
66423
66424         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66425         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66426         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66427
66428 2007-05-01  Bruno Haible  <bruno@clisp.org>
66429
66430         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66431         'assert' module here.
66432
66433 2007-05-01  Bruno Haible  <bruno@clisp.org>
66434
66435         * doc/functions/*.texi: New files.
66436         * doc/functions/google-ranking.txt: New file.
66437         * doc/gnulib.texi (Function Substitutes): New chapter.
66438         (ctime, inet_ntoa): Remove sections.
66439         * doc/ctime.texi: Remove file.
66440         * doc/inet_ntoa.texi: Remove file.
66441         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
66442         dependencies.
66443         (%.info): New rule, specifying a --reference-limit.
66444
66445 2007-05-01  Bruno Haible  <bruno@clisp.org>
66446
66447         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
66448
66449 2007-05-01  Bruno Haible  <bruno@clisp.org>
66450
66451         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
66452         the portability of 'mkdir' to mingw systems.
66453
66454 2007-05-01  Bruno Haible  <bruno@clisp.org>
66455
66456         * doc/headers/google-ranking.txt: New file.
66457
66458 2007-04-30  Eric Blake  <ebb9@byu.net>
66459
66460         Prefer fseeko to fseek.
66461         * modules/getpass (Depends-on): Add fseeko.
66462         * lib/getpass.c (getpass): Use fseeko, not fseek.
66463
66464 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66465
66466         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66467         assumes the sorting is stable, while most qsort implementations
66468         are not.  Use argument addresses to ensure they never compare as
66469         equal.
66470
66471         * tests/test-argp-2.sh (usage-indent test): Fix output
66472         (func_compare): Restore diff options
66473         * tests/test-argp.c: Restore #include "progname.h"
66474
66475 2007-04-29  Bruno Haible  <bruno@clisp.org>
66476
66477         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
66478         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66479         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
66480         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66481         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
66482         (configure.ac): Define CHECK_SNPRINTF_POSIX.
66483         (TESTS, check_PROGRAMS): Add test-snprintf.
66484         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
66485         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
66486         (TESTS, check_PROGRAMS): Add test-vsnprintf.
66487         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
66488         assertions that fail on HP-UX, OSF/1, or IRIX.
66489         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
66490
66491 2007-04-29  Bruno Haible  <bruno@clisp.org>
66492
66493         * MODULES.html.sh (posix_functions): Remove 'contents'.
66494
66495 2007-04-29  Karl Berry  <karl@gnu.org>
66496
66497         * config/srclist.txt (gendocs_template_min): new entry.
66498
66499 2007-04-29  Bruno Haible  <bruno@clisp.org>
66500
66501         Work around fpurge bug on BSD systems.
66502         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
66503         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
66504         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
66505         fpurge to rpl_fpurge if the system already has this function.
66506         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
66507         the case where the system already has this function. Correct invariants
66508         on BSD systems.
66509         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
66510         BSD systems.
66511
66512 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
66513
66514         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
66515         proposed by Sven Verdoolaege.
66516
66517         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66518         options.
66519         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66520         (usage and help tests): Update
66521
66522 2007-04-29  Bruno Haible  <bruno@clisp.org>
66523
66524         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66525         Print more information in case of failure. Disable a test on BeOS.
66526
66527 2007-04-29  Bruno Haible  <bruno@clisp.org>
66528
66529         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66530         This helps debugging on systems on which no gdb is available.
66531
66532 2007-04-29  Bruno Haible  <bruno@clisp.org>
66533
66534         * lib/freading.h: Improve comments.
66535         * lib/fwriting.h: Likewise.
66536         * tests/test-freading.c (main): Don't check freading immediately after
66537         repositioning. Needed for glibc.
66538
66539 2007-04-29  Bruno Haible  <bruno@clisp.org>
66540
66541         * lib/freading.c (freading): Trivial simplification.
66542
66543 2007-04-28  Bruno Haible  <bruno@clisp.org>
66544
66545         * tests/test-fwriting.c (main): Also test the interaction between
66546         fflush and fwriting.
66547         * modules/fwriting-tests (Depends-on): Add fflush.
66548
66549         * tests/test-freading.c (main): Also test the interaction between
66550         fflush and freading.
66551         * modules/freading-tests (Depends-on): Add fflush.
66552
66553 2007-04-28  Bruno Haible  <bruno@clisp.org>
66554
66555         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66556         fseeko and ftello.
66557         Suggested by Eric Blake.
66558
66559 2007-04-28  Jim Meyering  <jim@meyering.net>
66560
66561         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66562         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66563         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66564
66565 2007-04-27  Eric Blake  <ebb9@byu.net>
66566
66567         * doc/headers/assert.texi (assert.h): Document assert module use.
66568
66569 2007-04-27  Bruno Haible  <bruno@clisp.org>
66570
66571         * doc/headers/*.texi: New files.
66572         * doc/gnulib.texi (Header File Substitutes): New chapter.
66573         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66574         dependencies.
66575         (standards.info ,standards.html, standards.dvi): Update dependencies.
66576         (mostlyclean, clean): New targets.
66577
66578 2007-04-27  Bruno Haible  <bruno@clisp.org>
66579
66580         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66581         * modules/sysexits (Files, Makefile.am): Update.
66582
66583         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66584         * modules/sys_socket (Files, Makefile.am): Update.
66585
66586         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66587         * modules/sys_stat (Files, Makefile.am): Update.
66588
66589 2007-04-27  Eric Blake  <ebb9@byu.net>
66590
66591         * lib/freading.h: Improve comments.
66592         * lib/fwriting.h: Likewise.
66593         * lib/fflush.c: Likewise.
66594
66595         Fix closein for mingw.
66596         * modules/closein-tests: Add tests for closein.
66597         * tests/test-closein.c: New file.
66598         * tests/test-closein.sh: Likewise.
66599         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66600         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66601
66602 2007-04-27  Bruno Haible  <bruno@clisp.org>
66603
66604         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66605         version is < 6.
66606         * lib/math_.h [__DECC]: Likewise.
66607         * lib/stdio_.h [__DECC]: Likewise.
66608         * lib/stdlib_.h [__DECC]: Likewise.
66609         * lib/string_.h [__DECC]: Likewise.
66610         * lib/time_.h [__DECC]: Likewise.
66611         * lib/wchar_.h [__DECC]: Likewise.
66612         * lib/wctype_.h [__DECC]: Likewise.
66613
66614 2007-04-27  Bruno Haible  <bruno@clisp.org>
66615
66616         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66617
66618 2007-04-27  Bruno Haible  <bruno@clisp.org>
66619
66620         * lib/fflush.c: Add comments.
66621         * modules/fpurge-tests (Depends-on): Add fflush.
66622         * modules/freadable-tests (Depends-on): Likewise.
66623         * modules/fwritable-tests (Depends-on): Likewise.
66624
66625 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66626
66627         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66628         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66629         Report by Bruno Haible <bruno@clisp.org>.
66630
66631 2007-04-26  Eric Blake  <ebb9@byu.net>
66632
66633         Fix fflush on mingw.
66634         * modules/fflush (Depends-on): Add freading.
66635         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66636         but unread data.
66637
66638 2007-04-26  Eric Blake  <ebb9@byu.net>
66639         and Bruno Haible  <bruno@clisp.org>
66640
66641         Implement freading and fwriting.
66642         * lib/freading.c: New file.
66643         * lib/freading.h: Likewise.
66644         * m4/freading.m4: Likewise.
66645         * modules/freading: Likewise.
66646         * modules/freading-tests: Likewise.
66647         * tests/test-freading.c: Likewise.
66648         * lib/fwriting.c: New file.
66649         * lib/fwriting.h: Likewise.
66650         * m4/fwriting.m4: Likewise.
66651         * modules/fwriting: Likewise.
66652         * modules/fwriting-tests: Likewise.
66653         * tests/test-fwriting.c: Likewise.
66654         * MODULES.html.sh (File stream based Input/Output): Mention them.
66655
66656 2007-04-26  Bruno Haible  <bruno@clisp.org>
66657
66658         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66659         'long' when we assume it.
66660         Suggested by Eric Blake.
66661
66662 2007-04-26  Bruno Haible  <bruno@clisp.org>
66663
66664         Ensure fseeko, ftello are declared on glibc systems.
66665         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66666         * modules/fseeko (configure.ac-early): Likewise.
66667         * modules/ftello (configure.ac-early): Likewise.
66668         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66669         AC_FUNC_FSEEKO for this.
66670         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66671         (gl_CHECK_FSEEKO): Remove macro.
66672
66673 2007-04-26  Bruno Haible  <bruno@clisp.org>
66674
66675         * tests/test-fflush.c (main): Also check the ftell result after
66676         fflush and fseek/fseeko.
66677         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66678         file descriptor position cache in the stream.
66679         * lib/fseeko.c (rpl_fseeko): Likewise.
66680
66681 2007-04-26  Bruno Haible  <bruno@clisp.org>
66682
66683         * modules/fflush-tests (Depends-on): Add fseeko.
66684
66685 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66686             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66687
66688         * lib/argz_.h: ensure error_t definition is obtained in same
66689         mechanism system argz.h would have.
66690         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66691         argz facilities are known bad.  Err on the side of caution if
66692         cross-compiling.
66693
66694 2007-04-25  Eric Blake  <ebb9@byu.net>
66695
66696         * lib/fpurge.c (includes): Use stdlib.h for free.
66697         * tests/test-fflush.c (main): Also test fflush-fseeko.
66698
66699 2007-04-25  Bruno Haible  <bruno@clisp.org>
66700
66701         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66702         * lib/fseeko.c: New file.
66703         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66704         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66705         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66706         gl_FUNC_FSEEKO.
66707         (gl_FUNC_FSEEKO): Invoke it.
66708         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66709         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66710         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66711
66712 2007-04-25  Bruno Haible  <bruno@clisp.org>
66713
66714         * modules/fflush (Depends-on): Add ftello.
66715
66716 2007-04-25  Bruno Haible  <bruno@clisp.org>
66717
66718         * modules/ftello-tests: New file.
66719         * tests/test-ftello.c: New file.
66720
66721         * modules/ftello: New file.
66722         * m4/ftello.m4: New file.
66723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66724         HAVE_FTELLO.
66725         * lib/stdio_.h (ftello): New declaration.
66726         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66727         HAVE_FTELLO.
66728
66729 2007-04-25  Bruno Haible  <bruno@clisp.org>
66730
66731         * modules/fseeko-tests: New file.
66732         * tests/test-fseeko.c: New file.
66733
66734         * modules/fseeko: New file.
66735         * m4/fseeko.m4: New file.
66736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66737         HAVE_FSEEKO.
66738         * lib/stdio_.h (fseeko): New declaration.
66739         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66740         HAVE_FSEEKO.
66741
66742 2007-04-25  Bruno Haible  <bruno@clisp.org>
66743
66744         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66745
66746 2007-04-25  Bruno Haible  <bruno@clisp.org>
66747
66748         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66749         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66750         * tests/test-unistd.c: Likewise.
66751         * tests/test-fcntl.c: Likewise.
66752
66753 2007-04-23  Eric Blake  <ebb9@byu.net>
66754
66755         * lib/fflush.c: Fix missing include.
66756         Reported by Bruno Haible.
66757
66758 2007-04-23  Bruno Haible  <bruno@clisp.org>
66759
66760         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66761         Reported by Eric Blake.
66762
66763 2007-04-23  Bruno Haible  <bruno@clisp.org>
66764
66765         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66766
66767 2007-04-23  Bruno Haible  <bruno@clisp.org>
66768
66769         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66770
66771 2007-04-23  Bruno Haible  <bruno@clisp.org>
66772
66773         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66774         Needed on HP-UX 11.
66775
66776 2007-04-16  Eric Blake  <ebb9@byu.net>
66777
66778         Make fflush rely on fpurge.
66779         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66780         open coding all variants.
66781         * modules/fflush (Depends-on): Add fpurge and unistd.
66782         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66783         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66784
66785         Fix --with-tests compilation on cygwin.
66786         * modules/argmatch-tests (Makefile.am): List gnulib library first
66787         in LDADD.
66788         * modules/argp-tests (Makefile.am): Likewise.
66789         * modules/array-list-tests (Makefile.am): Likewise.
66790         * modules/array-oset-tests (Makefile.am): Likewise.
66791         * modules/avltree-list-tests (Makefile.am): Likewise.
66792         * modules/avltree-oset-tests (Makefile.am): Likewise.
66793         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66794         * modules/carray-list-tests (Makefile.am): Likewise.
66795         * modules/dirname-tests (Makefile.am): Likewise.
66796         * modules/frexp-tests (Makefile.am): Likewise.
66797         * modules/isnanl-tests (Makefile.am): Likewise.
66798         * modules/linked-list-tests (Makefile.am): Likewise.
66799         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66800         * modules/lock-tests (Makefile.am): Likewise.
66801         * modules/rbtree-list-tests (Makefile.am): Likewise.
66802         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66803         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66804         * modules/tls-tests (Makefile.am): Likewise.
66805         * modules/tsearch-tests (Makefile.am): Likewise.
66806         * modules/xvasprintf-tests (Makefile.am): Likewise.
66807
66808         Fix fpurge for cygwin.
66809         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66810         value.
66811         * modules/fpurge-tests (Depends-on): Clean up trash.
66812
66813 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66814
66815         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66816
66817         * m4/autobuild.m4: Re-indent.
66818
66819 2007-04-13  Bruno Haible  <bruno@clisp.org>
66820
66821         * modules/fpurge-tests: New file.
66822         * tests/test-fpurge.c: New file.
66823
66824         * modules/fpurge: New file.
66825         * lib/fpurge.h: New file.
66826         * lib/fpurge.c: New file.
66827         * m4/fpurge.m4: New file.
66828
66829 2007-04-13  Bruno Haible  <bruno@clisp.org>
66830
66831         * modules/fbufmode-tests: New file.
66832         * tests/test-fbufmode.c: New file.
66833
66834         * modules/fbufmode: New file.
66835         * lib/fbufmode.h: New file.
66836         * lib/fbufmode.c: New file.
66837         * m4/fbufmode.m4: New file.
66838
66839 2007-04-13  Bruno Haible  <bruno@clisp.org>
66840
66841         * modules/fwritable-tests: New file.
66842         * tests/test-fwritable.c: New file.
66843
66844         * modules/fwritable: New file.
66845         * lib/fwritable.h: New file.
66846         * lib/fwritable.c: New file.
66847         * m4/fwritable.m4: New file.
66848
66849 2007-04-13  Bruno Haible  <bruno@clisp.org>
66850
66851         * modules/freadable-tests: New file.
66852         * tests/test-freadable.c: New file.
66853
66854         * modules/freadable: New file.
66855         * lib/freadable.h: New file.
66856         * lib/freadable.c: New file.
66857         * m4/freadable.m4: New file.
66858
66859 2007-04-13  Bruno Haible  <bruno@clisp.org>
66860
66861         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66862         MOSTLYCLEANFILES.
66863
66864 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66865
66866         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66867         gzip bootstrap.conf to avoid dragging in i18n machinery.
66868         (gnulib_tool_option): Use it.
66869
66870 2007-04-13  Bruno Haible  <bruno@clisp.org>
66871
66872         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66873         %F directives.
66874         * tests/test-vasprintf-posix.c (test_function): Likewise.
66875         * tests/test-snprintf-posix.h (test_function): Likewise.
66876         * tests/test-sprintf-posix.h (test_function): Likewise.
66877         * tests/test-fprintf-posix.h (test_function): Likewise.
66878         * tests/test-printf-posix.h (test_function): Likewise.
66879         * tests/test-fprintf-posix.out: Likewise.
66880
66881 2007-04-13  Bruno Haible  <bruno@clisp.org>
66882
66883         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66884         * modules/tls-tests (configure.ac): Likewise.
66885         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66886
66887 2007-04-13  Bruno Haible  <bruno@clisp.org>
66888
66889         * lib/tls.c (glthread_tls_get): Fix return type.
66890         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66891
66892 2007-04-12  Eric Blake  <ebb9@byu.net>
66893
66894         * modules/gettime (Depends-on): Remove gettime.
66895         Reported by Dmitry V. Levin.
66896
66897 2007-04-12  Bruno Haible  <bruno@clisp.org>
66898
66899         * modules/fflush (Include): Mention <stdio.h>.
66900         * modules/strtoimax (Include): Mention <inttypes.h>.
66901         * modules/strtoumax (Include): Likewise.
66902
66903 2007-04-12  Eric Blake  <ebb9@byu.net>
66904
66905         * .cvsignore: New file.
66906         * .gitignore: Likewise.
66907
66908 2007-04-12  Bruno Haible  <bruno@clisp.org>
66909
66910         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66911         not before, since $(LDADD) often contains libgnu.a.
66912         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66913         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66914         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66915         Needed on Cygwin.
66916
66917 2007-04-12  Eric Blake  <ebb9@byu.net>
66918
66919         Work around glibc's failure to flush stdin on fclose.
66920         * lib/closein.c (close_stdin): Flush stdin before closing.
66921
66922         Work around glibc's failure to reset seekable stdin on exit.
66923         * modules/closein: New module.
66924         * lib/closein.c: New file.
66925         * lib/closein.h: Likewise.
66926         * m4/closein.m4: Likewise.
66927         * MODULES.html.sh (File stream based Input/Output): Document it.
66928
66929 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66930
66931         * gnulib-tool: Rename generated 'autobuild' script to
66932         'do-autobuild' in --create-megatestdir output.
66933
66934         * doc/gnulib.texi (Build robot for gnulib): Fix.
66935
66936 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66937
66938         * modules/sysexits (Depends-on): Add absolute-header.
66939
66940 2007-04-12  Eric Blake  <ebb9@byu.net>
66941
66942         No need to preserve errno on success.
66943         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66944         Reported by Bruno Haible.
66945
66946 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66947
66948         * MODULES.html.sh (Support for maintaining and releasing
66949         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66950
66951 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66952
66953         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66954
66955 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66956
66957         * modules/autobuild: New module.
66958
66959         * m4/autobuild.m4: New file.
66960
66961 2007-04-11  Bruno Haible  <bruno@clisp.org>
66962
66963         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66964         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66965         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66967         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66968         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66969         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66970         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66971         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66972         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66973         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66974         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66975         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66976         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66977         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66978         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66979         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66980         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66981         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66982         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66983         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66984         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66986         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66987         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66988         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66989         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66990         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66991         Reported by Eric Blake.
66992
66993 2007-04-11  Bruno Haible  <bruno@clisp.org>
66994
66995         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66996
66997 2007-04-10  Bruno Haible  <bruno@clisp.org>
66998
66999         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
67000         for NaN and Infinity. Needed on FreeBSD 6.1.
67001         * tests/test-vasnprintf-posix.c (test_function): Undo last change
67002         regarding results for "%010a" of Infinity and NaN.
67003         * tests/test-vasprintf-posix.c (test_function): Likewise.
67004         * tests/test-snprintf-posix.h (test_function): Likewise.
67005         * tests/test-sprintf-posix.h (test_function): Likewise.
67006         * tests/test-fprintf-posix.h (test_function): Likewise.
67007         * tests/test-printf-posix.h (test_function): Likewise.
67008         * tests/test-fprintf-posix.out: Likewise.
67009
67010 2007-04-10  Bruno Haible  <bruno@clisp.org>
67011
67012         * modules/locale-tests: New file.
67013         * tests/test-locale.c: New file.
67014
67015         * modules/locale: New file.
67016         * lib/locale_.h: New file.
67017         * m4/locale_h.m4: New file.
67018
67019 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
67020             Bruno Haible  <bruno@clisp.org>
67021
67022         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
67023         be determined, test for availability of the copysignf, copysign,
67024         copysignl functions.
67025         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
67026         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
67027         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
67028
67029 2007-04-09  Eric Blake  <ebb9@byu.net>
67030
67031         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
67032         * modules/stdio (Makefile.am): Support fflush.
67033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67034         * modules/fflush: New file.
67035         * lib/fflush.c: Likewise.
67036         * m4/fflush.m4: Likewise.
67037         * modules/fflush-tests: New test.
67038         * tests/test-fflush.c: Likewise.
67039         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67040
67041 2007-04-06  Bruno Haible  <bruno@clisp.org>
67042
67043         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67044         (VASNPRINTF): Use signbit for faster determination whether to print a
67045         minus sign.
67046         * modules/vasnprintf (Files): Remove lib/float+.h.
67047         * modules/fprintf-posix (Depends-on): Add signbit.
67048         * modules/snprintf-posix (Depends-on): Likewise.
67049         * modules/sprintf-posix (Depends-on): Likewise.
67050         * modules/vasnprintf-posix (Depends-on): Likewise.
67051         * modules/vasprintf-posix (Depends-on): Likewise.
67052         * modules/vfprintf-posix (Depends-on): Likewise.
67053         * modules/vsnprintf-posix (Depends-on): Likewise.
67054         * modules/vsprintf-posix (Depends-on): Likewise.
67055
67056 2007-04-06  Bruno Haible  <bruno@clisp.org>
67057
67058         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67059         * tests/test-frexpl.c (main): Likewise.
67060         * tests/test-ldexpl.c (main): Likewise.
67061         * modules/frexp-tests (Depends-on): Add signbit.
67062         * modules/frexpl-tests (Depdends-on): Likewise.
67063         * modules/ldexpl-tests (Depdends-on): Likewise.
67064
67065 2007-04-06  Bruno Haible  <bruno@clisp.org>
67066
67067         * modules/signbit-tests: New file.
67068         * tests/test-signbit.c: New file.
67069
67070         * modules/signbit: New file.
67071         * lib/signbitf.c: New file.
67072         * lib/signbitd.c: New file.
67073         * lib/signbitl.c: New file.
67074         * m4/signbit.m4: New file.
67075         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67076         (signbit): New macro.
67077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67078         REPLACE_SIGNBIT.
67079         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67080         REPLACE_FREXPL into math.h.
67081
67082 2007-04-06  Bruno Haible  <bruno@clisp.org>
67083
67084         * modules/isnanf-nolibm-tests: New file.
67085         * tests/test-isnanf.c: New file.
67086
67087         * modules/isnanf-nolibm: New file.
67088         * lib/isnanf.h: New file.
67089         * lib/isnanf.c: New file.
67090         * lib/isnan.c: Consider the USE_FLOAT macro.
67091         * m4/isnanf.m4: New file.
67092
67093 2007-04-06  Bruno Haible  <bruno@clisp.org>
67094
67095         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67096         (Link): New section.
67097
67098         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67099
67100 2007-04-06  Bruno Haible  <bruno@clisp.org>
67101
67102         Assume the 'long double' type.
67103         * m4/longdouble.m4: Remove file.
67104         * config/srclist.txt: Don't mention longdouble.m4.
67105         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67106         * lib/float+.h: Likewise.
67107         * lib/frexp.c: Likewise.
67108         * lib/printf-args.h: Likewise.
67109         * lib/printf-args.c: Likewise.
67110         * lib/printf-frexp.c: Likewise.
67111         * lib/printf-parse.c: Likewise.
67112         * lib/vasnprintf.c: Likewise.
67113         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67114         * m4/intl.m4: Likewise.
67115         * m4/isnanl.m4: Likewise.
67116         * m4/printf.m4: Likewise.
67117         * m4/printf-frexpl.m4: Likewise.
67118         * m4/vasnprintf.m4: Likewise.
67119         * modules/allocsa (Files): Remove m4/longdouble.m4.
67120         * modules/gettext (Files): Likewise.
67121         * modules/relocatable-prog-wrapper (Files): Likewise.
67122         * modules/vasnprintf (Files): Likewise.
67123         * modules/isnanl (Files): Likewise.
67124         (Include): Simplify.
67125         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67126         (Include): Simplify.
67127         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67128         (Include): Simplify.
67129         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67130         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67131         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67132         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67133         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67134         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67135         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67136         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67137         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67138         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67139         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67140         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67141         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67142         * tests/test-isnanl.c: Likewise.
67143         * tests/test-snprintf-posix.h: Likewise.
67144         * tests/test-sprintf-posix.h: Likewise.
67145         * tests/test-vasnprintf-posix.c: Likewise.
67146         * tests/test-vasnprintf-posix2.c: Likewise.
67147         * tests/test-vasprintf-posix.c: Likewise.
67148
67149 2007-04-06  Bruno Haible  <bruno@clisp.org>
67150
67151         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67152         * lib/math_.h [__DECC]: Include the overridden include file through
67153         #include_next, outside the double-inclusion guard.
67154         * lib/stdio_.h [__DECC]: Likewise.
67155         * lib/stdlib_.h [__DECC]: Likewise.
67156         * lib/string_.h [__DECC]: Likewise.
67157         * lib/time_.h [__DECC]: Likewise.
67158         * lib/wchar_.h [__DECC]: Likewise.
67159         * lib/wctype_.h [__DECC]: Likewise.
67160         * lib/inttypes_.h [__DECC]: Likewise.
67161         Reported by Albert Chin <china@thewrittenword.com> in
67162         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67163
67164 2007-04-04  Eric Blake  <ebb9@byu.net>
67165
67166         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67167         1.5.x.
67168
67169 2007-04-04  Bruno Haible  <bruno@clisp.org>
67170
67171         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67172         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67173
67174 2007-04-04  Bruno Haible  <bruno@clisp.org>
67175
67176         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67177         results for "%010a" of Infinity and NaN.
67178         * tests/test-vasprintf-posix.c (test_function): Likewise.
67179         * tests/test-snprintf-posix.h (test_function): Likewise.
67180         * tests/test-sprintf-posix.h (test_function): Likewise.
67181         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67182         * tests/test-printf-posix.h (test_function): Likewise.
67183         * tests/test-fprintf-posix.out: Update.
67184         Needed for FreeBSD 6.1.
67185
67186 2007-04-04  Bruno Haible  <bruno@clisp.org>
67187
67188         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67189         directly used by the gnulib modules nor by gnulib-tool.
67190
67191 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67192
67193         * DEPENDENCIES: Give overall description of version dependency
67194         desirability.  Use more-typical names for apps.
67195         Add shell, coreutils, diffutils, grep, tar, gzip.
67196
67197 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67198
67199         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67200
67201 2007-04-04  Karl Berry  <karl@gnu.org>
67202
67203         * MODULES.html.sh (func_module): missing '.
67204
67205 2007-04-03  Bruno Haible  <bruno@clisp.org>
67206
67207         * modules/argmatch-tests (Makefile.am): New variable
67208         test_argmatch_LDADD.
67209         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67210         * modules/array-list-tests (Makefile.am): New variable
67211         test_array_list_LDADD.
67212         * modules/array-oset-tests (Makefile.am): New variable
67213         test_array_oset_LDADD.
67214         * modules/avltree-list-tests (Makefile.am): New variable
67215         test_avltree_list_LDADD.
67216         * modules/avltree-oset-tests (Makefile.am): New variable
67217         test_avltree_oset_LDADD.
67218         * modules/avltreehash-list-tests (Makefile.am): New variable
67219         test_avltreehash_list_LDADD.
67220         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67221         test_canonicalize_lgpl_LDADD.
67222         * modules/carray-list-tests (Makefile.am): New variable
67223         test_carray_list_LDADD.
67224         * modules/dirname-tests (Makefile.am): New variable
67225         test_dirname_LDADD.
67226         * modules/linked-list-tests (Makefile.am): New variable
67227         test_linked_list_LDADD.
67228         * modules/linkedhash-list-tests (Makefile.am): New variable
67229         test_linkedhash_list_LDADD.
67230         * modules/rbtree-list-tests (Makefile.am): New variable
67231         test_rbtree_list_LDADD.
67232         * modules/rbtree-oset-tests (Makefile.am): New variable
67233         test_rbtree_oset_LDADD.
67234         * modules/rbtreehash-list-tests (Makefile.am): New variable
67235         test_rbtreehash_list_LDADD.
67236         * modules/xvasprintf-tests (Makefile.am): New variable
67237         test_xvasprintf_LDADD.
67238         Reported by Eric Blake.
67239
67240 2007-04-03  Eric Blake  <ebb9@byu.net>
67241
67242         * DEPENDENCIES: Weaken m4 requirements.
67243
67244 2007-04-03  Bruno Haible  <bruno@clisp.org>
67245
67246         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67247         * modules/isnanl-tests (configure.ac): Likewise.
67248
67249 2007-04-03  Ben Pfaff  <blp@gnu.org>
67250
67251         * modules/iconv_open: Add $(srcdir)/ to source directory
67252         references in Makefile fragments that call gperf, to fix VPATH
67253         builds.
67254
67255 2007-04-03  Bruno Haible  <bruno@clisp.org>
67256
67257         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67258         * lib/ldexpl.c: Undo last change.
67259
67260 2007-04-03  Bruno Haible  <bruno@clisp.org>
67261
67262         * modules/printf-frexpl (Depends-on): Undo last change.
67263         (Files): Add m4/ldexpl.m4.
67264
67265 2007-04-03  Bruno Haible  <bruno@clisp.org>
67266
67267         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67268         * modules/isnanl (Link): New section.
67269
67270         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67271         * modules/frexp (Link): New section.
67272
67273         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67274         * modules/frexpl (Link): New section.
67275
67276         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67277         * modules/ldexpl (Link): New section.
67278
67279 2007-04-03  Bruno Haible  <bruno@clisp.org>
67280
67281         * modules/TEMPLATE-EXTENDED: New file.
67282         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67283
67284 2007-04-03  Bruno Haible  <bruno@clisp.org>
67285
67286         * DEPENDENCIES: New file.
67287         Suggested by Simon Josefsson.
67288
67289 2007-04-03  Bruno Haible  <bruno@clisp.org>
67290
67291         * doc/gnulib.texi: Escape @.
67292
67293 2007-04-03  James Youngman  <jay@gnu.org>
67294         and Paul Eggert  <eggert@cs.ucla.edu>
67295
67296         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
67297         birthtime on all systems that have birthtime, not just those which
67298         use st_birthtimensec rather than st_birthtim.  Putting zero in
67299         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
67300         that the birth time is not available for files on an NFS mount.
67301
67302 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67303
67304         * modules/memxor: Move back from crypto/, suggested by Bruno.
67305         * modules/crypto/hmac-sha1: Fix memxor dependency.
67306
67307         * modules/crypto/gc: Moved from ../.
67308
67309 2007-04-02  Eric Blake  <ebb9@byu.net>
67310
67311         * lib/ldexpl.c (includes): Avoid libm.
67312
67313         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67314
67315 2007-04-02  Bruno Haible  <bruno@clisp.org>
67316
67317         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67318         on IRIX.
67319
67320 2007-04-02  Bruno Haible  <bruno@clisp.org>
67321
67322         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67323         x86 or x86_64 platforms running MacOS X.
67324         Reported by Ryan Schmidt <@ryandesign.com>.
67325
67326 2007-04-02  Bruno Haible  <bruno@clisp.org>
67327
67328         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67329         i386.
67330
67331 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67332
67333         * modules/crypto/arcfour: Moved from ../.
67334         * modules/crypto/arcfour-tests: Moved from ../.
67335         * modules/crypto/arctwo: Moved from ../.
67336         * modules/crypto/arctwo-tests: Moved from ../.
67337         * modules/crypto/des: Moved from ../.
67338         * modules/crypto/des-tests: Moved from ../.
67339         * modules/crypto/gc-arcfour: Moved from ../.
67340         * modules/crypto/gc-arcfour-tests: Moved from ../.
67341         * modules/crypto/gc-arctwo: Moved from ../.
67342         * modules/crypto/gc-arctwo-tests: Moved from ../.
67343         * modules/crypto/gc-des: Moved from ../.
67344         * modules/crypto/gc-des-tests: Moved from ../.
67345         * modules/crypto/gc-hmac-md5: Moved from ../.
67346         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67347         * modules/crypto/gc-hmac-sha1: Moved from ../.
67348         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67349         * modules/crypto/gc-md2: Moved from ../.
67350         * modules/crypto/gc-md2-tests: Moved from ../.
67351         * modules/crypto/gc-md4: Moved from ../.
67352         * modules/crypto/gc-md4-tests: Moved from ../.
67353         * modules/crypto/gc-md5: Moved from ../.
67354         * modules/crypto/gc-md5-tests: Moved from ../.
67355         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67356         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67357         * modules/crypto/gc-random: Moved from ../.
67358         * modules/crypto/gc-rijndael: Moved from ../.
67359         * modules/crypto/gc-rijndael-tests: Moved from ../.
67360         * modules/crypto/gc-sha1: Moved from ../.
67361         * modules/crypto/gc-sha1-tests: Moved from ../.
67362         * modules/crypto/gc-tests: Moved from ../.
67363         * modules/crypto/hmac-md5: Moved from ../.
67364         * modules/crypto/hmac-md5-tests: Moved from ../.
67365         * modules/crypto/hmac-sha1: Moved from ../.
67366         * modules/crypto/hmac-sha1-tests: Moved from ../.
67367         * modules/crypto/md2: Moved from ../.
67368         * modules/crypto/md2-tests: Moved from ../.
67369         * modules/crypto/md4: Moved from ../.
67370         * modules/crypto/md4-tests: Moved from ../.
67371         * modules/crypto/md5: Moved from ../.
67372         * modules/crypto/md5-tests: Moved from ../.
67373         * modules/crypto/memxor: Moved from ../.
67374         * modules/crypto/rijndael: Moved from ../.
67375         * modules/crypto/rijndael-tests: Moved from ../.
67376         * modules/crypto/sha1: Moved from ../.
67377
67378 2007-03-30  James Youngman  <jay@gnu.org>
67379
67380         * tests/test-stat-time.c (prepare_test): use chmod() rather than
67381         rename() to change the ctime of a file (because ctime is unaffected
67382         by rename on jfs2 on AIX 5.1).
67383         (main): Start by doing cleanup, in case a previous run failed leaving
67384         test files behind.
67385
67386 2007-03-31  Bruno Haible  <bruno@clisp.org>
67387
67388         Support old proprietary implementations of iconv.
67389         * modules/iconv_open: New file.
67390         * lib/iconv_.h: New file.
67391         * m4/iconv_h.m4: New file.
67392         * lib/iconv_open.c: New file.
67393         * lib/iconv_open-aix.gperf: New file.
67394         * lib/iconv_open-hpux.gperf: New file.
67395         * lib/iconv_open-irix.gperf: New file.
67396         * lib/iconv_open-osf.gperf: New file.
67397         * m4/iconv_open.m4: New file.
67398         * modules/linebreak (Depends-on): Add iconv_open.
67399         * modules/striconv (Depends-on): Likewise.
67400         * modules/striconveh (Depends-on): Likewise.
67401         * modules/unicodeio (Depends-on): Likewise.
67402         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
67403         (iconv_t)(-1).
67404         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
67405         conversion if cd is (iconv_t)(-1).
67406         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
67407         is not possible.
67408
67409 2007-03-31  Bruno Haible  <bruno@clisp.org>
67410
67411         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67412         work on Solaris either. Protect also second use of "autodetect_jp".
67413
67414 2007-03-31  Bruno Haible  <bruno@clisp.org>
67415
67416         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
67417         the function is not present.
67418
67419 2007-03-31  Bruno Haible  <bruno@clisp.org>
67420
67421         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67422         the function is not present.
67423
67424 2007-03-31  Bruno Haible  <bruno@clisp.org>
67425
67426         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67427         a bug in HP-UX iconv_open().
67428
67429 2007-03-31  Bruno Haible  <bruno@clisp.org>
67430
67431         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67432         (Mathematics <math.h>): New section, add fpieee.
67433         (Input/output <stdio.h>): Add fseterr.
67434         (Mathematics <math.h>): New section, add printf-frexp.
67435         (Container data structures): Add sublist.
67436         (Core language properties): Add fpucw, inline.
67437         (Functions for greatest-width integer types <inttypes.h>): Add
67438         imaxabs, imaxdiv, inttypes.
67439         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67440         isnanl-nolibm, ldexp.
67441         (Mathematics <math.h>): New section, add printf-frexpl.
67442         (Support for systems lacking POSIX:2001): Add fprintf-posix,
67443         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
67444         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
67445         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
67446         (Unicode string functions): Add unistr/u*-mbtoucr.
67447         (Java): Add javacomp-script, javaexec-script.
67448         (C#): Add csharpcomp-script, csharpexec-script.
67449         (Support for building libraries and executables): Add havelib,
67450         relocatable-*.
67451         (Support for maintaining and releasing projects): Renamed from
67452         'Support for maintaining and release projects'. Add announce-gen.
67453
67454 2007-03-31  Bruno Haible  <bruno@clisp.org>
67455
67456         * README: Talk primarily about git.
67457         (git and CVS): Renamed from CVS.
67458         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
67459         gnulib is available through git.
67460         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
67461
67462 2007-03-30  Bruno Haible  <bruno@clisp.org>
67463
67464         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67465         * lib/poll_.h: Likewise.
67466         * lib/stat_.h: Likewise.
67467         * lib/sys_time_.h: Likewise.
67468         * lib/sysexit_.h: Likewise.
67469         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67470         * lib/stdbool_.h: Likewise.
67471         * lib/byteswap_.h: Add double-inclusion guard.
67472
67473 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
67474
67475         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
67476
67477 2007-03-30  Karl Berry  <karl@gnu.org>
67478
67479         * config/srclist-update: double space after USA in the license
67480         substitution, since that's how it's usually (?) written.
67481
67482 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
67483
67484         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
67485         reported by Bruno Haible.
67486
67487 2007-03-29  Bruno Haible  <bruno@clisp.org>
67488
67489         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
67490         a bug in AIX iconv().
67491
67492 2007-03-29  Bruno Haible  <bruno@clisp.org>
67493
67494         * modules/ldexpl-tests: New file.
67495         * tests/test-ldexpl.c: New file.
67496
67497 2007-03-29  Bruno Haible  <bruno@clisp.org>
67498
67499         * lib/ldexpl.c: Include fpucw.h.
67500         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
67501         multiplication.
67502         * modules/ldexpl (Depends-on): Add fpucw.
67503
67504 2007-03-29  Bruno Haible  <bruno@clisp.org>
67505
67506         * modules/ldexpl: New file.
67507         * m4/ldexpl.m4: New file.
67508         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
67509         set.
67510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
67511         REPLACE_LDEXPL.
67512         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
67513         REPLACE_LDEXPL.
67514         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67515         gl_FUNC_LDEXPL_WORKS.
67516         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67517         * modules/mathl (Files): Remove lib/ldexpl.c.
67518         (Depends-on): Add ldexpl.
67519
67520 2007-03-29  Bruno Haible  <bruno@clisp.org>
67521
67522         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67523
67524 2007-03-29  Bruno Haible  <bruno@clisp.org>
67525
67526         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67527         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67528         and possibly also HP-UX.
67529         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67530         work on AIX, IRIX, HP-UX, OSF/1.
67531         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67532         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67533         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67534         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67535         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67536         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67537
67538 2007-03-29  Bruno Haible  <bruno@clisp.org>
67539
67540         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67541
67542 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67543
67544         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67545         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67546
67547 2007-03-29  Eric Blake  <ebb9@byu.net>
67548
67549         * lib/acl-internal.h: Remove redundant include.
67550         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67551         Cygwin when a file is locked.
67552
67553 2007-03-29  Bruno Haible  <bruno@clisp.org>
67554
67555         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67556         file.
67557         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67558
67559 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67560
67561         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67562         try to remove a parent directory if the child couldn't be removed
67563         (except for the first rmdir, which could fail because the child
67564         doesn't exist).  Problem reported by Jeff Blaine in
67565         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67566
67567 2007-03-28  Bruno Haible  <bruno@clisp.org>
67568
67569         * lib/striconveh.c (utf8conv_carefully): New function.
67570         (mem_cd_iconveh_internal): Invoke it.
67571
67572 2007-03-28  Bruno Haible  <bruno@clisp.org>
67573
67574         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67575         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67576         input.
67577         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67578         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67579         unistr/u8-uctomb.
67580
67581 2007-03-28  Bruno Haible  <bruno@clisp.org>
67582
67583         * modules/unistr/u8-mbtoucr: New file.
67584         * lib/unistr/u8-mbtoucr.c: New file.
67585         * modules/unistr/u16-mbtoucr: New file.
67586         * lib/unistr/u16-mbtoucr.c: New file.
67587         * modules/unistr/u16-mbtoucr: New file.
67588         * lib/unistr/u16-mbtoucr.c: New file.
67589         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67590
67591 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67592             Bruno Haible  <bruno@clisp.org>
67593
67594         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67595         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67596         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67597
67598         * m4/stdio_h.m4: Add stubs for vasprintf too.
67599
67600         * modules/stdio: Support vasprintf in sed command.
67601
67602         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67603         vasprintf.h.  Add stdio module indicator.
67604
67605         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67606         vasprintf.h.
67607
67608         * lib/vasprintf.h: File removed.
67609
67610         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67611         * lib/vasprintf.c: Ditto.
67612         * lib/xvasprintf.c: Ditto.
67613         * tests/test-vasprintf-posix.c: Ditto.
67614         * tests/test-vasprintf.c: Ditto.
67615
67616 2007-03-27  Bruno Haible  <bruno@clisp.org>
67617
67618         Make vasnprintf multithread-safe.
67619         * lib/vasnprintf.c (decimal_point_char): New function.
67620         (VASNPRINTF): Use it.
67621         Suggested by Simon Josefsson.
67622
67623 2007-03-27  Eric Blake  <ebb9@byu.net>
67624
67625         Support sub-second birthtime on cygwin.
67626         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67627         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67628         (get_stat_birthtime): Also work with st_birthtim.
67629
67630 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67631
67632         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67633         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67634         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67635         (get_stat_birthtime_ns): Simplify compile-time tests.
67636         (get_stat_birthtime): Change the API to look like
67637         get_stat_mtime etc., except return a negative tv_nsec on error.
67638         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67639         Don't check for "spare" fields.
67640         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67641         or for struct stat.st_birthtime, as these tests aren't used.
67642         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67643
67644 2007-03-27  Bruno Haible  <bruno@clisp.org>
67645
67646         * lib/stat-time.h: Include <sys/stat.h>.
67647
67648 2007-03-27  James Youngman  <jay@gnu.org>
67649
67650         * lib/stat-time.h (get_stat_birthtime): New function for
67651           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67652         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67653           and its variants.
67654         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67655         * modules/stat-time-test: New file.
67656         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67657
67658 2007-03-26  Bruno Haible  <bruno@clisp.org>
67659
67660         Better support of signalling NaNs.
67661         * lib/atanl.c: Include isnanl.h.
67662         (atanl): Perform test for NaN at the beginning of the function and
67663         through a call to isnanl.
67664         * lib/cosl.c: Include isnanl.h.
67665         (cosl): Perform test for NaN at the beginning of the function and
67666         through a call to isnanl.
67667         * lib/ldexpl.c: Include isnanl.h.
67668         (ldexpl): Perform test for NaN through a call to isnanl.
67669         * lib/logl.c: Include isnanl.h.
67670         (logl): Perform test for NaN at the beginning of the function and
67671         through a call to isnanl.
67672         * lib/sinl.c: Include isnanl.h.
67673         (sinl): Perform test for NaN at the beginning of the function and
67674         through a call to isnanl.
67675         * lib/sqrtl.c: Include isnanl.h.
67676         (sqrtl): Perform test for NaN at the beginning of the function and
67677         through a call to isnanl.
67678         * lib/tanl.c: Include isnanl.h.
67679         (tanl): Perform test for NaN at the beginning of the function and
67680         through a call to isnanl.
67681         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67682         * modules/mathl (Depends-on): Add isnanl.
67683
67684 2007-03-26  Eric Blake  <ebb9@byu.net>
67685
67686         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67687         regression in logic sense of previous patch.
67688
67689 2007-03-26  Bruno Haible  <bruno@clisp.org>
67690
67691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67692         unportable shell command "if ! ...".
67693         Reported by Ralf Wildenhues.
67694
67695 2007-03-25  Bruno Haible  <bruno@clisp.org>
67696
67697         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67698         <sysexits.h> file, and only add EX_CONFIG.
67699         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67700         absolute file name and whether it is sufficient. Substitute also
67701         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67702         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67703         ABSOLUTE_SYSEXITS_H into sysexits.h.
67704
67705 2007-03-25  Bruno Haible  <bruno@clisp.org>
67706
67707         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67708         hints is NULL.
67709
67710 2007-03-25  Bruno Haible  <bruno@clisp.org>
67711
67712         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67713         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67714
67715 2007-03-25  Bruno Haible  <bruno@clisp.org>
67716
67717         * lib/vasnprintf.c: Include langinfo.h.
67718         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67719         multithread-safe.
67720         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67721         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67722         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67723         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67724         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67725         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67726         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67727         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67728         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67729         Reported by Simon Josefsson.
67730
67731 2007-03-25  Bruno Haible  <bruno@clisp.org>
67732
67733         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67734         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67735         * modules/vasnprintf (Depends-on): Add stdint.
67736
67737 2007-03-25  Bruno Haible  <bruno@clisp.org>
67738
67739         * modules/fpieee: New file.
67740         * m4/fpieee.m4: New file.
67741         * modules/isnan-nolibm (Depends-on): Add fpieee.
67742         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67743         * modules/isnanl (Depends-on): Add fpieee.
67744
67745 2007-03-25  Bruno Haible  <bruno@clisp.org>
67746
67747         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67748
67749 2007-03-25  Bruno Haible  <bruno@clisp.org>
67750
67751         Avoid test failures on IRIX 6.5.
67752         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67753         (main): Use it.
67754         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67755         macros.
67756         (main): Use them.
67757
67758 2007-03-25  Bruno Haible  <bruno@clisp.org>
67759
67760         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67761         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67762         exists but doesn't work.
67763         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67764         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67766         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67767         math.h.
67768
67769 2007-03-25  Bruno Haible  <bruno@clisp.org>
67770
67771         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67772         returns inf. Needed on IRIX 6.5.
67773
67774 2007-03-25  Bruno Haible  <bruno@clisp.org>
67775
67776         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67777         (main): Use isnanl instead of x != x idiom.
67778         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67779
67780         * tests/test-frexp.c: Include isnan.h.
67781         (main): Use isnan instead of x != x idiom.
67782         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67783
67784 2007-03-25  Bruno Haible  <bruno@clisp.org>
67785
67786         * tests/test-frexp.c (NaN): New function/macro.
67787         (main): Use it instead of 0.0 / 0.0.
67788         * tests/test-isnan.c (NaN): New function/macro.
67789         (main): Use it instead of 0.0 / 0.0.
67790         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67791         (test_function): Use it instead of 0.0 / 0.0.
67792         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67793         (test_function): Use it instead of 0.0 / 0.0.
67794         * tests/test-snprintf-posix.h (NaN): New function/macro.
67795         (test_function): Use it instead of 0.0 / 0.0.
67796         * tests/test-sprintf-posix.h (NaN): New function/macro.
67797         (test_function): Use it instead of 0.0 / 0.0.
67798         * tests/test-fprintf-posix.h (NaN): New function/macro.
67799         (test_function): Use it instead of 0.0 / 0.0.
67800         * tests/test-printf-posix.h (NaN): New function/macro.
67801         (test_function): Use it instead of 0.0 / 0.0.
67802
67803         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67804
67805 2007-03-25  Bruno Haible  <bruno@clisp.org>
67806
67807         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67808
67809 2007-03-25  Bruno Haible  <bruno@clisp.org>
67810
67811         * lib/regexec.c (merge_state_with_log): Make static.
67812
67813 2007-03-25  Bruno Haible  <bruno@clisp.org>
67814
67815         * lib/trigl.c (kernel_rem_pio2): Make static.
67816
67817 2007-03-25  Bruno Haible  <bruno@clisp.org>
67818
67819         * lib/sincosl.c (sincosl_table): Make static.
67820
67821 2007-03-25  Bruno Haible  <bruno@clisp.org>
67822
67823         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67824         if the compiler does not support C99.
67825
67826 2007-03-25  Bruno Haible  <bruno@clisp.org>
67827
67828         * modules/time (Makefile.am): Ensure all rule action lines start with a
67829         tab.
67830
67831 2007-03-24  Bruno Haible  <bruno@clisp.org>
67832
67833         * modules/tsearch-tests: New file.
67834         * tests/test-tsearch.sh: New file.
67835         * tests/test-tsearch.c: New file, mostly copied from glibc.
67836
67837         * modules/search-tests: New file.
67838         * tests/test-search.c: New file.
67839
67840         * modules/search: New file.
67841         * lib/search_.h: New file, incorporating lib/tsearch.h.
67842         * m4/search_h.m4: New file.
67843         * lib/tsearch.h: Remove file.
67844         * lib/tsearch.c: Include search.h instead of tsearch.h.
67845         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67846         HAVE_TSEARCH.
67847         * modules/tsearch (Files): Remove lib/tsearch.h.
67848         (Depends-on): Add search.
67849         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67850         (Include): Change tsearch.h into search.h.
67851
67852 2007-03-24  Bruno Haible  <bruno@clisp.org>
67853
67854         * modules/fpucw: New file.
67855         * lib/fpucw.h: New file.
67856         * lib/frexp.c: Include fpucw.h.
67857         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67858         (FUNC): Use them.
67859         * lib/printf-frexp.c: Include fpucw.h.
67860         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67861         (FUNC): Use them.
67862         * lib/vasnprintf.c: Include fpucw.h.
67863         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67864         'long double' calculations.
67865         * tests/test-frexpl.c: Include fpucw.h.
67866         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67867         * tests/test-printf-frexpl.c: Include fpucw.h.
67868         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67869         * modules/frexpl (Depends-on): Add fpucw.
67870         * modules/printf-frexpl (Depends-on): Likewise.
67871         * modules/fprintf-posix (Depends-on): Likewise.
67872         * modules/snprintf-posix (Depends-on): Likewise.
67873         * modules/sprintf-posix (Depends-on): Likewise.
67874         * modules/vasnprintf-posix (Depends-on): Likewise.
67875         * modules/vasprintf-posix (Depends-on): Likewise.
67876         * modules/vfprintf-posix (Depends-on): Likewise.
67877         * modules/vsnprintf-posix (Depends-on): Likewise.
67878         * modules/vsprintf-posix (Depends-on): Likewise.
67879         * modules/frexpl-tests (Depends-on): Likewise.
67880         * modules/printf-frexpl-tests (Depends-on): Likewise.
67881
67882 2007-03-24  Bruno Haible  <bruno@clisp.org>
67883
67884         * lib/float+.h: New file.
67885         * lib/isnan.c: Include float+.h.
67886         (SIZE): New macro.
67887         (FUNC): Compare only SIZE bytes of the value.
67888         * lib/vasnprintf.c: Include float+.h.
67889         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
67890         SIZEOF_LDBL or SIZEOF_DBL bytes.
67891         * modules/isnan-nolibm (Files): Add lib/float+.h.
67892         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67893         * modules/isnanl (Files): Add lib/float+.h.
67894         * modules/vasnprintf (Files): Add lib/float+.h.
67895
67896 2007-03-24  Bruno Haible  <bruno@clisp.org>
67897
67898         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67899         include isnanl-nolibm.h.
67900
67901 2007-03-24  Bruno Haible  <bruno@clisp.org>
67902
67903         * tests/test-read-file.c (main): Don't produce spurious output for
67904         expected situations. Make the test fail if it encountered unexpected
67905         results.
67906
67907 2007-03-24  Bruno Haible  <bruno@clisp.org>
67908
67909         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67910         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67911
67912 2007-03-24  Bruno Haible  <bruno@clisp.org>
67913
67914         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67915
67916 2007-03-24  Bruno Haible  <bruno@clisp.org>
67917
67918         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67919         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67920
67921         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67922         * modules/utf8-ucs4: Turn into a symbolic link to module
67923         unistr/u8-mbtouc.
67924
67925         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67926         utf8-ucs4-unsafe.
67927         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67928         unistr/u8-mbtouc-unsafe.
67929
67930         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67931         * modules/utf16-ucs4: Turn into a symbolic link to module
67932         unistr/u16-mbtouc.
67933
67934         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67935         utf16-ucs4-unsafe.
67936         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67937         unistr/u16-mbtouc-unsafe.
67938
67939         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67940         * modules/ucs4-utf8: Turn into a symbolic link to module
67941         unistr/u8-ubtomb.
67942
67943         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67944         * modules/ucs4-utf16: Turn into a symbolic link to module
67945         unistr/u16-ubtomb.
67946
67947 2007-03-24  Bruno Haible  <bruno@clisp.org>
67948
67949         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67950         Enable the function only if HAVE_INLINE.
67951         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67952         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67953         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67954         Enable the function only if HAVE_INLINE.
67955         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67956         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67957         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67958         Enable the function only if HAVE_INLINE.
67959         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67960         Enable the function only if HAVE_INLINE.
67961         * modules/utf8-ucs4: Update.
67962         * modules/utf8-ucs4-unsafe: Update.
67963         * modules/utf16-ucs4: Update.
67964         * modules/utf16-ucs4-unsafe: Update.
67965         * modules/ucs4-utf8: Update.
67966         * modules/ucs4-utf16: Update.
67967
67968 2007-03-24  Bruno Haible  <bruno@clisp.org>
67969
67970         * lib/utf8-ucs4.h: Remove file.
67971         * lib/utf8-ucs4-unsafe.h: Remove file.
67972         * lib/utf16-ucs4.h: Remove file.
67973         * lib/utf16-ucs4-unsafe.h: Remove file.
67974         * lib/ucs4-utf8.h: Remove file.
67975         * lib/ucs4-utf16.h: Remove file.
67976         * lib/unistr.h: Include their previous contents.
67977         * m4/utf-ucs4.m4: Remove file.
67978         * m4/ucs4-utf.m4: Remove file.
67979         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67980         (Depends-on): Add unistr/base.
67981         (configure.ac): Remove gl_UTF_UCS4.
67982         (Makefile.am): Update.
67983         (Include): Change to unistr.h.
67984         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67985         (Depends-on): Add unistr/base.
67986         (configure.ac): Remove gl_UTF_UCS4.
67987         (Makefile.am): Update.
67988         (Include): Change to unistr.h.
67989         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67990         (Depends-on): Add unistr/base.
67991         (configure.ac): Remove gl_UTF_UCS4.
67992         (Makefile.am): Update.
67993         (Include): Change to unistr.h.
67994         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67995         (Depends-on): Add unistr/base.
67996         (configure.ac): Remove gl_UTF_UCS4.
67997         (Makefile.am): Update.
67998         (Include): Change to unistr.h.
67999         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
68000         (Depends-on): Add unistr/base.
68001         (configure.ac): Remove gl_UCS4_UTF.
68002         (Makefile.am): Update.
68003         (Include): Change to unistr.h.
68004         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
68005         (Depends-on): Add unistr/base.
68006         (configure.ac): Remove gl_UCS4_UTF.
68007         (Makefile.am): Update.
68008         (Include): Change to unistr.h.
68009         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
68010         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
68011         utf8-ucs4-unsafe.h.
68012         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
68013         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
68014         utf16-ucs4-unsafe.h.
68015         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
68016         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
68017         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
68018         * lib/unistr/u8-strchr.c: Likewise.
68019         * lib/unistr/u8-strrchr.c: Likewise.
68020         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
68021         * lib/unistr/u16-strchr.c: Likewise.
68022         * lib/unistr/u16-strrchr.c: Likewise.
68023         * lib/striconveh.c: Update.
68024         * lib/linebreak.c: Update.
68025
68026 2007-03-24  Bruno Haible  <bruno@clisp.org>
68027
68028         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
68029         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
68030
68031 2007-03-22  Bruno Haible  <bruno@clisp.org>
68032
68033         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
68034
68035 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68036
68037         * MODULES.html.sh (File system functions): New module write-any-file.
68038         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68039         * m4/write-any-file.m4: New files.
68040
68041 2007-03-23  Eric Blake  <ebb9@byu.net>
68042
68043         * gnulib-tool: Rearrange space-tab sequences, since some editors
68044         like to eat them.
68045
68046 2007-03-23  Eric Blake  <ebb9@byu.net>
68047
68048         * lib/version-etc.c (version_etc_va): Update license wording to
68049         be more concise.  Recommended by Richard Stallman.
68050
68051 2007-03-22  Bruno Haible  <bruno@clisp.org>
68052
68053         * lib/poll.c (MSG_PEEK): New fallback definition.
68054
68055 2007-03-22  Bruno Haible  <bruno@clisp.org>
68056
68057         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68058         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68059         (main): Update.
68060         Fixes a compilation error on BeOS.
68061
68062 2007-03-22  Bruno Haible  <bruno@clisp.org>
68063
68064         * modules/frexpl-tests: New file.
68065         * tests/test-frexpl.c: New file.
68066
68067         * modules/frexpl: New file.
68068         * m4/frexpl.m4: New file.
68069         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68070         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68072         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68073         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68074         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68075
68076 2007-03-22  Bruno Haible  <bruno@clisp.org>
68077
68078         * lib/frexpl.c: Share code with lib/frexp.c.
68079         * modules/mathl (Files): Add lib/frexp.c.
68080         (Depends-on): Add isnanl-nolibm.
68081
68082 2007-03-22  Bruno Haible  <bruno@clisp.org>
68083
68084         * modules/printf-frexp (Files): Add m4/frexp.m4.
68085         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68086         only if the found frexp function actually works.
68087
68088 2007-03-22  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/frexp.c: Remove older implementation that uses divisions.
68091
68092 2007-03-21  Bruno Haible  <bruno@clisp.org>
68093
68094         * modules/frexp-tests: New file.
68095         * tests/test-frexp.c: New file.
68096
68097         * modules/frexp: New file.
68098         * lib/frexp.c: New file.
68099         * m4/frexp.m4: New file.
68100         * lib/math_.h (frexp): New declaration.
68101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68102         REPLACE_FREXP.
68103         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68104
68105 2007-03-21  Bruno Haible  <bruno@clisp.org>
68106
68107         * modules/isnanl-tests: New file.
68108         * tests/test-isnanl.c: New file.
68109
68110         * modules/isnanl: New file.
68111         * lib/isnanl.h: New file.
68112         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68113         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68114         gl_FUNC_ISNANL_WORKS.
68115         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68116         New macros.
68117
68118 2007-03-21  Bruno Haible  <bruno@clisp.org>
68119
68120         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68121         lib/isnanl.h.
68122         (Include): Update.
68123         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68124         * lib/vasnprintf.c: Update.
68125         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68126         tests/test-isnanl.h, remove tests/test-isnanl.c.
68127         (Makefile.am): Update.
68128         * tests/test-isnanl-nolibm.c: New file.
68129         * tests/test-isnanl.h: New file.
68130         * tests/test-isnanl.c: Remove file.
68131
68132 2007-03-21  Jim Meyering  <jim@meyering.net>
68133
68134         When trying to open ".", treat ESTALE like EACCES.
68135         * lib/savewd.c (savewd_save): Resort to forking not just upon
68136         failure with EACCES, but also when errno is ESTALE.
68137
68138 2007-03-20  Bruno Haible  <bruno@clisp.org>
68139
68140         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68141         Needed on AIX 5.1. Reported by Matthew Woehlke.
68142
68143 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68144
68145         Suggestions by Bruno Haible:
68146         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68147         our own.
68148         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68149         * modules/acl (Depends-on): Add gettext.
68150
68151 2007-03-19  Bruno Haible  <bruno@clisp.org>
68152
68153         * modules/iconvme: Remove file.
68154         * lib/iconvme.h: Remove file.
68155         * lib/iconvme.c: Remove file.
68156         * m4/iconvme.m4: Remove file.
68157
68158 2007-03-19  Bruno Haible  <bruno@clisp.org>
68159
68160         * doc/relocatable-maint.texi: Break long shell script line.
68161         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68162
68163 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68164
68165         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68166         handle file_has_acl.
68167         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68168         * lib/acl.c: Move header inclusions and related macro defns into
68169         lib/acl-internal.h.
68170         (S_ISLNK): Remove defn, since that's now done for us.
68171         (file_has_acl): Move to lib/file-has-acl.c.
68172         Call acl_trivial if available.  This is the crucial part of the fix.
68173         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68174         shared within the library.  Rewrite a bit, partly to make it compatible
68175         with the GNU coding style.
68176         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68177         Remove unnecessary double-quotes.
68178         Don't test for acl_to_text; the build will catch that.
68179         Replace acl_entries if it doesn't exist and it is needed.
68180         Check for -lsec and acl_trivial (as used on Solaris 10).
68181         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68182         lib/file-has-acl.c.
68183         (Depends-on): Add sys_stat, for S_ISLNK.
68184
68185 2007-03-19  Ben Pfaff  <blp@gnu.org>
68186
68187         * doc/gnulib.texi: Fix typos.
68188         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68189
68190 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68191
68192         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68193         If size is zero here, buf must be zero.
68194
68195 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68196
68197         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68198         <bruno@clisp.org>.
68199
68200 2007-03-18  Bruno Haible  <bruno@clisp.org>
68201
68202         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68203         Suggested by Eric Blake.
68204
68205 2007-03-18  Ben Pfaff  <blp@gnu.org>
68206
68207         * doc/relocatable.texi: Recommend using as prefix a directory
68208         that does not exist and will never be created.  Based on
68209         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68210         and others.
68211
68212 2007-03-17  Bruno Haible  <bruno@clisp.org>
68213
68214         * lib/fchownat.c: Include lchown.h.
68215
68216 2007-03-17  Bruno Haible  <bruno@clisp.org>
68217
68218         Fix endless loop when the given allocated size was > INT_MAX.
68219         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68220         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68221         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68222         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68223         * lib/sprintf.c (sprintf): Likewise.
68224
68225 2007-03-17  Bruno Haible  <bruno@clisp.org>
68226
68227         * tests/test-argp-2.sh (func_compare): Output a context diff.
68228
68229 2007-03-17  Bruno Haible  <bruno@clisp.org>
68230
68231         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68232         locale's decimal-point character.
68233
68234 2007-03-17  Bruno Haible  <bruno@clisp.org>
68235
68236         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68237         before comparing it. Needed because on some platforms (e.g. x86) a
68238         'long double' occupies less bytes than sizeof (long double).
68239
68240 2007-03-17  Bruno Haible  <bruno@clisp.org>
68241
68242         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68243         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68244         * tests/test-getaddrinfo.c (simple): Likewise.
68245         * tests/test-read-file.c (main): Likewise.
68246
68247 2007-03-17  Bruno Haible  <bruno@clisp.org>
68248
68249         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68250
68251 2007-03-17  Bruno Haible  <bruno@clisp.org>
68252
68253         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68254         unused variable.
68255
68256 2007-03-17  Bruno Haible  <bruno@clisp.org>
68257
68258         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68259         * tests/test-c-strncasecmp.c: Likewise.
68260
68261 2007-03-17  Bruno Haible  <bruno@clisp.org>
68262
68263         * modules/stdlib (Depends-on): Add unistd.
68264         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68265         Needed for MacOS X 10.3.
68266
68267 2007-03-17  Bruno Haible  <bruno@clisp.org>
68268
68269         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68270
68271 2007-03-17  Bruno Haible  <bruno@clisp.org>
68272
68273         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68274
68275 2007-03-17  Bruno Haible  <bruno@clisp.org>
68276
68277         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68278         to reflect files copied from gnulib (with or without modifications).
68279         Suggested by Jim Meyering.
68280
68281 2007-03-17  Eric Blake  <ebb9@byu.net>
68282
68283         * NEWS: Document stdlib change from 2007-02-18.
68284
68285 2007-03-17  Jim Meyering  <jim@meyering.net>
68286
68287         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68288         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68289         someone uses a name containing shell meta-characters.
68290         Reported by Alfred M. Szmidt.
68291
68292         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
68293
68294 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68295
68296         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
68297         and copy gettext configuration files only if configure.ac contains
68298         a use of AM_GNU_GETTEXT_VERSION.
68299
68300 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68301
68302         * build-aux/bootstrap (gnulib_name): New variable.
68303         (gnulib_tool_options): Use it.
68304
68305 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68306
68307         * tests/test-des.c: Use new namespace.
68308
68309 2007-03-15  Bruno Haible  <bruno@clisp.org>
68310
68311         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68312         Reported by James Youngman <jay@gnu.org>.
68313
68314 2007-03-15  Bruno Haible  <bruno@clisp.org>
68315
68316         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68317         declared prototype. Needed with cc on OSF/1 5.1.
68318
68319 2007-03-15  Bruno Haible  <bruno@clisp.org>
68320
68321         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68322         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68323         (struct gl_list_implementation): Add dispose_fn argument to the
68324         'create_empty', 'create' methods.
68325         (struct gl_list_impl_base): Add field 'dispose_fn'.
68326         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68327         argument.
68328         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68329         dispose_fn argument.
68330         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68331         dispose_fn on the dropped values.
68332         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68333         dispose_fn argument.
68334         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68335         dropped values.
68336         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68337         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68338         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68339         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68340         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68341         argument.
68342         (gl_tree_list_free): Call dispose_fn on the dropped values.
68343         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68344         the dropped values.
68345         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68346         Add dispose_fn argument.
68347         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68348         Call dispose_fn on the dropped values.
68349         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68350         Add dispose_fn argument.
68351         (gl_sublist_create): Initialize the 'dispose_fn' field.
68352         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68353         * tests/test-array_list.c (main): Update.
68354         * tests/test-carray_list.c (main): Update.
68355         * tests/test-avltree_list.c (main): Update.
68356         * tests/test-rbtree_list.c (main): Update.
68357         * tests/test-avltreehash_list.c (main): Update.
68358         * tests/test-rbtreehash_list.c (main): Update.
68359         * tests/test-linked_list.c (main): Update.
68360         * tests/test-linkedhash_list.c (main): Update.
68361         * tests/test-array_oset.c (main): Update.
68362
68363 2007-03-15  Bruno Haible  <bruno@clisp.org>
68364
68365         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
68366         (gl_oset_create_empty): Add dispose_fn argument.
68367         (struct gl_oset_implementation): Add dispose_fn argument to
68368         'create_empty' method.
68369         (struct gl_oset_impl_base): Add dispose_fn field.
68370         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
68371         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
68372         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
68373         values.
68374         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
68375         (gl_tree_oset_free): Call dispose_fn on the dropped values.
68376         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68377         dropped value.
68378         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68379         dropped value.
68380         * tests/test-array_oset.c (main): Update.
68381         * tests/test-avltree_oset.c (main): Update.
68382         * tests/test-rbtree_oset.c (main): Update.
68383         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
68384
68385 2007-03-13  Bruno Haible  <bruno@clisp.org>
68386
68387         * tests/test-stdbool.c (i): Update after last patch.
68388
68389 2007-03-12  Bruno Haible  <bruno@clisp.org>
68390
68391         * lib/quotearg.c: Include <wctype.h> early, before the definition of
68392         the iswprint macro. Needed on Solaris 2.5.1.
68393
68394 2007-03-12  Bruno Haible  <bruno@clisp.org>
68395
68396         * tests/test-printf-frexp.c (main): Declare x as volatile.
68397
68398 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68399
68400         * doc/gnulib.texi (Build robot for gnulib): New section.
68401
68402 2007-03-12  Jim Meyering  <jim@meyering.net>
68403
68404         * build-aux/bootstrap: New file.
68405         * build-aux/bootstrap.conf: New file, from coreutils.
68406
68407 2007-03-11  Bruno Haible  <bruno@clisp.org>
68408
68409         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
68410
68411 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68412
68413         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
68414         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
68415         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
68416
68417 2007-03-11  Bruno Haible  <bruno@clisp.org>
68418
68419         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
68420         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68421
68422 2007-03-11  Bruno Haible  <bruno@clisp.org>
68423
68424         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68425         formula. Needed for SunPRO C 5.0.
68426
68427 2007-03-11  Bruno Haible  <bruno@clisp.org>
68428
68429         * modules/long-options (Depends-on): Add getopt.
68430
68431 2007-03-11  Bruno Haible  <bruno@clisp.org>
68432
68433         * modules/modechange (Depends-on): Add stdbool.
68434
68435 2007-03-11  Bruno Haible  <bruno@clisp.org>
68436
68437         * modules/i-ring (Depends-on): Add stdbool.
68438
68439 2007-03-11  Bruno Haible  <bruno@clisp.org>
68440
68441         * modules/gc-des (Depends-on): Add stdbool.
68442
68443 2007-03-11  Bruno Haible  <bruno@clisp.org>
68444
68445         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
68446
68447 2007-03-11  Bruno Haible  <bruno@clisp.org>
68448
68449         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
68450
68451 2007-03-11  Bruno Haible  <bruno@clisp.org>
68452
68453         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
68454
68455 2007-03-11  Bruno Haible  <bruno@clisp.org>
68456
68457         * lib/vasnprintf.c (sprintf): Undefine.
68458
68459 2007-03-11  Bruno Haible  <bruno@clisp.org>
68460
68461         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68462         initializers in SunPRO C and Compaq C compilers.
68463
68464 2007-03-11  Bruno Haible  <bruno@clisp.org>
68465
68466         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68467         decrementing code ANSI C compliant.
68468
68469 2007-03-11  Bruno Haible  <bruno@clisp.org>
68470
68471         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
68472         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
68473
68474 2007-03-11  Bruno Haible  <bruno@clisp.org>
68475
68476         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
68477         <stdbool.h> substitute doesn't pass.
68478
68479 2007-03-11  Bruno Haible  <bruno@clisp.org>
68480
68481         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
68482
68483 2007-03-11  Bruno Haible  <bruno@clisp.org>
68484
68485         * gnulib-tool (func_create_megatestdir): Create also an autobuild
68486         script, for submission to autobuild.josefsson.org.
68487
68488 2007-03-10  Bruno Haible  <bruno@clisp.org>
68489
68490         * modules/canonicalize-lgpl-tests: New file.
68491         * tests/test-canonicalize-lgpl.sh: New file.
68492         * tests/test-canonicalize-lgpl.c: New file.
68493
68494         * modules/c-strcase-tests: New file.
68495         * tests/test-c-strcase.sh: New file.
68496         * tests/test-c-strcasecmp.c: New file.
68497         * tests/test-c-strncasecmp.c: New file.
68498
68499         * modules/atexit-tests: New file.
68500         * tests/test-atexit.sh: New file.
68501         * tests/test-atexit.c: New file.
68502
68503 2007-03-10  Bruno Haible  <bruno@clisp.org>
68504
68505         * tests/test-binary-io.sh: Use temporary filenames that are not so
68506         likely to clash with those of other tests (in a parallel make).
68507         * tests/test-binary-io.c: Likewise.
68508
68509 2007-03-10  Bruno Haible  <bruno@clisp.org>
68510
68511         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
68512         fallback; use #error instead.
68513         Suggested by Simon Josefsson.
68514
68515 2007-03-10  Bruno Haible  <bruno@clisp.org>
68516
68517         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68518         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68519         first and the last.
68520
68521 2007-03-10  Bruno Haible  <bruno@clisp.org>
68522
68523         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68524
68525 2007-03-10  Bruno Haible  <bruno@clisp.org>
68526
68527         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68528         "make distcheck".
68529         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68530         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68531         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68532
68533 2007-03-10  Bruno Haible  <bruno@clisp.org>
68534
68535         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68536         variable.
68537         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68538         variable.
68539
68540 2007-03-09  Eric Blake  <ebb9@byu.net>
68541         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68542
68543         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68544         types are not being provided by gnulib.
68545         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68546         types are supported.
68547
68548 2007-03-10  Bruno Haible  <bruno@clisp.org>
68549
68550         * lib/stdio_.h (__attribute__): New macro.
68551         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68552         vsprintf): Specify __attribute__ __format__ for GCC.
68553         Suggested by Eric Blake.
68554
68555 2007-03-09  Bruno Haible  <bruno@clisp.org>
68556
68557         * modules/printf-posix-tests: New file.
68558         * tests/test-printf-posix.sh: New file.
68559         * tests/test-printf-posix.c: New file.
68560
68561         * modules/printf-posix: New file.
68562         * lib/printf.c: New file.
68563         * m4/printf-posix-rpl.m4: New file.
68564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68565         REPLACE_PRINTF.
68566         * lib/stdio_.h (printf): New declaration.
68567         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68568         ____strfmon____): New macros.
68569         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68570         REPLACE_PRINTF.
68571
68572 2007-03-09  Bruno Haible  <bruno@clisp.org>
68573
68574         * tests/test-vasnprintf-posix2.sh: New file.
68575         * tests/test-vasnprintf-posix2.c: New file.
68576         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68577         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68578         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68579
68580         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68581         a locale dependent decimal point, rather than always '.'.
68582
68583 2007-03-09  Eric Blake  <ebb9@byu.net>
68584
68585         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68586         spite of platforms like Tandem/NSK that define it to -1.
68587
68588 2007-03-08  Bruno Haible  <bruno@clisp.org>
68589
68590         * modules/vprintf-posix-tests: New file.
68591         * tests/test-vprintf-posix.sh: New file.
68592         * tests/test-vprintf-posix.c: New file.
68593         * tests/test-printf-posix.h: New file.
68594
68595         * modules/vprintf-posix: New file.
68596         * lib/vprintf.c: New file.
68597         * m4/vprintf-posix.m4: New file.
68598         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68599         REPLACE_VPRINTF.
68600         * lib/stdio_.h (vprintf): New declaration.
68601         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68602         REPLACE_VPRINTF.
68603
68604 2007-03-08  Bruno Haible  <bruno@clisp.org>
68605
68606         * modules/fprintf-posix-tests: New file.
68607         * tests/test-fprintf-posix.sh: New file.
68608         * tests/test-fprintf-posix.c: New file.
68609
68610         * modules/fprintf-posix: New file.
68611         * lib/fprintf.c: New file.
68612         * m4/fprintf-posix.m4: New file.
68613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68614         REPLACE_FPRINTF.
68615         * lib/stdio_.h (fprintf): New declaration.
68616         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68617         REPLACE_FPRINTF.
68618
68619 2007-03-08  Bruno Haible  <bruno@clisp.org>
68620
68621         * modules/vfprintf-posix-tests: New file.
68622         * tests/test-vfprintf-posix.sh: New file.
68623         * tests/test-vfprintf-posix.c: New file.
68624         * tests/test-fprintf-posix.h: New file.
68625         * tests/test-fprintf-posix.out: New file.
68626
68627         * modules/vfprintf-posix: New file.
68628         * lib/vfprintf.c: New file.
68629         * m4/vfprintf-posix.m4: New file.
68630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68631         REPLACE_VFPRINTF.
68632         * lib/stdio_.h (vfprintf): New declaration.
68633         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68634         REPLACE_VFPRINTF.
68635
68636 2007-03-08  Bruno Haible  <bruno@clisp.org>
68637
68638         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68639
68640 2007-03-08  Bruno Haible  <bruno@clisp.org>
68641
68642         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68643         instead of 'expr' invocations.
68644         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68645         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68647         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68648         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68649         Suggested by Paul Eggert.
68650
68651 2007-03-08  Bruno Haible  <bruno@clisp.org>
68652
68653         * modules/fseterr-tests: New file.
68654         * tests/test-fseterr.c: New file.
68655
68656         * modules/fseterr: New file.
68657         * lib/fseterr.h: New file.
68658         * lib/fseterr.c: New file.
68659
68660 2007-03-08  Bruno Haible  <bruno@clisp.org>
68661
68662         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68663         * lib/getopt_.h: Likewise.
68664         * lib/mbswidth.h: Likewise.
68665         * lib/setenv.h: Likewise.
68666         * lib/vasnprintf.h: Likewise.
68667         * lib/vasprintf.h: Likewise.
68668         * lib/verror.h: Likewise.
68669         * lib/xsetenv.h: Likewise.
68670         * lib/xvasprintf.h: Likewise.
68671
68672 2007-03-08  Jim Meyering  <jim@meyering.net>
68673
68674         * users.txt: Add parted.
68675
68676         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68677
68678 2007-03-07  Bruno Haible  <bruno@clisp.org>
68679
68680         * m4/printf.m4: Make the shell script snippets copy&pastable.
68681
68682 2007-03-02  Bruno Haible  <bruno@clisp.org>
68683
68684         * lib/netinet_in_.h: New file.
68685         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68686         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68687         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68688         (Depends-on): Add absolute-header.
68689         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68690         into netinet/in.h.
68691
68692 2007-03-03  Bruno Haible  <bruno@clisp.org>
68693
68694         * lib/sys_select_.h: New file.
68695         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68696         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68697         * modules/sys_select (Files): Add lib/sys_select_.h.
68698         (Depends-on): Add absolute-header.
68699         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68700         into sys/select.h.
68701
68702 2007-03-02  Bruno Haible  <bruno@clisp.org>
68703
68704         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68705         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68706         values.
68707         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68708         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68709         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68710         * modules/sys_socket (Depends-on): Add absolute-header.
68711         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68712         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68713         (Include): Remove requirement of inclusion of <sys/types.h>.
68714
68715 2007-03-02  Bruno Haible  <bruno@clisp.org>
68716
68717         * lib/byteswap_.h (bswap_32): Fix formula.
68718
68719 2007-03-06  Bruno Haible  <bruno@clisp.org>
68720
68721         * modules/sprintf-posix-tests: New file.
68722         * tests/test-sprintf-posix.c: New file.
68723
68724         * modules/sprintf-posix: New file.
68725         * lib/sprintf.c: New file.
68726         * m4/sprintf-posix.m4: New file.
68727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68728         REPLACE_SPRINTF.
68729         * lib/stdio_.h (sprintf): New declaration.
68730         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68731         REPLACE_SPRINTF.
68732
68733 2007-03-06  Bruno Haible  <bruno@clisp.org>
68734
68735         * modules/vsprintf-posix-tests: New file.
68736         * tests/test-vsprintf-posix.c: New file.
68737         * tests/test-sprintf-posix.h: New file.
68738
68739         * modules/vsprintf-posix: New file.
68740         * lib/vsprintf.c: New file.
68741         * m4/vsprintf-posix.m4: New file.
68742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68743         REPLACE_VSPRINTF.
68744         * lib/stdio_.h (vsprintf): New declaration.
68745         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68746         REPLACE_VSPRINTF.
68747
68748 2007-03-06  Bruno Haible  <bruno@clisp.org>
68749
68750         * modules/vsnprintf (Depend-on): Remove minmax.
68751
68752 2007-03-06  Bruno Haible  <bruno@clisp.org>
68753
68754         * modules/snprintf-posix-tests: New file.
68755         * tests/test-snprintf-posix.c: New file.
68756
68757         * modules/snprintf-posix: New file.
68758         * m4/snprintf-posix.m4: New file.
68759         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68760         gl_FUNC_SNPRINTF.
68761         (gl_FUNC_SNPRINTF): Invoke it.
68762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68763         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68764         is set.
68765         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68766
68767 2007-03-06  Bruno Haible  <bruno@clisp.org>
68768
68769         * modules/vsnprintf-posix-tests: New file.
68770         * tests/test-vsnprintf-posix.c: New file.
68771         * tests/test-snprintf-posix.h: New file.
68772
68773         * modules/vsnprintf-posix: New file.
68774         * m4/vsnprintf-posix.m4: New file.
68775         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68776         gl_FUNC_VSNPRINTF.
68777         (gl_FUNC_VSNPRINTF): Invoke it.
68778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68779         * lib/stdio_.h (vsnprintf): Define as a replacement if
68780         REPLACE_VSNPRINTF is set.
68781         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68782
68783 2007-03-06  Bruno Haible  <bruno@clisp.org>
68784
68785         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68786         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68787
68788 2007-03-06  Bruno Haible  <bruno@clisp.org>
68789
68790         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68791         (asinl): Declare also if HAVE_DECL_ASINL is set.
68792         (atanl): Declare also if HAVE_DECL_ATANL is set.
68793         (ceill): Declare also if HAVE_DECL_CEILL is set.
68794         (cosl): Declare also if HAVE_DECL_COSL is set.
68795         (expl): Declare also if HAVE_DECL_EXPL is set.
68796         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68797         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68798         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68799         (logl): Declare also if HAVE_DECL_LOGL is set.
68800         (sinl): Declare also if HAVE_DECL_SINL is set.
68801         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68802         (tanl): Declare also if HAVE_DECL_TANL is set.
68803         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68805         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68806         declaration of frexpl, ldexpl.
68807         * modules/printf-frexpl (Depends-on): Add math.
68808         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68809
68810 2007-03-05  Bruno Haible  <bruno@clisp.org>
68811
68812         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68813         frexpl and ldexpl are declared.
68814         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68815
68816 2007-03-05  Bruno Haible  <bruno@clisp.org>
68817
68818         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68819         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68820
68821 2007-03-05  Bruno Haible  <bruno@clisp.org>
68822
68823         * lib/stdio_.h: Include <stddef.h>.
68824
68825 2007-03-05  Bruno Haible  <bruno@clisp.org>
68826
68827         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68828
68829 2007-03-05  Bruno Haible  <bruno@clisp.org>
68830
68831         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68832         NetBSD 4, from Ralf Wildenhues.
68833
68834 2007-03-04  Bruno Haible  <bruno@clisp.org>
68835
68836         * lib/vasprintf.h: Update #if logic for the case when the functions
68837         exist but are overridden.
68838
68839 2007-03-04  Bruno Haible  <bruno@clisp.org>
68840
68841         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68842         implementations: glibc-2.4 and MacOS X 10.3.
68843         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68844         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68845         * tests/test-vasprintf-posix.c (test_function): Likewise.
68846
68847 2007-03-04  Bruno Haible  <bruno@clisp.org>
68848
68849         * modules/vasprintf-posix-tests: New file.
68850         * tests/test-vasprintf-posix.c: New file.
68851
68852         * modules/vasprintf-posix: New file.
68853         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68854         defined.
68855         * m4/vasprintf-posix.m4: New file.
68856         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68857         gl_FUNC_VASPRINTF.
68858         (gl_FUNC_VASPRINTF): Invoke it.
68859         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68860         here.
68861         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68862
68863 2007-03-04  Bruno Haible  <bruno@clisp.org>
68864
68865         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68866         REPLACE_GETTIMEOFDAY.
68867         * modules/sys_time (Makefile.am): Likewise.
68868         * m4/sys_time_h.m4: Likewise.
68869         * m4/gettimeofday.m4: Likewise.
68870
68871 2007-03-04  Bruno Haible  <bruno@clisp.org>
68872
68873         * modules/vasnprintf-posix-tests: New file.
68874         * tests/test-vasnprintf-posix.c: New file.
68875
68876         * modules/vasnprintf-posix: New file.
68877         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68878         printf-frexpl.h.
68879         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68880         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68881         REPLACE_VASNPRINTF is defined.
68882         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68883         gl_FUNC_VASNPRINTF.
68884         (gl_FUNC_VASNPRINTF): Invoke it.
68885         * m4/vasnprintf-posix.m4: New file.
68886         * m4/printf.m4: New file.
68887
68888 2007-03-04  Bruno Haible  <bruno@clisp.org>
68889
68890         Compile progreloc.c only if --enable-relocatable is specified.
68891         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68892         if --enable-relocatable was specified.
68893         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68894         lib_SOURCES.
68895
68896 2007-03-04  Jim Meyering  <jim@meyering.net>
68897
68898         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68899         Use it consistently, rather than enumerating errno constants.
68900
68901 2007-03-04  Bruno Haible  <bruno@clisp.org>
68902
68903         * modules/xvasprintf-tests: New file.
68904         * tests/test-xvasprintf.c: New file.
68905
68906         * modules/vasprintf-tests: New file.
68907         * tests/test-vasprintf.c: New file.
68908
68909         * modules/vasnprintf-tests: New file.
68910         * tests/test-vasnprintf.c: New file.
68911
68912         * modules/vsnprintf-tests: New file.
68913         * tests/test-vsnprintf.c: New file.
68914
68915         * modules/snprintf-tests: New file.
68916         * tests/test-snprintf.c: New file.
68917
68918 2007-03-04  Bruno Haible  <bruno@clisp.org>
68919
68920         Compile relocatable.c only if --enable-relocatable is specified.
68921         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68922         gl_RELOCATABLE_LIBRARY.
68923         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68924         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68925         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68926         gl_RELOCATABLE_LIBRARY.
68927         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68928         (Makefile.am): Remove lib_SOURCES.
68929         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68930         gl_RELOCATABLE_LIBRARY.
68931         (Makefile.am): Remove lib_SOURCES.
68932         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68933         always.
68934         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68935         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68936
68937 2007-03-04  Bruno Haible  <bruno@clisp.org>
68938
68939         * modules/argmatch-tests: New file.
68940         * tests/test-argmatch.c: New file.
68941
68942         * tests/test-allocsa.c (main): Halve the number of loop runs.
68943
68944         * modules/alloca-opt-tests: New file.
68945         * tests/test-alloca-opt.c: New file.
68946
68947 2007-03-04  Jim Meyering  <jim@meyering.net>
68948
68949         Work around difference between Linux ACLs and Solaris 10 ZFS.
68950         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68951         for EINVAL.
68952
68953 2007-03-03  Bruno Haible  <bruno@clisp.org>
68954
68955         * modules/relocatable-prog (Depends-on): Add back progreloc's
68956         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68957
68958 2007-03-03  Bruno Haible  <bruno@clisp.org>
68959
68960         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68961         * modules/relocatable-lib: New file.
68962
68963 2007-03-03  Bruno Haible  <bruno@clisp.org>
68964
68965         * modules/relocatable-prog: Renamed from modules/relocatable.
68966         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68967
68968 2007-03-03  Bruno Haible  <bruno@clisp.org>
68969
68970         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68971         m4/relocatable-lib.m4.
68972         (Depends-on): Remove 'relocatable'.
68973         (configure.ac): Add gl_RELOCATABLE_NOP.
68974
68975 2007-03-03  Bruno Haible  <bruno@clisp.org>
68976
68977         * modules/relocatable-prog-wrapper: New file.
68978         * modules/relocatable (Depends-on): Add it. Remove all other
68979         dependencies except progname.
68980         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68981
68982         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68983         (gl_FUNC_STRERROR): Nop.
68984         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68985
68986         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68987         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68988
68989         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68990         (gl_FUNC_READLINK): Update.
68991
68992         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68993
68994 2007-03-03  Bruno Haible  <bruno@clisp.org>
68995
68996         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68997         * modules/xreadlink (Depends-on): Add unistd.
68998         * modules/xreadlink-with-size (Depends-on): Likewise.
68999
69000 2007-03-03  Bruno Haible  <bruno@clisp.org>
69001
69002         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
69003         extracted from gt_FUNC_SETENV.
69004         (gt_FUNC_SETENV): Remove macro.
69005         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
69006         remove gt_FUNC_SETENV.
69007
69008 2007-03-03  Bruno Haible  <bruno@clisp.org>
69009
69010         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
69011         ENABLE_RELOCATABLE here.
69012         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
69013
69014 2007-03-03  Bruno Haible  <bruno@clisp.org>
69015
69016         * modules/rbtreehash-list-tests (Depends-on): Add progname.
69017         * tests/test-rbtreehash_list.c: Include progname.h.
69018         (main): Call set_program_name.
69019
69020         * modules/rbtree-oset-tests (Depends-on): Add progname.
69021         * tests/test-rbtree_oset.c: Include progname.h.
69022         (main): Call set_program_name.
69023
69024         * modules/rbtree-list-tests (Depends-on): Add progname.
69025         * tests/test-rbtree_list.c: Include progname.h.
69026         (main): Call set_program_name.
69027
69028         * modules/linked-list-tests (Depends-on): Add progname.
69029         * tests/test-linked_list.c: Include progname.h.
69030         (main): Call set_program_name.
69031
69032 2007-03-03  Bruno Haible  <bruno@clisp.org>
69033
69034         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69035         All uses of __restrict changed to _Restrict_.
69036         * lib/glob_.h (__restrict): Remove macro.
69037
69038 2007-03-02  Bruno Haible  <bruno@clisp.org>
69039
69040         * modules/gettext (configure.ac): Require gettext infrastructure
69041         from version 0.16.1.
69042
69043 2007-03-02  Bruno Haible  <bruno@clisp.org>
69044
69045         * modules/linkedhash-list-tests (Depends-on): Add progname.
69046         * tests/test-linkedhash_list.c: Include progname.h.
69047         (main): Call set_program_name.
69048
69049         * modules/carray-list-tests (Depends-on): Add progname.
69050         * tests/test-carray_list.c: Include progname.h.
69051         (main): Call set_program_name.
69052
69053         * modules/avltreehash-list-tests (Depends-on): Add progname.
69054         * tests/test-avltreehash_list.c: Include progname.h.
69055         (main): Call set_program_name.
69056
69057         * modules/avltree-oset-tests (Depends-on): Add progname.
69058         * tests/test-avltree_oset.c: Include progname.h.
69059         (main): Call set_program_name.
69060
69061         * modules/avltree-list-tests (Depends-on): Add progname.
69062         * tests/test-avltree_list.c: Include progname.h.
69063         (main): Call set_program_name.
69064
69065         * modules/array-oset-tests (Depends-on): Add progname.
69066         * tests/test-array_oset.c: Include progname.h.
69067         (main): Call set_program_name.
69068
69069         * modules/array-list-tests (Depends-on): Add progname.
69070         * tests/test-array_list.c: Include progname.h.
69071         (main): Call set_program_name.
69072
69073         * modules/argp-tests (Depends-on): Add progname.
69074         * tests/test-argp.c: Include argp.h first. Include progname.h.
69075         (main): Call set_program_name.
69076
69077 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69078
69079         * doc/gnulib-tool.texi (Initial import): Reword description of
69080         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69081         limited effect even if defined after the first system include.
69082
69083 2007-03-01  Bruno Haible  <bruno@clisp.org>
69084
69085         * build-aux/config.libpath: Update to libtool-1.5.22.
69086         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69087
69088 2007-03-01  Bruno Haible  <bruno@clisp.org>
69089
69090         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69091         foo_CFLAGS.
69092         Reported by Ralf Wildenhues.
69093
69094 2007-03-01  Bruno Haible  <bruno@clisp.org>
69095
69096         * build-aux/install-reloc: Remove object files left over by some
69097         compilers.
69098         Reported by Ralf Wildenhues.
69099
69100 2007-03-01  Bruno Haible  <bruno@clisp.org>
69101
69102         * build-aux/install-reloc: Break long lines.
69103
69104 2007-03-01  Bruno Haible  <bruno@clisp.org>
69105
69106         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69107         Reported by Ralf Wildenhues.
69108
69109 2007-03-01  Bruno Haible  <bruno@clisp.org>
69110
69111         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69112         include ordering constraints.
69113
69114 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69115
69116         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69117         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69118         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69119         as another example.
69120         * lib/time_.h: Fix misspelling.
69121         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69122         Require gl_HEADER_TIME_H_DEFAULTS.
69123         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69124         * m4/time_r.m4 (gl_TIME_R): Likewise.
69125         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69126
69127 2007-03-01  Bruno Haible  <bruno@clisp.org>
69128
69129         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69130         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69131
69132 2007-03-01  Jim Meyering  <jim@meyering.net>
69133
69134         * modules/xreadlink (Maintainer): Add my name.
69135         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69136
69137 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69138             Bruno Haible  <bruno@clisp.org>
69139
69140         * build-aux/install-reloc: Compile also c-ctype.c.
69141         * build-aux/relocatable.sh.in: New file.
69142         * doc/relocatable.texi: New file.
69143         * doc/relocatable-maint.texi: New file.
69144         * doc/gnulib.texi: Include relocatable-maint.texi.
69145         * lib/progreloc.c: Include unistd.h unconditionally.
69146         * lib/relocwrapper.c: Include unistd.h unconditionally.
69147         Include c-ctype.h.
69148         (add_dotbin): Use c_tolower.
69149         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69150         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69151         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69152         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69153         to m4/relocatable-lib.m4.
69154         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69155         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69156         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69157         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69158         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69159         * modules/relocatable: New file.
69160         * modules/relocatable-lib: New file.
69161         * modules/relocatable-script: New file.
69162
69163 2007-02-28  Bruno Haible  <bruno@clisp.org>
69164
69165         Import --enable-relocatable infrastructure.
69166         * build-aux/config.libpath: New file, from GNU gettext.
69167         * build-aux/install-reloc: New file, from GNU gettext.
69168         * build-aux/reloc-ldflags: New file, from GNU gettext.
69169         * lib/relocatable.h: New file, from GNU gettext.
69170         * lib/relocatable.c: New file, from GNU gettext.
69171         * lib/relocwrapper.c: New file, from GNU gettext.
69172         * m4/relocatable.m4: New file, from GNU gettext.
69173
69174 2007-02-28  Bruno Haible  <bruno@clisp.org>
69175
69176         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69177
69178         * modules/xreadlink: New file, from GNU gettext with modifications.
69179         * lib/xreadlink.c: New file, from GNU gettext.
69180         * lib/xreadlink.h: Add comments.
69181         (xreadlink): New declaration.
69182
69183         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69184         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69185         lib/xreadlink-with-size.c.
69186         (configure.ac): Remove gl_XREADLINK invocation.
69187         (Makefile.am): Augment lib_SOURCES.
69188         * m4/xreadlink.m4: Remove file.
69189         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69190         (xreadlink_with_size): Renamed from xreadink.
69191         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69192         * modules/canonicalize (Depends-on): Replace xreadlink with
69193         xreadlink-with-size.
69194         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69195
69196 2007-02-25  Jim Meyering  <jim@meyering.net>
69197
69198         * build-aux/announce-gen: When complaining about excess arguments,
69199         list them.
69200
69201 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69202
69203         * README: Document signed integer overflow situation more
69204         accurately.
69205
69206 2007-02-25  Bruno Haible  <bruno@clisp.org>
69207
69208         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69209         'a' or 'A' conversion.
69210
69211 2007-02-25  Bruno Haible  <bruno@clisp.org>
69212
69213         * modules/filename: Renamed from modules/pathname.
69214         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69215         lib/concatpath.c with lib/concat-filename.c.
69216         (Makefile.am): Update.
69217         (Include): Replace pathname.h with filename.h.
69218         * lib/filename.h: Renamed from lib/pathname.h.
69219         (concatenated_filename): Renamed from concatenated_pathname.
69220         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69221         (concatenated_filename): Renamed from concatenated_pathname.
69222         * lib/findprog.c: Include filename.h instead of pathname.h.
69223         (find_in_path): Update.
69224         * lib/javacomp.c: Include filename.h instead of pathname.h.
69225         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69226         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69227         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69228         is_oldgcj_14_13_usable, is_javac_usable): Update.
69229         * lib/javaexec.c: Include filename.h instead of pathname.h.
69230         (execute_java_class): Update.
69231         * modules/findprog: Update.
69232         * modules/javacomp: Update.
69233         * modules/javaexec: Update.
69234         * MODULES.html.sh (File system functions): Add 'filename', remove
69235         'pathname'.
69236
69237 2007-02-25  Bruno Haible  <bruno@clisp.org>
69238
69239         * modules/printf-frexpl-tests: New file.
69240         * tests/test-printf-frexpl.c: New file.
69241
69242         * modules/printf-frexpl: New file.
69243         * lib/printf-frexpl.h: New file.
69244         * lib/printf-frexpl.c: New file.
69245         * m4/printf-frexpl.m4: New file.
69246
69247 2007-02-25  Bruno Haible  <bruno@clisp.org>
69248
69249         * modules/printf-frexp-tests: New file.
69250         * tests/test-printf-frexp.c: New file.
69251
69252         * modules/printf-frexp: New file.
69253         * lib/printf-frexp.h: New file.
69254         * lib/printf-frexp.c: New file.
69255         * m4/printf-frexp.m4: New file.
69256
69257 2007-02-25  Bruno Haible  <bruno@clisp.org>
69258
69259         Assume automake >= 1.10 for the tests.
69260         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69261         * modules/arctwo-tests: Likewise.
69262         * modules/argp-tests: Likewise.
69263         * modules/avltree-list-tests: Likewise.
69264         * modules/avltree-oset-tests: Likewise.
69265         * modules/avltreehash-list-tests: Likewise.
69266         * modules/carray-list-tests: Likewise.
69267         * modules/crc-tests: Likewise.
69268         * modules/des-tests: Likewise.
69269         * modules/gc-arcfour-tests: Likewise.
69270         * modules/gc-arctwo-tests: Likewise.
69271         * modules/gc-des-tests: Likewise.
69272         * modules/gc-hmac-md5-tests: Likewise.
69273         * modules/gc-hmac-sha1-tests: Likewise.
69274         * modules/gc-md2-tests: Likewise.
69275         * modules/gc-md4-tests: Likewise.
69276         * modules/gc-md5-tests: Likewise.
69277         * modules/gc-pbkdf2-sha1-tests: Likewise.
69278         * modules/gc-rijndael-tests: Likewise.
69279         * modules/gc-sha1-tests: Likewise.
69280         * modules/gc-tests: Likewise.
69281         * modules/getaddrinfo-tests: Likewise.
69282         * modules/hmac-md5-tests: Likewise.
69283         * modules/hmac-sha1-tests: Likewise.
69284         * modules/linked-list-tests: Likewise.
69285         * modules/linkedhash-list-tests: Likewise.
69286         * modules/lock-tests: Likewise.
69287         * modules/md2-tests: Likewise.
69288         * modules/md4-tests: Likewise.
69289         * modules/md5-tests: Likewise.
69290         * modules/rbtree-list-tests: Likewise.
69291         * modules/rbtree-oset-tests: Likewise.
69292         * modules/rbtreehash-list-tests: Likewise.
69293         * modules/read-file-tests: Likewise.
69294         * modules/rijndael-tests: Likewise.
69295         * modules/stdint-tests: Likewise.
69296         * modules/tls-tests: Likewise.
69297
69298 2007-02-24  Bruno Haible  <bruno@clisp.org>
69299
69300         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69301         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69302         function; instead check whether isnan with a double argument links.
69303         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69304         function; instead check whether isnan with a 'long double' argument
69305         links.
69306         Reported by Eric Blake <ebb9@byu.net>.
69307
69308 2007-02-24  Bruno Haible  <bruno@clisp.org>
69309
69310         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69311         defined.
69312         * lib/isnanl.c: Remove all code. Just include isnan.c.
69313         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69314
69315 2007-02-25  Jim Meyering  <jim@meyering.net>
69316
69317         Avoid conflicting types for 'unsetenv' on FreeBSD.
69318         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69319         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69320         in stdlib.h.
69321
69322 2007-02-24  Bruno Haible  <bruno@clisp.org>
69323
69324         * modules/isnanl-nolibm-tests: New file.
69325         * tests/test-isnanl.c: New file.
69326
69327         * modules/isnanl-nolibm: New file.
69328         * lib/isnanl.h: New file.
69329         * lib/isnanl.c: New file.
69330         * m4/isnanl.m4: New file.
69331
69332 2007-02-24  Bruno Haible  <bruno@clisp.org>
69333
69334         * modules/isnan-nolibm-tests: New file.
69335         * tests/test-isnan.c: New file.
69336
69337         * modules/isnan-nolibm: New file.
69338         * lib/isnan.h: New file.
69339         * lib/isnan.c: New file.
69340         * m4/isnan.m4: New file.
69341
69342 2007-02-24  Bruno Haible  <bruno@clisp.org>
69343
69344         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69345         assume that an exponent fits in 20 bits.
69346
69347 2007-02-24  Jim Meyering  <jim@meyering.net>
69348
69349         * m4/regex.m4: Update the description of the configure-time option,
69350         --without-included-regex, to state accurately what the defaults are,
69351         and perhaps to give people an idea why using this option is risky.
69352
69353 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69354
69355         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69356         loops on small arguments.  This attempts to avoid the problem
69357         Bruno Haible reported for AIX 4.3.2 in
69358         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69359
69360 2007-02-23  Bruno Haible  <bruno@clisp.org>
69361
69362         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69363         Needed for help2man.
69364
69365 2007-02-23  Karl Berry  <karl@gnu.org>
69366
69367         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
69368         exists, foo.h should be cvs-ignored, not committed.
69369
69370 2007-02-23  Eric Blake  <ebb9@byu.net>
69371
69372         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
69373         * lib/stat-time.h (includes): Likewise.
69374         * lib/utimecmp.c (includes): Likewise.
69375         * lib/utimens.h (includes): Likewise.
69376         * lib/getdate.y (includes): Also include "timespec.h" for use
69377         internal to the module.
69378         * modules/utimens (Depends-on): Revert yesterday's patch.
69379         * modules/nanosleep (Depends-on): Add missing dependency.
69380
69381 2007-02-22  Bruno Haible  <bruno@clisp.org>
69382
69383         * lib/glob.c: Don't include getlogin_r.h.
69384
69385 2007-02-22  Jim Meyering  <jim@meyering.net>
69386
69387         * modules/utimens (Depends-on): Add timespec, required for
69388         utimens.h's inclusion of timespec.h.
69389
69390 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
69391
69392         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
69393         long unreadable paths in GNU/Linux.  Problem reported by Andreas
69394         Schwab in
69395         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
69396         I'll try to think of a better way to fix the Solaris problem.
69397
69398         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
69399         like glibc; on Solaris 10, it fails with errno == EINVAL.
69400         POSIX says the behavior is unspecified if the first argument is NULL,
69401         so play it safe and never pass NULL to the system getcwd.
69402
69403 2007-02-21  Jim Meyering  <jim@meyering.net>
69404
69405         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
69406         of gettimeofday.  It would conflict with the one now always
69407         provided via sys_time_.h.  Reported by Matthew Woehlke, as
69408         an IRIX 6.5 build failure.
69409
69410 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69411
69412         Minor fixups to port to Solaris 10 with Sun C 5.8.
69413         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
69414         * modules/getcwd (Depends-on): Add dirfd.
69415         * lib/putenv.c (putenv): #undef it.
69416         (rpl_putenv): New decl.
69417         (malloc, free): Include <stdlib.h> rather than prototyping separately.
69418
69419 2007-02-20  Bruno Haible  <bruno@clisp.org>
69420
69421         * modules/stdio-tests: New file.
69422         * tests/test-stdio.c: New file.
69423
69424         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69425         (Depends-on): Add stdio.
69426         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69427         (Include): Use <stdio.h> instead of vsnprintf.h.
69428         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69429         HAVE_DECL_VSNPRINTF.
69430         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69431
69432         * modules/snprintf (Files): Remove lib/snprintf.h.
69433         (Depends-on): Add stdio.
69434         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69435         (Include): Use <stdio.h> instead of snprintf.h.
69436         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69437         HAVE_DECL_SNPRINTF.
69438         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69439         * lib/getaddrinfo.c: Likewise.
69440
69441         * modules/stdio: New file.
69442         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
69443         * lib/snprintf.h: Remove file.
69444         * lib/vsnprintf.h: Remove file.
69445         * lib/.cppi-disable: Remove snprintf.h.
69446         * m4/stdio_h.m4: New file.
69447         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
69448
69449 2007-02-20  Jim Meyering  <jim@meyering.net>
69450
69451         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
69452         used by e.g., mingw.  From Bruno Haible.
69453
69454 2007-02-19  Bruno Haible  <bruno@clisp.org>
69455
69456         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
69457         warnings.
69458         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69459
69460 2007-02-19  Bruno Haible  <bruno@clisp.org>
69461
69462         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69463         from mingw users.
69464
69465 2007-02-19  Bruno Haible  <bruno@clisp.org>
69466
69467         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69468         warnings.
69469         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69470
69471 2007-02-19  Jim Meyering  <jim@meyering.net>
69472
69473         Don't use FD after a successful "fdopendir (fd)".
69474         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
69475         Reset it by calling dirfd on the just-obtained DIR*.
69476
69477         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
69478         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
69479
69480 2007-02-18  Bruno Haible  <bruno@clisp.org>
69481
69482         * lib/readlink.c: Include <unistd.h>.
69483         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
69484         HAVE_READLINK.
69485         * modules/readlink (Depends-on): Add unistd.
69486         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69487         (Include): Add <unistd.h>.
69488
69489         * lib/getlogin_r.h: Remove file.
69490         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
69491         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
69492         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
69493         HAVE_DECL_GETLOGIN_R.
69494         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
69495         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69496         (Include): Use <unistd.h> instead of getlogin_r.h.
69497
69498         * lib/getcwd.h: Remove file.
69499         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
69500         * lib/xgetcwd.c: Likewise.
69501         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
69502         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
69503         * modules/getcwd (Files): Remove lib/getcwd.h.
69504         (Depends-on): Add unistd.
69505         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69506         (Include): Use <unistd.h> instad of getcwd.h.
69507
69508         * lib/ftruncate.c: Include <unistd.h> first.
69509         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
69510         Set HAVE_FTRUNCATE.
69511         * modules/ftruncate (Depends-on): Add unistd.
69512         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69513
69514         * lib/fchdir.c: Include <unistd.h> first.
69515         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
69516         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69517         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69518         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69519         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69520
69521         * lib/dup2.c: Include <unistd.h> first.
69522         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69523         HAVE_DUP2.
69524         * modules/dup2 (Depends-on): Add unistd.
69525         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69526
69527         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69528         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69529         REPLACE_CHOWN. Don't define chown as a macro here.
69530         * modules/chown (Depends-on): Add unistd.
69531         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69532
69533         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69534         Add definition for GL_LINK_WARNING.
69535         (chown, dup2): New declarations.
69536         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69537         link warning.
69538         (ftruncate): New declaration.
69539         (getcwd): New declaration, taken from old getcwd.h.
69540         (getlogin_r): New declaration, taken from old getlogin_r.h.
69541         (readlink): New declaration.
69542         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69543         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69544         (gl_PREREQ_UNISTD): Remove macro.
69545         (gl_UNISTD_MODULE_INDICATOR): New macro.
69546         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69547         many new variables. Don't set UNISTD_H.
69548         * modules/unistd (Description): Change.
69549         (Depends-on): Add link-warning.
69550         (configure.ac): Update.
69551         (Makefile.am): Create unistd.h always. Substitute many new variables
69552         into it.
69553
69554 2007-02-18  Bruno Haible  <bruno@clisp.org>
69555
69556         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69557         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69558         HAVE_GETSUBOPT.
69559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69560         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69561         * lib/getsubopt.h: Remove file.
69562         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69563         (Depends-on): Add stdlib.
69564         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69565         (Includes): Use <stdlib.h> instead of getsubopt.h.
69566         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69567         Set HAVE_GETSUBOPT.
69568         * lib/getsubopt.c: Don't include getsubopt.h.
69569
69570 2007-02-18  Bruno Haible  <bruno@clisp.org>
69571
69572         * modules/fchdir (Depends-on): Add dup2.
69573
69574 2007-02-18  Bruno Haible  <bruno@clisp.org>
69575
69576         * lib/stdlib_.h: Handle glibc's special invocation convention
69577         specially.
69578
69579 2007-02-18  Bruno Haible  <bruno@clisp.org>
69580
69581         * modules/stdlib-tests: New file.
69582         * tests/test-stdlib.c: New file.
69583
69584         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69585         (Depends-on): Add stdlib.
69586         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69587         (Includes): Use <stdlib.h> instead of mkstemp.h.
69588         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69589         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69590         * lib/mkstemp.c: Don't include mkstemp.h.
69591         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69592         * lib/stdlib--.h: Don't include mkstemp.h.
69593
69594         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69595         (Depends-on): Add stdlib.
69596         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69597         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69598         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69599         HAVE_MKDTEMP.
69600         * lib/mkdtemp.c: Don't include mkdtemp.h.
69601         * lib/clean-temp.c: Don't include mkdtemp.h.
69602
69603         * modules/exit (Files): Remove lib/exit.h.
69604         (Depends-on): Add stdlib.
69605         (Makefile.am): Remove lib_SOURCES.
69606         (Include): Use <stdlib.h> instead of exit.h.
69607         * lib/argmatch.c: Don't include exit.h.
69608         * lib/execute.c: Likewise.
69609         * lib/pagealign_alloc.c: Likewise.
69610         * lib/pipe.c: Likewise.
69611         * lib/wait-process.c: Likewise.
69612         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69613         * lib/exitfail.c: Likewise.
69614         * lib/savewd.c: Likewise.
69615         * lib/xsetenv.c: Likewise.
69616
69617         * modules/stdlib: New file.
69618         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69619         and extra comments about mkstemp().
69620         * lib/exit.h: Remove file.
69621         * lib/mkdtemp.h: Remove file.
69622         * lib/mkstemp.h: Remove file.
69623         * m4/stdlib_h.m4: New file.
69624         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69625
69626 2007-02-18  Bruno Haible  <bruno@clisp.org>
69627
69628         * modules/math-tests: New file.
69629         * tests/test-math.c: New file.
69630
69631         * modules/math: New file.
69632         * modules/mathl (Files): Remove lib/mathl.h.
69633         (Depends-on): Add math.
69634         (Makefile.am): Don't mention mathl.h.
69635         (Include): Use <math.h> instead of mathl.h.
69636         * lib/math_.h: New file.
69637         * lib/mathl.h: Remove file.
69638         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69639         mathl.h.
69640         * lib/asinl.c: Likewise.
69641         * lib/atanl.c: Likewise.
69642         * lib/ceill.c: Likewise.
69643         * lib/cosl.c: Likewise.
69644         * lib/expl.c: Likewise.
69645         * lib/floorl.c: Likewise.
69646         * lib/frexpl.c: Likewise.
69647         * lib/ldexpl.c: Likewise.
69648         * lib/logl.c: Likewise.
69649         * lib/sincosl.c: Likewise.
69650         * lib/sinl.c: Likewise.
69651         * lib/sqrtl.c: Likewise.
69652         * lib/tanl.c: Likewise.
69653         * lib/trigl.c: Likewise.
69654         * m4/math_h.m4: New file.
69655         * MODULES.html.sh (Mathematics): Add math.
69656
69657 2007-02-17  Bruno Haible  <bruno@clisp.org>
69658
69659         * modules/wctype-tests: New file.
69660         * tests/test-wctype.c: New file.
69661
69662         * modules/wchar-tests: New file.
69663         * tests/test-wchar.c: New file.
69664
69665         * modules/unistd-tests: New file.
69666         * tests/test-unistd.c: New file.
69667
69668         * modules/time-tests: New file.
69669         * tests/test-time.c: New file.
69670
69671         * modules/sysexits-tests: New file.
69672         * tests/test-sysexits.c: New file.
69673
69674         * modules/sys_time-tests: New file.
69675         * tests/test-sys_time.c: New file.
69676
69677         * modules/sys_stat-tests: New file.
69678         * tests/test-sys_stat.c: New file.
69679
69680         * modules/sys_socket-tests: New file.
69681         * tests/test-sys_socket.c: New file.
69682
69683         * modules/sys_select-tests: New file.
69684         * tests/test-sys_select.c: New file.
69685
69686         * modules/string-tests: New file.
69687         * tests/test-string.c: New file.
69688
69689         * modules/stdbool-tests: New file.
69690         * tests/test-stdbool.c: New file.
69691
69692         * modules/netinet_in-tests: New file.
69693         * tests/test-netinet_in.c: New file.
69694
69695         * modules/inttypes-tests: New file.
69696         * tests/test-inttypes.c: New file.
69697
69698         * modules/fcntl-tests: New file.
69699         * tests/test-fcntl.c: New file.
69700
69701         * modules/byteswap-tests: New file.
69702         * tests/test-byteswap.c: New file.
69703
69704         * modules/arpa_inet-tests: New file.
69705         * tests/test-arpa_inet.c: New file.
69706
69707 2007-02-17  Bruno Haible  <bruno@clisp.org>
69708
69709         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69710         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69711         if the corresponding module is not enabled. Emit link warnings if
69712         the function is used nevertheless.
69713         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69714         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69715         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69716         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69717         * modules/inttypes (Depends-on): Add link-warning.
69718         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69719         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69720         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69721         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69722         * modules/imaxdiv (configure.ac): Likewise.
69723         * modules/strtoimax (configure.ac): Likewise.
69724         * modules/strtoumax (configure.ac): Likewise.
69725
69726 2007-02-17  Bruno Haible  <bruno@clisp.org>
69727
69728         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69729         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69730         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69731         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69732
69733 2007-02-17  Bruno Haible  <bruno@clisp.org>
69734
69735         * modules/link-warning: New file.
69736         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69737         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69738         * modules/string (Depends-on): Add link-warning.
69739         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69740         string.h.
69741         * MODULES.html.sh (Support for building libraries and executables): Add
69742         link-warning.
69743
69744 2007-02-17  Bruno Haible  <bruno@clisp.org>
69745
69746         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69747         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69748         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69749         long lines.
69750
69751 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69752             Bruno Haible  <bruno@clisp.org>
69753
69754         * modules/tmpfile: New file.
69755         * lib/tmpfile.c: New file.
69756         * m4/tmpfile.m4: New file.
69757         * MODULES.html.sh (func_all_modules): New section "Input/output".
69758
69759 2007-02-15  Bruno Haible  <bruno@clisp.org>
69760
69761         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69762         (supports_delete_on_close): New function.
69763         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69764
69765 2007-02-14  Bruno Haible  <bruno@clisp.org>
69766
69767         * modules/mbspcasecmp-tests: New file.
69768         * tests/test-mbspcasecmp.sh: New file.
69769         * tests/test-mbspcasecmp.c: New file.
69770
69771         New module mbspcasecmp.
69772         * modules/mbspcasecmp: New file.
69773         * lib/mbspcasecmp.c: New file.
69774         * lib/string_.h (strncasecmp): Change warning message.
69775         (mbspcasecmp): New declaration.
69776         * m4/mbspcasecmp.m4: New file.
69777         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69778         GNULIB_MBSPCASECMP.
69779         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69780         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69781
69782 2007-02-14  Bruno Haible  <bruno@clisp.org>
69783
69784         * modules/mbsncasecmp-tests: New file.
69785         * tests/test-mbsncasecmp.sh: New file.
69786         * tests/test-mbsncasecmp.c: New file.
69787
69788         New module mbsncasecmp.
69789         * modules/mbsncasecmp: New file.
69790         * lib/mbsncasecmp.c: New file.
69791         * lib/string_.h (mbsncasecmp): New declaration.
69792         * m4/mbsncasecmp.m4: New file.
69793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69794         GNULIB_MBSNCASECMP.
69795         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69796         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69797
69798 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69799
69800         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69801         Verify that it doesn't overlap with our flags.
69802         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69803         do not have the desired effect in multibyte locales; instead, use
69804         mbscasecmp.
69805         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69806         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69807         we don't require GNU fnmatch ourselves (if our users require it, they
69808         should do so explicitly).
69809
69810         Fix regex code so it doesn't rely on strcasecmp.
69811         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69812         Otherwise, include gnulib's langinfo.h.
69813         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69814         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69815         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69816         * modules/regex (FILES): Remove m4/codeset.m4.
69817         (Depends-on): Add localcharset.  Remove strcase.
69818
69819 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69820
69821         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69822         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69823
69824 2007-02-13  Bruno Haible  <bruno@clisp.org>
69825
69826         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69827         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69828
69829 2007-02-12  Bruno Haible  <bruno@clisp.org>
69830
69831         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69832         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69833         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69834         time warning rather than a link error.
69835
69836 2007-02-12  Bruno Haible  <bruno@clisp.org>
69837
69838         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69839         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69840         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69841
69842 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69843
69844         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69845         args, not 2.
69846
69847 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69848
69849         New module 'time', so that apps can include <time.h> as per
69850         POSIX and GNU instead of separate include files like time_r.h
69851         and timegm.h.  This implementation tries out a simpler approach
69852         for replacing decls in standard include files (as compared to
69853         the string module), somewhat as an experiment.
69854
69855         * config/srclist.txt: Comment out mktime.c for now.
69856         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69857         since it doesn't apply any more.  Use generic wording instead.
69858         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69859         'time'.
69860         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69861         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69862         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69863         Don't include <sys/types.h>; no longer needed since we assume C89.
69864         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69865         * lib/strftime.c: Likewise.
69866         * lib/time_r.c: Likewise.
69867         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69868         * lib/nanosleep.c: Include <time.h> first, to check interface.
69869         * lib/strptime.c: Likewise.
69870         * lib/time_r.c: Likewise.
69871         * lib/timegm.c: Likewise.
69872         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69873         needed.
69874         * lib/timegm.c: Don't include timegm.h; no longer needed.
69875         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69876         time.h now handles any problems in that area.
69877         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69878         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69879         that time.h defines struct timespec.
69880         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69881         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69882         handles that.
69883         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69884         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69885         needed.  Set REPLACE_LOCALTIME.
69886         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69887         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69888         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69889         nanosleep; time_h.m4 now does that.  Don't require
69890         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69891         module handles this now.
69892         * modules/getdate (Depends-on): Remove timespec.  Add time.
69893         * modules/nanosleep (Depends-on): Likewise.
69894         * modules/stat-time (Depends-on): Likewise.
69895         * modules/nanosleep (Include): Include time.h, not timespec.h.
69896         * modules/strptime (Files): Remove lib/strptime.h.
69897         (Depends-on): Add extensions, time.
69898         (Include): Include time.h, not strptime.h.
69899         * modules/time_r (Files): Remove lib/time_r.h.
69900         (Depends-on): Add time.
69901         (Include): Include time.h, not time_r.h.
69902         * modules/timegm: Likewise.
69903         * modules/timespec (Description): Now does timespec-related decls
69904         of our own, instead of struct timespec itself.
69905         (Depends-on): Add time; remove extensions.
69906         (Maintainer): Add self.
69907         * modules/utimecmp (Depends-on): Add time; remove timespec.
69908         * modules/utimens (Depends-on): Likewise.
69909         * modules/xnanosleep (Depends-on): Likewise.
69910
69911 2007-02-11  Bruno Haible  <bruno@clisp.org>
69912
69913         * lib/c-strstr.c: Include allocsa.h.
69914         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69915         * lib/c-strcasestr.c: Include allocsa.h.
69916         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69917         * lib/strcasestr.c: Include allocsa.h.
69918         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69919         * lib/mbsstr.c: Include allocsa.h.
69920         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69921         allocsa/freesa instead of malloc/free.
69922         * lib/mbscasestr.c: Include allocsa.h.
69923         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69924         allocsa/freesa instead of malloc/free.
69925         * modules/c-strstr (Depends-on): Add allocsa.
69926         * modules/c-strcasestr (Depends-on): Likewise.
69927         * modules/strcasestr (Depends-on): Likewise.
69928         * modules/mbsstr (Depends-on): Likewise.
69929         * modules/mbscasestr (Depends-on): Likewise.
69930
69931 2007-02-11  Bruno Haible  <bruno@clisp.org>
69932
69933         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69934
69935         * modules/mbsspn-tests: New file.
69936         * tests/test-mbsspn.sh: New file.
69937         * tests/test-mbsspn.c: New file.
69938
69939 2007-02-11  Bruno Haible  <bruno@clisp.org>
69940
69941         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69942
69943         * modules/mbspbrk-tests: New file.
69944         * tests/test-mbspbrk.sh: New file.
69945         * tests/test-mbspbrk.c: New file.
69946
69947 2007-02-11  Bruno Haible  <bruno@clisp.org>
69948
69949         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69950         unneeded cast.
69951
69952         * modules/mbscspn-tests: New file.
69953         * tests/test-mbscspn.sh: New file.
69954         * tests/test-mbscspn.c: New file.
69955
69956 2007-02-11  Bruno Haible  <bruno@clisp.org>
69957
69958         * modules/mbscasecmp-tests: New file.
69959         * tests/test-mbscasecmp.sh: New file.
69960         * tests/test-mbscasecmp.c: New file.
69961
69962 2007-02-11  Bruno Haible  <bruno@clisp.org>
69963
69964         Ensure O(n) worst-case complexity of mbscasestr.
69965         * lib/mbscasestr.c: Include stdbool.h.
69966         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69967         functions.
69968         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69969         the bookkeeping indicates that it's worth it.
69970         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69971
69972         * modules/mbscasestr-tests: New file.
69973         * tests/test-mbscasestr1.c: New file.
69974         * tests/test-mbscasestr2.sh: New file.
69975         * tests/test-mbscasestr2.c: New file.
69976         * tests/test-mbscasestr3.sh: New file.
69977         * tests/test-mbscasestr3.c: New file.
69978         * tests/test-mbscasestr4.sh: New file.
69979         * tests/test-mbscasestr4.c: New file.
69980         * m4/locale-tr.m4: New file.
69981
69982 2007-02-11  Bruno Haible  <bruno@clisp.org>
69983
69984         Ensure O(n) worst-case complexity of mbsstr.
69985         * lib/mbsstr.c: Include stdbool.h.
69986         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69987         functions.
69988         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69989         bookkeeping indicates that it's worth it.
69990         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69991
69992         * modules/mbsstr-tests: New file.
69993         * tests/test-mbsstr1.c: New file.
69994         * tests/test-mbsstr2.sh: New file.
69995         * tests/test-mbsstr2.c: New file.
69996         * tests/test-mbsstr3.sh: New file.
69997         * tests/test-mbsstr3.c: New file.
69998         * m4/locale-fr.m4: New file.
69999
70000 2007-02-11  Bruno Haible  <bruno@clisp.org>
70001
70002         * lib/mbsrchr.c (mbsrchr): Fix bug.
70003
70004         * modules/mbsrchr-tests: New file.
70005         * tests/test-mbsrchr.sh: New file.
70006         * tests/test-mbsrchr.c: New file.
70007
70008 2007-02-11  Bruno Haible  <bruno@clisp.org>
70009
70010         * lib/mbschr.c (mbschr): Fix bug.
70011
70012         * modules/mbschr-tests: New file.
70013         * tests/test-mbschr.sh: New file.
70014         * tests/test-mbschr.c: New file.
70015         * m4/locale-zh.m4: New file.
70016
70017 2007-02-11  Bruno Haible  <bruno@clisp.org>
70018
70019         Support for copying multibyte string iterators.
70020         * lib/mbiter.h: Include <string.h>.
70021         (mbiter_multi_copy): New function.
70022         (mbi_copy): New macro.
70023         * lib/mbuiter.h: Include <string.h>.
70024         (mbuiter_multi_copy): New function.
70025         (mbui_copy): New macro.
70026
70027 2007-02-11  Bruno Haible  <bruno@clisp.org>
70028
70029         New module mbslen.
70030         * modules/mbslen: New file.
70031         * lib/mbslen.c: New file.
70032         * lib/string_.h (mbslen): New declaration.
70033         * m4/mbslen.m4: New file.
70034         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70035         GNULIB_MBSLEN.
70036         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70037         * MODULES.html.sh (Internationalization functions): Add mbslen.
70038
70039 2007-02-11  Bruno Haible  <bruno@clisp.org>
70040
70041         Ensure O(n) worst-case complexity of strcasestr substitute.
70042         * lib/strcasestr.c: Include stdbool.h.
70043         (knuth_morris_pratt): New function.
70044         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70045         bookkeeping indicates that it's worth it.
70046         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70047
70048         * modules/strcasestr-tests: New file.
70049         * tests/test-strcasestr.c: New file.
70050
70051 2007-02-11  Bruno Haible  <bruno@clisp.org>
70052
70053         Ensure O(n) worst-case complexity of c_strcasestr.
70054         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70055         (knuth_morris_pratt): New function.
70056         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70057         the bookkeeping indicates that it's worth it.
70058         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70059
70060         * modules/c-strcasestr-tests: New file.
70061         * tests/test-c-strcasestr.c: New file.
70062
70063 2007-02-11  Bruno Haible  <bruno@clisp.org>
70064
70065         Ensure O(n) worst-case complexity of c_strstr.
70066         * lib/c-strstr.c: Include stdbool.h, string.h.
70067         (knuth_morris_pratt): New function.
70068         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70069         bookkeeping indicates that it's worth it.
70070         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70071
70072         * lib/c-strstr.c: Complete rewrite for maintainability.
70073
70074         * modules/c-strstr-tests: New file.
70075         * tests/test-c-strstr.c: New file.
70076
70077 2007-02-11  Bruno Haible  <bruno@clisp.org>
70078
70079         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70080         5.2.1 and earlier, whereby \055 was treated just like the range
70081         delimiter '-'.
70082         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70083
70084 2007-02-08  Bruno Haible  <bruno@clisp.org>
70085
70086         * modules/regex (Depends-on): Add stdbool.
70087         Reported by Dalibor Topic <robilad@kaffe.org>.
70088
70089 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70090
70091         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70092         Prefer returning from main to exiting from it.
70093         Remove unnecessary parens after sizeof.
70094
70095 2007-02-05  Bruno Haible  <bruno@clisp.org>
70096
70097         New module mbssep.
70098         * modules/mbssep: New file.
70099         * lib/mbssep.c: New file.
70100         * lib/string_.h (strsep): Add a conditional link warning.
70101         (mbssep): New declaration.
70102         * m4/mbssep.m4: New file.
70103         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70104         GNULIB_MBSSEP.
70105         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70106         * MODULES.html.sh (Internationalization functions): Add mbssep.
70107
70108 2007-02-05  Bruno Haible  <bruno@clisp.org>
70109
70110         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70111         Optimize search in case of 1 delimiter.
70112
70113 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70114
70115         * lib/acl.h: Include sys/types.h before sys/acl.h.
70116
70117 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70118
70119         Merge upstream fix for glibc bugzilla #3957:
70120
70121         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70122
70123         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70124         bit for RE_HAT_LISTS_NOT_NEWLINE.
70125         (build_charclass_op): Remove bogus comment.
70126
70127 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70128
70129         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70130
70131 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70132
70133         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70134         * lib/memmem.c [!defined _LIBC]: Include config.h.
70135
70136 2007-02-04  Bruno Haible  <bruno@clisp.org>
70137
70138         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70139         warning message.
70140
70141 2007-02-04  Bruno Haible  <bruno@clisp.org>
70142
70143         New module mbstok_r.
70144         * modules/mbstok_r: New file.
70145         * lib/mbstok_r.c: New file.
70146         * lib/string_.h (strtok_r): Change argument names to match the
70147         comments. Add a conditional link warning.
70148         (mbstok_r): New declaration.
70149         * m4/mbstok_r.m4: New file.
70150         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70151         GNULIB_MBSTOK_R.
70152         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70153         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70154
70155 2007-02-04  Bruno Haible  <bruno@clisp.org>
70156
70157         New module mbsspn.
70158         * modules/mbsspn: New file.
70159         * lib/mbsspn.c: New file.
70160         * lib/string_.h (strspn): Add a conditional link warning.
70161         (mbsspn): New declaration.
70162         * m4/mbsspn.m4: New file.
70163         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70164         GNULIB_MBSSPN.
70165         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70166         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70167
70168 2007-02-04  Bruno Haible  <bruno@clisp.org>
70169
70170         New module mbspbrk.
70171         * modules/mbspbrk: New file.
70172         * lib/mbspbrk.c: New file.
70173         * lib/string_.h (strpbrk): Add a conditional link warning.
70174         (mbspbrk): New declaration.
70175         * m4/mbspbrk.m4: New file.
70176         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70177         GNULIB_MBSPBRK.
70178         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70179         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70180
70181 2007-02-04  Bruno Haible  <bruno@clisp.org>
70182
70183         New module mbscspn.
70184         * modules/mbscspn: New file.
70185         * lib/mbscspn.c: New file.
70186         * lib/string_.h (strcspn): Add a conditional link warning.
70187         (mbscspn): New declaration.
70188         * m4/mbscspn.m4: New file.
70189         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70190         GNULIB_MBSCSPN.
70191         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70192         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70193
70194 2007-02-04  Bruno Haible  <bruno@clisp.org>
70195
70196         New module mbscasestr, reduced goal of strcasestr.
70197         * modules/mbscasestr: New file.
70198         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70199         (mbscasestr): Renamed from strcasestr.
70200         * lib/strcasestr.c: Don't include mbuiter.h.
70201         (strcasestr): Remove support for multibyte locales.
70202         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70203         Change the conditional link warning.
70204         (mbscasestr): New declaration.
70205         * m4/mbscasestr.m4: New file.
70206         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70207         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70208         REPLACE_STRCASESTR.
70209         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70211         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70212         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70213         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70214         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70215         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70216         (Depends-on): Remove mbuiter.
70217         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70218
70219 2007-02-04  Bruno Haible  <bruno@clisp.org>
70220
70221         Simplify handling of strncasecmp.
70222         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70223         the conditional link warning.
70224         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70225         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70226         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70227         * modules/strcase (configure.ac): Don't invoke
70228         gl_STRING_MODULE_INDICATOR.
70229         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70230
70231 2007-02-04  Bruno Haible  <bruno@clisp.org>
70232
70233         New module mbscasecmp, reduced goal of strcasecmp.
70234         * modules/mbscasecmp: New file.
70235         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70236         (mbscasecmp): Renamed from strcasecmp.
70237         * lib/strcasecmp.c: Don't include mbuiter.h.
70238         (strcasecmp): Remove support for multibyte locales.
70239         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70240         Change the conditional link warning.
70241         (mbscasecmp): New declaration.
70242         * m4/mbscasecmp.m4: New file.
70243         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70244         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70245         REPLACE_STRCASECMP.
70246         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70247         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70248         GNULIB_MBSCASECMP.
70249         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70250         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70251         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70252         (Depends-on): Remove mbuiter.
70253         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70254
70255 2007-02-04  Bruno Haible  <bruno@clisp.org>
70256
70257         New module mbsstr. Remove module strstr.
70258         * modules/mbsstr: New file.
70259         * modules/strstr: Remove file.
70260         * lib/mbsstr.c: Renamed from lib/strstr.c.
70261         (mbsstr): Renamed from strstr.
70262         * lib/string_.h (strstr): Remove declaration. Change the conditional
70263         link warning.
70264         (mbsstr): New declaration.
70265         * m4/mbsstr.m4: New file.
70266         * m4/strstr.m4: Remove file.
70267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70268         REPLACE_STRSTR.
70269         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70270         Don't initialize GNULIB_STRSTR.
70271         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70272         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70273         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70274         (Support for systems lacking ANSI C 89): Remove strstr.
70275
70276 2007-02-04  Bruno Haible  <bruno@clisp.org>
70277
70278         New module mbsrchr.
70279         * modules/mbsrchr: New file.
70280         * lib/mbsrchr.c: New file.
70281         * lib/string_.h (strrchr): Add a conditional link warning.
70282         (mbsrchr): New declaration.
70283         * m4/mbsrchr.m4: New file.
70284         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70285         GNULIB_MBSRCHR.
70286         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70287         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70288
70289 2007-02-04  Bruno Haible  <bruno@clisp.org>
70290
70291         New module mbschr.
70292         * modules/mbschr: New file.
70293         * lib/mbschr.c: New file.
70294         * lib/string_.h (strchr): Add a conditional link warning.
70295         (mbschr): New declaration.
70296         * m4/mbschr.m4: New file.
70297         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70298         GNULIB_MBSCHR.
70299         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
70300         * MODULES.html.sh (Internationalization functions): Add mbschr.
70301
70302 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70303
70304         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70305
70306         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70307
70308 2007-02-04  Bruno Haible  <bruno@clisp.org>
70309
70310         New module description section 'configure.ac-early'.
70311         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70312         (func_get_autoconf_early_snippet): New function.
70313         (func_import, func_create_testdir): Use it. Remove special cases for
70314         modules 'extensions' and 'lock'.
70315         * modules/extensions (configure.ac-early): Require
70316         gl_USE_SYSTEM_EXTENSIONS.
70317         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70318
70319 2007-02-04  Bruno Haible  <bruno@clisp.org>
70320
70321         Make use of gcj-4.3's -fsource and -ftarget option.
70322         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70323         and if so try the options -fsource and -ftarget.
70324         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70325         source_version, ftarget_option, target_version arguments.
70326         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70327         (is_envjavac_oldgcj_14_14_usable): Renamed from
70328         is_envjavac_gcj_14_14_usable.
70329         (is_envjavac_oldgcj_14_13_usable): Renamed from
70330         is_envjavac_gcj_14_13_usable.
70331         (is_gcj_present): Update.
70332         (is_gcj_43, is_gcj43_usable): New functions.
70333         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70334         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70335         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70336         try the options -fsource and -ftarget.
70337
70338 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70339
70340         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70341         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70342         larger value.
70343
70344 2007-02-03  Jim Meyering  <jim@meyering.net>
70345
70346         Give tools a better chance to allocate space for very large buffers.
70347         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70348
70349         Make pwd and readlink work also when run with an unreadable parent dir
70350         on systems with openat support.
70351         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70352         provided getcwd function, even when we have openat support.
70353         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70354
70355 2007-02-02  Bruno Haible  <bruno@clisp.org>
70356
70357         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70358         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70359         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70360         portability problems if one of these functions is only used on specific
70361         platforms.
70362         Reported by Paul Eggert.
70363
70364 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
70365
70366         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
70367         is causing more trouble than it's curing.
70368         * lib/regex_internal.h (__mempcpy): Remove.
70369         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
70370         (and make the code a tad smaller to boot).
70371         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
70372
70373 2007-02-02  Jim Meyering  <jim@meyering.net>
70374
70375         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
70376         section, not in the Makefile.am: one.
70377
70378 2007-02-02  Eric Blake  <ebb9@byu.net>
70379
70380         * lib/strchrnul.c: Always include config.h first.
70381
70382         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
70383         gnulib strstr is not necessary here.
70384
70385 2007-02-02  Simon Josefsson  <simon@josefsson.org>
70386
70387         * m4/socklen.m4: Fix typo.
70388
70389 2007-02-02  Eric Blake  <ebb9@byu.net>
70390
70391         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
70392         * modules/netinet_in (Makefile.am): Likewise.
70393
70394 2007-02-01  Bruno Haible  <bruno@clisp.org>
70395
70396         * lib/string_.h (GL_LINK_WARNING): New macro.
70397         (strcasecmp, strstr, strcasestr): If provided by the system,
70398         conditionally define as a macro that leads to a warning instead of to
70399         an error.
70400         (strncasecmp): Conditionally define as a macro that leads to a warning.
70401
70402 2007-02-01  Karl Berry  <karl@gnu.org>
70403
70404         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
70405
70406 2007-02-01  Bruno Haible  <bruno@clisp.org>
70407
70408         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
70409         renamings.
70410
70411 2007-02-01  Eric Blake  <ebb9@byu.net>
70412
70413         * modules/regex (Depends-on): Revert dependence on mempcpy.
70414         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
70415         module's definition of mempcpy.
70416         Reported by Paul Eggert.
70417
70418 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70419
70420         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70421         the symbol XYZ before redefining it.  This fixes a problem with
70422         programs that don't use XYZ, when compiled on systems that define
70423         XYZ to something else.
70424
70425 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70426
70427         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70428         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70429         writeable to group or other and (2) is intended to have a special
70430         mode bit that is set or cleared.  In such a case, the directory
70431         should be neither group- nor other-writeable until the special
70432         mode bits are right.
70433
70434 2007-01-31  Eric Blake  <ebb9@byu.net>
70435
70436         * modules/mountlist (Depends-on): Add strstr.
70437
70438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70439         bug.
70440         * modules/string (Makefile.am): Remove redundant replacement.
70441         * modules/regex (Depends-on): Add mempcpy.
70442
70443 2007-01-31  Bruno Haible  <bruno@clisp.org>
70444
70445         New module description field 'Link'.
70446         * gnulib-tool (func_usage): Document --extract-link-directive.
70447         (sed_extract_prog): Recognize 'Link' directive.
70448         (func_get_link_directive): New function.
70449         (func_import): Show summary of link directives.
70450         Handle --extract-link-directive option.
70451         * modules/acl (Link): New section.
70452         * modules/clock-time (Link): New section.
70453         * modules/euidaccess (Link): New section.
70454         * modules/gettext (Link): New section.
70455         * modules/iconv (Link): New section.
70456         * modules/lock (Link): New section.
70457         * modules/nanosleep (Link): New section.
70458         * modules/readline (Link): New section.
70459
70460 2007-01-27  Bruno Haible  <bruno@clisp.org>
70461
70462         Enforce the use of gnulib modules for unportable <string.h> functions.
70463         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70464         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70465         (gl_HEADER_STRING_H_BODY): Require it.
70466         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70467         the symbol XYZ to one that gives a link error.
70468         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70469         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70470         * modules/mempcpy (configure.ac): Likewise.
70471         * modules/memrchr (configure.ac): Likewise.
70472         * modules/stpcpy (configure.ac): Likewise.
70473         * modules/stpncpy (configure.ac): Likewise.
70474         * modules/strcase (configure.ac): Likewise.
70475         * modules/strcasestr (configure.ac): Likewise.
70476         * modules/strchrnul (configure.ac): Likewise.
70477         * modules/strdup (configure.ac): Likewise.
70478         * modules/strndup (configure.ac): Likewise.
70479         * modules/strnlen (configure.ac): Likewise.
70480         * modules/strpbrk (configure.ac): Likewise.
70481         * modules/strsep (configure.ac): Likewise.
70482         * modules/strstr (configure.ac): Likewise.
70483         * modules/strtok_r (configure.ac): Likewise.
70484
70485 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
70486
70487         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
70488
70489 2007-01-30  Jim Meyering  <jim@meyering.net>
70490
70491         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
70492
70493 2007-01-29  Bruno Haible  <bruno@clisp.org>
70494
70495         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
70496         * lib/execute.c: Likewise.
70497         * lib/pipe.c: Likewise.
70498         * lib/printf-args.h: Likewise.
70499         * lib/printf-args.c: Likewise.
70500         * lib/printf-parse.c: Likewise.
70501         * lib/vasnprintf.c: Likewise.
70502
70503 2007-01-29  Eric Blake  <ebb9@byu.net>
70504
70505         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
70506         declaration.
70507
70508 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
70509
70510         * lib/strptime.h (strptime): Use 'restrict' for args where
70511         POSIX requires this.
70512         * lib/strptime.c (strptime): Likewise.
70513         Change license notice from LGPL to GPL, since gnulib-tool will
70514         change this as needed.
70515         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
70516         defined.
70517         Include "strptime.h" first, to check interface.
70518         Do not #undef _LIBC and _NL_CURRENT.
70519         Do not include <stdlib.h>; no longer needed.
70520         Include "time_r.h" and declare ptime_locale_status
70521         only if _LIBC is not defined.
70522         (__P): Remove unused macro.
70523         (match_string): Bring back glibc version, but use it only if _LIBC
70524         is defined.
70525         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70526         Remove unnecessary assertion and abort() call.
70527         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70528         * m4/strptime.m4: Fix serial number comment.
70529         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70530         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70531         (Depends-on): Add time_r.
70532
70533 2007-01-29  Bruno Haible  <bruno@clisp.org>
70534
70535         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70536         strptime.
70537         * modules/strptime (Depends-on): Add stdbool.
70538         * lib/strptime.h: Include <time.h> always. Add comments.
70539
70540 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70541
70542         * modules/strptime: New file.
70543         * lib/strptime.h: New file.
70544         * lib/strptime.c: New file.
70545         * m4/strptime.m4: New file.
70546
70547 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70548
70549         * MODULES.html.sh: New module mpsort.
70550         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70551
70552         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70553         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70554         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70555         All uses changed.
70556         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70557         All uses changed.
70558         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70559         to _Restrict_.
70560         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70561         the parameter matches the prototype.
70562
70563 2007-01-28  Jim Meyering  <jim@meyering.net>
70564
70565         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70566         sys/time.h here, reverting that part of the previous patch:
70567         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70568
70569 2007-01-28  Bruno Haible  <bruno@clisp.org>
70570
70571         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70572         value of $(SYS_TIME_H).
70573         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70574         remove it conditionally, too. [added by Jim Meyering]
70575         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70576         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70577         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70578         GETTIMEOFDAY_REPLACEMENT to 1.
70579
70580 2007-01-28  Bruno Haible  <bruno@clisp.org>
70581
70582         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70583         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70584         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70585         Set UNISTD_H instead of UNISTD_H2.
70586         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70587
70588 2007-01-28  Bruno Haible  <bruno@clisp.org>
70589
70590         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70591         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70592
70593 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70594
70595         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70596         (func_create_testdir): Ensure C locale for `grep' and `tr'
70597         character ranges.
70598         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70599         ACLOCAL_AMFLAGS parsing state machine.
70600
70601 2007-01-27  Bruno Haible  <bruno@clisp.org>
70602
70603         * modules/unistr/base: Update.
70604
70605 2007-01-27  Bruno Haible  <bruno@clisp.org>
70606
70607         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70608         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70609         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70610         modules/unistr/u32-mbtouc.
70611         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70612         * lib/unistr.h: Update.
70613         * lib/linebreak.c: Update.
70614         * modules/unistr/u32-mbtouc: Renamed from
70615         modules/unistr/u32-mbtouc-safe.
70616         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70617         * lib/unistr.h: Update.
70618         * lib/unistr/u32-to-u8.c: Update.
70619         * lib/unistr/u32-to-u16.c: Update.
70620
70621 2007-01-27  Bruno Haible  <bruno@clisp.org>
70622
70623         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70624         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70625         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70626         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70627         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70628         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70629         modules/unistr/u16-mbtouc.
70630         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70631         * lib/unistr.h: Update.
70632         * lib/linebreak.c: Update.
70633         * modules/linebreak: Update.
70634         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70635         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70636         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70637         * modules/unistr/u16-mbtouc: Renamed from
70638         modules/unistr/u16-mbtouc-safe.
70639         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70640         * lib/unistr.h: Update.
70641         * lib/unistr/u16-to-u8.c: Update.
70642         * modules/unistr/u16-to-u8: Update.
70643         * lib/unistr/u16-to-u32.c: Update.
70644         * modules/unistr/u16-to-u32: Update.
70645
70646 2007-01-27  Bruno Haible  <bruno@clisp.org>
70647
70648         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70649         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70650         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70651         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70652         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70653         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70654         modules/unistr/u8-mbtouc.
70655         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70656         * lib/unistr.h: Update.
70657         * lib/striconveh.c: Update.
70658         * modules/striconveh: Update.
70659         * lib/linebreak.c: Update.
70660         * modules/linebreak: Update.
70661         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70662         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70663         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70664         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70665         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70666         * lib/unistr.h: Update.
70667         * lib/striconveh.c: Update.
70668         * modules/striconveh: Update.
70669         * lib/unistr/u8-to-u16.c: Update.
70670         * modules/unistr/u8-to-u16: Update.
70671         * lib/unistr/u8-to-u32.c: Update.
70672         * modules/unistr/u8-to-u32: Update.
70673
70674 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70675
70676         Sync from Libtool.
70677         * lib/argz.c: Do not include strings.h nor memory.h, include
70678         string.h unconditionally.  Patch by Simon Josefsson.
70679
70680 2007-01-27  Bruno Haible  <bruno@clisp.org>
70681
70682         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70683         from gl_HEADER_STRING_H_BODY.
70684         (gl_HEADER_STRING_H_BODY): Require it.
70685         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70686         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70687         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70688         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70689         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70690         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70691         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70692         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70693         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70694         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70695         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70696         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70697         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70698         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70699         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70700
70701 2007-01-27  Bruno Haible  <bruno@clisp.org>
70702
70703         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70704         check_PROGRAMS into noinst_PROGRAMS.
70705         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70706         check_PROGRAMS in this case.
70707         (func_import): Set for_test to false.
70708         (func_create_testdir): Set for_test to true.
70709
70710 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70711             Bruno Haible  <bruno@clisp.org>
70712
70713         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70714         (Depends-on): Add string.
70715         (Includes): Use <string.h> instead of strcasestr.h.
70716         * modules/string (Makefile.am): Also substitute the value of
70717         REPLACE_STRCASESTR.
70718         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70719         assume strcasestr is declared in <string.h> not <strings.h>. Also
70720         set REPLACE_STRCASESTR.
70721         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70722         REPLACE_STRCASESTR.
70723         * lib/strcasestr.h: Remove file.
70724         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70725         * lib/string_.h (strcasestr): New declaration.
70726
70727 2007-01-27  Bruno Haible  <bruno@clisp.org>
70728
70729         * lib/string_.h: Use 'extern'.
70730
70731 2007-01-27  Jim Meyering  <jim@meyering.net>
70732
70733         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70734         of set-but-not-used local, "q".
70735
70736         * lib/mempcpy.c: Include <config.h> before <string.h>.
70737         This fixes a compilation error on HP-UX, due to the system's
70738         "restrict"-using mempcpy prototype.
70739
70740 2007-01-26  Bruno Haible  <bruno@clisp.org>
70741
70742         Small optimization.
70743         * lib/javacomp.c: Include c-strstr.h.
70744          (is_envjavac_gcj): Use c_strstr instead of strstr.
70745         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70746
70747 2007-01-26  Bruno Haible  <bruno@clisp.org>
70748
70749         * MODULES.html.sh (Unicode string functions): Add the new modules.
70750
70751         * modules/uniconv/u32-strconv-to-locale: New file.
70752         * lib/uniconv/u32-strconv-to-locale.c: New file.
70753
70754         * modules/uniconv/u16-strconv-to-locale: New file.
70755         * lib/uniconv/u16-strconv-to-locale.c: New file.
70756
70757         * modules/uniconv/u8-strconv-to-locale: New file.
70758         * lib/uniconv/u8-strconv-to-locale.c: New file.
70759
70760         * modules/uniconv/u32-strconv-from-locale: New file.
70761         * lib/uniconv/u32-strconv-from-locale.c: New file.
70762
70763         * modules/uniconv/u16-strconv-from-locale: New file.
70764         * lib/uniconv/u16-strconv-from-locale.c: New file.
70765
70766         * modules/uniconv/u8-strconv-from-locale: New file.
70767         * lib/uniconv/u8-strconv-from-locale.c: New file.
70768
70769         * modules/uniconv/u32-strconv-to-enc: New file.
70770         * lib/uniconv/u32-strconv-to-enc.c: New file.
70771         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70772         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70773
70774         * modules/uniconv/u16-strconv-to-enc: New file.
70775         * lib/uniconv/u16-strconv-to-enc.c: New file.
70776         * lib/uniconv/u-strconv-to-enc.h: New file.
70777         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70778         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70779
70780         * modules/uniconv/u8-strconv-to-enc: New file.
70781         * lib/uniconv/u8-strconv-to-enc.c: New file.
70782         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70783         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70784
70785         * modules/uniconv/u32-strconv-from-enc: New file.
70786         * lib/uniconv/u32-strconv-from-enc.c: New file.
70787         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70788         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70789
70790         * modules/uniconv/u16-strconv-from-enc: New file.
70791         * lib/uniconv/u16-strconv-from-enc.c: New file.
70792         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70793         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70794
70795         * modules/uniconv/u8-strconv-from-enc: New file.
70796         * lib/uniconv/u8-strconv-from-enc.c: New file.
70797         * lib/uniconv/u-strconv-from-enc.h: New file.
70798         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70799         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70800
70801         * modules/uniconv/u32-conv-from-enc: New file.
70802         * lib/uniconv/u32-conv-from-enc.c: New file.
70803         * modules/uniconv/u32-conv-from-enc-tests: New file.
70804         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70805
70806         * modules/uniconv/u16-conv-from-enc: New file.
70807         * lib/uniconv/u16-conv-from-enc.c: New file.
70808         * lib/uniconv/u-conv-from-enc.h: New file.
70809         * modules/uniconv/u16-conv-from-enc-tests: New file.
70810         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70811
70812         * modules/uniconv/u8-conv-from-enc: New file.
70813         * lib/uniconv/u8-conv-from-enc.c: New file.
70814         * modules/uniconv/u8-conv-from-enc-tests: New file.
70815         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70816
70817         * modules/uniconv/base: New file.
70818         * lib/uniconv.h: New file.
70819
70820 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70821
70822         * doc/gnulib-tool.texi (Initial import): Update to match current
70823         behavior with strdup module.
70824         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70825         * lib/memmem.h: Remove; all uses removed.  This is now done
70826         by <string.h>.
70827         * lib/mempcpy.h: Likewise.
70828         * lib/memrchr.h: Likewise.
70829         * lib/stpcpy.h: Likewise.
70830         * lib/stpncpy.h: Likewise.
70831         * lib/strcase.h: Likewise.
70832         * lib/strchrnul.h: Likewise.
70833         * lib/strdup.h: Likewise.
70834         * lib/strndup.h: Likewise.
70835         * lib/strnlen.h: Likewise.
70836         * lib/strpbrk.h: Likewise.
70837         * lib/strsep.h: Likewise.
70838         * lib/strstr.h: Likewise.
70839         * lib/strtok_r.h: Likewise.
70840         * lib/string_.h: New file.
70841         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70842         Rely on <string.h> instead.
70843         * lib/canon-host.c: Likewise.
70844         * lib/chdir-long.c: Likewise.
70845         * lib/concatpath.c: Likewise.
70846         * lib/exclude.c: Likewise.
70847         * lib/fchdir.c: Likewise.
70848         * lib/getaddrinfo.c: Likewise.
70849         * lib/getcwd.c: Likewise.
70850         * lib/getsubopt.c: Likewise.
70851         * lib/glob.c: Likewise.
70852         * lib/hard-locale.c: Likewise.
70853         * lib/iconvme.c: Likewise.
70854         * lib/javacomp.c: Likewise.
70855         * lib/mempcpy.c: Likewise.
70856         * lib/memrchr.c: Likewise.
70857         * lib/regex_internal.h: Likewise.
70858         * lib/stpncpy.c: Likewise.
70859         * lib/strcasecmp.c: Likewise.
70860         * lib/strchrnul.c: Likewise.
70861         * lib/strdup.c: Likewise.
70862         * lib/striconv.c: Likewise.
70863         * lib/striconveh.c: Likewise.
70864         * lib/striconveha.c: Likewise.
70865         * lib/strncasecmp.c: Likewise.
70866         * lib/strndup.c: Likewise.
70867         * lib/strnlen.c: Likewise.
70868         * lib/strsep.c: Likewise.
70869         * lib/strstr.c: Likewise.
70870         * lib/strtok_r.c: Likewise.
70871         * lib/userspec.c: Likewise.
70872         * lib/w32spawn.h: Likewise.
70873         * lib/xstrndup.c: Likewise.
70874         * lib/mountlist.c (strstr): Remove decl.
70875         * m4/string_h.m4: New file.
70876         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70877         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70878         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70879         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70880         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70881         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70882         Set REPLACE_STRCASECMP if necessary.
70883         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70884         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70885         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70886         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70887         HAVE_DECL_STRDUP if necessary.
70888         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70889         since gl_FUNC_STRNDUP does that now.
70890         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70891         Check for decl here...
70892         (gl_PREREQ_STRNLEN): ... not here.
70893         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70894         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70895         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70896         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70897         necessary.
70898         * modules/string: New file.
70899         * modules/memmem (Files): Remove special-purpose include file.
70900         (Depends-on): Add string.
70901         (Include): Include <string.h>, not the removed file.
70902         * modules/mempcpy: Likewise.
70903         * modules/memrchr: Likewise.
70904         * modules/stpcpy: Likewise.
70905         * modules/stpncpy: Likewise.
70906         * modules/strcase: Likewise.
70907         * modules/strchrnul: Likewise.
70908         * modules/strdup: Likewise.
70909         * modules/strndup: Likewise.
70910         * modules/strnlen: Likewise.
70911         * modules/strpbrk: Likewise.
70912         * modules/strsep: Likewise.
70913         * modules/strstr: Likewise.
70914         * modules/strtok_r: Likewise.
70915         * tests/test-dirname.c: Don't include "strdup.h", since
70916         <string.h> now suffices.
70917         * tests/test-memmem.c: Don't include "memmem.h", since
70918         <string.h> now suffices.
70919
70920 2007-01-25  Bruno Haible  <bruno@clisp.org>
70921
70922         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70923         *resultp is 0.
70924
70925         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70926         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70927         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70928         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70929
70930         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70931         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70932         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70933         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70934         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70935         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70936
70937 2007-01-24  Bruno Haible  <bruno@clisp.org>
70938
70939         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70940         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70941         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70942         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70943         gl_FUNC_FTS_CORE.
70944         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70945         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70946         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70947         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70948         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70949         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70950         gl_FUNC_FCHOWNAT.
70951         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70952         gl_FUNC_STRFTIME.
70953         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70954         Reported by Ralf Wildenhues.
70955
70956 2007-01-24  Bruno Haible  <bruno@clisp.org>
70957
70958         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70959         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70960         gl_GETADDRINFO.
70961         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70962         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70963         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70964
70965 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70966
70967         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70968         Don't use 'exit'; just return from 'main'.
70969         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70970
70971         * lib/fnmatch_.h: Readjust white space and comments to match
70972         glibc, to avoid spurious diffs.
70973
70974 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70975
70976         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70977         2004-12-01 change by Jakub Jelinek, since this code won't compile
70978         if !LIBC.  Problem reported by Bob Proulx.
70979
70980 2007-01-23  Bruno Haible  <bruno@clisp.org>
70981
70982         * lib/striconveh.c: Include c-strcaseeq.h.
70983         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70984         * modules/striconveh (Depends-on): Add c-strcaseeq.
70985
70986 2007-01-23  Bruno Haible  <bruno@clisp.org>
70987
70988         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70989
70990         * modules/c-strcaseeq: New file.
70991         * lib/c-strcaseeq.h: New file.
70992
70993         * modules/streq: New file.
70994         * lib/streq.h: New file.
70995
70996 2007-01-23  Bruno Haible  <bruno@clisp.org>
70997
70998         * modules/striconveha-tests: New file.
70999         * tests/test-striconveha.c: New file.
71000
71001         * lib/striconveha.h: Include <stdbool.h>.
71002         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
71003         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
71004         (mem_iconveha_notranslit): Renamed from mem_iconveha.
71005         (mem_iconveha): New function.
71006         (str_iconveha_notranslit): Renamed from str_iconveha.
71007         (str_iconveha): New function.
71008         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
71009         c-strcase.
71010
71011 2007-01-23  Bruno Haible  <bruno@clisp.org>
71012
71013         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
71014         encodings without forgiving before trying any encoding with handler.
71015         (str_iconveha): Try all encodings without forgiving before trying any
71016         encoding with handler.
71017
71018 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71019
71020         Import the following changes from libc.
71021
71022         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71023
71024         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
71025
71026         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71027
71028         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
71029         normal_bracket label.
71030
71031         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
71032
71033         [BZ #361]
71034         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71035         to normal_bracket after fetching the next character.
71036
71037 2007-01-22  Bruno Haible  <bruno@clisp.org>
71038
71039         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71040         argument.
71041         * lib/striconveh.c (iconv_carefully_1): New function.
71042         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71043         argument.
71044         (str_cd_iconveh): Update.
71045         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71046         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71047         * tests/test-striconveh.c (MAGIC): New macro.
71048         (new_offsets): New function.
71049         (main): Test call with and without offsets.
71050
71051 2007-01-22  Bruno Haible  <bruno@clisp.org>
71052
71053         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71054         * modules/sys_select (Makefile.am): Likewise.
71055         * modules/sys_socket (Makefile.am): Likewise.
71056         * modules/sys_time (Makefile.am): Likewise.
71057
71058 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71059
71060         * modules/gettimeofday (License): Change from GPL to LGPL, since
71061         gettimeofday is a library function.
71062
71063 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71064
71065         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71066
71067 2007-01-21  Bruno Haible  <bruno@clisp.org>
71068
71069         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71070
71071 2007-01-21  Bruno Haible  <bruno@clisp.org>
71072
71073         * modules/striconveha: New file.
71074         * lib/striconveha.h: New file.
71075         * lib/striconveha.c: New file.
71076         * MODULES.html.sh (Internationalization functions): Add striconveha.
71077         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71078         string.
71079         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71080
71081 2007-01-21  Bruno Haible  <bruno@clisp.org>
71082
71083         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71084         * lib/striconveh.c (str_iconveh): Likewise.
71085
71086 2007-01-21  Bruno Haible  <bruno@clisp.org>
71087
71088         * lib/striconveh.h (mem_iconveh): New declaration.
71089         * lib/striconveh.c (mem_iconveh): New function.
71090         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71091
71092 2007-01-21  Bruno Haible  <bruno@clisp.org>
71093
71094         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71095
71096         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71097         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71098         original result buffer.
71099         (str_cd_iconveh): Update.
71100         * tests/test-striconveh.c (main): Update.
71101
71102         * lib/striconv.h (mem_cd_iconv): Change specification.
71103         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71104         result buffer.
71105         (str_cd_iconv): Update.
71106         * tests/test-striconv.c (main): Update.
71107
71108 2007-01-21  Bruno Haible  <bruno@clisp.org>
71109
71110         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71111
71112 2007-01-20  Jim Meyering  <jim@meyering.net>
71113
71114         * lib/userspec.c (parse_with_separator): If a user or group string
71115         starts with "+", skip the corresponding name-to-ID look-up, since
71116         such a look-up must fail: user and group names may not include "+".
71117
71118 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71119
71120         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71121         since we now assume the sys_time module.
71122         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71123         check for sys/time.h; no longer needed.
71124         * modules/poll (Depends-on): Depend on sys_time.
71125
71126 2007-01-18  Bruno Haible  <bruno@clisp.org>
71127
71128         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71129         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71130
71131         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71132         gettimeofday.
71133
71134         * tests/test-gettimeofday.c: Include <time.h>.
71135         (dummy): Remove variable.
71136
71137         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71138         gl_HEADER_SYS_TIME_H.
71139         (gl_HEADER_SYS_TIME_H): New macro.
71140
71141         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71142         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71143         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71144         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71145         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71146         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71147         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71148         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71149         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71150         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71151         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71152
71153         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71154         last change; it caused a compilation error when cross-compiling to
71155         Cygwin.
71156
71157 2007-01-18  Jim Meyering  <jim@meyering.net>
71158
71159         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71160         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71161         than the race-prone "test -d sys || mkdir sys".
71162         (configure.ac): Use AC_PROG_MKDIR_P.
71163         * modules/sys_select: Likewise.
71164         * modules/sys_socket: Likewise.
71165         * modules/sys_time: Likewise.
71166
71167 2007-01-18  Eric Blake  <ebb9@byu.net>
71168
71169         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71170         replace gettimeofday.
71171         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71172         name, to avoid infinite recursion.
71173
71174 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71175
71176         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71177         module sys_time.
71178         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71179         assume timespec.h defines struct timeval.
71180         * lib/settime.c: Likewise.
71181         * lib/utimens.c: Likewise.
71182         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71183         since we now assume the gettimeofday module.
71184         * lib/tempname.c (__gen_tempname): Likewise.
71185         * lib/gettimeofday.h: Remove.
71186         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71187         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71188         Include <time.h>, for 'time()'.
71189         (localtime_buffer_addr): Also use this workaround if
71190         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71191         to simplify the uses.  All uses changed.
71192         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71193         that #undef is inside {}, and 'const' follows type name consistently.
71194         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71195         (gettimeofday): Do not use the maximum possible value for
71196         tv->tv_usec, since that might break usages other than ls.c.
71197         Instead, we'll leave ls.c alone.  This undoes today's patch
71198         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71199         we've never observed the problem but might as well keep the
71200         canary.
71201         * lib/nanosleep.c: Include timespec.h first, for interface check.
71202         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71203         now assume the sys_time module.
71204         * lib/tempname.c: Likewise.
71205         * lib/timespec.h: Likewise.
71206         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71207         needed.
71208         * lib/strftime.c: Likewise.
71209         * lib/timespec.h: Likewise.
71210         * lib/posixtm.c: Include posixtm.h first, for interface check.
71211         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71212         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71213         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71214         * lib/sys_time_.h: New file.
71215         * lib/timespec.h (struct timespec): Use long int, not long.
71216         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71217         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71218         Remove obsolescent call to AC_HEADER_TIME.
71219         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71220         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71221         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71222         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71223         Likewise.
71224         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71225         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71226         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71227         into the sys_time module.  Check for gettimeofday just once.
71228         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71229         for gettimeofday signature to just check the signature.  Merely
71230         compile it, since linking doesn't test signature.  Improve test for
71231         whether gettimeofday.o is actually needed.
71232         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71233         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71234         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71235         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71236         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71237         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71238         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71239         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71240         than worrying about sys/time.h.
71241         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71242         Don't bother worrying about TIME_WITH_SYS_TIME.
71243         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71244         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71245         * m4/sys_time_h.m4: New file.
71246         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71247         Don't include sys/time.h.  Return from main rather than exiting.
71248         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71249         all uses changed.
71250         * modules/gethrxtime (Depends-on): Add sys_time.
71251         * modules/gettime (Depends-on): Likewise.
71252         * modules/gettimeofday (Depends-on): Likewise.
71253         * modules/nanosleep (Depends-on): Likewise.
71254         * modules/settime (Depends-on): Likewise.
71255         * modules/tempname (Depends-on): Likewise.
71256         * modules/utimens (Depends-on): Likewise.
71257         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71258         (Include): Change back to <sys/time.h>.
71259         (Maintainer): Add self.
71260         * modules/sys_time: New file.
71261         * modules/tempname (Depends-on): Add gettimeofday.
71262         * tests/test-gettimeofday.c: Include <sys/time.h>
71263         rather than gettimeofday.h.
71264
71265 2007-01-17  Bruno Haible  <bruno@clisp.org>
71266
71267         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71268         the license default to GPL.
71269         (func_create_testdir): Don't complain if a module is LGPL and its
71270         tests module depends on GPLed modules.
71271
71272 2007-01-17  Bruno Haible  <bruno@clisp.org>
71273
71274         * lib/gettimeofday.c (gettimeofday): Add code for the case
71275         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71276         maximum possible value for tv->tv_usec, rather than the minimum one.
71277
71278 2005-10-08  Martin Lambers  <marlam@marlam.de>
71279 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71280 2007-01-16  Bruno Haible  <bruno@clisp.org>
71281
71282         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71283         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71284         gl_FUNC_GETTIMEOFDAY.
71285         (Include): Add gettimeofday.h.
71286         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71287         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71288         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71289         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
71290         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
71291         * lib/gettimeofday.h: New file.
71292         * lib/gettimeofday.c: Include <sys/timeb.h>.
71293         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
71294         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71295         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
71296         fall back on time().
71297
71298         * tests/test-gettimeofday.c: New file.
71299         * modules/gettimeofday-tests: New file.
71300
71301 2007-01-16  Eric Blake  <ebb9@byu.net>
71302
71303         * modules/fnmatch (Depends-on): Depend on wchar.
71304         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71305         * m4/fnmatch.m4: Likewise.
71306         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71307         * m4/mbchar.m4: Likewise.
71308         * modules/mbswidth (Depends-on): Depend on wchar.
71309         * lib/mbswidth.c: Assume <wchar.h>.
71310         * m4/mbswidth.m4: Likewise.
71311         * modules/quotearg (Depends-on): Depend on wchar.
71312         * lib/quotearg.c: Assume <wchar.h>.
71313         * m4/quotearg.m4: Likewise.
71314         * modules/regex (Depends-on): Depend on wchar.
71315         * lib/regex_internal.h: Assume <wchar.h>.
71316         * m4/regex.m4: Likewise.
71317         * modules/stdint (Depends-on): Depend on wchar.
71318         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71319         * m4/stdint.m4: Likewise.
71320         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71321         * modules/strftime (Depends-on): Depend on wchar.
71322         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71323         * modules/strtol (Depends-on): Depend on wchar.
71324         * lib/strtol.c: Assume <wchar.h>.
71325         * modules/wcwidth (Depends-on): Depend on wchar.
71326         * lib/wcwidth.h: Assume <wchar.h>.
71327         * m4/wcwidth.m4: Likewise.
71328
71329 2007-01-16  Bruno Haible  <bruno@clisp.org>
71330
71331         * modules/csharpexec-script: New, created from...
71332         * modules/csharpexec: ... this.
71333
71334 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71335
71336         * modules/javaexec-script: New, created from...
71337         * modules/javaexec: ... this.
71338
71339 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71340
71341         * modules/poll (Dependencies): Add sys_select.
71342
71343 2007-01-15  Jim Meyering  <jim@meyering.net>
71344
71345         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71346         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71347         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71348         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71349
71350 2007-01-15  Bruno Haible  <bruno@clisp.org>
71351
71352         * modules/striconveh: New file.
71353         * lib/striconveh.h: New file.
71354         * lib/striconveh.c: New file.
71355         * MODULES.html.sh (Internationalization functions): Add striconveh.
71356
71357         * modules/striconveh-tests: New file.
71358         * tests/test-striconveh.c: New file.
71359
71360 2007-01-15  Bruno Haible  <bruno@clisp.org>
71361
71362         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71363         not from GNU libiconv or GNU libc.
71364
71365 2007-01-15  Bruno Haible  <bruno@clisp.org>
71366
71367         * doc/gnulib-intro.texi (Copyright): Explain the different license
71368         terms for module descriptions, autoconf macros, tests, documentation.
71369
71370 2007-01-14  Bruno Haible  <bruno@clisp.org>
71371
71372         * modules/striconv-tests: New file.
71373         * tests/test-striconv.c: New file.
71374
71375 2007-01-14  Bruno Haible  <bruno@clisp.org>
71376
71377         * modules/iconv-tests: New file.
71378         * tests/test-iconv.c: New file.
71379
71380 2007-01-14  Bruno Haible  <bruno@clisp.org>
71381
71382         * gnulib-tool (func_get_license): For test modules, use the license of
71383         the main module.
71384
71385 2007-01-14  Bruno Haible  <bruno@clisp.org>
71386
71387         * modules/iconv (Include): Clarify that <iconv.h> can only be included
71388         if iconv is found to exist.
71389
71390 2007-01-14  Bruno Haible  <bruno@clisp.org>
71391
71392         * modules/c-ctype-tests: New file.
71393         * tests/test-c-ctype.c: New file.
71394
71395 2007-01-14  Bruno Haible  <bruno@clisp.org>
71396
71397         * modules/binary-io-tests: New file.
71398         * tests/test-binary-io.sh: New file.
71399         * tests/test-binary-io.c: New file.
71400
71401 2007-01-14  Bruno Haible  <bruno@clisp.org>
71402
71403         * modules/array-oset-tests: New file.
71404         * tests/test-array_oset.c: New file.
71405
71406 2007-01-14  Bruno Haible  <bruno@clisp.org>
71407
71408         * modules/array-list-tests: New file.
71409         * tests/test-array_list.c: New file.
71410
71411 2007-01-14  Bruno Haible  <bruno@clisp.org>
71412
71413         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
71414         and make.
71415         Reported by Simon Josefsson in
71416         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
71417
71418 2007-01-14  Bruno Haible  <bruno@clisp.org>
71419
71420         * modules/allocsa-tests: New file.
71421         * tests/test-allocsa.c: New file.
71422
71423 2007-01-14  Bruno Haible  <bruno@clisp.org>
71424
71425         * modules/fchdir (Depends-on): Add absolute-header.
71426         * modules/unistd (Depends-on): Likewise.
71427
71428 2006-12-30  Bruno Haible  <bruno@clisp.org>
71429
71430         * modules/fchdir: New file.
71431         * modules/unistd (Files): Add lib/unistd_.h.
71432         (Makefile.am): Generate unistd.h from unistd_.h.
71433         * lib/fchdir.c: New file.
71434         * lib/dirent_.h: New file.
71435         * lib/unistd_.h: New file.
71436         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71437         * m4/fchdir.m4: New file.
71438         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71439         (gl_HEADER_UNISTD): Invoke it.
71440         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
71441         function.
71442         * lib/backupfile.c (opendir, closedir): Undefine.
71443         * lib/chown.c (open, close): Undefine.
71444         * lib/clean-temp.c (open, close): Undefine.
71445         * lib/copy-file.c (open, close): Undefine.
71446         * lib/execute.c (open, close): Undefine.
71447         * lib/fsusage.c (open, close): Undefine.
71448         * lib/gc-gnulib.c (open, close): Undefine.
71449         * lib/getcwd.c (opendir, closedir): Undefine.
71450         * lib/glob.c (opendir, closedir): Undefine.
71451         * lib/javacomp.c (open, close): Undefine.
71452         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
71453         * lib/openat-proc.c (open, close): Undefine.
71454         * lib/pagealign_alloc.c (open, close): Undefine.
71455         * lib/pipe.c (open, close): Undefine.
71456         * lib/progreloc.c (open, close): Undefine.
71457         * lib/savedir.c (opendir, closedir): Undefine.
71458         * lib/utime.c (open, close): Undefine.
71459         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
71460
71461 2007-01-10  Bruno Haible  <bruno@clisp.org>
71462
71463         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71464
71465 2007-01-12  Eric Blake  <ebb9@byu.net>
71466
71467         Provide a robust <wchar.h>.  Further simplifications are now
71468         possible in other modules, but not included here.
71469         * modules/wchar: New module.
71470         * m4/wchar.m4: New file.
71471         * lib/wchar_.h: Likewise.
71472         * modules/mbchar (Depends-on): Depend on wchar, as the first use
71473         of the new module.
71474         * MODULES.html.sh (Extended multibyte and wide character utilities):
71475         New section.
71476
71477 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
71478
71479         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
71480         to a reasonable default for memory allocation.
71481         (xreadlink): Don't allocate a huge buffer, to work around a buggy
71482         file system that reports garbage st_size values for symlinks.
71483         Problem reported by Liyang Hu.
71484
71485 2007-01-11  Simon Josefsson  <simon@josefsson.org>
71486
71487         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
71488         Emacs .#* auto-save files).
71489
71490 2007-01-11  Bruno Haible  <bruno@clisp.org>
71491
71492         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
71493         directory.
71494
71495 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71496
71497         Use @...@ consistently in lib/wctype_.h.
71498         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
71499         on it being set to 1 or 0.
71500         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
71501         go back to AC_SUBSTing it.
71502         * modules/wctype (Makefile.am): Undo previous change.
71503
71504 2007-01-10  Eric Blake  <ebb9@byu.net>
71505
71506         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
71507         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
71508         * modules/wctype (Makefile.am): Likewise.
71509         Reported by Chris McGuire.
71510
71511 2007-01-10  Jim Meyering  <jim@meyering.net>
71512
71513         fts.c: a small readability/maintainability improvement
71514         * lib/fts.c (fts_read): Make this code slightly more readable and
71515         maintainable by hoisting the "sp->fts_cur = p" assignments to
71516         immediately follow the statements that set P.  Derived from
71517         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71518
71519 2007-01-10  Eric Blake  <ebb9@byu.net>
71520
71521         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71522         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71524         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71525         Reported by Chris McGuire.
71526
71527 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71528
71529         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71530         in sed script.
71531
71532 2007-01-09  Bruno Haible  <bruno@clisp.org>
71533
71534         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71535         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71536         variables.
71537         (func_module): Use them.
71538
71539 2007-01-09  Bruno Haible  <bruno@clisp.org>
71540
71541         * modules/unistr/base: New file.
71542         * lib/unistr.h: New file.
71543
71544         * modules/unistr/u8-to-u16: New file.
71545         * lib/unistr/u8-to-u16.c: New file.
71546
71547         * modules/unistr/u8-to-u32: New file.
71548         * lib/unistr/u8-to-u32.c: New file.
71549
71550         * modules/unistr/u16-to-u8: New file.
71551         * lib/unistr/u16-to-u8.c: New file.
71552
71553         * modules/unistr/u16-to-u32: New file.
71554         * lib/unistr/u16-to-u32.c: New file.
71555
71556         * modules/unistr/u32-to-u8: New file.
71557         * lib/unistr/u32-to-u8.c: New file.
71558
71559         * modules/unistr/u32-to-u16: New file.
71560         * lib/unistr/u32-to-u16.c: New file.
71561
71562         * modules/unistr/u8-check: New file.
71563         * modules/unistr/u16-check: New file.
71564         * modules/unistr/u32-check: New file.
71565         * lib/unistr/u8-check.c: New file.
71566         * lib/unistr/u16-check.c: New file.
71567         * lib/unistr/u32-check.c: New file.
71568
71569         * modules/unistr/u8-chr: New file.
71570         * modules/unistr/u16-chr: New file.
71571         * modules/unistr/u32-chr: New file.
71572         * lib/unistr/u8-chr.c: New file.
71573         * lib/unistr/u16-chr.c: New file.
71574         * lib/unistr/u32-chr.c: New file.
71575
71576         * modules/unistr/u8-cmp: New file.
71577         * modules/unistr/u16-cmp: New file.
71578         * modules/unistr/u32-cmp: New file.
71579         * lib/unistr/u8-cmp.c: New file.
71580         * lib/unistr/u16-cmp.c: New file.
71581         * lib/unistr/u32-cmp.c: New file.
71582
71583         * modules/unistr/u8-cpy: New file.
71584         * modules/unistr/u16-cpy: New file.
71585         * modules/unistr/u32-cpy: New file.
71586         * lib/unistr/u8-cpy.c: New file.
71587         * lib/unistr/u16-cpy.c: New file.
71588         * lib/unistr/u32-cpy.c: New file.
71589         * lib/unistr/u-cpy.h: New file.
71590
71591         * modules/unistr/u8-cpy-alloc: New file.
71592         * modules/unistr/u16-cpy-alloc: New file.
71593         * modules/unistr/u32-cpy-alloc: New file.
71594         * lib/unistr/u8-cpy-alloc.c: New file.
71595         * lib/unistr/u16-cpy-alloc.c: New file.
71596         * lib/unistr/u32-cpy-alloc.c: New file.
71597         * lib/unistr/u-cpy-alloc.h: New file.
71598
71599         * modules/unistr/u8-endswith: New file.
71600         * modules/unistr/u16-endswith: New file.
71601         * modules/unistr/u32-endswith: New file.
71602         * lib/unistr/u8-endswith.c: New file.
71603         * lib/unistr/u16-endswith.c: New file.
71604         * lib/unistr/u32-endswith.c: New file.
71605         * lib/unistr/u-endswith.h: New file.
71606
71607         * modules/unistr/u8-mblen: New file.
71608         * modules/unistr/u16-mblen: New file.
71609         * modules/unistr/u32-mblen: New file.
71610         * lib/unistr/u8-mblen.c: New file.
71611         * lib/unistr/u16-mblen.c: New file.
71612         * lib/unistr/u32-mblen.c: New file.
71613
71614         * modules/unistr/u8-mbtouc: New file.
71615         * modules/unistr/u16-mbtouc: New file.
71616         * modules/unistr/u32-mbtouc: New file.
71617         * lib/unistr/u8-mbtouc.c: New file.
71618         * lib/unistr/u16-mbtouc.c: New file.
71619         * lib/unistr/u32-mbtouc.c: New file.
71620
71621         * modules/unistr/u8-mbtouc-safe: New file.
71622         * modules/unistr/u16-mbtouc-safe: New file.
71623         * modules/unistr/u32-mbtouc-safe: New file.
71624         * lib/unistr/u8-mbtouc-safe.c: New file.
71625         * lib/unistr/u16-mbtouc-safe.c: New file.
71626         * lib/unistr/u32-mbtouc-safe.c: New file.
71627
71628         * modules/unistr/u8-move: New file.
71629         * modules/unistr/u16-move: New file.
71630         * modules/unistr/u32-move: New file.
71631         * lib/unistr/u8-move.c: New file.
71632         * lib/unistr/u16-move.c: New file.
71633         * lib/unistr/u32-move.c: New file.
71634         * lib/unistr/u-move.h: New file.
71635
71636         * modules/unistr/u8-next: New file.
71637         * modules/unistr/u16-next: New file.
71638         * modules/unistr/u32-next: New file.
71639         * lib/unistr/u8-next.c: New file.
71640         * lib/unistr/u16-next.c: New file.
71641         * lib/unistr/u32-next.c: New file.
71642
71643         * modules/unistr/u8-prev: New file.
71644         * modules/unistr/u16-prev: New file.
71645         * modules/unistr/u32-prev: New file.
71646         * lib/unistr/u8-prev.c: New file.
71647         * lib/unistr/u16-prev.c: New file.
71648         * lib/unistr/u32-prev.c: New file.
71649
71650         * modules/unistr/u8-set: New file.
71651         * modules/unistr/u16-set: New file.
71652         * modules/unistr/u32-set: New file.
71653         * lib/unistr/u8-set.c: New file.
71654         * lib/unistr/u16-set.c: New file.
71655         * lib/unistr/u32-set.c: New file.
71656         * lib/unistr/u-set.h: New file.
71657
71658         * modules/unistr/u8-startswith: New file.
71659         * modules/unistr/u16-startswith: New file.
71660         * modules/unistr/u32-startswith: New file.
71661         * lib/unistr/u8-startswith.c: New file.
71662         * lib/unistr/u16-startswith.c: New file.
71663         * lib/unistr/u32-startswith.c: New file.
71664         * lib/unistr/u-startswith.h: New file.
71665
71666         * modules/unistr/u8-stpcpy: New file.
71667         * modules/unistr/u16-stpcpy: New file.
71668         * modules/unistr/u32-stpcpy: New file.
71669         * lib/unistr/u8-stpcpy.c: New file.
71670         * lib/unistr/u16-stpcpy.c: New file.
71671         * lib/unistr/u32-stpcpy.c: New file.
71672         * lib/unistr/u-stpcpy.h: New file.
71673
71674         * modules/unistr/u8-stpncpy: New file.
71675         * modules/unistr/u16-stpncpy: New file.
71676         * modules/unistr/u32-stpncpy: New file.
71677         * lib/unistr/u8-stpncpy.c: New file.
71678         * lib/unistr/u16-stpncpy.c: New file.
71679         * lib/unistr/u32-stpncpy.c: New file.
71680         * lib/unistr/u-stpncpy.h: New file.
71681
71682         * modules/unistr/u8-strcat: New file.
71683         * modules/unistr/u16-strcat: New file.
71684         * modules/unistr/u32-strcat: New file.
71685         * lib/unistr/u8-strcat.c: New file.
71686         * lib/unistr/u16-strcat.c: New file.
71687         * lib/unistr/u32-strcat.c: New file.
71688         * lib/unistr/u-strcat.h: New file.
71689
71690         * modules/unistr/u8-strchr: New file.
71691         * modules/unistr/u16-strchr: New file.
71692         * modules/unistr/u32-strchr: New file.
71693         * lib/unistr/u8-strchr.c: New file.
71694         * lib/unistr/u16-strchr.c: New file.
71695         * lib/unistr/u32-strchr.c: New file.
71696
71697         * modules/unistr/u8-strcmp: New file.
71698         * modules/unistr/u16-strcmp: New file.
71699         * modules/unistr/u32-strcmp: New file.
71700         * lib/unistr/u8-strcmp.c: New file.
71701         * lib/unistr/u16-strcmp.c: New file.
71702         * lib/unistr/u32-strcmp.c: New file.
71703
71704         * modules/unistr/u8-strcpy: New file.
71705         * modules/unistr/u16-strcpy: New file.
71706         * modules/unistr/u32-strcpy: New file.
71707         * lib/unistr/u8-strcpy.c: New file.
71708         * lib/unistr/u16-strcpy.c: New file.
71709         * lib/unistr/u32-strcpy.c: New file.
71710         * lib/unistr/u-strcpy.h: New file.
71711
71712         * modules/unistr/u8-strcspn: New file.
71713         * modules/unistr/u16-strcspn: New file.
71714         * modules/unistr/u32-strcspn: New file.
71715         * lib/unistr/u8-strcspn.c: New file.
71716         * lib/unistr/u16-strcspn.c: New file.
71717         * lib/unistr/u32-strcspn.c: New file.
71718         * lib/unistr/u-strcspn.h: New file.
71719
71720         * modules/unistr/u8-strdup: New file.
71721         * modules/unistr/u16-strdup: New file.
71722         * modules/unistr/u32-strdup: New file.
71723         * lib/unistr/u8-strdup.c: New file.
71724         * lib/unistr/u16-strdup.c: New file.
71725         * lib/unistr/u32-strdup.c: New file.
71726         * lib/unistr/u-strdup.h: New file.
71727
71728         * modules/unistr/u8-strlen: New file.
71729         * modules/unistr/u16-strlen: New file.
71730         * modules/unistr/u32-strlen: New file.
71731         * lib/unistr/u8-strlen.c: New file.
71732         * lib/unistr/u16-strlen.c: New file.
71733         * lib/unistr/u32-strlen.c: New file.
71734         * lib/unistr/u-strlen.h: New file.
71735
71736         * modules/unistr/u8-strmblen: New file.
71737         * modules/unistr/u16-strmblen: New file.
71738         * modules/unistr/u32-strmblen: New file.
71739         * lib/unistr/u8-strmblen.c: New file.
71740         * lib/unistr/u16-strmblen.c: New file.
71741         * lib/unistr/u32-strmblen.c: New file.
71742
71743         * modules/unistr/u8-strmbtouc: New file.
71744         * modules/unistr/u16-strmbtouc: New file.
71745         * modules/unistr/u32-strmbtouc: New file.
71746         * lib/unistr/u8-strmbtouc.c: New file.
71747         * lib/unistr/u16-strmbtouc.c: New file.
71748         * lib/unistr/u32-strmbtouc.c: New file.
71749
71750         * modules/unistr/u8-strncat: New file.
71751         * modules/unistr/u16-strncat: New file.
71752         * modules/unistr/u32-strncat: New file.
71753         * lib/unistr/u8-strncat.c: New file.
71754         * lib/unistr/u16-strncat.c: New file.
71755         * lib/unistr/u32-strncat.c: New file.
71756         * lib/unistr/u-strncat.h: New file.
71757
71758         * modules/unistr/u8-strncmp: New file.
71759         * modules/unistr/u16-strncmp: New file.
71760         * modules/unistr/u32-strncmp: New file.
71761         * lib/unistr/u8-strncmp.c: New file.
71762         * lib/unistr/u16-strncmp.c: New file.
71763         * lib/unistr/u32-strncmp.c: New file.
71764
71765         * modules/unistr/u8-strncpy: New file.
71766         * modules/unistr/u16-strncpy: New file.
71767         * modules/unistr/u32-strncpy: New file.
71768         * lib/unistr/u8-strncpy.c: New file.
71769         * lib/unistr/u16-strncpy.c: New file.
71770         * lib/unistr/u32-strncpy.c: New file.
71771         * lib/unistr/u-strncpy.h: New file.
71772
71773         * modules/unistr/u8-strnlen: New file.
71774         * modules/unistr/u16-strnlen: New file.
71775         * modules/unistr/u32-strnlen: New file.
71776         * lib/unistr/u8-strnlen.c: New file.
71777         * lib/unistr/u16-strnlen.c: New file.
71778         * lib/unistr/u32-strnlen.c: New file.
71779         * lib/unistr/u-strnlen.h: New file.
71780
71781         * modules/unistr/u8-strpbrk: New file.
71782         * modules/unistr/u16-strpbrk: New file.
71783         * modules/unistr/u32-strpbrk: New file.
71784         * lib/unistr/u8-strpbrk.c: New file.
71785         * lib/unistr/u16-strpbrk.c: New file.
71786         * lib/unistr/u32-strpbrk.c: New file.
71787         * lib/unistr/u-strpbrk.h: New file.
71788
71789         * modules/unistr/u8-strrchr: New file.
71790         * modules/unistr/u16-strrchr: New file.
71791         * modules/unistr/u32-strrchr: New file.
71792         * lib/unistr/u8-strrchr.c: New file.
71793         * lib/unistr/u16-strrchr.c: New file.
71794         * lib/unistr/u32-strrchr.c: New file.
71795
71796         * modules/unistr/u8-strspn: New file.
71797         * modules/unistr/u16-strspn: New file.
71798         * modules/unistr/u32-strspn: New file.
71799         * lib/unistr/u8-strspn.c: New file.
71800         * lib/unistr/u16-strspn.c: New file.
71801         * lib/unistr/u32-strspn.c: New file.
71802         * lib/unistr/u-strspn.h: New file.
71803
71804         * modules/unistr/u8-strstr: New file.
71805         * modules/unistr/u16-strstr: New file.
71806         * modules/unistr/u32-strstr: New file.
71807         * lib/unistr/u8-strstr.c: New file.
71808         * lib/unistr/u16-strstr.c: New file.
71809         * lib/unistr/u32-strstr.c: New file.
71810         * lib/unistr/u-strstr.h: New file.
71811
71812         * modules/unistr/u8-strtok: New file.
71813         * modules/unistr/u16-strtok: New file.
71814         * modules/unistr/u32-strtok: New file.
71815         * lib/unistr/u8-strtok.c: New file.
71816         * lib/unistr/u16-strtok.c: New file.
71817         * lib/unistr/u32-strtok.c: New file.
71818         * lib/unistr/u-strtok.h: New file.
71819
71820         * modules/unistr/u8-uctomb: New file.
71821         * modules/unistr/u16-uctomb: New file.
71822         * modules/unistr/u32-uctomb: New file.
71823         * lib/unistr/u8-uctomb.c: New file.
71824         * lib/unistr/u16-uctomb.c: New file.
71825         * lib/unistr/u32-uctomb.c: New file.
71826
71827         * MODULES.html.sh (Unicode string functions): Add the new modules.
71828
71829 2007-01-08  Bruno Haible  <bruno@clisp.org>
71830
71831         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71832         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71833         subdirectories.
71834
71835 2007-01-08  Karl Berry  <karl@gnu.org>
71836
71837         * doc/error.texi: mention that main() fns must set program_name
71838         when progname is used.
71839
71840 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71841
71842         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71843         WCTYPE_H is empty, for the benefit of builds from non-distclean
71844         directories.  Problem reported by Eric Blake in
71845         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71846
71847 2007-01-08  Bruno Haible  <bruno@clisp.org>
71848
71849         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71850         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71851         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71852         PROVIDE_CANONICALIZE_FILENAME_MODE.
71853         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71854
71855 2007-01-08  Bruno Haible  <bruno@clisp.org>
71856
71857         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71858         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71859         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71860         * lib/fts.c: Likewise.
71861         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71862
71863 2006-12-25  Bruno Haible  <bruno@clisp.org>
71864
71865         * modules/utf8-ucs4-safe: New file.
71866         * lib/utf8-ucs4-safe.h: New file.
71867         * lib/unistr/utf8-ucs4-safe.c: New file.
71868
71869         * modules/utf16-ucs4-safe: New file.
71870         * lib/utf16-ucs4-safe.h: New file.
71871         * lib/unistr/utf16-ucs4-safe.c: New file.
71872
71873         * MODULES.html.sh (Unicode string functions): Add the new modules.
71874
71875 2007-01-08  Bruno Haible  <bruno@clisp.org>
71876
71877         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71878         (Depends-on): Add unitypes.
71879         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71880         (u8_mbtouc_aux): Move out to separate file.
71881         (u8_mbtouc): Use ucs4_t, uint8_t types.
71882         * lib/unistr/utf8-ucs4.c: New file.
71883
71884         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71885         (Depends-on): Add unitypes.
71886         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71887         (u16_mbtouc_aux): Move out to separate file.
71888         (u16_mbtouc): Use ucs4_t, uint16_t types.
71889         * lib/unistr/utf16-ucs4.c: New file.
71890
71891         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71892         (Depends-on): Add unitypes.
71893         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71894         (u8_uctomb_aux): Move out to separate file.
71895         (u8_uctomb): Use ucs4_t, uint8_t types.
71896         * lib/unistr/ucs4-utf8.c: New file.
71897
71898         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71899         (Depends-on): Add unitypes.
71900         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71901         (u16_uctomb_aux): Move out to separate file.
71902         (u16_uctomb): Use ucs4_t, uint16_t types.
71903         * lib/unistr/ucs4-utf16.c: New file.
71904
71905 2006-12-25  Bruno Haible  <bruno@clisp.org>
71906
71907         * modules/unitypes: New file.
71908         * lib/unitypes.h: New file.
71909         * MODULES.html.sh (func_all_modules): New section "Unicode string
71910         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71911         this section. Add unitypes.
71912
71913 2007-01-08  Bruno Haible  <bruno@clisp.org>
71914
71915         Avoid variable names that conflict with those from libtool.
71916         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71917         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71918         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71919         library_names_spec to acl_library_names_spec, hardcode_* to
71920         acl_hardcode_*.
71921         Reported by Ralf Wildenhues.
71922
71923 2007-01-08  Bruno Haible  <bruno@clisp.org>
71924
71925         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71926         definition.
71927         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71928         definition.
71929         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71930         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71931         definition.
71932         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71933         definition.
71934         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71935         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71936         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71937         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71938         definition.
71939         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71940         definition.
71941         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71942         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71943         GC_USE_<algorithm>.
71944         * lib/gc-libgcrypt.c: Likewise.
71945         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71946         * modules/gc-arctwo (configure.ac): Likewise.
71947         * modules/gc-des (configure.ac): Likewise.
71948         * modules/gc-hmac-md5 (configure.ac): Likewise.
71949         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71950         * modules/gc-md2 (configure.ac): Likewise.
71951         * modules/gc-md4 (configure.ac): Likewise.
71952         * modules/gc-md5 (configure.ac): Likewise.
71953         * modules/gc-random (configure.ac): Likewise.
71954         * modules/gc-rijndael (configure.ac): Likewise.
71955         * modules/gc-sha1 (configure.ac): Likewise.
71956
71957 2007-01-08  Bruno Haible  <bruno@clisp.org>
71958
71959         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71960         macro definition.
71961         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71962         definition.
71963         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71964         definition.
71965         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71966         * modules/fcntl-safer (configure.ac): Likewise.
71967         * modules/fopen-safer (configure.ac): Likewise.
71968         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71969         GNULIB_FWRITEERROR macro definition.
71970
71971 2007-01-08  Bruno Haible  <bruno@clisp.org>
71972
71973         * m4/gnulib-common.m4: New file.
71974         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71975         (func_get_filelist): Add m4/gnulib-common.m4.
71976
71977 2007-01-08  Bruno Haible  <bruno@clisp.org>
71978
71979         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71980         command.
71981
71982 2007-01-08  Jim Meyering  <jim@meyering.net>
71983
71984         Use a more robust test for a "can't happen" condition.
71985         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71986         narrowed the st_size value.  Presuming the "can't happen" condition
71987         is true, that narrowing could conceivably convert an invalid st_size
71988         value into a valid one.  Instead, use a change based on Matthew
71989         Woehlke's original patch.
71990
71991         Slight readability improvement: use an assert-like macro
71992         in place of literal "abort ()" uses.
71993         * lib/fts.c (fts_assert): Define.
71994         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71995         Use this macro instead of a bare 'abort'.
71996
71997 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71998
71999         Don't worry about using IRIX 5.3's wctype.h broken definitions;
72000         simply work around them.
72001         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
72002         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
72003         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
72004         declaring.
72005         Don't bother to define as macros, since the standard doesn't require it.
72006         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
72007         longer worry about IRIX 5.3.
72008         (HAVE_WCTYPE_CTMP_BUG): Remove.
72009
72010 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72011
72012         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
72013         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
72014         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72015         Problems reported by Georg Schwarz for IRIX 5.3.
72016
72017         * gnulib-tool (autoconf_minversion): Take the maximum version number
72018         found, not the minimum.  Problem reported by James Youngman.
72019
72020 2007-01-03  Karl Berry  <karl@gnu.org>
72021
72022         * doc/error.texi: new file, explaining interaction with progname.
72023         * doc/gnulib.texi: include it.  Update copyright.
72024
72025 2007-01-03  Simon Josefsson  <simon@josefsson.org>
72026
72027         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
72028         AC_CANONICAL_HOST, to improve autobuild outputs.
72029
72030 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
72031             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72032
72033         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
72034         sockets, server sockets, and other file descriptors.  Count errors
72035         to compute the return value.  Reorder the code a bit to be easier
72036         to follow.  Don't set event bits that were not requested (except
72037         POLLERR and POLLHUP).
72038
72039 2007-01-01  Bruno Haible  <bruno@clisp.org>
72040
72041         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72042
72043 2007-01-03  Jim Meyering  <jim@meyering.net>
72044
72045         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72046
72047 2007-01-02  Bruno Haible  <bruno@clisp.org>
72048
72049         * modules/settime (Include): Require timespec.h.
72050         * modules/nanosleep (Include): Likewise.
72051
72052 2007-01-01  Bruno Haible  <bruno@clisp.org>
72053
72054         * gnulib-tool (func_emit_copyright_notice): Bump year.
72055         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72056
72057 2007-01-01  Bruno Haible  <bruno@clisp.org>
72058
72059         Improve support for OpenBSD.
72060         * build-aux/config.rpath (libname_spec): Export.
72061         (library_names_spec): New variable. Export.
72062         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72063         library_names_spec from the config.rpath output. Locate shared library
72064         through the name pattern in library_names_spec.
72065
72066 2007-01-01  Eric Blake  <ebb9@byu.net>
72067
72068         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72069
72070 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72071
72072         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72073         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72074         assume the C locale, and avoid an "eval" that could cause trouble.
72075         Problem with SORT reported by Bob Proulx.
72076
72077         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72078         Define.  Trivial patch from Henning Nielsen Lund, originally
72079         sent to bug-grep@gnu.org today.
72080
72081 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72082
72083         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72084         struct stat.  Problem reported by Henning Nielsen Lund.
72085         * lib/acl.c: Include acl.h first, to check interface.  Don't
72086         bother to include sys/types.h and sys/stat.h again.
72087
72088 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72089
72090         Import the following change from libc; problem reported by
72091         Sven Verdoolaege.
72092
72093         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72094
72095         [BZ #1373]
72096         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72097
72098 2006-12-28  Jim Meyering  <jim@meyering.net>
72099
72100         * build-aux/announce-gen: Do not assume that the package
72101         builds any of tar.gz, tar.bz2, and .xdelta files.
72102         Suggestion from Simon Josefsson.
72103
72104 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72105
72106         * modules/announce-gen: New file.
72107
72108 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72109
72110         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72111         handles its gotchas now.
72112         * lib/mbswidth.c: Likewise.
72113         * lib/wcwidth.h: Likewise.
72114         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72115         and iswcntrl; the wctype module does this stuff now.
72116         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72117         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72118         * modules/mbchar (Depends-on): Add wctype.
72119         * modules/mbswidth (Depends-on): Likewise.
72120         * modules/wcwidth (Depends-on): Likewise.
72121
72122 2006-12-27  Eric Blake  <ebb9@byu.net>
72123
72124         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72125         module uses more than what <wctype.h> is required to provide.
72126
72127 2006-12-26  Eric Blake  <ebb9@byu.net>
72128
72129         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72130
72131 2006-12-26  Eric Blake  <ebb9@byu.net>
72132
72133         * modules/absolute-header: New module.
72134         * modules/fcntl (Depends-on): Depend on it.
72135         * modules/inttypes (Depends-on): Likewise.
72136         * modules/stdint (Depends-on): Likewise.
72137         * modules/sys_stat (Depends-on): Likewise.
72138         * modules/wctype (Depends-on): Likewise.
72139         * MODULES.html.sh (Support for building libraries and
72140         executables): Document it.
72141
72142 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72143
72144         * gnulib-tool (SED): Remove, undoing previous change.
72145         The problem was that it broke coreutils on Solaris, because
72146         "sed --posix" leaked into a makefile.
72147         (sed): New alias, if 'alias' and GNU sed.
72148
72149 2006-12-24  Jim Meyering  <jim@meyering.net>
72150
72151         Work around an fchownat bug in glibc-2.4:
72152         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72153         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72154         in spite of the -P option.
72155         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72156         New macros.
72157         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72158         * modules/openat (Files): Add lib/fchownat.c.
72159         * lib/openat.c (fchownat): Don't define here.  Move to...
72160         * lib/fchownat.c: ...this new file.
72161
72162 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72163
72164         Fix bug reported by Bruno Haible in
72165         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72166         where quotearg.c didn't compile on Mac OS X 10.2 because it
72167         lacks <wchar.h> and wint_t.
72168         * lib/wctype_.h (__wctype_wint_t): New type.
72169         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72170         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72171         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72172         Arg is now of type __wctype_wint_t, not wint_t.
72173         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72174         substitute HAVE_WINT_T.
72175         * modules/wctype (Files): Add m4/wint_t.m4.
72176         (wctype.h): Substitute HAVE_WINT_T.
72177
72178 2006-12-23  Bruno Haible  <bruno@clisp.org>
72179
72180         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72181
72182 2006-12-23  Bruno Haible  <bruno@clisp.org>
72183
72184         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72185         S_ISLNK.
72186         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72187         mingw.
72188
72189 2006-12-22  Bruno Haible  <bruno@clisp.org>
72190
72191         * lib/copy-file.c: Include acl.h.
72192         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72193         Close the file descriptors only after being done with copy_acl.
72194         * modules/copy-file (Depends-on): Add acl.
72195
72196 2006-12-22  Bruno Haible  <bruno@clisp.org>
72197
72198         * gnulib-tool (SED): New variable.
72199         Use $SED instead of sed everywhere.
72200
72201 2006-12-22  Bruno Haible  <bruno@clisp.org>
72202
72203         * modules/no-c++: New file.
72204         * m4/no-c++.m4: New file.
72205         * MODULES.html.sh (Support for building libraries and executables):
72206         Add no-c++.
72207
72208 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72209
72210         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72211         Include <limits.h>, and use its INT_MAX to rewrite the
72212         j loop so that it does not overflow 'int'.  Problem reported by
72213         Ralf Wildenhues in
72214         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72215         Play it safe by shifting left by 1 rather than multiplying by 2,
72216         as GCC is less likely to optimize this away when the value
72217         is signed (when it assumes overflow leads to undefined behavior).
72218         Also, don't assume time_t uses two's complement.
72219
72220 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72221
72222         * MODULES.html.sh: New module wctype.
72223         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72224         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72225         <wctype.h>, since the new wctype module should fix this.
72226         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72227         the wctype module should arrange for it.
72228         * lib/regex_internal.h: Likewise.
72229         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72230         since the wctype module should handle this now.
72231         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72232         * modules/fnmatch (Depends-on): Add wctype.
72233         * modules/quotearg (Depends-on): Likewise.
72234         * modules/regex (Depends-on): Likewise.
72235
72236 2006-12-19  Bruno Haible  <bruno@clisp.org>
72237
72238         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72239         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72240
72241 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72242
72243         * modules/savewd (Depends-on): Fix dependency on fcntl.
72244
72245 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72246
72247         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72248         conforms to C99, rather than relying on the user's environment
72249         setting of STDINT_H.
72250
72251 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72252         and Eric Blake  <ebb9@byu.net>
72253
72254         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72255         This is more consistent with the other defines here.
72256         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72257         Port to z/OS.  Problem reported by Paul Gilmartin.
72258         Change local vars to use gl_ prefix rather than ac_.
72259         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72260         with other defines.
72261         * modules/double-slash-root: New module.
72262         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72263         (Depends-on): Add double-slash-root.
72264         * MODULES.html.sh (File system functions): Mention new module.
72265
72266 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72267
72268         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72269         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72270         This is for the benefit of gzip, which doesn't do i18n.
72271
72272 2006-12-12  Jim Meyering  <jim@meyering.net>
72273
72274         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72275         Reported by Andreas Schwab <schwab@suse.de>.
72276
72277 2006-12-12  Bruno Haible  <bruno@clisp.org>
72278
72279         Merge these changes.
72280         2006-09-05  Bruno Haible  <bruno@clisp.org>
72281         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72282         iconv_alloc succeeded.
72283         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72284         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72285         test for " && dest " at the end - dest is always != NULL there. Call
72286         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72287         with 2xNULL arguments, also to flush the state storage. Handle the
72288         IRIX iconv behaviour. Realloc the final result, to throw away unused
72289         memory.
72290
72291 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
72292
72293         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
72294         and fchmodat unconditionally, since glibc 2.4 has them.
72295         Problem reported by Arkadiusz Miskiewicz.
72296
72297 2006-12-10  Bruno Haible  <bruno@clisp.org>
72298
72299         * gnulib-tool (func_import): Show the include files only for those
72300         modules that are copied and specified.
72301         Reported by Karl Berry.
72302
72303 2006-12-08  Jim Meyering  <jim@meyering.net>
72304
72305         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72306         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72307
72308         * build-aux/announce-gen: Add two new options, both optional:
72309         --bootstrap-tools=TOOL_LIST
72310               a comma-separated list of tools, e.g.,
72311               autoconf,automake,bison,gnulib
72312         --gnulib-snapshot-date=DATE
72313               if gnulib is in the bootstrap tool list,
72314               then report this as the snapshot date.
72315               If not specified, use the current date/time.
72316               If you specify a date here, be sure it's UTC.
72317
72318 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72319
72320         * tests/test-argp-2.sh: Fix test to match actual output.
72321         (func_compare): Fix sed script to be portable.
72322
72323 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72324
72325         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72326         workaround for this case.  It is not autoconfigured now; offhand
72327         it's hard to see how to autoconfigure it.
72328
72329 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72330
72331         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72332         a directory that is about to be chowned.  Such a directory's
72333         initial file permissions should permit the owner only and this
72334         should not be changed until after the chown, since the group and
72335         other bits would be incorrect if they granted permission before
72336         the chown.
72337
72338         Fix porting problem for iswctype reported by Georg Schwarz in:
72339         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72340         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72341         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72342         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72343         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72344
72345 2006-12-03  Jim Meyering  <jim@meyering.net>
72346
72347         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72348         p->fts_statp may not yet be defined.
72349         (fts_read): Instead, set it in the caller, once p->fts_statp is
72350         sure to be defined, and corresponds to a top-level directory.
72351         This bug made du -x fail.  Here's the coreutils test case:
72352         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72353         Reported by Mike Frysinger.
72354
72355 2006-12-01  Jim Meyering  <jim@meyering.net>
72356
72357         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72358         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72359         Reported by Simon Josefsson.
72360
72361 2006-11-30  Jim Meyering  <jim@meyering.net>
72362
72363         * m4/warning.m4: Use the all-permissive copyright notice
72364         recommended by RMS (rather than LGPL).
72365         * m4/vararrays.m4: Likewise.
72366         * m4/flexmember.m4: Likewise.
72367
72368 2006-11-29  Bruno Haible  <bruno@clisp.org>
72369
72370         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72371         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
72372         using +=.
72373         Reported by Simon Josefsson <simon@josefsson.org>.
72374
72375 2006-11-28  James Youngman <jay@gnu.org>
72376
72377         * README: Advise users that they might find the bug-gnulib@gnu.org
72378         and autotools-announce@gnu.org mailing lists useful.
72379
72380 2006-11-28  Bruno Haible  <bruno@clisp.org>
72381
72382         * m4/ptrdiff_max.m4: Remove file.
72383
72384 2006-11-21  Bruno Haible  <bruno@clisp.org>
72385
72386         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
72387         _AC_COMPUTE_INT.
72388         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72389         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
72390         _AC_COMPUTE_INT.
72391         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72392         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
72393         _AC_COMPUTE_INT.
72394         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72395
72396 2006-11-28  Jim Meyering  <jim@meyering.net>
72397
72398         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
72399         warning from "gcc -Wshadow" about shadowing the builtin.
72400
72401 2006-11-27  Bruno Haible  <bruno@clisp.org>
72402
72403         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
72404         _AC_COMPUTE_INT.
72405         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72406
72407 2006-11-27  Bruno Haible  <bruno@clisp.org>
72408             Paul Eggert  <eggert@cs.ucla.edu>
72409
72410         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
72411
72412 2006-11-26  Bruno Haible  <bruno@clisp.org>
72413
72414         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72415         noinst_LTLIBRARIES.
72416
72417 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72418             Bruno Haible  <bruno@clisp.org>
72419
72420         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72421         if compiling with "gcc -ansi".
72422
72423 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72424
72425         Fix some incompatibilities with gcc -ansi -pedantic.
72426         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72427         if compiling pedantically with GCC, unless it's C99 or later.
72428         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72429         it mishandles gcc -ansi -pedantic as well.
72430         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72431         if gcc -pedantic.
72432         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72433         initializers for struct if -pedantic, unless it's C99 or later.
72434
72435 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72436
72437         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72438         Don't close an fd more than once. Identical atimes indicate
72439         success, not failure.
72440
72441 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
72442
72443         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
72444
72445 2006-11-23  Jim Meyering  <jim@meyering.net>
72446
72447         * build-aux/announce-gen: New file.  From coreutils.
72448
72449 2006-11-22  Jim Meyering  <jim@meyering.net>
72450
72451         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
72452         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
72453         (fts_read): Use a temporary to narrow the overused st_size member
72454         before using it in a switch statement.  Reported by Matthew Woehlke.
72455
72456         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
72457         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72458
72459 2006-11-20  Bruno Haible  <bruno@clisp.org>
72460
72461         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72462         changequote instead of pairs of brackets.
72463         Reported by Andreas Schwab <schwab@suse.de>.
72464
72465 2006-11-21  Jim Meyering  <jim@meyering.net>
72466
72467         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72468         so as to remain compatible with older compilers.
72469         Patch from Michael Deutschmann.
72470
72471 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72472
72473         * MODULES.html.sh (File system functions): Add openat.
72474
72475         * lib/openat.h (rpl_fstatat): New macro, if
72476         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
72477         (fstatat): Define to rpl_fstatat under the same conditions,
72478         unless COMPILING_FSTATAT.
72479         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
72480         seems to have the bug.
72481         * lib/fstatat.c: New file.
72482         * modules/openat (Files): Add it.
72483
72484 2006-11-20  Bruno Haible  <bruno@clisp.org>
72485
72486         * Makefile: New file.
72487
72488 2006-11-20  Jim Meyering  <jim@meyering.net>
72489
72490         The beginnings of syntax-related checks for gnulib.
72491         * lib/Makefile: New file.
72492         * lib/t-idcache: New script.  Ensure that the two halves of
72493         idcache.c stay in sync.
72494
72495         * lib/idcache.c: Adjust comments in user- and group- portions to
72496         be more accurate, and to be consistent with one another.
72497
72498 2006-11-20  Jim Meyering  <jim@meyering.net>
72499
72500         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
72501         continue using the flexible array member (thus, this module performs
72502         half as many malloc calls), with the addition that...
72503         (getgroup, getuser): Consistently record a non-match via an empty
72504         "name" string, and map an empty string match to a NULL return value.
72505         * modules/idcache (Depends-on): Re-add flexmember.
72506
72507         * lib/idcache.c (getuser): Remove all uses of the register keyword.
72508         (getuidbyname, getgroup, getgidbyname): Likewise.
72509
72510         Use cleaner syntax: NULL rather than 0.
72511         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
72512
72513 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72514
72515         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
72516         It mishandled the case where the group was missing.
72517         Problem reported by Greg Schafer.
72518         * modules/idcache: Likewise.
72519
72520 2006-11-18  Jim Meyering  <jim@meyering.net>
72521
72522         * check-module (%exempt_header): Add exception for some
72523         conditionally-included headers.
72524
72525         * modules/i-ring (Depends-on): Add verify.
72526         (License): Change to LGPL.
72527
72528 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72529
72530         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72531         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72532         and inttostr.h.  Use snprintf rather than uinttostr, so that
72533         LGPLed code doesn't depend on GPLed.
72534
72535 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72536
72537         * modules/inline (License): Change from GPL to LGPL.
72538
72539 2006-11-17  Jim Meyering  <jim@meyering.net>
72540
72541         * modules/d-type (License): Switch to LGPL.
72542
72543 2006-11-15  Bruno Haible  <bruno@clisp.org>
72544
72545         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72546
72547 2006-11-15  Eric Blake  <ebb9@byu.net>
72548
72549         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72550         the module dependency.
72551
72552 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72553             Bruno Haible  <bruno@clisp.org>
72554
72555         * gnulib-tool (func_create_testdir): Add license consistency check.
72556
72557 2006-11-15  Eric Blake  <ebb9@byu.net>
72558
72559         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72560         random "(cached)" in configure output.
72561
72562 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72563
72564         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72565         test for conforming inttypes.h is both announced and cached.
72566
72567         * MODULES.html.sh (seen_modules, seen_files): New variables.
72568         (func_module): Rewrite to use a few less gnulib-tool and sed
72569         invocations.  Avoid a couple of quadratic algorithms for ...
72570         (missed_modules, missed_files): ... these, with ...
72571         (func_append, func_tmpdir): ... these new functions, from
72572         gnulib-tool.  Analogously, install traps for cleanup.
72573
72574         * tests/test-gc.c (main): Remove unused variables.
72575         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72576
72577 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72578
72579         * modules/inttostr (License): Change to LGPL.
72580
72581 2006-11-14  Eric Blake  <ebb9@byu.net>
72582
72583         * modules/tempname (License): Change to LGPL.
72584
72585 2006-11-14  Eric Blake  <ebb9@byu.net>
72586
72587         * doc/functions.texi (Function Portability): *printf functions on
72588         Cygwin now understand all POSIX size specifiers.
72589
72590 2006-11-14  Bruno Haible  <bruno@clisp.org>
72591
72592         * modules/c-ctype (License): Change to LGPL.
72593
72594 2006-11-12  Bruno Haible  <bruno@clisp.org>
72595
72596         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72597         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72598         for GNOME libraries, for which the include files are installed in
72599         subdirectories of $prefix/include.
72600
72601 2006-11-12  Bruno Haible  <bruno@clisp.org>
72602
72603         * m4/lib-link.m4: Require at least autoconf-2.54.
72604         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72605         name to underscores for the --with option.
72606
72607 2006-11-13  Bruno Haible  <bruno@clisp.org>
72608
72609         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72610         the tests directory.
72611         Reported by Ralf Wildenhues.
72612
72613 2006-11-13  Bruno Haible  <bruno@clisp.org>
72614
72615         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72616         (func_emit_initmacro_end): Undo the override here.
72617         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72618         Works around the famous automake error in coreutils.
72619
72620 2006-11-13  Eric Blake  <ebb9@byu.net>
72621
72622         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72623         element, not its node.
72624
72625 2006-11-12  Bruno Haible  <bruno@clisp.org>
72626
72627         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72628         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72629
72630 2006-11-12  Bruno Haible  <bruno@clisp.org>
72631
72632         * gnulib-tool: New option --local-symlink.
72633         (func_usage): Document it.
72634         (lsymbolic): New variable.
72635         (func_import, func_create_testdir): If --symlink was not specified,
72636         test whether --local-symlink was specified and the file comes from
72637         the local_gnulib_dir.
72638
72639 2006-11-12  Bruno Haible  <bruno@clisp.org>
72640
72641         * gnulib-tool (func_ln): New function.
72642         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72643
72644 2006-11-12  Bruno Haible  <bruno@clisp.org>
72645
72646         Finish support for source files in subdirectories.
72647         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72648         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72649         AUTOMAKE_OPTIONS.
72650         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72651
72652 2006-11-12  Bruno Haible  <bruno@clisp.org>
72653
72654         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72655         EXTRA_lib_SOURCES augmentation.
72656         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72657
72658 2006-11-12  Jim Meyering  <jim@meyering.net>
72659
72660         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72661         file descriptors.  This also averts a failure on systems with
72662         native openat support when a traversed directory lacks "x" access.
72663         * lib/fts_.h: Include "i-ring.h"
72664         (struct FTS) [fts_fd_ring]: New member.
72665         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72666         (FCHDIR): Add parentheses.
72667         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72668         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72669         When descending, rather than simply closing the previous
72670         fts_cwd_fd value, push that file descriptor onto the ring.
72671         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72672         (fts_open): Initialize the new fd_ring member.
72673         (fts_close): Clear the ring.
72674         (fts_safe_changedir): When possible, use our new fd_ring to skip
72675         the diropen and fstat and dev/ino comparison that would normally
72676         accompany a virtual `chdir ("..")'.
72677
72678         * modules/fts (Depends-on): Add i-ring.
72679         * modules/i-ring: New module.
72680         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72681         * m4/i-ring.m4: New file.
72682
72683 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72684
72685         * gnulib-tool (func_create_testdir): Fix replacement of
72686         `build-aux' in configure.ac.  Run autotools in gltests
72687         subdirectory.
72688         (func_create_testdir, func_create_megatestdir, test): There is
72689         no need for '--force' in most autotool invocations in a new
72690         tree.  Actually fail the whole test if any of the tools, or the
72691         configure or make stages fail.
72692
72693         Sync from Automake.
72694         * build-aux/gnupload: Revert last change.  Add pointer to upload
72695         instructions of the GNU Maintenance Instructions.
72696         Suggestion by Karl Berry.
72697
72698 2006-11-10  Jim Meyering  <jim@meyering.net>
72699
72700         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72701
72702 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72703
72704         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72705         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72706         (bind_textdomain_codeset) [! ENABLE_NLS]:
72707         Evaluate all the arguments.  That way, callers get compatible behavior
72708         if the arguments have side effects.  Also, it avoids some GCC
72709         diagnostics in some cases; Joel E. Denny reported problems when Bison
72710         was configured with --enable-gcc-warnigs.
72711
72712 2006-11-10  Jim Meyering  <jim@meyering.net>
72713
72714         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72715         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72716         account.
72717
72718 2006-11-10  Jim Meyering  <jim@meyering.net>
72719
72720         * modules/inline: New file/module.
72721         * modules/xalloc (Files): Remove m4/inline.m4.
72722         (Depends-on): Add inline, instead.
72723         * modules/oset: Likewise.
72724         * modules/list: Likewise.
72725
72726 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72727
72728         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72729         Problem reported by Matthew Woehlke.
72730
72731 2006-11-09  Bruno Haible  <bruno@clisp.org>
72732
72733         * lib/tempname.c (gen_tempname): Remove variant that invokes
72734         __gen_tempname.
72735         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72736         __gen_tempname.
72737
72738 2006-11-08  Bruno Haible  <bruno@clisp.org>
72739
72740         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72741         to 'yes' instead of 'cross-compiling'.
72742
72743 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72744
72745         * lib/quotearg.h (quotearg_free): New decl.
72746         * lib/quotearg.c (quotearg_free): New function.
72747         (slot0, nslots, slotvec0, slotvec):
72748         Now file-scope so that quotearg_free can get at them.
72749
72750 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72751
72752         Sync from Automake.
72753         * build-aux/gnupload: Add missing 'gnu' to example URL.
72754         Report by Karl Berry.
72755
72756 2006-11-08  Bruno Haible  <bruno@clisp.org>
72757
72758         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72759         Suggested by Paul Eggert.
72760
72761 2006-11-08  Jim Meyering  <jim@meyering.net>
72762
72763         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72764         It's already included if !_LIBC.
72765         (fts_safe_changedir): Add a comment.
72766
72767 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72768
72769         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72770         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72771         Matthew Woehlke.
72772
72773         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72774         definitions up, to avoid colliding with change below.
72775         (static_inline) [HAVE_INLINE]: New macro.
72776         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72777         Provide extern decls when !HAVE_INLINE.  Do not define unless
72778         static_inline is defined, either by us or by xmalloc.c.  Use
72779         static_inline rather than static inline.
72780         (XCALLOC): Optimize sizeof(T) = 1 case.
72781         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72782
72783 2006-11-07  Bruno Haible  <bruno@clisp.org>
72784
72785         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72786         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72787         AC_C_INLINE.
72788         * modules/xalloc (Files): Add m4/inline.m4.
72789
72790 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72791
72792         * README: Fix typo.
72793         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72794         (Miscellanous Notes): ...from this.
72795
72796 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72797
72798         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72799         Mention that offsetof should be used instead of sizeof.
72800         From Bruno Haible.
72801
72802 2006-11-07  Bruno Haible  <bruno@clisp.org>
72803
72804         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72805
72806 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72807
72808         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72809         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72810         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72811         (gl_tree_add_before, gl_tree_add_after):
72812         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72813         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72814         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72815         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72816         (gl_linked_add_after, gl_linked_add_at): Likewise.
72817         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72818         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72819         (gl_tree_add_before, gl_tree_add_after): Likewise.
72820         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72821         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72822         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72823
72824 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72825
72826         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72827
72828 2006-11-06  Bruno Haible  <bruno@clisp.org>
72829
72830         * m4/inline.m4: New file.
72831         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72832         * modules/list (Files): Add m4/inline.m4.
72833         * modules/oset (Files): Likewise.
72834
72835 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72836
72837         * lib/idcache.c: Include <stddef.h>, for offsetof.
72838         (struct userid.name): Change from char * to a flexible array member.
72839         All uses changed.
72840         * modules/idcache (Depends-on): Add flexmember.
72841
72842         * MODULES.html.sh (Core language properties): New module flexmember.
72843         * modules/flexmember, m4/flexmember.m4: New files.
72844
72845         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72846         inline functions that are identical with the old xnmalloc_inline,
72847         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72848         that we can avoid some unnecessary integer multiplications and
72849         divisions in the common case where the element size is known at
72850         compile time.
72851         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72852         needed.
72853         (xnboundedmalloc): Remove.
72854         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72855         arguments, for consistency with rest of this header.
72856         (xcharalloc): Rewrite using XNMALLOC.
72857         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72858         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72859         versions have been moved to lib/xalloc.h and renamed to be the
72860         non-*_inline versions.
72861         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72862         and xnrealloc functions, since those functions are now inline and
72863         now call us.
72864         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72865         renaming described above.
72866         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72867         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72868         captures the dependency in AC_C_INLINE.
72869
72870         New module canonicalize-lgpl, proposed by Charles Wilson in
72871         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72872         with a few small changes afterwards.
72873         * MODULES.html.sh (File system functions): New module
72874         canonicalize-lgpl.
72875         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72876         and canonicalize_file_name.
72877         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72878         * modules/canonicalize-lgpl: New files.
72879
72880 2006-11-05  Bruno Haible  <bruno@clisp.org>
72881
72882         * gnulib-tool (func_import, func_create_testdir): Create directories
72883         also for files in subdirectories of lib/.
72884
72885 2006-11-05  Bruno Haible  <bruno@clisp.org>
72886
72887         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72888         ANSI C compliant.
72889
72890 2006-11-03  Bruno Haible  <bruno@clisp.org>
72891
72892         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72893         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72894         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72895         (xnboundedmalloc): New inline function.
72896         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72897         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72898         xmalloc.
72899         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72900         xmalloc.
72901         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72902         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72903         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72904         xmalloc.
72905         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72906         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72907         xmalloc.
72908         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72909         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72910         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72911         xmalloc.
72912         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72913         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72914         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72915         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72916         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72917         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72918         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72919
72920 2006-11-03  Bruno Haible  <bruno@clisp.org>
72921
72922         * lib/c-ctype.h [C++]: Define functions without name mangling.
72923         * lib/fwriteerror.h [C++]: Likewise.
72924         * lib/gcd.h [C++]: Likewise.
72925         * lib/linebreak.h [C++]: Likewise.
72926
72927 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72928
72929         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72930         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72931         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72932         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72933         Check for functions and headers just once.
72934         Check for declaration of canonicalize_file_name.
72935         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72936
72937 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72938
72939         * gnulib-tool (func_import): Fix typo in actioncmd.
72940
72941 2006-11-02  Bruno Haible  <bruno@clisp.org>
72942
72943         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72944         newline sequence in the Makefile.am snippet as a space, like "make"
72945         does.
72946         Reported by Roger Persson <perrog@gmail.com>.
72947
72948 2006-11-01  Bruno Haible  <bruno@clisp.org>
72949
72950         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72951         already declared in <string.h>.
72952         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72953
72954 2006-11-01  Bruno Haible  <bruno@clisp.org>
72955
72956         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72957         * lib/strcase.h: Include <string.h>.
72958         (strcasecmp): Define to rpl_strcasecmp here.
72959
72960 2006-11-01  Bruno Haible  <bruno@clisp.org>
72961
72962         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72963
72964 2006-11-01  Eric Blake  <ebb9@byu.net>
72965
72966         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72967
72968         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72969
72970 2006-10-29  Bruno Haible  <bruno@clisp.org>
72971
72972         Make it compile in C++ mode.
72973         * lib/full-write.c (full_rw): Add a cast.
72974
72975 2006-11-01  Bruno Haible  <bruno@clisp.org>
72976
72977         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72978         be POSIX compliant.
72979         Reported by Roger Persson <perrog@gmail.com>.
72980
72981 2006-11-01  Eric Blake  <ebb9@byu.net>
72982
72983         * lib/getopt_.h: Fix comments.
72984
72985 2006-10-31  Eric Blake  <ebb9@byu.net>
72986
72987         * modules/tmpdir (Depends-on): Add sys_stat.
72988         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72989         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72990         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72991         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72992         tempname.
72993
72994 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72995
72996         Avoid some C++ diagnostics reported by Bruno Haible.
72997         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72998         xmalloc.
72999         (quotearg_alloc): Use xcharalloc rather than xmalloc.
73000         (struct slotvec): Move to top level.
73001         (quotearg_n_options): Rewrite to avoid xmalloc.
73002         * lib/xalloc.h (xcharalloc): New function.
73003         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
73004         [defined __cplusplus]: Add function template that provides result
73005         type propagation.  This part of the change is from Bruno Haible.
73006
73007 2006-10-29  Bruno Haible  <bruno@clisp.org>
73008
73009         Make it compile in C++ mode.
73010         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
73011         * lib/strnlen1.c (strnlen1): Cast memchr result.
73012         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
73013         * lib/clean-temp.c (string_equals, string_hash): Add casts.
73014         (create_temp_dir): Rename local variable 'template'.
73015         (compile_csharp_using_sscli): Add cast.
73016         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
73017         * lib/findprog.c (find_in_path): Likewise.
73018         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
73019         * lib/wait-process.c (register_slave_subprocess): Likewise.
73020
73021 2006-10-22  Bruno Haible  <bruno@clisp.org>
73022
73023         * modules/tsearch: New file.
73024         * lib/tsearch.h: New file.
73025         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
73026         * m4/tsearch.m4: New file.
73027         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
73028
73029 2006-10-29  Eric Blake  <ebb9@byu.net>
73030
73031         * lib/arcfour.c: Assume config.h.
73032         * lib/arctwo.c: Likewise.
73033         * lib/base64.c: Likewise.
73034         * lib/check-version.c: Likewise.
73035         * lib/crc.c: Likewise.
73036         * lib/des.c: Likewise.
73037         * lib/gc-gnulib.c: Likewise.
73038         * lib/gc-libgcrypt.c: Likewise.
73039         * lib/gc-pbkdf2-sha1.c: Likewise.
73040         * lib/getaddrinfo.c: Likewise.
73041         * lib/getdelim.c: Likewise.
73042         * lib/getline.c: Likewise.
73043         * lib/hmac-md5.c: Likewise.
73044         * lib/hmac-sha1.c: Likewise.
73045         * lib/iconvme.c: Likewise.
73046         * lib/md2.c: Likewise.
73047         * lib/md4.c: Likewise.
73048         * lib/memxor.c: Likewise.
73049         * lib/read-file.c: Likewise.
73050         * lib/readline.c: Likewise.
73051         * lib/rijndael-alg-fst.c: Likewise.
73052         * lib/rijndael-api-fst.c: Likewise.
73053         * lib/xgetdomainname.c: Likewise.
73054
73055 2006-10-28  Eric Blake  <ebb9@byu.net>
73056
73057         * lib/xstrndup.c: Assume config.h.
73058
73059 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73060
73061         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73062         stat-macros.h is now for our own macros, whereas stat_h is for
73063         macros in the <sys/stat.h> name space.
73064         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73065         (STAT_MACROS_H): Remove.
73066         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73067         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73068         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73069         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73070         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73071         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73072         Move these macros to ...
73073         * lib/stat_.h: here.  Don't include stat-macros.h.
73074         * lib/canonicalize.c: Don't include stat-macros.h.
73075         * lib/chown.c: Likewise.
73076         * lib/euidaccess.c: Likewise.
73077         * lib/file-type.c: Likewise.
73078         * lib/filemode.c: Likewise.
73079         * lib/glob.c: Likewise.
73080         * lib/isapipe.c: Likewise.
73081         * lib/lchown.c: Likewise.
73082         * lib/lstat.c: Likewise.
73083         * lib/mkdir-p.c: Likewise.
73084         * lib/rmdir.c: Likewise.
73085         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73086         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73087         unless mkdir isn't declared, to speed up 'configure'.
73088         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73089         would define all the S_* symbols.
73090         * modules/canonicalize (Depends-on):
73091         Depend on sys_stat, not stat-macros.
73092         * modules/chown: Likewise.
73093         * modules/euidaccess: Likewise.
73094         * modules/filemode: Likewise.
73095         * modules/file-type: Likewise.
73096         * modules/glob: Likewise.
73097         * modules/isapipe: Likewise.
73098         * modules/lchown: Likewise.
73099         * modules/lstat: Likewise.
73100         * modules/mkancesdirs: Likewise.
73101         * modules/rmdir: Likewise.
73102         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73103         * modules/modechange: Likewise.
73104         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73105         (configure.ac): Remove gl_STAT_MACROS.
73106         * modules/sys_stat (Depends-on): Remove stat-macros.
73107
73108 2006-10-27  Bruno Haible  <bruno@clisp.org>
73109
73110         * m4/signed.m4: Remove file.
73111         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73112         invocation.
73113         * modules/vasnprintf (Files): Remove m4/signed.m4.
73114
73115 2006-10-27  Bruno Haible  <bruno@clisp.org>
73116
73117         Update to GNU gettext 0.16.
73118         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73119         m4/inttypes-h.m4, m4/signed.m4.
73120         * m4/gettext.m4: Update to GNU gettext 0.16.
73121         * m4/intl.m4: New file, from GNU gettext.
73122         * m4/intldir.m4: New file, from GNU gettext.
73123         * config/srclist.txt: Update
73124
73125 2006-10-27  Eric Blake  <ebb9@byu.net>
73126
73127         * MODULES.html.sh: Document tempname.
73128         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73129         dependencies.
73130         (Files): Move lib/tempname.c...
73131         * modules/tempname: ...to this new module.
73132         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73133         (gl_PREREQ_TEMPNAME): Move...
73134         * m4/tempname.m4: ...to this new file.
73135         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73136         * modules/sys_stat (Depends-on): Add stat-macros.
73137         * lib/stat_.h (includes): Pick up stat macros.
73138         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73139         if stat macros are broken.
73140         * lib/tempname.c (includes): No need to include "stat-macros.h".
73141         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73142         (direxists, __path_search) [!_LIBC]: Don't compile these in
73143         gnulib; the tmpdir module covers that.
73144         * lib/tempname.h: New file.
73145
73146 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73147
73148         * COPYING: Explain how gnulib-tool converts licence headers.
73149         Almost all wording by Eric Blake.
73150
73151 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73152
73153         * lib/mbchar.h (is_basic_table): Make read-only.
73154         * lib/mbchar.c (is_basic_table): Likewise.
73155         Reported by John Darrington.
73156
73157 2006-10-25  Bruno Haible  <bruno@clisp.org>
73158
73159         * lib/progname.h (set_program_name): Undefine before defining.
73160
73161 2006-10-25  Bruno Haible  <bruno@clisp.org>
73162
73163         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73164         false for non-gcc C++ compilers.
73165         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73166
73167 2006-10-24  Bruno Haible  <bruno@clisp.org>
73168
73169         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73170         iconv implementations like Irix iconv.
73171
73172 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73173
73174         * modules/vararrays: New file.
73175         * m4/vararrays.m4: New file, taken from diffutils.
73176         * MODULES.html.sh: New module vararrays.
73177
73178 2006-10-24  Karl Berry  <karl@gnu.org>
73179
73180         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73181         Don't call GNU Unix.
73182
73183 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73184
73185         * users.txt: Add Libtool.
73186
73187         Sync from Libtool:
73188
73189         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73190
73191         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73192         to gnulib's policy of including config.h unconditionally.
73193
73194 2006-10-24  Bruno Haible  <bruno@clisp.org>
73195
73196         * modules/wcwidth (Files): Add m4/wint_t.m4.
73197         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73198         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73199
73200 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73201
73202         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73203         to pacify GCC with some -W flags enabled.  Problem reported by
73204         Bruno Haible.
73205
73206 2006-10-24  Jim Meyering  <jim@meyering.net>
73207
73208         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73209         Reported by Karl Berry.
73210
73211 2006-10-23  Bruno Haible  <bruno@clisp.org>
73212
73213         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73214
73215 2006-10-24  Bruno Haible  <bruno@clisp.org>
73216
73217         * lib/gl_list.h: Use C comment style, not C++ comment style.
73218
73219 2006-10-23  Eric Blake  <ebb9@byu.net>
73220
73221         * lib/getaddrinfo.c (includes): Add missing include.
73222
73223 2006-10-23  Bruno Haible  <bruno@clisp.org>
73224             Paul Eggert  <eggert@cs.ucla.edu>
73225
73226         Ability to rename obstack_free.
73227         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73228         obstack_free.
73229         (obstack_free): Invoke the __obstack_free macro.
73230         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73231
73232 2006-10-23  Bruno Haible  <bruno@clisp.org>
73233             Paul Eggert  <eggert@cs.ucla.edu>
73234
73235         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73236         __argc, __argv from the declaration. (They are defined as macros on
73237         mingw.)
73238
73239 2006-10-22  Bruno Haible  <bruno@clisp.org>
73240
73241         * doc/gnulib-intro.texi: New file.
73242         * doc/gnulib.texi: Include it.
73243
73244 2006-10-21  Bruno Haible  <bruno@clisp.org>
73245
73246         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73247         "Introduction", "Miscellanous Notes", "Particular Modules".
73248
73249 2006-10-21  Bruno Haible  <bruno@clisp.org>
73250
73251         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73252         Change mostlyclean-local rule to avoid sh syntax error from bash
73253         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73254
73255 2006-10-23  Jim Meyering  <jim@meyering.net>
73256
73257         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73258         in place of snprintf.
73259
73260         * modules/inttostr (Files): Add lib/uinttostr.c.
73261         * lib/uinttostr.c (inttostr): New file/function.
73262         * lib/inttostr.h (uinttostr): Declare.
73263         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73264         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73265         Add uinttostr.
73266         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73267
73268 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73269
73270         * lib/canonicalize.c (ELOOP): Define if not already defined.
73271         Problem reported by Bruno Haible in
73272         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73273
73274 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73275
73276         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73277         Problem reported by Perry Smith and Ville Laurikari.
73278
73279         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73280         uses.
73281
73282 2006-10-19  Bruno Haible  <bruno@clisp.org>
73283
73284         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73285         for mingw.
73286
73287 2006-10-19  Bruno Haible  <bruno@clisp.org>
73288
73289         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
73290         Needed for mingw.
73291
73292 2006-10-19  Bruno Haible  <bruno@clisp.org>
73293
73294         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
73295
73296 2006-10-19  Bruno Haible  <bruno@clisp.org>
73297
73298         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
73299         it.
73300
73301 2006-10-19  Bruno Haible  <bruno@clisp.org>
73302
73303         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73304         invocation.
73305
73306 2006-10-19  Bruno Haible  <bruno@clisp.org>
73307
73308         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73309         mountlist by default.
73310
73311 2006-10-16  Bruno Haible  <bruno@clisp.org>
73312
73313         * lib/c-strstr.c: Include c-strstr.h.
73314
73315 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73316
73317         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73318         in a slash.
73319
73320 2006-10-18  Bruno Haible  <bruno@clisp.org>
73321
73322         * lib/lock.h [C++]: Wrap definitions in extern "C".
73323
73324 2006-10-18  Bruno Haible  <bruno@clisp.org>
73325
73326         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73327         gl_LIBOBJS list.
73328
73329 2006-10-18  Bruno Haible  <bruno@clisp.org>
73330
73331         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73332
73333 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73334
73335         * lib/xstrtol.h: Include gettext.h.
73336         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73337         Problem reported by Eric Blake.
73338         * modules/xstrtol (Depends-on): Add gettext-h.
73339
73340 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73341
73342         * lib/strftime.c (advance): New macro.
73343         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73344         incomplete type, so you can't add 0 to it.  Problem and patch
73345         reported by Eelco Dolstra for dietlibc.
73346
73347 2006-10-18  Jim Meyering  <jim@meyering.net>
73348
73349         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73350         type for a local, and rename it: s/up/user_proc/.
73351
73352 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73353
73354         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73355         READ_UTMP_USER_PROCESS.
73356         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73357
73358 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73359
73360         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73361         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73362
73363 2006-10-17  Eric Blake  <ebb9@byu.net>
73364
73365         * lib/sigprocmask.c (sigprocmask): Fix typo.
73366
73367         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
73368
73369         * modules/clean-temp (Makefile.am): Don't add to make output...
73370         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
73371         config.h.
73372
73373 2006-10-17  Bruno Haible  <bruno@clisp.org>
73374
73375         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
73376         differently if DEFAULT_TEXT_DOMAIN is set.
73377
73378 2006-10-16  Bruno Haible  <bruno@clisp.org>
73379
73380         * lib/clean-temp.c: Include fwriteerror.h.
73381
73382 2006-10-16  Bruno Haible  <bruno@clisp.org>
73383
73384         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
73385
73386 2006-10-16  Bruno Haible  <bruno@clisp.org>
73387
73388         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
73389         * lib/sigprocmask.h: Include <sys/types.h>.
73390         (sigset_t): Use the system's definition if present.
73391
73392 2006-10-17  Eric Blake  <ebb9@byu.net>
73393
73394         * lib/xvasprintf.c (includes): Assume config.h.
73395         * lib/xasprintf.c (includes): Likewise.
73396
73397 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73398
73399         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
73400         at least as wide as intmax_t.
73401
73402 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
73403
73404         (Imported from Automake.)
73405         * build-aux/gnupload: Update to version 1.1 of directive file.
73406
73407 2006-10-16  Eric Blake  <ebb9@byu.net>
73408
73409         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
73410         match Automake 1.10a.
73411
73412 2006-10-14  Bruno Haible  <bruno@clisp.org>
73413
73414         * modules/sigprocmask: New file.
73415         * lib/sigprocmask.h: New file.
73416         * lib/sigprocmask.c: New file.
73417         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
73418         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
73419         request sigprocmask.o.
73420         (gl_PREREQ_SIGPROCMASK): New macro.
73421         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73422         (Depends-on): Add sigprocmask.
73423         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73424         gt_SIGNALBLOCKING. Test for 'raise' only once.
73425         * lib/fatal-signal.c: Include sigprocmask.h.
73426         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73427         unblock_fatal_signals): Define always.
73428         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73429         sigprocmask.
73430
73431 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73432
73433         Sync from Automake.
73434         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73435         which incorrectly sets the mode of an existing destination
73436         directory.  In some cases the unpatched install-sh could do the
73437         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73438         system.  We hope this is rare in practice, but it's clearly worth
73439         fixing.  Problem reported by Alex Unleashed in
73440         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
73441         Also, don't bother to check for -m bugs unless we're using -m;
73442         suggested by Stepan Kasal.
73443
73444 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73445
73446         Sync from Automake.
73447         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
73448         `-c' flag, so they appear at the same position as in %FASTDEP%
73449         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
73450         which ignores unknown options only after the first non-option.
73451         Bug report against M4 by Nelson H. F. Beebe.
73452
73453 2006-10-13  Jim Meyering  <jim@meyering.net>
73454
73455         Fix a bug in yesterday's change.
73456         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
73457         p->fts_statp->st_dev would be used uninitialized.
73458         Ensures that we always call fts_stat on the very first entry.
73459         Miklos Szeredi reported that find -xdev stopped working.
73460
73461 2006-10-12  Bruno Haible  <bruno@clisp.org>
73462
73463         * gnulib-tool (func_get_automake_snippet): Append an automatically
73464         computed EXTRA_DIST augmentation.
73465         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73466         * modules/alloca-opt (Makefile.am): Likewise.
73467         * modules/allocsa (Makefile.am): Likewise.
73468         * modules/arcfour (Makefile.am): Likewise.
73469         * modules/arctwo (Makefile.am): Likewise.
73470         * modules/argmatch (Makefile.am): Likewise.
73471         * modules/argz (Makefile.am): Likewise.
73472         * modules/atexit (Makefile.am): Likewise.
73473         * modules/backupfile (Makefile.am): Likewise.
73474         * modules/byteswap (Makefile.am): Likewise.
73475         * modules/c-strtod (Makefile.am): Likewise.
73476         * modules/c-strtold (Makefile.am): Likewise.
73477         * modules/calloc (Makefile.am): Likewise.
73478         * modules/canon-host (Makefile.am): Likewise.
73479         * modules/canonicalize (Makefile.am): Likewise.
73480         * modules/chdir-long (Makefile.am): Likewise.
73481         * modules/chdir-safer (Makefile.am): Likewise.
73482         * modules/check-version (Makefile.am): Likewise.
73483         * modules/chown (Makefile.am): Likewise.
73484         * modules/cloexec (Makefile.am): Likewise.
73485         * modules/close-stream (Makefile.am): Likewise.
73486         * modules/closeout (Makefile.am): Likewise.
73487         * modules/crc (Makefile.am): Likewise.
73488         * modules/csharpexec (Makefile.am): Likewise.
73489         * modules/cycle-check (Makefile.am): Likewise.
73490         * modules/des (Makefile.am): Likewise.
73491         * modules/dev-ino (Makefile.am): Likewise.
73492         * modules/dirfd (Makefile.am): Likewise.
73493         * modules/dirname (Makefile.am): Likewise.
73494         * modules/dup2 (Makefile.am): Likewise.
73495         * modules/eealloc (Makefile.am): Likewise.
73496         * modules/error (Makefile.am): Likewise.
73497         * modules/euidaccess (Makefile.am): Likewise.
73498         * modules/exclude (Makefile.am): Likewise.
73499         * modules/exitfail (Makefile.am): Likewise.
73500         * modules/fcntl-safer (Makefile.am): Likewise.
73501         * modules/fcntl (Makefile.am): Likewise.
73502         * modules/file-type (Makefile.am): Likewise.
73503         * modules/fileblocks (Makefile.am): Likewise.
73504         * modules/filemode (Makefile.am): Likewise.
73505         * modules/filenamecat (Makefile.am): Likewise.
73506         * modules/fnmatch (Makefile.am): Likewise.
73507         * modules/fopen-safer (Makefile.am): Likewise.
73508         * modules/fpending (Makefile.am): Likewise.
73509         * modules/fprintftime (Makefile.am): Likewise.
73510         * modules/free (Makefile.am): Likewise.
73511         * modules/fsusage (Makefile.am): Likewise.
73512         * modules/ftruncate (Makefile.am): Likewise.
73513         * modules/fts (Makefile.am): Likewise.
73514         * modules/gc-arcfour (Makefile.am): Likewise.
73515         * modules/gc-des (Makefile.am): Likewise.
73516         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73517         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73518         * modules/gc-md4 (Makefile.am): Likewise.
73519         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73520         * modules/gc-sha1 (Makefile.am): Likewise.
73521         * modules/gc (Makefile.am): Likewise.
73522         * modules/getaddrinfo (Makefile.am): Likewise.
73523         * modules/getcwd (Makefile.am): Likewise.
73524         * modules/getdelim (Makefile.am): Likewise.
73525         * modules/getdomainname (Makefile.am): Likewise.
73526         * modules/getgroups (Makefile.am): Likewise.
73527         * modules/gethostname (Makefile.am): Likewise.
73528         * modules/gethrxtime (Makefile.am): Likewise.
73529         * modules/getline (Makefile.am): Likewise.
73530         * modules/getloadavg (Makefile.am): Likewise.
73531         * modules/getlogin_r (Makefile.am): Likewise.
73532         * modules/getndelim2 (Makefile.am): Likewise.
73533         * modules/getopt (Makefile.am): Likewise.
73534         * modules/getpagesize (Makefile.am): Likewise.
73535         * modules/getpass-gnu (Makefile.am): Likewise.
73536         * modules/getpass (Makefile.am): Likewise.
73537         * modules/getsubopt (Makefile.am): Likewise.
73538         * modules/gettime (Makefile.am): Likewise.
73539         * modules/gettimeofday (Makefile.am): Likewise.
73540         * modules/getugroups (Makefile.am): Likewise.
73541         * modules/getusershell (Makefile.am): Likewise.
73542         * modules/glob (Makefile.am): Likewise.
73543         * modules/group-member (Makefile.am): Likewise.
73544         * modules/hard-locale (Makefile.am): Likewise.
73545         * modules/hash (Makefile.am): Likewise.
73546         * modules/hmac-md5 (Makefile.am): Likewise.
73547         * modules/hmac-sha1 (Makefile.am): Likewise.
73548         * modules/human (Makefile.am): Likewise.
73549         * modules/idcache (Makefile.am): Likewise.
73550         * modules/imaxabs (Makefile.am): Likewise.
73551         * modules/imaxdiv (Makefile.am): Likewise.
73552         * modules/inet_ntop (Makefile.am): Likewise.
73553         * modules/inet_pton (Makefile.am): Likewise.
73554         * modules/intprops (Makefile.am): Likewise.
73555         * modules/inttostr (Makefile.am): Likewise.
73556         * modules/inttypes (Makefile.am): Likewise.
73557         * modules/isapipe (Makefile.am): Likewise.
73558         * modules/javaversion (Makefile.am): Likewise.
73559         * modules/lchmod (Makefile.am): Likewise.
73560         * modules/lchown (Makefile.am): Likewise.
73561         * modules/localcharset (Makefile.am): Likewise.
73562         * modules/long-options (Makefile.am): Likewise.
73563         * modules/lstat (Makefile.am): Likewise.
73564         * modules/malloc (Makefile.am): Likewise.
73565         * modules/mathl (Makefile.am): Likewise.
73566         * modules/mbchar (Makefile.am): Likewise.
73567         * modules/md2 (Makefile.am): Likewise.
73568         * modules/md4 (Makefile.am): Likewise.
73569         * modules/md5 (Makefile.am): Likewise.
73570         * modules/memcasecmp (Makefile.am): Likewise.
73571         * modules/memchr (Makefile.am): Likewise.
73572         * modules/memcmp (Makefile.am): Likewise.
73573         * modules/memcoll (Makefile.am): Likewise.
73574         * modules/memcpy (Makefile.am): Likewise.
73575         * modules/memmem (Makefile.am): Likewise.
73576         * modules/memmove (Makefile.am): Likewise.
73577         * modules/mempcpy (Makefile.am): Likewise.
73578         * modules/memrchr (Makefile.am): Likewise.
73579         * modules/memset (Makefile.am): Likewise.
73580         * modules/memxor (Makefile.am): Likewise.
73581         * modules/mkancesdirs (Makefile.am): Likewise.
73582         * modules/mkdir-p (Makefile.am): Likewise.
73583         * modules/mkdir (Makefile.am): Likewise.
73584         * modules/mkdtemp (Makefile.am): Likewise.
73585         * modules/mkstemp (Makefile.am): Likewise.
73586         * modules/mktime (Makefile.am): Likewise.
73587         * modules/modechange (Makefile.am): Likewise.
73588         * modules/mountlist (Makefile.am): Likewise.
73589         * modules/nanosleep (Makefile.am): Likewise.
73590         * modules/obstack (Makefile.am): Likewise.
73591         * modules/openat (Makefile.am): Likewise.
73592         * modules/pagealign_alloc (Makefile.am): Likewise.
73593         * modules/pathmax (Makefile.am): Likewise.
73594         * modules/physmem (Makefile.am): Likewise.
73595         * modules/poll (Makefile.am): Likewise.
73596         * modules/posixtm (Makefile.am): Likewise.
73597         * modules/posixver (Makefile.am): Likewise.
73598         * modules/putenv (Makefile.am): Likewise.
73599         * modules/quote (Makefile.am): Likewise.
73600         * modules/quotearg (Makefile.am): Likewise.
73601         * modules/raise (Makefile.am): Likewise.
73602         * modules/read-file (Makefile.am): Likewise.
73603         * modules/readline (Makefile.am): Likewise.
73604         * modules/readlink (Makefile.am): Likewise.
73605         * modules/readtokens (Makefile.am): Likewise.
73606         * modules/readutmp (Makefile.am): Likewise.
73607         * modules/realloc (Makefile.am): Likewise.
73608         * modules/regex (Makefile.am): Likewise.
73609         * modules/rename-dest-slash (Makefile.am): Likewise.
73610         * modules/rename (Makefile.am): Likewise.
73611         * modules/rijndael (Makefile.am): Likewise.
73612         * modules/rmdir (Makefile.am): Likewise.
73613         * modules/rpmatch (Makefile.am): Likewise.
73614         * modules/safe-read (Makefile.am): Likewise.
73615         * modules/safe-write (Makefile.am): Likewise.
73616         * modules/same-inode (Makefile.am): Likewise.
73617         * modules/same (Makefile.am): Likewise.
73618         * modules/save-cwd (Makefile.am): Likewise.
73619         * modules/savedir (Makefile.am): Likewise.
73620         * modules/setenv (Makefile.am): Likewise.
73621         * modules/settime (Makefile.am): Likewise.
73622         * modules/sha1 (Makefile.am): Likewise.
73623         * modules/sig2str (Makefile.am): Likewise.
73624         * modules/snprintf (Makefile.am): Likewise.
73625         * modules/stat-macros (Makefile.am): Likewise.
73626         * modules/stat-time (Makefile.am): Likewise.
73627         * modules/stdbool (Makefile.am): Likewise.
73628         * modules/stdint (Makefile.am): Likewise.
73629         * modules/stdlib-safer (Makefile.am): Likewise.
73630         * modules/stpcpy (Makefile.am): Likewise.
73631         * modules/stpncpy (Makefile.am): Likewise.
73632         * modules/strcase (Makefile.am): Likewise.
73633         * modules/strcasestr (Makefile.am): Likewise.
73634         * modules/strchrnul (Makefile.am): Likewise.
73635         * modules/strcspn (Makefile.am): Likewise.
73636         * modules/strdup (Makefile.am): Likewise.
73637         * modules/strerror (Makefile.am): Likewise.
73638         * modules/strftime (Makefile.am): Likewise.
73639         * modules/strndup (Makefile.am): Likewise.
73640         * modules/strnlen (Makefile.am): Likewise.
73641         * modules/strpbrk (Makefile.am): Likewise.
73642         * modules/strsep (Makefile.am): Likewise.
73643         * modules/strstr (Makefile.am): Likewise.
73644         * modules/strtod (Makefile.am): Likewise.
73645         * modules/strtoimax (Makefile.am): Likewise.
73646         * modules/strtok_r (Makefile.am): Likewise.
73647         * modules/strtol (Makefile.am): Likewise.
73648         * modules/strtoll (Makefile.am): Likewise.
73649         * modules/strtoul (Makefile.am): Likewise.
73650         * modules/strtoull (Makefile.am): Likewise.
73651         * modules/strtoumax (Makefile.am): Likewise.
73652         * modules/strverscmp (Makefile.am): Likewise.
73653         * modules/sys_socket (Makefile.am): Likewise.
73654         * modules/sys_stat (Makefile.am): Likewise.
73655         * modules/sysexits (Makefile.am): Likewise.
73656         * modules/time_r (Makefile.am): Likewise.
73657         * modules/timegm (Makefile.am): Likewise.
73658         * modules/timespec (Makefile.am): Likewise.
73659         * modules/tmpfile-safer (Makefile.am): Likewise.
73660         * modules/trim (Makefile.am): Likewise.
73661         * modules/unistd-safer (Makefile.am): Likewise.
73662         * modules/unlinkdir (Makefile.am): Likewise.
73663         * modules/unlocked-io (Makefile.am): Likewise.
73664         * modules/userspec (Makefile.am): Likewise.
73665         * modules/utime (Makefile.am): Likewise.
73666         * modules/utimecmp (Makefile.am): Likewise.
73667         * modules/utimens (Makefile.am): Likewise.
73668         * modules/vasnprintf (Makefile.am): Likewise.
73669         * modules/vasprintf (Makefile.am): Likewise.
73670         * modules/vsnprintf (Makefile.am): Likewise.
73671         * modules/xalloc (Makefile.am): Likewise.
73672         * modules/xgetcwd (Makefile.am): Likewise.
73673         * modules/xnanosleep (Makefile.am): Likewise.
73674         * modules/xreadlink (Makefile.am): Likewise.
73675         * modules/xstrtod (Makefile.am): Likewise.
73676         * modules/xstrtol (Makefile.am): Likewise.
73677         * modules/xstrtold (Makefile.am): Likewise.
73678         * modules/yesno (Makefile.am): Likewise.
73679         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73680
73681 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73682
73683         * modules/error (Makefile.am): Distribute files through
73684         EXTRA_DIST, not lib_SOURCES.
73685
73686 2006-10-12  Eric Blake  <ebb9@byu.net>
73687
73688         * modules/error (Makefile.am): Distribute files in /lib.
73689         * modules/obstack (Makefile.am): Likewise.
73690
73691 2006-10-12  Bruno Haible  <bruno@clisp.org>
73692
73693         * modules/acl (Makefile.am): Distribute all files in lib/ through
73694         EXTRA_DIST.
73695         * modules/arcfour (Makefile.am): Likewise.
73696         * modules/arctwo (Makefile.am): Likewise.
73697         * modules/argmatch (Makefile.am): Likewise.
73698         * modules/argz (Makefile.am): Likewise.
73699         * modules/atexit (Makefile.am): Likewise.
73700         * modules/backupfile (Makefile.am): Likewise.
73701         * modules/c-strtod (Makefile.am): Likewise.
73702         * modules/c-strtold (Makefile.am): Likewise.
73703         * modules/calloc (Makefile.am): Likewise.
73704         * modules/canon-host (Makefile.am): Likewise.
73705         * modules/canonicalize (Makefile.am): Likewise.
73706         * modules/chdir-long (Makefile.am): Likewise.
73707         * modules/chdir-safer (Makefile.am): Likewise.
73708         * modules/check-version (Makefile.am): Likewise.
73709         * modules/chown (Makefile.am): Likewise.
73710         * modules/cloexec (Makefile.am): Likewise.
73711         * modules/close-stream (Makefile.am): Likewise.
73712         * modules/closeout (Makefile.am): Likewise.
73713         * modules/crc (Makefile.am): Likewise.
73714         * modules/cycle-check (Makefile.am): Likewise.
73715         * modules/des (Makefile.am): Likewise.
73716         * modules/dirfd (Makefile.am): Likewise.
73717         * modules/dirname (Makefile.am): Likewise.
73718         * modules/dup2 (Makefile.am): Likewise.
73719         * modules/euidaccess (Makefile.am): Likewise.
73720         * modules/exclude (Makefile.am): Likewise.
73721         * modules/exitfail (Makefile.am): Likewise.
73722         * modules/fcntl-safer (Makefile.am): Likewise.
73723         * modules/file-type (Makefile.am): Likewise.
73724         * modules/fileblocks (Makefile.am): Likewise.
73725         * modules/filemode (Makefile.am): Likewise.
73726         * modules/filenamecat (Makefile.am): Likewise.
73727         * modules/fnmatch (Makefile.am): Likewise.
73728         * modules/fopen-safer (Makefile.am): Likewise.
73729         * modules/fpending (Makefile.am): Likewise.
73730         * modules/fprintftime (Makefile.am): Likewise.
73731         * modules/free (Makefile.am): Likewise.
73732         * modules/fsusage (Makefile.am): Likewise.
73733         * modules/ftruncate (Makefile.am): Likewise.
73734         * modules/fts (Makefile.am): Likewise.
73735         * modules/gc (Makefile.am): Likewise.
73736         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73737         * modules/getaddrinfo (Makefile.am): Likewise.
73738         * modules/getcwd (Makefile.am): Likewise.
73739         * modules/getdelim (Makefile.am): Likewise.
73740         * modules/getdomainname (Makefile.am): Likewise.
73741         * modules/getgroups (Makefile.am): Likewise.
73742         * modules/gethostname (Makefile.am): Likewise.
73743         * modules/gethrxtime (Makefile.am): Likewise.
73744         * modules/getline (Makefile.am): Likewise.
73745         * modules/getloadavg (Makefile.am): Likewise.
73746         * modules/getlogin_r (Makefile.am): Likewise.
73747         * modules/getopt (Makefile.am): Likewise.
73748         * modules/getpass (Makefile.am): Likewise.
73749         * modules/getpass-gnu (Makefile.am): Likewise.
73750         * modules/getsubopt (Makefile.am): Likewise.
73751         * modules/gettime (Makefile.am): Likewise.
73752         * modules/gettimeofday (Makefile.am): Likewise.
73753         * modules/getugroups (Makefile.am): Likewise.
73754         * modules/getusershell (Makefile.am): Likewise.
73755         * modules/glob (Makefile.am): Likewise.
73756         * modules/group-member (Makefile.am): Likewise.
73757         * modules/hard-locale (Makefile.am): Likewise.
73758         * modules/hash (Makefile.am): Likewise.
73759         * modules/hmac-md5 (Makefile.am): Likewise.
73760         * modules/hmac-sha1 (Makefile.am): Likewise.
73761         * modules/human (Makefile.am): Likewise.
73762         * modules/idcache (Makefile.am): Likewise.
73763         * modules/imaxabs (Makefile.am): Likewise.
73764         * modules/imaxdiv (Makefile.am): Likewise.
73765         * modules/inet_ntop (Makefile.am): Likewise.
73766         * modules/inet_pton (Makefile.am): Likewise.
73767         * modules/inttostr (Makefile.am): Likewise.
73768         * modules/isapipe (Makefile.am): Likewise.
73769         * modules/lchown (Makefile.am): Likewise.
73770         * modules/long-options (Makefile.am): Likewise.
73771         * modules/lstat (Makefile.am): Likewise.
73772         * modules/malloc (Makefile.am): Likewise.
73773         * modules/mathl (Makefile.am): Likewise.
73774         * modules/mbchar (Makefile.am): Likewise.
73775         * modules/md2 (Makefile.am): Likewise.
73776         * modules/md4 (Makefile.am): Likewise.
73777         * modules/md5 (Makefile.am): Likewise.
73778         * modules/memcasecmp (Makefile.am): Likewise.
73779         * modules/memchr (Makefile.am): Likewise.
73780         * modules/memcmp (Makefile.am): Likewise.
73781         * modules/memcoll (Makefile.am): Likewise.
73782         * modules/memcpy (Makefile.am): Likewise.
73783         * modules/memmem (Makefile.am): Likewise.
73784         * modules/memmove (Makefile.am): Likewise.
73785         * modules/mempcpy (Makefile.am): Likewise.
73786         * modules/memrchr (Makefile.am): Likewise.
73787         * modules/memset (Makefile.am): Likewise.
73788         * modules/memxor (Makefile.am): Likewise.
73789         * modules/mkancesdirs (Makefile.am): Likewise.
73790         * modules/mkdir (Makefile.am): Likewise.
73791         * modules/mkdir-p (Makefile.am): Likewise.
73792         * modules/mkdtemp (Makefile.am): Likewise.
73793         * modules/mkstemp (Makefile.am): Likewise.
73794         * modules/mktime (Makefile.am): Likewise.
73795         * modules/modechange (Makefile.am): Likewise.
73796         * modules/mountlist (Makefile.am): Likewise.
73797         * modules/nanosleep (Makefile.am): Likewise.
73798         * modules/openat (Makefile.am): Likewise.
73799         * modules/pagealign_alloc (Makefile.am): Likewise.
73800         * modules/physmem (Makefile.am): Likewise.
73801         * modules/poll (Makefile.am): Likewise.
73802         * modules/posixtm (Makefile.am): Likewise.
73803         * modules/posixver (Makefile.am): Likewise.
73804         * modules/putenv (Makefile.am): Likewise.
73805         * modules/quote (Makefile.am): Likewise.
73806         * modules/quotearg (Makefile.am): Likewise.
73807         * modules/raise (Makefile.am): Likewise.
73808         * modules/read-file (Makefile.am): Likewise.
73809         * modules/readline (Makefile.am): Likewise.
73810         * modules/readlink (Makefile.am): Likewise.
73811         * modules/readtokens (Makefile.am): Likewise.
73812         * modules/readutmp (Makefile.am): Likewise.
73813         * modules/realloc (Makefile.am): Likewise.
73814         * modules/regex (Makefile.am): Likewise.
73815         * modules/rename (Makefile.am): Likewise.
73816         * modules/rename-dest-slash (Makefile.am): Likewise.
73817         * modules/rijndael (Makefile.am): Likewise.
73818         * modules/rmdir (Makefile.am): Likewise.
73819         * modules/rpmatch (Makefile.am): Likewise.
73820         * modules/safe-read (Makefile.am): Likewise.
73821         * modules/safe-write (Makefile.am): Likewise.
73822         * modules/same (Makefile.am): Likewise.
73823         * modules/save-cwd (Makefile.am): Likewise.
73824         * modules/savedir (Makefile.am): Likewise.
73825         * modules/setenv (Makefile.am): Likewise.
73826         * modules/settime (Makefile.am): Likewise.
73827         * modules/sha1 (Makefile.am): Likewise.
73828         * modules/sig2str (Makefile.am): Likewise.
73829         * modules/snprintf (Makefile.am): Likewise.
73830         * modules/stdlib-safer (Makefile.am): Likewise.
73831         * modules/stpcpy (Makefile.am): Likewise.
73832         * modules/stpncpy (Makefile.am): Likewise.
73833         * modules/strcase (Makefile.am): Likewise.
73834         * modules/strcasestr (Makefile.am): Likewise.
73835         * modules/strchrnul (Makefile.am): Likewise.
73836         * modules/strcspn (Makefile.am): Likewise.
73837         * modules/strdup (Makefile.am): Likewise.
73838         * modules/strerror (Makefile.am): Likewise.
73839         * modules/strftime (Makefile.am): Likewise.
73840         * modules/strndup (Makefile.am): Likewise.
73841         * modules/strnlen (Makefile.am): Likewise.
73842         * modules/strpbrk (Makefile.am): Likewise.
73843         * modules/strsep (Makefile.am): Likewise.
73844         * modules/strstr (Makefile.am): Likewise.
73845         * modules/strtod (Makefile.am): Likewise.
73846         * modules/strtoimax (Makefile.am): Likewise.
73847         * modules/strtok_r (Makefile.am): Likewise.
73848         * modules/strtol (Makefile.am): Likewise.
73849         * modules/strtoll (Makefile.am): Likewise.
73850         * modules/strtoul (Makefile.am): Likewise.
73851         * modules/strtoull (Makefile.am): Likewise.
73852         * modules/strtoumax (Makefile.am): Likewise.
73853         * modules/strverscmp (Makefile.am): Likewise.
73854         * modules/time_r (Makefile.am): Likewise.
73855         * modules/timegm (Makefile.am): Likewise.
73856         * modules/tmpfile-safer (Makefile.am): Likewise.
73857         * modules/unistd-safer (Makefile.am): Likewise.
73858         * modules/unlinkdir (Makefile.am): Likewise.
73859         * modules/userspec (Makefile.am): Likewise.
73860         * modules/utime (Makefile.am): Likewise.
73861         * modules/utimecmp (Makefile.am): Likewise.
73862         * modules/utimens (Makefile.am): Likewise.
73863         * modules/vasnprintf (Makefile.am): Likewise.
73864         * modules/vasprintf (Makefile.am): Likewise.
73865         * modules/vsnprintf (Makefile.am): Likewise.
73866         * modules/xalloc (Makefile.am): Likewise.
73867         * modules/xgetcwd (Makefile.am): Likewise.
73868         * modules/xnanosleep (Makefile.am): Likewise.
73869         * modules/xreadlink (Makefile.am): Likewise.
73870         * modules/xstrtod (Makefile.am): Likewise.
73871         * modules/xstrtol (Makefile.am): Likewise.
73872         * modules/xstrtold (Makefile.am): Likewise.
73873         * modules/yesno (Makefile.am): Likewise.
73874
73875 2006-10-12  Jim Meyering  <jim@meyering.net>
73876
73877         * m4/getloadavg.m4: Revert the change below.
73878
73879         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73880         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73881         fail with a symlink, which is what coreutils' ./bootstrap now
73882         creates by default.
73883
73884 2006-10-12  Bruno Haible  <bruno@clisp.org>
73885
73886         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73887         mingw.
73888         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73889         MSVC and mingw explicitly.
73890
73891 2006-10-11  Simon Josefsson  <jas@extundo.com>
73892             Bruno Haible  <bruno@clisp.org>
73893
73894         Add support for multiple gnulib-tool invocations in the scope of a
73895         single configure.ac file.
73896         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73897         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73898         with the same contents as the _LIBADD variable.
73899         (func_emit_initmacro_start, func_emit_initmacro_end,
73900         func_emit_initmacro_done): New functions.
73901         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73902         gl_LIBOBJS and gl_LTLIBOBJS.
73903
73904 2006-10-11  Bruno Haible  <bruno@clisp.org>
73905
73906         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73907         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73908         autoreconf. Instead, invoke autopoint explicitly but move back the
73909         *.m4 files from gnulib.
73910
73911 2006-10-11  Bruno Haible  <bruno@clisp.org>
73912
73913         * gnulib-tool (func_usage): Make module names after --create-testdir
73914         optional.
73915         (func_create_testdir): If no module was specified, use nearly all
73916         modules.
73917
73918 2006-10-12  Jim Meyering  <jim@meyering.net>
73919
73920         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73921         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73922         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73923         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73924         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73925         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73926         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73927         (fts_set_stat_required): New function.
73928         (fts_open): Defer the calls to fts_stat, if possible or requested.
73929         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73930         into fts_stat itself.
73931         (fts_read): Perform any required (deferred) fts_stat call.
73932         (fts_build): Likewise, for the directory we're about to open and read.
73933         In the readdir loop, carefully decide whether each entry will require
73934         an eventual call to fts_stat, using dirent.d_type info if available.
73935         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73936         a command line argument into this function.  Update all callers.
73937         Map a return value of FTS_DOT to FTS_D for a command line argument.
73938         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73939         Thanks to Miklos Szeredi for his tenacity and for the initial
73940         bug report about "find" failing on a FUSE-based file system.
73941
73942         * lib/fts.c (fts_open): Use consistent indentation.
73943
73944 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73945
73946         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73947         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73948         reported by Jim Meyering.  All uses of cache variables renamed
73949         to match Autoconf's.
73950         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73951         the other one.
73952
73953         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73954         Fix misspelling in diagnostic.
73955
73956 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73957
73958         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73959         defined.  Problem reported by Matthew Woehlke.
73960
73961         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73962         Add support for Tandem NonStop R series.
73963         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73964         Use new macro.
73965
73966         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73967         (has_trailing_slash): Omit size arg; all callers changed.
73968         Omit 'inline', since it doesn't help performance and we'd
73969         need to configure it.
73970         Don't count //, ///, etc. as having a trailing slash.
73971         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73972         (rpl_rename_dest_slash): On failure, use rename's errno rather
73973         than (in some cases) an incorrect or junk errno.
73974         Simplify code by removing need to compute length; this does
73975         cause it to make two passes instead of one over the file name,
73976         but it's worth it.
73977
73978         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73979         change, since Autoconf's version may no longer be appropriate now
73980         that we are using CVS Autoconf's version.  Add support for Tandem.
73981
73982 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73983             Bruno Haible  <bruno@clisp.org>
73984
73985         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73986         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73987         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73988         gl_AC_TYPE_LONG_LONG.
73989
73990         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73991         instead of HAVE_LONG_LONG.
73992         * lib/printf-args.c (printf_fetchargs): Likewise.
73993         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73994         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73995         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73996         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73997         gl_AC_TYPE_LONG_LONG.
73998
73999 2006-10-11  Bruno Haible  <bruno@clisp.org>
74000
74001         * m4/longlong.m4: Add comments.
74002         * m4/ulonglong.m4: Likewise.
74003
74004 2006-10-10  Bruno Haible  <bruno@clisp.org>
74005
74006         Make it possible to #define stpcpy, strdup to aliases.
74007         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
74008         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
74009
74010 2006-10-10  Bruno Haible  <bruno@clisp.org>
74011
74012         Make it possible to #define gcd to an alias.
74013         * lib/gcd.c: Include config.h.
74014
74015 2006-10-10  Bruno Haible  <bruno@clisp.org>
74016
74017         Make it possible to #define c_isascii to an alias.
74018         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
74019         defined. Undefine the macros before defining them, to avoid gcc
74020         warnings.
74021         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
74022         define NO_C_CTYPE_MACROS early.
74023
74024 2006-10-10  Bruno Haible  <bruno@clisp.org>
74025
74026         Make it possible to #define set_program_name to an alias.
74027         * lib/progname.c: Don't undefine set_program_name; instead, undefine
74028         ENABLE_RELOCATABLE early.
74029
74030 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74031
74032         Port to Tandem NSK OSS, which has 64-bit signed int but at most
74033         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
74034         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74035         More generally, don't assume that 64-bit signed int is available
74036         if unsigned int is, and vice versa.
74037         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74038         unsigned symbols, not on their signed counterparts.
74039         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74040         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74041         (UINT64_C, UINTMAX_C):
74042         Likewise.
74043         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74044         unsigned counterparts.
74045         (Have_long_long, Unsigned): New macros.
74046         (Int): Renamed from INT.
74047         (strtoimax): Use the new macros.
74048         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74049         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74050         * modules/inttypes (inttypes.h): Substitute
74051         HAVE_UNSIGNED_LONG_LONG_INT.
74052         * modules/stdint (stdint.h): Likewise.
74053         (Files): Add m4/ulonglong.m4.
74054
74055 2006-10-10  Bruno Haible  <bruno@clisp.org>
74056
74057         Fix a gcc -Wshadow warning.
74058         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74059         to 'bucket'.
74060         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74061         gl_linked_indexof_from_to): Likewise.
74062         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74063         Likewise.
74064         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74065         Likewise.
74066         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74067         Reported by Eric Blake.
74068
74069 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74070
74071         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74072         for NetBSD.  Problem reported by Bruno Haible.
74073
74074 2006-10-09  Jim Meyering  <jim@meyering.net>
74075
74076         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74077         Patch from Bruno Haible.
74078
74079 2006-10-09  Jim Meyering  <jim@meyering.net>
74080
74081         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74082         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74083         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74084
74085 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74086
74087         Don't include <config.h> twice; this doesn't work in some cases,
74088         e.g., when config.h has "#define intmax_t long long int" and
74089         we include <config.h>, <inttypes.h>, <config.h> in that order.
74090         Problem reported by Matthew Woehlke in:
74091         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74092         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74093         * lib/fts-cycle.c: Don't include config.h.
74094         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74095         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74096         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74097         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74098         inttypes.h.
74099         * lib/xstrtoumax.c: Likewise.
74100         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74101         __strtol and the like, so that this module is more like its siblings.
74102         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74103         Remove; no longer needed now that we assume gnulib inttypes.h.
74104
74105 2006-10-08  Bruno Haible  <bruno@clisp.org>
74106
74107         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74108         option.
74109
74110 2006-10-07  Jim Meyering  <jim@meyering.net>
74111
74112         * modules/inttypes (inttypes.h): Revert what seems to have been
74113         an inadvertent part of today's change: use "|", not "/" in the
74114         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74115
74116 2006-10-07  Bruno Haible  <bruno@clisp.org>
74117
74118         * modules/sublist: New file.
74119
74120 2006-10-07  Bruno Haible  <bruno@clisp.org>
74121
74122         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74123         * modules/argz (argz.h): Likewise.
74124         * modules/arpa_inet (arpa/inet.h): Likewise.
74125         * modules/byteswap (byteswap.h): Likewise.
74126         * modules/configmake (configmake.h): Likewise.
74127         * modules/fcntl (fcntl.h): Likewise.
74128         * modules/fnmatch (fnmatch.h): Likewise.
74129         * modules/getopt (getopt.h): Likewise.
74130         * modules/glob (glob.h): Likewise.
74131         * modules/inttypes (inttypes.h): Likewise.
74132         * modules/netinet_in (netinet/in.h): Likewise.
74133         * modules/poll (poll.h): Likewise.
74134         * modules/stdbool (stdbool.h): Likewise.
74135         * modules/stdint (stdint.h): Likewise.
74136         * modules/sys_select (sys/select.h): Likewise.
74137         * modules/sys_socket (sys/socket.h): Likewise.
74138         * modules/sys_stat (sys/stat.h): Likewise.
74139         * modules/sysexits (sysexits.h): Likewise.
74140         * modules/unistd (unistd.h): Likewise.
74141         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74142         Add a "DO NOT EDIT" comment to the generated file.
74143         (func_import): Likewise for gnulib-comp.m4.
74144
74145 2006-10-07  Bruno Haible  <bruno@clisp.org>
74146
74147         * lib/gl_sublist.h: New file.
74148         * lib/gl_sublist.c: New file.
74149
74150 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74151
74152         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74153         name (relative to the original working directory) and the file
74154         name component (relative to the temporary working directory).  All
74155         callers changed.
74156         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74157         * lib/mkdir-p.c (make_dir_parents): Likewise.
74158         * lib/mkdir-p.h (make_dir_parents): Likewise.
74159
74160 2006-10-06  Eric Blake  <ebb9@byu.net>
74161
74162         Define several macros for use by the clean-temp module.
74163         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74164         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74165         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74166
74167         * lib/clean-temp.h (close_stream_temp): New declaration.
74168         * lib/clean-temp.c (includes): Pull in headers according to what
74169         other modules are in use.
74170         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74171
74172 2006-10-06  Bruno Haible  <bruno@clisp.org>
74173
74174         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74175         instead of fopen, fwriteerror.
74176
74177 2006-10-06  Bruno Haible  <bruno@clisp.org>
74178
74179         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74180         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74181         int.
74182         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74183         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74184         Return an error indicator.
74185         Suggested by Eric Blake.
74186
74187 2006-10-06  Bruno Haible  <bruno@clisp.org>
74188
74189         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74190         Reported by Eric Blake.
74191
74192 2006-10-06  Bruno Haible  <bruno@clisp.org>
74193
74194         * modules/closeout (Description): Mention stderr too.
74195
74196 2006-10-06  Bruno Haible  <bruno@clisp.org>
74197         and Paul Eggert  <eggert@cs.ucla.edu>
74198
74199         * lib/closeout.c (close_stdout): Also close stderr.
74200         * lib/closeout.h: Update comment.
74201
74202 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74203
74204         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74205         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74206         * lib/dirchownmod.c: Include lchown.h.
74207         * lib/lchown.c: Don't include files that lchown.h now includes.
74208         Don't declare chown, since lchown.h now does that.
74209         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74210         (lchown): Define to rpl_chown if lchown is declared but
74211         does not exist.  Declare using a prototype if lchown is not
74212         declared.  Add a copyright notice.
74213         * lib/mkstemp.h: Include <unistd.h>.
74214         * lib/openat.c: Include lchown.h.
74215
74216         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74217         we now test for that separately.
74218         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74219         rather than O_NOFOLLOW, when testing whether it's possible to
74220         avoid a race condition reliably.
74221         * lib/savewd.c (savewd_chdir): Likewise.
74222
74223         Remove macros that are no longer needed now that stdint.h is
74224         reliable.
74225         * lib/fsusage.c (UINTMAX_MAX): Remove.
74226         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74227         * lib/utimecmp.c (SIZE_MAX): Remove.
74228
74229         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74230
74231         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74232         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74233         O_NOATIME works.
74234
74235 2006-10-05  Bruno Haible  <bruno@clisp.org>
74236
74237         * lib/gl_list.h (gl_sortedlist_search_from_to,
74238         gl_sortedlist_indexof_from_to): New declarations.
74239         (gl_list_implementation): New fields sortedlist_search_from_to,
74240         sortedlist_indexof_from_to.
74241         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74242         inline functions.
74243         * lib/gl_list.c (gl_sortedlist_search_from_to,
74244         gl_sortedlist_indexof_from_to): New functions.
74245         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74246         function.
74247         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74248         (gl_array_sortedlist_search_from_to): New function.
74249         (gl_array_list_implementation): Update.
74250         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74251         function.
74252         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74253         (gl_carray_sortedlist_search_from_to): New function.
74254         (gl_carray_list_implementation): Update.
74255         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74256         gl_linked_sortedlist_indexof_from_to): New functions.
74257         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74258         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74259         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74260         gl_tree_sortedlist_indexof_from_to): New functions.
74261         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74262         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74263         Update.
74264         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74265         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74266         Update.
74267
74268 2006-10-05  Bruno Haible  <bruno@clisp.org>
74269
74270         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74271         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74272         (struct gl_list_implementation): Add fields search_from_to,
74273         indexof_from_to. Remove fields search, indexof.
74274         (gl_list_search): Use the search_from_to method.
74275         (gl_list_search_from, gl_list_search_from_to): New functions.
74276         (gl_list_indexof): Use the indexof_from_to method.
74277         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74278         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74279         (gl_list_search_from, gl_list_search_from_to): New functions.
74280         (gl_list_indexof): Use the indexof_from_to method.
74281         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74282         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74283         gl_array_indexof. Add start_index, end_index arguments.
74284         (gl_array_search_from_to): Renamed from gl_array_search. Add
74285         start_index, end_index arguments.
74286         (gl_array_remove, gl_array_list_implementation): Update.
74287         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74288         gl_carray_indexof. Add start_index, end_index arguments.
74289         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
74290         start_index, end_index arguments.
74291         (gl_carray_remove, gl_carray_list_implementation): Update.
74292         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
74293         gl_linked_search. Add start_index, end_index arguments.
74294         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
74295         start_index, end_index arguments.
74296         (gl_linked_remove): Update.
74297         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74298         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74299         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
74300         field to 'size_t'.
74301         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74302         gl_tree_search. Add start_index, end_index arguments.
74303         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74304         start_index, end_index arguments.
74305         (gl_tree_remove): Update.
74306         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74307         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74308         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74309         function.
74310         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74311         gl_tree_search. Add start_index, end_index arguments.
74312         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74313         start_index, end_index arguments.
74314         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74315         Update.
74316         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74317
74318 2006-10-05  Bruno Haible  <bruno@clisp.org>
74319
74320         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74321
74322         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74323         fwriteerror_temp): New declarations.
74324         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74325         (descriptors): New variable.
74326         (cleanup): First, close the descriptors.
74327         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74328         fclose_temp, fwriteerror_temp): New functions.
74329
74330 2006-10-04  Jim Meyering  <jim@meyering.net>
74331
74332         * lib/fts.c (fts_open): Tiny comment change.
74333
74334 2006-10-04  Bruno Haible  <bruno@clisp.org>
74335
74336         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74337         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74338         gl_LOCK_BODY.
74339         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74340         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74341         gl_LOCK_EARLY_BODY.
74342         (gl_LOCK): Require gl_LOCK_BODY.
74343
74344 2006-10-04  Bruno Haible  <bruno@clisp.org>
74345
74346         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74347         (gl_oset_search_atleast): New declaration.
74348         (struct gl_oset_implementation): Add field 'search_atleast'.
74349         (gl_oset_search_atleast): New inline function.
74350         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74351         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74352         (gl_array_oset_implementation): Update.
74353         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74354         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74355         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74356
74357 2006-10-04  Bruno Haible  <bruno@clisp.org>
74358
74359         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74360
74361 2006-10-03  Bruno Haible  <bruno@clisp.org>
74362
74363         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
74364         from gl_avltreehash_list_implementation.
74365
74366 2006-10-03  Bruno Haible  <bruno@clisp.org>
74367
74368         * lib/gl_oset.c (gl_oset_add): Fix return type.
74369
74370 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
74371
74372         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
74373
74374 2006-10-02  Eric Blake  <ebb9@byu.net>
74375
74376         * modules/strnlen (Depends-on): Add extensions.
74377
74378 2006-10-02  Eric Blake  <ebb9@byu.net>
74379
74380         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
74381         definition in 2.60+.
74382
74383 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74384
74385         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
74386         checks.
74387
74388 2006-10-02  Bruno Haible  <bruno@clisp.org>
74389
74390         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
74391         to the AUTOMAKE_OPTIONS.
74392         Reported by Jim Meyering.
74393
74394 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74395
74396         Work around bug in Solaris 10 /proc file system:
74397         /proc/self/fd/NNN/.. isn't the parent directory of
74398         the directory whose file descriptor is NNN.  This needs to
74399         be worked around at run time, not compile time, since a
74400         program might be built on Solaris 8, where things work, and
74401         run on Solaris 10.
74402         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
74403         to use the following interface instead:
74404         (OPENAT_BUFFER_SIZE): New macro.
74405         (openat_proc_name): New function.
74406         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
74407         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
74408         Likewise.
74409         * lib/openat-proc.c: New file.
74410         * modules/openat (Files): Add lib/openat-proc.c.
74411         (Depends-on): Add same-inode, stdbool.
74412         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
74413
74414 2006-09-29  Bruno Haible  <bruno@clisp.org>
74415
74416         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
74417         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
74418         argument. Set stdout_closed before testing for ferror, not after.
74419         (fwriteerror, fwriteerror_no_ebadf): New functions.
74420
74421 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74422
74423         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74424
74425 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74426
74427         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74428         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74429
74430 2006-09-28  Jim Meyering  <jim@meyering.net>
74431
74432         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74433         Include <unistd.h>.
74434
74435 2006-09-28  Bruno Haible  <bruno@clisp.org>
74436
74437         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74438         * modules/linkedhash-list (Depends-on): Likewise.
74439         * modules/rbtreehash-list (Depends-on): Likewise.
74440
74441 2006-09-28  Bruno Haible  <bruno@clisp.org>
74442
74443         * lib/strndup.h: Simplify the redefinition of strndup.
74444         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
74445         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
74446
74447 2006-09-28  Bruno Haible  <bruno@clisp.org>
74448
74449         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
74450         * lib/gl_linkedhash_list.c: Likewise.
74451         * lib/gl_rbtreehash_list.c: Likewise.
74452
74453 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74454
74455         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
74456         getaddrinfo.
74457
74458         * lib/__fpending.h: Don't include <stdio_ext.h> unless
74459         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
74460         it causes <stdio_ext.h> to cause a compile-time error.
74461         Problem reported by Nelson H. F. Beebe.
74462         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74463         of HAVE_DECL___PENDING.
74464
74465         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74466         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74467         declaration.
74468
74469 2006-09-27  Jim Meyering  <jim@meyering.net>
74470
74471         This file could end up with a definition for a function
74472         named __strndup, rather than rpl_strndup on a system with
74473         incomplete weak_alias support.
74474         * lib/strndup.c (strndup): Rename from __strndup.
74475         Remove #defines that used to map __strndup to strndup.
74476         Don't use K&R prototypes.
74477         Remove LIBC-related code, since this file is not sync'd with glibc.
74478         * lib/strndup.h: Revamp, accordingly.
74479         * m4/strndup.m4: Modernize.
74480
74481 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74482
74483         * modules/savewd (Depends-on): Add 'raise'.
74484         * lib/savewd.c: Include <signal.h>, for 'raise'.
74485
74486 2006-09-26  Jim Meyering  <jim@meyering.net>
74487
74488         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
74489         when we detect Darwin 8.7.0's acl_get_file bug.
74490         Rearrange to perform the new (below) run-test while $LIBS
74491         contains any acl-related library.  Set USE_ACL at the end.
74492         (gl_ACL_GET_FILE): New function.
74493
74494 2006-09-26  Eric Blake  <ebb9@byu.net>
74495
74496         * lib/verror.c: Include <config.h> unconditionally.
74497
74498 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
74499
74500         * modules/clock-time (Maintainer): Add self.
74501         * modules/getlogin_r (Depends-on): Add extensions.
74502
74503 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74504
74505         * modules/clock-time: New module.
74506         * modules/nanosleep (Depends-on): Add clock-time.
74507         * modules/gethrxtime (Depends-on): Likewise.
74508         * modules/gettime (Depends-on): Likewise.
74509         * modules/settime (Depends-on): Likewise.
74510
74511         * modules/fts-lgpl: Depend on openat.
74512         * modules/mkancesdirs: Depend on savewd.
74513         * modules/mkdir-p: Likewise.
74514
74515 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74516
74517         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74518
74519         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74520         `gl_have_arbitrary_file_name_length_limit' to
74521         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74522         actually works between configure runs.
74523
74524 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74525             Bruno Haible  <bruno@clisp.org>
74526
74527         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74528
74529 2006-09-25  Jim Meyering  <jim@meyering.net>
74530
74531         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74532         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74533
74534 2006-09-25  Eric Blake  <ebb9@byu.net>
74535
74536         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74537         exec's in 2006-09-18 patch when shuffling fds.
74538
74539 2006-09-25  Bruno Haible  <bruno@clisp.org>
74540
74541         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74542         Reported by Jim Meyering.
74543
74544 2006-09-24  Jim Meyering  <jim@meyering.net>
74545
74546         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74547         compare a pointer against a literal "0".  That caused failures with
74548         at least HP-UX's hpcc.
74549
74550 2006-09-22  Simon Josefsson  <jas@extundo.com>
74551
74552         * modules/gc-sha1:
74553         * modules/gc-md4:
74554         * modules/gc-hmac-sha1:
74555         * modules/gc-hmac-md5:
74556         * modules/gc-des:
74557         * modules/gc-arcfour: Distribute more files.
74558
74559 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74560
74561         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74562         (gl_linked_iterator_from_to): Initialize struct completely.
74563         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74564         (gl_tree_iterator_from_to): Likewise
74565         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74566         * lib/gl_array_list.c [lint] (gl_array_iterator)
74567         (gl_array_iterator_from_to): Likewise.
74568         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74569         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74570         (gl_carray_iterator_from_to): Likewise.
74571
74572         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74573         * lib/md4.c (md4_process_block): Remove unused variable.
74574         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74575         parentheses for clarity.
74576
74577 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74578
74579         * modules/bison-i18n (Depends-on): Add gettext.
74580
74581 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74582
74583         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74584         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74585         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74586         also add missing comma that caused broken test.
74587         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74588         stdlib.h, for `abort'.
74589         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74590         variables.
74591         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74592         include unistd.h if present, for `rmdir'.
74593         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74594         variables.
74595         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74596         in the process include standard headers for prototypes.
74597         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74598         gets declared on GNU/Linux.
74599         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74600         unistd.h, for `rmdir'.
74601         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74602
74603         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74604         always true.
74605         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74606
74607         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74608
74609 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74610
74611         * gnulib-tool (func_version): Create output all at once.  This
74612         may help avoid triggering unnecessary SIGPIPEs, and at any
74613         rate it doesn't hurt.
74614
74615 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74616             Bruno Haible  <bruno@clisp.org>
74617
74618         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74619         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74620         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74621
74622         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74623         (gl_FUNC_VASPRINTF): Invoke it.
74624
74625 2006-09-22  Bruno Haible  <bruno@clisp.org>
74626
74627         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74628         getloadavg.c as first argument.
74629
74630 2006-09-22  Bruno Haible  <bruno@clisp.org>
74631
74632         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74633         at the beginning of the gl_INIT macro.
74634         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74635         gl_GETLOADAVG.
74636
74637 2006-09-22  Bruno Haible  <bruno@clisp.org>
74638
74639         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74640         module.
74641         Suggested by Ralf Wildenhues.
74642
74643 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74644
74645         Import this patch from libc:
74646
74647         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74648
74649         * lib/regex_internal.c (re_string_reconstruct): Handle
74650         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74651         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74652         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74653         re_string_context_at.
74654
74655         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74656         now requires it.
74657         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74658         gl_REGEX now does it for us.
74659         (gl_REGEX): Add test taken from
74660         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74661
74662         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74663         Check that large offsets work.  Modernize Autoconf usages.
74664         Prefer "yes" to mean a good thing rather than a bad.
74665         Don't put "#define mkstemp" in config.h, as this might interfere
74666         with standard system headers that "#define mkstemp mkstemp64".
74667
74668         * modules/mkstemp (Depends-on): Add extensions, so that
74669         mkstemp is visible on some platforms.
74670         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74671         (Include): Change to "mkstemp.h" from <stdlib.h>.
74672         (Files): Add mkstemp.h.
74673
74674         * lib/mkstemp.h: New file, since some standard headers
74675         #define mkstemp.
74676         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74677         Include "mkstemp.h".
74678         Make the _LIBC code resemble glibc original more,
74679         e.g., use K&R style.
74680         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74681         (mkstemp): Remove, since mkstemp.h does this for us.
74682         * lib/stdlib--.h: Include mkstemp.h.
74683
74684         Import this patch from libc:
74685
74686         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74687
74688         * lib/tempname.c (__gen_tempname): Change attempts_min
74689         into a macro.  Use preprocessor to decide how to initialize
74690         attempts [Coverity CID 67].
74691
74692 2006-09-20  Bruno Haible  <bruno@clisp.org>
74693
74694         * lib/mkdtemp.c: Import from libc.
74695         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74696                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74697                 attempts_min into a macro.  Use preprocessor to decide how to
74698                 initialize attempts [Coverity CID 67].
74699         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74700                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74701                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74702
74703 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74704
74705         * gnulib-tool (func_exit): New function, to allow to pass the
74706         exit status portably through the trap.  Use everywhere.
74707         (--help, --version): Signal a write error.
74708         (trap): catch SIGPIPE, for write errors.
74709         Exit at the end of the trap, with the correct exit status.
74710
74711 2006-09-19  Karl Berry  <karl@gnu.org>
74712
74713         * doc/gnulib.texi: note about the license texinfo files.
74714
74715 2006-09-19  Eric Blake  <ebb9@byu.net>
74716
74717         * gnulib-tool: Avoid space-tab.
74718
74719 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74720
74721         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74722         that prevented coreutils 6.1 from building.  Problem reported
74723         by Petter Reinholdtsen.
74724
74725 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * gnulib-tool (avoidlist): Fix typo that broke options like
74728         --avoid=lock that are used by coreutils bootstrap.
74729
74730 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74731
74732         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74733         more systematically.
74734
74735 2006-09-18  Jim Meyering  <jim@meyering.net>
74736
74737         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74738
74739 2006-09-18  Bruno Haible  <bruno@clisp.org>
74740
74741         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74742
74743 2006-09-18  Bruno Haible  <bruno@clisp.org>
74744
74745         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74746         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74747         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74748         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74749         * m4/gettext.m4: Require autoconf >= 2.52.
74750         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74751         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74752         of gl_cv_header_inttypes_h.
74753
74754 2006-09-18  Bruno Haible  <bruno@clisp.org>
74755
74756         * lib/javaversion.c: Include configmake.h.
74757
74758 2006-09-18  Bruno Haible  <bruno@clisp.org>
74759
74760         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74761         avoid that the while loops be executed in a subshell.
74762
74763 2006-09-18  Bruno Haible  <bruno@clisp.org>
74764
74765         * MODULES.html.sh (func_module): Break long lines.
74766         Suggested by Bruce Korb <bkorb@gnu.org>.
74767
74768 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74769
74770         Speed up by a factor of 1.12.
74771         * gnulib-tool (nl): New variable.
74772         (func_import): Rewrite include directive extraction to only read each
74773         directive once.
74774
74775 2006-09-17  Bruno Haible  <bruno@clisp.org>
74776
74777         * modules/javaversion (Makefile.am): Remove DEFS setting.
74778         (Depends-on): Add configmake, for PKGDATADIR definition.
74779
74780 2006-09-17  Bruno Haible  <bruno@clisp.org>
74781
74782         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74783
74784 2006-09-17  Bruno Haible  <bruno@clisp.org>
74785
74786         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74787         (func_modules_transitive_closure, func_modules_add_dummy,
74788         func_modules_to_filelist, func_import, func_create_testdir,
74789         func_create_megatestdir, ...): Use it wherever possible.
74790         Suggested by Ralf Wildenhues.
74791
74792 2006-09-16  Karl Berry  <karl@gnu.org>
74793
74794         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74795         to avoid sectioning errors.
74796         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74797         [ifinfo]: blank line after @center-ed titles.
74798         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74799         Spell FSF address consistently with others.
74800         (These changes approved by rms.)
74801
74802 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74803
74804         Speed up by a factor of 1.61.
74805         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74806         already checked module names again.
74807
74808 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74809
74810         Speed up by a factor of 1.13.
74811         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74812         for new_files, and the input to func_add_or_update.
74813
74814 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74815
74816         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74817         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74818
74819 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74820
74821         * modules/mkancesdirs (Depends-on): Add fcntl.
74822         * modules/savewd: New file.
74823         * MODULES.html.sh (File system functions): Add savewd.
74824
74825         * modules/configmake (Makefile.am): Add support for the
74826         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74827
74828 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74829
74830         * m4/savewd.m4: New file.
74831
74832 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74833
74834         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74835         (dirchownmod): New arg FD.  All callers changed.
74836         Use FD rather than opening the directory ourself, as opening is
74837         now the caller's responsibility.
74838         * lib/dirchownmod.h: Likewise.
74839         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74840         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74841         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74842         (test_dir): Remove.
74843         (mkancesdirs): Return length of prefix of FILE that has already
74844         been made, or -2 if there is a child doing the work.  Redo
74845         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74846         ".", and treat ".." specially since it might stray back into
74847         already-created areas.  Use a subprocess if necessary.  New arg
74848         WD; all users changed.  MAKE_DIR function should now return 1
74849         if it creates a directory that is not readable.  Return -2 if
74850         a child process is spun off.
74851         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74852         Adjust signature to match code.
74853         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74854         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74855         all users changed.
74856         * lib/savewd.c, lib/savewd.h: New files.
74857
74858 2006-09-15  Jim Meyering  <jim@meyering.net>
74859
74860         * modules/rename-dest-slash: New module.
74861         * MODULES.html.sh (posix_compat): Add it here.
74862
74863         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74864
74865 2006-09-15  Jim Meyering  <jim@meyering.net>
74866
74867         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74868         file.
74869
74870         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74871
74872 2006-09-15  Jim Meyering  <jim@meyering.net>
74873
74874         * lib/rename-dest-slash.c (has_trailing_slash): Use
74875         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74876         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74877         test before testing whether SRC is a directory.
74878         Suggestions from Bruno Haible.
74879
74880         Avoid a warning about an unused variable.
74881         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74882         into the #ifdef block where it's used.
74883
74884         * lib/rename-dest-slash.c: New file.
74885
74886 2006-09-14  Bruno Haible  <bruno@clisp.org>
74887
74888         * lib/allocsa.c: Include <config.h> unconditionally.
74889         * lib/asnprintf.c: Likewise.
74890         * lib/asprintf.c: Likewise.
74891         * lib/c-strcasecmp.c: Likewise.
74892         * lib/c-strcasestr.c: Likewise.
74893         * lib/c-strncasecmp.c: Likewise.
74894         * lib/c-strstr.c: Likewise.
74895         * lib/classpath.c: Likewise.
74896         * lib/clean-temp.c: Likewise.
74897         * lib/concatpath.c: Likewise.
74898         * lib/copy-file.c: Likewise.
74899         * lib/csharpcomp.c: Likewise.
74900         * lib/csharpexec.c: Likewise.
74901         * lib/execute.c: Likewise.
74902         * lib/fatal-signal.c: Likewise.
74903         * lib/findprog.c: Likewise.
74904         * lib/fwriteerror.c: Likewise.
74905         * lib/gl_array_list.c: Likewise.
74906         * lib/gl_array_oset.c: Likewise.
74907         * lib/gl_avltree_list.c: Likewise.
74908         * lib/gl_avltree_oset.c: Likewise.
74909         * lib/gl_avltreehash_list.c: Likewise.
74910         * lib/gl_carray_list.c: Likewise.
74911         * lib/gl_linked_list.c: Likewise.
74912         * lib/gl_linkedhash_list.c: Likewise.
74913         * lib/gl_list.c: Likewise.
74914         * lib/gl_oset.c: Likewise.
74915         * lib/gl_rbtree_list.c: Likewise.
74916         * lib/gl_rbtree_oset.c: Likewise.
74917         * lib/gl_rbtreehash_list.c: Likewise.
74918         * lib/imaxabs.c: Likewise.
74919         * lib/imaxdiv.c: Likewise.
74920         * lib/javacomp.c: Likewise.
74921         * lib/javaexec.c: Likewise.
74922         * lib/javaversion.c: Likewise.
74923         * lib/linebreak.c: Likewise.
74924         * lib/localcharset.c: Likewise.
74925         * lib/lock.c: Likewise.
74926         * lib/mbchar.c: Likewise.
74927         * lib/mbswidth.c: Likewise.
74928         * lib/mkdtemp.c: Likewise.
74929         * lib/pipe.c: Likewise.
74930         * lib/printf-args.c: Likewise.
74931         * lib/printf-parse.c: Likewise.
74932         * lib/progname.c: Likewise.
74933         * lib/progreloc.c: Likewise.
74934         * lib/readlink.c: Likewise.
74935         * lib/sh-quote.c: Likewise.
74936         * lib/stpcpy.c: Likewise.
74937         * lib/stpncpy.c: Likewise.
74938         * lib/strcasecmp.c: Likewise.
74939         * lib/strcasestr.c: Likewise.
74940         * lib/strcspn.c: Likewise.
74941         * lib/striconv.c: Likewise.
74942         * lib/strncasecmp.c: Likewise.
74943         * lib/strnlen1.c: Likewise.
74944         * lib/strstr.c: Likewise.
74945         * lib/strtok_r.c: Likewise.
74946         * lib/tls.c: Likewise.
74947         * lib/tmpdir.c: Likewise.
74948         * lib/unicodeio.c: Likewise.
74949         * lib/unsetenv.c: Likewise.
74950         * lib/vasnprintf.c: Likewise.
74951         * lib/vasprintf.c: Likewise.
74952         * lib/wait-process.c: Likewise.
74953         * lib/xallocsa.c: Likewise.
74954         * lib/xsetenv.c: Likewise.
74955         * lib/xstriconv.c: Likewise.
74956
74957 2006-09-13  Simon Josefsson  <jas@extundo.com>
74958
74959         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74960         that internally, suggested by Ralf Wildenhues
74961         <Ralf.Wildenhues@gmx.de>.
74962
74963 2006-09-13  Simon Josefsson  <jas@extundo.com>
74964
74965         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74966         @LIBOBJS@.
74967         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74968
74969 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74970
74971         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74972         longer worry about uses that don't define HAVE_CONFIG_H.
74973         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74974         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74975         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74976         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74977         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74978         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74979         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74980         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74981         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74982         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74983         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74984         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74985         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74986         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74987         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74988         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74989         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74990         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74991         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74992         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74993         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74994         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74995         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74996         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74997         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74998         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74999         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
75000         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
75001         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
75002         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
75003         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
75004         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
75005         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
75006         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
75007         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
75008         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
75009         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
75010         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
75011         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
75012         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
75013         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
75014         Likewise.
75015
75016 2006-09-13  Eric Blake  <ebb9@byu.net>
75017
75018         * lib/getopt.c: Fix typo in last commit.
75019
75020 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75021
75022         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
75023         dgettext.
75024
75025 2006-09-12  Jim Meyering  <jim@meyering.net>
75026
75027         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
75028         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
75029         Reported by Nelson H. F. Beebe.
75030
75031 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75032
75033         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
75034         program_invocation_name and program_invocation_short_name are
75035         initialized.
75036         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75037         and program_invocation_short_name to argp.h, so they are visible
75038         to user programs.
75039         * lib/argp.h: Likewise
75040
75041 2006-09-10  Bruno Haible  <bruno@clisp.org>
75042
75043         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75044         m4/inttypes_h.m4, m4/uintmax_t.m4.
75045
75046 2006-09-10  Bruno Haible  <bruno@clisp.org>
75047
75048         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75049         gl_AC_TYPE_UINTMAX_T.
75050
75051 2006-09-10  Bruno Haible  <bruno@clisp.org>
75052
75053         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75054
75055 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75056
75057         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75058         convention.  Text proposed by Bruno Haible.
75059         (struct argp_option): Document the use of N_() wrappers.
75060
75061         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75062         '\v', and translate the two parts separately, instead of feeding
75063         the whole string to gettext.  This allows to exclude
75064         '\v' from the strings visible to the translator by writing doc
75065         strings as N_("..") "\v" N_("..").
75066
75067 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75068
75069         * config/srclist.txt: Undo latest change; the bug was fixed.
75070
75071 2006-09-09  Bruno Haible  <bruno@clisp.org>
75072
75073         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75074         assignments if building a library without libtool.
75075         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75076         in func_emit_lib_Makefile_am.
75077         (func_import): When building a static library libfoo.a, arrange to
75078         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75079         (func_create_testdir): Likewise.
75080         * modules/gc (configure.ac, Makefile.am): If building statically,
75081         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75082         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75083         * modules/striconv (configure.ac, Makefile.am): Likewise.
75084         Based on a suggestion by Ralf Wildenhues.
75085
75086 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75087
75088         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75089         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75090         Also:
75091
75092         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75093         Add year_2050_test to catch glibc bug 2821
75094         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75095
75096         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75097         Prefer #ifdef to #if.
75098
75099         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75100         Return from 'main' instead of calling 'exit'.
75101
75102 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75103
75104         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75105         returned the maximum time_t value rather than (time_t) -1.
75106         Problem originally reported by William Bardwell
75107         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75108
75109         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75110         Moved to here ...
75111         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75112         ... from here.
75113
75114 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75115
75116         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75117         2821 is fixed.
75118
75119 2006-09-08  Jim Meyering  <jim@meyering.net>
75120
75121         Don't make generated files read-only.  That would bother too many
75122         people.  However, do retain the ability to work when targets are
75123         read-only: remove the destination and temporary files before writing
75124         them (when generated via sed or echo), or by using the -f option for
75125         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75126         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75127         * modules/byteswap, modules/configmake, modules/fcntl:
75128         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75129         * modules/localcharset, modules/netinet_in, modules/poll:
75130         * modules/stdbool, modules/stdint, modules/sys_select:
75131         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75132
75133 2006-09-08  Jim Meyering  <jim@meyering.net>
75134
75135         Avoid new build failure on FreeBSD 6.0.
75136         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75137         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75138         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75139
75140 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75141
75142         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75143
75144 2006-09-07  Jim Meyering  <jim@meyering.net>
75145
75146         Fix global typo in last change: use chmod u-w, not chmod u-x.
75147         Spotted by Paul Eggert and Bruce Korb.
75148         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75149         * modules/byteswap, modules/configmake, modules/fcntl:
75150         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75151         * modules/localcharset, modules/netinet_in, modules/poll:
75152         * modules/stdbool, modules/stdint, modules/sys_select:
75153         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75154
75155 2006-09-06  Jim Meyering  <jim@meyering.net>
75156
75157         Make generated files be read-only.
75158         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75159         Ensure that each generated file is now read-only.
75160         * modules/argz: Likewise.
75161         * modules/arpa_inet: Likewise.
75162         * modules/byteswap: Likewise.
75163         * modules/configmake: Likewise.
75164         * modules/fcntl: Likewise.
75165         * modules/fnmatch: Likewise.
75166         * modules/getopt: Likewise.
75167         * modules/glob: Likewise.
75168         * modules/inttypes: Likewise.
75169         * modules/netinet_in: Likewise.
75170         * modules/poll: Likewise.
75171         * modules/stdbool: Likewise.
75172         * modules/stdint: Likewise.
75173         * modules/sys_select: Likewise.
75174         * modules/sys_socket: Likewise.
75175         * modules/sys_stat: Likewise.
75176         * modules/sysexits: Likewise.
75177         * modules/localcharset: Same as above, but continue using temporary
75178         file named "t-$@" (why different?) rather than the "$@-t" used
75179         everywhere else.
75180
75181         * modules/sysexits (Makefile.am): Replace literal occurrences
75182         of "sysexit.h" more readable, and more consistent, "$@".
75183
75184 2006-09-06  Bruno Haible  <bruno@clisp.org>
75185
75186         * modules/striconv: New file.
75187         * modules/xstriconv: New file.
75188         * MODULES.html.sh (Internationalization functions): Add striconv,
75189         xstriconv.
75190
75191 2006-09-06  Bruno Haible  <bruno@clisp.org>
75192
75193         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75194         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75195         not using libtool correctly.
75196
75197 2006-09-06  Bruno Haible  <bruno@clisp.org>
75198
75199         * lib/striconv.h: New file.
75200         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75201         iconvstring.c.
75202         * lib/xstriconv.h: New file.
75203         * lib/xstriconv.c: New file.
75204
75205 2006-09-06  Bruno Haible  <bruno@clisp.org>
75206
75207         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75208         lib_..._LDFLAGS.
75209
75210 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75211
75212         * lib/argz_.h: Sync from Libtool.
75213
75214         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75215                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75216
75217         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75218
75219 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75220
75221         * modules/trim: New file.
75222
75223 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75224
75225         * lib/trim.h: New file.
75226         * lib/trim.c: New file.
75227
75228 2006-09-05  Bruno Haible  <bruno@clisp.org>
75229
75230         * MODULES.html.sh (String handling): Add trim.
75231
75232 2006-09-04  Karl Berry  <karl@gnu.org>
75233
75234         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75235         until next release.
75236
75237 2006-09-03  Bruno Haible  <bruno@clisp.org>
75238
75239         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75240         correctly.
75241
75242 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75243
75244         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75245         not gl_GETLOADAVG.  Omit unneeded semicolons.
75246         Problems reported by Ralf Wildenhues in
75247         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75248         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75249         at the end, which is the usual gnulib style.
75250
75251         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75252         of doing all the work ourselves.
75253         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75254         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75255
75256 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75257
75258         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75259         Problem reported by Ralf Wildenhues in
75260         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75261
75262         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75263         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75264
75265 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75266
75267         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75268         yesterday's patch by changing test -n to test -z.
75269
75270 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75271
75272         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75273         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75274         the former is now obsolescent.
75275
75276         * modules/chdir-long (Depends-on): Add fcntl.
75277
75278 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75279
75280         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75281         obsolescent, and programs should use gnulib instead.
75282         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75283         but with prefixes changed.
75284
75285 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75286
75287         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75288         or stdbool.h, because they might not exist while configuring.
75289
75290         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
75291         Don't include unistd.h or limits.h; not needed, since chdir-long.h
75292         does that for us.
75293         (O_DIRECTORY): Remove.
75294
75295 2006-08-31  Eric Blake  <ebb9@byu.net>
75296
75297         * gnulib-tool: Don't let emacs change spaces to TAB.
75298
75299 2006-08-31  Bruno Haible  <bruno@clisp.org>
75300
75301         * gnulib-tool: When calling func_import more than once, do it in a
75302         subshell.
75303         Reported by Eric Blake <ebb9@byu.net>.
75304
75305 2006-08-31  Bruno Haible  <bruno@clisp.org>
75306
75307         * gnulib-tool (nl): Remove variable.
75308         (sed_transform_lib_file): Use more robust test for config-h module.
75309         (func_import): Fix typo in 2006-08-25 patch.
75310
75311 2006-08-31  Bruno Haible  <bruno@clisp.org>
75312
75313         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75314         specified, augment Makefile.am variables instead of assigning them.
75315
75316 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75317
75318         Work around a bug in both the Linux and SunOS 64-bit kernels:
75319         nanosleep mishandles sleeps for longer than 2**31 seconds.
75320         Problem reported by Frank v Waveren in
75321         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75322         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75323         Check for nanosleep bug.
75324         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75325
75326 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75327
75328         Work around a bug in both the Linux and SunOS 64-bit kernels:
75329         nanosleep mishandles sleeps for longer than 2**31 seconds.
75330         Problem reported by Frank v Waveren in
75331         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75332         * lib/nanosleep.c (BILLION): New constant.
75333         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75334         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75335         implementation.
75336
75337 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75338
75339         * modules/nanosleep (Depends-on): Add gettime.
75340
75341 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75342         and Simon Josefsson  <jas@extundo.com>
75343         and Oskar Liljeblad  <oskar@osk.mine.nu>
75344
75345         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75346         * gnulib-tool (func_import): New license type 'unmodifiable license
75347         text'.
75348         * modules/fdl: Use it.  Longer description.
75349         * module/gpl, module/lgpl: New files.
75350
75351 2006-08-30  Jim Meyering  <jim@meyering.net>
75352
75353         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75354         shadowing the parameter.
75355
75356 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75357
75358         Sync from Libtool:
75359
75360         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75361
75362         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75363         sharing with gnulib.  Report by Eric Blake.
75364
75365 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75366
75367         * modules/isapipe: New file.
75368         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
75369
75370 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75371
75372         * modules/configmake (Makefile.am): Add a comment, and omit
75373         the CONFIGMAKE_ prefix from generated macro names.  Suggested
75374         by Bruno Haible.
75375
75376 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75377
75378         * m4/isapipe.m4: New file.
75379
75380 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75381
75382         * lib/isapipe.c, lib/isapipe.h: New files.
75383
75384 2006-08-29  Jim Meyering  <jim@meyering.net>
75385
75386         * modules/configmake (Makefile.am): Make configmake.h depend on
75387         Makefile.  Otherwise, a stale configmake.h could hang around.
75388
75389 2006-08-29  Eric Blake  <ebb9@byu.net>
75390
75391         * lib/error.c (error_at_line, print_errno_message): Match libc, after
75392         resolution of upstream bug 3044.
75393
75394 2006-08-29  Bruno Haible  <bruno@clisp.org>
75395
75396         * modules/localcharset (Depends-on): Add configmake.
75397         (Makefile.am): Remove setting of LIBDIR through DEFS.
75398
75399 2006-08-29  Bruno Haible  <bruno@clisp.org>
75400
75401         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
75402         defined.
75403
75404 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75405
75406         * modules/fcntl: New file.
75407         * modules/chdir-safer (Depends-on): Add fcntl.
75408         * modules/fts: Likewise.
75409         * modules/mkdir-p: Likewise.
75410
75411         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
75412         This undoes the most recent change, since we're now addressing the
75413         problem in a different way.
75414
75415         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
75416         into output, since the output might be called Makefile.am even
75417         if $makefile_name is something different.
75418         (func_import): Use $makefile_am rather than
75419         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
75420         empty.
75421
75422         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75423
75424 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75425
75426         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75427         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75428         recent change to stdint.m4, since we're now addressing the problem in a
75429         different way.
75430
75431 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75432
75433         * m4/fcntl_h.m4: New file.
75434
75435 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75436
75437         * lib/fcntl_.h: New file.
75438         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75439         the fcntl module.
75440         * lib/dirchownmod.c: Likewise.
75441         * lib/fts.c: Likewise.
75442
75443         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
75444         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
75445         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
75446         just before including <inttypes.h>, to avoid circular inclusion.
75447
75448 2006-08-28  Jim Meyering  <jim@meyering.net>
75449
75450         * doc/visibility.texi: Actually read and correct the grammar of the
75451         sentence affected by yesterday's change.
75452
75453 2006-08-28  Eric Blake  <ebb9@byu.net>
75454
75455         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
75456         needs wrapper.
75457
75458 2006-08-28  Eric Blake  <ebb9@byu.net>
75459
75460         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
75461
75462 2006-08-28  Eric Blake  <ebb9@byu.net>
75463
75464         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75465
75466 2006-08-28  Bruno Haible  <bruno@clisp.org>
75467
75468         * modules/c-strstr: New file, from GNU gettext.
75469         * MODULES.html.sh (String handling): Add c-strstr.
75470
75471 2006-08-28  Bruno Haible  <bruno@clisp.org>
75472
75473         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
75474         macros.
75475         Reported by Eric Blake.
75476
75477 2006-08-28  Bruno Haible  <bruno@clisp.org>
75478
75479         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
75480         (VASNPRINTF): Return a string of length > INT_MAX without failing.
75481         * lib/vasprintf.c: Include errno.h, limits.h.
75482         (EOVERFLOW): New fallback definition.
75483         (vasprintf): Test here whether the string length is > INT_MAX.
75484         * lib/vsnprintf.c: Include errno.h, limits.h.
75485         (EOVERFLOW): New fallback definition.
75486         (vsnprintf): Fix bug when generated string was too long for the buffer.
75487         Test here whether the string length is > INT_MAX.
75488
75489 2006-08-28  Bruno Haible  <bruno@clisp.org>
75490
75491         * lib/inttypes_.h (SCNX*): Remove definitions.
75492         Reported by Eric Blake.
75493
75494 2006-08-28  Bruno Haible  <bruno@clisp.org>
75495
75496         * lib/c-strstr.h: New file, from GNU gettext.
75497         * lib/c-strstr.c: New file, from GNU gettext.
75498
75499 2006-08-28  Bruno Haible  <bruno@clisp.org>
75500
75501         * gnulib-tool: Reorder some statements.
75502
75503 2006-08-28  Bruno Haible  <bruno@clisp.org>
75504
75505         * gnulib-tool: New option --makefile-name.
75506         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
75507         $makefile_name.
75508         (func_import): Write $makefile_name to the cache file, and read it from
75509         there unless explicitly specified. Use $makefile_name as file name
75510         instead of Makefile.am. Adjust the recommendations accordingly.
75511
75512 2006-08-28  Bruno Haible  <bruno@clisp.org>
75513
75514         * gnulib-tool (func_verify_module): Check against misapplying patch.
75515
75516 2006-08-28  Bruno Haible  <bruno@clisp.org>
75517
75518         * gnulib-tool (func_relativize, func_relconcat): New functions.
75519         Give an error if --local-dir is given with --update.
75520         Remove trailing slashes from $local_gnulib_dir.
75521         (func_import): Store the relativized $local_gnulib_dir in
75522         gnulib-cache.m4, and read it from there if not specified explicitly.
75523
75524 2006-08-28  Bruno Haible  <bruno@clisp.org>
75525
75526         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75527         is the current directory. Respect also $local_gnulib_dir.
75528
75529 2006-08-28  Bruno Haible  <bruno@clisp.org>
75530             Simon Josefsson  <jas@extundo.com>
75531
75532         BeOS portability.
75533         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75534
75535 2006-08-27  Jim Meyering  <jim@meyering.net>
75536
75537         * doc/visibility.texi: Remove duplicate word: "pointer".
75538
75539 2006-08-26  Bruno Haible  <bruno@clisp.org>
75540
75541         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75542         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75543         (Makefile.am): Create inttypes.h from inttypes_.h.
75544         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75545
75546         * modules/imaxabs: New file.
75547
75548         * modules/imaxdiv: New file.
75549
75550 2006-08-26  Bruno Haible  <bruno@clisp.org>
75551
75552         * m4/inttypes.m4: New file.
75553         * m4/_inttypes_h.m4: Remove file.
75554         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75555         PRI_MACROS_BROKEN.
75556         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75557
75558         * m4/imaxabs.m4: New file.
75559
75560         * m4/imaxdiv.m4: New file.
75561
75562 2006-08-26  Bruno Haible  <bruno@clisp.org>
75563
75564         * lib/inttypes_.h: New file.
75565         * lib/inttypes.h: Remove file.
75566         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75567
75568         * lib/imaxabs.c: New file.
75569
75570         * lib/imaxdiv.c: New file.
75571
75572 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75573
75574         New config-h module, so that "make" output needn't be cluttered
75575         by -DHAVE_CONFIG_H.
75576         * MODULES.html.sh (Support for building libraries and executables):
75577         Add config-h.
75578         * modules/config-h: New file.
75579         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75580         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75581         the config-h module is used.
75582
75583         New configmake module, so that "make" output needn't be cluttered
75584         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75585         * MODULES.html.sh (Support for building libraries and executables):
75586         Add configmake.
75587         * modules/configmake: New file.
75588
75589 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75590
75591         * m4/config-h.m4: New file.
75592
75593 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75594
75595         * config/srclist.txt: Add elisp-comp.
75596
75597 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75598
75599         * MODULES.html.sh (Support for building libraries and executables):
75600         Add elisp-comp.
75601         * build-aux/elisp-comp: New file.
75602         * modules/elisp-comp: New file.
75603
75604 2006-08-24  Bruno Haible  <bruno@clisp.org>
75605
75606         * gnulib-tool (func_create_testdir): Use non-default values of
75607         sourcebase and m4base.
75608
75609 2006-08-24  Bruno Haible  <bruno@clisp.org>
75610
75611         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75612         HTML structure.
75613
75614 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75615
75616         * modules/openat (Depends-on): Add lchown.
75617
75618 2006-08-23  Bruno Haible  <bruno@clisp.org>
75619
75620         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75621         of gl_LOCK_EARLY instead of gl_LOCK.
75622
75623 2006-08-23  Bruno Haible  <bruno@clisp.org>
75624
75625         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75626         on OSF/1 to no.
75627         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75628
75629 2006-08-23  Bruno Haible  <bruno@clisp.org>
75630
75631         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75632         as unusable.
75633
75634         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75635         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75636         (gl_LOCK): New macro.
75637
75638 2006-08-22  Simon Josefsson  <jas@extundo.com>
75639
75640         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75641         to md5 module.
75642
75643 2006-08-22  Simon Josefsson  <jas@extundo.com>
75644
75645         * MODULES.html.sh: Add "Support for maintaining and release
75646         projects".
75647
75648         * build-aux/gnupload: New file, from coreutils.
75649
75650 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75651
75652         Avoid the need for AC_LIBSOURCES in m4 macros.
75653         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75654         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75655         * modules/check-version (EXTRA_DIST): Add check-version.h.
75656         * modules/crc (EXTRA_DIST): Add crc.h.
75657         * modules/des (EXTRA_DIST): Add des.h.
75658         * modules/gc (EXTRA_DIST): Add gc.h.
75659         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75660         * modules/getline (EXTRA_DIST): Add getline.h.
75661         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75662         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75663         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75664         * modules/md2 (EXTRA_DIST): Add md2.h.
75665         * modules/md4 (EXTRA_DIST): Add md4.h.
75666         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75667         * modules/read-file (EXTRA_DIST): Add read-file.h.
75668         * modules/readline (EXTRA_DIST): Add readline.h.
75669         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75670         rijndael-api-fst.h.
75671
75672 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75673
75674         * m4/rijndael.m4 (gl_ARCFOUR):
75675         * m4/arctwo.m4 (gl_ARCTWO):
75676         * m4/check-version.m4 (gl_CHECK_VERSION):
75677         * m4/crc.m4 (gl_CRC):
75678         * m4/des.m4 (gl_DES):
75679         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75680         * m4/gc.m4 (gl_GC):
75681         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75682         * m4/getline.m4 (gl_FUNC_GETLINE):
75683         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75684         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75685         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75686         * m4/md2.m4 (gl_MD2):
75687         * m4/md4.m4 (gl_MD4):
75688         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75689         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75690         * m4/readline.m4 (gl_FUNC_READLINE):
75691         * m4/rijndael.m4 (gl_RIJNDAEL):
75692         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75693         to get the necessary .h files and whatnot.
75694
75695 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75696
75697         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75698         gnulib rather than the other way around.
75699         * config/srclistvars.sh (COREUTILS): Remove.
75700
75701 2006-08-22  Jim Meyering  <jim@meyering.net>
75702
75703         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75704
75705         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75706
75707 2006-08-22  Eric Blake  <ebb9@byu.net>
75708
75709         * modules/regexprops-generic: New file.
75710         * MODULES.html.sh (Support for building documentation): List it.
75711
75712 2006-08-22  Eric Blake  <ebb9@byu.net>
75713
75714         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75715         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75716         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75717         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75718
75719 2006-08-22  Bruno Haible  <bruno@clisp.org>
75720
75721         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75722         and lib_LTLIBRARIES like the other lib_* variables.
75723
75724 2006-08-22  Bruno Haible  <bruno@clisp.org>
75725
75726         * build-aux/x-to-1.in: New file, from GNU gettext.
75727
75728 2006-08-22  Bruno Haible  <bruno@clisp.org>
75729
75730         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75731         <utmpx.h> exists.
75732
75733 2006-08-22  Bruno Haible  <bruno@clisp.org>
75734
75735         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75736         <utmpx.h> exists.
75737
75738 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75739
75740         BeOS portability.
75741         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75742         exist.
75743         Problem reported by Bruno Haible.
75744
75745 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75746
75747         Avoid the need for AC_LIBSOURCES in m4 macros.
75748         * modules/acl (EXTRA_DIST): Add acl.h.
75749         * modules/argmatch (Files): Add m4/argmatch.m4.
75750         (configure.ac): Add gl_ARGMATCH.
75751         (EXTRA_DIST): Renamed from lib_SOURCES, for
75752         consistency with the other modules.  Remove argmatch.c.
75753         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75754         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75755         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75756         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75757         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75758         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75759         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75760         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75761         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75762         * modules/closeout (EXTRA_DIST): Add closeout.h.
75763         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75764         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75765         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75766         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75767         dirname.h; remove basename.c and stripslash.c.
75768         * modules/exclude (EXTRA_DIST): Add exclude.h.
75769         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75770         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75771         * modules/file-type (EXTRA_DIST): Add file-type.h.
75772         * modules/filemode (EXTRA_DIST): Add filemode.h.
75773         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75774         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75775         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75776         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75777         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75778         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75779         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75780         * modules/getdate (EXTRA_DIST): Add getdate.c.
75781         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75782         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75783         * modules/getpass (EXTRA_DIST): Add getpass.h.
75784         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75785         * modules/group-member (EXTRA_DIST): Add group-member.h.
75786         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75787         * modules/hash (EXTRA_DIST): Add hash.h.
75788         * modules/human (EXTRA_DIST): Add human.h.
75789         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75790         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75791         * modules/lchown (EXTRA_DIST): Add lchown.h.
75792         * modules/long-options (EXTRA_DIST): Add long-options.h.
75793         * modules/lstat (EXTRA_DIST): Add lstat.h.
75794         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75795         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75796         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75797         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75798         * modules/memxor (EXTRA_DIST): Add memxor.h.
75799         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75800         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75801         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75802         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75803         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75804         * modules/physmem (EXTRA_DIST): Add physmem.h.
75805         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75806         * modules/posixver (EXTRA_DIST): Add posixver.h.
75807         * modules/quote (EXTRA_DIST): Add quote.h.
75808         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75809         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75810         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75811         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75812         regex_internal.h regexec.c.
75813         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75814         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75815         * modules/same (EXTRA_DIST): Add same.h.
75816         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75817         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75818         * modules/savedir (EXTRA_DIST): Add savedir.h.
75819         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75820         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75821         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75822         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75823         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75824         * modules/strdup (EXTRA_DIST): Add strdup.h.
75825         * modules/strftime (EXTRA_DIST): Add strftime.h.
75826         * modules/strndup (EXTRA_DIST): Add strndup.h.
75827         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75828         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75829         * modules/time_r (EXTRA_DIST): Add time_r.h.
75830         * modules/timespec (EXTRA_DIST): Add timespec.h.
75831         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75832         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75833         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75834         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75835         * modules/userspec (EXTRA_DIST): Add userspec.h.
75836         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75837         * modules/utimens (EXTRA_DIST): Add utimens.h.
75838         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75839         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75840         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75841         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75842         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75843         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75844         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75845         * modules/yesno (EXTRA_DIST): Add yesno.h.
75846
75847 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75848
75849         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75850
75851         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75852         * m4/dev-ino.m4, same-inode.m4: Remove.
75853
75854         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75855         * m4/acl.m4 (AC_FUNC_ACL):
75856         * m4/backupfile.m4 (gl_BACKUPFILE):
75857         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75858         * m4/canon-host.m4 (gl_CANON_HOST):
75859         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75860         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75861         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75862         * m4/cloexec.m4 (gl_CLOEXEC):
75863         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75864         * m4/closeout.m4 (gl_CLOSEOUT):
75865         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75866         * m4/dirname.m4 (gl_DIRNAME):
75867         * m4/exclude.m4 (gl_EXCLUDE):
75868         * m4/exitfail.m4 (gl_EXITFAIL):
75869         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75870         * m4/file-type.m4 (gl_FILE_TYPE):
75871         * m4/filemode.m4 (gl_FILEMODE):
75872         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75873         * m4/fpending.m4 (gl_FUNC_FPENDING):
75874         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75875         * m4/fts.m4 (gl_FUNC_FTS):
75876         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75877         * m4/getdate.m4 (gl_GETDATE):
75878         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75879         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75880         * m4/getpass.m4 (gl_FUNC_GETPASS):
75881         * m4/gettime.m4 (gl_GETTIME):
75882         * m4/getugroups.m4 (gl_GETUGROUPS):
75883         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75884         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75885         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75886         * m4/hash.m4 (gl_HASH):
75887         * m4/idcache.m4 (gl_IDCACHE):
75888         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75889         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75890         * m4/long-options.m4 (gl_LONG_OPTIONS):
75891         * m4/lstat.m4 (gl_FUNC_LSTAT):
75892         * m4/md5.m4 (gl_MD5):
75893         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75894         * m4/memcoll.m4 (gl_MEMCOLL):
75895         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75896         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75897         * m4/memxor.m4 (gl_MEMXOR):
75898         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75899         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75900         * m4/modechange.m4 (gl_MODECHANGE):
75901         * m4/mountlist.m4 (gl_MOUNTLIST):
75902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75903         * m4/openat.m4 (gl_FUNC_OPENAT):
75904         * m4/pathmax.m4 (gl_PATHMAX):
75905         * m4/physmem.m4 (gl_PHYSMEM):
75906         * m4/posixtm.m4 (gl_POSIXTM):
75907         * m4/posixver.m4 (gl_POSIXVER):
75908         * m4/quote.m4 (gl_QUOTE):
75909         * m4/quotearg.m4 (gl_QUOTEARG):
75910         * m4/readtokens.m4 (gl_READTOKENS):
75911         * m4/readutmp.m4 (gl_READUTMP):
75912         * m4/regex.m4 (gl_REGEX):
75913         * m4/safe-read.m4 (gl_SAFE_READ):
75914         * m4/safe-write.m4 (gl_SAFE_WRITE):
75915         * m4/same.m4 (gl_SAME):
75916         * m4/save-cwd.m4 (gl_SAVE_CWD):
75917         * m4/savedir.m4 (gl_SAVEDIR):
75918         * m4/settime.m4 (gl_SETTIME):
75919         * m4/sha1.m4 (gl_SHA1):
75920         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75921         * m4/stat-macros.m4 (gl_STAT_MACROS):
75922         * m4/stat-time.m4 (gl_STAT_TIME):
75923         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75924         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75925         * m4/strdup.m4 (gl_FUNC_STRDUP):
75926         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75927         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75928         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75929         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75930         * m4/time_r.m4 (gl_TIME_R):
75931         * m4/timespec.m4 (gl_TIMESPEC):
75932         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75933         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75934         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75935         * m4/userspec.m4 (gl_USERSPEC):
75936         * m4/utimecmp.m4 (gl_UTIMECMP):
75937         * m4/utimens.m4 (gl_UTIMENS):
75938         * m4/xalloc.m4 (gl_XALLOC):
75939         * m4/xgetcwd.m4 (gl_XGETCWD):
75940         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75941         * m4/xreadlink.m4 (gl_XREADLINK):
75942         * m4/xstrtod.m4 (gl_XSTRTOD):
75943         * m4/yesno.m4 (gl_YESNO):
75944         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75945         to get the necessary .h files and whatnot.
75946
75947 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75948             Bruno Haible  <bruno@clisp.org>
75949
75950         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75951         /bin/sh understanding of '!' conditional negation.
75952
75953 2006-08-21  Jim Meyering  <jim@meyering.net>
75954
75955         * modules/openat (Depends-on): Really alphabetize.
75956
75957         * modules/acl (Depends-on): Add error and quote.
75958
75959         * check-module (find_included_lib_files): Add at-func.c to the
75960         ok-to-include-more-than-once white list.
75961
75962         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75963
75964 2006-08-21  Bruno Haible  <bruno@clisp.org>
75965
75966         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75967         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75968         Reported by Martin Lambers <marlam@marlam.de>.
75969
75970 2006-08-21  Bruno Haible  <bruno@clisp.org>
75971
75972         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75973         specify an installation location, don't emit a noinst_LIBRARIES or
75974         noinst_LTLIBRARIES assignment.
75975
75976 2006-08-21  Bruno Haible  <bruno@clisp.org>
75977
75978         BeOS portability.
75979         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75980         BeOS has mbrtowc() but no <wctype.h>.
75981
75982 2006-08-21  Bruno Haible  <bruno@clisp.org>
75983
75984         BeOS portability.
75985         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75986         exist.
75987
75988 2006-08-21  Bruno Haible  <bruno@clisp.org>
75989
75990         BeOS portability.
75991         * lib/mbchar.h: Include <wctype.h> only if it exists.
75992
75993 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75994
75995         Remove files that are no longer needed by their respective modules.
75996         * m4/obstack.m4: Remove.
75997         * m4/strerror_r.m4: Remove.
75998         * m4/uint32_t.m4: Remove.
75999         * m4/uintptr_t.m4: Remove.
76000         * m4/ullong_max.m4: Remove.
76001         * m4/xstrtoimax.m4: Remove.
76002         * m4/xstrtoumax.m4: Remove.
76003
76004         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
76005         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
76006         dependencies now capture this.
76007
76008         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
76009         Do not use AC_LIBSOURCES, since gnulib modules now do this.
76010         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
76011         * m4/human.m4 (gl_HUMAN): Likewise.
76012         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
76013         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
76014
76015         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
76016
76017         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
76018         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
76019         stdint.
76020         * m4/human.m4 (gl_HUMAN): Likewise.
76021         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
76022         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
76023         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76024         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76025         * m4/xstrtol (gl_XSTRTOL): Likewise.
76026
76027         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
76028         AC_TYPE_LONG_LONG_INT.
76029         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76030         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
76031         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
76032         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76033
76034         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76035         on stdbool.
76036
76037         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76038         (gl_PREREQ_XSTRTOUL): Remove.
76039
76040         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76041
76042         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76043         mode.
76044
76045 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76046
76047         Add and change modules to make it easier for coreutils to use
76048         gnulib-tool.
76049         * modules/backupfile (Files): Remove m4/d-ino.m4.
76050         (Depends-on): Add d-ino.
76051         * modules/cycle-check (Depends-on): Add stdint.
76052         (lib_SOURCES): Add cycle-check.h.
76053         * modules/d-ino: New module.
76054         * modules/d-type: New module.
76055         * modules/error (Files): Remove m4/strerror_r.m4.
76056         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76057         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76058         m4/inttypes_h.m4, m4/uintmax_t.m4.
76059         (Depends-on): Add stdint.
76060         (lib_SOURCES): Add fsusage.h.
76061         * modules/getcwd (Files): Remove d-ino.m4.
76062         (Depends-on): Add d-ino.
76063         * modules/getndelim2 (Depends-on): Add stdint.
76064         * modules/glob (Files): Remove m4/d-type.m4.
76065         (Depends-on): Add d-type.
76066         * modules/host-os: New module.
76067         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76068         m4/inttypes_h.m4, m4/uintmax_t.m4.
76069         * Depends-on: Add stdint.
76070         (lib_SOURCES): Add human.h.
76071         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76072         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76073         m4/uintmax_t.m4, m4/ulonglong.m4.
76074         (Depends-on): Add stdint.
76075         (EXTRA_DIST): Add inttostr.h.
76076         * modules/lchmod: New module.
76077         * modules/link-follow: New module.
76078         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76079         (Depends-on): Add lchmod.
76080         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76081         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76082         (Depends-on): Add stdint.
76083         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76084         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76085         (Depends-on): Add stdint.
76086         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76087         * modules/perl: New module.
76088         * modules/regex (Depends-on): Add stdint.
76089         * modules/rmdir-errno: New module.
76090         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76091         m4/intmax_t.m4.
76092         (Depends-on): Add stdint.
76093         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76094         m4/uintmax_t.m4.
76095         (Depends-on): Add stdint.
76096         * modules/unlink-busy: New module.
76097         * modules/utimecmp (Depends-on): Add stdint.
76098         * modules/uptime: New module.
76099         * modules/winsz-ioctl: New module.
76100         * modules/winsz-termios: New module.
76101         * modules/xnanosleep (Depends-on): Add nanosleep.
76102         * modules/ullong_max: Remove.
76103         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76104         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76105         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76106         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76107         (Depends-on): Add inttypes.
76108         (lib_SOURCES): Add xstrtol.h.
76109         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76110         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76111         * MODULES.html.sh: Move 'assert' into the assert section.
76112         Move 'dummy' into the linking section.
76113         Remove ullong_max.
76114         Add section for compatibility checks for POSIX:2001 functions,
76115         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76116         winsz-ioctl, and winsz-termios into it.
76117         Add lchmod.
76118         Add top-level Misc section and put host-os, perl, and uptime
76119         into it.
76120
76121 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76122
76123         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76124         now assume the stdint module.  Do not include inttypes.h.
76125         * lib/fsusage.h: Likewise.
76126         * lib/getndelim2.c: Likewise.
76127         * lib/human.h: Likewise.
76128         * lib/inttostr.h: Likewise.
76129         * lib/obstack.c: Likewise.
76130         * lib/regex_internal.h: Likewise.
76131         * lib/tempname.c: Likewise.
76132         * lib/utimecmp.c: Likewise.
76133         * lib/xstrtol.h: Likewise.
76134
76135         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76136
76137         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76138         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76139         * lib/xtime.h: Likewise.
76140
76141 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76142
76143         * modules/openat (Files): Add lib/fchmodat.c.
76144         Fixes problem reported by Jay Youngman.
76145
76146 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76147
76148         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76149         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76150
76151 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76152             Bruno Haible  <bruno@clisp.org>
76153
76154         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76155         and is a script that invokes bison. Tighten the code. Add comments.
76156
76157 2006-08-18  Jim Meyering  <jim@meyering.net>
76158
76159         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76160         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76161         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76162         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76163
76164 2006-08-18  Bruno Haible  <bruno@clisp.org>
76165
76166         * modules/bison-i18n: New file.
76167         * MODULES.html.sh (Internationalization functions): Add it.
76168
76169 2006-08-18  Bruno Haible  <bruno@clisp.org>
76170
76171         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76172         sys/statvfs.h. When getmntinfo was found, check its declaration and
76173         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76174
76175 2006-08-18  Bruno Haible  <bruno@clisp.org>
76176
76177         * m4/bison-i18n.m4: New file, from bison.
76178
76179 2006-08-18  Bruno Haible  <bruno@clisp.org>
76180
76181         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76182         (ME_DUMMY): Treat "kernfs" as a dummy.
76183         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76184
76185 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76186
76187         Update from coreutils.
76188
76189         2006-08-15  Jim Meyering  <jim@meyering.net>
76190
76191         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76192
76193         2006-01-17  Jim Meyering  <jim@meyering.net>
76194
76195         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76196
76197         2006-01-11  Jim Meyering  <jim@meyering.net>
76198
76199         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76200         Check for the lchmod function.
76201
76202 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76203
76204         Update from coreutils.
76205
76206         * lib/__fpending.h: Add copyright notice.
76207         * lib/fprintftime.h: Likewise.
76208         * lib/savedir.c: Use (C) in copyright notice.
76209         * lib/savedir.h: Likewise.
76210
76211         2006-08-15  Jim Meyering  <jim@meyering.net>
76212
76213         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76214         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76215         in support of the EXPECTED_ERRNO macro.
76216         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76217         definitions.  Instead, define the appropriate symbols and include
76218         "at-func.c".
76219         * lib/mkdirat.c (mkdirat): Likewise.
76220         * lib/fchmodat.c (fchmodat): Likewise.
76221         (ENOSYS): Remove definition.
76222         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76223         it.  Don't include "unistd--.h" -- it wasn't ever used.
76224
76225         2006-01-17  Jim Meyering  <jim@meyering.net>
76226
76227         Rewrite fts.c not to change the current working directory,
76228         by using openat, fstatat, fdopendir, etc..
76229
76230         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76231         (HAVE_OPENAT_SUPPORT): Define.
76232         [_LIBC] (fchdir): Don't undef or define; no longer used.
76233         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76234         Now, this `function' always succeeds, and consumes its file descriptor
76235         parameter -- so callers must not close such FDs.  Update callers.
76236         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76237         (diropen): Add parameter, SP.  Adjust all callers.
76238         Implement using diropen_fd, rather than open.
76239         (fts_open): Initialize new member, fts_cwd_fd.
76240         Remove fts_rft-setting code.
76241         (fts_close): Close fts_cwd_fd, if necessary.
76242         (__opendir2): Define in terms of opendir or opendirat,
76243         depending on whether the FST_NOCHDIR flag is set.
76244         (fts_build): Since fts_safe_changedir consumes its FD, and since
76245         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76246         and close the dup'd file descriptor upon failure.
76247         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76248         (fts_safe_changedir): Tweak semantics to reflect that this function
76249         now calls cwd_advance_fd and hence consumes its FD argument.
76250         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76251         [struct FTS] (fts_rft): Remove now-unused member.
76252         [struct FTS] (fts_cycle.state): Improve comment.
76253
76254         * lib/openat.c (openat_needs_fchdir): New function.
76255         * lib/openat.h (openat_needs_fchdir): Declare it.
76256
76257 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76258
76259         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76260         Problem and fix reported by Pádraig Brady in
76261         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76262
76263 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76264
76265         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76266
76267 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76268
76269         * lib/memcoll.c (memcoll): Optimize for the common case where the
76270         arguments are bytewise equal.
76271
76272 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76273
76274         * doc/regexprops-generic.texi: Add a copyright notice.
76275
76276 2006-08-15  Bruno Haible  <bruno@clisp.org>
76277
76278         * modules/tmpdir (License): Change to LGPL.
76279
76280 2006-08-15  Bruno Haible  <bruno@clisp.org>
76281
76282         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76283         module.
76284
76285 2006-08-14  Simon Josefsson  <jas@extundo.com>
76286
76287         * config/srclist.txt: Add gnupload.
76288
76289 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76290
76291         Change copyright notice from LGPL 2 to GPL 2, since that's the
76292         standard form used in the gnulib repository.
76293         * tests/test-lock.c: Likewise.
76294         * tests/test-stdint.c: Likewise.
76295         * tests/test-tls.c: Likewise.
76296
76297         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
76298         prelude-manager.  User shorter URLs for GNU projects, without '?'.
76299         Add copyright notice.
76300
76301         * check-module: Add copyright notice.  Output a copyright
76302         notice if "--version" is specified.
76303         * modules/COPYING: New file.
76304         * tests/test-getaddrinfo.c: Add copyright notice.
76305         * tests/test-verify.c: Likewise.
76306
76307 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76308
76309         Change copyright notice from LGPL 2 to GPL 2, since that's the
76310         standard form used in the gnulib repository.
76311         * lib/lock.c: LGPL -> GPL.
76312         * lib/lock.h: Likewise.
76313         * lib/strnlen1.c: Likewise.
76314         * lib/strnlen1.h: Likewise.
76315         * lib/tls.c: Likewise.
76316         * lib/tls.h: Likewise.
76317         * lib/tmpdir.c: Likewise.
76318
76319         * lib/TODO: Remove; this belongs only in coreutils.
76320
76321 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76322
76323         Add copyright notices to long-enough files that lack them, since
76324         otherwise the files aren't clearly free.  Use the same notice that
76325         getdate.texi already uses.
76326         * doc/alloca-opt.texi: Add copyright notice.
76327         * doc/alloca.texi: Likewise.
76328         * doc/ctime.texi: Likewise.
76329         * doc/functions.texi: Likewise.
76330         * doc/gcd.texi: Likewise.
76331         * doc/gnulib-tool.texi: Likewise.
76332         * doc/inet_ntoa.texi: Likewise.
76333         * doc/visibility.texi: Likewise.
76334
76335         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76336         * doc/quote.texi: Add copyright notice.
76337
76338         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76339         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76340         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76341         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76342         is now obsolete, and give a pointer to the Sun list.
76343         Add copyright notice.
76344
76345 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76346
76347         * config/srclistvars.sh: Add copyright notice.
76348
76349 2006-08-14  Eric Blake  <ebb9@byu.net>
76350
76351         Import the following change from libc:
76352
76353         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76354
76355         Upstream bug 2997.
76356         * lib/misc/error.c: Add space between program name and message if file
76357         name is missing.
76358
76359 2006-08-12  Karl Berry  <karl@gnu.org>
76360
76361         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76362         remove, these originate in gnulib now.
76363
76364 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76365
76366         * doc/Makefile (standards.info standards.html standards.dvi):
76367         Also depend on make-stds.texi.
76368
76369 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76370
76371         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
76372         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
76373
76374         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
76375         in wchar_t.  Problem reported by Eric Blake.
76376
76377         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
76378         LEN is smaller than SIZE.  Suggested by Bruno Haible.
76379         Also, help the compiler to keep LEN in a register.
76380
76381 2006-08-11  Eric Blake  <ebb9@byu.net>
76382
76383         * users.txt: Sort.  Add tar.
76384
76385 2006-08-11  Bruno Haible  <bruno@clisp.org>
76386
76387         * users.txt: New file.
76388
76389 2006-08-11  Bruno Haible  <bruno@clisp.org>
76390
76391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
76392         before <wchar.h>. Needed for OSF/1 and BSD/OS.
76393
76394 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76395
76396         * modules/snprintf (Depends-on): Remove minmax.
76397         (Maintainer): Add self and Bruno.
76398
76399 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76400
76401         * lib/.cppi-disable: Add snprintf.h, socket_.h.
76402         * lib/snprintf.c: Include <errno.h> and <limits.h>.
76403         (EOVERFLOW): Define if the system does not.
76404         Do not include "minmax.h"; it wasn't used.
76405         (snprintf): Don't assume size_t promotes to an unsigned type.
76406         Fix bug when generated string was too long for the buffer: the
76407         buffer's contents are supposed to be the initial prefix of the
76408         output.  Don't assume vasnprintf returns EOVERFLOW if the size
76409         exceeds INT_MAX; do the check ourselves.
76410
76411         Import the following changes from libc:
76412
76413         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
76414
76415         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
76416         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
76417         set wc to the byte which couldn't be converted.
76418         (re_string_reconstruct): Don't clear valid_raw_len before calling
76419         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
76420         tip_context using re_string_context_at.
76421
76422         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76423
76424         * lib/posix/regex.h: g++ still cannot handled [restrict].
76425
76426         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76427
76428         * lib/posix/regex.h: Remove special handling for VMS.
76429
76430 2006-08-10  Jim Meyering  <jim@meyering.net>
76431
76432         * modules/same-inode: New module.
76433         * modules/dev-ino: New module.
76434         * modules/cycle-check: Depend on these modules, rather than simply
76435         including their .h files.
76436         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76437         required via m4/cycle-check.m4.
76438         * modules/same: Depend on new same-inode module, rather than
76439         including same-inode.h.
76440         * modules/chdir-safer: New file.
76441
76442         * modules/chown (Depends-on): Add stat-macros.
76443
76444 2006-08-10  Jim Meyering  <jim@meyering.net>
76445
76446         * m4/cycle-check.m4: New file.
76447         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
76448         * m4/dev-ino.m4, m4/same-inode.m4: New files.
76449
76450 2006-08-10  Eric Blake  <ebb9@byu.net>
76451
76452         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
76453         in from original proposal.
76454
76455 2006-08-10  Eric Blake  <ebb9@byu.net>
76456         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76457
76458         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
76459         namespace.
76460
76461 2006-08-10  Bruno Haible  <bruno@clisp.org>
76462
76463         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76464         as well.
76465
76466 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76467
76468         Sync from coreutils.
76469
76470         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76471
76472         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
76473         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
76474
76475 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76476
76477         * modules/restrict: Remove; no longer needed now that we assume
76478         Autoconf 2.59 or later.
76479         * MODULES.html.sh: Remove 'restrict'.
76480         * modules/argp (Depends-on): Remove 'restrict'.
76481         * modules/base64 (Depends-on): Likewise.
76482         * modules/gc (Depends-on): Likewise.
76483         * modules/getaddrinfo (Depends-on): Likewise.
76484         * modules/glob (Depends-on): Likewise.
76485         * modules/inet_ntop (Depends-on): Likewise.
76486         * modules/inet_pton (Depends-on): Likewise.
76487         * modules/memxor (Depends-on): Likewise.
76488         * modules/regex (Depends-on): Likewise.
76489         * modules/strtok_r (Depends-on): Likewise.
76490         * modules/time_r (Depends-on): Likewise.
76491
76492 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76493
76494         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
76495         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
76496         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76497         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
76498         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
76499         * m4/memxor.m4 (gl_MEMXOR): Likewise.
76500         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
76501         gl_C_RESTRICT replaced by AC_C_RESTRICT.
76502
76503         Merge from coreutils.
76504         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
76505         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
76506         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
76507         * m4/time_r.m4 (gl_TIME_R): Likewise.
76508
76509 2006-08-09  Karl Berry  <karl@gnu.org>
76510
76511         * config/srclist.txt: no more gettext-tools, per Bruno.
76512
76513 2006-08-08  Eric Blake  <ebb9@byu.net>
76514
76515         * modules/verror: New module.
76516         * MODULES.html.sh: Document it.
76517
76518 2006-08-08  Eric Blake  <ebb9@byu.net>
76519
76520         * lib/verror.h, lib/verror.c: New files.
76521
76522 2006-08-08  Eric Blake  <ebb9@byu.net>
76523
76524         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76525         verror_at_line output complies with GNU Coding Standards even when
76526         file is NULL.
76527
76528 2006-08-07  Bruno Haible  <bruno@clisp.org>
76529
76530         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76531         versions of AIX.
76532         Reported by Ralf Wildenhues.
76533
76534 2006-08-07  Bruno Haible  <bruno@clisp.org>
76535
76536         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76537         in an AC_DEFUN. Needed so that the autoconf snippets can use
76538         AC_REQUIRE.
76539
76540 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76541
76542         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76543         Initialize pkgdata_DATA.
76544         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76545         overriding it.
76546
76547 2006-08-06  Eric Blake  <ebb9@byu.net>
76548
76549         * lib/error.h: Fold in some upstream changes from glibc.
76550         * lib/error.c: Likewise.
76551
76552 2006-08-04  Bruno Haible  <bruno@clisp.org>
76553
76554         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76555         Make the mostlyclean-local rule depend on mostlyclean-generic.
76556         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76557
76558 2006-07-31  Bruno Haible  <bruno@clisp.org>
76559
76560         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76561         <stdlib.h>, <string.h>.
76562
76563 2006-07-30  Bruno Haible  <bruno@clisp.org>
76564
76565         * modules/readlink (License): Change to LGPL.
76566
76567 2006-07-30  Bruno Haible  <bruno@clisp.org>
76568
76569         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76570         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76571         set PKGDATADIR to point to it.
76572
76573 2006-07-30  Bruno Haible  <bruno@clisp.org>
76574
76575         * modules/csharpexec (configure.ac): Comment out macro invocation.
76576         * modules/javaexec (configure.ac): Likewise.
76577         * modules/javacomp-script (configure.ac): Likewise.
76578
76579         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76580
76581 2006-07-30  Bruno Haible  <bruno@clisp.org>
76582
76583         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76584         linked-list.
76585
76586 2006-07-30  Bruno Haible  <bruno@clisp.org>
76587
76588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76589
76590 2006-07-30  Bruno Haible  <bruno@clisp.org>
76591
76592         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76593         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76594         get removed.
76595
76596 2006-07-29  Bruno Haible  <bruno@clisp.org>
76597
76598         Make it possible for gnulib-tool to work with locally modified or
76599         augmented gnulib repositories.
76600         * gnulib-tool (func_usage): Document --local-dir option.
76601         (local_gnulib_dir): New variable.
76602         Handle --local-dir option.
76603         (func_lookup_file): New function.
76604         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76605         (func_get_description, func_get_filelist, func_get_description,
76606         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76607         func_get_automake_snippet, func_get_include_directive,
76608         func_get_license, func_get_maintainer): Use func_lookup_file.
76609         (func_import, func_create_testdir): Use func_lookup_file.
76610
76611 2006-07-29  Bruno Haible  <bruno@clisp.org>
76612
76613         * modules/setenv (Depends-on): Add unistd.
76614
76615 2006-07-29  Bruno Haible  <bruno@clisp.org>
76616
76617         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76618
76619 2006-07-29  Bruno Haible  <bruno@clisp.org>
76620
76621         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76622
76623 2006-07-29  Bruno Haible  <bruno@clisp.org>
76624
76625         * gnulib-tool (import, update): If there is no Makefile.am, look at
76626         aclocal.m4, instead of bailing out.
76627
76628 2006-07-29  Bruno Haible  <bruno@clisp.org>
76629
76630         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76631         Categorize the options by when they are useful.
76632
76633 2006-07-29  Bruno Haible  <bruno@clisp.org>
76634
76635         * gnulib-tool (func_usage): Document option --no-libtool.
76636         Handle option --no-libtool.
76637         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76638         for changed semantics of $libtool variable.
76639         (func_import): Likewise. If libtool is not used, show this through
76640         an option --no-libtool.
76641         (func_create_testdir): Update.
76642
76643 2006-07-29  Bruno Haible  <bruno@clisp.org>
76644
76645         * gnulib-tool (func_import): Extend error message about missing
76646         --doc-base.
76647
76648 2006-07-29  Bruno Haible  <bruno@clisp.org>
76649
76650         * gnulib-tool (func_import): Don't create the $docbase directory if
76651         there is no file to store there.
76652
76653 2006-07-29  Bruno Haible  <bruno@clisp.org>
76654
76655         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76656         relevant, look for configure.ac there, not in the current directory.
76657         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76658
76659 2006-07-29  Bruno Haible  <bruno@clisp.org>
76660
76661         * gnulib-tool (SORT): New variable.
76662         (func_usage): Undocument --assume-autoconf option.
76663         Remove --assume-autoconf option handling.
76664         (autoconf_minversion): Determine from the contents of configure.ac.
76665         (func_import): Remove autoconf_minversion handling.
76666         Suggested by Eric Blake.
76667
76668 2006-07-29  Bruno Haible  <bruno@clisp.org>
76669
76670         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76671
76672 2006-07-29  Bruno Haible  <bruno@clisp.org>
76673
76674         * config/srclist.txt (*setenv.[ch]): Remove rules.
76675
76676 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76677
76678         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76679
76680 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76681
76682         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76683         arpa/inet.h.
76684
76685 2006-07-28  Simon Josefsson  <jas@extundo.com>
76686
76687         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76688         * modules/inet_pton (Depends-on): Likewise.
76689
76690 2006-07-28  Simon Josefsson  <jas@extundo.com>
76691
76692         * m4/netinet_in_h.m4: New file.
76693
76694 2006-07-28  Simon Josefsson  <jas@extundo.com>
76695
76696         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76697         #include's.
76698
76699 2006-07-28  Simon Josefsson  <jas@extundo.com>
76700
76701         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76702         #include's.
76703
76704 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76705
76706         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76707         setgid on directories only if they set these bits.
76708         * lib/modechange.h: Remove obsolete comment about masks.
76709
76710 2006-07-28  Eric Blake  <ebb9@byu.net>
76711
76712         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76713         macro expansion.
76714
76715 2006-07-28  Bruno Haible  <bruno@clisp.org>
76716
76717         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76718
76719 2006-07-28  Bruno Haible  <bruno@clisp.org>
76720
76721         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76722
76723 2006-07-28  Bruno Haible  <bruno@clisp.org>
76724
76725         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76726         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76727         Define fallbacks.
76728         Avoids link error on FreeBSD 4.x.
76729         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76730
76731         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76732         encoding.
76733         * lib/mbswidth.c (iswcntrl): Likewise.
76734
76735 2006-07-27  Bruno Haible  <bruno@clisp.org>
76736
76737         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76738         test.
76739
76740 2006-07-27  Bruno Haible  <bruno@clisp.org>
76741
76742         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76743         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76744         defined.
76745
76746 2006-07-26  Eric Blake  <ebb9@byu.net>
76747
76748         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76749
76750 2006-07-26  Eric Blake  <ebb9@byu.net>
76751
76752         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76753         like mingw that lack mkstemp.
76754         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76755         avoid compilation warning on mingw.
76756
76757 2006-07-26  Bruno Haible  <bruno@clisp.org>
76758
76759         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76760         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76761         INT_FAST*_MIN, INTPTR_MIN.
76762
76763 2006-07-25  Bruno Haible  <bruno@clisp.org>
76764
76765         * modules/version-etc (Depends-on): Add stdarg.
76766
76767 2006-07-25  Bruno Haible  <bruno@clisp.org>
76768
76769         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76770         complex commands.
76771
76772 2006-07-25  Bruno Haible  <bruno@clisp.org>
76773
76774         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76775         defined in <stdarg.h> or config.h.
76776
76777 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76778
76779         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76780         (gl_STDIO_SAFER): Remove.
76781
76782 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76783
76784         * MODULES.html.sh (File stream based Input/Output):
76785         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76786         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76787         * modules/fopen-safer, modules/tmpfile-safer: New files.
76788         * modules/stdio-safer: Remove.
76789
76790 2006-07-24  Bruno Haible  <bruno@clisp.org>
76791
76792         * modules/tmpdir: New file.
76793         * MODULES.html.sh (File system functions): Add it.
76794
76795 2006-07-24  Bruno Haible  <bruno@clisp.org>
76796
76797         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76798         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76799
76800 2006-07-24  Bruno Haible  <bruno@clisp.org>
76801
76802         * modules/clean-temp: New file.
76803
76804 2006-07-24  Bruno Haible  <bruno@clisp.org>
76805
76806         * m4/tmpdir.m4: New file, from GNU gettext.
76807
76808 2006-07-24  Bruno Haible  <bruno@clisp.org>
76809
76810         * lib/tmpdir.h: New file, from GNU gettext.
76811         * lib/tmpdir.c: New file, from GNU gettext.
76812
76813 2006-07-24  Bruno Haible  <bruno@clisp.org>
76814
76815         * lib/clean-temp.h: New file, from GNU gettext.
76816         * lib/clean-temp.c: New file, from GNU gettext.
76817
76818 2006-07-23  Eric Blake  <ebb9@byu.net>
76819
76820         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76821         (Depends-on): Add binary-io.
76822
76823 2006-07-23  Eric Blake  <ebb9@byu.net>
76824
76825         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76826
76827 2006-07-23  Eric Blake  <ebb9@byu.net>
76828
76829         * lib/tmpfile-safer.c: New file.
76830         * lib/stdio-safer.h (fopen_safer): Add prototype.
76831         * lib/stdio--.h (tmpfile): Make safer.
76832
76833 2006-07-23  Bruno Haible  <bruno@clisp.org>
76834
76835         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76836         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76837         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76838         gl_linked_remove_at): Use it.
76839
76840 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76841         and Simon Josefsson <jas@extundo.com>
76842
76843         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76844
76845         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76846
76847 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76848
76849         * modules/close-stream: New file.
76850         * modules/closeout (Description): Make it clear that it exits
76851         with a diagnostic on error.
76852         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76853         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76854
76855 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76856
76857         * m4/close-stream.m4: New file.
76858
76859 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76860
76861         * lib/close-stream.c, lib/close-stream.h: New files.
76862
76863 2006-07-22  Bruno Haible  <bruno@clisp.org>
76864
76865         Merge from GNU gettext 0.15.
76866
76867         2006-05-01  Bruno Haible  <bruno@clisp.org>
76868
76869                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76870
76871         2006-07-22  Bruno Haible  <bruno@clisp.org>
76872
76873                 * modules/javaversion: New file.
76874                 * MODULES.html.sh (Java): Add javaversion.
76875
76876         2006-03-12  Bruno Haible  <bruno@clisp.org>
76877
76878                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76879
76880         2005-12-04  Bruno Haible  <bruno@clisp.org>
76881
76882                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76883                 (untested).
76884
76885         2006-06-21  Bruno Haible  <bruno@clisp.org>
76886
76887                 Avoid warnings from recent versions of mcs.
76888                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76889                 -o, -L, -r any more. Use options documented since mcs-1.0
76890                 instead. Similarly for -g.
76891
76892         2005-12-04  Bruno Haible  <bruno@clisp.org>
76893
76894                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76895                 .resources, not .resource.
76896
76897         2005-07-09  Bruno Haible  <bruno@clisp.org>
76898
76899                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76900                 add a .dll suffix.
76901                 Reported by Mark Junker <mjscod@gmx.de>.
76902
76903         2006-07-22  Bruno Haible  <bruno@clisp.org>
76904
76905                 * modules/gettext: Upgrade to gettext-0.15.
76906                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76907                 m4/visibility.m4.
76908                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76909
76910 2006-07-22  Bruno Haible  <bruno@clisp.org>
76911
76912         Merge from GNU gettext 0.15.
76913
76914         2006-03-25  Bruno Haible  <bruno@clisp.org>
76915
76916                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76917
76918         2006-07-21  Bruno Haible  <bruno@clisp.org>
76919
76920                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76921                 "1.1".
76922
76923         2006-05-09  Bruno Haible  <bruno@clisp.org>
76924
76925                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76926                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76927                 for the conftestver execution.
76928
76929         2006-05-01  Bruno Haible  <bruno@clisp.org>
76930
76931                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76932                 optional target-version argument. Verify that the compiler
76933                 groks source of the specified source-version, or add -source
76934                 option as necessary. Verify that the compiler produces
76935                 bytecode in the specified target-version, or add -target and
76936                 -source options as necessary. Make the result of the test
76937                 available as variable CONF_JAVAC. Also log error output in
76938                 config.log.
76939
76940         2006-03-11  Bruno Haible  <bruno@clisp.org>
76941
76942                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76943
76944         2006-05-09  Bruno Haible  <bruno@clisp.org>
76945
76946                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76947                 CLASSPATH_SEPARATOR to a semicolon.
76948
76949         2006-03-12  Bruno Haible  <bruno@clisp.org>
76950
76951                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76952                 available as variable CONF_JAVA, for subsequent autoconf
76953                 tests. Also log error output in config.log.
76954
76955         2006-07-19  Bruno Haible  <bruno@clisp.org>
76956
76957                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76958                 that getline works on glibc2 systems. Needed to avoid trouble
76959                 in relocatable.c.
76960                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76961
76962         2005-12-04  Bruno Haible  <bruno@clisp.org>
76963
76964                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76965                 launcher (untested).
76966
76967         2005-12-04  Bruno Haible  <bruno@clisp.org>
76968
76969                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76970
76971         2006-07-22  Bruno Haible  <bruno@clisp.org>
76972
76973                 * gettext.m4: Update from GNU gettext-0.15.
76974                 * nls.m4: Likewise.
76975                 * po.m4: Likewise.
76976                 * inttypes-pri.m4: Likewise.
76977                 * inttypes-h.m4: Renamed from inttypes.m4.
76978                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76979
76980 2006-07-22  Bruno Haible  <bruno@clisp.org>
76981
76982         Merge from GNU gettext 0.15.
76983
76984         2005-07-05  Bruno Haible  <bruno@clisp.org>
76985
76986                 * printf-args.c (printf_fetchargs): Work around broken
76987                 definition of wint_t on mingw.
76988
76989         2005-02-12  Bruno Haible  <bruno@clisp.org>
76990
76991                 * xallocsa.h: Add extern "C" for C++.
76992
76993         2006-05-17  Bruno Haible  <bruno@clisp.org>
76994
76995                 Cygwin portability.
76996                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76997
76998         2006-04-30  Bruno Haible  <bruno@clisp.org>
76999
77000                 * progreloc.c: Include <mach-o/dyld.h> if available.
77001                 (find_executable): Use _NSGetExecutablePath when possible.
77002
77003         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77004
77005                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
77006                 function.
77007
77008         2005-12-29  Bruno Haible  <bruno@clisp.org>
77009
77010                 * progreloc.c (set_program_name_and_installdir): Fix
77011                 compilation error.
77012
77013         2005-12-04  Bruno Haible  <bruno@clisp.org>
77014
77015                 Cygwin portability.
77016                 * progreloc.c: Include <windows.h> also on Cygwin.
77017                 (find_executable): Add support for Cygwin.
77018                 (set_program_name_and_installdir): Handle also platforms with
77019                 nonempty EXEEXT.
77020
77021         2006-07-11  Bruno Haible  <bruno@clisp.org>
77022
77023                 * javacomp.c: Fix a comment.
77024                 Reported by Jim Meyering.
77025
77026         2006-04-30  Bruno Haible  <bruno@clisp.org>
77027
77028                 * javacomp.h (compile_java_class): Add source_version,
77029                 target_version arguments.
77030                 * javacomp.c: Rewritten to choose only a compiler that
77031                 respects the specified source_version and target_version.
77032
77033         2006-06-27  Bruno Haible  <bruno@clisp.org>
77034
77035                 Assume correct S_ISDIR macro.
77036                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77037
77038         2006-07-22  Bruno Haible  <bruno@clisp.org>
77039
77040                 * javaversion.h: New file, from GNU gettext.
77041                 * javaversion.c: New file, from GNU gettext.
77042                 * javaversion.java: New file, from GNU gettext.
77043                 * javaversion.class: New file, from GNU gettext.
77044
77045         2006-05-17  Bruno Haible  <bruno@clisp.org>
77046
77047                 Cygwin portability.
77048                 * javaexec.c (execute_java_class): Test for jview program
77049                 also on Cygwin.
77050
77051         2006-04-09  Bruno Haible  <bruno@clisp.org>
77052
77053                 * fatal-signal.c: Don't include string.h.
77054                 (at_fatal_signal): Use a copying loop instead of memcpy.
77055
77056         2005-12-04  Bruno Haible  <bruno@clisp.org>
77057
77058                 * csharpexec.c: Add support for 'clix' launcher (untested).
77059                 (execute_csharp_using_sscli): New function.
77060                 (execute_csharp_program): Call it.
77061
77062         2006-06-21  Bruno Haible  <bruno@clisp.org>
77063
77064                 Avoid warnings from recent versions of mcs.
77065                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77066                 -o, -L, -r any more. Use options documented since mcs-1.0
77067                 instead. Similarly for -g.
77068
77069         2005-07-09  Bruno Haible  <bruno@clisp.org>
77070
77071                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77072                 add a .dll suffix.
77073                 Reported by Mark Junker <mjscod@gmx.de>.
77074
77075         2006-06-17  Bruno Haible  <bruno@clisp.org>
77076
77077                 * config.charset: Update for NetBSD 3.0.
77078
77079         2006-05-17  Bruno Haible  <bruno@clisp.org>
77080
77081                 Cygwin portability.
77082                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77083
77084         2006-05-16  Bruno Haible  <bruno@clisp.org>
77085
77086                 * localcharset.c [CYGWIN]: Include <windows.h>.
77087                 (get_charset_aliases): For Cygwin, return the same CPxxx
77088                 aliases list as under WIN32.
77089                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77090                 the environment variables. Fall back to GetACP().
77091
77092         2006-04-05  Bruno Haible  <bruno@clisp.org>
77093
77094                 * config.charset: Update Juan Manuel Guerrero's address.
77095
77096         2005-02-12  Bruno Haible  <bruno@clisp.org>
77097
77098                 * allocsa.h: Add extern "C" for C++.
77099
77100         2005-02-10  Bruno Haible  <bruno@clisp.org>
77101
77102                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77103                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77104
77105         2006-07-22  Bruno Haible  <bruno@clisp.org>
77106
77107                 * gettext.h: Update to GNU gettext-0.15.
77108
77109 2006-07-22  Bruno Haible  <bruno@clisp.org>
77110
77111         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77112         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77113         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77114
77115 2006-07-21  Eric Blake  <ebb9@byu.net>
77116
77117         * modules/stdlib-safer: New file.
77118         * MODULES.html.sh (File stream based Input/Output): Add
77119         stdlib-safer.
77120
77121 2006-07-21  Eric Blake  <ebb9@byu.net>
77122
77123         * lib/stdlib-safer.h: New file from coreutils, required by
77124         stdlib--.h.
77125
77126 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77127
77128         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77129
77130 2006-07-20  Bruno Haible  <bruno@clisp.org>
77131
77132         * gnulib-tool: Recognize new option --assume-autoconf.
77133         (autoconf_minversion): New variable.
77134         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77135
77136 2006-07-20  Bruno Haible  <bruno@clisp.org>
77137
77138         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77139
77140 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77141
77142         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77143         Reindent and repaginate.
77144
77145 2006-07-19  Derek Price  <derek@ximbiot.com>
77146
77147         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77148         Correct grammar.
77149
77150 2006-07-17  Bruno Haible  <bruno@clisp.org>
77151
77152         * modules/list: New file.
77153         * modules/array-list: New file.
77154         * modules/carray-list, modules/carray-list-tests: New files.
77155         * modules/linked-list, modules/linked-list-tests: New files.
77156         * modules/avltree-list, modules/avltree-list-tests: New files.
77157         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77158         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77159         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77160         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77161         * modules/oset: New file.
77162         * modules/array-oset: New file.
77163         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77164         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77165         * tests/test-carray_list.c: New file.
77166         * tests/test-linked_list.c: New file.
77167         * tests/test-avltree_list.c: New file.
77168         * tests/test-rbtree_list.c: New file.
77169         * tests/test-linkedhash_list.c: New file.
77170         * tests/test-avltreehash_list.c: New file.
77171         * tests/test-rbtreehash_list.c: New file.
77172         * tests/test-avltree_oset.c: New file.
77173         * tests/test-rbtree_oset.c: New file.
77174         * MODULES.html.sh (Container data structures): New section.
77175
77176 2006-07-17  Bruno Haible  <bruno@clisp.org>
77177
77178         * m4/gl_list.m4: New file.
77179
77180 2006-07-17  Bruno Haible  <bruno@clisp.org>
77181
77182         * lib/gl_list.h: New file.
77183         * lib/gl_list.c: New file.
77184         * lib/gl_array_list.h: New file.
77185         * lib/gl_array_list.c: New file.
77186         * lib/gl_carray_list.h: New file.
77187         * lib/gl_carray_list.c: New file.
77188         * lib/gl_linked_list.h: New file.
77189         * lib/gl_linked_list.c: New file.
77190         * lib/gl_anylinked_list1.h: New file.
77191         * lib/gl_anylinked_list2.h: New file.
77192         * lib/gl_avltree_list.h: New file.
77193         * lib/gl_avltree_list.c: New file.
77194         * lib/gl_anyavltree_list1.h: New file.
77195         * lib/gl_anyavltree_list2.h: New file.
77196         * lib/gl_rbtree_list.h: New file.
77197         * lib/gl_rbtree_list.c: New file.
77198         * lib/gl_anyrbtree_list1.h: New file.
77199         * lib/gl_anyrbtree_list2.h: New file.
77200         * lib/gl_anytree_list1.h: New file.
77201         * lib/gl_anytree_list2.h: New file.
77202         * lib/gl_linkedhash_list.h: New file.
77203         * lib/gl_linkedhash_list.c: New file.
77204         * lib/gl_anyhash_list1.h: New file.
77205         * lib/gl_anyhash_list2.h: New file.
77206         * lib/gl_avltreehash_list.h: New file.
77207         * lib/gl_avltreehash_list.c: New file.
77208         * lib/gl_rbtreehash_list.h: New file.
77209         * lib/gl_rbtreehash_list.c: New file.
77210         * lib/gl_anytreehash_list1.h: New file.
77211         * lib/gl_anytreehash_list2.h: New file.
77212
77213         * lib/gl_oset.h: New file.
77214         * lib/gl_oset.c: New file.
77215         * lib/gl_array_oset.h: New file.
77216         * lib/gl_array_oset.c: New file.
77217         * lib/gl_avltree_oset.h: New file.
77218         * lib/gl_avltree_oset.c: New file.
77219         * lib/gl_rbtree_oset.h: New file.
77220         * lib/gl_rbtree_oset.c: New file.
77221         * lib/gl_anytree_oset.h: New file.
77222
77223 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77224
77225         * m4/mkancesdirs.m4: New file.
77226         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77227         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77228         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77229         it.
77230
77231 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77232
77233         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77234         * lib/mkancesdirs.h: New files.
77235         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77236         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77237         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77238         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77239         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77240         callers changed.  Revamp internals significantly, by not
77241         attempting to create directories that are temporarily more
77242         permissive than the final results.  Do not attempt to use
77243         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77244         This removes some race conditions, fixes some bugs, and simplifies
77245         things.  Use new dirchownmod function to do owner and mode changes.
77246         * lib/mkdir-p.h: Likewise.
77247         * lib/modechange.c (octal_to_mode): New function.
77248         (struct mode_change): New member mentioned.
77249         (make_node_op_equals): New arg mentioned.  All callers changed.
77250         (mode_compile): Keep track of which mode bits the user has explicitly
77251         mentioned.
77252         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77253         New arg PMODE_BITS, to keep track of which mode bits the user
77254         mentioned; it treats S_ISUID and S_ISGID speciall.
77255         All callers changed.
77256         * lib/modechange.h: Likewise.
77257
77258 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77259
77260         * MODULES.html.sh: Add mkancestors.
77261         * modules/mkancesdirs: New module.
77262         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77263         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77264         The chdir-safer and afs files are now orphans; I'll remove them
77265         unless someone speaks up.
77266         Add lib/dirchownmod.c, lib/dirchownmod.h.
77267         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77268         Add lchown, mkancesdirs.
77269         (Maintainer): Add self.
77270
77271 2006-07-15  Karl Berry  <karl@gnu.org>
77272
77273         * gnulib-tool: help message wording/arrangement.
77274
77275 2006-07-14  Simon Josefsson  <jas@extundo.com>
77276
77277         * doc/gnulib.texi (Libtool and Windows): New section.
77278
77279 2006-07-12  Simon Josefsson  <jas@extundo.com>
77280
77281         * modules/gendocs (License): Fix license, approved by Karl.
77282
77283 2006-07-12  Eric Blake  <ebb9@byu.net>
77284
77285         * MODULES.html.sh: Add gendocs.
77286
77287 2006-07-11  Eric Blake  <ebb9@byu.net>
77288
77289         * modules/fdl: New module, to install doc/fdl.texi.
77290         * MODULES.html.sh: Add new section for documentation modules.
77291         * gnulib-tool: Avoid space-tab.
77292         (--doc-base): New option, to manage files from doc.
77293
77294 2006-07-11  Eric Blake  <ebb9@byu.net>
77295
77296         * m4/absolute-header.m4: Fix comments to match recent change.
77297
77298 2006-07-11  Eric Blake  <ebb9@byu.net>
77299
77300         * gnulib-tool: List --doc-base before --tests-base.
77301
77302 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77303
77304         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77305
77306 2006-07-11  Bruno Haible  <bruno@clisp.org>
77307
77308         * README: Mention where to put documentation.
77309
77310 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77311
77312         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77313
77314 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77315
77316         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77317         to stdint.m4.
77318
77319 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77320
77321         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77322         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77323         "no/such/file/stdint.h" when there is no such file, so that
77324         the resulting C code can be parsed by dodgy compilers.
77325         Problems reported by Bob Proulx.
77326
77327 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77328
77329         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77330         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77331         macros into the GNU _D_EXACT_NAMLEN.
77332         * lib/savedir.c:  Likewise.
77333         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77334
77335 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77336         and Paul Eggert  <eggert@cs.ucla.edu>
77337
77338         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77339         * m4/savedir.m4:
77340         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77341         macros into the GNU _D_EXACT_NAMLEN.
77342
77343 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77344
77345         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77346         around the absolute name, to work around a problem with the HP-UX
77347         11.23 native C compiler, reported by Bob Proulx.
77348
77349 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77350
77351         * doc/maintain.texi, make-stds.texi: Sync from
77352         <http://savannah.gnu.org/projects/gnustandards>.
77353
77354 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77355
77356         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77357
77358 2006-07-09  Jim Meyering  <jim@meyering.net>
77359
77360         * m4/glob.m4: Remove a doubled word in a comment.
77361
77362 2006-07-09  Jim Meyering  <jim@meyering.net>
77363
77364         * lib/argp-pv.c: Remove a doubled word in a comment.
77365         * lib/check-version.c (check_version): Likewise.
77366         * lib/javacomp.c (compile_java_class): Likewise.
77367
77368 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77369
77370         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
77371         for the benefit of people using Autoconf 2.60.  If you want to
77372         support older Autoconf versions you can copy m4/onceonly_2_57.m4
77373         (or m4/onceonly.m4, if pre-2.57) manually.
77374
77375 2006-07-08  Jim Meyering  <jim@meyering.net>
77376
77377         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
77378         comment.
77379         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
77380         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
77381         comment.
77382
77383 2006-07-08  Jim Meyering  <jim@meyering.net>
77384
77385         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
77386
77387 2006-07-07  Simon Josefsson  <jas@extundo.com>
77388
77389         * tests/test-crc.c: Change expected crc value, the test vector
77390         were probably computed using the old broken crc.c?
77391
77392 2006-07-06  Simon Josefsson  <jas@extundo.com>
77393
77394         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
77395         now the canonical place for the M4 file).
77396
77397         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
77398         from the sys_socket dependency now.
77399
77400         * modules/inet_pton (Files): Ditto.
77401
77402         * modules/inet_ntop (Files): Ditto.
77403
77404 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77405
77406         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
77407         not gl_PREREQ_GETUSERSHELL.
77408
77409 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77410
77411         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
77412         with only one argument, for Autoconf 2.60.
77413         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
77414         expand to nothing, so add a shell command to avoid syntax error.
77415         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77416
77417 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77418
77419         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
77420
77421 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77422
77423         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77424         no longer needed.  Check for isblank decl.
77425         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77426         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77427         of existence.
77428
77429 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77430
77431         * lib/getloadavg.c: Use __VMS, not VMS.
77432         * lib/getopt.c: Likewise.
77433         * lib/getpagesize.h: Likewise.
77434         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77435         and probably does not work.
77436
77437 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77438
77439         * lib/.cppi-disable: Add wcwidth.
77440         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
77441         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
77442         (ISGRAPH): Remove.  All uses changed to isgraph.
77443         (FOLD) [!defined _LIBC]: Remove special case.
77444         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
77445         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
77446         HAVE_ISBLANK.
77447         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
77448         case.
77449
77450 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77451
77452         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
77453         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
77454         brackets.  Other minor changes to suppress some compiler
77455         warnings.
77456
77457 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77458         and Paul Eggert  <eggert@cs.ucla.edu>
77459
77460         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
77461         of invoking obsolescent AC_HEADER_DIRENT macro.
77462         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77463         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77464         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77465         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77466         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77467         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77468         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77469         * m4/readdir.m4: Remove; no longer needed.
77470
77471 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77472         and Paul Eggert  <eggert@cs.ucla.edu>
77473
77474         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
77475         Don't worry about this obsolete case any more.
77476         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
77477         directories.
77478         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
77479         worry about this obsolete case any more.
77480         * lib/fts.c: Likewise.
77481         * lib/getcwd.c: Likewise.
77482         * lib/glob.h: Likewise.
77483         * lib/savedir.c: Likewise.
77484
77485 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77486
77487         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
77488         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
77489         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
77490         needed.
77491         All uses removed.
77492         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77493         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77494         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
77495         needed.
77496         * m4/getdate.m4 (gl_GETDATE): Likewise.
77497         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77498         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77499         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77500         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77501         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77502         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77503         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
77504         needed.
77505
77506 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77507
77508         * lib/memcasecmp.c: Include <limits.h>.
77509         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
77510         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
77511         Don't assume isdigit succeeds only on '0' through '9'.
77512
77513 2006-07-05  Eric Blake  <ebb9@byu.net>
77514
77515         * modules/getaddrinfo (Depends-on): Add snprintf.
77516
77517 2006-07-05  Eric Blake  <ebb9@byu.net>
77518
77519         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77520         to avoid 'header present but could not be compiled' on cygwin.
77521
77522 2006-07-05  Eric Blake  <ebb9@byu.net>
77523
77524         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77525         missing from netdb.h.
77526         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77527
77528 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77529
77530         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77531         no longer needed.
77532         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77533         * m4/getdate.m4 (gl_GETDATE): Likewise.
77534         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77535         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77536         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77537         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77538         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77539
77540 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77541
77542         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77543         All uses of is_space replaced by isspace.
77544         * lib/exit.h: Don't talk about STDC_HEADERS.
77545         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77546         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77547         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77548         replaced by isprint etc.
77549         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77550         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77551         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77552         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77553         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77554         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77555
77556 2006-07-05  Bruno Haible  <bruno@clisp.org>
77557
77558         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77559         the function exists, before testing against AIX.
77560         Reported by Martin Lambers <marlam@marlam.de>.
77561
77562 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77563
77564         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77565         From Mark D. Baushke.
77566
77567 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77568
77569         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77570         to the absolute name, not just one, to bypass Sun C 5.8's
77571         "warning: #include of /usr/include/... may be non-portable".
77572
77573 2006-07-04  Eric Blake  <ebb9@byu.net>
77574
77575         * modules/dirname-tests: New test module.
77576         * tests/test-dirname.c: New file, replacing dirname.c
77577         TEST_DIRNAME section that was recently deleted.
77578
77579 2006-07-04  Bruno Haible  <bruno@clisp.org>
77580
77581         Assume ANSI C header files and <ctype.h> functions.
77582         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77583         (mbsnwidth): Use isprint, iscntrl instead.
77584
77585 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77586
77587         Merge from coreutils.
77588         * MODULES.html.sh: Add xstrtold.
77589         * modules/xstrtold: New file.
77590         * modules/cycle-check (Files): Add lib/same-inode.h.
77591         * modules/dirname (Files): Add m4/double-slash-root.m4.
77592         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77593         * modules/mkdir-p (Files): Add lib/same-inode.h.
77594         * modules/same (Files): Add lib/same-inode.h.
77595
77596 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77597
77598         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77599         This is to keep the terminology clean; POSIX talks about
77600         "absolute pathnames", not "full pathnames", but the GNU
77601         Coding Standards say to use "path" for something else;
77602         so use "absolute" to keep both sides happy.
77603         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77604         Set gl_absolute_header, not gl_full_header_path.
77605         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77606         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77607         All uses changed.
77608
77609         Merge from coreutils.
77610
77611         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77612
77613         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77614         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77615         want to require the building of c-strtod.o.
77616         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77617         needs -lm directly.
77618         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77619
77620         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77621
77622         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77623         --as-needed option if available.  Problem reported by Albert Chin in
77624         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77625         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77626         cc merely issues a bunch of annoying warnings for --as-needed
77627         (this problem was reported by Bob Proulx).  Also, try linking with
77628         -lm to detect a bug in binutils 2.16 (this problem was reported
77629         by Ralf Wildenhues).
77630
77631         2006-06-18  Jim Meyering  <jim@meyering.net>
77632
77633         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77634         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77635         macro.
77636         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77637         also check for glibc-2.4's abort-inducing bug.
77638
77639         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77640         Low-probability clean-up should be to use rmdir to get rid of
77641         the just-created directory, not unlink.
77642
77643         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77644         configure fail, and request a bug report to inform us about it.
77645         Add a comment that, barring reports to the contrary, in 2007 we'll
77646         assume ftruncate is universally available.
77647
77648         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77649
77650         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77651
77652         2006-03-12  Jim Meyering  <jim@meyering.net>
77653
77654         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77655         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77656         * m4/same.m4 (gl_SAME): Likewise.
77657         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77658
77659         2006-03-11  Eric Blake  <ebb9@byu.net>
77660
77661         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77662         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77663         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77664         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77665
77666 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77667
77668         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77669         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77670         reported by Mark D. Baushke, one in
77671         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77672
77673         Merge from coreutils.
77674
77675         * lib/.cppi-disable: Add stdint_.h.
77676         * lib/.cvsignore: Add stdint.h.
77677
77678         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77679
77680         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77681         both double and long double versions.
77682         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77683         * lib/xstrtold.c: New file.
77684         * lib/xstrtod.h (xstrtold): New decl.
77685
77686         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77687
77688         * lib/filemode.c (setst): Remove.
77689         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77690         (arguably) clearer, and the generated code is a bit smaller on my
77691         Debian GNU/Linux stable x86 host.
77692
77693         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77694
77695         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77696         Assume that filemode.h includes sys/types.h and sys/stat.h.
77697         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77698         (ftypelet): Reorder to put common cases first, for efficiency.
77699         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77700         to do 'M'.
77701         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77702         of 10, for compatibility with FreeBSD.  All callers changed.
77703         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77704         types that can't be deduced solely from st_mode.  First arg is now a
77705         const pointer.
77706         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77707         (strmode): Renamed from mode_string.
77708         (filemodestring): New decl.
77709         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77710         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77711         needed.
77712         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77713
77714         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77715
77716         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77717         fsusage.h now does that.  Include fsusage.h first, to test interface.
77718         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77719         at most one method (the old code could have generated decls that
77720         didn't conform to C89, not that this was ever exercised).
77721         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77722
77723         2006-03-19  Jim Meyering  <jim@meyering.net>
77724
77725         Work even in a chroot where d_ino values for entries in "/"
77726         don't match the stat.st_ino values for the same names.
77727         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77728         number, iterate through all entries again, using lstat instead.
77729         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77730         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77731
77732         * lib/getcwd.c (__getcwd): Clarify a comment.
77733         Use memcpy in place of a call to strcpy.
77734
77735         2006-03-12  Jim Meyering  <jim@meyering.net>
77736
77737         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77738         matches that of the current directory (which we're about to chdir ".."
77739         out of), then save the dev-ino of the parent, instead.
77740
77741         * lib/same-inode.h (SAME_INODE): New file/macro.
77742         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77743         Include "same-inode.h", instead.
77744         * lib/same.c: Likewise.
77745         * lib/cycle-check.h: Include "same-inode.h".
77746         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77747         * lib/cycle-check.c (SAME_INODE): Remove definition.
77748         * lib/root-dev-ino.h: Include "same-inode.h".
77749
77750         2006-03-11  Eric Blake  <ebb9@byu.net>
77751
77752         * lib/same.c (same_name): s/base_name/last_component/
77753         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77754         * lib/filenamecat.c (file_name_concat): Likewise.
77755
77756         2006-03-11  Eric Blake  <ebb9@byu.net>,
77757                     Paul Eggert  <eggert@cs.ucla.edu>
77758
77759         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77760         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77761         drive prefix.
77762         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77763         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77764         (last_component): New method.
77765         * lib/dirname.c (dir_len): Determine when drive letters need a
77766         subsequent slash.  Preserve // when it is special.
77767         (dir_name): Don't append dot when drive letter is absolute.
77768         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77769         * lib/basename.c (base_name): New semantics - malloc the result.
77770         Preserve // when it is special.  Preserve relative files that look
77771         like drive letters.
77772         (base_len): Preserve // when it is special.
77773         (last_component): New method, similar to old base_name semantics.
77774         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77775         base_name.  Strip redundant slashes from ///.
77776
77777 2006-07-03  Jim Meyering  <jim@meyering.net>
77778
77779         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77780         macro is used before the first cycle_check call.
77781
77782 2006-07-03  Eric Blake  <ebb9@byu.net>
77783
77784         * modules/dirname (Depends-on): Add xstrndup.
77785
77786 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77787
77788         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77789         test cases, so that config.log is a bit easier to follow.
77790
77791 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77792
77793         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77794         both are 64 bits, since this seems to be the tradition, and this
77795         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77796         we ever run into a host that prefers long long to long in this
77797         case, we'll need another configure-time test.  Problem reported by
77798         Jim Meyering.
77799
77800 2006-07-02  Eric Blake  <ebb9@byu.net>
77801
77802         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77803
77804 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77805
77806         * modules/inttypes (Depends-on): No longer depends on stdint.
77807         * modules/stdint (Description): Say more about assumptions.
77808         Say that the fast types might differ.  Say macros are used.
77809         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77810         (Makefile.am): Revise list of substituted symbols to match
77811         new stdint.m4.
77812         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77813         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77814         * tests/test-stdint.c (verify_same_types)
77815         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77816         the code conforms to C99/C89.
77817         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77818         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77819
77820 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77821
77822         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77823         but fix a bug, by requiring at least 64 bits.
77824         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77825         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77826         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77827         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77828
77829         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77830         changes.  Make 2.59 a prerequisite.  Check and substitute for
77831         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77832         inttypes.h.  Do not use special include files; just use the
77833         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77834         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77835         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77836         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77837         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77838         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77839         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77840         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77841         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77842         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77843         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77844         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77845         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77846         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77847         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77848         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77849         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77850         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77851         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77852         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77853         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77854         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77855         not check for things that C99 does not require, e.g., int8_t.  If
77856         a test isn't needed unless <stdint.h> isn't working, and is
77857         unlikely to be needed for any other reason, then don't do it
77858         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77859         size_t, since we assume C89 freestanding at least.  Do not check
77860         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77861         the right thing even if the types are not defined.  Instead use:
77862         (gl_STDINT_TYPE_PROPERTIES): New macro.
77863         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77864         testing whether <sys/types.h> clashes, as Autoconf does this for
77865         us now.  All uses removed.
77866         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77867         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77868         (gl_CHECK_TYPE_SAME):
77869         Remove; no longer needed.
77870         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77871         exists, since we'll return 0 anyway in that case.
77872         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77873
77874 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77875
77876         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77877         possible collision with system files.
77878         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77879         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77880         WCHAR_MIN and WCHAR_MAX in this case.
77881         (<stddef.h>): Do not include; no longer needed.
77882         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77883         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77884         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77885         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77886         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77887         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77888         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77889         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77890         !defined(__c99))]: Include in this case too, since it's harmless
77891         now.
77892         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77893         dangerous to do so.
77894         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77895         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77896         (_STDINT_MIN, _STDINT_MAX): New macros.
77897         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77898         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77899         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77900         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77901         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77902         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77903         macros, not typedefs; this simplifies things quite a bit.
77904         Use long int for all types narrower than int64_t.
77905         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77906         Define in terms of long long int or int64_t or long int,
77907         not int64_t or int32_t.  This saves some compile-time testing.
77908         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77909         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77910         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77911         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77912         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77913         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77914         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77915         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77916         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77917         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77918         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77919         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77920         undef any previous version and define our own version, for
77921         simplicity and consistency with the new macros for types.
77922         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77923         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77924         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77925         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77926         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77927         @WINT_T_SUFFIX@ to keep things simple here.
77928         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77929         Simplify by assuming typical 8/16/32/64 host, since we're
77930         already doing that elsewhere anyway.
77931         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77932         and assume long long int is 64 bits if available.  This
77933         speeds up 'configure'.
77934
77935 2006-07-01  Eric Blake  <ebb9@byu.net>
77936
77937         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77938         Reported by Andreas Buening.
77939
77940 2006-07-01  Eric Blake  <ebb9@byu.net>
77941
77942         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77943
77944 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77945
77946         * lib/getaddrinfo.c: fixed typo
77947
77948 2006-06-29  Jim Meyering  <jim@meyering.net>
77949
77950         * modules/strftime (Maintainer): Add my name, since with the
77951         FPRINTFTIME changes strftime.c has forked from glibc.
77952
77953 2006-06-29  Eric Blake  <ebb9@byu.net>
77954
77955         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77956
77957 2006-06-29  Eric Blake  <ebb9@byu.net>
77958
77959         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77960
77961 2006-06-29  Eric Blake  <ebb9@byu.net>
77962
77963         * lib/stat_.h: New file.
77964
77965 2006-06-29  Eric Blake  <ebb9@byu.net>
77966
77967         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77968         unused static function.
77969
77970 2006-06-29  Eric Blake  <ebb9@byu.net>
77971
77972         * doc/functions.texi (Function Portability): Document missing lstat
77973         on mingw.
77974
77975 2006-06-29  Eric Blake  <ebb9@byu.net>
77976
77977         * MODULES.html.sh: Add sys_stat.
77978         * modules/sys_stat: New module.
77979         * modules/mkstemp (Depends-on): Add sys_stat.
77980
77981 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77982
77983         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77984
77985 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77986
77987         * m4/c-bs-a.m4: Removed.
77988
77989 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77990
77991         * lib/strftime.c: Assume strftime() exists.
77992
77993 2006-06-29  Derek Price  <derek@ximbiot.com>
77994
77995         * modules/c-bs-a: Removed - \a is C89.
77996         * MODULES.html.sh: Remove c-bs-a.
77997
77998 2006-06-29  Bruno Haible  <bruno@clisp.org>
77999
78000         * modules/wcwidth (License): Change to LGPL.
78001
78002 2006-06-28  Simon Josefsson  <jas@extundo.com>
78003
78004         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
78005         on _WIN32.
78006
78007         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
78008         getnameinfo.
78009
78010 2006-06-28  Simon Josefsson  <jas@extundo.com>
78011
78012         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
78013
78014 2006-06-28  Simon Josefsson  <jas@extundo.com>
78015
78016         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
78017         functions there.  It will succeed on Windows XP, but on Windows
78018         2000 and (presumably) earlier, it will fail, and use the internal
78019         re-implementation.
78020         (use_win32_p): New function.
78021         (getaddrinfo): Use strtoul on servname, to support numeric ports.
78022         Support AI_NUMERICSERV to disable getservbyname.
78023         (getnameinfo): New function, only supports
78024         NI_NUMERICHOST|NI_NUMERICSERV for now.
78025
78026         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
78027         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
78028         getnameinfo.
78029
78030 2006-06-28  Eric Blake  <ebb9@byu.net>
78031
78032         * modules/wcwidth: New file.
78033         * modules/mbchar (Depends-on): Add wcwidth.
78034         * modules/mbswidth (Depends-on): Add wcwidth.
78035         * MODULES.html.sh: Add wcwidth.
78036
78037 2006-06-28  Eric Blake  <ebb9@byu.net>
78038
78039         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78041
78042 2006-06-28  Eric Blake  <ebb9@byu.net>
78043
78044         * lib/xvasprintf.h: Fix comments.
78045
78046 2006-06-28  Eric Blake  <ebb9@byu.net>
78047
78048         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78049         * lib/mbswidth.c (wcwidth): Move from here...
78050         * lib/wcwidth.h: ...to this new file.
78051
78052 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78053
78054         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78055
78056         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78057         it's obsolete.
78058         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78059
78060 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78061
78062         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78063         Autoconf 2.60 says this stuff was obsolete.
78064
78065 2006-06-28  Bruno Haible  <bruno@clisp.org>
78066
78067         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78068
78069 2006-06-28  Bruno Haible  <bruno@clisp.org>
78070
78071         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78072         gt_TYPE_WCHAR_T.
78073
78074 2006-06-28  Bruno Haible  <bruno@clisp.org>
78075
78076         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78077         declaration for wcwidth.
78078         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78079
78080 2006-06-28  Bruno Haible  <bruno@clisp.org>
78081
78082         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78083         (mkdir): Define using _mkdir.
78084
78085 2006-06-28  Bruno Haible  <bruno@clisp.org>
78086
78087         * lib/getaddrinfo.h: Fix POSIX URL.
78088         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78089         _WIN32.
78090         (use_win32_p): Make static.
78091         (getaddrinfo): Reject service name if it is empty or does not consist
78092         solely of decimal digits, or if its value is > 65535.
78093         (getnameinfo): Remove useless casts.
78094
78095 2006-06-27  Simon Josefsson  <jas@extundo.com>
78096
78097         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78098         Eggert and Martin Lambers.
78099
78100 2006-06-27  Simon Josefsson  <jas@extundo.com>
78101
78102         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78103         Eggert and Martin Lambers.
78104
78105 2006-06-27  Bruno Haible  <bruno@clisp.org>
78106
78107         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78108         result to 0, not to empty.
78109         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78110
78111 2006-06-27  Bruno Haible  <bruno@clisp.org>
78112
78113         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78114
78115 2006-06-26  Simon Josefsson  <jas@extundo.com>
78116
78117         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78118         present.
78119
78120 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78121
78122         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78123         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78124         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78125
78126 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78127
78128         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78129
78130 2006-06-26  Bruno Haible  <bruno@clisp.org>
78131
78132         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78133
78134 2006-06-26  Bruno Haible  <bruno@clisp.org>
78135
78136         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78137
78138 2006-06-26  Bruno Haible  <bruno@clisp.org>
78139
78140         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78141         SGI C compiler in pre-C99 mode.
78142         Suggested by Mark D. Baushke and Larry Jones.
78143
78144 2006-06-26  Bruno Haible  <bruno@clisp.org>
78145
78146         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78147         WCHAR_MAX.
78148         Reported by Mark D. Baushke and Larry Jones.
78149
78150 2006-06-26  Bruno Haible  <bruno@clisp.org>
78151
78152         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78153         in pre-C99 mode.
78154         Suggested by Mark D. Baushke and Larry Jones.
78155
78156 2006-06-23  Simon Josefsson  <jas@extundo.com>
78157             Bruno Haible  <bruno@clisp.org>
78158
78159         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78160         Emit mostlyclean-local rule.
78161         (func_emit_tests_Makefile_am): Likewise.
78162         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78163
78164 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78165
78166         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78167
78168 2006-06-23  Bruno Haible  <bruno@clisp.org>
78169
78170         * tests/test-stdint.c: Update to match ISO C 99 Technical
78171         Corrigendum 1.
78172
78173 2006-06-23  Bruno Haible  <bruno@clisp.org>
78174
78175         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78176
78177 2006-06-23  Bruno Haible  <bruno@clisp.org>
78178
78179         * lib/stdint_.h: Treat IRIX like OpenBSD.
78180
78181 2006-06-23  Bruno Haible  <bruno@clisp.org>
78182
78183         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78184         ISO C 99 Technical Corrigendum 1.
78185
78186 2006-06-22  Simon Josefsson  <jas@extundo.com>
78187
78188         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78189         MinGW.
78190
78191 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78192
78193         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78194         needed.  Some compiler complained about some of them.  Problem reported
78195         by Larry Jones in
78196         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78197
78198 2006-06-21  Simon Josefsson  <jas@extundo.com>
78199
78200         * tests/test-getaddrinfo.c: New file.
78201
78202         * modules/getaddrinfo-tests: New file.
78203
78204         * MODULES.html.sh: Add inet_pton.
78205
78206         * modules/inet_pton: New file.
78207
78208 2006-06-21  Simon Josefsson  <jas@extundo.com>
78209
78210         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78211         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78212         of using the (limited) gnulib implementation on Windows XP.
78213
78214         * m4/inet_pton.m4: New file.
78215
78216 2006-06-21  Simon Josefsson  <jas@extundo.com>
78217
78218         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78219         variable.
78220
78221         * lib/socket_.h: Don't define WINVER.
78222
78223         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78224         slightly modified to work in gnulib.
78225
78226 2006-06-21  Simon Josefsson  <jas@extundo.com>
78227
78228         * doc/gnulib.texi (Windows sockets): Add.
78229
78230 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78231
78232         * lib/read-file.c (fread_file): Start with buffer allocation of
78233         0 bytes rather than 1 byte; this simplifies the code.
78234         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78235         code to free buffer and save/restore errno.
78236         (internal_read_file): Remove unused local.
78237
78238 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78239
78240         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78241         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78242         Problem reported by Denis Excoffier in
78243         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78244
78245 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78246
78247         * modules/sys_socket, modules/socklen: Include sys/types since
78248         FreeBSD 4.x's sys/socket.h needs it.
78249
78250 2006-06-19  Simon Josefsson  <jas@extundo.com>
78251
78252         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78253
78254 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78255
78256         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78257
78258 2006-06-19  Bruno Haible  <bruno@clisp.org>
78259
78260         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78261         and FULL_PATH_INTTYPES_H in angle brackets.
78262         Reported by Mark D. Baushke <mdb@gnu.org>.
78263
78264 2006-06-17  Eric Blake  <ebb9@byu.net>
78265
78266         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78267         errno.
78268
78269 2006-06-17  Bruno Haible  <bruno@clisp.org>
78270
78271         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78272         <sys/inttypes.h>.
78273
78274 2006-06-17  Bruno Haible  <bruno@clisp.org>
78275
78276         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78277         whether errno is declared. Assume <errno.h> declares errno.
78278
78279 2006-06-17  Bruno Haible  <bruno@clisp.org>
78280
78281         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78282
78283 2006-06-17  Bruno Haible  <bruno@clisp.org>
78284
78285         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78286         problem on Solaris 2.5.1.
78287
78288 2006-06-16  Eric Blake  <ebb9@byu.net>
78289
78290         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
78291         * lib/unicodeio.c [!defined errno]: Likewise.
78292         * lib/strtol.c [!defined errno]: Likewise.
78293         * lib/strtod.c [!defined errno]: Likewise.
78294
78295 2006-06-15  Eric Blake  <ebb9@byu.net>
78296
78297         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
78298
78299 2006-06-15  Eric Blake  <ebb9@byu.net>
78300
78301         * config/srclist.txt (ssize_t.m4): Lose sync.
78302
78303 2006-06-15  Bruno Haible  <bruno@clisp.org>
78304
78305         * modules/stdint (Files): Include m4/full-header-path.m4,
78306         m4/size_max.m4, m4/wchar_t.m4.
78307         (Makefile.am): Many more substitutions.
78308         * modules/stdint-tests: New file.
78309         * tests/test-stdint.c: New file.
78310
78311 2006-06-15  Bruno Haible  <bruno@clisp.org>
78312
78313         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78314         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78315         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78316         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78317         gl_CHECK_TYPE_SAME): New macros.
78318
78319 2006-06-15  Bruno Haible  <bruno@clisp.org>
78320
78321         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78322
78323 2006-06-15  Bruno Haible  <bruno@clisp.org>
78324
78325         * lib/stdint_.h: Rewritten to be fully auto-configured.
78326         Fixes bug on HP-UX/IA64.
78327
78328 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78329
78330         * lib/getdate.y (__attribute__): Don't define if already defined.
78331         Problem reported by Larry Jones.
78332         * lib/utimens.c (__attribute__): Likewise.
78333
78334 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78335
78336         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78337         reported by Andreas Schwab.
78338
78339 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78340             Bruno Haible  <bruno@clisp.org>
78341
78342         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78343         check for the declaration of strnlen and a run test that exposes the
78344         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78345         rpl_strndup.
78346
78347 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78348             Bruno Haible  <bruno@clisp.org>
78349
78350         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78351
78352 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78353
78354         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78355         compile test, for Tru64 4.0D.
78356
78357 2006-05-28  Karl Berry  <karl@gnu.org>
78358
78359         * config/srclist.txt (printf-args.c): lose sync.
78360
78361 2006-05-26  Martin Lambers  <marlam@marlam.de>
78362
78363         * lib/getpass.c: Updates the test for the native W32 API, and adds
78364         missing includes, thus fixing compilation warnings.
78365
78366 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78367
78368         * lib/exclude.c (exclude_fnmatch): New function.
78369         (excluded_file_name): Call exclude_fnmatch.
78370         * lib/exclude.h (excluded_file_name): New prototype
78371
78372 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
78373
78374         * lib/tempname.c (small_open, large_open): New macros.
78375         (__open, __open64) [!_LIBC]: Remove.
78376         (__gen_tempname): Use small_open and large_open instead of __open
78377         and __open64.  This fixes a portability bug on HP-UX 11.11i
78378         reported by Simon Wing-Tang in
78379         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
78380
78381 2006-05-24  Bruno Haible  <bruno@clisp.org>
78382
78383         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
78384         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
78385         Reported by Thorsten Maerz <torte@netztorte.de> via
78386         Aaron Stone <aaron@serendipity.cx>.
78387
78388 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78389
78390         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
78391         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
78392         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
78393         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
78394         not really conditional on the cache.
78395         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
78396
78397 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78398
78399         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
78400         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
78401         (my_usleep): Don't mishandle maximum value.
78402
78403 2006-05-19  Jim Meyering  <jim@meyering.net>
78404
78405         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
78406
78407 2006-05-17  Bruno Haible  <bruno@clisp.org>
78408
78409         Cygwin portability.
78410         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
78411
78412 2006-05-17  Bruno Haible  <bruno@clisp.org>
78413
78414         * lib/stdint_.h: Fix recognition of Cygwin.
78415
78416 2006-05-15  Bruno Haible  <bruno@clisp.org>
78417
78418         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
78419         on libtool patch by Ralf Wildenhues.
78420
78421 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78422
78423         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78424         test for C99 conformance; (bool) 0.5 is an integer constant
78425         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78426         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78427
78428 2006-05-11  Simon Josefsson  <jas@extundo.com>
78429
78430         * m4/xvasprintf.m4: Fix obvious typo.
78431
78432 2006-05-11  Jim Meyering  <jim@meyering.net>
78433
78434         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78435         James Lemley.
78436
78437 2006-05-10  Simon Josefsson  <jas@extundo.com>
78438
78439         * lib/md4.c: Typo fix, update copyright years.
78440         (K1, K2): Don't use L because it turn computations into 64-bit on
78441         64-bit platforms.
78442
78443 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
78444
78445         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
78446         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
78447         unwanted sign propagation, e.g., on hosts with 64-bit int.
78448         There still are some problems with reeelly weird theoretical hosts
78449         (e.g., 33-bit int) but it's not worth worrying about now.
78450         * lib/sha1.c (rol): Likewise.
78451         (K1, K2, K3, K4): Remove unnecessary L suffix.
78452
78453 2006-05-10  Bruno Haible  <bruno@clisp.org>
78454
78455         * lib/des.c: Cast to avoid warnings.
78456
78457 2006-05-09  Bruno Haible  <bruno@clisp.org>
78458
78459         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
78460         (Depends-on): Depend also on xsize, stdarg.
78461         (configure.ac): Add gl_XVASPRINTF.
78462
78463 2006-05-09  Bruno Haible  <bruno@clisp.org>
78464
78465         * m4/xvasprintf.m4: New file.
78466
78467 2006-05-09  Bruno Haible  <bruno@clisp.org>
78468
78469         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78470         (EOVERFLOW): Define fallback value.
78471         (xstrcat): New function.
78472         (xvasprintf): Recognize the special case of a string concatenation.
78473
78474 2006-05-08  Eric Blake  <ebb9@byu.net>
78475
78476         * gnulib-tool (func_version): Base copyright year on CVS date.
78477         (func_emit_copyright_notice): New function.
78478         (func_emit_lib_Makefile_am): Use it.
78479         (func_emit_tests_Makefile_am): Likewise.
78480         (func_import): Likewise.
78481
78482 2006-05-08  Bruno Haible  <bruno@clisp.org>
78483
78484         * modules/stdarg: New file.
78485         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
78486
78487 2006-05-08  Bruno Haible  <bruno@clisp.org>
78488
78489         * m4/stdarg.m4: New file, from GNU gettext.
78490
78491 2006-05-08  Bruno Haible  <bruno@clisp.org>
78492
78493         * config/srclist.txt (build-aux/config.rpath): different from latest
78494         release.
78495
78496 2006-05-08  Bruno Haible  <bruno@clisp.org>
78497
78498         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
78499
78500 2006-05-05  Jim Meyering  <jim@meyering.net>
78501
78502         * m4/warning.m4: New file, derived from bison's file by the same name.
78503
78504 2006-05-03  Bruno Haible  <bruno@clisp.org>
78505
78506         * lib/stdint_.h: Shorter URL.
78507         * lib/inttypes.h: Likewise.
78508
78509 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78510
78511         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
78512
78513 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78514
78515         * lib/verify.h: Document the internals better.  Most of this change
78516         was written by Bruno Haible.
78517
78518 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78519
78520         * doc/verify.texi: New file, partly based on a proposal by
78521         Bruno Haible.
78522
78523 2006-05-02  Bruno Haible  <bruno@clisp.org>
78524
78525         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78526         test from here...
78527         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78528
78529 2006-04-29  Bruno Haible  <bruno@clisp.org>
78530
78531         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78532         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78533
78534 2006-04-29  Bruno Haible  <bruno@clisp.org>
78535
78536         * gnulib-tool: Make --update option actually work.
78537
78538 2006-04-29  Bruno Haible  <bruno@clisp.org>
78539
78540         * doc/gcd.texi: New file.
78541         * doc/gnulib.texi: Include it.
78542
78543 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78544
78545         * lib/getdate.y (get_date): When adding relative date, start with the
78546         initial time, not with the result of the first mktime call.
78547
78548 2006-04-25  Bruno Haible  <bruno@clisp.org>
78549
78550         * gnulib-tool (func_import): Output the include directives in three
78551         blocks, sorted separately.
78552         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78553
78554 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78555
78556         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78557         to define main with arguments, for C++.  Reported by Eric Blake.
78558         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78559         Prefer 'int main ()' to 'int main (void)', for C++.
78560         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78561         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78562         for 'main', for C99 and C++.
78563
78564 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78565
78566         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78567         Don't assume that exit status -1 is valid.
78568         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78569         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78570         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78571         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78572         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78573         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78574         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78575         functions can be used without declaring them, or that you can
78576         exit with status -1.
78577         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78578
78579 2006-04-24  Karl Berry  <karl@gnu.org>
78580
78581         * config/srclist.txt (longdouble.m4): sync lost.
78582
78583 2006-04-24  Eric Blake  <ebb9@byu.net>
78584
78585         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78586
78587 2006-04-24  Bruno Haible  <bruno@clisp.org>
78588
78589         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78590         poll() implementation in AIX.
78591         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78592
78593 2006-04-24  Bruno Haible  <bruno@clisp.org>
78594
78595         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78596         assigned exactly once.
78597
78598 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78599             Bruno Haible  <bruno@clisp.org>
78600
78601         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78602         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78603         for AM_CPPFLAGS.
78604
78605 2006-04-23  Bruno Haible  <bruno@clisp.org>
78606
78607         * modules/copy-file: Depend on unistd.
78608         * modules/execute: Likewise.
78609         * modules/fatal-signal: Likewise.
78610         * modules/findprog: Likewise.
78611         * modules/mkdtemp : Likewise.
78612         * modules/pipe: Likewise.
78613         * modules/wait-process: Likewise.
78614
78615 2006-04-23  Bruno Haible  <bruno@clisp.org>
78616
78617         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78618         condition was already detected.
78619         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78620
78621 2006-04-23  Bruno Haible  <bruno@clisp.org>
78622
78623         * lib/copy-file.c: Include <unistd.h> unconditionally.
78624         * lib/execute.c: Likewise.
78625         * lib/fatal-signal.c: Likewise.
78626         * lib/findprog.c: Likewise.
78627         * lib/mkdtemp.c: Likewise.
78628         * lib/pipe.h: Likewise.
78629         * lib/pipe.c: Likewise.
78630         * lib/wait-process.h: Likewise.
78631
78632 2006-04-23  Bruno Haible  <bruno@clisp.org>
78633
78634         * gnulib-tool (func_usage): Fix --import description. Document
78635         --update.
78636         (func_import): Create temporary file in a temporary directory, if
78637         --dry-run is specified. Silence errors from 'grep' when there are no
78638         m4 files in $m4dir.
78639         (func_create_testdir): Silence errors from 'grep' when there are no
78640         m4 files in $m4dir.
78641         Reported by Karl Berry <karl@freefriends.org>.
78642
78643 2006-04-20  Bruno Haible  <bruno@clisp.org>
78644
78645         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78646         one argument, so that the code will be portable to Autoconf 2.60.
78647         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78648         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78649         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78650
78651 2006-04-19  Derek Price  <derek@ximbiot.com>
78652             Eric Blake  <ebb9@byu.net>
78653
78654         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78655         rather than "/full/path.h".  Update comment to match.  Shorten &
78656         generalize m4_translit call via AS_TR_CPP.
78657
78658 2006-04-19  Derek Price  <derek@ximbiot.com>
78659             Eric Blake  <ebb9@byu.net>
78660
78661         * lib/inttypes.h: Correct grammar in comment.
78662
78663 2006-04-18  Derek Price  <derek@ximbiot.com>
78664             Paul Eggert  <eggert@cs.ucla.edu>
78665
78666         * modules/inttypes: New file.
78667         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78668
78669 2006-04-18  Derek Price  <derek@ximbiot.com>
78670             Paul Eggert  <eggert@cs.ucla.edu>
78671
78672         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78673         New files.
78674
78675 2006-04-18  Derek Price  <derek@ximbiot.com>
78676             Paul Eggert  <eggert@cs.ucla.edu>
78677
78678         * lib/inttypes.h: New file.
78679         * lib/strtoimax.c: Assume <inttypes.h>.
78680
78681 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78682
78683         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78684         isn't mounted.  Problem reported by Kir Kolyshkin.
78685
78686 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78687
78688         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78689         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78690         Derek R. Price.
78691         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78692         implementation.
78693
78694 2006-04-12  Eric Blake  <ebb9@byu.net>
78695
78696         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78697         is now done automatically by the corresponding Autoconf macro.
78698
78699 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78700
78701         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78702         time_r.h.
78703
78704 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78705
78706         Merge regex changes from libc, removing some of our
78707         POSIX-conformance changes that were rejected and redoing them in a
78708         less-intrusive way.
78709
78710         * lib/regcomp.c (re_compile_internal, init_dfa):
78711         Length arg is now size_t, not Idx.  All uses changed.
78712         (peek_token): Forward decl now says internal_function.
78713         (__re_error_msgid, __re_error_msgid_idx):
78714         Now static rather than extern with attribute_hidden.
78715         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78716         For some reason libc prefers K&R style defns for external functions.
78717         (regerror) [!defined _LIBC]: Likewise.
78718         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78719         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78720         (build_range_exp, build_collating_symbol):
78721         Use K&R-style defn.
78722         (re_compile_fastmap): Use '\0' to memset, not 0.
78723         (utf8_sb_map): Make the calculations more obvious.
78724         (init_dfa, parse_bracket_exp, build_charclass_op):
78725         Call calloc and cast result, as glibc does.
78726         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78727         (build_range_exp, build_collating_symbol):
78728         Now internal functions.
78729
78730         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78731
78732         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78733         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78734         Don't depend on VMS; depend on __VMS instead, for POSIX
78735         namespace cleanness.
78736         (regoff_t): Define to ssize_t, not long int.
78737
78738         Remove the REG_ macros named below.  Instead, make the old names
78739         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78740         __USE_GNU_REGEX.
78741         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78742         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78743         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78744         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78745         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78746         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78747         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78748         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78749         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78750         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78751         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78752         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78753         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78754         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78755         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78756         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78757         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78758         (REG_NREGS):
78759         Remove.  All uses replaced by the old RE_* names.
78760         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78761         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78762         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78763         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78764         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78765         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78766         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78767         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78768         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78769         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78770         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78771         Don't bother having these macros be independent of each others'
78772         values, since they no longer exist in the POSIX name space.
78773
78774         Rename the following member names back to their old names,
78775         unless !__USE_GNU_REGEX.  All uses changed back.
78776         (buffer): Renamed from re_buffer.
78777         (allocated): Renamed from re_allocated.
78778         (used): Renamed from re_used.
78779         (syntax): Renamed from re_syntax.
78780         (fastmap): Renamed from re_fastmap.
78781         (translate): Renamed from re_translate.
78782         (can_be_null): Renamed from re_can_be_null.
78783         (regs_allocated): Renamed from re_regs_allocated.
78784         (fastmap_accurate): Renamed from re_fastmap_accurate.
78785         (no_sub): Renamed from re_no_sub.
78786         (not_bol): Renamed from re_not_bol.
78787         (not_eol): Renamed from re_not_eol.
78788         (newline_anchor): Renamed from re_newline_anchor.
78789         (num_regs): Renamed from rm_num_regs.
78790         (start): Renamed from rm_start.
78791         (end): Renamed from rm_end.
78792
78793         (free_state): Move up a bit.
78794
78795         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78796         #define to be empty.
78797         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78798         when that is what is intended.
78799         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78800         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78801         (MAX): New macro.
78802         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78803         All uses changed back to re_malloc, etc.  It's now the caller's
78804         responsibility to check for overflow; all callers changed.
78805         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78806         (re_x2nrealloc): Remove.
78807         (free_state): Remove decl.
78808
78809         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78810         (re_set_registers, re_exec):
78811         Use K&R-style defn.
78812
78813         2006-01-31  Roland McGrath  <roland@redhat.com>
78814
78815         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78816         Reported by Mike Frysinger <vapier@gentoo.org>.
78817
78818         2006-01-15  Andreas Jaeger  <aj@suse.de>
78819
78820         [BZ #1950]
78821         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78822         build_wcs_upper_buffer change.
78823         (build_wcs_upper_buffer): Change return type.
78824
78825         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78826
78827         * lib/regex_internal.h: Include <stdint.h> if available.
78828
78829         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78830
78831         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78832
78833         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78834
78835         * lib/regcomp.c: Adjust for changed secondary hash function.
78836
78837         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78838
78839         * lib/regex.h: Pretty printing.
78840         Clean up namespace a bit.
78841
78842         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78843
78844         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78845         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78846
78847         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78848                     Ulrich Drepper  <drepper@redhat.com>
78849
78850         [BZ #1302]
78851         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78852         changed.
78853         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78854
78855         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78856
78857         [BZ #281]
78858         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78859         * lib/regcomp.c: Remove unnecessary uses of
78860         unsigned RE_TRANSLATE_TYPE.
78861         * lib/regex_internal.h: Likewise.
78862         * lib/regex_internal.c: Likewise.
78863         * lib/regexec.c: Likewise.
78864         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78865
78866         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78867
78868         * lib/regexec.c (find_recover_state): Remove unnecessary
78869         initialization.
78870         (transit_state_bkref): Make DFA a const pointer.
78871         (get_subexp): Likewise.
78872         (check_arrival): Likewise.
78873         (update_cur_sifted_state): Likewise.
78874         (re_search_internal): Likewise.
78875         (prune_impossible_nodes): Likewise.
78876         (acquire_init_state_context): Likewise.
78877         (proceed_next_node): Likewise.
78878         (set_regs): Likewise.
78879         (free_fail_stack_return): Likewise.
78880         (check_arrival_expand_ecl): Mark DFA parameter as const.
78881         (check_arrival_expand_ecl_sub): Likewise.
78882         (check_subexp_limits): Likewise.
78883         (sub_epsilon_src_nodes):  Likewise.
78884         (add_epsilon_src_nodes):  Likewise.
78885         (merge_state_array): Likewise.
78886         (update_regs): Likewise.
78887         (build_trtable): Likewise.
78888         (sift_states_backward): Mark MCTX parameter as const.
78889         (build_sifted_states): Likewise.
78890         (update_cur_sifted_state): Likewise.
78891         (sift_states_mkref): Likewise.
78892         (check_arrival_expand_ecl): Mark eclosure as const.
78893         (check_dst_limits_calc_pos_1): Likewise.
78894         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78895         pointer.
78896
78897         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78898
78899         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78900         (transit_state_sb): Likewise.
78901         (transit_state_mb): Likewise.
78902         (sift_states_iter_mb): Likewise.
78903         (check_arrival_add_next_nodes): Likewise.
78904         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78905         [_LIBC] (re_search_2_stub): Use mempcpy.
78906
78907         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78908         mbrtowc for very simple UTF-8 case.
78909
78910         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78911         a pointer-to-const.
78912         (re_acquire_state_context): Likewise.
78913         * lib/regex_internal.h: Adjust prototypes.
78914
78915         * lib/regex.c: Prevent using C++ compilers.
78916
78917         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78918         (re_acquire_state_context): Likewise.
78919
78920 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78921
78922         * modules/regex (Depends-on): Add ssize_t.
78923
78924 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78925
78926         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78927         translation table.
78928
78929 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78930
78931         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78932
78933 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78934             Bruno Haible  <bruno@clisp.org>
78935
78936         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78937         <sys/types.h> and <inttypes.h>.
78938
78939 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78940
78941         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78942         `__error_t_defined', so argp.h will not typedef the former.
78943
78944 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78945
78946         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78947         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78948         glibc names.  Even if glibc is changed to conform to POSIX, the
78949         traditional names will be available anyway, since regex depends on
78950         the extensions module.  Also, fix a longstanding typo in the
78951         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78952         reported by Emanuele Giaquinta.  Also, change sense of cached
78953         variable, so that the message makes sense.
78954
78955 2006-03-24  Simon Josefsson  <jas@extundo.com>
78956
78957         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78958         including some doc fixes.
78959         (base64_encode_alloc): Fix +1 bug on allocation failures.
78960
78961 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78962
78963         * lib/base64.c (base64_encode): Do not read past end of array with
78964         unsanitized input on systems with CHAR_BIT > 8.
78965
78966 2006-03-24  Eric Blake  <ebb9@byu.net>
78967
78968         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78969
78970 2006-03-22  Karl Berry  <karl@gnu.org>
78971
78972         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78973         * config/srclistvars.sh (COREUTILS): new var.
78974
78975 2006-03-17  Jim Meyering  <jim@meyering.net>
78976
78977         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78978         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78979
78980 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78981
78982         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78983         no longer needs it.  Instead, check that regoff_t is as least
78984         as wide as ptrdiff_t.
78985
78986         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78987         so that our regex.h stays compatible with the installed regex.
78988         This is helpful for installers who configure --without-included-regex.
78989         Problem reported by Emanuele Giaquinta.
78990
78991 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78992
78993         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78994         Typedef to long int, not to off_, as POSIX will likely change
78995         in that direction.
78996
78997 2006-03-15  Eric Blake  <ebb9@byu.net>
78998
78999         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
79000
79001 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79002
79003         * lib/argp-help.c (validate_uparams): Fix typo
79004         * lib/argp-parse.c (argp_default_options): Consistently begin help
79005         messages with a lowercase letter.
79006
79007 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
79008
79009         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
79010         overrun buffers and shouldn't be used (much as gets shouldn't be
79011         used).
79012         * lib/time_r.c (asctime_r, ctime_r): Likewise.
79013
79014 2006-03-08  Simon Josefsson  <jas@extundo.com>
79015
79016         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
79017         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79018
79019 2006-03-08  Simon Josefsson  <jas@extundo.com>
79020
79021         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
79022         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79023
79024 2006-03-08  Simon Josefsson  <jas@extundo.com>
79025
79026         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
79027         signal that configure disabled the device.
79028
79029 2006-03-08  Simon Josefsson  <jas@extundo.com>
79030
79031         * build-aux/maint.mk: Fix refresh-po, to handle no translated
79032         languages.
79033
79034 2006-03-07  Simon Josefsson  <jas@extundo.com>
79035
79036         * modules/getopt (Depends-on): Add unistd.
79037
79038         * modules/unistd: New file.
79039
79040 2006-03-07  Simon Josefsson  <jas@extundo.com>
79041
79042         * modules/gc-random: New file.
79043
79044 2006-03-07  Simon Josefsson  <jas@extundo.com>
79045
79046         * m4/unistd_h.m4: New file.
79047
79048 2006-03-07  Simon Josefsson  <jas@extundo.com>
79049
79050         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79051         test to be side-effect free by storing the result in the cache
79052         variable gl_cv_lib_readline, and moving the assignment of
79053         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79054         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79055
79056 2006-03-07  Simon Josefsson  <jas@extundo.com>
79057
79058         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79059         error on missing devices (the functions will return an error).
79060
79061         * m4/gc.m4: Move random stuff to gc-random.m4
79062
79063 2006-03-07  Simon Josefsson  <jas@extundo.com>
79064
79065         * lib/unistd_.h: New file.
79066
79067 2006-03-07  Simon Josefsson  <jas@extundo.com>
79068
79069         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79070
79071 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79072
79073         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79074         Problem reported by Juan Manuel Guerrero.
79075
79076 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79077
79078         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79079         the unistd module.
79080         * lib/getlogin_r.c: Likewise.
79081         * lib/getlogin_r.h: Likewise.
79082         * lib/glob.c: Likewise.
79083         * lib/pagealign_alloc.c: Likewise.
79084         * lib/unistd_.h: Remove; no longer needed.
79085
79086 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79087
79088         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79089         Add unistd.
79090         * modules/c-stack (Depends-on): Add unistd.
79091         * modules/getlogin_r: Likewise.
79092         * modules/glob: Likewise.
79093         * modules/pagealign_alloc: Likewise.
79094         * modules/unistd (Files): Remove lib/unistd_.h.
79095         (EXTRA_DIST): Remove.
79096         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79097         need unistd_.h.
79098         (MOSTLYCLEANFILES): Remove unistd.h-t.
79099
79100 2006-03-03  Simon Josefsson  <jas@extundo.com>
79101
79102         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79103
79104 2006-03-03  Simon Josefsson  <jas@extundo.com>
79105
79106         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79107         libidn and bison.
79108
79109 2006-03-03  Simon Josefsson  <jas@extundo.com>
79110
79111         * build-aux/maint.mk: Add indent target.
79112
79113 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79114
79115         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79116         our replacement poll.h in any case, to avoid a differing
79117         declaration from a system header.  Seen on AIX.
79118
79119 2006-03-01  Simon Josefsson  <jas@extundo.com>
79120
79121         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79122         <kasal@ucw.cz>.
79123
79124 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79125
79126         * modules/gettime (Depends-on): Add extensions module.
79127         * modules/nanosleep (Depends-on): Likewise.
79128         * modules/settime (Depends-on): Likewise.
79129
79130 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79131
79132         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79133         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79134         pedantically.
79135         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79136         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79137
79138         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79139         not "==".  Reported by Ralf Wildenhues.
79140
79141 2006-03-01  Karl Berry  <karl@gnu.org>
79142
79143         * doc/Copyright/request-*: new files, synced from gnuorg.
79144
79145 2006-03-01  Karl Berry  <karl@gnu.org>
79146
79147         * config/srclist.txt (Copyright/*): new entries.
79148
79149 2006-02-28  Simon Josefsson  <jas@extundo.com>
79150
79151         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79152
79153 2006-02-27  Simon Josefsson  <jas@extundo.com>
79154
79155         * lib/base64.h: Indent #define's.  From Jim Meyering
79156         <jim@meyering.net>.
79157
79158 2006-02-27  Jim Meyering  <jim@meyering.net>
79159
79160         Revert the change of 2006-02-24, so these files can continue
79161         to be sync'd from gettext.
79162         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79163         of `config.h'.
79164
79165 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79166
79167         * modules/intprops: New file.
79168         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79169         Add intprops.
79170         * modules/getloadavg (Files): Remove lib/intprops.h.
79171         (Depends-on): Add intprops.
79172         * modules/human: Likewise.
79173         * modules/inttostr: Likewise.
79174         * modules/openat: Likewise.
79175         * modules/sig2str: Likewise.
79176         * modules/userspec: Likewise.
79177         * modules/utimecmp: Likewise.
79178         * modules/xnanosleep: Likewise.
79179         * modules/xstrtol: Likewise.
79180
79181 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79182
79183         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79184         * modules/lock-tests (TESTS): Use $(EXEEXT).
79185         * modules/tls-tests: Likewise.
79186         * modules/argp-tests: Likewise.
79187         (check_PROGRAMS): New var, replacing...
79188         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79189
79190 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79191
79192         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79193         `config.h'.
79194
79195 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79196
79197         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79198
79199 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79200
79201         Sync from coreutils.
79202         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79203         gl_CHDIR_SAFER.
79204
79205 2006-02-22  Jim Meyering  <jim@meyering.net>
79206
79207         Sync from coreutils.
79208         * m4/chdir-safer.m4: New file.
79209
79210 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79211
79212         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79213         AT_FDCWD exceeds INT_MAX.
79214         * lib/openat.h (AT_FDCWD): Likewise.
79215
79216 2006-02-17  Eric Blake  <address@hidden>
79217
79218         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79219
79220 2006-02-16  Simon Josefsson  <jas@extundo.com>
79221
79222         * modules/getaddrinfo (Depends-on): Add sys_socket.
79223
79224 2006-02-15  Simon Josefsson  <jas@extundo.com>
79225
79226         * build-aux/maint.mk: Add dsyntax-check rule.
79227
79228 2006-02-15  Eric Blake  <ebb9@byu.net>
79229
79230         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79231         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79232         'present but cannot compile' warnings on cygwin.
79233         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79234         use ws2tcpip.h if sys/socket.h works.
79235         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79236         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79237
79238 2006-02-14  Simon Josefsson  <jas@extundo.com>
79239
79240         * modules/maintainer-makefile (Files): Rename.
79241
79242         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79243         and (the local) Makefile.cfg to maint-cfg.mk.
79244
79245         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79246         to the latter.
79247
79248         * modules/maintainer-makefile: New module.
79249
79250         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79251         severaly stripped to make it possible to build it up from scratch
79252         with reliable tests.
79253
79254         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79255         fixes to permit overriding the default actions when configure and
79256         makefile are not available.
79257
79258 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79259
79260         Sync from coreutils.
79261         * modules/lstat (Depends-on): Don't depend on xalloc.
79262         (License): Change from GPL to LGPL, since this is now simply a
79263         replacement for a libc function.
79264
79265 2006-02-14  Jim Meyering  <jim@meyering.net>
79266
79267         Sync from coreutils.
79268
79269         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79270         failure on deficient systems, and simplify gnulib lgpl dependencies.
79271         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79272         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79273
79274         * lib/xalloc-die.c: Remove unused definition of N_.
79275
79276 2006-02-14  Jim Meyering  <jim@meyering.net>
79277
79278         Sync from coreutils.
79279         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79280         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79281         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79282         double-quote uses of that variable, to accommodate the rare case in
79283         which getmntent is available in none of the libraries checked.  This
79284         happens at least on FreeBSD 5.0.
79285
79286 2006-02-13  Simon Josefsson  <jas@extundo.com>
79287
79288         * gnulib-tool (Usage): Fix --import, from
79289         karl@freefriends.org (Karl Berry).
79290
79291 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79292
79293         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
79294
79295 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
79296
79297         * lib/argp-namefrob.h: Restore changes accidentally lost during the
79298         "autoupdate" on 2005-12-12.
79299
79300 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79301
79302         * modules/closeout (Depends-on): Remove atexit.
79303
79304 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79305
79306         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79307         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79308
79309 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79310
79311         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79312         __EXTENSIONS__ if this causes compilation to fail.  Problem
79313         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79314         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79315
79316 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79317
79318         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79319         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79320         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79321         All uses changed.
79322
79323 2006-01-26  Simon Josefsson  <jas@extundo.com>
79324
79325         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79326         prototype is visible on mingw32.
79327
79328         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79329         for mingw32.
79330
79331         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79332         mingw32).
79333
79334 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79335
79336         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79337         attempt to open for write; this always fails, at least on POSIX
79338         hosts.  This reinstates the 2006-01-09 change, which was
79339         inadvertently removed.
79340
79341 2006-01-26  Bruno Haible  <bruno@clisp.org>
79342
79343         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79344         Reported by Paul Eggert.
79345
79346 2006-01-26  Bruno Haible  <bruno@clisp.org>
79347             Paul Eggert  <eggert@cs.ucla.edu>
79348
79349         * lib/stdbool_.h (_Bool)
79350         [(! (defined __cplusplus || defined __BEOS__)
79351           && !defined __GNUC__
79352           && !(defined __HP_cc || defined __xlc__
79353                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79354                || defined __sgi))]:
79355         #define to signed char in these cases too; this simplifies
79356         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79357         etc., separately) and makes it more conservative.
79358
79359 2006-01-25  Simon Josefsson  <jas@extundo.com>
79360
79361         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79362         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79363         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
79364
79365 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79366
79367         * lib/argp-namefrob.h: Bugfix. Remove stray #
79368
79369 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79370
79371         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
79372         so that we test the test.
79373         Check for yet another HP-UX cc bug involving *bool |= bool.
79374
79375 2006-01-25  Karl Berry  <karl@gnu.org>
79376
79377         * config/srclist.txt (vasnprintf.c): sync lost.
79378
79379 2006-01-25  Jim Meyering  <jim@meyering.net>
79380
79381         Sync from the stable (b5) branch of coreutils:
79382
79383         * lib/fts.c (fts_children): Don't let close() clobber errno from
79384         failed fchdir().
79385
79386         * lib/fts.c (fts_stat): When following a symlink-to-directory,
79387         don't necessarily interpret stat-fails+lstat-succeeds as indicating
79388         a dangling symlink.  That can also happen at least for ELOOP.
79389         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
79390         FYI, this bug predates the inclusion of fts.c in coreutils.
79391
79392         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
79393         in their own block, so pre-c99 compilers don't object.
79394
79395         Avoid the double-free (first in fts_read, second in fts_close) that
79396         would occur when an `active' directory is made inaccessible (e.g.,
79397         via chmod a-x) during a traversal.
79398         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79399         before returning.  Reproduce this failure by
79400         mkdir -p a/b; cd a; chmod a-x . b
79401         Reported by Stavros Passas.
79402
79403 2006-01-25  Jim Meyering  <jim@meyering.net>
79404
79405         * lib/fileblocks.c: Remove more useless parentheses.
79406         * lib/readutmp.h: Likewise.
79407
79408 2006-01-25  Bruno Haible  <bruno@clisp.org>
79409
79410         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
79411         warnings.
79412         Reported by Paul Eggert.
79413
79414 2006-01-25  Bruno Haible  <bruno@clisp.org>
79415
79416         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
79417         rid of a trap command. For Solaris sh.
79418         Reported by Mark D. Baushke <mdb@gnu.org>.
79419
79420 2006-01-24  Simon Josefsson  <jas@extundo.com>
79421
79422         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79423         Bruno.
79424
79425 2006-01-24  Karl Berry  <karl@gnu.org>
79426
79427         * config/srclist.txt (argp-namefrob.h): sync lost.
79428
79429 2006-01-24  Jim Meyering  <jim@meyering.net>
79430
79431         * modules/openat (Files): Add lib/intprops.h.
79432         From Mark D. Baushke.
79433
79434 2006-01-24  Jim Meyering  <jim@meyering.net>
79435
79436         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79437         Reported by Mark D. Baushke.
79438
79439 2006-01-24  Jim Meyering  <jim@meyering.net>
79440
79441         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
79442
79443 2006-01-24  Bruno Haible  <bruno@clisp.org>
79444
79445         * modules/strnlen (Maintainer): Change from glibc to all.
79446
79447 2006-01-24  Bruno Haible  <bruno@clisp.org>
79448
79449         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
79450         Patch by Paul Eggert.
79451
79452 2006-01-24  Bruno Haible  <bruno@clisp.org>
79453
79454         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
79455         already has it.
79456         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
79457         2005-11-26.
79458
79459         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
79460         'signed char' to avoid problems with the built-in _Bool type.
79461         Reported by Paul Eggert on 2005-11-26.
79462
79463 2006-01-24  Bruno Haible  <bruno@clisp.org>
79464
79465         * gnulib-tool (func_import): Avoid constructing complicated sed
79466         expressions inside backquote.
79467         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79468
79469 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79470
79471         These changes imported from libc.
79472         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
79473         test and two separate function calls.
79474         * lib/strndup.c (__strndup): Add libc_hidden_def.
79475
79476 2006-01-23  Simon Josefsson  <jas@extundo.com>
79477
79478         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
79479         Remove the test_*_SOURCES variable: automake infers it by default.
79480         * modules/tls-tests: Likewise.
79481
79482 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79483
79484         Work around porting bugs reported by Dieter in
79485         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
79486         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
79487         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
79488         Include "getopt.h" first, to check interface.
79489         (getenv): Declare only if defined HAVE_DECL_GETENV &&
79490         !HAVE_DECL_GETENV.
79491         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
79492         (__strndup): Revert to K&R-style function dfns, the glibc style.
79493         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
79494         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
79495         Include strnlen.h first, to get prototype properly.
79496         (strnlen): Renamed from __strnlen.
79497         Remove weak alias.
79498
79499 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79500
79501         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
79502
79503 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79504
79505         * config/srclist.txt: Adjust to reflect glibc reorganization.
79506         This affects only comments.
79507
79508 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79509
79510          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
79511          Reported by Bruce Korb <bkorb@gnu.org>.
79512
79513 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
79514
79515         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
79516         to pacify gcc -Wswitch-default.
79517
79518 2006-01-22  Bruno Haible  <bruno@clisp.org>
79519
79520         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79521         temporary buffer for sprintf, take into account the precision also
79522         for 'd', 'i', 'u', 'o', 'x', 'X'.
79523
79524 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79525
79526         * modules/argp-tests: New module
79527         * tests/test-argp.c: New file
79528         * tests/test-argp-2.sh: New file
79529
79530 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79531
79532         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79533         (__argp_base_name): Removed
79534         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79535         typo.
79536         (__argp_base_name): Provide macro definition or extern declaration
79537         depending on the configuration
79538
79539 2006-01-20  Simon Josefsson  <jas@extundo.com>
79540
79541         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79542
79543 2006-01-20  Simon Josefsson  <jas@extundo.com>
79544
79545         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79546
79547 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79548
79549         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79550         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79551         Suggested by Bruno Haible.
79552
79553 2006-01-20  Karl Berry  <karl@gnu.org>
79554
79555         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79556         until changes propagate, I guess.
79557
79558 2006-01-19  Simon Josefsson  <jas@extundo.com>
79559
79560         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79561
79562 2006-01-19  Simon Josefsson  <jas@extundo.com>
79563
79564         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79565
79566 2006-01-19  Simon Josefsson  <jas@extundo.com>
79567
79568         * gnulib-tool: Set check_PROGRAMS.
79569
79570         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79571         modules/des-tests, modules/gc-arcfour-tests,
79572         modules/gc-arctwo-tests, modules/gc-des-tests,
79573         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79574         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79575         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79576         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79577         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79578         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79579         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79580         test_*_SOURCES.
79581
79582 2006-01-18  Simon Josefsson  <jas@extundo.com>
79583
79584         * modules/socklen (Depends-on): Depend on sys_socket.
79585
79586 2006-01-18  Simon Josefsson  <jas@extundo.com>
79587
79588         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79589         modules/des-tests, modules/gc-arcfour-tests,
79590         modules/gc-arctwo-tests, modules/gc-des-tests,
79591         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79592         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79593         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79594         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79595         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79596         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79597         $(EXEEXT) to automake TESTS variable, for mingw32.
79598
79599 2006-01-17  Simon Josefsson  <jas@extundo.com>
79600
79601         * modules/socklen (Include): Need sys/socket.h.
79602
79603 2006-01-17  Bruno Haible  <bruno@clisp.org>
79604
79605         * modules/ssize_t (Include): Add <sys/types.h>.
79606
79607 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79608
79609         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79610         it's not portable and it doesn't work with cross-compiles.
79611         Problem reported by Bruno Haible.  Fix missing-$ typo in
79612         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79613         -zignore from being used with Sun's C compiler.
79614
79615 2006-01-12  Simon Josefsson  <jas@extundo.com>
79616
79617         * lib/base64.c: Fix warning, reported by Bruno Haible
79618         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79619
79620 2006-01-12  Bruno Haible  <bruno@clisp.org>
79621
79622         * modules/ldd: New file.
79623         * build-aux/ldd.sh.in: New file.
79624         * MODULES.html.sh (Support for building libraries and executables): Add
79625         ldd.
79626
79627 2006-01-12  Bruno Haible  <bruno@clisp.org>
79628
79629         * m4/ldd.m4: New file.
79630
79631 2006-01-12  Bruno Haible  <bruno@clisp.org>
79632
79633         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79634         endless loop while replacing $auxdir with build-aux.
79635
79636 2006-01-11  Simon Josefsson  <jas@extundo.com>
79637
79638         * lib/stdint_.h (SIZE_MAX): Add missing (.
79639
79640 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79641
79642         Sync from coreutils.
79643         * lib/md5.c: Fix commentary typos.
79644         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79645         * lib/md5.h (__attribute__): Remove; unused.
79646         * lib/sha1.c: Fix commentary to match md5 better.
79647         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79648         so that we don't need to worry about alignment.  All uses changed.
79649         This merges the 2005-10-28 md5 change into sha1.
79650
79651 2006-01-11  Jim Meyering  <jim@meyering.net>
79652
79653         Sync from coreutils.
79654         * lib/md5.c (OP): Fix spacing.
79655
79656 2006-01-11  Bruno Haible  <bruno@clisp.org>
79657
79658         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79659         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79660         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79661
79662 2006-01-11  Bruno Haible  <bruno@clisp.org>
79663
79664         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79665         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79666         the "early" section as well.
79667
79668 2006-01-11  Bruno Haible  <bruno@clisp.org>
79669
79670         Avoid "ar: no archive members specified" error on MacOS X.
79671         * gnulib-tool (func_modules_add_dummy): New function.
79672         (func_import, func_create_testdir): Invoke it.
79673
79674 2006-01-11  Bruno Haible  <bruno@clisp.org>
79675
79676         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79677         with $auxdir in AC_CONFIG_FILES statements.
79678
79679 2006-01-11  Bruno Haible  <bruno@clisp.org>
79680
79681         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79682         Initialize also noinst_HEADERS to empty.
79683
79684 2006-01-11  Bruno Haible  <bruno@clisp.org>
79685
79686         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79687         variables.
79688         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79689         autoreconf.
79690
79691 2006-01-11  Bruno Haible  <bruno@clisp.org>
79692
79693         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79694         overridable by the user.
79695         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79696
79697 2006-01-10  Simon Josefsson  <jas@extundo.com>
79698
79699         * modules/sys_socket: New file.
79700
79701 2006-01-10  Simon Josefsson  <jas@extundo.com>
79702
79703         * m4/sys_socket_h.m4: New file.
79704
79705 2006-01-10  Simon Josefsson  <jas@extundo.com>
79706
79707         * lib/socket_.h: New file.
79708
79709 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79710
79711         * modules/readutmp (Maintainer): Add myself.
79712
79713 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79714
79715         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79716         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79717         People who are still concerned with buggy memcmp implementations
79718         can invoke gl_FUNC_MEMCMP themselves.
79719
79720 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79721
79722         * lib/regex_internal.h (BITSET_WORD_BITS):
79723         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79724         preprocessor mishandles large unsigned values as if they were signed.
79725         Problem reported by Claudio Fontana in
79726         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79727
79728 2006-01-10  Jim Meyering  <jim@meyering.net>
79729
79730         Avoid the double-free (first in fts_read, second in fts_close) that
79731         would occur when an `active' directory is made inaccessible (e.g.,
79732         via chmod a-x) during a traversal.
79733         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79734         before returning.  Reproduce this failure by
79735         mkdir -p a/b; cd a; chmod a-x . b
79736         Reported by Stavros Passas.
79737
79738         Sync from coreutils.
79739         * lib/sha1.c: Tweak grammar in a comment.
79740
79741 2006-01-10  Jim Meyering  <jim@meyering.net>
79742
79743         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79744         Patch by Joerg Sonnenberger.
79745
79746 2006-01-10  Bruno Haible  <bruno@clisp.org>
79747
79748         * modules/readutmp: Depend on module free.
79749         * modules/strtok_r: Depend on module restrict.
79750
79751 2006-01-10  Bruno Haible  <bruno@clisp.org>
79752
79753         * modules/gettext (configure.ac): Add an invocation of
79754         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79755
79756 2006-01-10  Bruno Haible  <bruno@clisp.org>
79757
79758         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79759         Reported by Werner Lemberg <wl@gnu.org>.
79760
79761 2006-01-10  Bruno Haible  <bruno@clisp.org>
79762
79763         * lib/localcharset.c: Update from GNU gettext.
79764
79765 2006-01-10  Bruno Haible  <bruno@clisp.org>
79766
79767         * lib/argp.h (__const): Remove macro. Use const instead.
79768         * lib/argp-fmtstream.h (__const): Likewise.
79769         * lib/glob_.h (__const): Remove macro.
79770         * lib/glob-libc.h: Use const instead of __const.
79771
79772 2006-01-10  Bruno Haible  <bruno@clisp.org>
79773
79774         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79775         variable.
79776         Needed to avoid an automake error regarding the 'gettext' module.
79777
79778 2006-01-09  Simon Josefsson  <jas@extundo.com>
79779
79780         * modules/inet_ntop (Depends-on): Add restrict.
79781
79782 2006-01-09  Simon Josefsson  <jas@extundo.com>
79783
79784         * modules/gc-rijndael-tests (License): Put under LGPL.
79785
79786         * modules/gc-des-tests (License): Likewise.
79787
79788         * modules/gc-arcfour-tests (License): Likewise.
79789
79790         * modules/gc-arctwo-tests (License): Likewise.
79791
79792         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79793
79794         * modules/gc-hmac-sha1-tests (Files): Likewise.
79795
79796         * modules/gc-hmac-md5-tests (License): Likewise.
79797
79798         * modules/gc-sha1-tests (License): Likewise.
79799
79800         * modules/gc-md5-tests (License): Likewise.
79801
79802         * modules/gc-md4-tests (License): Likewise.
79803
79804         * modules/gc-md2-tests (License): Likewise.
79805
79806         * modules/gc-tests (License): Likewise.
79807
79808         * modules/des-tests (License): Likewise.
79809
79810         * modules/md4-tests (License): Likewise.
79811
79812         * modules/md2-tests (License): Likewise.
79813
79814 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79815
79816         Sync from coreutils:
79817
79818         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79819         * modules/lib-ignore: New file.
79820         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79821         chdir-safer.m4, lchmod.m4.
79822         * modules/openat: Add mkdirat.c, openat-priv.h.
79823
79824 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79825
79826         Sync from coreutils.
79827         * m4/lib-ignore.m4: New file.
79828         * m4/lchmod.m4: New file.
79829
79830 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79831
79832         Sync from coreutils.
79833         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79834         for write access: POSIX says that must fail.
79835         * lib/fts.c (diropen): Likewise.
79836         * lib/save-cwd.c (save_cwd): Likewise.
79837         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79838         well, for minor improvements on hosts that lack O_DIRECTORY.
79839         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79840         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79841         Fall back on chown if open failed with EACCES.
79842
79843         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79844         Report an error at compile-time if only a 1-second nominal clock
79845         resolution is found.
79846
79847         * lib/lchmod.h: New file.
79848         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79849         (make_dir_parents): Use lchown rather than chown, and
79850         lchmod rather than chmod.
79851
79852         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79853         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79854         "proc" reported by n0dalus.
79855
79856         * lib/mountlist.c: Include <limits.h>.
79857         (dev_from_mount_options)
79858         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79859         New function.  It no longer assumes "dev=" has the System V meaning
79860         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79861         (read_file_system_list)
79862         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79863         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79864         dev= in that case.
79865
79866         * lib/posixtm.h (PDS_PRE_2000): New macro.
79867         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79868         allow_century.  All usages changed.  Reject dates outside the range
79869         1969-1999 if PDS_PRE_2000 is used.
79870
79871 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79872
79873         Sync from coreutils.
79874         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79875         (Time of day items): Mention the possibility of leap seconds.
79876         Problem reported by Dr. David Alan Gilbert.
79877
79878 2006-01-09  Jim Meyering  <jim@meyering.net>
79879
79880         Sync from coreutils.
79881
79882         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79883
79884         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79885
79886         * lib/modechange.c (mode_compile): Reject an invalid mode string
79887         that starts with an octal digit.  From Andreas Gruenbacher.
79888
79889         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79890         and dup to open_safer and dup_safer, respectively.
79891         (openat_permissive): Fix typo in comment.
79892
79893         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79894         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79895         (_): Remove; no longer needed.
79896         (openat): Renamed from rpl_openat; no need for rpl_openat
79897         since openat.h renames openat for us.
79898         Replace most of the body with a call to openat_permissive,
79899         to avoid duplicate code.
79900         Port to (probably hypothetical) environments were mode_t is
79901         wider than int.
79902         (openat_permissive): Require mode arg, so that we can check
79903         types better.  Put it just after flags.  Change cwd failure
79904         indicator from pointer-to-bool to pointer-to-errno-value.
79905         All callers changed.
79906         Invoke openat_save_fail and/or openat_restore_fail if
79907         cwd_errno is null, so that openat can call us.
79908         (openat_permissive, fdopendir, fstatat, unlinkat):
79909         Simplify errno handling to avoid some duplicate code,
79910         as it's OK to set errno on success.
79911         * lib/openat.h: Revamp code so that function macros depend on
79912         __OPENAT_PREFIX only, not also on AT_FDCWD.
79913         (openat_ro): Remove.  Caller changed to use openat_permissive.
79914         (openat_permissive): Now a macro, if not a function.
79915         (openat_restore_fail, openat_save_fail): Now always functions,
79916         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79917
79918         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79919         and openat.c.
79920         * lib/mkdirat.c: Include openat-priv.h.
79921         Remove definitions of macros defined therein.
79922         * lib/openat.c: Likewise.
79923
79924         * lib/mkdirat.c (mkdirat): New file and function.
79925         * lib/openat.h (mkdirat): Declare.
79926
79927         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79928
79929         * lib/openat.h (openat_permissive): Declare.
79930         (openat_ro): Define.
79931
79932         * lib/openat.c (EXPECTED_ERRNO): New macro.
79933         (openat_permissive): New function -- used in remove.c rewrite.
79934         (all functions): Set errno just before returning, only if there
79935         was an actual failure.
79936         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79937
79938         Emulate openat-family functions using Linux's procfs, if possible.
79939         Idea and some code based on Ulrich Drepper's glibc changes.
79940
79941         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79942         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79943         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79944         before falling back on save_cwd and restore_cwd.
79945         (fdopendir, fstatat, unlinkat): Likewise.
79946
79947         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79948         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79949
79950         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79951         as second argument to va_arg.  Otherwise, some versions of gcc
79952         warn that `if this code is reached, the program will abort'.
79953
79954 2006-01-09  Jim Meyering  <jim@meyering.net>
79955
79956         Sync from coreutils.
79957         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79958         Require openat-priv.h.
79959
79960 2006-01-09  Bruno Haible  <bruno@clisp.org>
79961
79962         * modules/strnlen (Include): Use strnlen.h.
79963
79964 2006-01-09  Bruno Haible  <bruno@clisp.org>
79965
79966         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79967
79968 2006-01-09  Bruno Haible  <bruno@clisp.org>
79969
79970         * lib/sysexit_.h (EX_OK): New macro.
79971         Suggested by Martin Lambers <marlam@marlam.de>.
79972
79973 2006-01-09  Bruno Haible  <bruno@clisp.org>
79974
79975         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79976         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79977
79978 2006-01-09  Bruno Haible  <bruno@clisp.org>
79979
79980         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79981         numbers.
79982
79983 2006-01-09  Bruno Haible  <bruno@clisp.org>
79984
79985         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79986         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79987         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79988         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79989
79990 2006-01-09  Bruno Haible  <bruno@clisp.org>
79991
79992         * build-aux/javacomp.sh.in: New file, moved from lib/.
79993         * modules/javacomp-script (Files): Update.
79994         (configure.ac): Add AC_CONFIG_FILES invocation.
79995         (EXTRA_DIST): Remove variable.
79996
79997         * build-aux/javaexec.sh.in: New file, moved from lib/.
79998         * modules/javaexec (Files): Update.
79999         (configure.ac): Add AC_CONFIG_FILES invocation.
80000         (EXTRA_DIST): Remove javaexec.sh.in.
80001
80002         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
80003         * modules/csharpcomp-script (Files): Update.
80004         (configure.ac): Add AC_CONFIG_FILES invocation.
80005         (EXTRA_DIST): Remove variable.
80006
80007         * build-aux/csharpexec.sh.in: New file, moved from lib/.
80008         * modules/csharpexec (Files): Update.
80009         (configure.ac): Add AC_CONFIG_FILES invocation.
80010         (EXTRA_DIST): Remove csharpexec.sh.in.
80011
80012 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80013
80014         Sync from coreutils.
80015
80016         Add POSIX ACL support
80017         * lib/acl.h (copy_acl, set_acl): Add declarations.
80018         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
80019         systems other than Linux.
80020         (chmod_or_fchmod): New function: use fchmod when possible,
80021         and chmod otherwise.
80022         (file_has_acl): Add a POSIX ACL implementation, with a
80023         Linux-specific subcase.
80024         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
80025         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
80026         acls are unsupported.
80027         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
80028         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
80029         are unsupported.
80030
80031 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80032
80033         Sync from coreutils.
80034         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80035
80036 2006-01-07  Bruno Haible  <bruno@clisp.org>
80037
80038         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80039         gl_EARLY.
80040
80041 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80042
80043         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80044         Problem reported for Mingw by Mark Junker.
80045
80046 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80047
80048         * README: Gnulib normally doesn't generate a tarball.
80049
80050 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80051
80052         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80053         long int, not int, for nanosecond counts, so that people who are
80054         used to POSIX struct timespec won't be surprised.  Reported by Jim
80055         Meyering.
80056
80057 2005-12-28  Bruno Haible  <bruno@clisp.org>
80058
80059         * build-aux/config.rpath: Update from GNU gettext.
80060
80061 2005-12-16  Jim Meyering  <jim@meyering.net>
80062
80063         * modules/fprintftime: New module.
80064         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80065
80066 2005-12-16  Jim Meyering  <jim@meyering.net>
80067
80068         * m4/fprintftime.m4: New file.
80069
80070 2005-12-16  Jim Meyering  <jim@meyering.net>
80071
80072         * lib/fprintftime.c, lib/fprintftime.h: New files.
80073
80074 2005-12-15  Simon Josefsson  <jas@extundo.com>
80075
80076         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80077         new m4/socklen.m4.
80078
80079 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80080
80081         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80082         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80083
80084 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80085
80086         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80087         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80088         struct uparams is valid. Fall back to the default values if it is
80089         not.
80090
80091 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80092
80093         * modules/argp (Files): Add argp-pin.c
80094         (Depends-on): dirname
80095         (lib_SOURCES): Add argp-pin.c
80096
80097 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80098
80099         * m4/argp.m4:  Check if program_invocation_name and
80100         program_invocation_short_name are declared and define appropriate
80101         macros if they are not.
80102
80103 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80104
80105         * lib/argp-help.c (__argp_base_name): New function
80106         (__argp_short_program_name): Rewrite using __argp_base_name
80107         * lib/argp-namefrob.h: Define program_invocation_name and
80108         program_invocation_short_name if requested
80109         (__argp_base_name): Add prototype
80110         * lib/argp-parse.c (argp_def): Use gettext wrappers
80111         (argp_default_parser): Use __argp_base_name
80112         * lib/argp-pin.c: New file. Defines program_invocation_name and
80113         program_invocation_short_name on systems that lack them.
80114
80115 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80116
80117         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80118         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80119         porting problem reported by Georg Schwarz in
80120         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80121
80122 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80123
80124         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80125         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80126         porting problem reported by Georg Schwarz in
80127         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80128
80129 2005-12-05  Bruno Haible  <bruno@clisp.org>
80130
80131         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80132         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80133         Reported by Mark Junker <mjscod@gmx.de>.
80134
80135 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80136
80137         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80138         Use implementation from Albert Chin, with some
80139         comments/corrections by Stepan Kasal and myself.
80140
80141 2005-12-02  Bruno Haible  <bruno@clisp.org>
80142
80143         * gnulib-tool (func_import): Accept GPLed build tool modules when
80144         --lgpl is given.
80145         * modules/csharpcomp-script: New file.
80146         * modules/csharpcomp: Depend on it.
80147         * modules/javacomp-script: New file.
80148         * modules/javacomp: Depend on it.
80149         Suggested by Simon Josefsson.
80150
80151 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80152
80153         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80154         statement, to work around an HP-UX 10.20 compiler bug reported by
80155         Peter O'Gorman.
80156
80157 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80158
80159         * modules/savedir (Depends-on): Add openat.
80160
80161 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80162
80163         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80164         (uintmax_t) [defined uintmax_t]: Do not declare.
80165         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80166         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80167         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80168         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80169         sake of portability to weird hosts that C allows (though we don't
80170         know of any practical examples).
80171
80172         * lib/savedir.h (fdsavedir): New decl.
80173         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80174         contains most of the former guts of savedir.
80175         (savedir): Use savedirstream.
80176         Include "openat.h".
80177
80178 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80179
80180         * modules/obstack (Files): Add m4/ulonglong.m4.
80181         Problem reported by Davide Angelocola.
80182
80183 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80184
80185         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80186         coreutils no longer futzes with rounding modes.
80187
80188 2005-11-14  Jim Meyering  <jim@meyering.net>
80189
80190         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80191         replacement of mkstemp.
80192
80193 2005-11-10  Simon Josefsson  <jas@extundo.com>
80194
80195         * lib/readline.c: Remove EOL.
80196
80197 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80198
80199         * modules/gethrxtime (Depends-on): Add gettime.
80200
80201 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80202
80203         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80204         or gettimeofday; no longer needed.
80205
80206 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80207
80208         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80209         time business.
80210         (gethrxtime) [! (HAVE_NANOUPTIME
80211         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80212         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80213         our own approximation.
80214
80215 2005-11-08  Eric Blake  <ebb9@byu.net>
80216
80217         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80218
80219 2005-11-08  Eric Blake  <ebb9@byu.net>
80220
80221         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80222
80223 2005-11-04  Bruno Haible  <bruno@clisp.org>
80224
80225         * gnulib-tool: Implement --update mode.
80226
80227 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80228
80229         Fix porting problem reported by Theodoros V. Kalamatianos.
80230         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80231         Don't assume that futimes failing means we must fail.
80232
80233 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80234
80235         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80236         variables to suggest the intended function of the PATH_MAX check.
80237
80238 2005-10-30  Kean Johnston  <jkj@sco.com>
80239
80240         Trivial changes to support SCO systems.
80241         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80242         as PATH_MAX.
80243         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80244         where __ptr is null when no I/O is pending.
80245
80246 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80247
80248         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80249         leave errno alone.  Problem reported by Dmitry V. Levin.
80250
80251 2005-10-28  Simon Josefsson  <jas@extundo.com>
80252
80253         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80254         Test more.
80255
80256         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80257
80258         * modules/md2, modules/md2-tests: New files.
80259
80260 2005-10-28  Simon Josefsson  <jas@extundo.com>
80261
80262         * m4/inet_ntop.m4: More tests.
80263
80264         * m4/gc-md2.m4, md2.m4: New file.
80265
80266 2005-10-28  Simon Josefsson  <jas@extundo.com>
80267
80268         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80269         "restrict" keywords, as per POSIX.  Protect the function
80270         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80271         Don't use K&R prototypes.  Check the sprintf return values.
80272         Re-define EAFNOSUPPORT if not present.  Indent.
80273
80274         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80275         suggested by Bruno Haible <bruno@clisp.org>.
80276
80277         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80278
80279         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80280
80281         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80282         libgcrypt).
80283
80284         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80285
80286         * lib/md2.h, lib/md2.c: New files.
80287
80288 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80289
80290         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
80291         errno alone.  Problem reported by Frederic Jolliton.
80292
80293 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
80294
80295         * modules/verify (License): Change from GPL to LGPL.  This is a
80296         tiny module and there are apparently near-equivalents that are
80297         under the BSD license.
80298
80299 2005-10-24  Simon Josefsson  <jas@extundo.com>
80300
80301         * modules/sha1: Relicense to LGPL.
80302
80303 2005-10-24  Simon Josefsson  <jas@extundo.com>
80304
80305         * lib/md4.h: Shrink buffer size, now that we changed the type.
80306
80307 2005-10-23  Simon Josefsson  <jas@extundo.com>
80308
80309         * gnulib-tool (func_import): Fix --tests-base.
80310
80311 2005-10-22  Simon Josefsson  <jas@extundo.com>
80312
80313         * modules/arcfour (Depends-on): Need stdint.
80314
80315 2005-10-22  Simon Josefsson  <jas@extundo.com>
80316
80317         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80318         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80319
80320 2005-10-22  Simon Josefsson  <jas@extundo.com>
80321
80322         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80323         suggested by Bruno Haible <bruno@clisp.org>.
80324
80325 2005-10-22  Simon Josefsson  <jas@extundo.com>
80326
80327         * lib/crc.h: Include stddef.h, for size_t.
80328
80329 2005-10-22  Simon Josefsson  <jas@extundo.com>
80330
80331         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80332         arcfour_context struct (simplify test vector testing in GNU
80333         Shishi).
80334
80335 2005-10-21  Simon Josefsson  <jas@extundo.com>
80336
80337         * modules/des, modules/des-tests: New files.
80338
80339         * modules/gc-des, modules/gc-des-tests: New files.
80340
80341         * tests/test-des.c, tests/test-gc-des.c: New file.
80342
80343 2005-10-21  Simon Josefsson  <jas@extundo.com>
80344
80345         * modules/arctwo, modules/arctwo-tests: New files.
80346
80347         * tests/test-arctwo.c: New file.
80348
80349         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80350
80351         * tests/test-gc-arctwo.c: New file.
80352
80353 2005-10-21  Simon Josefsson  <jas@extundo.com>
80354
80355         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80356         Bruno Haible <bruno@clisp.org>.
80357
80358         * m4/gc-des.m4: New file.
80359
80360 2005-10-21  Simon Josefsson  <jas@extundo.com>
80361
80362         * m4/arctwo.m4: New file.
80363
80364         * m4/gc-arctwo.m4: New file.
80365
80366 2005-10-21  Simon Josefsson  <jas@extundo.com>
80367
80368         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
80369         block.
80370
80371 2005-10-21  Simon Josefsson  <jas@extundo.com>
80372
80373         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
80374         <bruno@clisp.org>.
80375
80376         * lib/hmac-sha1.c (hmac_sha1): Likewise.
80377
80378         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
80379         Bruno Haible <bruno@clisp.org>.
80380
80381         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
80382         <bruno@clisp.org>.
80383
80384 2005-10-21  Simon Josefsson  <jas@extundo.com>
80385
80386         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
80387
80388 2005-10-21  Simon Josefsson  <jas@extundo.com>
80389
80390         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
80391
80392 2005-10-21  Simon Josefsson  <jas@extundo.com>
80393
80394         * lib/des.h, lib/des.c: New files.
80395
80396         * lib/gc-gnulib.c: Support DES.c
80397
80398 2005-10-21  Simon Josefsson  <jas@extundo.com>
80399
80400         * lib/arctwo.h, lib/arctwo.c: New files.
80401
80402         * lib/gc-gnulib.c: Support ARCTWO.
80403
80404 2005-10-21  Simon Josefsson  <jas@extundo.com>
80405
80406         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
80407         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80408
80409 2005-10-21  Simon Josefsson  <jas@extundo.com>
80410
80411         * gnulib-tool (func_import, func_create_testdir): Define automake
80412         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
80413         Makefile.am snippet),
80414         suggested by Bruno Haible <bruno@clisp.org>.
80415
80416         * modules/gc (Makefile.am): Use it.
80417
80418 2005-10-21  Bruno Haible  <bruno@clisp.org>
80419
80420         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80421         patch.
80422
80423 2005-10-19  Simon Josefsson  <jas@extundo.com>
80424
80425         * tests/test-gc-rijndael.c: New file.
80426
80427         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80428
80429 2005-10-19  Simon Josefsson  <jas@extundo.com>
80430
80431         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80432         interface too.
80433
80434 2005-10-19  Simon Josefsson  <jas@extundo.com>
80435
80436         * tests/test-gc-arcfour.c: New file.
80437
80438         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80439
80440 2005-10-19  Simon Josefsson  <jas@extundo.com>
80441
80442         * modules/gc-md4, modules/gc-md4-tests: New file.
80443
80444         * tests/test-gc-md4.c: New file.
80445
80446 2005-10-19  Simon Josefsson  <jas@extundo.com>
80447
80448         * m4/gc-md4.m4: New file.
80449
80450 2005-10-19  Simon Josefsson  <jas@extundo.com>
80451
80452         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
80453         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
80454         <kasal@ucw.cz>.
80455
80456 2005-10-19  Simon Josefsson  <jas@extundo.com>
80457
80458         * m4/gc-arcfour.m4: New file.
80459
80460         * m4/gc-rijndael.m4: New file.
80461
80462 2005-10-19  Simon Josefsson  <jas@extundo.com>
80463
80464         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80465
80466 2005-10-19  Simon Josefsson  <jas@extundo.com>
80467
80468         * lib/gc-gnulib.c: Support ARCFOUR.
80469
80470 2005-10-19  Simon Josefsson  <jas@extundo.com>
80471
80472         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
80473         support.
80474
80475         * lib/gc.h: Add ECB enum type.
80476
80477         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
80478
80479 2005-10-18  Simon Josefsson  <jas@extundo.com>
80480
80481         * tests/test-md5.c: New file.
80482
80483         * modules/md5-tests: New file.
80484
80485 2005-10-18  Simon Josefsson  <jas@extundo.com>
80486
80487         * tests/test-md4.c: New file.
80488
80489         * modules/md4, modules/md4-tests: New files.
80490
80491 2005-10-18  Simon Josefsson  <jas@extundo.com>
80492
80493         * m4/md4.m4: New file.
80494
80495 2005-10-18  Simon Josefsson  <jas@extundo.com>
80496
80497         * lib/md4.h, lib/md4.c: New files, based on md5.?.
80498
80499 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
80500
80501         * gnulib-tool (func_create_testdir): Omit the second check whether
80502         BUILT_SOURCES in nonempty.
80503
80504 2005-10-17  Simon Josefsson  <jas@extundo.com>
80505
80506         * tests/test-rijndael.c: New file.
80507
80508 2005-10-17  Simon Josefsson  <jas@extundo.com>
80509
80510         * modules/sha1: Depend on stdint instead of md5.
80511
80512         * modules/md5: Depend on stdint, remove uint32_t.
80513
80514 2005-10-17  Simon Josefsson  <jas@extundo.com>
80515
80516         * modules/gc-sha1-tests: New file.
80517
80518         * tests/test-gc-sha1.c: New file.
80519
80520 2005-10-17  Simon Josefsson  <jas@extundo.com>
80521
80522         * m4/md5.m4: Remove call to uint32_t.m4.
80523
80524 2005-10-17  Simon Josefsson  <jas@extundo.com>
80525
80526         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80527
80528         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80529         md5.h.
80530
80531         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80532
80533         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80534
80535 2005-10-17  Simon Josefsson  <jas@extundo.com>
80536
80537         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80538
80539 2005-10-17  Simon Josefsson  <jas@extundo.com>
80540
80541         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80542
80543 2005-10-17  Simon Josefsson  <jas@extundo.com>
80544
80545         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80546
80547         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80548
80549 2005-10-17  Bruno Haible  <bruno@clisp.org>
80550
80551         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80552         that it can also be used in a test.
80553
80554 2005-10-16  Bruno Haible  <bruno@clisp.org>
80555
80556         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80557         TESTS_ENVIRONMENT, so that individual tests can augment it.
80558
80559         * gnulib-tool (func_create_testdir): Use an intermediate target for
80560         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80561         macros, like $(ALLOCA_H), which cannot be passed through the command
80562         line.
80563
80564 2005-10-15  Simon Josefsson  <jas@extundo.com>
80565
80566         * modules/rijndael-tests: New file.
80567
80568         * modules/rijndael: New file.
80569
80570 2005-10-15  Simon Josefsson  <jas@extundo.com>
80571
80572         * m4/rijndael.m4: New file.
80573
80574 2005-10-15  Simon Josefsson  <jas@extundo.com>
80575
80576         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80577
80578         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80579
80580 2005-10-14  Simon Josefsson  <jas@extundo.com>
80581
80582         * tests/test-arcfour.c: New file.
80583
80584         * modules/arcfour, modules/arcfour-tests: New files.
80585
80586 2005-10-14  Simon Josefsson  <jas@extundo.com>
80587
80588         * m4/arcfour.m4: New file.
80589
80590 2005-10-14  Simon Josefsson  <jas@extundo.com>
80591
80592         * lib/arcfour.h, lib/arcfour.c: New files.
80593
80594 2005-10-14  Roland McGrath  <roland@redhat.com>
80595
80596         Import from libc.  [BZ #1331]
80597         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80598         macro argument.
80599         Reported by Matej Vela <vela@debian.org>.
80600
80601 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80602
80603         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80604         include <wchar.h>; no longer needed.
80605
80606 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80607
80608         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80609
80610 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80611         and  Ulrich Drepper  <drepper@redhat.com>
80612
80613         Import from libc.
80614         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80615         instead of inline stream orientation test and two separate
80616         function calls.  Pay no attention to USE_IN_LIBIO.
80617
80618 2005-10-13  Simon Josefsson  <jas@extundo.com>
80619
80620         * modules/gc-hmac-md5-tests: New file.
80621
80622         * tests/test-gc-hmac-sha1.c: New file.
80623
80624         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80625
80626         * modules/gc-hmac-md5-tests: New file.
80627
80628         * tests/test-gc-md5.c: New file.
80629
80630         * modules/gc-md5-tests: New file.
80631
80632 2005-10-13  Simon Josefsson  <jas@extundo.com>
80633
80634         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80635         Move memory allocation outside of loop.
80636
80637 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80638
80639         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80640         intermediate directory is in a read-only file system.  Problem
80641         reported by Eric Blake.
80642
80643 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80644
80645         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80646
80647 2005-10-12  Simon Josefsson  <jas@extundo.com>
80648
80649         * tests/test-hmac-sha1.c: New file.
80650
80651         * modules/hmac-sha1-tests: New file.
80652
80653         * modules/hmac-sha1: New file.
80654
80655 2005-10-12  Simon Josefsson  <jas@extundo.com>
80656
80657         * modules/gc-sha1: New file.
80658
80659 2005-10-12  Simon Josefsson  <jas@extundo.com>
80660
80661         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80662
80663         * tests/test-gc-pbkdf2-sha1.c: New file.
80664
80665 2005-10-12  Simon Josefsson  <jas@extundo.com>
80666
80667         * modules/gc-md5, modules/gc-hmac-md5: New files.
80668
80669         * modules/gc (Files): Remove md5, memxor and hmac files.
80670
80671 2005-10-12  Simon Josefsson  <jas@extundo.com>
80672
80673         * m4/gc-pbkdf2-sha1.m4: New file.
80674
80675         * m4/gc-hmac-sha1.m4: New file.
80676
80677         * m4/gc-sha1: New file.
80678
80679         * m4/hmac-sha1.m4: New file.
80680
80681 2005-10-12  Simon Josefsson  <jas@extundo.com>
80682
80683         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80684
80685         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80686
80687 2005-10-12  Simon Josefsson  <jas@extundo.com>
80688
80689         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80690         suggested by Bruno Haible <bruno@clisp.org>.
80691
80692 2005-10-12  Simon Josefsson  <jas@extundo.com>
80693
80694         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80695
80696 2005-10-12  Simon Josefsson  <jas@extundo.com>
80697
80698         * lib/gc-pbkdf2-sha1.c: New file.
80699
80700         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80701
80702 2005-10-12  Simon Josefsson  <jas@extundo.com>
80703
80704         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80705
80706         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80707
80708 2005-10-12  Simon Josefsson  <jas@extundo.com>
80709
80710         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80711         GC_USE_HMAC_MD5, respectively.
80712
80713         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80714         (gc_md5): Fix typo.
80715
80716         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80717
80718         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80719
80720         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80721
80722 2005-10-12  Bruno Haible  <bruno@clisp.org>
80723
80724         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80725         Reported by Stepan Kasal <kasal@ucw.cz>.
80726
80727 2005-10-11  Simon Josefsson  <jas@extundo.com>
80728
80729         * tests/test-crc.c: New file.
80730
80731         * modules/crc, modules/crc-tests: New files.
80732
80733 2005-10-11  Simon Josefsson  <jas@extundo.com>
80734
80735         * m4/crc.m4: New file.
80736
80737 2005-10-11  Simon Josefsson  <jas@extundo.com>
80738
80739         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80740
80741         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80742
80743         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80744
80745 2005-10-11  Simon Josefsson  <jas@extundo.com>
80746
80747         * lib/crc.h, lib/crc.c: New files.
80748
80749         * lib/gc.h (gc_hash_buffer): Add doc.
80750
80751 2005-10-11  Bruno Haible  <bruno@clisp.org>
80752
80753         * modules/c-strcasestr: New file.
80754         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80755
80756 2005-10-11  Bruno Haible  <bruno@clisp.org>
80757
80758         * modules/c-strcase: New file.
80759         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80760
80761 2005-10-11  Bruno Haible  <bruno@clisp.org>
80762
80763         * lib/strcasecmp.c: Include limits.h.
80764         (strcasecmp): Avoid integer overflow on exotic platforms.
80765         * lib/strncasecmp.c: Include limits.h.
80766         (strncasecmp): Avoid integer overflow on exotic platforms.
80767         Reported by Paul Eggert.
80768
80769 2005-10-11  Bruno Haible  <bruno@clisp.org>
80770
80771         * lib/c-strcasestr.h: New file, from GNU gettext.
80772         * lib/c-strcasestr.c: New file, from GNU gettext.
80773
80774 2005-10-11  Bruno Haible  <bruno@clisp.org>
80775
80776         * lib/c-strcase.h: New file, from GNU gettext.
80777         * lib/c-strcasecmp.c: New file, from GNU gettext.
80778         * lib/c-strncasecmp.c: New file, from GNU gettext.
80779
80780 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80781
80782         * modules/mempcpy (License): GPL -> LGPL.
80783         * modules/strchrnul (License): Likewise.
80784         * modules/sysexits (License): Likewise.
80785
80786 2005-10-08  Simon Josefsson  <jas@extundo.com>
80787
80788         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80789
80790 2005-10-07  Simon Josefsson  <jas@extundo.com>
80791
80792         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80793
80794 2005-10-06  Simon Josefsson  <jas@extundo.com>
80795
80796         * tests/test-hmac-md5.c: New file.
80797
80798         * modules/hmac-md5-tests: New file.
80799
80800         * modules/hmac-md5: New file.
80801
80802 2005-10-06  Simon Josefsson  <jas@extundo.com>
80803
80804         * m4/hmac-md5.m4: New file.
80805
80806         * m4/memxor.m4: Require gl_C_RESTRICT.
80807
80808 2005-10-06  Simon Josefsson  <jas@extundo.com>
80809
80810         * lib/memxor.c (memxor): Avoid casts and warnings.
80811
80812 2005-10-06  Simon Josefsson  <jas@extundo.com>
80813
80814         * lib/hmac-md5.c: New file.
80815
80816         * lib/hmac.h: New file.
80817
80818 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80819
80820         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80821         promotes to int, not unsigned int, to catch the AIX 5.3
80822         compiler bug.
80823
80824 2005-10-05  Simon Josefsson  <jas@extundo.com>
80825
80826         * modules/memxor: New file.
80827
80828         * modules/iconv (Files): Move config.rpath to havelib, it is used
80829         there.
80830
80831         * modules/havelib (Files): Add config.rpath.
80832
80833 2005-10-05  Simon Josefsson  <jas@extundo.com>
80834
80835         * m4/memxor.m4: New file.
80836
80837 2005-10-05  Simon Josefsson  <jas@extundo.com>
80838
80839         * lib/memxor.c (memxor): Fix compiler error.
80840
80841         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80842         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80843
80844         * lib/memxor.h, lib/memxor.c: New files.
80845
80846         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80847         we assume all systems have it, suggested by Jim Meyering
80848         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80849         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80850         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80851         same reasons.
80852
80853 2005-10-05  Simon Josefsson  <jas@extundo.com>
80854
80855         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80856
80857 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80858
80859         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80860         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80861         needed, since the source code now assumes these .h files.
80862
80863 2005-10-05  Derek Price  <derek@ximbiot.com>
80864
80865         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80866
80867 2005-10-05  Bruno Haible  <bruno@clisp.org>
80868
80869         * modules/stdint (License): Change to LGPL.
80870
80871 2005-10-04  Simon Josefsson  <jas@extundo.com>
80872
80873         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80874         D. Baushke" <mdb@gnu.org>.
80875
80876 2005-10-04  Bruno Haible  <bruno@clisp.org>
80877
80878         * lib/verify.h (verify_true): Provide alternative definition for C++.
80879
80880 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80881
80882         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80883         (SSIZE_MAX): New macro, if not already defined.
80884         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80885         than 2 GiB.
80886
80887 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80888
80889         Sync from coreutils.
80890         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80891         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80892         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80893         ULLONG_MAX doesn't work with 2.7.2.1.
80894
80895 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80896
80897         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80898         From Ben Pfaff.
80899
80900         * modules/exclude (Depends-on): Depend on verify.
80901         * modules/strtoimax (Depends-on): Likewise.
80902         * modules/utimecmp (Depends-on): Likewise.
80903
80904 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80905
80906         * lib/exclude.c: Include verify.h.
80907         (verify): Remove.  All callers changed to use verify.h's version.
80908         * lib/strtoimax.c: Likewise.
80909         * lib/utimecmp.c: Likewis.e
80910
80911         Sync from coreutils.
80912         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80913         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80914         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80915         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80916         bother returning ENOSYS if settimeofday or stime fails; just let
80917         them return whatever errno they want to return.
80918         * lib/utimens.c: Include unistd.h, for dup2.
80919         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80920         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80921
80922 2005-10-02  Jim Meyering  <jim@meyering.net>
80923
80924         Sync from coreutils.
80925         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80926         from glibc-2.2.5 that fails for read-only files.
80927
80928 2005-10-02  Jim Meyering  <jim@meyering.net>
80929
80930         Sync from coreutils.
80931         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80932         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80933         `#if HAVE_CONFIG_H'.
80934         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80935         Remove AT_FDCWD test.
80936         Do not consume the fd unless successful.
80937         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80938         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80939         block, so that we don't even try to compile it if settimeofday is
80940         available.  This works around a compilation failure on OSF1 V5.1,
80941         due to stime requiring a `long int*' while tv_sec is `int'.
80942
80943 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80944
80945         Sync from coreutils.
80946         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80947         against `yes', rather than just testing for nonempty.
80948
80949 2005-10-01  Simon Josefsson  <jas@extundo.com>
80950
80951         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80952         and Darwin.
80953
80954         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80955         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80956         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80957         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80958         Check if struct addrinfo is declared.
80959
80960 2005-10-01  Simon Josefsson  <jas@extundo.com>
80961
80962         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80963         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80964         AI_* and EAI_* definitions.  Protect function declarations.
80965
80966 2005-10-01  Jim Meyering  <jim@meyering.net>
80967
80968         Sync from coreutils.
80969
80970         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80971         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80972         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80973         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80974         in the inet and nsl libraries.  Required on Solaris 5.7.
80975
80976 2005-10-01  Jim Meyering  <jim@meyering.net>
80977
80978         Sync from coreutils.
80979         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80980         in the inet and nsl libraries.  Required on Solaris 5.7.
80981
80982 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80983
80984         * lib/getdelim.c (getdelim): Remove unused variables.
80985
80986 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80987
80988         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80989         so that the code works even with ancient cpp.  Portability problem
80990         with GCC 2.7.2.1 reported by Thomas M.Ott.
80991
80992 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80993
80994         * modules/regex (Depends-on): Add strcase.
80995
80996         * modules/gethostname (Licence): Change from GPL to LGPL, since
80997         gethostname.c is a trivial implementation of a standard library
80998         function.
80999         * modules/poll (License): Change from GPL to LGPL, since it's
81000         derived from LGPL code.
81001
81002 2005-09-27  Jim Meyering  <jim@meyering.net>
81003
81004         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
81005         HAVE_CONFIG_H.
81006
81007         * lib/intprops.h (signed_type_or_expr__): Define.
81008         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
81009         for unsigned types.
81010
81011 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
81012
81013         * lib/verify.h (verify_expr): Remove, replacing with:
81014         (verify_true): New macro that returns true instead of void.
81015         (verify_type__): Remove.
81016         (verify): Use verify_true rather than verify_type__.
81017
81018 2005-09-26  Bruno Haible  <bruno@clisp.org>
81019
81020         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
81021         is necessary.
81022         (lib_SOURCES): Remove mbchar.c.
81023         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
81024         (Files): Add m4/mbrtowc.m4.
81025         * modules/mbiter: Likewise.
81026         * modules/mbuiter: Likewise.
81027
81028 2005-09-26  Bruno Haible  <bruno@clisp.org>
81029
81030         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
81031         compile mbchar.c if they are not both present.
81032         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
81033         * m4/mbiter.m4 (gl_MBITER): Likewise.
81034         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81035         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81036         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81037
81038 2005-09-25  Jim Meyering  <jim@meyering.net>
81039
81040         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81041         also uses socklen_t.
81042
81043 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81044
81045         * lib/utimens.c (ENOSYS): Define if not already defined.
81046         (futimens): Support having a null PATH if the file descriptor
81047         is nonnegative.
81048
81049         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81050         Remove.
81051         (__attribute): Define to empty unless GCC 3.1 or later.
81052         This works around a core dump on OpenBSD 3.4, which has GCC
81053         2.95.3, which dumps core when given __attribute__(()).  It also
81054         simplifies other tests, since we really don't want to bother with
81055         worrying about which ancient version of GCC supported what.
81056         Original problem reported by Yoann Vandoorselaere, with part of
81057         the fix suggested by Derek Price.
81058
81059 2005-09-24  Jim Meyering  <jim@meyering.net>
81060
81061         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81062         so we can once again use a positive bitfield width of 1 -- now we
81063         don't have to explain why we were using a bitfield width of 2.
81064
81065 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81066
81067         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81068         and similarly for the other external symbols.  Problem reported
81069         by James Gallager.
81070
81071         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81072         bug reported by Jim Meyering.
81073
81074         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81075         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81076         not needed, since socklen is a prerequisite module.
81077
81078 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81079
81080         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81081         Problem reported by Eric Blake.
81082         (getaddrinfo): Initialize se so that it's not garbage.
81083         Redo internal storage allocation so that it doesn't make unportable
81084         assumptions about alignment.
81085         Fix a memory leak.
81086
81087         * lib/utimens.c (futimens): Use futimesat if available.
81088         Prefer it to futimes since it doesn't have the futimes bug.
81089
81090         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81091         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81092         Instead, declare a function that returns a pointer to an array,
81093         and use verify_type__ to declare the size of the array.
81094         Problem and germ of a solution reported by Bruno Haible.
81095         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81096         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81097
81098 2005-09-23  Jim Meyering  <jim@meyering.net>
81099
81100         Sync from coreutils.
81101         Correct build failure (socklen_t not defined) on at least
81102         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81103         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81104
81105 2005-09-23  Jim Meyering  <jim@meyering.net>
81106
81107         * modules/getaddrinfo (Depends-on): Add socklen.
81108
81109 2005-09-23  Bruno Haible  <bruno@clisp.org>
81110
81111         * tests/test-verify.c: New file.
81112
81113 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81114
81115         Sync from coreutils.
81116
81117         * modules/argmatch (Depends-on): Add verify.
81118         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81119         unistd-safer.
81120         * modules/save-cwd (Depends-on): Likewise.
81121
81122         * modules/openat (Files): Add lib/openat-die.c.
81123         (Depends-on): Remove error, exitfail.
81124         Add dirname.
81125
81126         * modules/verify: New file.
81127         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81128         with "verify" module.
81129
81130 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81131
81132         Sync from coreutils.
81133
81134         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81135         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81136         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81137         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81138         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81139         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81140         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81141         Don't bother checking for string.h, stdlib.h, unistd.h.
81142         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81143         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81144         module's job.
81145         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81146         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81147
81148         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81149         (gl_GETDATE): Use it.
81150
81151         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81152
81153 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81154
81155         Sync from coreutils.
81156
81157         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81158         stat-time.h.
81159         * lib/argmatch.h: Include verify.h
81160         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81161         (ARGMATCH_ASSERT): Remove; unused.
81162         * lib/canonicalize.c: Assume STDC_HEADERS.
81163         * lib/exclude.c: Include "strcase.h".
81164         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81165         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81166         and stdio-safer.h.
81167         (getusershell): Call fopen, not fopen_safer.
81168         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81169         Do not include unistd-safer.h.
81170         (save_cwd): Don't call fd_safer; no longer needed
81171         now that we include fcntl--.h.
81172
81173         * lib/getdate.y (relative_time): New type.
81174         (RELATIVE_TIME_0): New constant.
81175         (parser_control): Use relative_time instead of doing it ourselves.
81176         (%union): Add new relative_time rel member.
81177         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81178         Now typeless.
81179         (relunit, relunit_snumber): Now of type rel.
81180         (zone, rel, relunit, get_date): Adjust to above changes.
81181
81182         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81183         Do not include unistd-safer.h.
81184         (getloadavg): Don't call fd_safer; no longer needed
81185         now that we include fcntl--.h.
81186
81187         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81188         (make_dir_parents): Treat ENOSYS like EEXIST.
81189
81190         Improve quality of diagnostics on restore_cwd failure.
81191         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81192         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81193         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81194         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81195         each time through the loop.  Do not diagnose restore_cwd failure;
81196         that is the caller's job (and perhaps the caller does not care).
81197
81198         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81199         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81200         If the file already exists but is not a directory, don't bother
81201         to try to make its parents.
81202         Close potential file descriptor leak if we can't chdir("/") (!).
81203         Don't always return true if chdir($PWD) fails; return true only
81204         if the requested action was done successfully (except for the
81205         chdir($PWD)).
81206         Don't log final directory unless we actually made it.
81207         Refactor to avoid duplicate code to fix up permissions.
81208         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81209
81210         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81211         to make it a bit faster and (I hope) clearer.
81212         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81213         Fix bug in formats like %2N.
81214
81215         * lib/verify.h: New file.
81216
81217 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81218
81219         Sync from coreutils.
81220         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81221
81222 2005-09-22  Jim Meyering  <jim@meyering.net>
81223
81224         Sync from coreutils.
81225
81226         * m4/lstat.m4 (gl_FUNC_LSTAT):
81227         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81228         Remove obsolete comment.
81229         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81230         * m4/xstrtod.m4: Likewise.
81231
81232         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81233
81234 2005-09-22  Jim Meyering  <jim@meyering.net>
81235
81236         Sync from coreutils.
81237
81238         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81239
81240         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81241         the .tm_year member, since otherwise gcc-4.0 would now warn about
81242         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81243
81244         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81245         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81246
81247         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81248         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81249         when run in a time zone for which daylight savings time is in effect
81250         for the starting date.
81251
81252         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81253         stop us from restricting permissions of just-created absolute-named
81254         directories.
81255         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81256         to restore initial working directory.
81257         * lib/mkdir-p.c (make_dir_parents): New parameter:
81258         different_working_dir, to tell caller if/when we change the working
81259         directory and are unable to return to the initial one.
81260         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81261         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81262         `return false'.  This fixes a bug introduced on 2004-07-30.
81263
81264         * lib/openat.c (fdopendir): Be sure to close the supplied
81265         file descriptor before returning.  This makes our replacement
81266         implementation a little closer to Solaris's, where fdopendir
81267         ties the file descriptor to the returned DIR* pointer.
81268         * lib/openat.c (unlinkat): New function.
81269         * lib/openat.h (unlinkat): Add prototype.
81270         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81271         (openat_restore_fail): Rename from openat_restore_die.
81272         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81273
81274         Provide an alternative to exiting immediately upon save_cwd or
81275         restore_cwd failure.  Now, an application can arrange e.g.,
81276         to perform a longjump in that case.
81277         * lib/openat.c: Include dirname.h.
81278         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81279         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81280         and openat_restore_die rather than calling error directly.
81281         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81282
81283         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81284         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81285         define.
81286
81287         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81288         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81289                             int utc, int nanoseconds);
81290         Background:
81291         date should not have to allocate a megabyte of virtual memory to
81292         handle a format argument like +%1048575T.  When implemented with
81293         strftime, it must allocate such a buffer, use strftime to fill it
81294         in, print it, then free it.
81295         With fprintftime, it simply prints everything and exits.
81296         With no need for memory allocation, that's one fewer way to fail.
81297         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
81298         optional field width, not before, so we accept %9:z, not %:9z.
81299         (my_strftime): Be sure to use L_('x') for literals.
81300
81301         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81302         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81303         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81304         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81305         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81306         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81307         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81308         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81309         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81310         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81311         * lib/xgethostname.c, lib/xreadlink.c:
81312         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81313
81314         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81315         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81316         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81317         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81318         and don't include <sys/file.h>).
81319
81320 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81321
81322         Sync from coreutils.
81323
81324         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81325         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81326         [!LDAV_DONE]: Avoid unused variable warning.
81327
81328 2005-09-21  Bruno Haible  <bruno@clisp.org>
81329
81330         * lib/unicodeio.h (unicode_to_mb): New declaration.
81331
81332 2005-09-20  Derek Price  <derek@ximbiot.com>
81333
81334         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81335         getaddrinfo.h.
81336
81337 2005-09-20  Bruno Haible  <bruno@clisp.org>
81338
81339         * gnulib-tool: Remove trailing slashes from the values specified for
81340         --source-base, --m4-base, --tests-base, --aux-dir.
81341         Suggested by Simon Josefsson <jas@extundo.com>.
81342
81343 2005-09-20  Bruno Haible  <bruno@clisp.org>
81344
81345         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81346         func_modules_to_filelist, func_import, func_create_testdir): Make all
81347         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81348         change when gnulib-tool is invoked in a different locale.
81349
81350 2005-09-19  Simon Josefsson  <jas@extundo.com>
81351
81352         * m4/socklen.m4: Fix typo.
81353
81354 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81355
81356         Use a consistent style for including <config.h>.
81357         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81358         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81359         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81360         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81361         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81362         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81363         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
81364         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
81365         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
81366         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
81367         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
81368         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
81369         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
81370         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
81371         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
81372         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
81373         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
81374         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
81375         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
81376         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
81377         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
81378         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
81379         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
81380         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
81381         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
81382         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
81383         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
81384         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
81385         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
81386         lib/xstrtoumax.c, lib/yesno.c:
81387         Standardize inclusion of config.h.
81388         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
81389         lib/inttostr.h:  Removed inclusion of config.h from header files.
81390         * lib/inttostr.c:  Adjusted in-tree users.
81391         * lib/timespec.h: Remove superfluous warning to include config.h.
81392         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
81393         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
81394         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
81395         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
81396         config.h with HAVE_CONFIG_H.
81397
81398 2005-09-19  Jim Meyering  <jim@meyering.net>
81399
81400         * modules/pathmax (License): Change to LGPL.
81401
81402 2005-09-19  Derek Price  <derek@ximbiot.com>
81403
81404         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
81405
81406 2005-09-19  Bruno Haible  <bruno@clisp.org>
81407
81408         * gnulib-tool (import): Provide default for --tests-base.
81409
81410 2005-09-19  Bruno Haible  <bruno@clisp.org>
81411
81412         * doc/quote.texi: New file, extracted from gnulib.texi.
81413         * doc/ctime.texi: New file, extracted from gnulib.texi.
81414         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
81415         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
81416         * doc/gnulib.texi: Include them.
81417
81418 2005-09-18  Bruno Haible  <bruno@clisp.org>
81419
81420         Portability fix.
81421         * gnulib-tool (func_readlink): New function.
81422         (func_ln_if_changed): Use it.
81423
81424 2005-09-18  Bruno Haible  <bruno@clisp.org>
81425
81426         * gnulib-tool: Support --with-tests also with --import.
81427         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81428         (func_import): Use variables $testsbase and $inctests. Emit a
81429         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81430         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81431         SUBDIRS += $testsdir.
81432         (func_create_testdir): Update.
81433
81434 2005-09-18  Bruno Haible  <bruno@clisp.org>
81435
81436         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81437         instead of $dry_run.
81438         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81439         (func_ln_if_changed): Don't handle dry-run here.
81440         (func_import): In dry-run mode, detect more precisely which actions
81441         would be performed, and don't use "...ing" verbs.
81442
81443 2005-09-18  Bruno Haible  <bruno@clisp.org>
81444
81445         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
81446         (func_import): Use join on two temporary files instead of three nested
81447         loops, in order to determine which files are new or old.
81448
81449 2005-09-18  Bruno Haible  <bruno@clisp.org>
81450
81451         * gnulib-tool (func_import): Comment out code that spits out the
81452         new files with --dry-run.
81453
81454 2005-09-18  Bruno Haible  <bruno@clisp.org>
81455
81456         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
81457
81458 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81459
81460         * lib/stat-time.h: New file.
81461         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81462         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81463         in a different way.
81464         (timespec_cmp): New function.
81465         * lib/utimecmp.c: Include stat-time.h.
81466         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81467         members exist, not on the obsolescent ST_MTIM_NSEC.
81468         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81469
81470 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81471
81472         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
81473
81474 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81475
81476         * MODULES.html.sh (File system functions): Add stat-time.
81477         * modules/stat-time: New file.
81478         * modules/timespec (Files): Remove m4/st_mtim.m4; this
81479         is now done in a different way, by the stat-time module.
81480         * modules/utimecmp (Depends-on): Add stat-time.
81481
81482 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
81483
81484         * m4/st_mtim.m4: Remove.  Superseded by...
81485         * m4/stat-time.m4: New file.
81486         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
81487         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
81488
81489 2005-09-15  Derek Price  <derek@ximbiot.com>
81490
81491         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
81492
81493 2005-09-15  Derek Price  <derek@ximbiot.com>
81494
81495         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
81496         * lib/regex_internal.c: Ditto, using this...
81497         (__GNUC_PREREQ): ...new macro.
81498         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
81499         using...
81500         (__GNUC_PREREQ): ...this new macro.
81501
81502         * lib/strstr.h: Include string.h. Define strstr as a macro here.
81503
81504 2005-09-15  Derek Price  <derek@ximbiot.com>
81505             Paul Eggert  <eggert@cs.ucla.edu>
81506
81507         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
81508         changes, consolidating in...
81509         * lib/regex_internal.h: ...this file.
81510
81511 2005-09-13  Jim Meyering  <jim@meyering.net>
81512
81513         * lib/canon-host.c: Filter through gnu indent and reword comments
81514         slightly.
81515         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
81516
81517 2005-09-13  Derek Price  <derek@ximbiot.com>
81518
81519         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81520         failure.
81521         Reported by Jim Meyering  <jim@meyering.net>.
81522
81523 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81524
81525         * lib/base64.c: Typo.
81526         (base64_encode): Put b64str in initialized data section.
81527
81528 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81529
81530         Merge glibc and coreutils changes into gnulib, plus a few
81531         extra fixes.
81532         * lib/md5.c: Use #error rather than a string.
81533         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81534         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81535         (__attribute__): Define to empty for non recent-GCC.
81536         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81537         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81538         Renamed from their non-__ counterparts, with new macros replacing
81539         them if not _LIBC.  Add __THROW attribute.
81540         (rol): Remove.
81541         (struct md5_ctx): Align buffer if using GCC.
81542         * lib/sha1.h (struct sha1_ctx): Likewise.
81543         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81544         The old name was backwards.
81545         (NOTSWAP): Remove; not used.
81546         (rol): New macro, moved here from md5.h.
81547         (sha1_process_block): Remove a FIXME that doesn't make sense.
81548
81549 2005-09-12  Derek Price  <derek@ximbiot.com>
81550
81551         Return usable errors from canon-host.
81552         * lib/canon-host.h: New file.
81553         * lib/canon-host.c (canon_host): Wrap...
81554         (canon_host_r): ...this new function, which now relies exclusively on
81555         getaddrinfo.
81556         (ch_strerror): New function.
81557         (last_cherror): New global.
81558         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81559         interface.
81560         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81561         void *.
81562         (freeaddrinfo): Free ai->ai_canonname when set.
81563
81564 2005-09-12  Derek Price  <derek@ximbiot.com>
81565
81566         Make canon-host require getaddrinfo.
81567         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81568         AC_LIBSOURCE canon-host.h.  Call...
81569         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81570         gl_GETADDRINFO.
81571         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81572
81573 2005-09-12  Derek Price  <derek@ximbiot.com>
81574
81575         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81576         LGPL.
81577         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81578
81579 2005-09-12  Derek Price  <derek@ximbiot.com>
81580
81581         * lib/gai_strerror.c: Include config.h when available.  Include
81582         getaddrinfo.h before other headers to test interface.
81583         Reported by Larry Jones <lawrence.jones@ugs.com>.
81584
81585 2005-09-12  Derek Price  <derek@ximbiot.com>
81586             Paul Eggert  <eggert@cs.ucla.edu>
81587
81588         * modules/glob (Files): Add glob-libc.h.
81589
81590 2005-09-12  Derek Price  <derek@ximbiot.com>
81591             Paul Eggert  <eggert@cs.ucla.edu>
81592
81593         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81594         glob_.h, glob-libc.h.
81595         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81596
81597 2005-09-12  Derek Price  <derek@ximbiot.com>
81598             Paul Eggert  <eggert@cs.ucla.edu>
81599
81600         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81601         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81602         protecting things that should be done only in gnulib contexts.
81603         * lib/glob_.h: New file, containing only the glob things needed for
81604         gnulib.
81605         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81606         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81607         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81608         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81609         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81610         and to respect the namespace rules better.
81611
81612 2005-09-08  Simon Josefsson  <jas@extundo.com>
81613
81614         * modules/socklen: New file.
81615
81616 2005-09-08  Simon Josefsson  <jas@extundo.com>
81617
81618         * m4/socklen.m4: New file.
81619
81620 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81621
81622         * modules/utimens (Files): Add m4/utimbuf.m4, since
81623         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81624         Reported by Sergey Poznyakoff.
81625
81626 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81627
81628         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81629         definitions, since that's the preferred style in glibc.
81630         Fix a minor spacing issue, and update copyright notice to match
81631         glibc's.
81632
81633 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81634
81635         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81636
81637 2005-09-06  Simon Josefsson  <jas@extundo.com>
81638
81639         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81640         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81641
81642 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81643
81644         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81645         warning.
81646
81647 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81648
81649         * config/srclist.txt: Add glibc bug 1302.
81650
81651 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81652
81653         Change bitset word type from unsigned int to unsigned long int,
81654         as this has better performance on typical 64-bit hosts.
81655         Port bitset code to hosts with unusual word sizes.
81656         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81657         (build_collating_symbol):
81658         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81659         argument is a bitset.  This is merely a style issue, but it makes
81660         it clearer that an entire array is expected.
81661         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81662         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81663         Port to the case where bitset_word is not the same as unsigned int.
81664         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81665         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81666         Likewise.
81667         * lib/regexec.c (check_dst_limits_calc_pos_1,
81668         check_subexp_matching_top):
81669         (build_trtable, group_nodes_into_DFAstates):
81670         Likewise.
81671         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81672         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81673         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81674         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81675         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81676         * lib/regcomp.c (optimize_subexps, lower_subexp):
81677         Work even if bitset_word has holes in its bitwise representation.
81678         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81679         * lib/regexec.c (check_dst_limits_calc_pos_1,
81680         check_subexp_matching_top):
81681         Likewise.
81682         * lib/regex_internal.c (re_string_reconstruct):
81683         Don't assume UCHAR_MAX == 255.
81684         * lib/regex_internal.h (bitset_set_all): Likewise.
81685         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81686         All uses changed.
81687         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81688         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81689         All uses changed.
81690         (BITSET_WORD_MAX): New macro.
81691         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81692         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81693         (bitset_empty, bitset_copy):
81694         Prefer sizeof (bitset) to multiplying it out ourselves.
81695         (bitset_not_merge): Remove; unused.
81696         (bitset_contain): Return bool, not unsigned int with one bit on.
81697         All callers changed.
81698         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81699         alignment than re_node_set; do this by defining a new internal
81700         type struct dests_alloc and using it to allocate memory.
81701
81702 2005-09-05  Bruno Haible  <bruno@clisp.org>
81703
81704         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81705         links.
81706
81707 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81708
81709         * modules/size_max (Makefile.am): Add size_max.h
81710
81711 2005-09-04  Derek Price  <derek@ximbiot.com>
81712
81713         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81714
81715 2005-09-03  Simon Josefsson  <jas@extundo.com>
81716
81717         * gnulib-tool: Fix typo.
81718
81719 2005-09-03  Simon Josefsson  <jas@extundo.com>
81720
81721         * config/srclist.txt: Add glibc bug 1293.
81722
81723 2005-09-03  Derek Price  <derek@ximbiot.com>
81724
81725         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81726         From Larry Jones <lawrence.jones@ugs.com>.
81727
81728 2005-09-02  Simon Josefsson  <jas@extundo.com>
81729
81730         * modules/socklen: New file.
81731
81732 2005-09-02  Simon Josefsson  <jas@extundo.com>
81733
81734         * modules/havelib: New module.
81735
81736         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81737         Use havelib.
81738
81739 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81740
81741         Check for arithmetic overflow when calculating sizes, to prevent
81742         some buffer-overflow issues.  These patches are conservative, in the
81743         sense that when I couldn't determine whether an overflow was possible,
81744         I inserted a run-time check.
81745         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81746         macros.
81747         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81748         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81749         (re_xnrealloc, re_x2nrealloc): New inline functions.
81750         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81751         parse_bracket_exp):
81752         (build_equiv_class, build_charclass): Check for arithmetic overflow
81753         in size expression calculations.
81754         * lib/regex_internal.c (re_string_realloc_buffers):
81755         (build_wcs_upper_buffer, re_node_set_add_intersect):
81756         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81757         (re_dfa_add_node, register_state): Likewise.
81758         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81759         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81760         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81761         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81762
81763 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81764
81765         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81766         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81767
81768 2005-09-02  Bruno Haible  <bruno@clisp.org>
81769
81770         Support for lib vs. lib64 distinction on biarch platforms.
81771         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81772         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81773         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81774
81775 2005-09-02  Bruno Haible  <bruno@clisp.org>
81776
81777         * gnulib-tool (import): In the other first-use case, provide defaults
81778         as well.
81779
81780 2005-09-02  Bruno Haible  <bruno@clisp.org>
81781
81782         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81783         patches not yet found in the latest gettext release.
81784
81785 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81786
81787         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81788         to avoid a collision with bits/local_lim.h in glibc.
81789         All uses changed.  Problem reported by Dmitry V. Levin in
81790         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81791
81792         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81793         bugs in int versus size_t comparisons.
81794         (re_string_context_at): Fix bug where the code assumed that
81795         Idx is signed.
81796
81797         Use bool where appropriate.
81798         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81799         All callers changed.
81800         (calc_eclosure_iter): Likewise, for ROOT arg.
81801         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81802         (build_charclass_op): Likewise, for NON_MATCH arg.
81803         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81804         (re_string_construct_common): Likewise, for ICASE arg.
81805         * lib/regexec.c (re_search_2_stub, re_search_stub):
81806         Likewise, for RET_LEN arg.
81807         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81808         (set_regs): Likewise, for FL_BACKTRACK arg.
81809         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81810         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81811         (calc_eclosure_iter, parse_bracket_exp):
81812         Use bool for internal variables that are booleans.
81813         * lib/regexec.c (re_search_internal, check_matching,
81814         proceed_next_node):
81815         (set_regs, build_sifted_states, sift_states_bkref):
81816         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81817         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81818         (find_collation_sequence_value):
81819         Likewise.
81820         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81821         (re_node_set_compare):
81822         Return bool, not int. All callers changed.
81823         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81824         (build_trtable, check_node_accept): Likewise.
81825         * lib/regex_internal.h: Include stdbool.h.
81826
81827         Fix bugs uncovered when converting to bool.
81828         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81829         failure instead of charging ahead blindly.
81830         * lib/regex_internal.c (register_state): Likewise.
81831         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81832         for freeing internal storage.
81833         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81834         bitset pieces used as boolean, to avoid undefined behavior
81835         on hosts that do int overflow checking.
81836
81837 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81838
81839         * config/srclist.txt: Add glibc bugs 1285-1287.
81840
81841 2005-09-01  Jim Meyering  <jim@meyering.net>
81842
81843         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81844         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81845         Require gl_STAT_MACROS, too.
81846
81847 2005-09-01  Bruno Haible  <bruno@clisp.org>
81848
81849         * gnulib-tool (import): In the first-use case, provide defaults.
81850
81851 2005-09-01  Bruno Haible  <bruno@clisp.org>
81852
81853         * gnulib-tool (func_import): Remove the .tmp files.
81854
81855 2005-09-01  Bruno Haible  <bruno@clisp.org>
81856
81857         * gnulib-tool (func_import): Fix handling of symbolic links.
81858
81859 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81860
81861         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81862         old glibc regex code mishandles strings longer than 2**31 bytes.
81863         This patch fixes this when the regex code is used in gnulib
81864         (i.e., outside glibc).
81865
81866         This patch should not affect the use of the regex code inside
81867         glibc.  No doubt this problem also needs to be handled for glibc
81868         as well, but the result will be an incompatible change to the
81869         glibc ABI, and the old ABI will have to be supported too.  That
81870         can be the the subject for another patch.
81871
81872         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81873         governing whether the rest of this patch is active.  By default,
81874         the macro is disabled and the patch has no effect.
81875         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81876         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81877         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81878         (re_match_2, re_set_registers): Use the new types.
81879         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81880         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81881         New macros.
81882         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81883         (re_string_context_at, bin_tree_t, re_dfastate_t):
81884         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81885         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81886         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81887         (re_string_char_size_at, re_string_wchar_at):
81888         (re_string_elem_size_at):
81889         Use the new types and macros to port to 64-bit hosts.
81890         Use unsigned types for internal values, so that the code
81891         mostly works even for arrays larger than SSIZE_MAX.
81892         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81893         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81894         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81895         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81896         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81897         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81898         (calc_inveclosure, parse_dup_op, build_range_exp):
81899         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81900         (fetch_number, create_token_tree, mark_opt_subexp):
81901         Likewise.
81902         * lib/regex_internal.c (re_string_construct_common,
81903         create_ci_newstate):
81904         (create_cd_newstate, re_string_allocate, re_string_construct):
81905         (re_string_realloc_buffers, build_wcs_upper_buffer):
81906         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81907         (re_string_reconstruct, re_string_peek_byte_case):
81908         (re_string_fetch_byte_case, re_string_context_at):
81909         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81910         (re_node_set_init_copy, re_node_set_add_intersect):
81911         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81912         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81913         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81914         (re_acquire_state, re_acquire_state_context, register_state):
81915         Likewise.
81916         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81917         search_cur_bkref_entry):
81918         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81919         (re_search_internal, re_search_2_stub, re_search_stub)
81920         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81921         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81922         (update_cur_sifted_state, check_dst_limits):
81923         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81924         (check_subexp_limits, sift_states_bkref, merge_state_array):
81925         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81926         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81927         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81928         (expand_bkref_cache, check_node_accept_bytes):
81929         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81930         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81931         (acquire_init_state_context, check_halt_node_context):
81932         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81933         (sift_states_backward, clean_state_log_if_needed):
81934         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81935         (find_recover_state, transit_state_sb, transit_state_mb):
81936         (transit_state_bkref, build_trtable, match_ctx_clean):
81937         Likewise.
81938         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81939         to work around an assumption that REG_MISSING is negative.
81940
81941         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81942         (seek_collating_symbol_entry) [defined _LIBC]:
81943         (lookup_collation_sequence_value) [defined _LIBC]:
81944         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81945         Use prototypes rather than old-style function definitions.
81946         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81947         (transit_state_sb) [0]:
81948         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81949
81950         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81951         rm_eo.
81952
81953         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81954         (optimize_subexps, lower_subexp):
81955         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81956         since the signed shift might overflow.  Use 1u<<31 instead.
81957         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81958         Likewise.
81959         * lib/regexec.c (check_dst_limits_calc_pos_1,
81960         check_subexp_matching_top): Likewise.
81961
81962         * lib/regcomp.c (optimize_subexps, lower_subexp):
81963         Use CHAR_BIT rather than 8, for clarity.
81964         * lib/regexec.c (check_dst_limits_calc_pos_1):
81965         (check_subexp_matching_top): Likewise.
81966         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81967         have to worry about portability issues when shifting it left.
81968         Remove no-longer-needed test for table_size > 0.
81969         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81970         in a word, as the resulting behavior is undefined.
81971         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81972         in one case, a <= should have been an <, and in another case the
81973         whole test was missing.
81974         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81975         the standard name CHAR_BIT.
81976         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81977         this is not true on one's complement and signed-magnitude hosts.
81978
81979         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81980         next_last_offset.
81981         (struct re_dfa_t): Remove unused member states_alloc.
81982         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81983
81984 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81985
81986         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81987         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81988         and large-file glibc and in 32-bit large-file Solaris.
81989
81990 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81991
81992         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81993         lengths fit in regoff_t; this isn't true if regoff_t is the same
81994         width as size_t.
81995         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81996         (= START + RANGE) instead of RANGE.  This avoids overflow
81997         problems when regoff_t is the same width as size_t.
81998         All callers changed.
81999         (re_search_2_stub): Check for overflow when adding the
82000         sizes of the two strings.
82001         (re_search_stub): Check for overflow when adding START
82002         to RANGE; if it occurs, substitute the extreme value.
82003
82004 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82005
82006         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
82007
82008 2005-08-31  Jim Meyering  <jim@meyering.net>
82009
82010         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
82011         a pointer-to-const.
82012         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
82013         (register_state): Likewise.
82014         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
82015         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82016         (group_nodes_into_DFAstates): Likewise.
82017
82018 2005-08-31  Jim Meyering  <jim@meyering.net>
82019
82020         * check-module: Add a FIXME comment.
82021
82022 2005-08-31  Eric Blake  <ebb9@byu.net>
82023
82024         * modules/unistd-safer (Files): Add unistd--.h.
82025         * modules/stdio-safer (Files): Add stdio--.h.
82026
82027 2005-08-31  Derek Price  <derek@ximbiot.com>
82028
82029         * lib/getdelim.c (getdelim): Return EOF on EOF.
82030         Reported by Larry Jones <lawrence.jones@ugs.com>.
82031
82032 2005-08-31  Bruno Haible  <bruno@clisp.org>
82033
82034         Avoid unnecessary diffs in the generated lib/Makefile.am.
82035         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82036         the generated files.
82037         (func_import): Don't set cmd.
82038
82039 2005-08-31  Bruno Haible  <bruno@clisp.org>
82040
82041         * lib/strstr.c: Include <stddef.h>, for NULL.
82042         * lib/strcasestr.c: Likewise.
82043         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82044
82045 2005-08-31  Bruno Haible  <bruno@clisp.org>
82046
82047         * gnulib-tool: New option --macro-prefix.
82048         (func_import): Use macro_prefix.
82049         (import): Handle option --macro-prefix.
82050
82051 2005-08-31  Bruno Haible  <bruno@clisp.org>
82052
82053         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82054         Also use new variables cached_lgpl, cached_libtool.
82055
82056 2005-08-31  Bruno Haible  <bruno@clisp.org>
82057
82058         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82059         always instantiating them.
82060
82061 2005-08-31  Bruno Haible  <bruno@clisp.org>
82062
82063         * gnulib-tool (func_import): Read the previous cached settings
82064         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82065         earlier added by gnulib but are now dropped. Warn when a gnulib file
82066         overwrites a non-gnulib file.
82067
82068 2005-08-31  Bruno Haible  <bruno@clisp.org>
82069
82070         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82071         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82072         projects that don't keep autogenerated files in CVS. Put into
82073         actioncmd only the specified modules, not the transitive closure.
82074
82075 2005-08-31  Bruno Haible  <bruno@clisp.org>
82076
82077         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82078         Create directories that shall be filled.
82079         (import): Don't look for gl_* macros in configure.ac. Recurse across
82080         all directories containing a gnulib-cache.m4 files, if meaningful.
82081
82082 2005-08-31  Bruno Haible  <bruno@clisp.org>
82083
82084         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82085         (import): Set seen_libtool when we see gl_LIBTOOL.
82086
82087 2005-08-31  Bruno Haible  <bruno@clisp.org>
82088
82089         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82090         declaration macro definitions from generated gnulib.m4.
82091
82092 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82093
82094         * lib/iconvme.h: Add prototype for iconv_alloc.
82095
82096 2005-08-29  Simon Josefsson  <jas@extundo.com>
82097
82098         * lib/iconvme.c: Fix errno.
82099
82100 2005-08-29  Bruno Haible  <bruno@clisp.org>
82101
82102         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82103         that it works when the directory contains spaces.
82104
82105 2005-08-29  Bruno Haible  <bruno@clisp.org>
82106
82107         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82108
82109 2005-08-29  Bruno Haible  <bruno@clisp.org>
82110
82111         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82112         Emit more advice.
82113
82114 2005-08-29  Bruno Haible  <bruno@clisp.org>
82115         and Stepan Kasal  <kasal@ucw.cz>
82116
82117         * check-module: If more parameters are given, check each of them
82118         separately; add more exceptions, as noted by Jim Meyering.
82119         (check_module): New procedure.
82120         (%exempt_header): Now contains all exceptions.
82121
82122 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82123
82124         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82125
82126 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82127
82128         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82129
82130 2005-08-28  Bruno Haible  <bruno@clisp.org>
82131
82132         * m4/gnulib-tool.m4: New file.
82133
82134 2005-08-27  Jim Meyering  <jim@meyering.net>
82135
82136         * modules/unistd-safer (Files): Add pipe-safer.c.
82137         * modules/fcntl-safer (Files): Add creat-safer.c.
82138
82139 2005-08-27  Jim Meyering  <jim@meyering.net>
82140
82141         * m4/stdlib-safer.m4: New file.  From coreutils.
82142         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82143         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82144         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82145         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82146         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82147
82148 2005-08-27  Jim Meyering  <jim@meyering.net>
82149
82150         * lib/fopen-safer.c: Merge minor changes from coreutils.
82151         * lib/dup-safer.c: Likewise.
82152         * lib/fd-safer.c: Likewise.
82153
82154         Merge from coreutils.
82155         * lib/stdio--.h: New file.
82156         * lib/stdlib--.h: New file.
82157         * lib/mkstemp-safer.c: New file.
82158
82159         GNU tar needs these.
82160         * lib/pipe-safer.c: New file.
82161         * lib/creat-safer.c: New file.
82162         * lib/fcntl--.h (creat): Define to creat_safer.
82163         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82164         * lib/unistd--.h (pipe): Define to pipe_safer.
82165         * lib/unistd-safer.h: Declare pipe_safer.
82166
82167 2005-08-26  Simon Josefsson  <jas@extundo.com>
82168
82169         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82170         Haible <bruno@clisp.org>.
82171
82172 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82173
82174         * lib/regex_internal.h: Remove all references to
82175         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82176         or better.
82177         (bitset_not, bitset_merge, bitset_not_merge):
82178         (bitset_mask, re_string_allocate, re_string_construct):
82179         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82180         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82181         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82182         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82183         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82184         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82185         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82186         (re_acquire_state_context):
82187         Remove unnecessary forward decls.
82188         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82189         Put __attribute at function definition,
82190         now that the function decl has been removed.
82191         * lib/regex_internal.c (re_string_peek_byte_case):
82192         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82193         Likewise.
82194
82195 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82196
82197         * m4/regex.m4: Add AC_PREREQ(2.50).
82198         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82199
82200 2005-08-25  Simon Josefsson  <jas@extundo.com>
82201
82202         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82203         __fsetlocking.
82204
82205 2005-08-25  Simon Josefsson  <jas@extundo.com>
82206
82207         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82208         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82209         GLIBC specific code.
82210
82211 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82212
82213         Make regex safe for g++.  This fixes one real bug (an "err"
82214         that should have been "*err").  g++ problem reported by
82215         Sam Steingold.
82216         * lib/regex_internal.h (re_calloc): New macro, consistent with
82217         re_malloc etc.  All callers of calloc changed to use re_calloc.
82218         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82219         not int.  All callers changed.
82220         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82221         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82222         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82223         (find_recover_state): Change "err" to "*err"; this fixes what
82224         appears to be a real bug.
82225         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82226         versus int.
82227
82228 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82229
82230         * modules/regex (Depends-on): Add malloc, since the code
82231         assumes that !malloc(0) means failure.
82232
82233 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82234
82235         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82236
82237         alloca modernization/simplification for regex.
82238         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82239         needs to be at the start of the file, and can be moved into
82240         regex_internal.h and simplified.
82241         * lib/regex_internal.h: Include <alloca.h>.
82242         (__libc_use_alloca) [!defined _LIBC]: New macro.
82243         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82244         now works outside glibc.
82245
82246 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82247
82248         * config/srclist.txt: Add glibc bugs 1241, 1245.
82249
82250 2005-08-25  Jim Meyering  <jim@meyering.net>
82251
82252         * lib/open-safer.c: Include <config.h>.
82253         Otherwise, we'd lose LARGEFILE support in any file using
82254         e.g. "fcntl--.h"
82255
82256 2005-08-25  Bruno Haible  <bruno@clisp.org>
82257
82258         * m4/minmax.m4: Require autoconf 2.52.
82259         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82260         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82261         alternatives of translit over the alphabet.
82262         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82263
82264 2005-08-24  Simon Josefsson  <jas@extundo.com>
82265
82266         * tests/test-getpass.c: New file.
82267
82268 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82269
82270         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82271         for GNU regex features.
82272
82273 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82274
82275         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82276         * lib/regex.h (regerror): Likewise.
82277
82278         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82279         requires this.  (The code never needed it.)
82280
82281         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82282         All uses of recently-renamed identifiers changed to use the new,
82283         POSIX-compliant names.  The code will build and run just fine
82284         without these changes, but it's better to eat our own dog food
82285         and use the standard-conforming names.
82286
82287         * lib/regex.h: Fix a multitude of POSIX name space violations.
82288         These changes have an effect only for programs that define
82289         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
82290         do not change anything for programs compiled in the normal way.
82291         Also, there is no effect on the ABI.
82292
82293         (_REGEX_SOURCE): New macro.
82294         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
82295         defined and _GNU_SOURCE is not; this fixes a name space violation.
82296
82297         Rename the following macros to obey POSIX requirements.
82298         The old names are still visible as macros if _REGEX_SOURCE is defined.
82299         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
82300         RE_BACKSLASH_ESCAPE_IN_LISTS.
82301         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82302         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82303         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82304         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82305         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82306         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82307         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82308         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82309         (REG_INTERVALS): renamed from RE_INTERVALS.
82310         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82311         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82312         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82313         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82314         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82315         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82316         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82317         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82318         RE_UNMATCHED_RIGHT_PAREN_ORD.
82319         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82320         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82321         (REG_DEBUG): renamed from RE_DEBUG.
82322         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82323         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82324         unusual, since we can't clash with the POSIX REG_ICASE.
82325         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82326         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82327         (REG_NO_SUB): renamed from RE_NO_SUB.
82328         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82329         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82330         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82331         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82332         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82333         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82334         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82335         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82336         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82337         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82338         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82339         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82340         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82341         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82342         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82343         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82344         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82345         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82346         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82347         (REG_FIXED): Renamed from REGS_FIXED.
82348         (REG_NREGS): Renamed from RE_NREGS.
82349
82350         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82351         of other REG_* macros, since POSIX says the user is allowed to
82352         #undef these macros selectively.
82353
82354         (reg_errcode_t): Update comment stating what other tables need
82355         to be consistent.
82356
82357         Rename the following enum values to obey POSIX requirements.
82358         The old names are still visible as macros.
82359         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82360         is not defined, since GNU is supposed to be a superset of POSIX as
82361         much as possible, and since we want reg_errcode_t to be a signed
82362         type for implementation consistency.
82363         (_REG_NOERROR): Renamed from REG_NOERROR.
82364         (_REG_NOMATCH): Renamed from REG_NOMATCH.
82365         (_REG_BADPAT): Renamed from REG_BADPAT.
82366         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
82367         (_REG_ECTYPE): Renamed from REG_ECTYPE.
82368         (_REG_EESCAPE): Renamed from REG_EESCAPE.
82369         (_REG_ESUBREG): Renamed from REG_ESUBREG.
82370         (_REG_EBRACK): Renamed from REG_EBRACK.
82371         (_REG_EPAREN): Renamed from REG_EPAREN.
82372         (_REG_EBRACE): Renamed from REG_EBRACE.
82373         (_REG_BADBR): Renamed from REG_BADBR.
82374         (_REG_ERANGE): Renamed from REG_ERANGE.
82375         (_REG_ESPACE): Renamed from REG_ESPACE.
82376         (_REG_BADRPT): Renamed from REG_BADRPT.
82377         (_REG_EEND): Renamed from REG_EEND.
82378         (_REG_ESIZE): Renamed from REG_ESIZE.
82379         (_REG_ERPAREN): Renamed from REG_ERPAREN.
82380         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
82381         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
82382         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
82383         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
82384
82385         (_REG_RE_NAME, _REG_RM_NAME): New macros.
82386         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
82387         changed.  But support the old name if the new one is not defined
82388         and if _REGEX_SOURCE.
82389
82390         Change the following member names in struct re_pattern_buffer.
82391         The old names are still supported if !_REGEX_SOURCE.
82392         The new names are always supported, regardless of _REGEX_SOURCE.
82393         (re_buffer): Renamed from buffer.
82394         (re_allocated): Renamed from allocated.
82395         (re_used): Renamed from used.
82396         (re_syntax): Renamed from syntax.
82397         (re_fastmap): Renamed from fastmap.
82398         (re_translate): Renamed from translate.
82399         (re_can_be_null): Renamed from can_be_null.
82400         (re_regs_allocated): Renamed from regs_allocated.
82401         (re_fastmap_accurate): Renamed from fastmap_accurate.
82402         (re_no_sub): Renamed from no_sub.
82403         (re_not_bol): Renamed from not_bol.
82404         (re_not_eol): Renamed from not_eol.
82405         (re_newline_anchor): Renamed from newline_anchor.
82406
82407         Change the following member names in struct re_registers.
82408         The old names are still supported if !_REGEX_SOURCE.
82409         The new names are always supported, regardless of _REGEX_SOURCE.
82410         (rm_num_regs): Renamed from num_regs.
82411         (rm_start): Renamed from start.
82412         (rm_end): Renamed from end.
82413
82414         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
82415         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
82416         Prepend __ to parameter names.
82417
82418         Undo yesterday's changes.
82419
82420 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82421
82422         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82423         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82424         lib/regex.c.
82425
82426 2005-08-24  Jim Meyering  <jim@meyering.net>
82427
82428         Sync from coreutils.
82429         * m4/fcntl-safer.m4: New file.
82430
82431         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82432         and object files for this module.
82433
82434 2005-08-24  Jim Meyering  <jim@meyering.net>
82435
82436         Sync from coreutils.
82437         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82438
82439 2005-08-24  Jim Meyering  <jim@meyering.net>
82440
82441         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
82442         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
82443
82444 2005-08-24  Jim Meyering  <jim@meyering.net>
82445
82446         * modules/fcntl-safer: New module.
82447         * modules/fts (Depends-on): Add fcntl-safer.
82448         * MODULES.html.sh (File descriptor based Input/Output):
82449         Add fcntl-safer.
82450
82451 2005-08-24  Bruno Haible  <bruno@clisp.org>
82452
82453         Support for unit test modules.
82454         * modules/README: Mention tests modules.
82455         * modules/TEMPLATE-TESTS: New file.
82456         * gnulib-tool: New options --extract-tests-module, --with-tests and
82457         --tests-base (unused for the moment).
82458         (testsbase, inctests): New variables.
82459         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
82460         (func_verify_module): Exclude TEMPLATE-TESTS.
82461         (func_verify_nontests_module, func_verify_tests_module): New functions.
82462         (func_get_dependencies): Add implicit dependency for tests modules.
82463         (func_get_tests_module): New function.
82464         (func_modules_transitive_closure): When --with-tests was specified,
82465         include the unit tests as well, unless explicitly avoided.
82466         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82467         (func_emit_tests_Makefile_am): New function.
82468         (func_create_testdir): When --with-tests was specified, emit a
82469         tests/ directory.
82470         * MODULES.html.sh (Future developments): Update.
82471
82472 2005-08-24  Bruno Haible  <bruno@clisp.org>
82473
82474         * modules/tls-tests: New file.
82475         * tests/test-tls.c: New file, from GNU gettext.
82476
82477 2005-08-24  Bruno Haible  <bruno@clisp.org>
82478
82479         * modules/lock-tests: New file.
82480         * tests/test-lock.c: New file, from GNU gettext.
82481
82482 2005-08-24  Bruno Haible  <bruno@clisp.org>
82483
82484         * lib/lock.h: Add multiple inclusion guard.
82485         * lib/tls.h: Add multiple inclusion guard.
82486
82487 2005-08-24  Bruno Haible  <bruno@clisp.org>
82488
82489         * gnulib-tool: Add support for the --aux-dir option to
82490         --create-testdir, --create-megatestdir, --test, --megatest.
82491         (func_create_testdir, func_create_megatestdir): Optionally emit a
82492         AC_CONFIG_AUX_DIR directive.
82493         (create-testdir, create-megatestdir, test, megatest): Provide a
82494         default value for $auxdir.
82495
82496 2005-08-24  Bruno Haible  <bruno@clisp.org>
82497
82498         * gnulib-tool (import): Use compound statement instead of subshell
82499         where possible.
82500
82501 2005-08-24  Bruno Haible  <bruno@clisp.org>
82502
82503         * gnulib-tool (import): Change --aux-dir default to "build-aux".
82504
82505 2005-08-24  Bruno Haible  <bruno@clisp.org>
82506
82507         * gnulib-tool (func_version): Update.
82508
82509 2005-08-24  Bruno Haible  <bruno@clisp.org>
82510
82511         * gnulib-tool (func_import, func_create_testdir,
82512         func_create_megatestdir): Quote all autoconf macro arguments.
82513
82514 2005-08-24  Bruno Haible  <bruno@clisp.org>
82515
82516         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82517         option --force, because --force causes the aclocal.m4 of each
82518         subdirectory to be newer than the corresponding config.h.in.
82519
82520 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82521
82522         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82523         All contents moved to gl_REGEX.
82524         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82525         assume that it does.
82526
82527 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82528
82529         * lib/regex.h (REG_NOSYS)
82530         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82531         Define, since POSIX requires it as of 2001.
82532         (_REG_ENOSYS)
82533         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82534         New private symbol, used to keep the enum signed in all cases.
82535         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82536         Youngman in
82537         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82538
82539         * lib/regex_internal.c (re_string_skip_chars, register_state):
82540         (calc_state_hash):
82541         Remove forward decls; no longer needed now that we use prototypes.
82542         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82543         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82544         (clean_state_log_if_needed): Likewise.
82545
82546 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82547
82548         * config/srclist.txt: Add glibc bugs 1231-1233.
82549
82550 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82551
82552         Fix problems reported by Sam Steingold in
82553         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82554         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82555         assumed that reg_errcode_t is a signed type, which is not
82556         necessarily true if _XOPEN_SOURCE is not defined.
82557         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82558         since some compilers warn about it otherwise.
82559
82560 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82561
82562         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82563         (init_word_char, create_initial_state, duplicate_node_closure):
82564         (fetch_token, peek_token_bracket, build_range_exp):
82565         (build_collating_symbol): Remove forward decls; no longer needed
82566         now that we use prototypes.
82567
82568         * lib/regcomp.c:
82569         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82570         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82571         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82572         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82573         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82574         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82575         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82576         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82577         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82578         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82579         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82580         (build_charclass, build_charclass_op, fetch_number, create_tree):
82581         (create_token_tree, mark_opt_subexp, duplicate_tree):
82582         Use prototypes rather than old-style definitions.
82583
82584         * lib/regex_internal.c:
82585         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82586         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82587         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82588         (re_string_reconstruct, re_string_peek_byte_case):
82589         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82590         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82591         (re_node_set_init_copy, re_node_set_add_intersect):
82592         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82593         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82594         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82595         (re_acquire_state, re_acquire_state_context, register_state):
82596         (create_ci_newstate, create_cd_newstate, free_state):
82597         Likewise.
82598         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82599         re_search_2):
82600         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82601         (re_search_internal, prune_impossible_nodes):
82602         (acquire_init_state_context, check_matching, static):
82603         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82604         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82605         (update_regs, sift_states_backward, build_sifted_states):
82606         (clean_state_log_if_needed, merge_state_array):
82607         (update_cur_sifted_state, add_epsilon_src_nodes):
82608         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82609         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82610         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82611         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82612         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82613         (check_arrival, check_arrival_add_next_nodes):
82614         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82615         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82616         (check_node_accept_bytes, check_node_accept, extend_buffers):
82617         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82618         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82619         (sift_ctx_init):
82620         Likewise.
82621
82622         * lib/regex_internal.h:
82623         (re_string_allocate, re_string_construct, re_string_reconstruct):
82624         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82625         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82626         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82627         (re_string_context_at, re_string_peek_byte_case):
82628         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82629         is defined, since we now use prototypes always.
82630
82631         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82632         C89 or better.  All uses removed.
82633
82634 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82635
82636         * config/srclist.txt: Add glibc bugs 1220-1227.
82637
82638 2005-08-20  Jim Meyering  <jim@meyering.net>
82639
82640         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82641         of unused local, dfa.
82642
82643 2005-08-20  Bruno Haible  <bruno@clisp.org>
82644
82645         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82646
82647 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82648
82649         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82650         (re_node_set_insert_last, re_dfa_add_node):
82651         Rename local variables to avoid GCC shadowing warnings.
82652
82653 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82654
82655         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82656         [defined lint]: Suppress bogus uninitialized-variable warnings.
82657
82658         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82659         and let the caller return REG_ESPACE if out of space.  This
82660         removes an uninitialied-variable warning with GCC 4.0.1, and also
82661         avoids taking the address of a local variable.  All callers
82662         changed.
82663
82664 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82665
82666         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82667         $LIBCSRC/posix/regexec.c.
82668         Add glibc bug 1217 for regcomp.c.
82669
82670 2005-08-19  Jim Meyering  <jim@meyering.net>
82671
82672         * lib/regexec.c (proceed_next_node): Redo local variables to
82673         avoid GCC shadowing warnings.
82674
82675 2005-08-18  Bruno Haible  <bruno@clisp.org>
82676
82677         * lib/strstr.c (strstr): Fix return value in multibyte case.
82678         * lib/strcasestr.c (strcasestr): Likewise.
82679
82680 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82681
82682         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82683
82684 2005-08-17  Jim Meyering  <jim@meyering.net>
82685
82686         Make the %s format (seconds since the epoch) work for a negative
82687         number and when used with a zero-padded field width, e.g. %015s.
82688
82689         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82690         label so that it precedes the code to set `digits'.  Otherwise,
82691         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82692         print `00-22'.  Now, it prints `-0022', as it should.
82693
82694 2005-08-17  Bruno Haible  <bruno@clisp.org>
82695
82696         * modules/strstr (Files): Add m4/mbrtowc.m4.
82697         (Depends-on): Add mbuiter.
82698
82699 2005-08-17  Bruno Haible  <bruno@clisp.org>
82700
82701         * modules/strcasestr: New file.
82702         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82703         strcasestr.
82704
82705 2005-08-17  Bruno Haible  <bruno@clisp.org>
82706
82707         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82708
82709 2005-08-17  Bruno Haible  <bruno@clisp.org>
82710
82711         * modules/mbuiter: New file.
82712         * MODULES.html.sh (Extended multibyte and wide character utilities):
82713         Add mbuiter.
82714
82715 2005-08-17  Bruno Haible  <bruno@clisp.org>
82716
82717         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82718         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82719
82720 2005-08-17  Bruno Haible  <bruno@clisp.org>
82721
82722         * m4/strcasestr.m4: New file.
82723
82724 2005-08-17  Bruno Haible  <bruno@clisp.org>
82725
82726         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82727         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82728
82729 2005-08-17  Bruno Haible  <bruno@clisp.org>
82730
82731         * lib/strcasestr.h: New file.
82732         * lib/strcasestr.c: New file.
82733
82734 2005-08-17  Bruno Haible  <bruno@clisp.org>
82735
82736         * lib/strcasecmp.c: Use mbuiter.h.
82737
82738 2005-08-17  Bruno Haible  <bruno@clisp.org>
82739
82740         * lib/mbuiter.h: New file.
82741
82742 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82743
82744         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82745         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82746         and gl_GETOPT are both invoked via different paths (as happens
82747         with GNU tar CVS because it uses both argp and getopt), the former
82748         wins.
82749
82750 2005-08-16  Bruno Haible  <bruno@clisp.org>
82751
82752         * modules/tls: New file.
82753         * MODULES.html.sh (Multithreading): Add tls.
82754
82755 2005-08-16  Bruno Haible  <bruno@clisp.org>
82756
82757         * modules/strnlen1: New file.
82758         * MODULES.html.sh (String handling): Add strnlen1.
82759
82760 2005-08-16  Bruno Haible  <bruno@clisp.org>
82761
82762         * modules/strcase (Files): Add m4/mbrtowc.m4.
82763         (Depends-on): Add strnlen1, mbchar.
82764
82765 2005-08-16  Bruno Haible  <bruno@clisp.org>
82766
82767         * modules/mbiter: New file.
82768         * MODULES.html.sh (Extended multibyte and wide character utilities):
82769         Add mbiter.
82770
82771 2005-08-16  Bruno Haible  <bruno@clisp.org>
82772
82773         * modules/mbfile: New file.
82774         * MODULES.html.sh (Extended multibyte and wide character utilities):
82775         Add mbfile.
82776
82777 2005-08-16  Bruno Haible  <bruno@clisp.org>
82778
82779         * modules/mbchar: New file.
82780         * MODULES.html.sh (Extended multibyte and wide character utilities):
82781         New section.
82782
82783 2005-08-16  Bruno Haible  <bruno@clisp.org>
82784
82785         * m4/tls.m4: New file, from GNU gettext.
82786
82787 2005-08-16  Bruno Haible  <bruno@clisp.org>
82788
82789         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82790         always.
82791         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82792
82793 2005-08-16  Bruno Haible  <bruno@clisp.org>
82794
82795         * m4/mbiter.m4: New file.
82796
82797 2005-08-16  Bruno Haible  <bruno@clisp.org>
82798
82799         * m4/mbfile.m4: New file.
82800
82801 2005-08-16  Bruno Haible  <bruno@clisp.org>
82802
82803         * m4/mbchar.m4: New file.
82804
82805 2005-08-16  Bruno Haible  <bruno@clisp.org>
82806
82807         * lib/tls.h: New file, from GNU gettext.
82808         * lib/tls.c: New file, from GNU gettext.
82809
82810 2005-08-16  Bruno Haible  <bruno@clisp.org>
82811
82812         * lib/strnlen1.h: New file.
82813         * lib/strnlen1.c: New file.
82814
82815 2005-08-16  Bruno Haible  <bruno@clisp.org>
82816
82817         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82818         (mbi_init): Update.
82819         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82820         NUL byte, not after it.
82821
82822 2005-08-16  Bruno Haible  <bruno@clisp.org>
82823
82824         * lib/strcase.h (strcasecmp): Add note in comments.
82825         * lib/strncasecmp.c: Use code from strcasecmp.c.
82826         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82827         (strcasecmp): Work correctly in multibyte locales.
82828
82829 2005-08-16  Bruno Haible  <bruno@clisp.org>
82830
82831         * lib/mbiter.h: New file.
82832
82833 2005-08-16  Bruno Haible  <bruno@clisp.org>
82834
82835         * lib/mbfile.h: New file.
82836
82837 2005-08-16  Bruno Haible  <bruno@clisp.org>
82838
82839         * lib/mbchar.h: New file.
82840         * lib/mbchar.c: New file.
82841
82842 2005-08-16  Bruno Haible  <bruno@clisp.org>
82843
82844         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82845         the valid ones. Makes the comparison operations transitive:
82846         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82847         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82848
82849 2005-08-15  Simon Josefsson  <jas@extundo.com>
82850
82851         * modules/ssize_t (License): Change to 'unlimited'.
82852
82853         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82854
82855 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82856
82857         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82858         Add comments for each pending glibc patch.
82859
82860 2005-08-15  Bruno Haible  <bruno@clisp.org>
82861
82862         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82863         __cplusplus is defined.
82864
82865 2005-08-14  Jim Meyering  <jim@meyering.net>
82866
82867         Sync from coreutils.
82868
82869         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82870         Use the hash-table-based cycle-detection code not just when
82871         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82872         Reported by James Youngman in
82873         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82874         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82875         FTS_TIGHT_CYCLE_CHECK.
82876         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82877         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82878         once again.
82879         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82880         * lib/fts.c (fd_safer): Remove decl.
82881         Include fcntl--.h rather than unistd-safer.h
82882         (fts_safe_changedir): Don't call fd_safer; no longer needed
82883         now that we include fcntl--.h.
82884
82885 2005-08-12  Simon Josefsson  <jas@extundo.com>
82886
82887         * modules/getndelim2: Use ssize_t module.
82888         * modules/getnline: Likewise.
82889         * modules/safe-read: Likewise.
82890         * modules/xreadlink: Likewise.
82891
82892         * modules/ssize_t: New file.
82893
82894 2005-08-12  Simon Josefsson  <jas@extundo.com>
82895
82896         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82897
82898 2005-08-12  Simon Josefsson  <jas@extundo.com>
82899
82900         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82901         ssize_t.
82902
82903 2005-08-12  Simon Josefsson  <jas@extundo.com>
82904
82905         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82906         readline, getdelim and check_version.
82907         (Support for systems lacking ISO C 99: Sizes of integer types):
82908         Add size_max.
82909
82910 2005-08-12  Bruno Haible  <bruno@clisp.org>
82911
82912         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82913
82914 2005-08-11  Simon Josefsson  <jas@extundo.com>
82915
82916         * modules/readline: New file.
82917
82918         * modules/strnlen (Files): Add strnlen.h.
82919
82920 2005-08-11  Simon Josefsson  <jas@extundo.com>
82921
82922         * m4/readline.m4: New file.
82923
82924 2005-08-11  Simon Josefsson  <jas@extundo.com>
82925
82926         * lib/readline.h, readline.c: New file.
82927
82928 2005-08-11  Simon Josefsson  <jas@extundo.com>
82929
82930         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82931         gl_AVOID.
82932
82933 2005-08-11  Bruno Haible  <bruno@clisp.org>
82934
82935         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82936
82937 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82938
82939         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82940
82941 2005-08-10  Simon Josefsson  <jas@extundo.com>
82942
82943         * tests/test-iconvme.c: New file.
82944
82945 2005-08-10  Simon Josefsson  <jas@extundo.com>
82946
82947         * m4/strnlen.m4: New file.
82948
82949         * m4/strndup.m4: Don't check for strnlen declaration, done in
82950         strnlen.m4.
82951
82952 2005-08-10  Simon Josefsson  <jas@extundo.com>
82953
82954         * lib/strndup.c: Use strnlen.h.
82955
82956         * lib/strnlen.h: New file.
82957
82958 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82959
82960         * README: Typos.
82961
82962 2005-08-02  Simon Josefsson  <jas@extundo.com>
82963
82964         * modules/readline: New file.
82965
82966 2005-08-02  Simon Josefsson  <jas@extundo.com>
82967
82968         * modules/getdelim: New file.
82969
82970         * modules/getline: Rewrite, don't use getndelim2.
82971
82972 2005-08-02  Simon Josefsson  <jas@extundo.com>
82973
82974         * m4/getline.m4: Separate out getdelim stuff into separate module.
82975
82976         * m4/getdelim.m4: New file.
82977
82978 2005-08-02  Simon Josefsson  <jas@extundo.com>
82979
82980         * lib/getline.h, getline.c: Rewrite.
82981
82982         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82983
82984 2005-07-31  Bruno Haible  <bruno@clisp.org>
82985
82986         * lib/lock.h (gl_lock_initializer): New macro.
82987         (gl_lock_define_initialized): Use it.
82988         (gl_rwlock_initializer): New macro.
82989         (gl_rwlock_define_initialized): Use it.
82990         (gl_recursive_lock_initializer): New macro.
82991         (gl_recursive_lock_define_initialized): Use it.
82992
82993 2005-07-30  Karl Berry  <karl@gnu.org>
82994
82995         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82996         Report from Ben Pfaff, regarding getopt.
82997
82998 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82999
83000         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
83001         normal way.
83002         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
83003         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
83004         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
83005         (gl_GETOPT): Use the new macros.  Most of the implementation
83006         is moved to the new macros.  This is for programs like Emacs
83007         that don't want all the functionality of gl_GETOPT.
83008
83009 2005-07-26  Bruno Haible  <bruno@clisp.org>
83010
83011         * m4/lock.m4: Update from GNU gettext.
83012
83013 2005-07-26  Bruno Haible  <bruno@clisp.org>
83014
83015         * lib/lock.h: Update from GNU gettext.
83016         * lib/lock.c: Update from GNU gettext.
83017
83018 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
83019
83020         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
83021         obsolescent AC_TRY_RUN.  Include the default includes files, for
83022         'exit'.
83023
83024 2005-07-24  Bruno Haible  <bruno@clisp.org>
83025
83026         * modules/visibility: New file.
83027         * MODULES.html.sh (Misc): Add visibility.
83028
83029 2005-07-24  Bruno Haible  <bruno@clisp.org>
83030
83031         * m4/visibility.m4: New file.
83032
83033 2005-07-24  Bruno Haible  <bruno@clisp.org>
83034
83035         * doc/visibility.texi: New file.
83036
83037 2005-07-22  Bruno Haible  <bruno@clisp.org>
83038
83039         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83040         $(ALLOCA_H), redundant through BUILT_SOURCES.
83041         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83042         redundant through BUILT_SOURCES.
83043         * modules/byteswap (Makefile.am): Remove explicit dependency on
83044         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83045         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83046         $(FNMATCH_H), redundant through BUILT_SOURCES.
83047         * modules/getopt (Makefile.am): Remove explicit dependency on
83048         $(GETOPT_H), redundant through BUILT_SOURCES.
83049         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83050         redundant through BUILT_SOURCES.
83051         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83052         redundant through BUILT_SOURCES.
83053         * modules/stdbool (Makefile.am): Remove explicit dependency on
83054         $(STDBOOL_H), redundant through BUILT_SOURCES.
83055         * modules/stdint (Makefile.am): Remove explicit dependency on
83056         $(STDINT_H), redundant through BUILT_SOURCES.
83057         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83058         Remove explicit dependency on $(SYSEXITS_H).
83059         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83060
83061 2005-07-18  Simon Josefsson  <jas@extundo.com>
83062
83063         * lib/check-version.c (check_version): Accept identical versions too.
83064
83065 2005-07-18  Bruno Haible  <bruno@clisp.org>
83066
83067         * modules/lock: New file.
83068         * MODULES.html.sh (Multithreading): New section.
83069
83070 2005-07-18  Bruno Haible  <bruno@clisp.org>
83071
83072         * m4/lock.m4: New file, from GNU gettext.
83073
83074 2005-07-18  Bruno Haible  <bruno@clisp.org>
83075
83076         * lib/lock.h: New file, from GNU gettext.
83077         * lib/lock.c: New file, from GNU gettext.
83078
83079 2005-07-18  Bruno Haible  <bruno@clisp.org>
83080
83081         * lib/lock.h (gl_once_t): New type.
83082         (gl_once_define, gl_once): New macros.
83083         * lib/lock.c (fresh_once): New variable.
83084         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83085         functions.
83086
83087 2005-07-16  Simon Josefsson  <jas@extundo.com>
83088
83089         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83090         workaround, suggested by Bruno.
83091
83092 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83093
83094         * modules/xalloc (Depends-on): Add xalloc-die.
83095         * modules/xvasprintf (Depends-on): Add xalloc-die.
83096
83097 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83098
83099         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83100         with a minor change.
83101
83102 2005-07-15  Bruno Haible  <bruno@clisp.org>
83103
83104         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83105         When using lib/poll.c, define poll as rpl_poll.
83106
83107 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83108
83109         * modules/argp (Depends-on): Remove unlocked-io.
83110
83111 2005-07-14  Derek Price  <derek@ximbiot.com>
83112
83113         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83114         for glob symlink bug.
83115
83116 2005-07-14  Bruno Haible  <bruno@clisp.org>
83117
83118         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83119         Instead, test for *_unlocked function declarations directly.
83120
83121 2005-07-11  Simon Josefsson  <jas@extundo.com>
83122
83123         * modules/size_max: New file.
83124
83125         * modules/xsize: Depend on size_max module for size_max.m4.
83126
83127 2005-07-11  Simon Josefsson  <jas@extundo.com>
83128
83129         * lib/size_max.h: New file.
83130
83131 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83132
83133         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83134         copyright symbol and the year.
83135         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83136         (version_etc_va): Use parameterized copyright notice.
83137         Reword to conform to the current GNU coding standards.
83138
83139 2005-07-11  Karl Berry  <karl@gnu.org>
83140
83141         * doc/gnulib.texi (Quoting): new node.
83142         (Initial import): more info, from Patrice.
83143
83144 2005-07-11  Bruno Haible  <bruno@clisp.org>
83145
83146         * gnulib-tool (func_usage): Document option --avoid.
83147         (Command line options): Handle --avoid.
83148         (func_acceptable): New function.
83149         (func_modules_transitive_closure): Use it.
83150
83151 2005-07-11  Bruno Haible  <bruno@clisp.org>
83152
83153         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83154         Reported by Jim Meyering.
83155
83156 2005-07-10  Bruno Haible  <bruno@clisp.org>
83157
83158         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83159         Needed when size_t is smaller than 'unsigned int'.
83160         Reported by Paul Eggert.
83161
83162 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83163
83164         * modules/argp (Depends-on): Add unlocked-io
83165
83166 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83167
83168         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83169         block of defines.
83170
83171 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83172
83173         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83174         fix now.
83175
83176 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83177         and Paul Eggert  <eggert@cs.ucla.edu>
83178
83179         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83180         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83181
83182 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83183
83184         * modules/regex (Files): Add lib/regex_internal.c,
83185         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83186         (Depends-on): Add extensions.
83187         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83188
83189 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83190
83191         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83192         pathconf.
83193         * m4/same.m4 (gl_SAME): Likewise.
83194         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83195
83196         * m4/regex.m4: Adjust to new libc regex implementation.
83197         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83198         all the .c and .h parts of (the new) regex.
83199         Quote the m4 stuff better.
83200         Check for RE_ICASE bug of old gnulib.
83201         Check for REG_STARTEND of recent libc.
83202         Rename local variables from jm_* to gl_*.
83203         Quote operand of "test -f".
83204         Say "recent enough" version of libc, not "version 2".
83205         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83206         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83207         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83208         Remove check for btowc, isascii.
83209         Require AM_LANGINFO_CODESET.
83210
83211 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83212
83213         * lib/regex.c, regex.h: Sync from libc.
83214         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83215         * lib/regexec.c:
83216         New files, synced from libc, except that regex_internal.h
83217         currently has a small porting fix.
83218
83219 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83220
83221         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83222         regex_internal.c, regexec.c.
83223         Add regex_internal.h too, but as a comment, since the libc version
83224         is currently broken in gnulib mode.
83225
83226 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83227
83228         Support programs like Emacs that use gnulib but not gettext.
83229         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83230         * modules/gettext-h: New file.
83231         * modules/gettext (Files): Remove lib/gettext.h.
83232         (Depends-on): Add gettext-h.
83233         (Makefile.am): Remove lib_SOURCES.
83234         * modules/argmatch, modules/c-stack, modules/closeout:
83235         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83236         * modules/execute, modules/file-type, modules/getaddrinfo:
83237         * modules/getopt, modules/human, modules/javacomp:
83238         * modules/javaexec, modules/mkdir-p, modules/obstack:
83239         * modules/openat, modules/pagealign_alloc, modules/pipe:
83240         * modules/quotearg, modules/regex, modules/rpmatch:
83241         * modules/unicodeio, modules/userspec, modules/version-etc:
83242         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83243         * modules/xsetenv:
83244         Depend on gettext-h, not gettext.
83245
83246 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83247
83248         * gnulib-tool (func_import): Add support for 'public domain' license.
83249         * modules/alloca, modules/atexit, modules/memmove:
83250         Now public domain, not GPL.
83251         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83252         * modules/realloc, modules/strerror, modules/strtod:
83253         Now LGPL, not GPL.
83254
83255 2005-07-05  Bruno Haible  <bruno@clisp.org>
83256
83257         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83258         autoconf CVS. Needed for mingw.
83259
83260 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83261
83262         Remove the dependency of the strftime module on the tzset module.
83263         * modules/strftime (Depends-on): Remove dependency on tzset.
83264
83265 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83266
83267         Remove the dependency of the strftime module on the tzset module.
83268         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83269         gl_FUNC_TZSET_CLOBBER.
83270
83271 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83272
83273         Remove the dependency of the strftime module on the tzset module.
83274         * lib/strftime.c (my_strftime)
83275         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83276         Copy the input structure, to work around some of the bug with
83277         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83278         Solaris releases, you should also use the tzset module, but we won't
83279         require it as a dependency any more since we don't want LGPLed code
83280         to depend on GPLed code.
83281
83282 2005-07-02  Jim Meyering  <jim@meyering.net>
83283
83284         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83285         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83286         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83287         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83288
83289 2005-07-02  Jim Meyering  <jim@meyering.net>
83290
83291         * lib/backupfile.c (backup_args): Change a `0' to NULL.
83292
83293 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
83294
83295         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
83296         declares only 'struct timespec;' (!).
83297
83298 2005-07-01  Jim Meyering  <jim@meyering.net>
83299
83300         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83301         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83302         * lib/save-cwd.c, tempname.c:
83303         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83304         and don't include <sys/file.h>).
83305
83306 2005-06-29  Jim Meyering  <jim@meyering.net>
83307
83308         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83309         type name.  Use the variable name instead.
83310         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83311         Likewise.
83312
83313 2005-06-28  Simon Josefsson  <jas@extundo.com>
83314
83315         * modules/check-version (Files): Add check-version.m4.
83316
83317 2005-06-28  Simon Josefsson  <jas@extundo.com>
83318
83319         * m4/check-version.m4: New file, suggested by Jim Meyering
83320         <jim@meyering.net>.
83321
83322 2005-06-28  Simon Josefsson  <jas@extundo.com>
83323
83324         * lib/check-version.h, lib/check-version.c: New files.
83325
83326 2005-06-28  Simon Josefsson  <jas@extundo.com>
83327
83328         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83329         collision with global variable.  Better indentation.  Don't
83330         increment buffer pointer beyond buffer end.  Based on comments
83331         from Paul Eggert <eggert@cs.ucla.edu>.
83332
83333         * lib/base64.h: Indent.
83334
83335 2005-06-28  Simon Josefsson  <jas@extundo.com>
83336
83337         * doc/gnulib.texi (Library version handling): New section.
83338
83339 2005-06-28  Jim Meyering  <jim@meyering.net>
83340
83341         * check-module (find_included_lib_files): Hard-code another
83342         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83343         but modules/fts-lgpl (correctly) does not list those files.
83344
83345         * modules/canonicalize (Files): Add lib/pathmax.h.
83346
83347 2005-06-25  Simon Josefsson  <jas@extundo.com>
83348
83349         * modules/check-version: New file.
83350
83351 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83352
83353         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83354         initializer of struct addrinfo, as an indication that we don't
83355         care how many members the structure has.
83356
83357 2005-06-24  Derek Price  <derek@ximbiot.com>
83358         and Bruno Haible  <bruno@clisp.org>
83359
83360         Remove stat module & update lstat.
83361         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83362         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83363         * m4/stat.m4: Remove this file.
83364
83365 2005-06-24  Derek Price  <derek@ximbiot.com>
83366         and Bruno Haible  <bruno@clisp.org>
83367
83368         Remove stat module & update lstat.
83369         * lib/stat.c: Remove this file...
83370         (slash_aware_lstat): ...moving this content and its support...
83371         * lib/lstat.c (rpl_lstat): ...into here.
83372         * lib/lstat.h: New file.
83373
83374 2005-06-24  Derek Price  <derek@ximbiot.com>
83375         and Bruno Haible  <bruno@clisp.org>
83376
83377         Remove stat module & update lstat.
83378         * config/srclist.txt (libc sources): Remove stat.
83379
83380 2005-06-24  Derek Price  <derek@ximbiot.com>
83381         and Bruno Haible  <bruno@clisp.org>
83382
83383         Remove stat module & update lstat.
83384         * MODULES.html.sh (stat): Remove.
83385         * MODULES.html: Regenerated.
83386         * modules/lstat (Description): Correct function name.
83387         (Files): Add "lstat.h".
83388         (Depends-on): Remove stat, add xalloc, stat-macros.
83389         * modules/stat: Remove this file.
83390         (Include): Add "lstat.h", remove <sys/stat.h>.
83391
83392 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83393
83394         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
83395         (ranged_convert): Don't save conversion in a temporary struct.
83396         This causes a warning with GCC 4.0.0, and anyway in the typical
83397         case it's not worth the extra 100 bytes or so of code.
83398         (ranged_convert, __mktime_internal): When calling a function via a
83399         pointer P, use P () rather than (*P) (), as we now assume C89 or
83400         better.
83401
83402 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83403
83404         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
83405         "who -r" failed to give output.  Problem reported by Tim Waugh.
83406
83407         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
83408         (xcalloc): Use it to avoid needless tests.
83409         Problem reported by Jim Meyering.
83410
83411 2005-06-20  Derek Price  <derek@ximbiot.com>
83412
83413         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
83414         unnecessary for Autoconfs > 2.59c.
83415
83416 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83417
83418         * lib/argp.h (__option_is_short): Check upper limit of
83419         __key. Isprint() requires its argument to have the value
83420         of an unsigned char or EOF.
83421
83422 2005-06-16  Jim Meyering  <jim@meyering.net>
83423
83424         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83425         when either N or S is zero.
83426
83427 2005-06-16  Derek Price  <derek@ximbiot.com>
83428
83429         * m4/bison.m4: Declare YACC & YFLAGS precious.
83430
83431 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83432
83433         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83434         multibyte string or pattern, fall back on unibyte matching.
83435         Problem reported by James Youngman.
83436
83437 2005-06-08  Bruno Haible  <bruno@clisp.org>
83438
83439         * modules/csharpcomp: New file.
83440         * MODULES.html.sh (C#): Add csharpcomp.
83441
83442 2005-06-08  Bruno Haible  <bruno@clisp.org>
83443
83444         * m4/csharpcomp.m4: New file, from GNU gettext.
83445
83446 2005-06-08  Bruno Haible  <bruno@clisp.org>
83447
83448         * lib/csharpcomp.h: New file, from GNU gettext.
83449         * lib/csharpcomp.c: New file, from GNU gettext.
83450         * lib/csharpcomp.sh.in: New file, from GNU gettext.
83451
83452 2005-06-08  Bruno Haible  <bruno@clisp.org>
83453
83454         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
83455         warning on mingw.
83456
83457 2005-06-07  Derek Price  <derek@ximbiot.com>
83458
83459         Sync from CVS.
83460         * lib/glob_.h: Indent nested #ifdef.
83461
83462 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83463
83464         Sync from coreutils.
83465         Use "file name" when talking about file names, instead of "filename"
83466         or "path", as per the GNU coding standards.
83467         * lib/mkdir-p.c: Renamed from makepath.c.
83468         (make_dir_parents): Renamed from make_path.  All callers changed.
83469         * lib/mkdir-p.h: Likewise.  All includers changed.
83470         * lib/filenamecat.c: Renamed from path-concat.c.
83471         (file_name_concat): Renamed from path_concat.  All callers changed.
83472         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
83473         * lib/filenamecat.h: Likewise.  All includers changed.
83474         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
83475         in comments or local variable names.
83476         * lib/basename.c: Likewise.
83477         * lib/canonicalize.c, canonicalize.h: Likewise.
83478         * lib/dirname.c, dirname.h: Likewise.
83479         * lib/euidaccess.c: Likewise.
83480         * lib/exclude.c: Likewise
83481         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
83482         * lib/fsusage.c, fsuage.h: Likewise.
83483         * lib/fts.c, fts_.h: Likewise.
83484         * lib/getcwd.c: Likewise.
83485         * lib/getloadavg.c: Likewise.
83486         * lib/mkstemp.c: Likewise.
83487         * lib/mountlist.c, mountlist.h: Likewise.
83488         * lib/openat.c, openat.h: Likewise.
83489         * lib/readlink-stub.c: Likewise.
83490         * lib/readutmp.c, readutmp.h: Likewise.
83491         * lib/rename.c: Likewise.
83492         * lib/rmdir.c: Likewise.
83493         * lib/same.c: Likewise.
83494         * lib/savedir.c: Likewise.
83495         * lib/stripslash.c: Likewise.
83496         * lib/tempname.c: Likewise.
83497         * lib/xreadlink.c: Likewise.
83498         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
83499         All uses changed.
83500         * lib/exclude.h: Likewise.
83501
83502         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
83503         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83504         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
83505         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83506         * lib/pathmax.h: Include <limits.h> unconditionally, since other
83507         files have been getting away with it for years (MORE/BSD 4.3
83508         is extinct now).
83509         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
83510         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83511
83512         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
83513         Define to 256, not 255, as per modern POSIX.
83514
83515 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83516
83517         Sync from coreutils.
83518         Use "file name" when talking about file names, instead of "filename"
83519         or "path", as per the GNU coding standards.
83520         * MODULES.html.sh: mkdir-p renamed from makepath.
83521         filenamecat renamed from path-concat.
83522         * modules/filenamecat: Renamed from modules/path-concat.
83523         (Files): filenamecat.h and filenamecat.c renamed from
83524         path-concat.h and path-concat.c.
83525         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83526         (Include): filenamecat.h, not path-concat.h.
83527         * modules/mkdir-p: Renamed from modules/makepath.
83528         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83529         makepath.c.
83530         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83531         (Include): mkdir-p.h, not makepath.h.
83532
83533 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83534
83535         Sync from coreutils.
83536         * m4/mkdir-p.m4: Renamed from makepath.m4.
83537         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83538         Rename files from makepath.c to mkdir-p.c, and from
83539         makepath.h to mkdir-p.h.
83540         * m4/filenamecat.m4: Renamed from path-concat.m4.
83541         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83542         Rename files from path-concat.c to filenamecat.c,
83543         and from path-concat.h to filenamecat.h.
83544         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83545         "file name" in local variables or comments.
83546         * m4/rename.m4: Likewise.
83547
83548 2005-06-01  Bruno Haible  <bruno@clisp.org>
83549
83550         * modules/csharpexec: New file.
83551         * MODULES.html.sh (C#): New section.
83552
83553 2005-06-01  Bruno Haible  <bruno@clisp.org>
83554
83555         * m4/csharp.m4: New file, from GNU gettext.
83556         * m4/csharpexec.m4: New file, from GNU gettext.
83557
83558 2005-06-01  Bruno Haible  <bruno@clisp.org>
83559
83560         * lib/csharpexec.h: New file, from GNU gettext.
83561         * lib/csharpexec.c: New file, from GNU gettext.
83562         * lib/csharpexec.sh.in: New file, from GNU gettext.
83563
83564 2005-05-31  Derek Price  <derek@ximbiot.com>
83565             Paul Eggert  <eggert@cs.ucla.edu>
83566
83567         Sync from cvs.
83568         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83569
83570 2005-05-31  Derek Price  <derek@ximbiot.com>
83571             Paul Eggert  <eggert@cs.ucla.edu>
83572
83573         Sync from cvs.
83574         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83575
83576 2005-05-29  Derek Price  <derek@ximbiot.com>
83577
83578         * config/srclist.txt (glob_.h, glob.c): Add these files.
83579
83580 2005-05-29  Derek Price  <derek@ximbiot.com>
83581
83582         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83583         * modules/glob: New file.
83584         * modules/getlogin_r: Add link to POSIX spec in description.
83585
83586 2005-05-29  Derek Price  <derek@ximbiot.com>
83587             Paul Eggert  <eggert@cs.ucla.edu>
83588
83589         * m4/glob.m4: New file.
83590
83591 2005-05-29  Derek Price  <derek@ximbiot.com>
83592             Paul Eggert  <eggert@cs.ucla.edu>
83593
83594         * lib/glob_.h, lib/glob.c: New files.
83595
83596 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83597
83598         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83599         * modules/fts-lgpl (Depends-on): Remove gettext.
83600
83601 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83602
83603         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83604         and don't require gt_INTTYPES_PRI.
83605
83606 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83607
83608         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83609
83610         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83611         the configuration hassle isn't worth it.
83612         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83613         (LONGEST_MODIFIER, PRIuMAX): Remove.
83614
83615 2005-05-27  Bruno Haible  <bruno@clisp.org>
83616
83617         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83618
83619 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83620
83621         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83622         _POSIX_PTHREAD_SEMANTICS for Solaris.
83623
83624 2005-05-25  Derek Price  <derek@ximbiot.com>
83625
83626         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83627
83628 2005-05-25  Derek Price  <derek@ximbiot.com>
83629             Paul Eggert  <eggert@cs.ucla.edu>
83630
83631         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83632         * lib/getlogin_r.c, getlogin_r.h: New files.
83633
83634 2005-05-25  Bruno Haible  <bruno@clisp.org>
83635             Derek Price  <derek@ximbiot.com>
83636
83637         * lib/getlogin_r.h: Simplify API documentation.
83638
83639 2005-05-23  Derek Price  <derek@ximbiot.com>
83640
83641         * modules/minmax (Files): Add m4/minmax.m4.
83642         (configure.ac): Add gl_MINMAX.
83643
83644 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83645
83646         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83647         so that unistd-safer.h (GPL'ed code) need not be included.
83648
83649 2005-05-22  Bruno Haible  <bruno@clisp.org>
83650
83651         * m4/minmax.m4: New file.
83652         Based on a patch by Derek Price <derek@ximbiot.com>.
83653
83654 2005-05-22  Bruno Haible  <bruno@clisp.org>
83655
83656         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83657         (INT64_MIN): Fix definition.
83658         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83659
83660         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83661         NEED_SIGNED_INT_TYPES.
83662
83663         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83664         HAVE_SYSTEM_INTTYPES.
83665
83666 2005-05-22  Bruno Haible  <bruno@clisp.org>
83667
83668         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83669         Also include <sys/param.h> if it defines MIN, MAX.
83670         Based on a patch by Derek Price <derek@ximbiot.com>.
83671
83672 2005-05-21  Jim Meyering  <jim@meyering.net>
83673
83674         * modules/fts (Files): Add m4/inttypes-pri.m4.
83675         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83676
83677 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83678
83679         New fts module.
83680         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83681         (setup_dir, free_dir): New functions.
83682         (enter_dir, leave_dir): Define trivial
83683         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83684         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83685         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83686         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83687         Move to fts-cycle.c.
83688         (fts_open): Use setup_dir.
83689         (fts_close): Use free_dir.
83690         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83691         This adds a label and some gotos, but the alternatives were messier.
83692         Check for memory allocation failure when entering a dir.
83693         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83694         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83695         (FTS): New member fts_cycle, that is a union that contains the
83696         old active_dir_ht and cycle_state.  All uses changed to mention
83697         fts_cycle.ht and fts_cycle.state.
83698         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83699         fts.c, with the following changes:
83700         (setup_dir, free_dir): New functions.
83701         (enter_dir): Now returns bool.  Return true if successful, false
83702         if memory exhausted.  All callers changed.
83703         Do not bother partly cleaning up on
83704         memory allocation failure; that is free_dir's job.
83705         However, free ad if hash_insert fails, to avoid memory leak.
83706         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83707         fts->fts_options to see which union member to use.
83708
83709 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83710
83711         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83712         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83713
83714 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83715
83716         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83717
83718 2005-05-20  Jim Meyering  <jim@meyering.net>
83719
83720         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83721         Now a macro, to pacify GCC.
83722
83723 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83724
83725         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83726         of -1.
83727
83728 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83729
83730         * lib/chown.c (rpl_chown): Return -1 on failure.
83731
83732 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83733
83734         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83735         Don't check for stddef.h.
83736         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83737         don't use its results.
83738         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83739         since we include them unconditionally.  Don't require
83740         AM_STDBOOL_H, since stdbool is a prerequisite.
83741         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83742         since we assume C89 or better.
83743         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83744         as we don't use their results.
83745         Don't check for fchdir, memmove, memset, strrchr, as we use
83746         them unconditionally.
83747         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83748         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83749
83750 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83751
83752         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83753         Include <stddef.h> unconditionally, since we assume C89 now.
83754         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83755         * lib/fts.c: Include fts_.h first, to check interface.
83756         Do not include intprops.h; no longer needed.
83757         Include cycle-check.h and hash.h, since fts_.h no longer does.
83758         Remove unnecessary casts of closedir to void.
83759         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83760         decide whether to decrement nlinks.
83761         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83762         (FTS): Use struct hash_table * instead of Hash_table, so that
83763         we no longer need to include hash.h here.
83764
83765 2005-05-18  Jim Meyering  <jim@meyering.net>
83766
83767         * modules/dirfd (License): Change to LGPL.  Most of the code
83768         is already in the public domain.
83769
83770 2005-05-18  Jim Meyering  <jim@meyering.net>
83771
83772         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83773         Reported by Yoann Vandoorselaere.
83774
83775 2005-05-17  Jim Meyering  <jim@meyering.net>
83776
83777         * m4/fts.m4: New file, from coreutils.
83778
83779 2005-05-17  Jim Meyering  <jim@meyering.net>
83780
83781         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83782
83783 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83784
83785         Sync from coreutils.
83786         * m4/unlinkdir.m4: New file.
83787
83788 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83789
83790         Sync from coreutils.
83791         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83792         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83793         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83794         White space changes only.
83795         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83796         special.
83797         * lib/yesno.c: Include getline.h, not ctype.h.
83798         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83799         Use getline to remove arbitrary restriction on response length.
83800
83801 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83802
83803         * config/srclist-update: Spell out "Street" in FSF postal
83804         mail address; this is the style the FSF seems to prefer.
83805
83806         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83807         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83808         this updates FSF postal mail address.
83809
83810         Sync from coreutils.
83811         * modules/unlinkdir: New file.
83812         * modules/yesno (Depends-on): Add getline.
83813         * MODULES.html.sh (File system functions): Add unlinkdir.
83814
83815 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83816
83817         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83818         lib/strsep.h:
83819         Change the initial comment to refer to GPL, not LGPL.
83820         gnulib-tool will change it to LGPL as needed.
83821
83822         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83823         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83824         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83825         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83826         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83827         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83828         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83829         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83830         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83831         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83832         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83833         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83834         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83835         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83836         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83837         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83838         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83839         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83840         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83841         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83842         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83843         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83844         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83845         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83846         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83847         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83848         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83849         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83850         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83851         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83852         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83853         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83854         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83855         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83856         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83857         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83858         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83859         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83860         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83861         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83862         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83863         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83864         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83865         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83866         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83867         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83868         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83869         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83870         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83871         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83872         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83873         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83874         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83875         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83876         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83877         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83878         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83879         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83880         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83881         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83882         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83883         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83884         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83885         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83886         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83887         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83888         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83889         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83890         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83891         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83892         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83893         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83894         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83895         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83896         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83897         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83898         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83899         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83900         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83901         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83902         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83903         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83904         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83905         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83906         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83907         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83908         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83909         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83910         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83911         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83912         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83913         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83914         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83915         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83916         lib/yesno.c, lib/yesno.h:
83917         Update FSF postal mail address.
83918
83919 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83920
83921         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83922         tests/test-memmem.c, tests/test-stpncpy.c:
83923         Update FSF postal mail address.
83924
83925 2005-05-13  Bruno Haible  <bruno@clisp.org>
83926
83927         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83928         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83929         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83930         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83931         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83932         Add support for 64-bit integers in the MSVC compiler.
83933
83934 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83935
83936         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83937
83938 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83939
83940         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83941
83942 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83943
83944         * doc/getdate.texi (General date syntax): Don't say that date
83945         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83946         Problem reported by Nic Ferrier.
83947
83948 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83949
83950         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83951         specified in ai_socktype. Fix invalid ai_protocol
83952         check. ai_protocol is usually set to 0 or depending on
83953         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83954         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83955         ai_socktype / ai_protocol in the returned addrinfo structure.
83956
83957 2005-05-10  Simon Josefsson  <jas@extundo.com>
83958
83959         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83960         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83961
83962 2005-05-10  Karl Berry  <karl@gnu.org>
83963
83964         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83965         (from http://www.gnu.org/licenses).
83966         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83967         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83968         fdl.texi suffices.
83969
83970 2005-05-10  Karl Berry  <karl@gnu.org>
83971
83972         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83973         (COPYING.DOC): remove.
83974
83975         * config/srclist-update: new FSF address.
83976
83977 2005-05-10  Derek Price  <derek@ximbiot.com>
83978
83979         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83980         possible.
83981
83982 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83983             Bruno Haible  <bruno@clisp.org>
83984
83985         * modules/inet_ntop: New file.
83986         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83987         inet_ntop.
83988
83989 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83990             Bruno Haible  <bruno@clisp.org>
83991
83992         * m4/inet_ntop.m4: New file.
83993
83994 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83995             Bruno Haible  <bruno@clisp.org>
83996
83997         * lib/inet_ntop.h: New file.
83998         * lib/inet_ntop.c: New file, from glibc with modifications.
83999
84000 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
84001
84002         * modules/time_r (License): Change to LGPL.
84003         * modules/extensions (License): Change to LGPL.  Actually,
84004         the license is more permissive than that, but currently gnulib-tool
84005         doesn't know how to handle more-permissive licenses.
84006
84007         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
84008         Problem reported by Dave Love.
84009
84010 2005-05-08  Jim Meyering  <jim@meyering.net>
84011
84012         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
84013         blank.
84014
84015 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84016
84017         * modules/argmatch (Depends-on): Add stdbool.
84018         * modules/backupfile (Depends-on): Likewise.
84019         * modules/chdir-long (Depends-on): Likewise.
84020         * modules/closeout (Depends-on): Likewise.
84021         * modules/cycle-check (Depends-on): Likewise.
84022         * modules/dirname (Depends-on): Likewise.
84023         * modules/fnmatch (Depends-on): Likewise.
84024         * modules/fsusage (Depends-on): Likewise.
84025         * modules/fwriteerror (Depends-on): Likewise.
84026         * modules/getcwd (Depends-on): Likewise.
84027         * modules/getloadavg (Depends-on): Likewise.
84028         * modules/hard-locale (Depends-on): Likewise.
84029         * modules/makepath (Depends-on): Likewise.
84030         * modules/mountlist (Depends-on): Likewise.
84031         * modules/nanosleep (Depends-on): Likewise.
84032         * modules/posixtm (Depends-on): Likewise.
84033         * modules/quotearg (Depends-on): Likewise.
84034         * modules/readtokens (Depends-on): Likewise.
84035         * modules/readtokens0 (Depends-on): Likewise.
84036         * modules/readutmp (Depends-on): Likewise.
84037         * modules/save-cwd (Depends-on): Likewise.
84038         * modules/strftime (Depends-on): Likewise.
84039         * modules/userspec (Depends-on): Likewise.
84040         * modules/utimecmp (Depends-on): Likewise.
84041         * modules/xgetcwd (Depends-on): Likewise.
84042         * modules/xnanosleep (Depends-on): Likewise.
84043         * modules/xstrtod (Depends-on): Likewise.
84044         * modules/yesno (Depends-on): Likewise.
84045
84046 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84047
84048         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84049         needless checks.
84050
84051 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84052
84053         Merge from coreutils.  Among other things,
84054         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84055         * lib/fd-safer.c: New file.
84056         * lib/fcntl-safer.h, open-safer.c: Remove.
84057         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84058         * lib/dup-safer.c: Include unistd-safer.h first.
84059         Don't include errno.h.
84060         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84061         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84062         * lib/file-type.c: Rely on file-type.h change.
84063         * lib/getloadavg.c: Include unistd-safer.h.
84064         (getloadavg): Use safer open.
84065         * lib/getusershell.c: Include "stdio-safer.h".
84066         (getusershell): Use safer fopen.
84067         * lib/long-options.c (long_options): Use NULL rather than 0.
84068         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84069         'free'.
84070         * lib/modechange.c: Likewise.
84071         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84072         (MODE_DONE): New constant.
84073         (struct mode_change): Remove 'next' member.
84074         (make_node_op_equals): New function; like the old one of the
84075         same name, except it allocates an array.
84076         (mode_compile, mode_create_from_ref): Use it.
84077         (mode_compile): Allocate result as an array, not a linked list.
84078         Parse octal string ourself, so that we catch mistakes like "+0".
84079         (mode_adjust): Arg is an array, not a linked list.
84080         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84081         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84082         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84083         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84084         Remove.  This is now stat-macros.h's job.
84085         (talloc): Remove.  All callers replaced by xalloc, so that
84086         our invokers don't have to worry about reporting memory failures.
84087         (make_node_op_equals): Remove.
84088         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84089         New constants.
84090         (struct mode_change): Moved here from modechange.h.
84091         (mode_append_entry): Remove.
84092         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84093         apps to have incorrect behavior.  Use simpler algorithm for head
84094         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84095         Detect more invalid usages rather than having somewhat-random behavior.
84096         Don't insert an "a=" action, as that leads to incorrect behavior.
84097         (mode_compile, mode_create_from_ref): Return NULL on error instead
84098         of an enum, since now there's only one way to have an error.  All
84099         callers changed.
84100         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84101         at the correct time.  Simplify calculation of "+u" and its ilk.
84102         Don't mishandle "+X".
84103         (mode_free): Remove "register" and localize decls.
84104         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84105         (struct mode_change): Move to modechange.c; callers don't
84106         need to see this stuff.
84107         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84108         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84109         (mode_change, mode_adjust): Reflect the new signatures noted above.
84110         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84111         that might redefine system include files.
84112         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84113         (my_usleep): Use NULL rather than (void *) 0.
84114         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84115         Use siginterrupt to specify that system calls should be interrupted.
84116         (rpl_nanosleep): Move initialization of suspended closer to call of
84117         my_usleep.
84118         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84119         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84120         (desirable_utmp_entry): New function.
84121         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84122         using x2nrealloc, to simplify logic.
84123         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84124         size calculation.  Do not assume utmp file is a regular file.
84125         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84126         (READ_UTMP_CHECK_PIDS): New constant.
84127         * lib/save-cwd.c: Include unistd-safer.h.
84128         (save_cwd): Use fd_safer.
84129         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84130         [!_LIBC] Include "stat-macros.h" instead.
84131         * lib/unistd-safer.h (fd_safer): New decl.
84132
84133 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84134
84135         * modules/getloadavg (Depends-on): Add unistd-safer.
84136         * modules/getusershell (Depends-on): Add stdio-safer.
84137         * modules/lstat (Depends-on): Remove xalloc.
84138         * modules/mkstemp (Depends-on): Add stat-macros.
84139         * modules/modechange (Depends-on): Remove xstrtol.
84140         Add stat-macros, xalloc.
84141         * modules/save-cwd (Depends-on): Add unistd-safer.
84142         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84143         * modules/unistd-safer (Files): Add lib/fd-safer.c
84144         (Makefile.am): Remove lib_SOURCES.
84145
84146         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84147         Remove fcntl-safer; unistd-safer supersedes it.
84148
84149 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84150
84151         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84152         AC_HEADER_STAT.
84153         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84154         (gl_PREREQ_CHOWN): Remove.
84155         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84156         it.  Don't require AC_HEADER_STAT.
84157         (gl_PREREQ_LSTAT): Remove.
84158         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84159         Don't require AC_HEADER_STAT.
84160         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84161         (gl_PREREQ_RMDIR): Remove.
84162         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84163         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84164         the stat-macros module a prerequisite.
84165         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84166         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84167         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84168         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84169         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84170         variable names.
84171         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84172         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84173         variable prefixes.
84174         * m4/fcntl-safer.m4: Remove.
84175         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84176         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84177         Invoke gl_PREREQ_FD_SAFER.
84178         (gl_PREREQ_FD_SAFER): New macro.
84179         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84180         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84181         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84182         Remove duplicate call to AC_LIBOBJ(readutmp).
84183         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84184
84185         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84186         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84187
84188 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84189
84190         * MODULES.html.sh (Misc): Add byteswap.
84191
84192 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84193
84194         * modules/getcwd (Depends-on): Add extensions.
84195         * modules/openat (Depends-on): Likewise.
84196
84197 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84198
84199         * modules/byteswap: New file.
84200
84201 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84202
84203         * m4/byteswap.m4: New file.
84204
84205 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84206
84207         * lib/byteswap_.h: New file.
84208
84209 2005-04-25  Karl Berry  <karl@gnu.org>
84210
84211         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84212
84213 2005-04-25  Albert Chin  <china@thewrittenword.com>
84214
84215         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84216         Toolkit C bug.
84217
84218 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84219
84220         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84221         (func_ln_if_changed): Remove forcibly for no error message
84222         in case file does not exist.
84223
84224 2005-04-19  Simon Josefsson  <jas@extundo.com>
84225
84226         * gnulib-tool (Options): Make --symlink mean --symbolic.
84227
84228 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84229
84230         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84231
84232 2005-04-16  Simon Josefsson  <jas@extundo.com>
84233
84234         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84235
84236 2005-04-15  Simon Josefsson  <jas@extundo.com>
84237
84238         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84239
84240 2005-04-15  Simon Josefsson  <jas@extundo.com>
84241
84242         * gnulib-tool: Rename --symlink to --symbolic.
84243
84244 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84245
84246         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84247         symbolic links to files instead of copying/moving.  Add --aux-dir,
84248         specifying directory relative --dir where auxiliary build tools
84249         are placed.
84250
84251 2005-04-14  Bruno Haible  <bruno@clisp.org>
84252
84253         * modules/allocsa (License): Change to LGPL.
84254         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84255
84256 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84257
84258         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84259         that "UTC +1 second" continues to work.  Problem reported
84260         by Dmitry V. Levin.
84261         (relunit_snumber): New rule.
84262         (relunit): Use it.
84263
84264 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84265
84266         * lib/getdate.y (universal_time_zone_table): New constant.
84267         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84268         universal_time_zone_table.
84269         (lookup_zone): Prefer universal_time_zone_table to
84270         local_time_zone_table, so that "GMT" time stamps are allowed in
84271         London during the summer.  Problem reported by Ian Abbott.
84272
84273 2005-04-12  Jim Meyering  <jim@meyering.net>
84274
84275         * lib/human.c (humblock): Set *options even when returning due to
84276         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84277         warning from gcc-4.
84278
84279 2005-04-09  Jim Meyering  <jim@meyering.net>
84280
84281         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84282         -Wuninitialized: initialize tm0.tm_year.
84283
84284 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84285
84286         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84287         count, since there's no maximum.  All uses changed.
84288         Add member dsts_seen.
84289         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
84290         not being INT_MAX.
84291         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
84292         Use pc_rels_seen to decide whether a date is absolute.
84293
84294         * lib/getdate.y (number): Don't overwrite year.
84295         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
84296         check.
84297
84298 2005-04-02  Simon Josefsson  <jas@extundo.com>
84299
84300         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84301         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84302
84303 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84304
84305         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84306         where no absolute path name can be longer than PATH_MAX.
84307
84308 2005-03-27  Jim Meyering  <jim@meyering.net>
84309
84310         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84311
84312 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84313
84314         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84315         "one's complement" -> "ones' complement" in comment, as per Knuth.
84316         "value of type" -> "type or expression" in comment.
84317         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84318
84319 2005-03-26  Jim Meyering  <jim@meyering.net>
84320
84321         Comment nits.
84322         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84323         Correct typos: s/or/of/.
84324
84325 2005-03-26  Jim Meyering  <jim@meyering.net>
84326
84327         * modules/check-include-files: Move to ../ and rename to...
84328         * check-module: ...this.
84329
84330 2005-03-25  Jim Meyering  <jim@meyering.net>
84331
84332         * modules/xvasprintf (Files): Add xalloc.h.
84333
84334 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84335
84336         * modules/gettext (Files): config/config.rpath ->
84337         build-aux/config.rpath
84338         * modules/iconv (Files): Likewise.
84339         Problem reported by Oskar Liljeblad.
84340
84341 2005-03-23  Jim Meyering  <jim@meyering.net>
84342
84343         * modules/check-include-files: New script to check for
84344         missing dependencies, multiple includes, etc.
84345
84346         * modules/c-strtold (Depends-on): Add xalloc.
84347         * modules/c-strtod (Depends-on): Add xalloc.
84348         * modules/hash (Depends-on): Add xalloc.
84349         (Files): Remove lib/xalloc.h.
84350
84351         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84352         * modules/userspec (Files): Add lib/inttostr.h.
84353
84354 2005-03-23  Jim Meyering  <jim@meyering.net>
84355
84356         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84357
84358 2005-03-22  Jim Meyering  <jim@meyering.net>
84359
84360         * modules/stat-macros: New module.
84361         * modules/canonicalize, modules/euidaccess, modules/file-type,
84362         * modules/filemode, modules/lchown, modules/makepath,
84363         * modules/rmdir, modules/stat: Depend on new stat-macros module
84364         rather than listing lib/stat-macros.h manually.
84365         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
84366
84367 2005-03-22  Jim Meyering  <jim@meyering.net>
84368
84369         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
84370
84371 2005-03-22  Bruno Haible  <bruno@clisp.org>
84372
84373         * config/srclist.txt: Replace target directory 'config' with
84374         'build-aux'.
84375         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
84376         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
84377         ../build-aux/.
84378
84379 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
84380
84381         * modules/chdir-long (Depends-on): Add mempcpy.
84382
84383         * modules/acl, modules/backupfile, modules/c-strtod,
84384         modules/c-strtold, modules/canon-host, modules/canonicalize,
84385         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
84386         modules/exclude, modules/exitfail, modules/file-type,
84387         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
84388         modules/getdate, modules/getline, modules/getpagesize,
84389         modules/getpass, modules/getugroups, modules/group-member,
84390         modules/hard-locale, modules/hash, modules/human, modules/idcache,
84391         modules/inttostr, modules/long-options, modules/makepath,
84392         modules/md5, modules/memcasecmp, modules/memcoll,
84393         modules/modechange, modules/mountlist, modules/path-concat,
84394         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
84395         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
84396         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
84397         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
84398         modules/strftime, modules/strndup, modules/strverscmp,
84399         modules/timespec, modules/unlocked-io, modules/userspec,
84400         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
84401         modules/yesno:
84402         Remove lib_SOURCES line from Makefile.am section, as this is now
84403         done automatically by the corresponding Autoconf macro.
84404
84405 2005-03-21  Jim Meyering  <jim@meyering.net>
84406
84407         Changes imported from coreutils.
84408
84409         * lib/cycle-check.c: Don't include xalloc.h.
84410
84411         * lib/path-concat.c: Don't include assert.h.
84412         (path_concat): Remove assertion that would have triggered
84413         for ABASE starting with more than one slash.
84414         Reported by Andreas Schwab.
84415
84416         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
84417         properly when ABASE is an absolute file name.
84418         Correct the description of this function.
84419         Include <assert.h>.
84420         Add an assertion and a test driver.
84421         This fixes a bug introduced on 2004-07-02.
84422         Andreas Schwab reported the resulting failure of cp --parents:
84423         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84424
84425 2005-03-21  Jim Meyering  <jim@meyering.net>
84426
84427         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84428         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84429
84430 2005-03-21  Jim Meyering  <jim@meyering.net>
84431         and  Paul Eggert  <eggert@cs.ucla.edu>
84432
84433         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84434         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84435         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84436         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84437         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84438         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84439         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84440         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
84441         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
84442         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
84443         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
84444         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
84445         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
84446         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
84447         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
84448         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
84449         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
84450         for these modules.
84451
84452 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
84453
84454         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
84455         (which shouldn't happen), generate nothing instead of returning 0
84456         immediately, so that nstrftime (NULL, ...) doesn't return 0.
84457
84458 2005-03-16  Bruno Haible  <bruno@clisp.org>
84459
84460         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
84461         HAVE_LONGLONG_64BIT.
84462
84463 2005-03-16  Bruno Haible  <bruno@clisp.org>
84464
84465         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84466         HAVE_LONGLONG_64BIT.
84467
84468 2005-03-16  Bruno Haible  <bruno@clisp.org>
84469
84470         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84471         HAVE_LONGLONG_64BIT.
84472
84473 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84474
84475         * lib/strftime.c (my_strftime): Prepend space to format so that we can
84476         reliably distinguish strftime failure from empty output on POSIX
84477         hosts.
84478
84479 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84480
84481         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
84482         (iconv_string): Don't guess a size-zero buffer, as that might cause
84483         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
84484         result would be 'too large', where 'too large' is (heuristically)
84485         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
84486         overflow concerns.  This will prevent some unwanted malloc failures
84487         when the inputs are very large.
84488
84489 2005-03-15  Karl Berry  <karl@gnu.org>
84490
84491         * config/srclist.txt (config.rpath): from gettext.
84492         * config/config.rpath: update.
84493
84494 2005-03-15  Bruno Haible  <bruno@clisp.org>
84495
84496         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
84497         to 'negate'.
84498
84499         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
84500         variable.
84501
84502         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
84503         results.
84504
84505 2005-03-14  Simon Josefsson  <jas@extundo.com>
84506
84507         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
84508         <fx@gnu.org>.
84509
84510 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
84511
84512         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
84513         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
84514         intprops.h.
84515         * lib/strtol.c: Likewise.
84516
84517 2005-03-14  Jim Meyering  <jim@meyering.net>
84518
84519         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84520         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84521         to be nonzero so that we (and caller) can detect the difference
84522         between a valid zero-length expansion and an error return, even
84523         when the underlying strftime fails before writing anything into
84524         that location.
84525
84526 2005-03-14  Bruno Haible  <bruno@clisp.org>
84527
84528         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84529         Update from GNU gettext 0.14.3.
84530
84531 2005-03-10  Jim Meyering  <jim@meyering.net>
84532
84533         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84534
84535 2005-03-10  Jim Meyering  <jim@meyering.net>
84536
84537         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84538         so that this module works on systems without fchdir.
84539
84540 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84541
84542         Factor int-properties macros into a single file, except for
84543         glibc-related files.
84544         * lib/intprops.h: New file.
84545         * lib/getloadavg.c: Include it instead of limits.h.
84546         (INT_STRLEN_BOUND): Remove.
84547         * lib/human.c: Include intprops.h.
84548         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84549         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84550         302/1000.
84551         * lib/inttostr.h: Include intprops.h instead of limits.h.
84552         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84553         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84554         for consistency with intprops.h.
84555         (time_t_is_integer, twos_complement_arithmetic): Use them.
84556         * lib/sig2str.h: Include <signal.h>, intprops.h.
84557         (INT_STRLEN_BOUND): Remove.
84558         * lib/strftime.c (TYPE_SIGNED): Remove.
84559         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84560         * lib/strtol.c: Adjust comments to match intprops.h.
84561         * lib/userspec.c: Include intprops.h.
84562         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84563         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84564         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84565         instead of rolling our own expressions.
84566         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84567
84568         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84569         instead of int.
84570         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84571         the right thing even if adding 1900 would overflow.  Similarly
84572         for tm_mon + 1 and tm_yday + 1.
84573         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84574         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84575         (DO_SIGNED_NUMBER): New macro.
84576         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84577
84578 2005-03-07  Bruno Haible  <bruno@clisp.org>
84579
84580         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84581
84582 2005-03-07  Bruno Haible  <bruno@clisp.org>
84583
84584         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84585
84586 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84587
84588         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84589         (func_import): Only replace files via --import when they have actually
84590         changed.
84591
84592 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84593
84594         * m4/mmap-anon.m4: New file.
84595         * m4/pagealign_alloc.m4: New file.
84596
84597 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84598             Bruno Haible  <bruno@clisp.org>
84599
84600         * modules/pagealign_alloc: New file.
84601         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84602
84603 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84604             Bruno Haible  <bruno@clisp.org>
84605
84606         * lib/pagealign_alloc.h: New file.
84607         * lib/pagealign_alloc.c: New file.
84608
84609 2005-03-03  Bruno Haible  <bruno@clisp.org>
84610
84611         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84612         Use an all-permissive copyright notice, recommended by RMS.
84613
84614 2005-03-02  Bruno Haible  <bruno@clisp.org>
84615
84616         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84617         of AIX, the replacement has to be done only after <string.h> is
84618         included, therefore not in config.h. stpncpy.h does the replacement,
84619         and stpncpy.c uses it.
84620
84621 2005-03-02  Bruno Haible  <bruno@clisp.org>
84622
84623         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84624         stpncpy.c uses it.
84625
84626 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84627
84628         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84629         The workaround isn't strictly needed for POSIX conformance, and
84630         it's too much of a pain to configure and maintain.  We'll ask
84631         people to fix their kernels instead.
84632         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84633         (NANOSLEEP_BUG_WORKAROUND): Remove.
84634         (xnanosleep): Remove the workaround.
84635
84636 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84637
84638         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84639         Reported by Derek Price.
84640         (Include): Add "timespec.h".
84641
84642         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84643
84644 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84645
84646         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84647         to detect nanosleep bug.
84648
84649 2005-03-01  Bruno Haible  <bruno@clisp.org>
84650
84651         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84652
84653 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84654
84655         * modules/gethrxtime: New file.
84656         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84657         (Depends-on): Add gethrxtime.
84658         (configure.ac): Add gl_XNANOSLEEP.
84659         (Makefile.am): Remove lib_SOURCES line.
84660
84661 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84662
84663         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84664         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84665
84666 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84667
84668         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84669         * lib/timespec.h (gettime): Return void, since it always
84670         succeeds now.  All uses changed.
84671         * lib/gettime.c (gettime): Likewise.
84672         [HAVE_NANOTIME]: Prefer nanotime.
84673         Assume gettimeofday succeeds, as POSIX requires.
84674         Assime time () succeeds, since other code already does.
84675         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84676         (timespec_subtract): Remove.
84677         (NANOSLEEP_BUG_WORKAROUND): New constant.
84678         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84679         things considerably.  Use it only on GNU/Linux hosts, since the
84680         workaround shouldn't be needed elsewhere.
84681
84682 2005-02-24  Bruno Haible  <bruno@clisp.org>
84683
84684         * modules/gettext (Files): Add m4/glibc2.m4.
84685
84686 2005-02-24  Bruno Haible  <bruno@clisp.org>
84687
84688         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84689         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84690         * m4/progtest.m4:
84691         Update from GNU gettext 0.14.2.
84692         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84693
84694 2005-02-24  Bruno Haible  <bruno@clisp.org>
84695
84696         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84697         * lib/config.charset: Update from GNU gettext 0.14.2.
84698
84699 2005-02-24  Bruno Haible  <bruno@clisp.org>
84700
84701         * lib/gettext.h: Update from GNU gettext 0.14.2.
84702
84703 2005-02-23  Simon Josefsson  <jas@extundo.com>
84704
84705         * m4/iconvme.m4: New file.
84706
84707 2005-02-23  Jim Meyering  <jim@meyering.net>
84708
84709         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84710         change.
84711         Thanks to Bruno Haible for catching it.
84712
84713 2005-02-22  Simon Josefsson  <jas@extundo.com>
84714
84715         * modules/iconvme: New file.
84716
84717         * MODULES.html.sh: Add iconvme.
84718
84719 2005-02-22  Simon Josefsson  <jas@extundo.com>
84720
84721         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84722
84723 2005-02-22  Simon Josefsson  <jas@extundo.com>
84724
84725         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84726
84727 2005-02-22  Jim Meyering  <jim@meyering.net>
84728
84729         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84730         s/ifndef/ifdef/.
84731
84732 2005-02-20  Neil Conway  <neilc@samurai.com>
84733
84734         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84735         returned by OSX/Darwin if the specified buffer is not large
84736         enough for the hostname.
84737
84738 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84739
84740         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84741         pass it to _help, otherwise the latter coredumps trying to
84742         dereference state.root_argp.
84743
84744 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84745
84746         * modules/chdir-long (Depends-on): Add memrchr.
84747         * modules/memrchr (Files): Add lib/memrchr.h.
84748         (Include): "memrchr.h".
84749
84750 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84751
84752         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84753
84754 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84755
84756         * lib/memrchr.h: New file.
84757         * lib/chdir-long.c: Include it.
84758         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84759         Don't bother including stddef.h.
84760
84761 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84762
84763         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84764         inclusion.
84765         Include <sys/types.h>, for dev_t.
84766         (ME_DUMMY, ME_REMOTE): Move from here....
84767         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84768         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84769         Dmitry V. Levin.
84770         Include mountlist.h first, to test the interface.
84771
84772 2005-01-29  Bruno Haible  <bruno@clisp.org>
84773
84774         * lib/progname.c (program_name): Initialize.
84775         Needed when linking statically on MacOS X.
84776
84777 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84778
84779         Sync from coreutils.
84780         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84781         (Depends-on): Add c-strtod.
84782         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84783
84784 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84785
84786         Sync from coreutils.
84787         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84788
84789         Remove files that are specific to coreutils.
84790         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84791
84792 2005-01-28  Bruno Haible  <bruno@clisp.org>
84793
84794         * modules/javacomp: New file.
84795         * MODULES.html.sh (Java): Add javacomp.
84796
84797 2005-01-28  Bruno Haible  <bruno@clisp.org>
84798
84799         * m4/javacomp.m4: New file, from GNU gettext.
84800
84801 2005-01-28  Bruno Haible  <bruno@clisp.org>
84802
84803         * lib/javacomp.sh.in: New file, from GNU gettext.
84804         * lib/javacomp.h: New file, from GNU gettext.
84805         * lib/javacomp.c: New file, from GNU gettext.
84806
84807 2005-01-26  Simon Josefsson  <jas@extundo.com>
84808
84809         * lib/gai_strerror.c: Use GPL in header.
84810
84811 2005-01-26  Bruno Haible  <bruno@clisp.org>
84812
84813         * modules/javaexec: New file.
84814         * MODULES.html.sh (Java): Add javaexec.
84815
84816 2005-01-26  Bruno Haible  <bruno@clisp.org>
84817
84818         * m4/javaexec.m4: New file, from GNU gettext.
84819
84820 2005-01-26  Bruno Haible  <bruno@clisp.org>
84821
84822         * lib/javaexec.sh.in: New file, from GNU gettext.
84823         * lib/javaexec.h: New file, from GNU gettext.
84824         * lib/javaexec.c: New file, from GNU gettext.
84825
84826 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84827
84828         * modules/lchown (Depends-on): Remove lchown.h
84829
84830 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84831
84832         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84833         must be defined if the header file was not found, in order
84834         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84835
84836 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84837
84838         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84839         initializers for struct pentry_state.
84840         (__argp_error): Check return value of __asprintf
84841         (__argp_failure): Translate error message
84842
84843         * lib/argp-parse.c: Removed braces around the expansion of N_()
84844
84845 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84846
84847         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84848         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84849         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84850         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84851         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84852         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84853         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84854         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84855         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84856         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84857         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84858         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84859         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84860         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84861         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84862         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84863         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84864         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84865         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84866         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84867         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84868         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84869         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84870         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84871         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84872         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84873         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84874         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84875         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84876         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84877         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84878         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84879         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84880         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84881         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84882         Use an all-permissive copyright notice, recommended by RMS.
84883
84884 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84885
84886         * modules/chdir-long (Depends-on): Remove mempcpy.
84887
84888 2005-01-21  Jim Meyering  <jim@meyering.net>
84889
84890         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84891         same value as for Solaris 9.
84892
84893         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84894         component length.  This included changing the parameter to be
84895         of type `char *' rather than `char const *'.
84896         * lib/chdir-long.h (chdir_long): Update prototype.
84897
84898         * lib/openat.c (fdopendir, fstatat): New functions.
84899         * lib/openat.h: Include headers required for use of DIR and struct
84900         stat.
84901         [AT_SYMLINK_NOFOLLOW]: Define.
84902         (fdopendir, fstatat): Add prototypes.
84903
84904 2005-01-21  Bruno Haible  <bruno@clisp.org>
84905
84906         * modules/classpath: New file.
84907         * MODULES.html.sh (Java): Add classpath.
84908
84909 2005-01-21  Bruno Haible  <bruno@clisp.org>
84910
84911         * lib/classpath.h: New file, from GNU gettext.
84912         * lib/classpath.c: New file, from GNU gettext.
84913
84914 2005-01-20  Simon Josefsson  <jas@extundo.com>
84915
84916         * modules/version-etc-fsf: New file.
84917
84918 2005-01-20  Simon Josefsson  <jas@extundo.com>
84919
84920         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84921         * lib/version-etc.c: Remove version_etc_copyright.
84922         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84923         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84924
84925 2005-01-20  Simon Josefsson  <jas@extundo.com>
84926
84927         * lib/base64.h (isbase64): Add.
84928
84929         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84930         using a unsigned prototype, don't inline.
84931         (base64_decode): Use it.
84932
84933 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84934
84935         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84936         it.
84937
84938 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84939
84940         * lib/save-cwd.c (save_cwd): Remove code to support the case
84941         where fchdir is missing or flaky.
84942
84943 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84944
84945         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84946
84947 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84948
84949         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84950         AC_LIBSOURCES now does this.
84951         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84952         with new ullong_max module.
84953
84954 2005-01-19  Bruno Haible  <bruno@clisp.org>
84955
84956         * modules/sh-quote: New file.
84957         * MODULES.html.sh (Executing programs): Add sh-quote.
84958
84959 2005-01-19  Bruno Haible  <bruno@clisp.org>
84960
84961         * lib/sh-quote.h: New file, from GNU gettext.
84962         * lib/sh-quote.c: New file, from GNU gettext.
84963
84964 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84965
84966         Merge from coreutils.
84967         * m4/ullong_max.m4: New file.
84968         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84969         (gl_MACROS): Assume localeconv exists.
84970
84971 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84972
84973         Merge changes from coreutils, as described below in several
84974         changelogs dated today.
84975
84976         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84977         (O_DIRECTORY): Remove; not needed here, since "." must be
84978         a directory.  All uses removed.
84979         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84980         universal on Suns, and we also need to test for IRIX.
84981         Revamp code to use 'if' rather than '#if'.
84982         Avoid unnecessary comparison of cwd->desc to 0.
84983
84984         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84985         for known valid error numbers rather than observed invalid ones.
84986
84987 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84988
84989         * modules/ullong_max: New file.
84990
84991         * modules/chdir-long, modules/openat: New files.
84992         * modules/save-cwd (Depends-on): Depend on chdir-long.
84993         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84994
84995 2005-01-18  Jim Meyering  <jim@meyering.net>
84996
84997         Merge from coreutils.
84998         * m4/chdir-long.m4, m4/openat.m4: New files.
84999         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
85000         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
85001         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
85002         is sane and DOES follow symlinks.  Besides, testing 20 different
85003         systems found no broken chown implementations.
85004         Prompted by a change in rsync's copy of this macro.
85005         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
85006
85007         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
85008
85009         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
85010         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
85011         NULL-means-set-to-current-time semantics.
85012         Remove temporary file immediately, rather than waiting
85013         for configure's at-exit trap code to do it.
85014
85015 2005-01-18  Jim Meyering  <jim@meyering.net>
85016
85017         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85018
85019         * lib/utimens.c (futimens): Account for the fact that futimes
85020         can also fail with errno == ENOSYS or errno == ENOENT.
85021         Patch from Dmitry V. Levin.
85022
85023         Change the name of the robust chdir function from chdir to chdir_long.
85024         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
85025         (restore_cwd): Use chdir_long, not chdir.
85026         * lib/chdir-long.c: Renamed from chdir.c.
85027         * lib/chdir-long.h: Renamed from chdir.h.
85028         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
85029         Hurd.
85030
85031 2005-01-18  Bruno Haible  <bruno@clisp.org>
85032
85033         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
85034         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85035         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85036         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85037         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85038         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85039         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85040         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85041         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85042         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85043         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85044         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85045         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85046         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85047         Use an all-permissive copyright notice, recommended by RMS.
85048
85049 2005-01-18  Bob Proulx  <bob@proulx.com>
85050
85051         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85052         simplify offsetof() macro construct to avoid compile failure with
85053         native HP-UX 11.0 ANSI C compiler.
85054
85055 2005-01-17  Bruno Haible  <bruno@clisp.org>
85056
85057         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85058         redundant because stpncpy.m4 takes care of it.
85059
85060 2005-01-17  Bruno Haible  <bruno@clisp.org>
85061
85062         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85063
85064 2005-01-17  Bruno Haible  <bruno@clisp.org>
85065
85066         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85067         used.
85068
85069 2005-01-17  Bruno Haible  <bruno@clisp.org>
85070
85071         * lib/fwriteerror.h (fwriteerror): Change specification to include
85072         fclose.
85073         * lib/fwriteerror.c: Include <stdbool.h>.
85074         (fwriteerror): At the end, close the file stream. Record whether
85075         stdout was already closed.
85076
85077 2005-01-17  Bruno Haible  <bruno@clisp.org>
85078
85079         * lib/execute.c (environ): Declare if needed.
85080         * lib/pipe.c (environ): Likewise.
85081         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85082
85083 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85084
85085         * modules/argp: Depend on vsnprintf
85086
85087 2005-01-10  Jim Meyering  <jim@meyering.net>
85088
85089         * modules/closeout (Depends-on): Add atexit.
85090
85091 2005-01-06  Bruno Haible  <bruno@clisp.org>
85092
85093         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85094
85095 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85096
85097         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85098         definitions to be after all include files, to avoid collisions.
85099         Problem reported by Bob Proulx.
85100
85101 2005-01-04  Jim Meyering  <jim@meyering.net>
85102
85103         Changes imported from coreutils.
85104         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85105         as the mkstemp template, use a temporary directory and an
85106         8.3-friendly template to avoid trouble on systems like DJGPP.
85107         Reported by Juan M. Guerrero via Stepan Kasal.
85108         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85109         close. Remove the temporary directory right away, rather than waiting
85110         for configure's at-exit trap code to do it.
85111         Suggestion from Stepan Kasal.
85112
85113 2005-01-01  Simon Josefsson  <jas@extundo.com>
85114
85115         * gnulib-tool: Print #include directives when --import'ing.
85116
85117 2004-12-28  Simon Josefsson  <jas@extundo.com>
85118
85119         * tests/test-base64.c: Include required header files.  Remove
85120         unused variables.
85121
85122 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85123
85124         * modules/error (Depends-on): Remove gettext.
85125
85126 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85127
85128         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85129         not needed.  This removes a dependency on the gettext module.
85130         [defined _LIBC]: Do not include <libintl.h>; not needed.
85131
85132 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85133
85134         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85135         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85136
85137 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85138
85139         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85140         HAVE_DECL_STRTOLD.
85141
85142 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85143
85144         * modules/getdate (Depends-on): Remove alloca-opt.
85145
85146 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85147
85148         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85149
85150 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85151
85152         * lib/argp-parse.c: Include <stddef.h>.
85153         (alignof, alignto): New macros.
85154         (parser_init): Don't assume that void * is aligned sufficiently
85155         for struct option.
85156
85157         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85158         need to extend the stack.
85159         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85160         large.
85161
85162 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85163
85164         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85165
85166 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85167
85168         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85169         (2004-10-24) change.  Apparently this was a false alarm.
85170
85171         * modules/getdate: Depend on alloca-opt, not alloca.
85172
85173 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85174
85175         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85176         Remove now-obsolete comment about AIX.
85177         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85178         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85179         (YYMAXDEPTH): New macro.
85180
85181 2004-12-18  Simon Josefsson  <jas@extundo.com>
85182
85183         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85184
85185 2004-12-18  Bruno Haible  <bruno@clisp.org>
85186
85187         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85188
85189 2004-12-18  Bruno Haible  <bruno@clisp.org>
85190
85191         * lib/fatal-signal.c (fatal_signals): Make non-const.
85192         (init_fatal_signals): New function.
85193         (uninstall_handlers, install_handlers): Ignore signals that were set to
85194         SIG_IGN.
85195         (at_fatal_signal): Call init_fatal_signals.
85196         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85197         SIG_IGN.
85198         Reported by Paul Eggert.
85199
85200 2004-12-18  Bruno Haible  <bruno@clisp.org>
85201
85202         * doc/alloca.texi: New file.
85203         * doc/alloca-opt.texi: New file.
85204
85205 2004-12-17  Jim Meyering  <jim@meyering.net>
85206
85207         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85208         Otherwise, install-sh could exit with improper exit status when
85209         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85210
85211 2004-12-16  Simon Josefsson  <jas@extundo.com>
85212
85213         * tests/test-base64.c: Add license.
85214
85215 2004-12-15  Stepan Kasal  <address@hidden>
85216
85217         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85218
85219 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85220
85221         * modules/getcwd (Files): Add m4/d-ino.m4.
85222         Suggested by Mark D. Baushke.
85223
85224 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85225
85226         * lib/getdate.y (textint): New member "negative".
85227         (time_zone_hhmm): New function.
85228         Expect 14 shift-reduce conflicts, not 13.
85229         (o_colon_minutes): New rule.
85230         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85231         (yylex): Set the "negative" member of signed numbers.
85232
85233 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85234
85235         * doc/getdate.texi (Time of day items, Time zone items):
85236         Describe new formats +00:00, UTC+00:00.
85237
85238 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85239
85240         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85241         spurious "-l"s.  Problem reported by Stepan Kasal.
85242
85243 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85244
85245         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85246         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85247
85248 2004-12-04  Simon Josefsson  <jas@extundo.com>
85249
85250         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85251         Vandoorselaere <yoann@prelude-ids.org>.
85252
85253 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85254
85255         Changes imported from coreutils.
85256         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85257         exist.
85258         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85259
85260 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85261
85262         Changes imported from coreutils.
85263         * lib/hard-locale.c: Assume <locale.h> exists.
85264         Include "strdup.h".
85265         (GLIBC_VERSION): New macro.
85266         (hard_locale): Assume setlocale exists.
85267         Rewrite to avoid #ifdef.
85268         Use strdup rather than malloc + strcpy.
85269         * lib/human.c: Assume <locale.h> exists.
85270         (human_readable): Assume localeconv exists.
85271
85272 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85273
85274         * modules/hard-locale (Depends-on): Add strdup.
85275
85276 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85277
85278         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85279         convert T2, not T.  (Imported from libc.)
85280
85281 2004-11-30  Simon Josefsson  <jas@extundo.com>
85282
85283         * modules/restrict (License): Change to LGPL.
85284
85285 2004-11-30  Simon Josefsson  <jas@extundo.com>
85286
85287         * m4/restrict.m4: Add copyright and copying conditions.
85288
85289 2004-11-30  Simon Josefsson  <jas@extundo.com>
85290
85291         * m4/base64.m4: New file.
85292
85293 2004-11-30  Simon Josefsson  <jas@extundo.com>
85294
85295         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
85296         base64.
85297
85298         * tests/test-base64.c: New file.
85299
85300         * modules/base64: New file.
85301
85302 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85303
85304         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85305         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85306
85307         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85308
85309 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85310
85311         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85312         (__getcwd.c): Don't restore errno; glibc doesn't.
85313         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85314         first, falling back to our code only if its results look suspicious.
85315         Ensure that the resulting buffer is only as large as necessary.
85316
85317         * lib/readutmp.c: Include readutmp.h first.
85318         Include <errno.h>, since readutmp.h no longer does that.
85319         * lib/readutmp.h: Don't include <errno.h>,
85320         <sys/param.h>, <time.h>; not needed to establish interface.
85321         (errno): Remove decl.
85322         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85323         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85324         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85325
85326 2004-11-28  Simon Josefsson  <jas@extundo.com>
85327
85328         * lib/base64.h, base64.c: New file.
85329
85330 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85331
85332         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85333
85334 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85335
85336         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85337         (Depends-on): Remove pathmax, same.  Add mempcpy.
85338         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85339         (Makefile.am): Append getcwd.h to lib_SOURCES.
85340         (Include): Add getcwd.h.
85341         (Maintainer): Change from Jim Meyering to "all, glibc",
85342         since getdate now uses intended-for-glibc code.
85343         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85344         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85345
85346 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85347
85348         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85349         HP's ANSI C compiler.
85350         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85351         Declaring int functions causes warnings on some modern systems and
85352         shouldn't be needed to compile on ancient ones.
85353         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85354         defined.
85355
85356         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85357         with the following changes.
85358         (__set_errno): Parenthesize properly.
85359         Include <stdbool.h>.
85360         (MIN, MAX, MATCHING_INO): New macros.
85361         (__getcwd): Define with prototype, not K&R form.
85362         Use heuristics to allocate default buffer on stack if possible.
85363         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
85364         behavior, and to avoid the PATH_MAX limit when computing
85365         ../../../../...
85366         Use MATCHING_INO to compare inode number to file.
85367         Check for arithmetic overflow in size calculations.
85368         Fix bug in reallocation of dot array that caused getcwd to fail
85369         on directories nested deeper than 75.
85370         Be more careful about saving errno on error.
85371         Do not use realloc; use only free+malloc, as this is a bit
85372         more flexible and avoids a needless copy operation.
85373         Do not inspect st_dev and st_ino for symbolic links; POSIX
85374         doesn't specify the latter.
85375         Check for closedir errors.
85376         Avoid needless casts.
85377         Use "#ifdef weak_alias" around weak_alias, to be like other
85378         glibc code.
85379         The following changes to getcwd.c have effect only when used in
85380         gnulib; they have no effect inside glibc proper.
85381         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
85382         as alloca isn't used.
85383         (alloca, __alloca): Likewise.
85384         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
85385         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85386         unconditionally, as gnulib assumes C89 or better.
85387         Do not include <sys/param.h>.
85388         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
85389         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
85390         better.
85391         (NULL) [!defined NULL]: Remove; we assume C89 or better.
85392         Include <dirent.h> in a way that is compatible with modern Autoconf.
85393         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
85394         New macros, if not already defined.
85395         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
85396         Use "_LIBC", not "defined _LIBC", for consistency.
85397         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
85398         a mempcpy module.
85399         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
85400         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
85401         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
85402         credit only to Jim Meyering and adjust the copyright dates.
85403         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
85404         <stdlib.h>, <unistd.h>, "pathmax.h".
85405         Instead, include "xgetcwd.h" (first) and "getcwd.h".
85406         (INITIAL_BUFFER_SIZE): Remove.
85407         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
85408
85409 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85410
85411         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
85412         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
85413         Use the _ONCE methods, for efficiency.
85414         Check for fcntl.h.  In test program, include <errno.h>
85415         and <fcntl.h> if available.  Remove old K&R cruft from
85416         test program.  Check for common errors in GNU/Linux,
85417         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
85418         don't do AC_LIBOBJ, as that's getcwd.m4's job.
85419         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
85420         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85421         name accordingly.
85422         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85423         accommodate new getcwd.c.
85424         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85425         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85426         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85427         that's all we need now.
85428
85429 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85430
85431         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85432         argp-parse.c depends on getopt internals, that means we should
85433         always use our getopt, to be on the safe side.
85434         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85435         order not to spoil the result of an eventual previous invocation
85436         of gl_GETOPT_SUBSTITUTE.
85437
85438 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85439
85440         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
85441         redefinition warnings. To avoid them, include the defines
85442         in `#if !defined __need_getopt ... #endif'. The only place
85443         where __getopt_argv_const is used is in definitions
85444         of getopt_long and getopt_long_only below, which are as well
85445         protected by `#ifndef __need_getopt'.
85446         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
85447         __need_getopt after including <stdio.h> and <unistd.h> These
85448         headers might have defined it.
85449
85450 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85451
85452         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
85453
85454 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85455
85456         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
85457         (futimens): New function, which uses futimes if available.
85458         (futimens, utimens): Support timespec==NULL, with same semantics
85459         as utime and utimens.
85460         * lib/utimens.h (futimens): New decl.
85461
85462 2004-11-23  Jim Meyering  <jim@meyering.net>
85463
85464         * lib/getopt_.h: Remove trailing blanks.
85465
85466 2004-11-23  Jim Meyering  <jim@meyering.net>
85467
85468         * lib/__fpending.c: Add comment.
85469
85470 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85471
85472         * modules/canonicalize (Depends-on): Add xreadlink.
85473         Problem reported by James Youngman.
85474
85475 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85476
85477         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
85478         New macros.
85479         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
85480         optopt): Use them instead of invoking ## directly; otherwise, the
85481         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
85482
85483 2004-11-19  Bruno Haible  <bruno@clisp.org>
85484
85485         * lib/strtok_r.c: Move comments from here...
85486         * lib/strtok_r.h: ... to here.
85487
85488 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85489
85490         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
85491         implementations that mishandle size_t overflow.
85492
85493 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85494
85495         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
85496         might fail.  Problem reported by Yoann Vandoorselaere.
85497         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
85498         implementations that mishandle size_t overflow.
85499
85500 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85501
85502         * modules/canon-host (Depends-on): Add strdup.
85503
85504 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85505
85506         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
85507
85508 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85509
85510         * lib/canon-host.c: Include "strdup.h".
85511         (canon_host): Use getaddrinfo if available, so that IPv6 works.
85512         Use strdup instead of malloc/strcpy to duplicate strings.
85513
85514         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
85515         (human_space_before_unit): New constant.
85516         * lib/human.c (human_readable): Support it.
85517
85518         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85519         (xgetcwd): Set errno correctly when failing.
85520         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85521         the failure is actually due to a PATH_MAX problem.
85522
85523         Further getopt changes to make it more likely that glibc will
85524         buy the changes back.
85525         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85526         (getopt): Use it, so to preserve glibc semantic
85527         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85528         when compiling for libc.
85529         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85530         (getopt_long, getopt_long_only): Use it.
85531
85532         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85533         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85534         (getopt): Argv is now char * const *, as per standard.
85535         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85536         not char *__getopt_argv_const *.
85537         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85538         _getopt_long_only_r): Likewise.
85539         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85540         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85541         _getopt_long_r, _getopt_long_only_r): Likewise.
85542         * lib/getopt_.h (__getopt_argv_const): Remove.
85543         (getopt): Argv is now char * const *, as per standard.
85544
85545         * lib/getdate.y (tORDINAL): New token.
85546         (day, relunit): Allow it for relative times.
85547         (relative_time_table): Use tORDINAL for ordinals.
85548
85549 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85550
85551         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85552         Document that "second" isn't allowed as an ordinal number.
85553
85554 2004-11-16  Jim Meyering  <jim@meyering.net>
85555
85556         * modules/closeout (Depends-on): Add fpending.
85557
85558 2004-11-15  Jim Meyering  <jim@meyering.net>
85559
85560         * lib/closeout.c: Include "__fpending.h" once again.
85561         Include <stdbool.h>.
85562         (close_stdout): Don't fail just because stdout was closed initially,
85563         since some programs don't write to stdout in the normal course of
85564         operation (other than --version and --help), and we don't want this
85565         function to make e.g. `touch file >&-' fail.
85566         But do fail if it was closed and someone has tried to write to it.
85567         E.g., `printf foo >&-' must fail.
85568
85569 2004-11-13  Jim Meyering  <jim@meyering.net>
85570
85571         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85572
85573 2004-11-12  Simon Josefsson  <jas@extundo.com>
85574
85575         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85576         small doc fix is still pending.
85577
85578 2004-11-11  Simon Josefsson  <jas@extundo.com>
85579
85580         * modules/strtok_r: New file.
85581
85582         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85583         strtok_r.
85584
85585 2004-11-11  Simon Josefsson  <jas@extundo.com>
85586
85587         * m4/strtok_r.m4: New file.
85588
85589         * m4/getopt.m4: Replace opterr.
85590
85591 2004-11-11  Simon Josefsson  <jas@extundo.com>
85592
85593         * lib/strtok_r.h, strtok_r.c: New file.
85594
85595 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85596
85597         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85598         of replacing opterr, getopt, etc.  This should handle the
85599         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85600
85601 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85602
85603         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85604         we can stop lying to compilers about the constness of argv when we
85605         are compiled outside glibc.
85606         (getopt, getopt_long, getopt_long_only): Use it.
85607         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85608         _getopt_internal, getopt): Likewise.
85609         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85610         _getopt_long_only_r): Likewise.
85611         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85612         _getopt_long_r, _getopt_long_only_r): Likewise.
85613
85614         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85615         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85616         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85617         the other external symbols.
85618         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85619         declaration, since the above renaming now works around collisions.
85620
85621 2004-11-11  Jim Meyering  <jim@meyering.net>
85622
85623         * lib/linebreak.c: Remove trailing blanks.
85624         * lib/alloca_.h: Likewise.
85625         * lib/acosl.c: Likewise.
85626         * lib/euidaccess.c: Likewise.
85627         * lib/allocsa.h: Likewise.
85628
85629 2004-11-10  Simon Josefsson  <jas@extundo.com>
85630
85631         * m4/getaddrinfo.m4: New file.
85632
85633 2004-11-10  Simon Josefsson  <jas@extundo.com>
85634
85635         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85636
85637 2004-11-10  Simon Josefsson  <jas@extundo.com>
85638
85639         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85640         getaddrinfo.
85641
85642         * modules/getaddrinfo: New file.
85643
85644 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85645
85646         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85647
85648 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85649
85650         * lib/mktime.c (SHR): New macro, which is a portable
85651         substitute for >> that should work even on Crays.
85652         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85653         Problem reported by Mark D. Baushke in
85654         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85655         * lib/getdate.y (SHR): Likewise.
85656         (tm_diff): Use it.
85657         * lib/strftime.c (SHR): Likewise.
85658         (tm_diff): Use it.
85659         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85660         quote_these_too, so that right shifts are well defined.  All uses
85661         changed.
85662
85663 2004-11-10  Jim Meyering  <jim@meyering.net>
85664
85665         Ensure that no close failure goes unreported.
85666         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85667         return early when it seems there's nothing to flush.
85668         Don't include __fpending.h.
85669
85670 2004-11-10  Jim Meyering  <jim@meyering.net>
85671
85672         * modules/closeout (Depends-on): Remove fpending.
85673
85674 2004-11-10  Jim Meyering  <jim@meyering.net>
85675
85676         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85677
85678 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85679
85680         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85681         gl_FUNC_STRFTIME.
85682         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85683         and AC_REQUIRE when possible, to avoid duplicate checks.
85684         Check for <wchar.h>.
85685
85686 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85687
85688         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85689
85690 2004-11-09  Bruno Haible  <bruno@clisp.org>
85691
85692         * m4/sockpfaf.m4: New file.
85693
85694 2004-11-05  Bruno Haible  <bruno@clisp.org>
85695
85696         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85697         Reported by Mark D. Baushke <mdb@cvshome.org>.
85698
85699 2004-11-04  Bruno Haible  <bruno@clisp.org>
85700
85701         2004-09-11  Bruno Haible  <bruno@clisp.org>
85702                 * allocsa.valgrind: New file.
85703         2004-02-06  Bruno Haible  <bruno@clisp.org>
85704                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85705                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85706                 Reported by Christopher Seip <chris.seip@hp.com>.
85707
85708 2004-11-04  Bruno Haible  <bruno@clisp.org>
85709
85710         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85711         (Makefile.am): Distribute it.
85712
85713 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85714
85715         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85716         with errno == ERANGE if the buffer is too small.
85717         Problem reported by Mark D. Baushke.
85718
85719 2004-11-03  Albert Chin  <china@thewrittenword.com>
85720             Paul Eggert  <eggert@cs.ucla.edu>
85721
85722         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85723         equivalent, substitute $ac_type for equivalent type rather than
85724         blindly using uint32_t *always* which won't work if uint32_t is not
85725         available.  Define _UINT32_T to work around typedef of uint32_t if
85726         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85727         2.5.1.
85728
85729 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85730
85731         * m4/jm-macros.m4: Sync from coreutils.
85732         (gl_MACROS): Check for mbrlen, for pathchk.
85733         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85734
85735 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85736
85737         * lib/xreadlink.c (MAXSIZE): New macro.
85738         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85739         size does not exceed MAXSIZE.  Avoid cast.
85740         As suggested by Mark D. Baushke in
85741         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85742         if readlink fails with buffer size just under MAXSIZE, try again
85743         with MAXSIZE.
85744
85745 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85746
85747         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85748
85749 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85750         and  Paul Eggert  <eggert@cs.ucla.edu>
85751
85752         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85753         (get_date): Overparenthesize to avoid GCC warning.
85754
85755 2004-11-02  Bruno Haible  <bruno@clisp.org>
85756
85757         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85758         returns void.
85759
85760 2004-11-02  Bruno Haible  <bruno@clisp.org>
85761
85762         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85763         function returns void.
85764
85765 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85766
85767         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85768         fflush_unlocked, flockfile, funlockfile, funlockfile,
85769         fputs_unlocked, putc_unlocked.
85770
85771 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85772
85773         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85774         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85775         already declared.
85776
85777 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85778
85779         * modules/getdate (Files): Add doc/getdate.texi.
85780         (Depends-on): Add setenv, xalloc.
85781
85782 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85783
85784         * lib/getdate.y: Add support for TZ="foo" within a date string.
85785         Fix some bugs near time_t boundaries.  Reject dates with
85786         out-of-range components, e.g., "Sept 31".
85787         Include <stdlib.h>, "setenv.h", "xalloc.h".
85788         (ISDIGIT_LOCALE): Remove; unused.
85789         Note that the TZ and time functions used here are not reentrant.
85790         (mktime_ok, get_tz): New functions.
85791         (TZBUFSIZE): New constant.
85792         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85793         This requires that we sometimes generate our own TZ="XXX..." setting.
85794
85795 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85796
85797         * doc/getdate.texi: New file, from coreutils with modifications for
85798         the new TZ parsing.
85799
85800 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85801
85802         * lib/mktime.c (not_equal_tm): Remove redundant check.
85803
85804 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85805
85806         * modules/regex (lib_SOURCES): Add regex.c.
85807         Reported by James Youngman in
85808         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85809
85810 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85811
85812         * lib/getdate.y: Use Bison 1.875 features, and some minor
85813         code cleanups.  This change does not affect semantics.
85814         Don't include <stdlib.h>; no longer needed.
85815         Don't include unlocked-io.h; only the "#if TEST" code uses
85816         stdio, and performance isn't crucial there.
85817         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85818         Bison 1.875 features as described below.
85819         All uses of "PC." replaced by "pc->".
85820         (YYSTYPE): Add a forward declaration.
85821         (yylex, yyerror): Use full prototypes in forward decls.
85822         Use "%pure-parser" rather than obsolescent "%pure_parser".
85823         Use %parse-param and %lex-param instead of obsolescent
85824         YYPARSE_PARAM and YYLEX_PARAM.
85825         (meridian_table, month_and_day_table, time_units_table,
85826         relative_time_table, time_zone_table, military_table,
85827         lookup_zone, lookup_word, get_date):
85828         Use NULL instead of 0 where appropriate.
85829         (to_hour): Avoid abort (), to avoid a dependency on
85830         stdlib.h.
85831         (yyerror, yylex): Now accepts parser_control * arg.
85832         (main) [TEST]: Use '\0' rather than 0 for char.
85833
85834 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85835
85836         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85837
85838 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85839
85840         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85841         It's now the caller's responsibility to handle the case where
85842         !HAVE_GETPAGESIZE && !defined getpagesize.
85843
85844         * lib/mktime.c (leapyear): Arg is long int, not int.
85845
85846 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85847
85848         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85849
85850 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85851
85852         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85853         missing.  Problem reported by James Youngman.
85854
85855 2004-10-16  Simon Josefsson  <jas@extundo.com>
85856
85857         * gnulib-tool: Fix comments.  Fix parse problem.
85858         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85859
85860 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85861
85862         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85863         implementation of getopt_long.  Problem reported by Alexander Taler in:
85864         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85865
85866 2004-10-15  Bruno Haible  <bruno@clisp.org>
85867
85868         * gnulib-tool: Untabify. Initialize supplied_libname.
85869         (func_usage): More homogenous output.
85870         (func_modules_transitive_closure, func_modules_to_filelist,
85871         func_emit_lib_Makefile_am): New functions.
85872         (func_import): New function, extracted from big case statement. Use
85873         func_get_license, func_modules_transitive_closure,
85874         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85875         opt_lgpl. Don't use test -a, as it's not portable.
85876         (func_create_testdir): Use func_modules_transitive_closure,
85877         func_modules_to_filelist, func_emit_lib_Makefile_am.
85878
85879 2004-10-15  Bruno Haible  <bruno@clisp.org>
85880
85881         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85882
85883 2004-10-15  Bruno Haible  <bruno@clisp.org>
85884
85885         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85886         the portions belonging to each module.
85887         Suggested by Derek Robert Price <derek@ximbiot.com>.
85888
85889 2004-10-12  Simon Josefsson  <jas@extundo.com>
85890
85891         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85892         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85893         to real functions.
85894
85895 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85896
85897         * modules/vsnprintf: New file.
85898
85899 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85900
85901         * m4/vsnprintf.m4: New file.
85902
85903 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85904
85905         * lib/vsnprintf.h: New file.
85906         * lib/vsnprintf.c: New file.
85907
85908 2004-10-11  Bruno Haible  <bruno@clisp.org>
85909
85910         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85911         vsnprintf.
85912
85913 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85914
85915         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85916
85917 2004-10-07  Bruno Haible  <bruno@clisp.org>
85918
85919         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85920         fits into the provided buffer.
85921
85922 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85923
85924         * lib/diacrit.c, diacrit.h: Add GPL notice.
85925
85926         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85927         notice.
85928         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85929         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85930         This avoids a potential constant-folding bug.
85931
85932 2004-10-05  Bruno Haible  <bruno@clisp.org>
85933
85934         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85935         for the declaration of strsep.
85936
85937 2004-10-05  Bruno Haible  <bruno@clisp.org>
85938
85939         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85940
85941 2004-10-04  Simon Josefsson  <jas@extundo.com>
85942
85943         * modules/memmem: New file.
85944         * tests/test-memmem.c: New file.
85945         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85946
85947 2004-10-04  Simon Josefsson  <jas@extundo.com>
85948
85949         * m4/memmem.m4: New file.
85950
85951 2004-10-04  Simon Josefsson  <jas@extundo.com>
85952
85953         * lib/memmem.h: New file.
85954         * lib/memmem.c: New file, taken from glibc.
85955
85956 2004-10-04  Simon Josefsson  <jas@extundo.com>
85957
85958         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85959         '#ifdef USE_UNLOCKED_IO'.
85960
85961 2004-10-04  Simon Josefsson  <jas@extundo.com>
85962
85963         * config/srclist.txt: Add memmem from glibc.
85964
85965 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85966
85967         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85968
85969         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85970         modules/exclude, modules/getdate, modules/getline,
85971         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85972         modules/getusershell, modules/linebuffer, modules/md5,
85973         modules/mountlist, modules/posixtm, modules/readtokens,
85974         modules/readutmp, modules/regex, modules/sha1,
85975         modules/version-etc, modules/yesno:
85976         Remove dependency on unlocked-io.
85977
85978 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85979
85980         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85981
85982         * m4/unlocked-io.m4: Add copyright notice.
85983         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85984
85985 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85986
85987         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85988         * lib/xmalloc.c (xmemdup): Likewise.
85989         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85990         XFREE): Remove these long-obsolescent macros.
85991         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85992         * lib/xstrdup.c: Remove.
85993
85994         * lib/regex.c (re_comp): Cast gettext return value to char *,
85995         Problem reported by Martin Neitzel via Mark D. Baushke.
85996
85997 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85998
85999         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
86000         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
86001         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
86002         regex.c, sha1.c, version-etc.c, yesno.c:
86003         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
86004         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
86005         the includer's responsibility.
86006
86007         Sync from coreutils.
86008
86009         * lib/modechange.c (mode_compile): Don't decrement a pointer that
86010         points to the start of a string, as the C Standard says the
86011         resulting behavior is undefined.
86012
86013         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
86014         simple -> simple_backups, numbered_existing ->
86015         numbered_existing_backups, numbered -> numbered_backups
86016         to avoid shadowing problems.  All uses changed.
86017         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
86018         * lib/backupfile.c (check_extension, numbered_backup):
86019         Rename locals to avoid shadowing 'basename'.
86020         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
86021         once.
86022
86023         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
86024         * lib/.cvsignore: Add getopt.h.
86025
86026 2004-10-04  Bruno Haible  <bruno@clisp.org>
86027
86028         * modules/README: New file.
86029         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
86030         not a module.
86031
86032 2004-10-02  Jim Meyering  <jim@meyering.net>
86033
86034         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86035
86036 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86037
86038         * modules/strsep: New file.
86039
86040 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86041
86042         * m4/strsep.m4: New file.
86043
86044 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86045
86046         * lib/strsep.h: New file.
86047         * lib/strsep.c: New file.
86048
86049 2004-10-01  Simon Josefsson  <jas@extundo.com>
86050
86051         * lib/snprintf.c (snprintf): Handle size==0.
86052
86053 2004-10-01  Simon Josefsson  <jas@extundo.com>
86054             Bruno Haible  <bruno@clisp.org>
86055
86056         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86057         (snprintf): Declare 'args'.
86058
86059 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86060
86061         * lib/snprintf.c: Remove comments as to why each header is needed.
86062
86063 2004-10-01  Bruno Haible  <bruno@clisp.org>
86064
86065         * MODULES.html.sh: Add strsep.
86066
86067 2004-09-30  Simon Josefsson  <jas@extundo.com>
86068
86069         * modules/snprintf: New file.
86070
86071 2004-09-30  Simon Josefsson  <jas@extundo.com>
86072
86073         * m4/snprintf.m4: New file.
86074
86075 2004-09-30  Simon Josefsson  <jas@extundo.com>
86076
86077         * lib/snprintf.h, lib/snprintf.c: New files.
86078
86079 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86080
86081         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86082         (hol_entry_help): Never translate an empty string.
86083         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86084         * lib/argp.h (OPTION_NO_TRANS): New option.
86085
86086 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86087
86088         * modules/argp (Maintainer): Replace Simon Josefsson
86089         by Sergey Poznyakoff.
86090
86091 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86092
86093         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86094         changes merged back into glibc.
86095
86096 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86097
86098         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86099
86100 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86101
86102         * lib/xvasprintf.c: Include xalloc.h.
86103         (xvasprintf): Use xalloc_die, not xmalloc_die.
86104
86105 2004-09-29  Bruno Haible  <bruno@clisp.org>
86106
86107         * modules/alloca-opt: New file, derived from modules/alloca.
86108         * modules/allocsa: Depend on alloca-opt instead of alloca.
86109         * modules/setenv: Likewise.
86110         * modules/vasnprintf: Likewise.
86111         * MODULES.html.sh: Add alloca-opt.
86112
86113 2004-09-28  Simon Josefsson  <jas@extundo.com>
86114
86115         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86116         LGPL, and to replace license template from GPL to LGPL.
86117
86118 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86119
86120         * modules/dummy: Change license to LGPL.
86121
86122 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86123
86124         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86125
86126 2004-09-24  Simon Josefsson  <jas@extundo.com>
86127
86128         * modules/minmax (License): Change from GPL to LGPL.
86129
86130 2004-09-23  Simon Josefsson  <jas@extundo.com>
86131
86132         * gnulib-tool (--import): Typo.
86133
86134 2004-09-23  Simon Josefsson  <jas@extundo.com>
86135
86136         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86137
86138 2004-09-22  Bruno Haible  <bruno@clisp.org>
86139
86140         * modules/*: Add 'License' field.
86141         * gnulib-tool: Accept --extract-license option.
86142         (func_get_license): New function.
86143
86144 2004-09-21  Bruno Haible  <bruno@clisp.org>
86145
86146         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86147         Reported by Simon Josefsson.
86148
86149 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86150
86151         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86152         gl_AC_TYPE_LONG_LONG.
86153
86154 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86155
86156         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86157
86158 2004-09-18  Simon Josefsson  <jas@extundo.com>
86159         and  Paul Eggert  <eggert@cs.ucla.edu>
86160
86161         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86162         calls with autoreconf.  Define GL_LIB.
86163
86164 2004-09-14  Karl Berry  <karl@gnu.org>
86165
86166         * config/srclist.txt: unsync setenv.c, sigh.
86167
86168 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86169
86170         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86171         Problem reported by Bruno Haible in:
86172         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86173
86174 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86175
86176         * config/srclist.txt: Comment out argp-pvh.c.
86177
86178 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86179
86180         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86181         in case some system header has #define'd it.  Problem reported by
86182         Soeren D. Schulze in
86183         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86184
86185 2004-09-09  Karl Berry  <karl@gnu.org>
86186
86187         * regex.[ch]: delete from the root.  These were supposed to be
86188                 synced with emacs cvs, but this has not happened for about
86189                 a year, and anyway nothing else uses emacs regex.[ch].
86190                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86191                 lib/regex[.ch] is untouched.
86192
86193 2004-09-09  Bruno Haible  <bruno@clisp.org>
86194
86195         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86196
86197 2004-09-09  Bruno Haible  <bruno@clisp.org>
86198
86199         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86200         modifications.
86201         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86202
86203 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86204
86205         * modules/xvasprintf: New file.
86206         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86207
86208 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86209
86210         * lib/xvasprintf.h: New file.
86211         * lib/xvasprintf.c: New file.
86212         * lib/xasprintf.c: New file.
86213
86214 2004-09-08  Bruno Haible  <bruno@clisp.org>
86215
86216         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86217
86218 2004-09-08  Bruno Haible  <bruno@clisp.org>
86219
86220         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86221         length is > INT_MAX.
86222         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86223         more.
86224
86225 2004-09-08  Bruno Haible  <bruno@clisp.org>
86226
86227         * lib/stdint_.h: New file, taken from GNU clisp.
86228
86229 2004-09-08  Bruno Haible  <bruno@clisp.org>
86230             Oskar Liljeblad  <oskar@osk.mine.nu>
86231
86232         * modules/stdint: New file.
86233         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86234
86235 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86236
86237         Import from coreutils.
86238         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86239         strings on unbounded length.  alloca's performance benefits aren't
86240         that important here.
86241         (V_STRDUP): Remove.
86242         (parse_with_separator): New function, with most of the internals
86243         of the old parse_user_spec.  Allow user to omit both user and group,
86244         for compatibility with FreeBSD.
86245         Clone only the user name, not the entire spec.
86246         Do not set *uid, *gid unless entirely successful.
86247         Avoid memory leak in some failing cases.
86248         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86249         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86250         (parse_user_spec): Rewrite to use parse_with_separator.
86251
86252 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86253
86254         * modules/userspec: Don't depend on alloca.
86255
86256 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86257
86258         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86259
86260 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86261
86262         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86263         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86264         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86265
86266 2004-08-16  Simon Josefsson  <jas@extundo.com>
86267
86268         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86269         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86270         Add --dry-run for --import.
86271         Let user provided command line parameters override configure.ac
86272         settings.
86273
86274 2004-08-12  Simon Josefsson  <jas@extundo.com>
86275
86276         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86277         as discussed with Paul Eggert in threads rooted at
86278         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86279         and
86280         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86281         Before, the test was empty, and relied on ELIDE_CODE in source
86282         code.)
86283         (gl_PREREQ_GETOPT): New macro.
86284         (gl_GETOPT): Use them.
86285
86286 2004-08-12  Simon Josefsson  <jas@extundo.com>
86287
86288         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86289         * lib/getopt_.h: Renamed from getopt.h.
86290
86291 2004-08-12  Simon Josefsson  <jas@extundo.com>
86292
86293         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
86294         Change default library name from libfoo to libgnu.
86295         Now, if you have a configure.ac that says:
86296                 gl_SOURCE_BASE(gl)
86297                 gl_M4_BASE(gl/m4)
86298                 gl_MODULES(error getopt etcetera)
86299                 gl_INIT
86300         you can import all you need by running:
86301                 ../gnulib/gnulib-tool --import
86302
86303         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86304         (Makefile.am): Rewrite, use logic from argz.
86305         (Include): Use <getopt.h> instead of "getopt.h".
86306
86307 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86308
86309         * modules/argp (Files): Add m4/unlocked-io.m4.
86310         (Depends-on): Add extensions.
86311
86312 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86313
86314         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86315         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86316         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86317         Check for program_invocation_name, program_invocation_short_name,
86318         flockfile, funlockfile, features.h, _getopt_long_only_r.
86319
86320 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86321
86322         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86323         its complicated substitute.
86324         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86325         and program_invocation_name.
86326         (__argp_basename) [!_LIBC]: Remove; the only use was
86327         replaced by its body.
86328         (__argp_short_program_name): Change condition from
86329         !defined __argp_short_program_name to
86330         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86331         to match argp-namefrob.h.
86332         (__argp_failure): Don't assume strerror_r returns char *.
86333         * lib/argp-parse.c (N_): Define unconditionally.
86334         (argp_default_options): Fill out initializers with 0 to avoid
86335         gcc warnings.
86336
86337 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86338
86339         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86340         getopt1.c.
86341
86342 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86343
86344         Merge from coreutils.
86345
86346         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86347
86348         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86349         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86350
86351 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86352
86353         Merge from coreutils.
86354
86355         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86356         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86357         for Reliant Unix 5.43.
86358
86359         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86360         (union fooround): Use uintmax_t, not long int.
86361         The rest is a merge from libc:
86362         [defined _LIBC]: Include <shlib-compat.h>.
86363         (_obstack) [defined _LIBC]: Remove after 2.3.4.
86364
86365         * lib/settime.c (settime): Recode to avoid warning with
86366         Sun Forte C 6U2.
86367
86368         * lib/strverscmp.c: Convert to UTF-8.
86369
86370 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86371
86372         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86373         m4/uintmax_t.m4.
86374
86375 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86376
86377         * modules/xalloc-die: New file.
86378         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
86379
86380         * modules/md5 (Files): Add m4/uint32_t.m4.
86381         * modules/sha1: Renamed from modules/sha.
86382         (Files):
86383         Rename lib/sha.h to lib/sha1.h.
86384         Rename lib/sha.c to lib/sha1.c.
86385         Rename m4/sha.m4 to m4/sha1.m4.
86386         (lib_SOURCES): Likewise.
86387         (configure.ac): Rename gl_SHA to gl_SHA1.
86388         (Include): sha.h -> sha1.h.
86389
86390 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86391
86392         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
86393         * m4/sha1.m4: Renamed from sha.m4.
86394         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
86395
86396 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86397
86398         * lib/obstack.h (obstack_empty_p):
86399         Don't assume that chunk->contents is suitably aligned.
86400         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
86401         Likewise. Problem reported by Benno in
86402         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
86403
86404         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
86405         readable.  This could be improved further but it'd take some work.
86406
86407 2004-08-08  Simon Josefsson  <jas@extundo.com>
86408
86409         * modules/xgethostname (Depends-on): Remove exit and error (not
86410         used).
86411
86412         * modules/getpass-gnu: Add getpass.h.
86413         (Depends-on): Add stdbool.
86414         * modules/getpass: Add getpass.h.
86415
86416 2004-08-08  Simon Josefsson  <jas@extundo.com>
86417
86418         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
86419         Check getpass declaration.
86420
86421 2004-08-08  Simon Josefsson  <jas@extundo.com>
86422
86423         * lib/xgethostname.c: Don't include error.h (not used).
86424
86425         * lib/getpass.h: Add.
86426         * lib/getpass.c: Include getpass.h first.
86427
86428 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86429
86430         * lib/xalloc-die.c: New file.
86431         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86432         All uses removed.
86433         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86434         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86435         xalloc-die.c.
86436         (_, N_, xalloc_die): Move to xalloc-die.c.
86437         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86438         so that we needn't mess with xalloc_msg_memory_exhausted.
86439
86440         * lib/sha1.h: Renamed from sha.h.
86441         (SHA1_H): Renamed from _SHA_H.
86442         (sha1_ctx): Renamed from sha_ctx.
86443         (sha1_init_ctx): Renamed from sha_init_ctx.
86444         (sha1_process_block): Renamed from sha_process_block.
86445         (sha1_process_bytes): Renamed from sha_process_bytes.
86446         (sha1_finish_ctx): Renamed from sha_finish_ctx.
86447         (sha1_read_ctx): Renamed from sha_read_ctx.
86448         (sha1_stream): Renamed from sha_stream.
86449         (sha1_buffer): Renamed from sha_buffer.
86450         * lib/sha1.c: Likewise; renamed from sha.c.
86451         Do not include <sys/types.h>.
86452         Include <stddef.h> rather than <stdlib.h>.
86453
86454 2004-08-08  Bruno Haible  <bruno@clisp.org>
86455
86456         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
86457         FILESYSTEM_PREFIX_LEN.
86458         * lib/progreloc.c: Likewise.
86459         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
86460
86461 2004-08-06  Simon Josefsson  <jas@extundo.com>
86462
86463         * modules/progname (Depends-on): Don't depend on stdbool.
86464
86465 2004-08-06  Simon Josefsson  <jas@extundo.com>
86466
86467         * modules/getsubopt: New file.
86468         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86469         getsubopt.
86470
86471 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86472
86473         More merge from coreutils.
86474
86475         * m4/utimens.m4, m4/utimecmp.m4: New files.
86476         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
86477         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
86478         prereq.m4, sha.m4: Import changes from coreutils.
86479
86480 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86481
86482         More merge from coreutils.
86483         * modules/raise, modules/readtokens0, modules/utimens:
86484         * modules/utimecmp, module/xnanosleep: New files.
86485         * modules/strftime: Add lib/strftime.h.
86486         Change include from <time.h> to "strftime.h".
86487         * modules/yesno: Add lib/yesno.h.
86488         * modules/backupfile: Remove lib/addext.c.
86489         * modules/euidaccess: Add stat-macros.h.
86490         * modules/canonicalize, modules/euidaccess,
86491         modules/filemode, modules/lchown, modules/makepath,
86492         modules/rmdir, modules/stat: Likewise.
86493
86494 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86495
86496         Merge from tar.
86497         * lib/argp-help.c (make_hol, hol_append): Don't assume that
86498         SIZE_MAX is a valid preprocessor constant.
86499         (__argp_basename): Change from "#ifndef _LIBC"
86500         to "#ifndef __argp_short_program_name", so that
86501         we don't compile these functions for tar.
86502
86503         More merges from coreutils.
86504         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
86505         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
86506         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
86507         * lib/addext.c: Remove; no longer needed.
86508         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
86509         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
86510         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
86511         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
86512         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
86513         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
86514         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
86515         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
86516         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86517         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86518         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86519         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86520         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86521         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86522         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86523         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86524         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86525         Import changes from coreutils.
86526
86527 2004-08-05  Simon Josefsson  <jas@extundo.com>
86528
86529         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86530
86531 2004-08-05  Simon Josefsson  <jas@extundo.com>
86532
86533         * m4/getsubopt.m4: New file.
86534
86535 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86536
86537         Merge from coreutils.
86538
86539         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86540         * m4/getcwd-path-max.m4: New files.
86541
86542         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86543         FILESYSTEM_PREFIX_LEN ->
86544         FILE_SYSTEM_PREFIX_LEN.
86545         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86546         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86547         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86548         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86549
86550         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86551         prerequisite modules now handle the DOS stuff.
86552         Don't check for unistd.h.
86553
86554 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86555
86556         Merge from coreutils.
86557
86558         * lib/.gdb-history: Remove; this doesn't belong here.
86559
86560         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86561         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86562         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86563         * lib/getcwd.c: New files.
86564
86565         * lib/dirname.h: Include <stdbool.h>.
86566         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86567         for consistency with POSIX terminology.  All uses changed.
86568         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86569         (strip_trailing_slashes): Use bool for booleans.
86570         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86571
86572         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86573         sometimes returns a positive errno value even when it succeeds.
86574         (print_errno_message) [!LIBC]: Fall back on strerror if
86575         __strerror_r fails.
86576
86577         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86578         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86579         (longest_relative_suffix): New function.
86580         (path_concat): Use it.  Assume first argument is not NULL.
86581         Port to DOS.  Omit redundant separators.
86582         Report an error instead of returning NULL.
86583         Use mempcpy instead of memcpy.
86584         (xpath_concat): Remove: not declared or used.
86585
86586         * lib/same.h: Include <stdbool.h>
86587         (same_name): Return bool, not int.
86588         * lib/same.c (same_name): Likewise.
86589         (errno): Don't declare; we assume C89 or better now.
86590
86591         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86592         if not already defined.
86593
86594         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86595         * lib/dup-safer.c (errno): Likewise.
86596
86597 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86598
86599         Merge from coreutils.
86600         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86601         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86602         * modules/path-concat: Don't depend on strdup.
86603
86604 2004-08-03  Simon Josefsson  <jas@extundo.com>
86605
86606         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86607         * lib/progname.h: Don't include stdbool.h.
86608
86609 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86610
86611         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86612         * MODULES.html.sh (func_all_modules): Remove fatal.
86613
86614 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86615
86616         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86617
86618 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86619
86620         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86621         working.
86622
86623 2004-08-02  Simon Josefsson  <jas@extundo.com>
86624
86625         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86626         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86627         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86628
86629 2004-08-01  Simon Josefsson  <jas@extundo.com>
86630
86631         * lib/xgetdomainname.c: Include stdlib.h, for free().
86632
86633 2004-07-19  Bruno Haible  <bruno@clisp.org>
86634
86635         * MODULES.html.sh (func_all_modules): Add dummy.
86636
86637 2004-07-16  Simon Josefsson  <jas@extundo.com>
86638
86639         * modules/dummy: New file.
86640
86641 2004-07-16  Simon Josefsson  <jas@extundo.com>
86642
86643         * lib/dummy.c: New file.
86644
86645 2004-07-16  Bruno Haible  <bruno@clisp.org>
86646
86647         * lib/backupfile.h: Add extern "C" for C++.
86648         * lib/closeout.h: Likewise.
86649         * lib/copy-file.h: Likewise.
86650         * lib/findprog.h: Likewise.
86651         * lib/full-write.h: Likewise.
86652         * lib/pathname.h: Likewise.
86653         * lib/progname.h: Likewise.
86654         * lib/stpcpy.h: Likewise.
86655         * lib/stpncpy.h: Likewise.
86656         * lib/strcase.h: Likewise.
86657         * lib/strstr.h: Likewise.
86658         * lib/xalloc.h: Likewise.
86659
86660         * lib/mbswidth.h: Add extern "C" for C++.
86661         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86662
86663 2004-07-13  Robert Millan  <robertmh@gnu.org>
86664
86665         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86666
86667 2004-07-09  Simon Josefsson  <jas@extundo.com>
86668
86669         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86670         failed without this.)
86671
86672 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86673
86674         * modules/chown (Files): Add lib/fchown-stub.c, since
86675         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86676
86677 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86678
86679         * lib/fchown-stub.c: New file.
86680
86681 2004-06-24  Jim Meyering  <jim@meyering.net>
86682
86683         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86684
86685 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86686
86687         * modules/argz: Omit "#include".
86688
86689         * MODULES.html.sh (func_all_modules): Add calloc, to match
86690         2004-06-01 addition of calloc module.
86691
86692 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86693
86694         * m4/argz.m4: New file, which is autoupdated from libtool.
86695
86696 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86697
86698         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86699         libtool.
86700
86701 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86702
86703         * config/srclist-update: Don't insist on "USA." before the
86704         close-comment, as libtool omits the period and puts the */ on a
86705         separate line.
86706         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86707         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86708
86709 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86710
86711         * modules/argz: New file.
86712         * MODULES.html.sh (func_all_modules): Add argz.
86713
86714 2004-06-12  Jim Meyering  <jim@meyering.net>
86715         and  Paul Eggert  <eggert@cs.ucla.edu>
86716
86717         * modules/hash (Files): Add lib/xalloc.h.
86718         * modules/pipe (Depends-on): Add wait-process.
86719         * modules/stat (Depends-on): Add xalloc.
86720         * modules/userspec (Files): Add lib/userspec.h.
86721         * modules/xstrto
86722
86723         Upgrade from gettext-0.13.
86724         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86725         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86726         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86727
86728 2004-06-10  Jim Meyering  <jim@meyering.net>
86729
86730         * lib/calloc.c: New file.
86731
86732 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86733
86734         * lib/getdate.y (yylex): Allow space between sign and number.
86735         Problem reported by Dan Jacobson.
86736
86737 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86738
86739         Merge from coreutils CVS.
86740
86741         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86742         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86743         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86744         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86745         xstrtol.m4: Fix copyright date and/or serial number.
86746
86747         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86748         See if we need an fchown replacement.
86749         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86750         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86751         and use the replacement function if we detect either defect.
86752
86753         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86754         gl_UTIMECMP.
86755
86756 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86757         and  Jim Meyering  <jim@meyering.net>
86758
86759         Merge from coreutils CVS.
86760
86761         * lib/stat-macros.h: New file, with contents from file-type.h
86762         and coreutils' system.h.
86763         * lib/file-type.c: Include "stat-macros.h".
86764         * lib/file-type.h (file_type): Move all macro definitions to new file,
86765         stat-macros.h.
86766
86767         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86768         Wrap old code with this conditional.
86769         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86770         function that does not dereference symlinks.
86771         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86772
86773         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86774         dependency problems.
86775         (xreadlink): Accept new arg SIZE, for efficiency.
86776         All decls and uses changed.
86777         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86778
86779         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86780         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86781
86782         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86783         sysexits.h.
86784
86785 2004-06-01  Jim Meyering  <jim@meyering.net>
86786
86787         * m4/calloc.m4: New file.
86788
86789 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86790
86791         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86792         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86793         Also, fix a typo in a diagnostic.
86794
86795 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86796
86797         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86798         or AC_FUNC_REALLOC.
86799
86800 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86801
86802         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86803         macros to be defined.
86804         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86805         the allocator returns NULL because the requested size is zero.
86806
86807 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86808
86809         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86810         var.  Add comment explaining why libc still defines it.  This
86811         merges the following patch from glibc:
86812         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86813
86814 2004-05-20  Andreas Schwab  <schwab@suse.de>
86815
86816         * m4/free.m4: Replace free if it not known to work, not the other
86817         way round.
86818
86819 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86820
86821         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86822         present in glibc since revision 1.1 of this file.
86823         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86824         obstack_alignment_mask, obstack_alloc, obstack_base,
86825         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86826         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86827         obstack_grow0, obstack_init, obstack_int_grow,
86828         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86829         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86830         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86831         nonexistent functions.
86832
86833 2004-05-18  Karl Berry  <karl@gnu.org>
86834
86835         * config/srclist.txt: break link for vasnprintf.c.
86836
86837 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86838
86839         Port obstack to the AS/400, where pointers are 16 bytes wide and
86840         you cannot cast an integer to a valid pointer.  This patch is
86841         currently waiting to be integrated into glibc; see
86842         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86843
86844         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86845         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86846         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86847         (struct obstack): temp member is now a union of a pointer and
86848         an integer, instead of an integer.  All integer uses changed.
86849         This does not affect the physical layout of struct obstack,
86850         except on hosts (like the AS/400) where the size or alignment of
86851         void * is greater than that of ptrdiff_t.
86852         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86853         __STDC__)]: Store temporary in pointer member of union, not
86854         integer member.
86855         * lib/obstack.c: Include <stddef.h>, for offsetof.
86856         (struct fooalign): Remove; it doesn't need a name.
86857         (union fooround): Change double to long double, and add void *.
86858         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86859         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86860         not a macro.  Hence the values are always int; so remove all
86861         casts-to-int in uses.
86862
86863 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86864
86865         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86866         we can get this patch merged into glibc.
86867
86868 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86869             Paul Eggert  <eggert@cs.ucla.edu>
86870
86871         * m4/argp: Depend on alloca.
86872
86873 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86874             Paul Eggert  <eggert@cs.ucla.edu>
86875
86876         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86877         freecoding.
86878
86879 2004-05-17  Bruno Haible  <bruno@clisp.org>
86880
86881         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86882         precision that consists of a '.' followed by an empty digit string.
86883         Patch by Tor Lillqvist <tml@iki.fi>.
86884
86885 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86886
86887         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86888         for backward compatibility with older code.  We need our own
86889         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86890         it under some other name, and our alloca.h will define it.
86891
86892 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86893             Derek Price  <derek@ximbiot.com>
86894
86895         * lib/alloca.c: Include <alloca.h>, to get our interface.
86896         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86897         include <alloca.h> first.  Use C89 prototype for alloca; this
86898         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86899         Use #elif for simplicity, since we can assume C89 now.
86900         Don't try to source the system alloca.h since it will not be found
86901         and to prevent recursively including its replacement.
86902         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86903         * lib/regex.c: Likewise.
86904
86905 2004-05-16  Derek Price  <derek@ximbiot.com>
86906             Paul Eggert  <eggert@cs.ucla.edu>
86907
86908         getline cleanup.  This changes the getndelim2 API: both order of
86909         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86910         no delimiter).
86911
86912         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86913         interface does that.
86914         (getline): Always use getdelim, so that we don't have two
86915         copies of this code.
86916         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86917         if available.
86918         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86919         (GETNDELIM2_MAXIMUM): New macro.
86920         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86921         instead of the old practice of delim2==0.  All callers changed.
86922         Return -1 on overflow, instead of returning junk.
86923         Do not set *linesize unless allocation succeeds.
86924         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86925         that we include sys/types.h.
86926         * lib/getnline.h: Likewise.
86927         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86928         (getndelim2): Reorder arguments.
86929         * lib/getnline.c (getnline, getndelim):
86930         Don't discard the NMAX argument.
86931         (getnline): Invoke getndelim, to avoid code duplication.
86932         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86933         of (size_t) -1 by callers of the getnline family.
86934
86935 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86936
86937         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86938         Check for gettimeofday.
86939         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86940         Check for settimeofday, stime.
86941
86942 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86943
86944         * lib/nanosleep.c (suspended): Change its type from int to
86945         sig_atomic_t volatile.
86946         (first_call): Make it private to rpl_nanosleep, and have it
86947         be zero initially as that's a bit faster.
86948         (my_usleep): Round up fractional times instead of truncating them,
86949         as this is the usual meaning for 'sleep'.
86950
86951         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86952         doesn't work.
86953         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86954         (ENOSYS): Define if not defined.
86955         (settime): Fall back on stime if it exists and settimeofday fails.
86956         But don't bother with fallbacks if a method fails with errno == EPERM.
86957
86958 2004-05-11  Jim Meyering  <jim@meyering.net>
86959
86960         Prior to this change, the save_cwd caller required read access to the
86961         current directory on most systems (ones with the fchdir function).
86962
86963         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86964         fails, try write-only, and finally, resort to using xgetcwd.
86965
86966 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86967
86968         * lib/obstack.c, obstack.h: Import changes from libc.
86969
86970 2004-04-28  Bruno Haible  <bruno@clisp.org>
86971
86972         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86973         also implicitly appends .exe to executables.
86974         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86975         accepts Windows pathnames.
86976         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86977         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86978         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86979         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86980         Reported by Derek Robert Price <derek@ximbiot.com>.
86981
86982 2004-04-21  Karl Berry  <karl@gnu.org>
86983
86984         * config/srclist.txt (localcharset.c): break sync.
86985
86986 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86987
86988         * m4/host-os.m4: Add a copyright notice.
86989
86990 2004-04-20  Jim Meyering  <jim@meyering.net>
86991
86992         Change UTILS_ to gl_ in AC_DEFINE'd names.
86993         Change utils_- and jm_-prefixed variables, too.
86994         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86995         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86996         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86997
86998         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86999         Don't emit trailing blanks.
87000         Also rename jm_-prefixed variables to have gl_ prefix.
87001
87002         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
87003         Also rename jm_-prefixed variables to have gl_ prefix.
87004
87005         * m4/jm-macros.m4: Reflect the renamings.
87006         * m4/prereq.m4: Likewise.
87007
87008 2004-04-20  Jim Meyering  <jim@meyering.net>
87009
87010         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
87011         memory.
87012
87013 2004-04-20  Jim Meyering  <jim@meyering.net>
87014             Bruno Haible  <bruno@clisp.org>
87015
87016         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
87017         memory when realloc fails.
87018
87019 2004-04-19  Jim Meyering  <jim@meyering.net>
87020
87021         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
87022         now that readutmp.c may call `free (0)'.
87023
87024 2004-04-19  Bruno Haible  <bruno@clisp.org>
87025
87026         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
87027         * m4/inttypes_h.m4: Likewise.
87028         * m4/stdint_h.m4: Likewise.
87029         * m4/intmax_t.m4: Likewise.
87030         * m4/uintmax_t.m4: Likewise.
87031
87032 2004-04-18  Jim Meyering  <jim@meyering.net>
87033
87034         * m4/prereq.m4: Don't forbid jm_ prefix.
87035
87036         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87037         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87038         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87039         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87040         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87041         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87042         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87043         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87044         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87045         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87046         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87047         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87048         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87049         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87050         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87051         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87052         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87053         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87054         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87055
87056 2004-04-18  Jim Meyering  <jim@meyering.net>
87057
87058         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87059         failure, don't leak memory and do call END_UTMP_ENT.
87060
87061 2004-04-16  Jim Meyering  <jim@meyering.net>
87062
87063         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87064         coreutils' stat program.
87065         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87066
87067 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87068
87069         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87070         C89.
87071         (CHAR_BIT): Remove, since we assume C89.
87072         Include <stdint.h> if available, as per current Autoconf CVS advice.
87073
87074 2004-03-31  Jim Meyering  <jim@meyering.net>
87075
87076         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87077         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87078         * m4/xalloc.m4: Likewise.
87079
87080 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87081
87082         Merge from coreutils.
87083
87084         * m4/inttostr.m4: New file.
87085         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87086         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87087         Require gl_CLOCK_TIME.
87088         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87089
87090 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87091
87092         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87093         not bool, to be more consistent with Unix conventions.
87094         Suggested by Bruno Haible.
87095
87096         Merge from coreutils.
87097
87098         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87099         * lib/umaxtostr.c: New files.
87100
87101         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87102         the usual <time.h> dance.
87103         (get_date): Change signature to support fractional time stamps.
87104         All callers changed.
87105         * lib/getdate.y: Include "getdate.h" first, as we can now
87106         assume C89 and don't need to worry about 'const'.
87107         Similarly, include "unlocked-io.h" near start, not in middle.
87108         Include <limits.h>.
87109         (textint.value): Use long int rather than int.
87110         (textint.digits): Use size_t rather than int.
87111         (BILLION, LOG10_BILLION): New constants.
87112         (parser_control): New member rel_ns.  Members day_ordinal,
87113         time_zone, month, day, hour, minutes, rel_year, rel_month,
87114         rel_day, rel_hour, rel_minutes, rel_seconds
87115         are now long int, not int.  Member seconds is now struct timespec,
87116         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87117         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87118         not int.
87119         (%union.intval): Now long int, not int.
87120         New member timespec.
87121         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87122         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87123         (spec): Now is a timespec or an item list.
87124         (timespec, items): New nonterminals.
87125         (time, rel, relunit, number, get_date):
87126         Add support for fractional seconds.
87127         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87128         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87129         (to_hour): First arg is now long int, not int.
87130         (to_year): Returns long int, not int.
87131         Don't treat year -70 like 70.
87132         (tm_diff): Returns long int, not int.
87133         (lookup_word): Use bool instead of int when appropriate.
87134         (yylex): Use size_t for count, not int.
87135         Detect overflow when parsing large integer constants.
87136         Add support for fractions.
87137         (get_date): Make pointers 'const' if possible.
87138         Use more-portable code to detect integer overflow.
87139         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87140         Don't use ctime; it's not reliable if the year has >4 digits.
87141
87142         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87143         This is for compatibility with BSD.
87144
87145         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87146         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87147         From coreutils' system.h.
87148
87149         * lib/userspec.c: Don't include "posixver.h".
87150         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87151         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87152         compatible extension.  Simplify code by removing a boolean int
87153         that was always nonzero if a string was nonnull.
87154
87155 2004-03-30  Jim Meyering  <jim@meyering.net>
87156
87157         Merge from coreutils.
87158
87159         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87160         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87161         on some systems one must include <grp.h> before it.
87162         Reported by Christian Krackowizer.
87163
87164 2004-03-30  Jim Meyering  <jim@meyering.net>
87165
87166         Merge from coreutils.
87167
87168         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87169
87170         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87171         an empty input stream.
87172
87173         * lib/readtokens.c: Include <stdbool.h>.
87174         (readtoken): Use `size_t' rather than int/long.
87175         All callers adjusted.
87176         Use `bool' rather than `int' where appropriate.
87177         Use memset rather than an explicit loop.
87178         Use x2nrealloc rather than xrealloc.
87179         Allow the use of `\0' as a delimiter.
87180         (readtokens): Likewise.
87181         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87182
87183 2004-03-30  Jim Meyering  <jim@meyering.net>
87184
87185         * m4/realloc.m4: Remove file, since now it does no more than
87186         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87187         the `configure.ac' section of module/realloc.
87188         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87189
87190 2004-03-30  Bruno Haible  <bruno@clisp.org>
87191
87192         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87193         nonnull.
87194
87195 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87196
87197         Merge changes to getloadavg.c from coreutils and Emacs.
87198
87199         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87200         Define to an expression, not to the empty string.
87201         Include cloexec.h and xalloc.h.
87202         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87203         Use set_cloexec_flag rather than rolling our own.
87204         * lib/cloexec.c, lib/cloexec.h: New files.
87205
87206 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87207
87208         * m4/cloexec.m4: New file.
87209
87210 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87211
87212         * lib/getopt.h: Sync with libc CVS.
87213
87214 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87215             Bruno Haible  <bruno@clisp.org>
87216
87217         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87218         mbswidth.
87219
87220 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87221             Bruno Haible  <bruno@clisp.org>
87222
87223         * lib/mbswidth.h: Include <wchar.h> only if
87224         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87225         <wchar.h>.
87226         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87227
87228 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87229
87230         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87231         Sync with libc CVS.
87232         * lib/getopt_int.h: New file, also synced from libc.
87233
87234 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87235
87236         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87237         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87238         Bring back getopt.c, getopt.h, getopt1.c.
87239
87240 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87241
87242         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87243         All uses changed.  Check for sa_sigaction member; this fixes
87244         a bug first reported by Jason Andrade in
87245         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87246
87247 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87248
87249         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87250         '#if' expressions.  Unlike the code it replaces, it does not
87251         depend on (defined _SC_PAGESIZE).  However, it does depend on
87252         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87253         first reported by Jason Andrade in
87254         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87255
87256 2004-02-25  Simon Josefsson  <jas@extundo.com>
87257
87258         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87259
87260 2004-02-25  Simon Josefsson  <jas@extundo.com>
87261
87262         * lib/strdup.h: New file.
87263         * lib/strdup.c: Include it.
87264         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87265         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87266
87267 2004-02-23  Karl Berry  <karl@gnu.org>
87268
87269         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87270         (from fencepost.gnu.org:/gd/gnuorg).
87271
87272 2004-02-23  Karl Berry  <karl@gnu.org>
87273
87274         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87275         * config/srclist.txt: add maintain/standards documents.
87276
87277 2004-02-18  Bruno Haible  <bruno@clisp.org>
87278
87279         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87280         Reported by Derek Robert Price <derek@ximbiot.com>.
87281
87282 2004-02-16  Karl Berry  <karl@gnu.org>
87283
87284         * config/mkinstalldirs, install-sh: update from automake.
87285
87286 2004-02-06  Karl Berry  <karl@gnu.org>
87287
87288         * m4/po.m4: update from gettext 0.14.1.
87289
87290 2004-02-06  Karl Berry  <karl@gnu.org>
87291
87292         * lib/config.charset: update from gettext 0.14.1.
87293
87294 2004-02-05  Paul Eggert  <eggert@twinsun.com>
87295
87296         Add comments and code, prompted by suggestions from Bruno Haible
87297         for sh-quote.
87298         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
87299         describing the enum quoting_style values.
87300         * lib/quotearg.c (quotearg_alloc): New function.
87301         (quotearg_buffer_restyled): Treat lone { and } as special.
87302         Treat = as special.  Work around bug with older shells
87303         that "see" a '\' that is really the 2nd byte of a multibyte char.
87304         Quote empty string with shell_quoting_style.
87305
87306 2004-02-03  Bruno Haible  <bruno@clisp.org>
87307
87308         * m4/pipe.m4: New file, from GNU gettext.
87309
87310 2004-02-03  Bruno Haible  <bruno@clisp.org>
87311
87312         * lib/pipe.h: New file, from GNU gettext.
87313         * lib/pipe.c: New file, from GNU gettext.
87314
87315 2004-01-27  Bruno Haible  <bruno@clisp.org>
87316
87317         * m4/execute.m4: New file, from GNU gettext.
87318
87319 2004-01-27  Bruno Haible  <bruno@clisp.org>
87320
87321         * lib/execute.h: New file, from GNU gettext.
87322         * lib/execute.c: New file, from GNU gettext.
87323         * lib/w32spawn.h: New file, from GNU gettext.
87324
87325 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87326
87327         Merge from diffutils.
87328
87329         * lib/file-type.c (file_type): Add typed memory objects.
87330         * lib/file-type.h (S_TYPEISTMO): New macro.
87331
87332         * lib/c-stack.h (c_stack_action): Remove argv argument.
87333         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87334         (die): Don't calculate message unless segv_action returns.
87335         (get_stack_location, min_address_from_argv, max_address_from_argv,
87336         volatile stack_base, volatile_stack_size): Remove.
87337         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87338         that every segmentation violation is a stack overflow.  (Ouch!)
87339         See Debian bug 136249 (still outstanding) for more info about why
87340         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87341
87342 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87343
87344         Exit-status fix from coreutils.
87345
87346         Use exit_failure consistently in place of EXIT_FAILURE,
87347         so that program exit statuses are consistent on failure.
87348
87349         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87350         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87351         * lib/argmatch.h: Comment fix to match the above.
87352         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87353         Now a macro referring to exit_failure, instead of a separate
87354         variable.  Include "exitfail.h" to get it.
87355         * lib/xstrtol.h: Include "exitfail.h".
87356         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87357
87358         * lib/long-options.c (parse_long_options): Use prototype
87359         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87360         for clarity.
87361
87362 2004-01-21  Jim Meyering  <jim@meyering.net>
87363
87364         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
87365         so as not to conflict with a different-sized __mktime_internal
87366         function in GNU libc.
87367         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
87368         Problem building statically-linked `ls' reported by Michael Brunnbauer.
87369
87370 2004-01-20  Karl Berry  <karl@gnu.org>
87371
87372         * config/config.guess: update from config.
87373
87374         * config/srclistvars.sh: GNUWWWLICENSES for karl.
87375
87376 2004-01-20  Bruno Haible  <bruno@clisp.org>
87377
87378         Safer stack allocation.
87379         * lib/setenv.c: Include allocsa.h.
87380         (alloca): Remove fallback definition.
87381         (freea): Remove macro.
87382         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
87383         instead of freea.
87384
87385 2004-01-20  Bruno Haible  <bruno@clisp.org>
87386
87387         * m4/eealloc.m4: New file, from GNU gettext.
87388
87389 2004-01-20  Bruno Haible  <bruno@clisp.org>
87390
87391         * m4/allocsa.m4: New file, from GNU gettext.
87392
87393 2004-01-20  Bruno Haible  <bruno@clisp.org>
87394
87395         * lib/xallocsa.h: New file, from GNU gettext.
87396         * lib/xallocsa.c: New file, from GNU gettext.
87397
87398 2004-01-20  Bruno Haible  <bruno@clisp.org>
87399
87400         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
87401
87402 2004-01-20  Bruno Haible  <bruno@clisp.org>
87403
87404         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
87405         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
87406         specially.
87407
87408 2004-01-20  Bruno Haible  <bruno@clisp.org>
87409
87410         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
87411         patch.
87412
87413 2004-01-20  Bruno Haible  <bruno@clisp.org>
87414
87415         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
87416
87417 2004-01-20  Bruno Haible  <bruno@clisp.org>
87418
87419         * lib/eealloc.h: New file.
87420
87421 2004-01-20  Bruno Haible  <bruno@clisp.org>
87422
87423         * lib/binary-io.h: Avoid warnings on Cygwin.
87424
87425 2004-01-20  Bruno Haible  <bruno@clisp.org>
87426
87427         * lib/allocsa.h: New file, from GNU gettext.
87428         * lib/allocsa.c: New file, from GNU gettext.
87429
87430 2004-01-18  Karl Berry  <karl@gnu.org>
87431
87432         * doc/gpl.texi, doc/lgpl.texi: new files.
87433
87434 2004-01-18  Karl Berry  <karl@gnu.org>
87435
87436         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87437         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87438
87439 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87440
87441         Merge from coreutils.
87442
87443         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
87444         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
87445         (gl_DEFAULT_POSIX2_VERSION): Move
87446         the documentation from 'configure' into 'config.hin',
87447         so that 'configure --help' isn't burdened by it and
87448         we don't have to worry about its formatting there.
87449         Reword the documentation so that it's more succinct
87450         and can be run together into a single paragraph.
87451         * m4/same.m4 (gl_SAME): Check for pathconf.
87452
87453 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87454
87455         Merge from coreutils.
87456
87457         * lib/posixver.c: Include posixver.h.
87458
87459         * lib/same.c: Include <stdbool.h>, <limits.h>.
87460         (_POSIX_NAME_MAX): Define if not defined.
87461         (MIN): New macro.
87462         (same_name): If file names are silently truncated, report
87463         that the file names are the same if they are the same after
87464         the silent truncation.
87465
87466         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87467         conversion function.
87468         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87469         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87470         longer needed.
87471
87472 2004-01-15  Jim Meyering  <jim@meyering.net>
87473
87474         Merge from coreutils.
87475
87476         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
87477         if no library is required.
87478         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
87479         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
87480         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
87481         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
87482         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
87483         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
87484         value, $ac_cv_search_crypt, if it's "none required".
87485         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
87486         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
87487         not gl_FUNC_GETLOADAVG.
87488         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
87489         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
87490
87491 2004-01-15  Jim Meyering  <jim@meyering.net>
87492
87493         Merge from coreutils.
87494
87495         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
87496         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
87497         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
87498
87499         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
87500         optional configure-time default.
87501
87502         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87503
87504         * lib/xreadlink.c (xreadlink): Correct outdated comment.
87505
87506 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
87507
87508         Merge from coreutils.
87509
87510         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
87511         value, $ac_cv_search_nanosleep, if it's "none required".
87512
87513 2004-01-14  Paul Eggert  <eggert@twinsun.com>
87514
87515         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
87516         with like-named macro in fnmatch.c.
87517         (EXT): Use an internal constant instead.
87518
87519         Merge fnmatch patches from glibc.
87520         * lib/fnmatch.c (mbsinit): Remove define.
87521         Add libc_hidden_ver (__fnmatch, fnmatch).
87522         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87523         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87524
87525 2004-01-14  Karl Berry  <karl@gnu.org>
87526
87527         * config/install-sh: update from automake.
87528
87529 2004-01-13  Karl Berry  <karl@gnu.org>
87530
87531         * config/install-sh: update from automake.
87532
87533 2004-01-09  Karl Berry  <karl@gnu.org>
87534
87535         * config/install-sh: update from automake.
87536
87537 2004-01-05  Karl Berry  <karl@gnu.org>
87538
87539         * config/config.{sub,guess}: update from config.
87540
87541 2003-12-31  Karl Berry  <karl@gnu.org>
87542
87543         * config/depcomp: update from automake.
87544
87545 2003-12-14  Karl Berry  <karl@gnu.org>
87546
87547         * lib/config.charset: update from gettext-runtime.
87548
87549 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87550
87551         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87552         Bug reported by Alfred M. Szmidt.
87553
87554 2003-12-03  Bruno Haible  <bruno@clisp.org>
87555
87556         * m4/gettext.m4: Upgrade from gettext-0.13.
87557         * m4/po.m4: Upgrade from gettext-0.13.
87558         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87559         * m4/intmax.m4: New file, from gettext-0.13.
87560         * m4/printf-posix.m4: New file, from gettext-0.13.
87561
87562 2003-11-29  Karl Berry  <karl@gnu.org>
87563
87564         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87565
87566 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87567             Bruno Haible  <bruno@clisp.org>
87568
87569         * lib/printf-parse.h: Don't include sys/types.h.
87570         (ARG_NONE): New macro.
87571         (char_directive): Change type of *arg_index fields to size_t.
87572         * lib/printf-parse.c: Don't include sys/types.h.
87573         (SSIZE_MAX): Remove macro.
87574         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87575         Remove unnecessary overflow check.
87576         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87577         fields.
87578
87579 2003-11-25  Bruno Haible  <bruno@clisp.org>
87580
87581         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87582
87583 2003-11-25  Bruno Haible  <bruno@clisp.org>
87584
87585         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87586         gt_TYPE_SSIZE_T.
87587
87588 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87589
87590         * modules/alloca: Remove dependency on xalloc.
87591
87592 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87593
87594         * lib/alloca.c: Remove dependency on xalloc module.
87595         (xalloc_die): Remove.
87596         (memory_full) [!defined emacs]: New macro.
87597         [!defined emacs]: Don't include xalloc.h.
87598         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87599         address arithmetic overflows.  Change datatypes a bit to avoid
87600         unnecessary casts.
87601
87602 2003-11-22  Jim Meyering  <jim@meyering.net>
87603
87604         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87605         s/size/size_t/.
87606
87607 2003-11-21  Karl Berry  <karl@gnu.org>
87608
87609         * config/config.{sub,guess}: update from config.
87610
87611 2003-11-18  Karl Berry  <karl@gnu.org>
87612
87613         * config/config.{sub,guess}: update from config.
87614
87615         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87616
87617 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87618
87619         * README: Mention that S+T cannot overflow if S is the size of
87620         an existing object and T is sufficiently small.
87621
87622 2003-11-17  Jim Meyering  <jim@meyering.net>
87623
87624         On systems without utime and without a utimes function capable of
87625         dealing with a NULL struct utimbuf* argument, this utime replacement
87626         could -- in unusual circumstances -- leak a file descriptor.
87627         * lib/utime.c: Include <unistd.h> and <errno.h>.
87628         (utime_null): Be sure to close `fd' and to preserve errno.
87629         Reported by Geoff Collyer via Arnold Robbins.
87630
87631 2003-11-17  Bruno Haible  <bruno@clisp.org>
87632
87633         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87634         (Depends-on): Add xsize.
87635
87636 2003-11-17  Bruno Haible  <bruno@clisp.org>
87637
87638         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87639
87640 2003-11-17  Bruno Haible  <bruno@clisp.org>
87641
87642         * lib/vasnprintf.c (alloca): Remove fallback definition.
87643         (freea): Remove definition.
87644         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87645         Reported by Paul Eggert.
87646
87647 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87648             Bruno Haible  <bruno@clisp.org>
87649
87650         Protect against address arithmetic overflow.
87651         * lib/printf-args.h: Include stddef.h.
87652         (arguments): Change type of field 'count' to size_t.
87653         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87654         'unsigned int' where appropriate.
87655         * lib/printf-parse.h: Include sys/types.h.
87656         (char_directive): Change type of *arg_index fields to ssize_t.
87657         (char_directives): Change type of fields 'count', max_*_length to
87658         size_t.
87659         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87660         (SSIZE_MAX): Define fallback value.
87661         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87662         instead of 'int' where appropriate. Check a_allocated, d_allocated
87663         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87664         * lib/vasnprintf.c: Include xsize.h.
87665         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87666         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87667         overflow. Avoid wraparound when converting a width or precision from
87668         decimal to binary.
87669
87670 2003-11-16  Bruno Haible  <bruno@clisp.org>
87671
87672         Update from GNU gettext.
87673         * lib/printf-parse.c: Generalize to it can be compiled for wide
87674         strings.
87675         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87676         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87677         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87678         SNPRINTF): New macros.
87679         Don't include <alloca.h> if the file is used inside libintl.
87680         (local_wcslen): New function, for Solaris 2.5.1.
87681         (VASNPRINTF): Use it instead of wcslen.
87682
87683 2003-11-16  Bruno Haible  <bruno@clisp.org>
87684
87685         * lib/xsize.h (xmax): New function.
87686         (xsum, xsum3, xsum4): Declare as "pure" functions.
87687
87688 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87689
87690         * modules/xalloc (Files): Undo latest change, since xalloc.h
87691         no longer needs SIZE_MAX or PTRDIFF_MAX.
87692
87693 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87694
87695         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87696         gl_PTRDIFF_MAX.
87697
87698 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87699
87700         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87701         "return", to pacify some unknown compiler.  Problem reported
87702         by Joerg Schilling.
87703
87704 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87705
87706         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87707         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87708         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87709         heuristic is just as accurate as far as we know, and it removes a
87710         dependency on size_max.m4 and ptrdiff_max.m4.
87711
87712 2003-11-11  Bruno Haible  <bruno@clisp.org>
87713
87714         * modules/xsize (Files): Add m4/size_max.m4.
87715         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87716
87717 2003-11-11  Bruno Haible  <bruno@clisp.org>
87718
87719         * m4/size_max.m4: New file.
87720         * m4/ptrdiff_max.m4: New file.
87721         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87722         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87723         (gl_XALLOC): Invoke it.
87724
87725 2003-11-11  Bruno Haible  <bruno@clisp.org>
87726
87727         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87728         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87729         defined.
87730
87731 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87732
87733         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87734         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87735         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87736         From Bruno Haible.
87737         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87738         not (size_t) -1, since it's defined here.
87739
87740 2003-11-09  Karl Berry  <karl@gnu.org>
87741
87742         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87743
87744 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87745
87746         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87747         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87748         Reject sizes of exactly SIZE_MAX bytes.
87749         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87750         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87751
87752 2003-11-05  Bruno Haible  <bruno@clisp.org>
87753
87754         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87755         SIZE_MAX defined in <limits.h> on Solaris.
87756
87757 2003-11-04  Jim Meyering  <jim@meyering.net>
87758
87759         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87760         variable names, rather than @VAR@.
87761         * modules/poll: Likewise.
87762
87763 2003-11-04  Bruno Haible  <bruno@clisp.org>
87764
87765         * modules/xsize: New file.
87766         * modules/linebreak: Depend on xsize.
87767         * MODULES.html.sh (func_all_modules): Add xsize.
87768
87769 2003-11-04  Bruno Haible  <bruno@clisp.org>
87770
87771         * m4/xsize.m4: New file.
87772
87773 2003-11-04  Bruno Haible  <bruno@clisp.org>
87774
87775         * lib/xsize.h: New file.
87776         * lib/linebreak.c: Include xsize.h.
87777         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87778         argument for overflow.
87779         Suggested by Paul Eggert.
87780
87781 2003-11-03  Karl Berry  <karl@gnu.org>
87782
87783         * config/config.{guess,sub}: update from config.
87784
87785 2003-11-03  Jim Meyering  <jim@meyering.net>
87786
87787         * modules/userspec (lib_SOURCES): Add userspec.h.
87788         (Include): Add "userspec.h".
87789         Improve description.
87790
87791 2003-11-03  Jim Meyering  <jim@meyering.net>
87792
87793         * lib/userspec.c: Include "userspec.h".
87794         * lib/userspec.h: New file.
87795
87796 2003-11-03  Bruno Haible  <bruno@clisp.org>
87797
87798         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87799
87800 2003-11-03  Bruno Haible  <bruno@clisp.org>
87801
87802         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87803         available, to avoid (extremely rare) race condition.
87804         Suggested by Paul Eggert.
87805
87806 2003-11-02  Karl Berry  <karl@gnu.org>
87807
87808         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87809
87810 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87811
87812         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87813         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87814         (read_filesystem_list): Set and use me_type_malloced.
87815         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87816         whatever the type happens to be), for brevity and consistency.
87817         Check for size calculation overflow on Alphas running OSF/1.
87818
87819 2003-10-31  Jim Meyering  <jim@meyering.net>
87820
87821         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87822
87823         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87824
87825 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87826             Bruno Haible  <bruno@clisp.org>
87827
87828         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87829         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87830
87831 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87832
87833         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87834         netbsd*-gnu*.  Suggested by Robert Millan.
87835
87836 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87837
87838         * modules/group-member: Depend on stdbool.
87839
87840 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87841
87842         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87843
87844 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87845
87846         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87847         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87848         after the 'gnu' in these cases.  This fixes some bugs in the
87849         previous change, and is based on suggestions by Robert Millan.
87850
87851 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87852
87853         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87854         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87855         no longer needed.
87856         * lib/quotearg.c (quotearg_n_options): Use it.
87857         * lib/group-member.c: Include <stdbool.h>.
87858         (free_group_info): Arg is now const *; don't free arg.
87859         (get_group_info): Now returns bool and accepts struct group_info *,
87860         rather than returning a malloc'ed struct group_info *.
87861         All uses changed.  Check for overflow in internal size calculation.
87862
87863         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87864         rather than xmalloc/xrealloc.
87865         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87866         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87867         conformance bug: the old code used a pointer after freeing the
87868         storage that it addressed.
87869         * lib/hash.c (hash_initialize): Simplify the code by using
87870         xalloc_oversized rather than doing it by hand.
87871         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87872         the buffer preserved.  Use free and xmalloc instead.
87873         * lib/quotearg.c (quotearg_n_options): Likewise.
87874         Use a simpler test for size overflow.  Don't use xalloc_oversized
87875         because unsigned int might be wider than size_t (!); this suggests
87876         that we should switch from unsigned int to size_t for slot numbers.
87877
87878 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87879
87880         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87881         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87882         NetBSD kernels.  Requested by Richard Stallman.
87883
87884 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87885
87886         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87887         to allocate the returned structure.  Do not allocate a subarray,
87888         as x2nrealloc will do that.
87889         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87890         instead of xnrealloc.
87891         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87892
87893 2003-10-27  Bruno Haible  <bruno@clisp.org>
87894
87895         * lib/stdbool_.h: Better support for BeOS.
87896
87897 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87898
87899         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87900         now uses inline.
87901
87902 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87903
87904         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87905         callers that want to do their own size-overflow checking.  Include
87906         <stdbool.h>, since xalloc_oversized returns bool.
87907         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87908         to use xalloc_oversized.
87909
87910         Add two functions x2realloc, x2nrealloc, for programs that grow
87911         arrays dynamically by doubling their sizes.
87912         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87913         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87914         New functions.
87915
87916         Port to C99 semantics for 'inline' of external functions.
87917         Bug reported by Bruno Haible.
87918         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87919         with the old contents of xnmalloc.
87920         (xnmalloc, xmalloc): Use it.
87921         (xnrealloc_inline): New static inline function,
87922         with the old contents of xnrealloc.
87923         (xnrealloc, xrealloc): Use it.
87924
87925         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87926         that.
87927
87928 2003-10-26  Karl Berry  <karl@gnu.org>
87929
87930         * config/srclist.txt (COPYING.DOC): no longer available from
87931         /gd/gnuorg; don't know where the ultimate source is.
87932
87933 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87934
87935         Fix several address-calculation bugs in the hash modules,
87936         plus some minor code cleanup.
87937
87938         * lib/hash.h: Include <stdbool.h>, for bool.
87939         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87940         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87941         hash_get_n_entries, hash_get_max_bucket_length,
87942         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87943         hash_rehash): Use size_t rather than unsigned.
87944         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87945         hash_get_n_buckets_used, hash_get_n_entries,
87946         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87947         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87948         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87949         Likewise.
87950         (SIZE_MAX): Define if not defined.
87951         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87952         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87953         hash_print):
87954         Use const * when possible.
87955         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87956         (check_tuning): Fix bug: if tuning parameters were very close to
87957         0 or 1, rounding errors could have caused subscript violations.
87958         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87959         (hash_initialize): Add 'fail:' label
87960         to free table and return NULL, and use it to simplify code.
87961         Use calloc rather than clearing the storage ourself.
87962         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87963         buffer size calculations.
87964         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87965         Include <stddef.h>, for size_t.
87966         * lib/hash-pjw.c (hash_pjw): Likewise.
87967         Switch to method described by Bruno Haible.
87968         Include <limits.h>, for CHAR_BIT.
87969         (SIZE_BITS): New macro.
87970
87971 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87972
87973         * m4/getline.m4 (AM_FUNC_GETLINE):
87974         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87975         hosts.  Problem reported by Derek Robert Price in
87976         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87977         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87978         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87979
87980 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87981
87982         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87983         ceiling the allocation at NMAX bytes rather than silently
87984         discarding input bytes before NMAX is reached.  This makes
87985         a difference only if NMAX exceeds SIZE_MAX / 2.
87986
87987         * lib/obstack.c: Merge from glibc.
87988         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87989         Add libc_hidden_def (_obstack_newchunk).
87990         (_obstack_free) [! defined _LIBC]: Remove.
87991         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87992         a clone of the function body.
87993         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87994         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87995
87996         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87997         glibc.
87998         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87999         arg to memcpy.
88000
88001         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
88002         (obstack_ptr_grow_fast, obstack_int_grow_fast):
88003         Don't use lvalue casts, as GCC plans to remove support for them
88004         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
88005         was also present in the non-GCC version, indicating that this
88006         code had always been buggy and had never been widely used.
88007         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
88008         Use the fast variant of each macro, rather than copying the
88009         definiens of the fast variant; that way, we'll be more likely to
88010         catch future bugs in the fast variants.
88011
88012 2003-10-20  Bruno Haible  <bruno@clisp.org>
88013
88014         * modules/wait-process: New file.
88015         * MODULES.html.sh (func_all_modules): Add wait-process.
88016
88017 2003-10-20  Bruno Haible  <bruno@clisp.org>
88018
88019         * m4/wait-process.m4: New file.
88020
88021 2003-10-20  Bruno Haible  <bruno@clisp.org>
88022
88023         * lib/wait-process.h: New file, from GNU gettext.
88024         * lib/wait-process.c: New file, from GNU gettext.
88025
88026 2003-10-19  Jim Meyering  <jim@meyering.net>
88027
88028         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
88029         HPUX 10.20.
88030
88031 2003-10-18  Karl Berry  <karl@gnu.org>
88032
88033         * config/config.guess: update from config.
88034
88035 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88036
88037         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88038         (getgroups): First arg is int, not size_t.
88039         Don't let 'free' mangle errno.
88040
88041 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88042
88043         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88044
88045 2003-10-16  Karl Berry  <karl@gnu.org>
88046
88047         * config/config.{guess,sub}: update from config.
88048
88049 2003-10-16  Jim Meyering  <jim@meyering.net>
88050
88051         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88052         memcpy.
88053
88054 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88055
88056         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88057         (SIZE_MAX): Remove.
88058         (new_exclude, add_exclude_file): Initial size no longer needs to
88059         be a power of 2.
88060         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88061         our own address arithmetic overflow checking.
88062
88063         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88064         (fnmatch): Do not alloca more than 2000 wide characters;
88065         instead, use malloc for large buffers.
88066         Check for address arithmetic overflow, and return -1
88067         with errno set to ENOMEM in that case.
88068         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88069         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88070         instead, return -1.  Check for address arithmetic overflow.
88071
88072 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88073
88074         Handle invalid suffixes and overflow independently, so that
88075         callers can treat them independently as needed.  Fix some bugs in
88076         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88077         suffix for a human-readable blocksize.  The major caller-visible
88078         change is the addition of a new
88079         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88080         that both overflow and suffix chars were found.
88081
88082         * lib/human.c (humblock): Don't check separately for invalid suffix
88083         char; that is xstrtoumax's job (now that its bug is fixed).
88084         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88085         INTMAX_MAX]: New macros.
88086         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88087         TYPE_MAXIMUM): New macros.
88088         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88089         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88090         if overflow occurs, as it's what __strtol does and it's more useful
88091         in practice.
88092         (__xstrtol): If __strtol reports some error other than ERANGE,
88093         reflect it to the caller as LONGINT_INVALID.  If it reports
88094         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88095         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88096         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88097         value.
88098         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88099         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88100         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88101         [defined UINTMAX_MAX]: New macros.
88102
88103 2003-10-14  Bruno Haible  <bruno@clisp.org>
88104
88105         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88106
88107 2003-10-14  Bruno Haible  <bruno@clisp.org>
88108
88109         * m4/sig_atomic_t: New file, from GNU gettext.
88110         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88111
88112 2003-10-14  Bruno Haible  <bruno@clisp.org>
88113
88114         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88115         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88116         Also use volatile where needed.
88117
88118 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88119
88120         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88121         Change maintainer from Bruno Haible to 'all'.
88122
88123 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88124
88125         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88126
88127 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88128
88129         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88130         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88131         and define in terms of the other primitives.
88132         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88133         (SIZE_MAX): Define if not already defined.
88134         (array_size_overflow): New function.
88135         (xalloc_die): Abort instead of exiting if 'error' returns.
88136         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88137         (xmalloc, xrealloc): Use them.
88138         (xcalloc): Check for address arithmetic overflow.
88139         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88140         a bit faster than strcpy.
88141
88142 2003-10-10  Simon Josefsson  <jas@extundo.com>
88143
88144         * modules/argp (Depends-on): Add restrict and strcase.
88145
88146 2003-10-10  Simon Josefsson  <jas@extundo.com>
88147
88148         * m4/argp.m4: Add AC_C_INLINE.
88149
88150 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88151
88152         Merge getpass from libc, plus a few fixes.
88153
88154         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88155         Include <stdbool.h>.
88156         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88157         __fsetlocking to empty.
88158         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88159         do include <bits/libc-lock.h>.
88160         Do not include <fcntl.h>; not needed.
88161         [_LIBC]: Include <wchar.h>.
88162         (NOTCANCEL_MODE): New macro.
88163         (flockfile, funlockfile) [_LIBC]: New macros.
88164         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88165         [!_LIBC]: New macros.
88166         (call_fclose): New function.
88167         (getpass): Use it.  Save tty stream separately; this simplifies the
88168         code and makes it more reliable if stdin happens to equal stdout.
88169         Invoke __fsetlocking on tty.
88170         Handle thread cancellation if needed.
88171         Namespace cleanup (use __tcgetattr, __getline).
88172         Use bool for Booleans.
88173         [USE_IN_LIBIO]: Handle wide streams.
88174         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88175         stream might go where.
88176
88177         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88178         doesn't have to include <stdio.h> before us.
88179         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88180         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88181         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88182         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88183         if not declared, so that we can use getpass.c code from libc without
88184         rewriting it.
88185         (flockfile, ftrylockfile, funlockfile): New macros.
88186
88187 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88188
88189         * modules/getpass: Depend on stdbool.
88190
88191 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88192
88193         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88194
88195 2003-10-07  Karl Berry  <karl@gnu.org>
88196
88197         * config/config.{guess,sub}: update from config.
88198
88199 2003-10-06  Jim Meyering  <jim@meyering.net>
88200             Bruno Haible  <bruno@clisp.org>
88201
88202         This lets translators provide better translations for the
88203         "Written by ..." part of --version output.
88204         * lib/version-etc.h: Include stdarg.h.
88205         (version_etc_copyright): Declare as readonly.
88206         (version_etc): Make this function variadic with a NULL-terminated list
88207         of author name strings.
88208         (version_etc_va): New declaration.
88209         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88210         (version_etc_copyright): Declare as readonly.
88211         (version_etc_va): New function. Provide a different translatable string
88212         for each possible number of authors < 10. Abbreviate when there are 10
88213         authors or more.
88214         (version_etc): Make this function variadic. Call version_etc_va.
88215         Suggestion from Gary V. Vaughan.
88216
88217         * lib/long-options.h (parse_long_options): Change prototype: the
88218         authors string is moved to the end and becomes variadic.
88219         * lib/long-options.c: Include stdarg.h.
88220         (parse_long_options): Make this function variadic, too.
88221         Call version_etc_va, not version_etc.
88222
88223 2003-10-06  Bruno Haible  <bruno@clisp.org>
88224
88225         * modules/version-etc-2: Remove file.
88226         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88227
88228 2003-10-06  Bruno Haible  <bruno@clisp.org>
88229
88230         * modules/fatal-signal: New file.
88231         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88232
88233 2003-10-06  Bruno Haible  <bruno@clisp.org>
88234
88235         * m4/fatal-signal.m4: New file.
88236         * m4/signalblocking.m4: New file, from GNU gettext.
88237
88238 2003-10-06  Bruno Haible  <bruno@clisp.org>
88239
88240         * lib/version-etc-2.h: Remove file.
88241         * lib/version-etc-2.c: Remove file.
88242
88243 2003-10-06  Bruno Haible  <bruno@clisp.org>
88244
88245         * lib/fatal-signal.h: New file, from GNU gettext.
88246         * lib/fatal-signal.c: New file, from GNU gettext.
88247
88248 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88249
88250         * README: Rework advice for preventing empty .o files.
88251         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88252         not <sys/types.h>.
88253
88254 2003-10-04  Karl Berry  <karl@gnu.org>
88255
88256         * lib/argp*: update from libc.
88257
88258 2003-10-04  Karl Berry  <karl@gnu.org>
88259
88260         * config/config.{guess,sub}: update from config.
88261
88262 2003-10-02  Bruno Haible  <bruno@clisp.org>
88263
88264         * modules/lchown (Include): Add lchown.h.
88265         * modules/time_r (Include): Use "..." syntax.
88266         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88267
88268 2003-10-01  Simon Josefsson  <jas@extundo.com>
88269
88270         * MODULES.html.sh (func_all_modules): Move gethostname from section
88271         'based on' to section 'lacking' POSIX:2001.
88272
88273 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88274
88275         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88276         to output mode on the same stream.
88277
88278 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88279
88280         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88281         Fix arg typo in previous patch.
88282
88283 2003-09-28  Jim Meyering  <jim@meyering.net>
88284
88285         * lib/error.c: Correct cpp indentation.
88286
88287 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88288
88289         * modules/free: New file.
88290
88291 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88292
88293         * m4/free.m4: New file.
88294
88295 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88296
88297         * lib/minmax.h (MIN, MAX)
88298         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
88299         Omit the special code that used __typeof__, since we worry that
88300         it could be more trouble than it's worth.  See:
88301         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88302         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88303
88304         * lib/free.c: New file.
88305
88306 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88307
88308         Trivial fixes to Makefile.am parts of module listings.
88309         * modules/strstr: Append strstr.h to lib_SOURCES.
88310         * modules/strcase: Likewise, for strcase.h.
88311
88312 2003-09-27  Karl Berry  <karl@gnu.org>
88313
88314         * config/mkinstalldirs: update from automake.
88315
88316 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88317
88318         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88319         (error_tail): Do not loop, reallocating temporary buffer, since
88320         the output cannot contain more wide characters than the input
88321         contains bytes, the size must be big enough already.  This avoids
88322         one potential size overflow calculation.  Check for size overflow
88323         when calculating temporary buffer size.  Free temporary buffer
88324         when done, if it was allocated with malloc; this plugs a memory
88325         leak.  Remove casts from void * to pointers, that are no longer
88326         needed now that we're assuming C89 or better.
88327
88328         Merge error changes from glibc.
88329
88330         * lib/error.c, error.h: Update copyright notice header to match glibc.
88331         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88332         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88333         Disable cancellation while printing error.
88334         * lib/error.h: Prepend __ to parameter names.
88335
88336 2003-09-26  Jim Meyering  <jim@meyering.net>
88337
88338         * lib/error.c (error_tail): Move some declarations
88339         into inner scope where the local variables are used.
88340
88341 2003-09-26  Bruno Haible  <bruno@clisp.org>
88342
88343         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88344         stpncpy().
88345         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88346
88347 2003-09-26  Bruno Haible  <bruno@clisp.org>
88348
88349         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88350         (stpncpy): Define as alias for gnu_stpncpy.
88351         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88352
88353 2003-09-25  Simon Josefsson  <jas@extundo.com>
88354
88355         * lib/xgetdomainname.h: New file.
88356         * lib/xgetdomainname.c: New file.
88357
88358 2003-09-25  Simon Josefsson  <jas@extundo.com>
88359             Bruno Haible  <bruno@clisp.org>
88360
88361         * modules/getdomainname: New file.
88362         * modules/xgetdomainname: New file.
88363         * MODULES.html.sh (func_all_modules): Add getdomainname,
88364         xgetdomainname.
88365
88366 2003-09-25  Simon Josefsson  <jas@extundo.com>
88367             Bruno Haible  <bruno@clisp.org>
88368
88369         * m4/getdomainname.m4: New file.
88370
88371 2003-09-25  Simon Josefsson  <jas@extundo.com>
88372             Bruno Haible  <bruno@clisp.org>
88373
88374         * lib/getdomainname.h: New file.
88375         * lib/getdomainname.c: New file.
88376
88377 2003-09-25  Karl Berry  <karl@gnu.org>
88378
88379         * lib/argp-fmtstream.c, argp-help.c: update from libc.
88380
88381 2003-09-25  Karl Berry  <karl@gnu.org>
88382
88383         * config/install-sh: update from automake.
88384
88385 2003-09-25  Bruno Haible  <bruno@clisp.org>
88386
88387         * modules/version-etc-2: New file, from modules/version-etc with
88388         modifications.
88389         * MODULES.html.sh (func_all_modules): Add version-etc-2.
88390
88391 2003-09-25  Bruno Haible  <bruno@clisp.org>
88392
88393         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
88394         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
88395
88396 2003-09-24  Simon Josefsson  <jas@extundo.com>
88397
88398         * modules/xgethostname: Add xgethostname.h.
88399
88400 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88401
88402         * lib/linebuffer.c (freebuffer): Don't free the argument, just
88403         the buffer associated with the argument.  Bug reported by
88404         Simon Josefsson.
88405
88406 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88407
88408         * README: Document assumptions that 'int' is at least 32 bits
88409         wide, that integer arithmetic is 2's complement without overflow,
88410         that there are no holes in integer values, that adding sizes of
88411         two nonoverlapping objects can't overflow, and that all-bits-zero
88412         yields scalar zero.  Fix spelling and capitalization typos.
88413
88414 2003-09-19  Karl Berry  <karl@gnu.org>
88415
88416         * lib/argp.h: update from libc.
88417
88418 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88419
88420         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88421         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88422         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88423
88424 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88425
88426         * gnulib-tool: Use "test -h", not "test -L", for portability
88427         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88428         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88429         (sed_extract_prog): Issue s commands one-by-one, rather than
88430         using \| in one s command.
88431
88432 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88433
88434         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88435         input error, instead of returning NULL the next time we are called
88436         (and therefore losing track of errno).
88437
88438 2003-09-16  Bruno Haible  <bruno@clisp.org>
88439
88440         * gnulib-tool (func_create_testdir): Warn about duplicated
88441         dependencies.
88442
88443 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88444
88445         * modules/argmatch, modules/fatal, modules/obstack,
88446         modules/xalloc, modules/xgethostname: Sort dependencies by
88447         importance, not alphabetically.
88448
88449 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88450
88451         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
88452         fails, so that the caller gets the proper errno.
88453
88454         * lib/readutmp.c (read_utmp): Likewise.
88455         Check for fstat error.  Close stream and free storage
88456         when failing.
88457
88458 2003-09-14  Karl Berry  <karl@gnu.org>
88459
88460         * config/srclist.txt (strdup.c): disable for c89 changes.
88461
88462 2003-09-14  Jim Meyering  <jim@meyering.net>
88463
88464         * lib/getloadavg.c: Correct cpp indentation.
88465         * lib/strdup.c: Likewise.
88466         * lib/vasnprintf.c: Likewise.
88467
88468 2003-09-14  Bruno Haible  <bruno@clisp.org>
88469
88470         * modules/fwriteerror: New file.
88471         * MODULES.html.sh (func_all_modules): Add fwriteerror.
88472
88473 2003-09-14  Bruno Haible  <bruno@clisp.org>
88474
88475         * lib/fwriteerror.h: New file.
88476         * lib/fwriteerror.c: New file.
88477
88478 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88479
88480         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
88481         modules/xgethostname, modules/xalloc: Depend on exit.
88482
88483 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88484
88485         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
88486
88487         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
88488         and AC_MINIX, too, so that their extensions are available.
88489
88490         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
88491         This macro has been superseded by gl_BACKUPFILE.
88492
88493         More patches to assume C89 or better.
88494
88495         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
88496
88497         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
88498         unconditionally.
88499         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
88500         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
88501         Include <string.h>, <stdlib.h> unconditionally.
88502         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
88503         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
88504         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
88505         headers or for string.h.
88506         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
88507         or strtoul.
88508
88509         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
88510         headers.
88511         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
88512         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88513         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
88514         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
88515         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88516         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88517         memcpy, memset.
88518         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88519         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88520         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88521         strtol.
88522         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88523         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88524         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88525         strtoul.
88526
88527 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88528
88529         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88530         * lib/obstack.c [!defined _LIBC]: Likewise.
88531         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88532         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88533         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88534
88535         More changes to assume C89 or better.
88536
88537         * lib/error.c (error_tail): Assume vprintf.
88538
88539         * lib/argmatch.c (getenv): Remove decl.
88540         * lib/progreloc.c (get_full_program_name): Define via prototype.
88541         * lib/setenv.c (clearenv): Likewise.
88542         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88543         needed.
88544         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88545         (malloc, memcpy): Remove decls.
88546         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88547         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88548         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88549         (memcpy): Remove macro.
88550         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88551         (__P): Remove.  All uses removed.
88552         (PTR): Remove.  All uses changed to void *.
88553         (CHAR_BIT, NULL): Remove.
88554         (spaces, zeros, memset_space, memset_zero)
88555         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88556         Remove.
88557         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88558         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88559         Define with prototype.
88560         Remove now-unnecessary prototype decl.
88561         (extra_args_spec): Assume ANSI C.  All uses changed.
88562         (extra_args_spec_iso): Remove.
88563         (my_strftime, emacs_strftimeu): Define via prototype.
88564         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88565         unconditionally.
88566         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88567         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88568         (strtoul, strtol): Remove decls.
88569         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88570         LONG_MAX): Remove.
88571         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88572         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88573         (LOCALE_PARAM_PROTO): New macro.
88574         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88575         (INTERNAL (strtol), strtol): Define with a prototype.
88576         (PARAMS): Remove.  All uses removed.
88577         * lib/tempname.c: Include <string.h> unconditionally.
88578         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88579         * lib/xgethostname.c (main): Define with a prototype.
88580         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88581         Include <stdlib.h> unconditionally.
88582         (calloc, malloc, realloc, free): Remove decls.
88583         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88584         Include <stdlib.h> unconditionally.  Sort include file names.
88585         (strtod): Remove.
88586         (xstrtod): Define with a prototype.
88587         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88588         (strtol, strtoul): Remove decls.
88589
88590 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88591
88592         More patches to assume C89 or better.
88593         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88594         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88595         string.h, memchr, STDC_HEADERS.
88596
88597 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88598
88599         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88600         Include <stdlib.h>, <string.h> unconditionally.
88601         Remove now-unnecessary cast to char *.
88602         * lib/strnlen.c: Include <string.h> unconditionally.
88603         * lib/yesno.c (yesno): Define with a prototype.
88604
88605 2003-09-11  Bruno Haible  <bruno@clisp.org>
88606
88607         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88608
88609 2003-09-10  Jim Meyering  <jim@meyering.net>
88610
88611         * lib/error.c: Correct indentation of cpp directives.
88612
88613 2003-09-10  Bruno Haible  <bruno@clisp.org>
88614
88615         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88616         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88617         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88618         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88619         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88620         <stdlib.h> and <string.h> checks.
88621         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88622         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88623
88624 2003-09-10  Bruno Haible  <bruno@clisp.org>
88625
88626         * lib/strcspn.c: Include <string.h> unconditionally.
88627         * lib/strpbrk.c: Include <string.h> unconditionally.
88628         * lib/strstr.c: Include <string.h> unconditionally.
88629         * lib/unicodeio.c: Include <string.h> unconditionally.
88630         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88631         * lib/unsetenv.c: Likewise.
88632         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88633         * lib/yesno.c: Include <stdlib.h> unconditionally.
88634         (rpmatch): Add prototype.
88635
88636 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88637
88638         More patches to assume C89 or better.
88639         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88640         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88641         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88642         or for string.h.
88643         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88644         stdlib.h.
88645         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88646         C headers.
88647         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88648         string.h.
88649         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88650         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88651         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88652         or for string.h.
88653         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88654         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88655         C headers.
88656         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88657         memcpy.
88658         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88659         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88660         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88661         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88662         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88663         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88664         string.h, free.
88665         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88666         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88667         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88668         C headers, or for string.h.
88669         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88670         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88671         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88672         headers, memory.h, stdlib.h, string.h, strings.h.
88673         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88674         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88675         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88676         strchr.
88677         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88678         headers, memory.h, string.h.
88679         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88680         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88681         free.
88682         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88683         headers.
88684         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88685         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88686         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88687         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88688         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88689
88690 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88691
88692         More K&R removal.
88693
88694         * lib/acosl.c (main): Use a prototype.
88695         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88696         tanl.c: Likewise.
88697
88698         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88699
88700         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88701         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88702         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88703         with a prototype.
88704         * lib/getopt.c (const): Remove macro.
88705         Include <string.h> unconditionally.
88706         (my_index): Remove; all uses changed to strchr.
88707         (strlen): Remove decl.
88708         (exchange): Remove forward decl; no longer needed.
88709         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88710         Define with prototype.
88711         * lib/getopt1.c (const): Remove macro.
88712         (getopt_long, getopt_long_only, main): Define with prototype.
88713
88714         * lib/getugroups.c: Include <string.h> unconditionally.
88715
88716         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88717         (getusershell, setusershell, endusershell, readname, main):
88718         Define with prototypes.
88719
88720         * lib/group-member.c: Include group-member.h first.
88721         Include <stdlib.h> unconditionally.
88722
88723         * lib/hard-locale.c: Include hard-locale.h first.
88724         Include <stdlib.h>, <string.h> unconditionally.
88725
88726         * lib/hash.c (free, malloc): Remove decls.
88727         Include <stdlib.h> unconditionally.
88728
88729         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88730         (getenv): Do not declare.
88731
88732         * lib/idcache.c: Include <string.h> unconditionally.
88733
88734         * lib/long-options.c: Include long-options.h first, to test interface.
88735         Include <stdlib.h> unconditionally.
88736
88737         * lib/makepath.c: Include makepath.h first, to test interface.
88738         Include <stdlib.h> and <string.h> unconditionally.
88739
88740         * lib/linebuffer.c: Include <stdlib.h>.
88741         (free): Remove decl.
88742
88743         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88744         stddef.h. rpl_malloc returns void *, not char *.
88745         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88746         prototype.
88747
88748         * lib/md5.h: Include <limits.h> unconditionally.
88749         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88750         (__P): Remove; all uses removed.
88751         * lib/md5.c: Include "md5.h" first.
88752         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88753         md5_buffer, md5_process_bytes, md5_process_block):
88754         Define with prototypes.
88755         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88756         * lib/sha.c: Include "sha.h" first.
88757         Include <stdlib.h>, <string.h> unconditionally.
88758
88759         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88760         * lib/memcmp.c (__ptr_t): Likewise.
88761         * lib/memrchr.c (__ptr_t): Likewise.
88762         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88763         Include <string.h> unconditionally.
88764         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88765         * lib/memchr.c: Include <stdlib.h> unconditionally.
88766         * lib/memchr.c (LONG_MAX): Remove.
88767         * lib/memrchr.c (LONG_MAX): Likewise.
88768         * lib/memchr.c (__memchr): Define via a prototype.
88769         * lib/memrchr.c (__memrchr): Likewise.
88770         * lib/memcmp.c (__P): Remove, and remove all uses.
88771         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88772         Remove forward decls; no longer needed.
88773         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88774         Use types required by C89 in prototype.
88775
88776         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88777         * lib/savedir.c: Likewise.
88778         * lib/mkdir.c (free): Remove decl.
88779         * lib/rmdir.c (rmdir): Define with a prototype.
88780         * lib/savedir.c: Include savedir.h first, to test interface.
88781
88782         * lib/mktime.c (STDC_HEADERS): Remove.
88783         Include <stdlib.h>, <string.h> unconditionally.
88784
88785         * lib/modechange.c: Include <stdlib.h> unconditionally.
88786         (malloc): Remove decl.
88787
88788         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88789         (free): Remove decl.
88790
88791         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88792         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88793         (This type really should be intptr_t, but that's a C99ism.)
88794         (_obstack_memcpy): Remove: all uses changed to memcpy.
88795         Include <string.h> unconditionally.
88796         (struct obstack): Assume __STDC__ for types of members
88797         chunkfun, freefun, extra_arg.
88798         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88799         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88800         obstack_begin, obstack_specify_allocation,
88801         obstack_specify_allocation_with_arg, obstack_chunkfun,
88802         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88803         Remove unprototyped decls and the macros that use them.
88804         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88805         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88806         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88807         (defined __STDC__ && __STDC__)]:
88808         Remove nonprototyped code.
88809         Include <stdlib.h> unconditionally.
88810         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88811         _obstack_allocated_p, _obstack_free, obstack_free,
88812         _obstack_memory_used, print_and_abort):
88813         Define using prototypes.
88814         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88815         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88816         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88817         obstack_next_free, obstack_object_size, obstack_room) [0]:
88818         Remove unused, unprototyped code.
88819
88820         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88821
88822         * lib/physmem.c (physmem_total, physmem_available, main): Define
88823         with prototypes.
88824
88825         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88826         (main): Define with a prototype.
88827
88828         * lib/posixver.c (getenv): Remove decl.
88829
88830         * lib/putenv.c (malloc): Returns void *, not char *.
88831         Include <string.h> unconditionally.
88832         (strchr, memcpy, NULL): Do not define.
88833
88834         * lib/readtokens.c: Include readtokens.h first, to test interface.
88835         Include <stdlib.h>, <string.h> unconditionally.
88836         (init_tokenbuffer): Define with a prototype.
88837
88838         * lib/regex.c (PARAMS): Remove.  All uses removed.
88839         All uses of _RE_ARGS removed, too.
88840         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88841         unconditionally.
88842         (bzero): Assume memset exists.
88843         (memcmp, memcpy, NULL): Remove.
88844         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88845         char, or assignments to local vars of type signed char.
88846         (init_syntax_once, PREFIX(extract_number_and_incr),
88847         PREFIX(print_partial_compiled_pattern),
88848         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88849         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88850         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88851         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88852         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88853         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88854         wcs_compile_range, byte_compile_range, truncate_wchar,
88855         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88856         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88857         count_mbs_length, wcs_re_match_2_internal,
88858         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88859         PREFIX(alt_match_null_string_p),
88860         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88861         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88862         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88863         now-unnecessary declaration, if any.
88864         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88865         regcomp, regexec):
88866         Remove now-unnecessary casts among pointer types.
88867         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88868
88869         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88870         (free): Remove decl.
88871
88872         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88873
88874         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88875         (free): Remove decl.
88876
88877         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88878         * lib/xgetcwd.c: Likewise.
88879
88880         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88881         (free): Remove decl.
88882
88883         * lib/strchrnul.c (strchrnul): Define with a prototype.
88884         Fix bug: c_in was not converted to char before searching.
88885
88886         The following changes are not K&R related:
88887
88888         * lib/group-member.h: Include <sys/types.h>, so that this file is
88889         self-contained.
88890         * lib/makepath.h: Likewise.
88891
88892         * lib/getusershell.c (readname, default_index, line_size, readname):
88893         Use size_t, not int, for sizes.
88894         (readname): If the size overflows, report an error instead of
88895         looping forever.
88896
88897 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88898
88899         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88900         libc.
88901
88902 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88903
88904         * README: New section: portability guidelines.
88905
88906 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88907
88908         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88909         C89 spec.
88910
88911 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88912
88913         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88914
88915 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88916
88917         Assume C89 or better; remove K&R cruft.
88918         A few of these changes were first proposed by Derek Robert Price
88919         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88920
88921         * lib/addext.c: Include <string.h> unconditionally.
88922         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88923         Don't declare getenv or malloc.
88924
88925         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88926         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88927         (NULL): Remove.
88928         (find_stack_direction, alloca): Use prototypes.
88929
88930         * lib/atexit.c (atexit): Define using a prototype.
88931
88932         * lib/basename.c, dirname.c, stripslash.c:
88933         Include <string.h> unconditionally.
88934
88935         * lib/bcopy.c: Include <stddef.h>.
88936         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88937
88938         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88939
88940         * lib/error.h (error, error_at_line, error_print_progname)
88941         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88942         * lib/error.c: Include error.h first, to check interface.
88943         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88944         (VA_START): Remove; all uses changeed to va_start.
88945         (exit, strerror): Remove decls.
88946         (error_print_progname): Prototype uncondionally.
88947         Don't include <errno.h>; no longer needed.
88948         (private_strerror): Remove.
88949         (error_tail): Always define.
88950         (error, error_at_line): Assume C89 or better; always use prototypes.
88951         * lib/fatal.c: Include "fatal.h" first, to test interface.
88952         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88953         (VA_START): Remove; all uses changed to va_start.
88954         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88955         this case.
88956         (exit): Remove decl.
88957         (fatal): Prototype unconditionally.  Assume va_start works.
88958         Abort at end, to pacify gcc.
88959
88960         * lib/euidaccess.c (main): Define with a prototype.
88961
88962         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88963
88964         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88965
88966         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88967         prototypes.
88968         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88969         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88970         (getenv): Remove decl.
88971         (fnmatch): Define using a prototype.
88972         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88973         (FCT): Define using a prototype.
88974
88975         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88976
88977         * lib/gethostname.c: Include <stddef.h>.
88978         (gethostname): Define with prototype.  Length is size_t, not int.
88979
88980 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88981
88982         Assume C89 or better; remove K&R cruft.
88983         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88984         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88985         string.h, getenv, malloc.
88986         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88987         headers.
88988         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88989         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88990         do not check for strerror.
88991         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88992         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88993         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88994         do not check for doprnt or vprintf.
88995         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88996         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88997
88998 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88999
89000         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
89001         getversion.c should have been removed then, but was accidentally
89002         preserved.
89003
89004         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
89005         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
89006
89007 2003-09-08  Karl Berry  <karl@gnu.org>
89008
89009         * config/config.sub, config.guess, srclistvars.sh: update from savannah
89010                 config, forget about prep.
89011
89012         * config/depcomp, missing: update from automake.
89013
89014 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89015
89016         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
89017         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89018
89019 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89020
89021         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
89022         copy_tm_result.  Bug reported by Simon Josefsson in
89023         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89024
89025 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89026
89027         * m4/time_r.m4: New file.
89028         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
89029         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
89030         is. Check for timegm declaration.
89031         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
89032         Do not check for gmtime_r.
89033         Replace mktime if __mktime_internal does not exist and if mktime
89034         hasn't been replaced already.
89035
89036 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89037
89038         * lib/time_r.c, lib/time_r.h: New files.
89039
89040         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89041         __localtime_r.
89042         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89043         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89044
89045         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89046         __gmtime_r.
89047         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89048         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89049         Include <time_r.h>.
89050
89051         * lib/timegm.c: Switch to glibc implementation, with the following
89052         changes:
89053         [defined HAVE_CONFIG_H]: Include <config.h>.
89054         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89055         (__mktime_internal) [!defined _LIBC]: New decl.
89056         (__gmtime_r) [!defined _LIBC]: New macro and function.
89057         (timegm): Use a prototype, since gnulib assumes C89.
89058         Do not bother declaring tmp to be const, as it's not really usefu.
89059         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89060         (timegm): Declare only if HAVE_DECL_TIMEGM.
89061
89062 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89063
89064         * MODULES.html.sh (func_all_modules): Add time_r.
89065         * modules/time_r: New file.
89066         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89067         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89068
89069 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89070
89071         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89072         Bug reported by Lute Kamstra in
89073         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89074
89075         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89076         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89077         course with correspondingly smaller numbers for tomorrow and
89078         yesterday.  From Tadayoshi Funaba.  Originally installed into
89079         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89080         coreutils merge?).
89081
89082 2003-08-31  Simon Josefsson  <jas@extundo.com>
89083
89084         * modules/timegm: New file.
89085         * MODULES.html.sh (func_all_modules): Add timegm.
89086
89087 2003-08-31  Simon Josefsson  <jas@extundo.com>
89088
89089         * m4/timegm.m4: New file.
89090
89091 2003-08-31  Simon Josefsson  <jas@extundo.com>
89092
89093         * lib/timegm.h: New file.
89094         * lib/timegm.c: New file.  Based on
89095         wget-1.8.2/src/http.c:mktime_from_utc.
89096
89097 2003-08-31  Karl Berry  <karl@gnu.org>
89098
89099         * lib/argp.h: update from libc.
89100
89101 2003-08-28  Bruno Haible  <bruno@clisp.org>
89102
89103         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89104         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89105         followed by '#define fnmatch fnmatch_posix' gives an error.
89106
89107 2003-08-28  Bruno Haible  <bruno@clisp.org>
89108
89109         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89110         warning on QNX, which defines O_BINARY to 000000.
89111
89112 2003-08-27  Jim Meyering  <jim@meyering.net>
89113
89114         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89115         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89116         would fail after 32.  Reported by Danny Levinson.  Details here:
89117         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89118
89119 2003-08-24  Bruno Haible  <bruno@clisp.org>
89120
89121         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89122         MSVC7 <stdio.h> is included later.
89123
89124 2003-08-22  Simon Josefsson  <jas@extundo.com>
89125
89126         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89127
89128 2003-08-20  Karl Berry  <karl@gnu.org>
89129
89130         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89131
89132 2003-08-20  Bruno Haible  <bruno@clisp.org>
89133
89134         * modules/progname: New file.
89135         * MODULES.html.sh (func_all_modules): Add progname.
89136
89137 2003-08-20  Bruno Haible  <bruno@clisp.org>
89138
89139         * lib/progname.h: New file, from GNU gettext.
89140         * lib/progname.c: New file, from GNU gettext.
89141         * lib/progreloc.c: New file, from GNU gettext.
89142
89143 2003-08-19  Jim Meyering  <jim@meyering.net>
89144
89145         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89146         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89147
89148 2003-08-19  Bruno Haible  <bruno@clisp.org>
89149
89150         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89151         more.
89152
89153 2003-08-19  Bruno Haible  <bruno@clisp.org>
89154
89155         * lib/xstrdup.c: Assume <string.h> exists.
89156
89157 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89158
89159         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89160         in makefile rules.
89161
89162 2003-08-18  Jim Meyering  <jim@meyering.net>
89163
89164         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89165         * m4/lib-ld.m4: Likewise.
89166
89167 2003-08-18  Jim Meyering  <jim@meyering.net>
89168
89169         * lib/setenv.h: Indent nested cpp directive.
89170         * lib/vasnprintf.c: Remove trailing blanks.
89171
89172 2003-08-17  Simon Josefsson  <jas@extundo.com>
89173
89174         * modules/xstrndup: New file.
89175         * MODULES.html.sh (func_all_modules): Add xstrndup.
89176
89177 2003-08-17  Simon Josefsson  <jas@extundo.com>
89178
89179         * modules/argp: Fix autoconf macro name. Add more dependencies.
89180
89181 2003-08-17  Simon Josefsson  <jas@extundo.com>
89182
89183         * m4/xstrndup.m4: New file.
89184
89185 2003-08-17  Simon Josefsson  <jas@extundo.com>
89186
89187         * m4/argp.m4: New file.
89188
89189 2003-08-17  Simon Josefsson  <jas@extundo.com>
89190             Bruno Haible  <bruno@clisp.org>
89191
89192         * lib/xstrndup.h: New file.
89193         * lib/xstrndup.c: New file.
89194
89195 2003-08-17  Bruno Haible  <bruno@clisp.org>
89196
89197         * modules/strndup (Files, Include): Add lib/strndup.h.
89198
89199 2003-08-17  Bruno Haible  <bruno@clisp.org>
89200
89201         * modules/euidaccess (Files): Add lib/euidaccess.h.
89202
89203 2003-08-17  Bruno Haible  <bruno@clisp.org>
89204
89205         * lib/strndup.h: New file.
89206
89207 2003-08-17  Bruno Haible  <bruno@clisp.org>
89208
89209         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89210         like AC_GNU_SOURCE.
89211         * modules/extensions (configure.ac): Comment out the invocation of
89212         gl_USE_SYSTEM_EXTENSIONS.
89213
89214 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89215
89216         Merges from coreutils, etc.
89217         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89218         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89219         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89220         fixing a typo.
89221         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89222         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89223
89224 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89225
89226         Document merge from coreutils.
89227         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89228         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89229         * modules/utime: Add m4/utimes-null.m4.
89230
89231 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89232
89233         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89234         space, undoing this 2003-08-12 change:
89235         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89236
89237 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89238
89239         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89240         strtoul.c from libc, undoing this 2003-08-12 change:
89241         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89242
89243 2003-08-16  Jim Meyering  <jim@meyering.net>
89244
89245         Merges from coreutils.
89246         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89247         prefix.  Adjust cache variables similarly.  Create 500 rather than
89248         just 300 files, to exercise bug on Darwin6.5, too.
89249         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89250         $missing_dir.
89251         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89252         AM_SYS_POSIX_TERMIOS.
89253         Reported by mkc@mathdogs.com.
89254         Also change use of $am_cv_sys_posix_termios
89255         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89256         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89257         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89258         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89259         in /proc/mounts until it finds one with matching device number.  This
89260         is unnecessary when the FILE argument *is* a mount point.  No stat call
89261         is necessary in that case.  So, disable the statvfs-testing code on
89262         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89263         as RedHat bug# 84846.
89264         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89265         to 1MB, so as not to render systems with no stack size limit (e.g.,
89266         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89267         Include <unistd.h>.  On some systems,
89268         it is required for the definition of _SC_PAGESIZE.
89269
89270 2003-08-16  Jim Meyering  <jim@meyering.net>
89271
89272         Merge from coreutils.
89273         * lib/xstrtoimax.c: #else #if -> #elif.
89274         * lib/xstrtoumax.c: Likewise.
89275
89276 2003-08-16  Jim Meyering  <jim@meyering.net>
89277
89278         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89279         * m4/utimes.m4: Removed.
89280         * m4/utimes-null.m4: Renamed from utimes.m4.
89281
89282         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89283         to 1MB, so as not to render systems with no stack size limit (e.g.,
89284         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89285         Include <unistd.h>.  On some systems,
89286         it is required for the definition of _SC_PAGESIZE.
89287
89288 2003-08-16  Jim Meyering  <jim@meyering.net>
89289         and Paul Eggert  <eggert@cs.ucla.edu>
89290
89291         Merges from coreutils, etc.
89292
89293         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
89294         using the latest version from cvs.  This avoids problems with #line
89295         directives using a vendor (Sun) compiler.
89296         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
89297         Don't set GETGROUPS_LIB here; now it's
89298         done via getgroups.m4's wrapper function.
89299         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
89300         rather than just in sh-util/configure.in, so that the
89301         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89302         same.
89303         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89304         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89305         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89306         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89307         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89308         Remove code that is now done by the newly-required macros.
89309         Append $(EXEEXT) to DF_PROG.
89310         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89311         Do not invoke or require the following here,
89312         since prereq.m4 or some gnulib .m4 now does this for us:
89313         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89314         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89315         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89316         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89317         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89318         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89319         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89320         AC_FUNC_OBSTACK.
89321         Do not replace the following functions, as this is now the job
89322         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89323         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89324         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89325         atexit getpass, strdup, getpagesize.
89326         Replace 'raise'.
89327         Do not check for the following functions, as this is now the job
89328         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89329         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89330         setregid.
89331         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89332         Check for sys/sysctl.h.
89333         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89334         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89335         of checking for ssize_t ourselves.
89336
89337         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89338         Require every macro that gnulib/modules/* suggests for us.
89339         (jm_PREREQ_ADDEXT): New macro.
89340         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89341         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89342
89343         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89344         (gl_PHYSMEM): Use it.
89345         Also check for `table' function.
89346         Check for new headers and functions.
89347         Add check for sys/sysmp.h.
89348         With suggestions from Kaveh Ghazi.
89349         Ignore headers that are present but cannot be compiled.  This
89350         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89351         C 5.4.
89352
89353 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89354
89355         Document merge from coreutils.
89356         * modules/userspec: Depend on posixver.
89357         * modules/strftime: Depend on tzset.
89358
89359 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89360
89361         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89362         rather than tab, after '#' in shell-script copyright notices.
89363         Suggested by Bruno Haible.
89364
89365 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89366
89367         * config/srclist-update: Use three spaces, rather than tab, after '#'
89368         in shell-script copyright notices.  Suggested by Bruno Haible.
89369         Remove unnecessary parenthesization in regular expression.
89370
89371 2003-08-15  Jim Meyering  <jim@meyering.net>
89372
89373         Merge from coreutils.
89374         * lib/xgethostname.c: Include <stdlib.h>.
89375         (xghostname): Don't exit for anything other than memory-related
89376         failure; just return NULL.
89377         * lib/userspec.c: Include "posixver.h".
89378         (parse_user_spec): Accept `.' as a separator only
89379         in pre-POSIX-200112 mode.
89380         * lib/strtoimax.c: Use #elif rather than #else #if.
89381         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
89382         Remove function, now that we can rely on a working tzset function.
89383         [!_LIBC]: Ensure that the required autoconf test has been run.
89384         [!defined _NL_CURRENT && HAVE_STRFTIME]:
89385         Use underlying_strftime for %r.
89386         * lib/sha.c: Merge in some clean-up and optimization changes from
89387         glibc.
89388         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
89389         Ensure that it is a multiple of 64.
89390         Rearrange loop exit tests so as to avoid performing an
89391         additional fread after encountering an error or EOF.
89392         * lib/realloc.c: Update copyright date.
89393
89394 2003-08-15  Jim Meyering  <jim@meyering.net>
89395         and Paul Eggert  <eggert@twinsun.com>
89396
89397         Merge from coreutils.
89398         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
89399         member but strut utmpx does not.  Needed for AIX 4.3.3.
89400         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
89401
89402 2003-08-15  Jim Meyering  <jim@meyering.net>
89403         and Paul Eggert  <eggert@cs.ucla.edu>
89404
89405         Merges from coreutils, etc.
89406         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
89407         Require gl_FUNC_TZSET_CLOBBER.
89408         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
89409         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
89410         members.
89411
89412 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89413
89414         Help the merge from coreutils.
89415         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
89416         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
89417         * m4/tzset.m4: Use it too.
89418
89419 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89420
89421         * modules/tzset: New file.
89422
89423 2003-08-14  Jim Meyering  <jim@meyering.net>
89424
89425         Merges from coreutils.
89426         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89427         variable names, rather than @FNMATCH_H@.
89428         * modules/alloca: Likewise for $(ALLOCA_H).
89429
89430         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89431         the three copies of the literal target, `fnmatch.h'.
89432         * modules/alloca (alloca.h): Likewise.
89433
89434 2003-08-14  Jim Meyering  <jim@meyering.net>
89435
89436         Merge from coreutils.
89437         * m4/tzset.m4: New file.
89438         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89439         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89440         otherwise, AIX 5.1 systems would end up using the latter.
89441         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
89442         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
89443         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
89444         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
89445
89446 2003-08-14  Jim Meyering  <jim@meyering.net>
89447
89448         Merge from coreutils.
89449         * lib/obstack.h: Whitespace changes.
89450         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
89451         and xcalloc return values.
89452         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
89453         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
89454         hang on OSF/1 5.1 for DIR on both local and remote file systems.
89455         Reported by (and fix confirmed by) Nelson H. F. Beebe.
89456         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89457         error from mntctl.
89458         Use mntctl's return value to drive the entry-processing loop, since
89459         we can't rely on the value of the vmt_length member in the last
89460         entry.  On some systems doing so could result in exhausting
89461         virtual memory.  Based in part on a patch from Mike Jetzer.
89462
89463 2003-08-14  Jim Meyering  <jim@meyering.net>
89464         and Paul Eggert  <eggert@twinsun.com>
89465
89466         Merges from coreutils, plus other fixes.
89467         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89468         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89469         for credits and details.  Thanks to Kaveh Ghazi for helping
89470         to keep these files in sync.
89471         (ARRAY_SIZE): Define it.
89472         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
89473         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
89474         (memcasecmp): Don't assume size_t fits in unsigned int.
89475         Remove casts and duplicate code.
89476         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
89477         (memcpy): Remove definition.
89478         Merge in some clean-up and optimization changes from glibc.
89479         [BLOCKSIZE]: Move definition to top of file.
89480         Ensure that it is a multiple of 64.
89481         Rearrange loop exit tests so as to avoid performing an
89482         additional fread after encountering an error or EOF.
89483         * lib/md5.h (md5_uintptr): Define.
89484         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
89485         return to the initial working directory.  Preserve errno
89486         for caller.
89487         * lib/idcache.c: Include "xalloc.h".
89488         (xmalloc, xrealloc): Remove decls.
89489         (getuser): Remove casts no longer required in C89.
89490         * lib/human.c: Include stdio.h, for sprintf.
89491         * lib/group-member.c: Include "xalloc.h".
89492         (xmalloc, xrealloc): Remove decls.
89493         (get_group_info): Remove casts no longer required in C89.
89494         * lib/getusershell.c (readname): Remove casts no longer required in
89495         C89.
89496         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
89497         * lib/getline.c: Whitespace fix, from coreutils.
89498
89499 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89500
89501         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
89502         Check for isascii.
89503
89504         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89505         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89506         Undo previous (whitespace-only) change.
89507
89508 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89509
89510         * lib/exclude.c: Include <ctype.h>
89511         (IN_CTYPE_DOMAIN): New macro.
89512         (is_space): New fn.
89513         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
89514         and empty lines.
89515
89516         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89517         Undo previous (whitespace-only) change.
89518
89519 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89520
89521         * config/srclist-update: Change update back to the old behavior,
89522         leaving whitespace alone.  Use one 'sed' command rather than a
89523         pipeline.
89524         (fixlicense): Now a variable, not a function.
89525         (remove_trailing_blanks): Remove.
89526         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89527         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89528         Undo previous (whitespace-only) change.
89529
89530 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89531
89532         Merge from coreutils.
89533         * modules/euidaccess: Add lib_SOURCES, include for new
89534         file euidaccess.h
89535
89536 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89537
89538         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89539         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89540         Normalize leading white space and remove trailing white space.
89541
89542         Merge from coreutils
89543         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89544
89545         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89546         0.12.1.  These files are now being upgraded automatically by
89547         ../config/srclist-update.
89548
89549 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89550
89551         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89552         Normalize leading white space and remove trailing white space.
89553         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89554         notice, as per ../config/srclist-update.
89555
89556         Merge from coreutils.
89557         * lib/euidaccess.h: New file.
89558         * lib/euidaccess.c: Include it.
89559         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89560         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89561         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89562
89563 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89564
89565         * config/srclist-update: Add copyright notice.
89566         (remove_id_lines, remove_trailing_blanks): New constants.
89567         (fixfile): Use them to normalize spacing a bit in copied files.
89568         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89569         Normalize leading white space and remove trailing white space.
89570
89571         * config/texinfo.tex: Sync with texinfo.
89572
89573         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89574         strtoul.c from libc, to merge coreutils whitespace changes.
89575
89576         * config/srclist.txt: Get the following m4 files from gettext:
89577         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89578         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89579         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89580         wint_t.m4.
89581
89582 2003-08-12  Karl Berry  <karl@gnu.org>
89583
89584         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89585         been made.
89586
89587 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89588
89589         * modules/gnu-source, m4/gnu-source.m4:
89590         Remove; we're assuming Autoconf 2.54 or later now.
89591         Suggested by Bruno Haible.
89592         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89593
89594 2003-08-11  Bruno Haible  <bruno@clisp.org>
89595
89596         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89597
89598 2003-08-11  Bruno Haible  <bruno@clisp.org>
89599
89600         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89601         (vasnprintf): Use it instead of wcslen.
89602
89603 2003-08-11  Bruno Haible  <bruno@clisp.org>
89604
89605         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89606         value to ensure that _Bool promotes to int. Use #define for _Bool when
89607         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89608
89609 2003-08-10  Karl Berry  <karl@gnu.org>
89610
89611         * lib/regex.h: update from libc (whitespace fix).
89612
89613 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89614
89615         Merge some files from coreutils.  These changes were
89616         originally made by Jim Meyering.
89617         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89618         many older Unixes require this.
89619         * lib/alloca.c (alloca): Remove cast to argument of free;
89620         no longer needed in C89.
89621         * lib/alloca_.h, regex.h: Fix white space to match
89622         what GNU indent does.
89623
89624 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89625
89626         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89627         apparently Emacs's Unicode mode got confused before my 2003-08-05
89628         checkin.
89629
89630 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89631
89632         * m4/extensions.m4: New file.
89633         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89634         Require gl_USE_SYSTEM_EXTENSIONS.
89635         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89636         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89637
89638 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89639
89640         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89641         * modules/extensions, modules/gnu-source: New files.
89642         * modules/timespec, modules/unlocked-io: Depend on extensions.
89643
89644 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89645
89646         * modules/restrict: New file.
89647         * MODULES.html.sh (func_all_modules): Add restrict.
89648         * modules/regex: Depend on restrict.
89649
89650 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89651
89652         * m4/restrict.m4: New file.
89653         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89654
89655 2003-08-07  Bruno Haible  <bruno@clisp.org>
89656
89657         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89658         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89659
89660 2003-08-07  Bruno Haible  <bruno@clisp.org>
89661
89662         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89663         makes the module 'getndelim2' compatible with the module 'getline'.
89664
89665 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89666
89667         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89668         byte with "\201" to avoid glitches when editing that source file
89669         with multi-gnome-terminal.
89670
89671 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89672
89673         * lib/bumpalloc.h: Remove.
89674
89675 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89676
89677         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89678         * modules/bumpalloc: Remove.
89679
89680 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89681
89682         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89683         GNU coding style.
89684
89685         Merge from coreutils.
89686         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89687         1. From glibc.
89688         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89689         from Karl Berry, implemented by Jim Meyering.
89690         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89691         from Dmitry V. Levin.
89692         Remove anachronistic cast of xrealloc.
89693         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89694         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89695         type. Otherwise, it wouldn't compile with at least /bin/cc on
89696         ymp-cray-unicos9.0.2.X.
89697         Combine two mostly-identical uses of alloca into one.
89698         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89699
89700 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89701
89702         [From Emacs.]
89703
89704         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89705         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89706         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89707         obsolete NLIST_NAME_UNION.
89708         [__GNU__]: Undef BSD and FSCALE.
89709         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89710
89711 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89712
89713         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89714         an enum type, so that it's guaranteed to promote to int.  See:
89715         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89716
89717 2003-08-03  Karl Berry  <karl@gnu.org>
89718
89719         * config/depcomp: update from automake.
89720
89721 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89722
89723         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89724         (strerror): Don't assume that a printable int fits in 14 bytes.
89725
89726 2003-07-31  Bruno Haible  <bruno@clisp.org>
89727
89728         * modules/getpass-gnu: New file.
89729         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89730
89731 2003-07-31  Bruno Haible  <bruno@clisp.org>
89732
89733         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89734
89735 2003-07-24  Karl Berry  <karl@gnu.org>
89736
89737         * config/missing: update from automake.
89738
89739 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89740             Bruno Haible  <bruno@clisp.org>
89741
89742         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89743         * lib/getline.c (getline, getdelim): Likewise.
89744         Remove _GNU_SOURCE define; now it's defined in config.h through
89745         m4/getline.m4.
89746
89747 2003-07-23  Karl Berry  <karl@gnu.org>
89748
89749         * config/config.sub: update from prep.
89750
89751 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89752
89753         * modules/xalloc (Depends-on): Add exitfail.
89754         * modules/xmemcoll: Likewise.
89755
89756 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89757
89758         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89759         over-parenthesization in macros.
89760
89761         Sync with coreutils.
89762
89763         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89764         required by C99.
89765
89766         Use `exit_failure' for xalloc and xmemcoll instead of their own
89767         private exit-failure variables.
89768         * lib/xalloc.h (xalloc_exit_failure): Remove.
89769         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89770         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89771         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89772         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89773         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89774
89775 2003-07-20  Jim Meyering  <jim@meyering.net>
89776
89777         * modules/closeout (Depends-on): Add exitfail.
89778         Suggestion from Bruno Haible.
89779
89780 2003-07-19  Karl Berry  <karl@gnu.org>
89781
89782         * config/config.sub: update from prep.
89783
89784 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89785
89786         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89787         Remove.
89788         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89789         to test that it can stand by itself.  Include "exitfail.h".
89790         Clients should set exit_failure instead.
89791         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89792
89793 2003-07-18  Bruno Haible  <bruno@clisp.org>
89794
89795         * modules/getndelim2: New file.
89796         * modules/getline: Share files with module getndelim2.
89797         * modules/getnline: Depend on getndelim2 instead of sharing files with
89798         it. Add getnline.c to lib_SOURCES.
89799         * MODULES.html.sh (func_all_modules): Add getndelim2.
89800
89801 2003-07-18  Bruno Haible  <bruno@clisp.org>
89802
89803         * m4/getndelim2.m4: New file.
89804         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89805         invoke gl_PREREQ_GETNDELIM2.
89806         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89807         gl_PREREQ_GETNDELIM2.
89808         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89809         gl_GETNDELIM2.
89810
89811 2003-07-18  Bruno Haible  <bruno@clisp.org>
89812
89813         * lib/getndelim2.h: New file.
89814         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89815         getndelim2.h.
89816         (getndelim2): Make non-static. Change return type to ssize_t.
89817         * lib/getline.h: Change argument names.
89818         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89819         * lib/getnline.c: Include getndelim2.h.
89820
89821 2003-07-18  Andreas Schwab  <schwab@suse.de>
89822
89823         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89824
89825 2003-07-17  Karl Berry  <karl@gnu.org>
89826
89827         * config/config.sub: update from prep.
89828
89829 2003-07-17  Bruno Haible  <bruno@clisp.org>
89830
89831         * modules/getnline: New file.
89832         * modules/getline: Add lib/getndelim2.c to source file list.
89833         * MODULES.html.sh (func_all_modules): Add getnline.
89834
89835 2003-07-17  Bruno Haible  <bruno@clisp.org>
89836
89837         * m4/getnline.m4: New file.
89838
89839 2003-07-17  Bruno Haible  <bruno@clisp.org>
89840
89841         * m4/Makefile.am.in: Remove file.
89842         * m4/Makefile.am: Remove file.
89843         * m4/Makefile.in: Remove file.
89844
89845 2003-07-17  Bruno Haible  <bruno@clisp.org>
89846
89847         * lib/getnline.h: New file.
89848         * lib/getnline.c: New file.
89849         * lib/getndelim2.c: New file, extracted from getline.c.
89850         (getndelim2): Renamed from getdelim2, with added nmax argument.
89851         * lib/getline.c: Include getndelim2.c.
89852         (getdelim2): Moved out to getndelim2.c.
89853         (getline, getdelim): Update.
89854
89855 2003-07-17  Bruno Haible  <bruno@clisp.org>
89856
89857         * lib/Makefile.am: Remove file.
89858         * lib/Makefile.in: Remove file.
89859
89860 2003-07-17  Bruno Haible  <bruno@clisp.org>
89861
89862         * configure.in: Remove file.
89863         * Makefile.in: Remove file.
89864
89865 2003-07-17  Bruno Haible  <bruno@clisp.org>
89866
89867         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89868
89869 2003-07-16  Karl Berry  <karl@gnu.org>
89870
89871         * config/srclist-update: was running fixlicense twice, which caused
89872                 texinfo.tex to be nullified for some reason.  Simplify,
89873                 $gplsrc is no longer needed as far as I can see?
89874
89875 2003-07-16  Jim Meyering  <jim@meyering.net>
89876
89877         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89878
89879 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89880
89881         * config/srclist.txt: Get the following files from gettext-runtime/intl
89882         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89883         ref-del.sin.  From Bruno Haible.
89884         * config/srclist-update (fixfile): Change grep pattern again, since the
89885         previous fix didn't work (there was another trailing $).  Use
89886         '[$]' to escape the $s.
89887
89888 2003-07-15  Karl Berry  <karl@gnu.org>
89889
89890         * lib/vasnprintf.c: update from gettext.
89891
89892 2003-07-15  Karl Berry  <karl@gnu.org>
89893
89894         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89895         gets expanded when surrounded by '$'.
89896
89897 2003-07-15  Jim Meyering  <jim@meyering.net>
89898
89899         * modules/save-cwd: Don't depend on error.  From Derek Price.
89900
89901 2003-07-15  Jim Meyering  <jim@meyering.net>
89902
89903         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89904
89905 2003-07-14  Simon Josefsson  <jas@extundo.com>
89906
89907         * modules/mempcpy: New file.
89908         * MODULES.html.sh (func_all_modules): Add mempcpy.
89909
89910 2003-07-14  Simon Josefsson  <jas@extundo.com>
89911
89912         * m4/mempcpy.m4: New file.
89913
89914 2003-07-14  Simon Josefsson  <jas@extundo.com>
89915
89916         * lib/mempcpy.h: New file.
89917         * lib/mempcpy.c: New file.
89918
89919 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89920
89921         * modules/getdate, modules/posixtm: Depend on mktime.
89922
89923 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89924
89925         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89926         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89927         unicodeio.c, unicodeio.h, unlocked-io.h:
89928         Switch from LGPL to GPL.
89929
89930 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89931
89932         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89933         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89934         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89935         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89936         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89937         updated automatically by ../config/srclist-update.  This changes
89938         their license from LPGL to GPL.
89939
89940 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89941
89942         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89943         assumed to refer to the root of the most recent stable gettext version.
89944         * config/srclistvars.sh: Add defaults for eggert.
89945         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89946         Match "This program" as well as "The program".  This is needed
89947         for gettext.
89948
89949 2003-07-14  Jim Meyering  <jim@meyering.net>
89950
89951         Don't emit diagnostics.  Let callers do that.
89952         * lib/save-cwd.c: Don't include "error.h".
89953         (save_cwd): Don't call error.  Ensure that errno is valid
89954         when returning nonzero.
89955
89956         * lib/save-cwd.h (restore_cwd): Update prototype.
89957         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89958         Simplify.  Don't call error upon failure.  Let callers do that.
89959         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89960         when auditing is enabled.  But don't bother updating the #if.
89961
89962 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89963
89964         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89965         it breaks C++ compilation.
89966         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89967
89968 2003-07-10  Simon Josefsson  <jas@extundo.com>
89969
89970         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89971
89972 2003-07-10  Jim Meyering  <jim@meyering.net>
89973
89974         * m4/clock_time.m4: Remove trailing blank.
89975         * m4/intmax_t.m4: Likewise.
89976
89977 2003-07-10  Jim Meyering  <jim@meyering.net>
89978
89979         * lib/vasnprintf.c: Remove trailing blanks.
89980         Make cpp indentation consistent.
89981
89982 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89983
89984         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89985         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89986         Switch from LGPL to GPL.
89987
89988 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89989
89990         * config/srclist.txt: Sort sublists.  Add
89991         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89992         that differ from gnulib for one reason or another; we'd like this list
89993         to be smaller but for now let's document what we have.
89994
89995 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89996
89997         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89998         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89999         and sweeter "eval x=$x".
90000         * config/srclist.txt: Get lib/argp* from glibc.
90001
90002 2003-07-07  Paul Eggert  <eggert@twinsun.com>
90003
90004         * lib/mktime.c: Fix some boundary cases and remove need for floating
90005         point.
90006
90007         Issue a compile-time diagnostic if time_t is floating point, or if
90008         two's complement arithmetic is not in effect, or if arithmetic
90009         right shift does not propagate the sign.  These assumptions were
90010         all in the original code but they weren't checked.
90011
90012         (TIME_T_MIDPOINT, verify): New macros.
90013         (__isleap): Remove; it has integer overflow problems.
90014         (leapyear): New function, without those problems.
90015         (ydhms_tm_diff): Remove; splitting into two parts.
90016         (ydhms_diff): New function, containing the arithmetic part of
90017         the old ydhms_tm_diff function.  Issue a compile-time
90018         diagnostic if we are not using C99 integer division.
90019         Avoid casts when possible.
90020         (guess_time_tm): New function, containing the checking part of
90021         the old ydhms_tm_diff function.  Return the new value, rather than
90022         the difference between it and the old.  Accept a new argument T
90023         so that *T specifies the old value.  Check for overflow in the result.
90024
90025         (__mktime_internal): Use a time_t offset, not a long int offset.
90026         This undoes the 2003-06-04 change, which is no longer needed now
90027         that we have better overflow checking.
90028         (localtime_offset): Likewise.
90029
90030         (__mktime_internal): Avoid harmful overflow on hosts where time_t
90031         and long are 64-bit but int is only 32-bit.
90032         (ydhms_diff): Use long int to store year1 and yday1.
90033         Issue a compile-time diagnostic if long int is not wide enough.
90034
90035         (__mktime_internal): Use long int to store adjusted year and yday.
90036         Use plain C rather than preprocessor commands, if that doesn't
90037         affect efficiency.
90038         Check for overflow (and try to repair) after each probe
90039         rather than checking only at the very end.  This avoids some bugs
90040         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90041         does not equal GMT offset at maximum time).
90042         Use integer to check for overflow rather than floating point; this
90043         is more portable to non-IEEE hosts, and is a tad faster.
90044         When we detect that we are oscillating between two values,
90045         don't check whether tm_isdst has the requested value, since
90046         we already know the answer.  When tm_isdst has the wrong value,
90047         use a different heuristic to find the right one, based on the
90048         extreme values actually observed in practice in tz2003a,
90049         rather than the (overly optimistic) "previous 3 calendar quarters".
90050
90051         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90052         "T const" to accommodate glibc style.
90053         (check_result): Use less-confusing report format.  "long" -> "long int.
90054         (main): Likewise.
90055         Don't loop if the iteration overflows time_t.
90056         Allow a negative step in the iteration.
90057
90058 2003-07-06  Karl Berry  <karl@gnu.org>
90059
90060         * config/depcomp: update from automake.
90061         * config/config.sub: update from prep.
90062
90063 2003-07-03  Karl Berry  <karl@gnu.org>
90064
90065         * config/config.guess: update from prep.
90066
90067 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90068
90069         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90070         xreadlink.c now includes it unconditionally.
90071
90072 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90073
90074         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90075         having it depend on HAVE_SYS_TYPES_H.
90076
90077 2003-07-01  Bruno Haible  <bruno@clisp.org>
90078
90079         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90080         <sys/types.h> should be sufficient.
90081         Reported by Paul Eggert.
90082
90083 2003-06-26  Karl Berry  <karl@gnu.org>
90084
90085         * config/depcomp: update from automake.
90086
90087 2003-06-26  Bruno Haible  <bruno@clisp.org>
90088
90089         * modules/human: Depend on module stdbool.
90090
90091 2003-06-25  Bruno Haible  <bruno@clisp.org>
90092
90093         * modules/readlink: New file.
90094         * modules/xreadlink: Depend on it.
90095         * MODULES.html.sh (func_all_modules): Add readlink.
90096
90097 2003-06-25  Bruno Haible  <bruno@clisp.org>
90098
90099         * m4/readlink.m4: New file.
90100
90101 2003-06-25  Bruno Haible  <bruno@clisp.org>
90102
90103         * lib/readlink.c: New file.
90104
90105 2003-06-22  Karl Berry  <karl@gnu.org>
90106
90107         * config/srclist.txt: update mkinstalldirs from automake.
90108         * config/mkinstalldirs: update.
90109
90110 2003-06-22  Bruno Haible  <bruno@clisp.org>
90111
90112         Portability to mingw32.
90113         * m4/ssize_t.m4: New file, from GNU gettext.
90114         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90115         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90116
90117 2003-06-22  Bruno Haible  <bruno@clisp.org>
90118
90119         * modules/safe-read: Add m4/ssize_t.m4.
90120         * modules/xreadlink: Add m4/ssize_t.m4.
90121
90122 2003-06-20  Bruno Haible  <bruno@clisp.org>
90123
90124         Assume C89, so PARAMS isn't needed.
90125         * lib/unicodeio.h (PARAMS): Remove.
90126         * lib/unicodeio.c: Don't use PARAMS.
90127
90128 2003-06-18  Karl Berry  <karl@gnu.org>
90129
90130         * config/config.{guess,sub}: update from prep.
90131
90132 2003-06-18  Jim Meyering  <jim@meyering.net>
90133
90134         Merge changes from coreutils.
90135         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90136         Remove explicit declarations of xmalloc and realloc.
90137         Include xalloc.h.
90138         (read_utmp): Remove anachronistic cast of xmalloc.
90139
90140 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90141
90142         Assume C89, so PARAMS isn't needed.
90143         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90144         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90145         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90146         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90147         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90148         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90149         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90150         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90151         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90152         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90153         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90154         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90155         no longer needed. Anyway, config.h should always be included before any
90156         other file.
90157
90158 2003-06-11  Simon Josefsson  <jas@extundo.com>
90159
90160         * modules/sysexits: New file.
90161         * MODULES.html.sh (func_all_modules): Add sysexits.
90162
90163 2003-06-11  Simon Josefsson  <jas@extundo.com>
90164
90165         * lib/sysexit_.h: New file.
90166
90167 2003-06-11  Derek Price  <derek@ximbiot.com>
90168
90169         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90170         necessary.
90171
90172 2003-06-11  Bruno Haible  <bruno@clisp.org>
90173
90174         * m4/sysexits.m4: New file.
90175
90176 2003-06-10  Simon Josefsson  <jas@extundo.com>
90177
90178         * lib/argp.h: New file, from glibc.
90179         * lib/argp-ba.c: New file, from glibc.
90180         * lib/argp-eexst.c: New file, from glibc.
90181         * lib/argp-fmtstream.c: New file, from glibc.
90182         * lib/argp-fmtstream.h: New file, from glibc.
90183         * lib/argp-fs-xinl.c: New file, from glibc.
90184         * lib/argp-help.c: New file, from glibc.
90185         * lib/argp-namefrob.h: New file, from glibc.
90186         * lib/argp-parse.c: New file, from glibc.
90187         * lib/argp-pv.c: New file, from glibc.
90188         * lib/argp-pvh.c: New file, from glibc.
90189         * lib/argp-xinl.c: New file, from glibc.
90190
90191 2003-06-10  Simon Josefsson  <jas@extundo.com>
90192
90193         * modules/strchrnul: New file.
90194
90195 2003-06-10  Simon Josefsson  <jas@extundo.com>
90196
90197         * modules/argp: New file.
90198
90199 2003-06-10  Simon Josefsson  <jas@extundo.com>
90200
90201         * m4/strchrnul.m4: New file.
90202
90203 2003-06-10  Simon Josefsson  <jas@extundo.com>
90204
90205         * lib/strchrnul.h: New file.
90206         * lib/strchrnul.c: New file.
90207
90208 2003-06-10  Bruno Haible  <bruno@clisp.org>
90209
90210         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90211
90212 2003-06-07  Karl Berry  <karl@gnu.org>
90213
90214         * config/config.{guess,sub}: update from prep.
90215
90216 2003-06-07  Jim Meyering  <jim@meyering.net>
90217
90218         * modules/strtod: Use $(...) notation, not @...@ for
90219         AC_REPLACE'd variables.
90220         * modules/localcharset: Likewise.
90221
90222 2003-06-07  Jim Meyering  <jim@meyering.net>
90223
90224         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90225         in place of my name in the copyright comment.
90226         Remove definition and uses of __P.
90227
90228         From coreutils.
90229         * lib/stat.c: Don't declare xmalloc explicitly.
90230         Instead, include "xalloc.h".
90231         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90232         xrealloc, and xcalloc return values.
90233         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90234         Improve comment.
90235         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90236
90237 2003-06-07  Bruno Haible  <bruno@clisp.org>
90238
90239         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90240         avoid AC_CONFIG_LINKS.
90241         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90242         fnmatch.h, to avoid AC_CONFIG_LINKS.
90243         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90244
90245 2003-06-07  Bruno Haible  <bruno@clisp.org>
90246
90247         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90248         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90249         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90250         directory.
90251         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90252         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90253         directory.
90254
90255 2003-06-06  Jim Meyering  <jim@meyering.net>
90256
90257         Merge from coreutils.
90258         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90259         Consolidate declarations and initializations of *_base* locals.
90260
90261         Merge from coreutils.
90262         This avoids a core dump on systems without GNU putenv,
90263         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90264         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90265         (unsetenv): New static function, from GNU libc.
90266         (rpl_putenv): Use it.
90267
90268         * lib/modechange.c: Remove trailing blanks.
90269
90270         Merge from coreutils.
90271         * lib/fsusage.c: Remove declaration of statfs.
90272         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90273
90274         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90275
90276 2003-06-06  Jim Meyering  <jim@meyering.net>
90277
90278         * lib/stdbool_.h: Renamed from stdbool.h.in.
90279
90280 2003-06-06  Jim Meyering  <jim@meyering.net>
90281             Bruno Haible  <bruno@clisp.org>
90282
90283         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90284         Adjust Makefile.am snippet not to redirect directly to target.
90285         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90286
90287 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90288
90289         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
90290         mismatch, look in future quarters as well as past.  This fixes a
90291         bug when processing fall-backwards gaps immediately after a long
90292         period of daylight-saving time.
90293
90294         * lib/mktime.c: Assume freestanding C89 or better.
90295         (HAVE_LIMITS_H): Remove.  Assume it's 1.
90296         (__P): Remove; not used.
90297         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
90298         (mktime, not_equal_tm, print_tm, check_result,
90299         main): Use prototypes.  Use const * where appropriate.
90300         (main): Fix typo in testing code that uncovered by above changes.
90301         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90302
90303 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90304
90305         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90306         locale.h, localeconv.  This merges changes from coreutils.
90307
90308         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90309         It can be removed after the next Autoconf is released.
90310         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90311         needed.
90312
90313 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90314
90315         * lib/mktime.c: Fix Debian bug 177940
90316         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90317         (localtime_offset): Now long int, not time_t, because we want it
90318         to be guaranteed to be signed.  All uses changed.
90319         (__mktime_internal): If overflow would occur when adding offset,
90320         don't add it.
90321
90322         Merge 'human' changes from coreutils.  Rewrite to support
90323         locale-specific notations like thousands separators.
90324         * lib/human.c: Simplify authorship notice.
90325         Include human.h immediately after config.h.
90326         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90327         <limits.h>: Do not include, since human.h does.
90328         (SIZE_MAX, UINTMAX_MAX): New macros.
90329         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90330         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90331         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90332         (power_letter): Renamed from suffixes.
90333         (generate_suffix_backwards): Remove.
90334         (adjust_value): Now takes int style (because of human.h changes)
90335         and long double value (for greater precision on some platforms).
90336         (group_number): New function.
90337         (human_readable): Use it.  Use integer options, not enum.
90338         Put the options before the sizes in the arg list.
90339         Support all the new options.
90340         The old human_readable function has been removed;
90341         use inttostr.h instead.
90342         (human_readable, default_block_size, humblock):
90343         Use uintmax_t, not int, for block sizes.
90344         (human_readable_inexact, block_size_types): Remove.
90345         (block_size_opts): New constant.
90346         (human_options): Renamed from human_block_size, with new signature
90347         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90348         * lib/human.h: Add copyright and authorship notice.
90349         Include <limits.h> and <stdbool.h> unconditionally.
90350         (PARAMS): Remove.  All uses removed.
90351         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90352         (enum human_inexact_style): Remove tag; now a nameless enum.
90353         (human_floor, human_ceiling, human_round_to_even): Now have
90354         values 2, 0, 1 rather than -1, 1, 0.
90355         (human_group_digits, human_suppress_point_zero, human_autoscale,
90356         human_base_1024, human_SI, human_B): New constants.
90357         (human_readable_inexact, human_block_size): Remove.
90358         (human_readable): Size args are now uintmax_t, not int.
90359         (human_options): New decl.
90360
90361         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90362         unnecessary now that we assume C89 or better.  This change
90363         imported from coreutils.
90364
90365         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90366         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
90367         in the 2003-05-30 sync from glibc.
90368
90369         .h files should stand alone, but we shouldn't include <sys/types.h>
90370         if we can get away with just <stddef.h>.
90371
90372         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
90373         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
90374         rather than <sys/types.h>, as we merely need size_t.
90375         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
90376         to get size_t.
90377         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
90378         Include <stdio.h>, to get FILE.
90379         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
90380         memcasecmp.h has included <stddef.h> and all we need is size_t.
90381         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
90382         our interface, instead of including <sys/types.h>
90383
90384 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90385
90386         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
90387         now, as glibc mktime is buggy on non-glibc systems.
90388
90389 2003-06-03  Karl Berry  <karl@gnu.org>
90390
90391         * config/config.sub: update from prep.
90392
90393 2003-06-02  Paul Eggert  <eggert@twinsun.com>
90394
90395         [from coreutils]
90396         Fix some minor time-related bugs with POSIX time arguments.
90397         Some valid time stamps were being rejected (notably -1, and
90398         time stamps before 1900 on 64-bit hosts).  And some invalid
90399         time stamps were being accepted, e.g. September 31.
90400
90401         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
90402         that we can return (time_t) -1 successfully.
90403         * lib/posixtm.c: Likewise.
90404         [HAVE_STDBOOL_H]: Include <stdbool.h>.
90405         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
90406         (t): Remove static var.
90407         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
90408         of static var.  All uses changed.
90409         (year): Do not reject years before 1900; they can occur with
90410         64-bit time_t.
90411         (posix_time_parse): Do not check for out-of-range components;
90412         that is now the caller's responsibility, since our checks were
90413         only approximations.
90414         (posixtime): Use mktime to check for out-of-range components,
90415         since it knows them exactly.
90416         If mktime returns (time_t) -1, check whether an error actually occurred
90417         by invoking localtime on -1.
90418         (main) [TEST_POSIXTIME]: Check for input data errors, and report
90419         posixtime failures better.
90420         Improve the test data (in comments only).
90421
90422 2003-06-02  Karl Berry  <karl@gnu.org>
90423
90424         * config/mkinstalldirs (version): new variable.
90425         (--version): new option.
90426         (usage): improve message.
90427
90428 2003-05-30  Karl Berry  <karl@gnu.org>
90429
90430         * lib/mktime.c: update from libc.
90431
90432 2003-05-30  Bruno Haible  <bruno@clisp.org>
90433
90434         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90435         * config/config.rpath: Upgrade to gettext-0.12.1.
90436
90437 2003-05-30  Bruno Haible  <bruno@clisp.org>
90438
90439         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90440         * m4/nls.m4: New file, from gettext-0.12.1.
90441         * m4/po.m4: New file, from gettext-0.12.1.
90442         * m4/progtest.m4: Upgrade to gettext-0.12.1.
90443
90444 2003-05-30  Bruno Haible  <bruno@clisp.org>
90445
90446         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
90447         * lib/localcharset.h: Likewise.
90448         * lib/localcharset.c: Likewise.
90449
90450 2003-05-29  Karl Berry  <karl@gnu.org>
90451
90452         * config/config.rpath: update from gettext.
90453
90454 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90455
90456         Assume the headers required for C89 freestanding compilers.
90457         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
90458         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
90459         * m4/human.m4 (gl_HUMAN): Likewise.
90460         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
90461         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90462         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90463         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90464         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90465         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90466
90467 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90468
90469         Assume the headers required for C89 freestanding compilers.
90470         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90471         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
90472         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
90473         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
90474         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
90475         define, since <limits.h> is guaranteed to do that.
90476         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
90477         * lib/exclude.c: Include <stdbool.h> unconditionally.
90478         * lib/tempname.c: Include <stddef.h> unconditionally.
90479         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
90480         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
90481         <stddef.h> does that.
90482         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
90483         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
90484         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
90485         needed.
90486         * lib/xstrtol.c: Likewise.
90487         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
90488         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
90489
90490         * lib/addext.c (addext): Use assignment rather than cast, to avoid
90491         warnings on some platforms.
90492
90493         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90494         arbitrarily.
90495
90496 2003-05-26  Jim Meyering  <jim@meyering.net>
90497
90498         Merge in a change from coreutils:
90499         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
90500         that is guaranteed to be `no'.  Use `no_such_member' to indicate
90501         that condition, rather than `-1' which is slightly misleading.
90502         Change the name of the cache variable to have the gl_ prefix.
90503         Prompted by a patch from Richard Dawe for DJGPP.
90504
90505 2003-05-24  Karl Berry  <karl@gnu.org>
90506
90507         * config/config.guess: update from prep.
90508
90509 2003-05-22  Karl Berry  <karl@gnu.org>
90510
90511         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
90512
90513 2003-05-20  Karl Berry  <karl@gnu.org>
90514
90515         * config/config.guess: update from prep.
90516
90517 2003-05-18  Karl Berry  <karl@gnu.org>
90518
90519         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90520         might actually be set by the user.
90521
90522         * config/depcomp, install-sh, mdate-sh: update from automake.
90523
90524 2003-05-17  Bruno Haible  <bruno@clisp.org>
90525
90526         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90527         invalid expansion for AC_EGREP_CPP.
90528         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90529         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90530         Suggested by Akim Demaille <akim@epita.fr> in
90531         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90532
90533 2003-05-12  Jim Meyering  <jim@meyering.net>
90534
90535         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90536         the space-padded-by-default conversion specifiers, %e, %k, %l.
90537
90538 2003-05-12  Bruno Haible  <bruno@clisp.org>
90539
90540         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90541         the string is longer than 4 KB.
90542
90543 2003-05-11  Karl Berry  <karl@gnu.org>
90544
90545         * config/config.{guess,sub}: update from prep.
90546
90547 2003-05-09  Bruno Haible  <bruno@clisp.org>
90548
90549         * modules/error: Add m4/strerror_r.m4 to file list.
90550
90551 2003-05-03  Bruno Haible  <bruno@clisp.org>
90552
90553         Upgrade to Unicode-4.0.
90554         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90555         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90556         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90557         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90558         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90559         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90560         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90561         Change width of U+E0100..U+E01EF from 1 to 0.
90562
90563 2003-04-25  Jim Meyering  <jim@meyering.net>
90564
90565         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90566         of type size_t, not int.
90567
90568 2003-04-25  Bruno Haible  <bruno@clisp.org>
90569
90570         * lib/copy-file.c: Include <stddef.h>, for size_t.
90571
90572 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90573
90574         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90575         code which expansion is under static control.  Patch imported from
90576         Akim Demaille's patch to Bison; see
90577         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90578
90579 2003-04-14  Bruno Haible  <bruno@clisp.org>
90580
90581         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90582
90583 2003-04-11  Jim Meyering  <jim@meyering.net>
90584
90585         Merge changes from Coreutils.
90586
90587         2003-03-22  Jim Meyering  <jim@meyering.net>
90588
90589         * lib/strftime.c (widen): Cast alloca return value to proper type.
90590
90591         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90592
90593         From GNU libc.
90594         * lib/strftime.c (my_strftime): Handle very large width
90595         specifications for numeric values correctly.  Improve checks for
90596         overflow.
90597
90598         2003-01-19  Jim Meyering  <jim@meyering.net>
90599
90600         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90601         definitions.
90602         (nl_get_alt_digit) [! defined my_strftime]: Define.
90603         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90604         _nl_get_alt_digit and _nl_get_walt_digit.
90605
90606         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90607         libc. These changes have no effect outside of _LIBC.
90608
90609 2003-04-10  Bruno Haible  <bruno@clisp.org>
90610
90611         * modules/findprog: New file.
90612         * MODULES.html.sh (func_all_modules): Add it.
90613
90614 2003-04-10  Bruno Haible  <bruno@clisp.org>
90615
90616         * m4/findprog.m4: New file.
90617         * m4/eaccess.m4: New file.
90618
90619 2003-04-10  Bruno Haible  <bruno@clisp.org>
90620
90621         * lib/findprog.h: New file, from GNU gettext.
90622         * lib/findprog.c: New file, from GNU gettext.
90623
90624 2003-04-05  Jim Meyering  <jim@meyering.net>
90625
90626         Merge changes from Coreutils.
90627
90628         * lib/exclude.h (PARAMS): Remove definition and uses.
90629         * lib/exclude.c: Remove uses of `PARAMS'.
90630
90631         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90632         Add test-cases for DOS filenames. Declare program_name.
90633         (main): Set up program_name.  Patch by Rich Dawe.
90634
90635         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90636         error from mntctl.
90637         Use mntctl's return value to drive the entry-processing loop, since
90638         we can't rely on the value of the vmt_length member in the last
90639         entry.  On some systems doing so could result in exhausting
90640         virtual memory.  Based in part on a patch from Mike Jetzer.
90641
90642 2003-04-04  Bruno Haible  <bruno@clisp.org>
90643
90644         * modules/linebreak: New file.
90645         * MODULES.html.sh (func_all_modules): Add it.
90646
90647 2003-04-04  Bruno Haible  <bruno@clisp.org>
90648
90649         * m4/linebreak.m4: New file.
90650
90651 2003-04-04  Bruno Haible  <bruno@clisp.org>
90652
90653         * lib/linebreak.h: New file, from GNU gettext.
90654         * lib/linebreak.c: New file, from GNU gettext with slight
90655         modifications.
90656         * lib/lbrkprop.h: New file, from GNU gettext.
90657
90658 2003-04-03  Bruno Haible  <bruno@clisp.org>
90659
90660         * modules/utf8-ucs4: New file.
90661         * modules/utf16-ucs4: New file.
90662         * modules/ucs4-utf8: New file.
90663         * modules/ucs4-utf16: New file.
90664         * MODULES.html.sh (func_all_modules): Add them.
90665
90666 2003-04-03  Bruno Haible  <bruno@clisp.org>
90667
90668         * m4/utf-ucs4.m4: New file.
90669         * m4/ucs4-utf.m4: New file.
90670
90671 2003-04-03  Bruno Haible  <bruno@clisp.org>
90672
90673         * lib/utf8-ucs4.h: New file, from GNU gettext.
90674         * lib/utf16-ucs4.h: New file, from GNU gettext.
90675         * lib/ucs4-utf8.h: New file, from GNU gettext.
90676         * lib/ucs4-utf16.h: New file, from GNU gettext.
90677
90678 2003-04-02  Bruno Haible  <bruno@clisp.org>
90679
90680         * modules/binary-io: New file.
90681         * MODULES.html.sh (func_all_modules): Add it.
90682
90683 2003-04-02  Bruno Haible  <bruno@clisp.org>
90684
90685         * lib/binary-io.h: New file, from GNU gettext.
90686
90687 2003-04-01  Bruno Haible  <bruno@clisp.org>
90688
90689         * modules/pathname: New file.
90690         * MODULES.html.sh (func_all_modules): Add it.
90691
90692 2003-04-01  Bruno Haible  <bruno@clisp.org>
90693
90694         * lib/pathname.h: New file, from GNU gettext.
90695         * lib/concatpath.c: New file, from GNU gettext.
90696
90697 2003-03-30  Bruno Haible  <bruno@clisp.org>
90698
90699         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90700
90701 2003-03-30  Bruno Haible  <bruno@clisp.org>
90702
90703         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90704         function chown() doesn't exist.
90705
90706 2003-03-28  Bruno Haible  <bruno@clisp.org>
90707
90708         * modules/copy-file: New file.
90709         * MODULES.html.sh (func_all_modules): Add it.
90710
90711 2003-03-28  Bruno Haible  <bruno@clisp.org>
90712
90713         * m4/copy-file.m4: New file.
90714
90715 2003-03-28  Bruno Haible  <bruno@clisp.org>
90716
90717         * lib/copy-file.h: New file, from GNU gettext.
90718         * lib/copy-file.c: New file, from GNU gettext.
90719
90720 2003-03-18  Jim Meyering  <jim@meyering.net>
90721
90722         * lib/quote.c (quote_n): Fix typo in comment.
90723
90724 2003-03-18  Bruno Haible  <bruno@clisp.org>
90725
90726         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90727         checking.
90728         * m4/onceonly_2_57.m4: Likewise.
90729
90730 2003-03-17  Bruno Haible  <bruno@clisp.org>
90731
90732         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90733         (m4_quote): Remove macro.
90734         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90735
90736 2003-03-14  Jim Meyering  <jim@meyering.net>
90737
90738         Merge changes from Coreutils.
90739         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90740         to be const, in order to avoid warnings.
90741         (obstack_room): Likewise.
90742         (obstack_empty_p): Likewise.
90743
90744 2003-03-14  Bruno Haible  <bruno@clisp.org>
90745
90746         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90747         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90748
90749 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90750
90751         Merge changes from Bison.
90752         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90753         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90754         when compiling Bison 1.875's `bitset bset = obstack_alloc
90755         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90756         * lib/hash.c: Include <stdbool.h> unconditionally.
90757
90758 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90759
90760         * m4/onceonly.m4 (m4_quote): New macro.
90761         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90762         Quote AC_FOREACH variable-expansions properly.
90763
90764 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90765
90766         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90767
90768 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90769
90770         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90771         Reported by Bruce Becker; see:
90772         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90773
90774 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90775             Bruno Haible  <bruno@clisp.org>
90776
90777         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90778         Reported by John Hughes, see
90779         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90780
90781 2003-02-20  Bruno Haible  <bruno@clisp.org>
90782
90783         * MODULES.html.sh (func_all_modules): Add poll.
90784
90785 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90786
90787         * modules/poll: New file.
90788
90789 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90790
90791         * lib/poll_.h: New file.
90792         * lib/poll.c: New file.
90793
90794 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90795
90796         * m4/poll.m4: New file.
90797
90798 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90799
90800         * modules/mathl: New file.
90801
90802 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90803
90804         * lib/mathl.h: New file.
90805         * lib/acosl.c: New file.
90806         * lib/asinl.c: New file.
90807         * lib/atanl.c: New file.
90808         * lib/ceill.c: New file.
90809         * lib/cosl.c: New file.
90810         * lib/expl.c: New file.
90811         * lib/floorl.c: New file.
90812         * lib/frexpl.c: New file.
90813         * lib/ldexpl.c: New file.
90814         * lib/logl.c: New file.
90815         * lib/sincosl.c: New file.
90816         * lib/sinl.c: New file.
90817         * lib/sqrtl.c: New file.
90818         * lib/tanl.c: New file.
90819         * lib/trigl.c: New file.
90820         * lib/trigl.h: New file.
90821
90822 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90823
90824         * m4/mathl.m4: New file.
90825
90826 2003-02-18  Bruno Haible  <bruno@clisp.org>
90827
90828         * MODULES.html.sh (func_all_modules): Add mathl.
90829
90830 2003-02-17  Bruno Haible  <bruno@clisp.org>
90831
90832         * modules/mkdtemp: New module.
90833         * MODULES.html.sh (func_all_modules): Add it.
90834
90835 2003-02-17  Bruno Haible  <bruno@clisp.org>
90836
90837         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90838
90839 2003-02-17  Bruno Haible  <bruno@clisp.org>
90840
90841         * lib/mkdtemp.h: New file, from GNU gettext.
90842         * lib/mkdtemp.c: New file, from GNU gettext.
90843
90844 2003-02-02  Jim Meyering  <jim@meyering.net>
90845
90846         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90847         e.g. glibc-2.2.93.
90848
90849 2003-01-31  Bruno Haible  <bruno@clisp.org>
90850
90851         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90852         'rpl_rename'.
90853         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90854         'rpl_strnlen'.
90855         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90856         'rpl_strtod'.
90857         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90858         'rpl_utime'.
90859
90860 2003-01-31  Bruno Haible  <bruno@clisp.org>
90861
90862         * lib/rename.c: #undef rename before defining rpl_rename.
90863         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90864
90865 2003-01-30  Bruno Haible  <bruno@clisp.org>
90866
90867         * modules/vasnprintf, modules/vasprintf: New modules.
90868         * MODULES.html.sh (func_all_modules): Add them.
90869
90870 2003-01-30  Bruno Haible  <bruno@clisp.org>
90871
90872         * m4/signed.m4: New file, from GNU gettext.
90873         * m4/longdouble.m4: New file, from GNU gettext.
90874         * m4/wchar_t.m4: New file, from GNU gettext.
90875         * m4/wint_t.m4: New file, from GNU gettext.
90876         * m4/vasnprintf.m4: New file.
90877         * m4/vasprintf.m4: New file.
90878
90879 2003-01-30  Bruno Haible  <bruno@clisp.org>
90880
90881         * lib/printf-args.h: New file, from GNU gettext.
90882         * lib/printf-args.c: New file, from GNU gettext.
90883         * lib/printf-parse.h: New file, from GNU gettext.
90884         * lib/printf-parse.c: New file, from GNU gettext.
90885         * lib/vasnprintf.h: New file, from GNU gettext.
90886         * lib/vasnprintf.c: New file, from GNU gettext.
90887         * lib/asnprintf.c: New file, from GNU gettext.
90888         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90889         * lib/vasprintf.c: New file, from GNU gettext.
90890         * lib/asprintf.c: New file, from GNU gettext.
90891
90892 2003-01-29  Bruno Haible  <bruno@clisp.org>
90893
90894         * modules/stpncpy: New module.
90895         * MODULES.html.sh (func_all_modules): Add it.
90896
90897 2003-01-29  Bruno Haible  <bruno@clisp.org>
90898
90899         * m4/stpncpy.m4: New file.
90900
90901 2003-01-29  Bruno Haible  <bruno@clisp.org>
90902
90903         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90904         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90905
90906 2003-01-28  Bruno Haible  <bruno@clisp.org>
90907
90908         * modules/c-ctype: New module.
90909         * MODULES.html.sh (func_all_modules): Add it.
90910
90911 2003-01-28  Bruno Haible  <bruno@clisp.org>
90912
90913         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90914         Paul Eggert.
90915         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90916         Paul Eggert.
90917
90918 2003-01-27  Bruno Haible  <bruno@clisp.org>
90919
90920         * modules/xsetenv: New module.
90921         * MODULES.html.sh (func_all_modules): Add it.
90922
90923 2003-01-27  Bruno Haible  <bruno@clisp.org>
90924
90925         * lib/xsetenv.h: New file, from GNU gettext.
90926         * lib/xsetenv.c: New file, from GNU gettext.
90927
90928 2003-01-23  Jim Meyering  <jim@meyering.net>
90929
90930         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90931         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90932
90933 2003-01-23  Bruno Haible  <bruno@clisp.org>
90934
90935         * modules/minmax: New module.
90936         * MODULES.html.sh (func_all_modules): Add it.
90937
90938 2003-01-23  Bruno Haible  <bruno@clisp.org>
90939
90940         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90941         Eggert.
90942
90943 2003-01-22  Bruno Haible  <bruno@clisp.org>
90944
90945         * modules/exit: New module.
90946         * MODULES.html.sh (func_all_modules): Add it.
90947
90948 2003-01-22  Bruno Haible  <bruno@clisp.org>
90949
90950         * lib/exit.h: New file, from GNU gettext.
90951
90952 2003-01-19  Bruno Haible  <bruno@clisp.org>
90953
90954         * gnulib-tool: Recognize option --extract-maintainer.
90955         (func_get_maintainer): New function.
90956         * modules/*: Add Maintainer entry.
90957
90958 2003-01-16  Jim Meyering  <jim@meyering.net>
90959
90960         * m4/regex.m4: The `regex' struct is both input and output.
90961         Initialize it before each use.  Patch by Tim Waugh.
90962
90963 2003-01-16  Bruno Haible  <bruno@clisp.org>
90964
90965         * MODULES.html.sh: Add a table of contents. Add the module name as
90966         leftmost column. Add hyperlinks.
90967
90968 2003-01-15  Bruno Haible  <bruno@clisp.org>
90969
90970         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90971
90972 2003-01-15  Bruno Haible  <bruno@clisp.org>
90973
90974         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90975         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90976         suffix.
90977
90978 2003-01-15  Bruno Haible  <bruno@clisp.org>
90979
90980         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90981
90982 2003-01-15  Bruno Haible  <bruno@clisp.org>
90983
90984         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90985         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90986
90987 2003-01-14  Jim Meyering  <jim@meyering.net>
90988
90989         * lib/same.c (same_name): Tweak a comment.
90990
90991 2003-01-14  Bruno Haible  <bruno@clisp.org>
90992
90993         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90994         when a string comparison is sufficient.
90995
90996 2003-01-14  Bruno Haible  <bruno@clisp.org>
90997
90998         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90999         'unsigned int'.
91000
91001 2003-01-14  Bruno Haible  <bruno@clisp.org>
91002
91003         * lib/hash-pjw.c: Add comment about low quality of this function.
91004
91005 2003-01-13  Bruno Haible  <bruno@clisp.org>
91006
91007         * modules/stpcpy: Distribute lib/stpcpy.h.
91008         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
91009
91010 2003-01-13  Bruno Haible  <bruno@clisp.org>
91011
91012         * modules/*: Add a description.
91013         * modules/strpbrk: Fix Makefile.am snippet.
91014         * modules/strtoimax: Fix dependencies.
91015         * modules/strtoumax: Likewise.
91016
91017 2003-01-13  Bruno Haible  <bruno@clisp.org>
91018
91019         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
91020         * modules/alloca (Makefile.am): All object files depend on alloca.h.
91021         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
91022
91023 2003-01-13  Bruno Haible  <bruno@clisp.org>
91024
91025         * gnulib-tool (func_create_testdir): Store config/* files in the main
91026         directory.
91027         * config.rpath: Move to ...
91028         * config/config.rpath: ... here.
91029         * modules/gettext: Contains config/config.rpath, not config.rpath.
91030         * modules/iconv: Likewise.
91031
91032 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91033
91034         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91035         to avoid collisions with libcurses and libreadline.
91036
91037         * m4/getstr.m4: Remove.
91038         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91039
91040 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91041
91042         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91043         to avoid collisions with libcurses and libreadline.
91044
91045         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91046         * lib/getstr.h, getstr.c: Remove.
91047         * lib/getline.c: Include "getline.h", to check interface.
91048         Move body of old getstr.c here: this defines MIN_CHUNK and
91049         declares getdelim2, which is renamed from getstr.
91050         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91051
91052         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91053         All uses changed.
91054         * lib/linebuffer.h: Likewise.
91055         (readline): Remove backward-compatibility macro.
91056
91057 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91058
91059         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91060         to avoid collisions with libcurses and libreadline.
91061         * getstr: Remove.
91062         * MODULES.html.sh: Remove getstr.
91063         * modules/getline: Depend on unlocked-io, not getstr.
91064
91065 2003-01-12  Jim Meyering  <jim@meyering.net>
91066
91067         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91068
91069 2003-01-10  Bruno Haible  <bruno@clisp.org>
91070
91071         * modules/alloca: Change Makefile.am requirements. Simplify Include
91072         requirements. Add lib/alloca_.h to file list.
91073
91074 2003-01-10  Bruno Haible  <bruno@clisp.org>
91075
91076         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91077
91078 2003-01-10  Bruno Haible  <bruno@clisp.org>
91079
91080         * lib/alloca_.h: New file.
91081         * lib/getdate.y: Unconditionally include alloca.h.
91082         * lib/makepath.c: Likewise.
91083         * lib/setenv.c: Likewise.
91084         * lib/userspec.c: Likewise.
91085
91086 2003-01-09  Karl Berry  <karl@gnu.org>
91087
91088         * MODULES.html.sh: include `dirname $0` in PATH, to find
91089         gnulib-tool.
91090
91091 2003-01-09  Bruno Haible  <bruno@clisp.org>
91092
91093         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91094         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91095
91096 2003-01-09  Bruno Haible  <bruno@clisp.org>
91097
91098         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91099
91100 2003-01-09  Bruno Haible  <bruno@clisp.org>
91101
91102         * lib/stdbool.h.in: New file.
91103
91104 2003-01-09  Bruno Haible  <bruno@clisp.org>
91105
91106         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91107         * MODULES.html.sh: Likewise.
91108
91109 2003-01-08  Jim Meyering  <jim@meyering.net>
91110
91111         * lib/full-write.c: Undefine and define-away `const' after inclusion
91112         of errno.h, not before.  Suggestion from Bruno Haible.
91113
91114 2003-01-08  Bruno Haible  <bruno@clisp.org>
91115
91116         * modules/full-read: Depend on full-write.
91117
91118 2003-01-08  Bruno Haible  <bruno@clisp.org>
91119
91120         * lib/safe-read.c: Include specification header first, to ensure its
91121         selfcontainedness.
91122         * lib/full-write.c: Likewise.
91123
91124 2003-01-07  Jim Meyering  <jim@meyering.net>
91125
91126         * lib/full-write.c: Rework so that it may serve to define full_read,
91127         too.
91128         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91129
91130 2003-01-07  Bruno Haible  <bruno@clisp.org>
91131
91132         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91133         <inttypes.h>.
91134         * lib/xstrtol.h: Likewise.
91135         * lib/xstrtoimax.c: Likewise.
91136         * lib/xstrtoumax.c: Likewise.
91137         * lib/human.h: Likewise.
91138
91139         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91140         on systems that have <inttypes.h> but not <stdint.h>.
91141
91142 2003-01-07  Bruno Haible  <bruno@clisp.org>
91143
91144         * MODULES.html.sh: Add copyright notice.
91145         (missed_files): Omit CVS directory entries.
91146         (func_module): Make it work with sed-3.02.
91147         * MODULES.txt: Remove file.
91148
91149 2003-01-06  Jim Meyering  <jim@meyering.net>
91150
91151         * lib/version-etc.c: Update year in translatable copyright string.
91152
91153 2003-01-03  Karl Berry  <karl@gnu.org>
91154
91155         * config/config.{guess,sub}: update from prep.
91156
91157 2003-01-02  Karl Berry  <karl@gnu.org>
91158
91159         * doc/COPYING.DOC: belatedly updated to 1.2.
91160
91161 2003-01-01  Karl Berry  <karl@gnu.org>
91162
91163         * gnulib-tool (func_verify_module): report module name $module in
91164         error message, not $1.
91165         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91166         be created, only if it doesn't exist.
91167         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91168
91169 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91170
91171         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91172
91173 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91174
91175         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91176         memcmp if strcoll doesn't work.
91177
91178 2002-12-31  Bruno Haible  <bruno@clisp.org>
91179
91180         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91181         nonempty.
91182
91183 2002-12-31  Bruno Haible  <bruno@clisp.org>
91184
91185         * lib/memcoll.c (STRCOLL): New macro.
91186         (memcoll): Use it.
91187
91188 2002-12-31  Bruno Haible  <bruno@clisp.org>
91189
91190         * lib/localcharset.h: New file.
91191         * lib/localcharset.c: Include it.
91192         * lib/unicodeio.c: Likewise.
91193
91194 2002-12-31  Bruno Haible  <bruno@clisp.org>
91195
91196         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91197         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91198
91199 2002-12-31  Bruno Haible  <bruno@clisp.org>
91200
91201         * lib/getline.h: Include <stddef.h>, for size_t.
91202
91203         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91204         * lib/unicodeio.c: Don't include <stddef.h>.
91205
91206 2002-12-31  Bruno Haible  <bruno@clisp.org>
91207
91208         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91209         HAVE_TM_ZONE.
91210
91211 2002-12-24  Karl Berry  <karl@gnu.org>
91212
91213         * config/config.guess: update from prep.
91214
91215 2002-12-24  Bruno Haible  <bruno@clisp.org>
91216
91217         General infrasructure.
91218         * m4/README: Rewritten.
91219         * m4/onceonly.m4: New file.
91220         * m4/onceonly_2_57.m4: New file.
91221
91222         Module atexit.
91223         * m4/atexit.m4: New file.
91224
91225         Module strtod.
91226         * m4/strtod.m4: New file.
91227
91228         Module strtol.
91229         * m4/strtol.m4: New file.
91230
91231         Module strtoul.
91232         * m4/strtoul.m4: New file.
91233
91234         Module memchr.
91235         * m4/memchr.m4: New file.
91236
91237         Module memcmp.
91238         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91239         (jm_FUNC_MEMCMP): Invoke it.
91240
91241         Module memcpy.
91242         * m4/memcpy.m4: New file.
91243
91244         Module memmove.
91245         * m4/memmove.m4: New file.
91246
91247         Module memset.
91248         * m4/memset.m4: New file.
91249
91250         Module strcspn.
91251         * m4/strcspn.m4: New file.
91252
91253         Module strpbrk.
91254         * m4/strpbrk.m4: New file.
91255
91256         Module strstr.
91257         * m4/strstr.m4: New file.
91258
91259         Module strerror.
91260         * m4/strerror.m4: New file.
91261
91262         Module mktime.
91263         * m4/mktime.m4: Renamed from jm-mktime.m4.
91264         (gl_PREREQ_MKTIME): New macro.
91265         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91266
91267         Module malloc.
91268         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91269         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91270         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91271
91272         Module realloc.
91273         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91274         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91275         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91276
91277         Module strftime.
91278         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91279         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91280         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91281         gl_TM_GMTOFF.
91282         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91283
91284         Module xalloc.
91285         * m4/xalloc.m4: New file.
91286
91287         Module alloca.
91288         * m4/alloca.m4: New file.
91289
91290         Module putenv.
91291         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
91292         (jm_FUNC_PUTENV): Invoke it.
91293
91294         Module setenv.
91295         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
91296         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
91297         when invoked twice.
91298         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
91299         gt_FUNC_SETENV.
91300
91301         Module memrchr.
91302         * m4/memrchr.m4: New file.
91303
91304         Module stpcpy.
91305         * m4/stpcpy.m4: New file.
91306
91307         Module strcase.
91308         * m4/strcase.m4: New file.
91309
91310         Module strdup.
91311         * m4/strdup.m4: New file.
91312
91313         Module strnlen.
91314         * m4/strnlen.m4: New file.
91315
91316         Module strndup.
91317         * m4/strndup.m4: New file.
91318
91319         Module xstrtod.
91320         * m4/xstrtod.m4: New file.
91321
91322         Module xstrtol.
91323         * m4/xstrtol.m4: New file.
91324
91325         Module getdate.
91326         * m4/getdate.m4: New file.
91327
91328         Module unlocked-io.
91329         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91330         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91331         * m4/jm-glibc-io.m4n: Remove file.
91332
91333         Module long-options.
91334         * m4/long-options.m4: New file.
91335
91336         Module md5.
91337         * m4/md5.m4: New file.
91338
91339         Module sha.
91340         * m4/sha.m4: New file.
91341
91342         Module getstr.
91343         * m4/getstr.m4: New file.
91344
91345         Module getline.
91346         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91347         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91348         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91349         simply getline. Infoke gl_PREREQ_GETLINE.
91350
91351         Module obstack.
91352         * m4/obstack.m4: New file.
91353
91354         Module hash.
91355         * m4/hash.m4: New file.
91356
91357         Module readtokens.
91358         * m4/readtokens.m4: New file.
91359
91360         Module strverscmp.
91361         * m4/strverscmp.m4: New file.
91362
91363         Module stdbool.
91364         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
91365         OSF/1.
91366
91367         Module strtoll.
91368         * m4/strtoll.m4: New file.
91369
91370         Module strtoull.
91371         * m4/strtoull.m4: New file.
91372
91373         Module strtoimax.
91374         * m4/strtoimax.m4: New file.
91375
91376         Module strtoumax.
91377         * m4/strtoumax.m4: New file.
91378
91379         Module xstrtoimax.
91380         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
91381         jm_AC_PREREQ_XSTRTOIMAX.
91382         Moved the strtol prerequisites to strtol.m4.
91383         Moved the strtoll prerequisites to strtoll.m4.
91384         Moved the strtoimax prerequisites to strtoimax.m4.
91385
91386         Module xstrtoumax.
91387         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
91388         jm_AC_PREREQ_XSTRTOUMAX.
91389         Moved the strtoul prerequisites to strtoul.m4.
91390         Moved the strtoull prerequisites to strtoull.m4.
91391         Moved the strtoumax prerequisites to strtoumax.m4.
91392
91393         Module chown.
91394         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
91395         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
91396
91397         Module dup2.
91398         * m4/dup2.m4: New file.
91399
91400         Module ftruncate.
91401         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
91402         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
91403
91404         Module getgroups.
91405         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
91406         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
91407
91408         Module gettimeofday.
91409         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
91410         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
91411         gl_PREREQ_GETTIMEOFDAY.
91412
91413         Module mkdir.
91414         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
91415         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
91416
91417         Module mkstemp.
91418         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
91419         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
91420         jm_AC_TYPE_UINTMAX_T.
91421         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91422
91423         Module stat.
91424         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91425         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91426
91427         Module lstat.
91428         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91429         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91430
91431         Module timespec.
91432         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91433         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91434         * m4/st_mtim.m4: Indentation.
91435
91436         Module nanosleep.
91437         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91438         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91439         gl_PREREQ_NANOSLEEP.
91440
91441         Module regex.
91442         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
91443         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
91444         (gl_REGEX): New macro.
91445
91446         Module rename.
91447         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
91448         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
91449
91450         Module rmdir.
91451         * m4/rmdir.m4: New file.
91452
91453         Module utime.
91454         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
91455         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
91456         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
91457
91458         Module dirname.
91459         * m4/dirname.m4: New file.
91460
91461         Module getopt.
91462         * m4/getopt.m4: New file.
91463
91464         Module unistd-safer.
91465         * m4/unistd-safer.m4: New file.
91466
91467         Module fnmatch.
91468         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91469         declaration.
91470         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91471         (gl_FUNC_FNMATCH_POSIX): New macro.
91472         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
91473         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
91474         simply fnmatch.
91475
91476         Module exclude.
91477         * m4/exclude.m4: New file.
91478
91479         Module human.
91480         * m4/human.m4: New file.
91481
91482         Module acl.
91483         * m4/acl.m4: Nop.
91484
91485         Module backupfile.
91486         * m4/backupfile.m4: New file.
91487         * m4/d-ino.m4: Indentation.
91488
91489         Module fsusage.
91490         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
91491         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
91492         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
91493
91494         Module dirfd.
91495         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
91496         requirements.
91497
91498         Module euidaccess.
91499         * m4/euidaccess.m4: New file.
91500
91501         Module file-type.
91502         * m4/file-type.m4: New file.
91503
91504         Module fileblocks.
91505         * m4/fileblocks.m4: New file.
91506
91507         Module filemode.
91508         * m4/filemode.m4: New file.
91509
91510         Module isdir.
91511         * m4/isdir.m4: New file.
91512
91513         Module lchown.
91514         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
91515         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
91516
91517         Module makepath.
91518         * m4/makepath.m4: New file.
91519
91520         Module modechange.
91521         * m4/modechange.m4: New file.
91522
91523         Module mountlist.
91524         * m4/mountlist.m4: New file.
91525         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91526         Indentation.
91527
91528         Module path-concat.
91529         * m4/path-concat.m4: New file.
91530
91531         Module pathmax.
91532         * m4/pathmax.m4: New file.
91533
91534         Module same.
91535         * m4/same.m4: New file.
91536
91537         Module save-cwd.
91538         * m4/save-cwd.m4: New file.
91539
91540         Module savedir.
91541         * m4/savedir.m4: New file.
91542
91543         Module xgetcwd.
91544         * m4/xgetcwd.m4: New file.
91545         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91546
91547         Module xreadlink.
91548         * m4/xreadlink.m4: New file.
91549
91550         Module safe-read.
91551         * m4/safe-read.m4: New file.
91552
91553         Module safe-write.
91554         * m4/safe-write.m4: New file.
91555
91556         Module closeout.
91557         * m4/closeout.m4: New file.
91558
91559         Module stdio-safer.
91560         * m4/stdio-safer.m4: New file.
91561
91562         Module getpass.
91563         * m4/getpass.m4: New file.
91564
91565         Module getugroups.
91566         * m4/getugroups.m4: New file.
91567
91568         Module group-member.
91569         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91570         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91571
91572         Module idcache.
91573         * m4/idcache.m4: New file.
91574
91575         Module userspec.
91576         * m4/userspec.m4: New file.
91577
91578         Module gettime.
91579         * m4/clock_time.m4: New file.
91580         * m4/gettime.m4: New file.
91581
91582         Module settime.
91583         * m4/settime.m4: New file.
91584
91585         Module posixtm.
91586         * m4/posixtm.m4: New file.
91587
91588         Module gethostname.
91589         * m4/gethostname.m4: New file.
91590
91591         Module canon-host.
91592         * m4/canon-host.m4: New file.
91593
91594         Module gettext.
91595         * m4/codeset.m4: New file, from gettext-0.11.5.
91596         * m4/gettext.m4: New file, from gettext-0.11.5.
91597         * m4/glibc21.m4: New file, from gettext-0.11.5.
91598         * m4/iconv.m4: New file, from gettext-0.11.5.
91599         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91600         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91601         * m4/inttypes.m4: New file, from gettext-0.11.5.
91602         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91603         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91604         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91605         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91606         * m4/lib-link.m4: New file, from gettext-0.11.5.
91607         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91608         * m4/progtest.m4: New file, from gettext-0.11.5.
91609         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91610         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91611         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91612
91613         Module localcharset.
91614         * m4/localcharset.m4: New file.
91615
91616         Module hard-locale.
91617         * m4/hard-locale.m4: New file.
91618
91619         Module mbswidth.
91620         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91621         onceonly macros.
91622         * m4/mbrtowc.m4: Add comment.
91623
91624         Module memcasecmp.
91625         * m4/memcasecmp.m4: New file.
91626
91627         Module memcoll.
91628         * m4/memcoll.m4: New file.
91629
91630         Module unicodeio.
91631         * m4/unicodeio.m4: New file.
91632
91633         Module rpmatch.
91634         * m4/rpmatch.m4: New file.
91635
91636         Module yesno.
91637         * m4/yesno.m4: New file.
91638
91639         Module exitfail.
91640         * m4/exitfail.m4: New file.
91641
91642         Module c-stack.
91643         * m4/c-stack.m4 (gl_C_STACK): New macro.
91644         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91645
91646         Module error.
91647         * m4/error.m4 (gl_ERROR): New macro.
91648         (jm_PREREQ_ERROR): Use onceonly macros.
91649
91650         Module fatal.
91651         * m4/fatal.m4: New file.
91652
91653         Module getloadavg.
91654         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91655         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91656
91657         Module getpagesize.
91658         * m4/getpagesize.m4: New file.
91659
91660         Module getusershell.
91661         * m4/getusershell.m4: New file.
91662
91663         Module physmem.
91664         * m4/physmem.m4: New file.
91665
91666         Module posixver.
91667         * m4/posixver.m4: New file.
91668
91669         Module quotearg.
91670         * m4/quotearg.m4: New file.
91671
91672         Module quote.
91673         * m4/quote.m4: New file.
91674
91675         Module readutmp.
91676         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91677
91678         Module sig2str.
91679         * m4/sig2str.m4: New file.
91680
91681         Other.
91682         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91683         ulonglong.m4.
91684         * m4/intmax_t.m4: New file.
91685         * m4/d-type.m4: Indentation.
91686         * m4/jm-macros.m4: Update.
91687         * m4/prereq.m4 (jm_PREREQ): Update.
91688         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91689         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91690         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91691         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91692         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91693         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91694         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91695         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91696         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91697         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91698         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91699         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91700         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91701         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91702         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91703         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91704         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91705         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91706         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91707
91708 2002-12-24  Bruno Haible  <bruno@clisp.org>
91709
91710         * MODULES.txt: Update according to m4/ changes.
91711
91712         Module gettext.
91713         * config.rpath: New file, from gettext-0.11.5.
91714
91715         * modules/*: New module descriptions.
91716         * gnulib-tool: New file.
91717         * MODULES.html.sh: New file.
91718
91719 2002-12-21  Karl Berry  <karl@gnu.org>
91720
91721         * doc/fdl.texi: update to version 1.2.
91722
91723 2002-12-19  Karl Berry  <karl@gnu.org>
91724
91725         * config/config.guess: update from prep.
91726
91727 2002-12-18  Bruno Haible  <bruno@clisp.org>
91728
91729         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91730         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91731
91732 2002-12-17  Bruno Haible  <bruno@clisp.org>
91733
91734         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91735         stdlib.h, string.h.
91736
91737 2002-12-17  Bruno Haible  <bruno@clisp.org>
91738
91739         * lib/canon-host.c (strdup): Remove unused declaration.
91740
91741         * lib/fsusage.c: Include full_read.h.
91742         (get_fs_usage): Use full_read instead of safe_read.
91743
91744         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91745
91746 2002-12-12  Karl Berry  <karl@gnu.org>
91747
91748         * config/config.guess: update from prep.
91749
91750 2002-12-11  Bruno Haible  <bruno@clisp.org>
91751
91752         * m4/setenv.m4: New file, from gettext-0.11.5.
91753
91754 2002-12-11  Bruno Haible  <bruno@clisp.org>
91755
91756         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91757         not unsetenv().
91758         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91759         modifications:
91760
91761         2002-12-11  Bruno Haible  <bruno@clisp.org>
91762
91763                 * setenv.c (alloca): Fall back to malloc.
91764                 (freea): New macro.
91765                 (setenv): Use freea() to free memory allocated with alloca().
91766
91767         2002-11-13  Bruno Haible  <bruno@clisp.org>
91768
91769                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91770                 function declarations.
91771                 * unsetenv.c (unsetenv): Likewise.
91772
91773         2002-03-04  Bruno Haible  <bruno@clisp.org>
91774
91775                 Portability to AIX 4.3.3.
91776                 * unsetenv.c: New file, extracted from setenv.c.
91777                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91778
91779         2001-12-20  Bruno Haible  <bruno@clisp.org>
91780
91781                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91782                 use malloc instead. For SunOS 4.
91783
91784         2001-12-11  Bruno Haible  <bruno@clisp.org>
91785
91786                 * setenv.c: Declare alloca.
91787                 (compar_fn_t): New typedef.
91788                 (KNOWN_VALUE, STORE_VALUE): Use it.
91789
91790         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91791         setenv.h.
91792
91793 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91794
91795         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91796         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91797         Choose values that are less likely to collide with system fnmatch
91798         options.
91799         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91800         defined (e.g., a pure POSIX system).
91801         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91802         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91803
91804 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91805
91806         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91807         a pain in practice to deal with generated m4 files.  This change
91808         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91809
91810         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91811         and jm-glibc-io.m4, as they are no longer a special case.
91812         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91813         kludge and the auto-generation stuff.  Check only whether the
91814         functions are declared, not whether they exist, since older hosts
91815         that don't declare the functions can't use the optimization anyway.
91816
91817 2002-12-06  Jim Meyering  <jim@meyering.net>
91818
91819         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91820
91821         Merge in changes from libc's misc/error.c, in preparation
91822         for the merge of gnulib's changes back into libc.
91823
91824         * lib/error.c (_): Define only if not already defined.
91825         Move definition to follow all #include directives.
91826         Include unlocked-io.h only if !_LIBC.
91827         [_LIBC]: Include <libio/libioP.h>.
91828         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91829         (fflush): Tweak definition to use INTUSE.
91830         (putc): Define.
91831
91832 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91833
91834         * lib/alloca.c [defined emacs]: Include "lisp.h".
91835         (xalloc_die) [defined emacs]: New macro.
91836         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91837         [! defined emacs]: Include <xalloc.h>.
91838         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91839         (pointer): Typedef to POINTER_TYPE *.
91840         (malloc): Remove decl; we now always use xmalloc.
91841         (alloca): Use old-style definition, since Emacs needs this.
91842         Check for arithmetic overflow when computing combined size.
91843
91844 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91845
91846         Do not generate unlocked-io.h automatically, since it's easier to
91847         maintain it by hand.
91848
91849         * lib/unlocked-io.h: New file, from GNU diffutils,
91850         but with proper copyright notice and attribution.
91851         * lib/gen-uio: Remove.
91852         * lib/Makefile.am: Add copyright notice.
91853         (libfetish_a_SOURCES): Add unlocked-io.h.
91854         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91855         (DISTCLEANFILES, io_functions): Remove macros.
91856         (EXTRA_DIST): Remove gen_uio.
91857         (unlocked-io.h): Remove rule.
91858
91859 2002-12-04  Jim Meyering  <jim@meyering.net>
91860
91861         Reflect the fact that stat.c and lstat.c are no longer generated.
91862         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91863         (DISTCLEANFILES): Likewise.
91864         (EXTRA_DIST): Likewise.
91865         (all_local): Don't depend on stat.c or lstat.c.
91866         (stat.c, lstat.c): Remove rules.
91867         (EXTRA_DIST): Remove xstat.in.
91868
91869         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91870         * lib/stat.c: New file.  Contents mostly from xstat.in.
91871         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91872         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91873
91874         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91875         too.
91876         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91877
91878 2002-12-03  Jim Meyering  <jim@meyering.net>
91879
91880         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91881         but not semantics, to minimize the differences between these two files.
91882         (safe_read): Change comment to mention SAFE_READ_ERROR.
91883
91884         * lib/safe-read.c (IS_EINTR): Define.
91885         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91886
91887 2002-12-02  Jim Meyering  <jim@meyering.net>
91888
91889         * lib/safe-read.c (EINTR): Define.
91890         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91891         (INT_MAX): Provide fallback.
91892         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91893
91894         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91895
91896 2002-12-02  Bruno Haible  <bruno@clisp.org>
91897
91898         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91899         Define, taken from safe-read.c.
91900         (INT_MAX): Provide fallback.
91901         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91902         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91903
91904         * lib/safe-read.c (EINTR): Remove definition.
91905         (safe_read): Don't use EINTR if it is absent.
91906
91907 2002-12-01  Jim Meyering  <jim@meyering.net>
91908
91909         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91910         zero.
91911         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91912
91913 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91914
91915         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91916         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91917         with `if (! (value < limit)) abort ();', for readability.
91918
91919 2002-11-26  Karl Berry  <karl@gnu.org>
91920
91921         * lib/strdup.c: copy from libc again, with jim's ok.
91922         * lib/.cppi-disable: re-add strdup.c
91923
91924 2002-11-25  Karl Berry  <karl@gnu.org>
91925
91926         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91927         instead of "strtol.c".
91928
91929 2002-11-25  Karl Berry  <karl@gnu.org>
91930
91931         * config/install-sh: update from automake for variable quoting, $0 in
91932         error msgs, etc.
91933
91934         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91935         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91936         entry.
91937
91938 2002-11-25  Jim Meyering  <jim@meyering.net>
91939
91940         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91941
91942 2002-11-24  Karl Berry  <karl@gnu.org>
91943
91944         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91945         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91946
91947 2002-11-24  Jim Meyering  <jim@meyering.net>
91948
91949         Update from coreutils:
91950
91951         * lib/mktime.c: Merge in changes from libc.
91952
91953         Avoid a link-time failure on some Linux systems.
91954         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91955         (otherwise).
91956         (__mon_yday): Declare with the STATIC attribute.
91957         (__mktime_internal): Likewise.
91958         Based on a report from Greg Schafer.
91959
91960 2002-11-23  Jim Meyering  <jim@meyering.net>
91961
91962         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91963         Use `unsigned', not `int', as type of index.
91964
91965         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91966
91967         * lib/fsusage.c: Remove unneeded parentheses around operands of
91968         `defined'.
91969
91970 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91971
91972         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91973         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91974         so that we can be included first.
91975         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91976         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91977         No need to include stddef.h or sys/types.h any more.
91978         Surround local include files with "", not "<>".
91979         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91980         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91981         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91982         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91983         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91984         (ISPRINT): Remove; no longer needed now that we assume C89.
91985
91986         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91987         Preserve errno.
91988
91989         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91990         quotearg_char): Use SIZE_MAX rather than
91991         (size_t) -1 when we are talking about "infinity".
91992
91993         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91994
91995 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91996
91997         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91998         hint that one should use `if (! x) abort ();' rather than `assert
91999         (x);', and anyway it's one less thing to worry about configuring.
92000         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
92001         hash_rehash, hash_insert): Use abort rather than assert.
92002
92003 2002-11-22  Bruno Haible  <bruno@clisp.org>
92004
92005         * lib/safe-read.h: Assume C89. Add comments.
92006         (safe_read): Change return type to size_t.
92007         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
92008         byte counts > SSIZE_MAX correctly.
92009         * lib/safe-write.h: New file.
92010         * lib/safe-write.c: New file.
92011         * lib/full-read.h: New file.
92012         * lib/full-read.c: New file.
92013         * lib/full-write.h: Assume C89. Add comments.
92014         * lib/full-write.c: Include safe-write.h.
92015         (full_write): Rewritten to use safe_write.
92016         Suggested by Jim Meyering and Paul Eggert.
92017
92018 2002-11-21  Jim Meyering  <jim@meyering.net>
92019
92020         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
92021
92022         Merge in changes from the coreutils.
92023
92024         2002-09-25  Paul Eggert  <eggert@twinsun.com>
92025         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
92026         <stdint.h>.
92027         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
92028         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
92029         int.  Work more efficiently if X is the same width as uintmax_t.
92030         Do not compare X to -1, to avoid bogus compiler warning.
92031         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
92032         Don't assume that f_frsize and f_bsize are the same type.
92033
92034         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92035         warning on FreeBSD.
92036
92037         * lib/makepath.c (make_path): Restore umask *before* creating the final
92038         component.
92039         (make_path): Minor reformatting.
92040
92041         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92042         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92043         HAVE_MALLOC/HAVE_REALLOC.
92044
92045         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92046         dummy ones.  At least on GNU/Linux systems, `auto' means something
92047         else.
92048         From Michael Stone.
92049
92050 2002-11-21  Bruno Haible  <bruno@clisp.org>
92051
92052         Remove case insensitive option matching.
92053         * lib/argmatch.h (argcasematch): Remove declaration.
92054         (ARGCASEMATCH): Remove macro.
92055         (__xargmatch_internal): Remove case_sensitive argument.
92056         (XARGMATCH): Update.
92057         (XARGCASEMATCH): Remove macro.
92058         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92059         case_sensitive argument.
92060         (argcasematch): Remove function.
92061         (__xargmatch_internal): Remove case_sensitive argument.
92062         (main): Use XARGMATCH instead of XARGCASEMATCH.
92063
92064         * lib/xmalloc.c: Change compile-time error message. Add comment about
92065         required autoconf version.
92066
92067 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92068
92069         Merge argmatch cleanups from Bison.  Assume C89.
92070
92071         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92072         Include stdlib.h, for EXIT_FAILURE.
92073         Always include <string.h>, since we assume C89.
92074         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92075         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92076         Include <stddef.h> instead, since it's all we need for size_t.
92077         (PARAMS): Remove.  All uses removed.
92078         (ARRAY_CARDINALITY): Do not bother to #undef.
92079         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92080         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92081         Remove unnecessary parentheses.
92082         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92083         Insert necessary parentheses.
92084         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92085         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92086
92087 2002-11-19  Bruno Haible  <bruno@clisp.org>
92088
92089         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92090         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92091
92092         * lib/mbswidth.h (PARAMS): Remove macro.
92093         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92094         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92095
92096         * lib/gcd.h (PARAMS): Remove macro.
92097         (gcd): Use ANSI C function declarations.
92098         * lib/gcd.c (gcd): Likewise.
92099
92100 2002-11-15  Bruno Haible  <bruno@clisp.org>
92101
92102         * lib/strcspn.c: Include <stddef.h>.
92103         (strcspn): Use ANSI C function declaration. Change return type to
92104         size_t. Use NULL.
92105         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92106         (strpbrk): Use NULL.
92107         * lib/strpbrk.h (PARAMS): Remove macro.
92108         (strpbrk): Use ANSI C function declaration.
92109         * lib/strstr.c: Don't include <sys/types.h>.
92110         * lib/strstr.h (PARAMS): Remove macro.
92111         (strstr): Use ANSI C function declarations.
92112
92113 2002-11-14  Karl Berry  <karl@gnu.org>
92114
92115         * config/mkinstalldirs: `do' on separate line, instead of
92116         `for var; do'.
92117
92118 2002-11-06  Bruno Haible  <bruno@clisp.org>
92119
92120         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92121         * lib/gcd.c (gcd): Likewise.
92122
92123 2002-11-05  Bruno Haible  <bruno@clisp.org>
92124
92125         * lib/gcd.h: New file, from gettext-0.11.5.
92126         * lib/gcd.c: New file, from gettext-0.11.5.
92127
92128 2002-11-05  Bruno Haible  <bruno@clisp.org>
92129
92130         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92131         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92132         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92133         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92134
92135         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92136         <libintl.h>.
92137         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92138         <libintl.h>.
92139
92140         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92141         * lib/human.c: Include gettext.h instead of <libintl.h>.
92142         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92143         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92144         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92145         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92146         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92147         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92148         (textdomain): Remove definition.
92149         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92150
92151         * lib/long-options.c: Remove include of <libintl.h> and definition of
92152         _.
92153         * lib/same.c: Remove include of <libintl.h> and definition of _.
92154
92155 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92156
92157         * lib/config.charset: A few additions for Solaris.
92158
92159 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92160
92161         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92162         * lib/localcharset.c (locale_charset): Declare as extern "C".
92163
92164 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92165
92166         * lib/config.charset: msdos in uk_UA uses CP1125.
92167
92168 2002-11-04  Bruno Haible  <bruno@clisp.org>
92169
92170         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92171         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92172         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92173         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92174         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92175
92176 2002-11-04  Bruno Haible  <bruno@clisp.org>
92177
92178         * lib/localcharset.c (locale_charset): Don't return an empty string.
92179
92180 2002-11-04  Bruno Haible  <bruno@clisp.org>
92181
92182         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92183         aliases.
92184
92185 2002-11-04  Bruno Haible  <bruno@clisp.org>
92186
92187         * lib/config.charset: Update for newest glibc. Add canonical names
92188         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92189
92190 2002-11-04  Bruno Haible  <bruno@clisp.org>
92191
92192         * lib/config.charset: Add support for NetBSD.
92193
92194 2002-11-04  Bruno Haible  <bruno@clisp.org>
92195
92196         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92197
92198 2002-11-01  Bruno Haible  <bruno@clisp.org>
92199
92200         * configure.in: Add AC_CONFIG_AUX_DIR call.
92201         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92202         test/Makefile.
92203         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92204
92205 2002-09-28  Karl Berry  <karl@gnu.org>
92206
92207         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92208         installed automake until the next release, since changes have been
92209         made.
92210
92211 2002-09-25  Karl Berry  <karl@gnu.org>
92212
92213         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92214         * lib/getopt*: copy from libc/posix.
92215         * lib/gettext.h: copy from gettext.
92216         * lib/.cppi-disable: add strdup.c, gettext.h.
92217
92218 2002-09-25  Karl Berry  <karl@gnu.org>
92219
92220         * config/srclist.txt: enable gettext.h check.
92221         * config/config.{guess,sub}: update from prep.
92222         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92223                 from automake 1.6.3.
92224         See srclist*.
92225
92226 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92227
92228         * regex.c (PATFETCH): Remove the translating fetch.
92229         (PATFETCH_RAW): Rename to PATFETCH.
92230         (set_image_of_range): New fun.
92231         (SET_RANGE_TABLE_WORK_AREA): Use it.
92232         (regex_compile): Don't translate the pattern chars so eagerly.
92233         Only do it when inserting an `exactn' bytecode or when handling
92234         a char-range.
92235         (mutually_exclusive_p): Avoid empty statement.
92236
92237 2002-07-06  Jim Meyering  <meyering@lucent.com>
92238
92239         * m4/README: Don't mention Makefile.am.in.
92240         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92241
92242 2002-07-01  Jim Meyering  <meyering@lucent.com>
92243
92244         * lib/c-stack.c: Include sys/time.h.
92245         From Volker Borchert.
92246
92247 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92248
92249         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92250
92251 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92252
92253         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92254         New macro.  Use it uniformly instead of
92255         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92256         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92257         reported by Vin Shelton.
92258
92259 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92260
92261         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92262         Do not assume SA_SIGINFO behavior.
92263         Bug reported by Jim Meyering on NetBSD 1.5.2.
92264
92265 2002-06-22  Jim Meyering  <meyering@lucent.com>
92266
92267         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92268         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92269
92270         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92271         now that configure.ac uses AC_GNU_SOURCE.
92272         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92273         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92274
92275         Update to latest tools.  Suggestions from Paul Eggert.
92276         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92277         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92278         * m4/fnmatch.m4: Likewise.
92279         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92280         to AC_HEADER_STDBOOL
92281
92282 2002-06-22  Jim Meyering  <meyering@lucent.com>
92283
92284         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92285         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92286
92287 2002-06-22  Jim Meyering  <meyering@lucent.com>
92288
92289         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
92290
92291         * lib/exitfail.c, exitfail.h: Likewise.
92292         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
92293
92294         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
92295         of fnmatch.h.
92296         (EXTRA_DIST): Add fnmatch_loop.c.
92297         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
92298
92299         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
92300         * lib/fnmatch.c: Update from diffutils-2.8.2.
92301         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92302         * lib/fnmatch.h: Remove file.
92303
92304 2002-06-21  Jim Meyering  <meyering@lucent.com>
92305
92306         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92307         * m4/mbrtowc.m4: Likewise.
92308
92309         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92310         * m4/mbswidth.m4: Reflect name change:
92311         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92312         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92313
92314         * m4/lib-link.m4: Update from gettext-0.11.2.
92315         * m4/gettext.m4: Likewise.
92316
92317         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92318         From Alfred M. Szmidt.
92319
92320 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92321
92322         * lib/file-type.h: Report an error if neither S_ISREG nor
92323         S_IFREG is defined, instead of using a test specific to glibc
92324         2.2.  This should be safe, since POSIX requires S_ISREG and
92325         Unix Version 7 had S_IFREG.  We don't need to check for
92326         <sys/types.h> since we don't use any symbols that it defines.
92327
92328 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92329
92330         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92331         $@-t, so that each temporary file name is unique and valid in the first
92332         8 characters, for operation under DOS.
92333
92334 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92335
92336         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92337
92338 2002-06-15  Jim Meyering  <meyering@lucent.com>
92339
92340         Work even with DJGPP 2.03, which lacks support for symlinks.
92341         From Richard Dawe.
92342         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92343         is defined.
92344         * lib/lchown.c (S_ISLNK): Likewise.
92345
92346 2002-06-15  Jim Meyering  <meyering@lucent.com>
92347
92348         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92349         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92350         have been included before this file.
92351
92352 2002-06-14  Jim Meyering  <meyering@lucent.com>
92353
92354         * lib/file-type.h: Use the version from diffutils-2.8.2.
92355         * lib/file-type.c: Likewise.
92356
92357 2002-06-07  Jim Meyering  <meyering@lucent.com>
92358
92359         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92360         They're needed at least for NetBSD 1.5.2.
92361         ($statxfs_includes): Include those same headers.
92362         ($statxfs_includes): Include sys/vfs.h if available.
92363         ($statxfs_includes): Likewise for sys/statvfs.h.
92364         Check for the following members in both structs statfs and statvfs:
92365         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
92366
92367 2002-06-01  Jim Meyering  <meyering@lucent.com>
92368
92369         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
92370         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
92371
92372 2002-05-28  Jim Meyering  <meyering@lucent.com>
92373
92374         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
92375         Reported by Volker Borchert.
92376
92377 2002-05-27  Jim Meyering  <meyering@lucent.com>
92378
92379         Fix a problem seen only on nonconforming systems whereby ls.c's
92380         use of localtime, and then of gettimeofday would cause trouble:
92381         the localtime call used to initialize rpl_gettimeofday's save
92382         mechanism would clobber ls's current local time information so
92383         that in any long listing the first file would always be listed
92384         with date 1970-01-01.  Analysis by Volker Borchert.
92385
92386         * lib/gettimeofday.c (localtime): Undefine.
92387         (rpl_localtime): New function.
92388
92389 2002-05-27  Jim Meyering  <meyering@lucent.com>
92390
92391         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
92392         localtime.
92393
92394         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
92395         use the replacement function; it wouldn't resolve at link time.
92396         Reported by Volker Borchert.
92397
92398 2002-05-22  Jim Meyering  <meyering@lucent.com>
92399
92400         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
92401         file-type.h.
92402         * lib/file-type.h: New file.
92403         * lib/file-type.c (file_type): New file/function.  Extracted from
92404         diffutils.
92405
92406 2002-04-30  Jim Meyering  <meyering@lucent.com>
92407
92408         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
92409
92410 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92411
92412         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
92413
92414 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92415
92416         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
92417         Do not check for alloca.h (no longer used) or stdbool.h (was never
92418         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
92419
92420 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92421
92422         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92423
92424 2002-04-29  Jim Meyering  <meyering@lucent.com>
92425
92426         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92427         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92428         Use AC_FUNC_STRNLEN here instead.
92429
92430         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92431         With autoconf-2.53a, it's part of AC_PROG_CC.
92432
92433 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92434
92435         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92436         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92437
92438 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92439
92440         * lib/sig2str.h, lib/sig2str.c: New files.
92441         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
92442
92443 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92444
92445         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
92446         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
92447         of 127, since 64 is the largest conceivable number for ancient
92448         nonstandard hosts.
92449         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
92450
92451 2002-04-28  Jim Meyering  <meyering@lucent.com>
92452
92453         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
92454
92455 2002-04-24  Jim Meyering  <meyering@lucent.com>
92456
92457         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
92458         (jm_PREREQ): Use it.
92459
92460         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
92461         mach/mach.h fcntl.h.
92462         Check for this function: setlocale.
92463
92464 2002-04-24  Jim Meyering  <meyering@lucent.com>
92465
92466         * lib/gettext.h: New file, from Gettext.
92467         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92468         (libfetish_a_SOURCES): Add gettext.h.
92469
92470 2002-04-16  Jim Meyering  <meyering@lucent.com>
92471
92472         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
92473         ut_pid, ut_id, ut_exit.
92474
92475 2002-04-16  Jim Meyering  <meyering@lucent.com>
92476
92477         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
92478         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
92479         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
92480
92481 2002-04-12  Jim Meyering  <meyering@lucent.com>
92482
92483         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
92484         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
92485         existence of the getmntinfo function.  Needed for Darwin 5.3.
92486
92487         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
92488         This is necessary at least on Darwin 5.3.
92489
92490         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
92491         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
92492         strnlen.o in the library, and that makes some versions of ranlib
92493         object.
92494
92495 2002-04-12  Jim Meyering  <meyering@lucent.com>
92496
92497         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
92498
92499 2002-04-09  Jim Meyering  <meyering@lucent.com>
92500
92501         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
92502         to be more precise.  Rather than saying we're checking whether the
92503         function `works', say what we're testing.
92504         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
92505         Reported by Bruno Haible.
92506
92507 2002-03-10  Jim Meyering  <meyering@lucent.com>
92508
92509         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
92510         Suggestion from Santiago Vila.
92511
92512 2002-03-08  Jim Meyering  <meyering@lucent.com>
92513
92514         * lib/rename.c: Mention that this wrapper is needed also on
92515         mips-dec-ultrix4.4 systems.
92516
92517 2002-03-02  Jim Meyering  <meyering@lucent.com>
92518
92519         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92520         not HAVE_CLOCK_SETTIME.
92521
92522 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92523
92524         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92525         Check for clock_settime.
92526
92527 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92528
92529         * lib/nanosleep.h: Rename to....
92530         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92531
92532         * lib/gettime.c: New file.
92533         * lib/settime.c: New file.
92534         * lib/stime.c: Remove.
92535
92536         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92537         timespec.h.  Remove nanosleep.h.
92538
92539 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92540
92541         * m4/acl.m4: New file.
92542         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92543         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92544
92545 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92546
92547         * lib/acl.c, lib/acl.h: New files.
92548         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92549
92550 2002-02-24  Jim Meyering  <meyering@lucent.com>
92551
92552         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92553         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92554         cause trouble.  Reported by Nelson Beebe.
92555
92556 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92557
92558         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92559         compilers that don't know that xalloc_die never returns.
92560
92561 2002-02-20  Jim Meyering  <meyering@lucent.com>
92562
92563         * lib/getdate.c: Regenerate using bison-1.33.
92564
92565 2002-02-17  Jim Meyering  <meyering@lucent.com>
92566
92567         * config/config.guess (main): Don't use `head -1'; it's no longer
92568         portable. Use `sed 1q' instead.
92569
92570 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92571
92572         * m4/codeset.m4: Upgrade to gettext-0.11.
92573         * m4/gettext.m4: Upgrade to gettext-0.11.
92574         * m4/glibc21.m4: Upgrade to gettext-0.11.
92575         * m4/iconv.m4: Upgrade to gettext-0.11.
92576         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92577         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92578         * m4/lib-ld.m4: New file, from gettext-0.11.
92579         * m4/lib-link.m4: New file, from gettext-0.11.
92580         * m4/lib-prefix.m4: New file, from gettext-0.11.
92581         * m4/progtest.m4: Upgrade to gettext-0.11.
92582
92583 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92584
92585         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92586         (jm_PREREQ): Use it.
92587
92588 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92589
92590         * lib/posixver.c, lib/posixver.h: New files.
92591         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92592
92593 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92594             Bruno Haible  <bruno@clisp.org>
92595
92596         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92597         (fwrite_success_callback): New declaration.
92598         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92599         print_unicode_char. Call failure callback instead of error.
92600         (fwrite_success_callback): New function.
92601         (exit_failure_callback): New function.
92602         (fallback_failure_callback): New function.
92603         (print_unicode_char): Call unicode_to_mb.
92604
92605 2002-01-26  Jim Meyering  <meyering@lucent.com>
92606
92607         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92608         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92609
92610 2002-01-26  Jim Meyering  <meyering@lucent.com>
92611
92612         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92613
92614 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92615
92616         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92617
92618 2002-01-22  Jim Meyering  <meyering@lucent.com>
92619
92620         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92621         Otherwise, some versions of automake would omit the rule that makes
92622         Makefile from Makefile.in.
92623
92624 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92625
92626         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92627         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92628         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92629         (memcoll): Set errno to zero if there is no error.
92630
92631         * lib/quotearg.c (quotearg_buffer_restyled):
92632         Fix bug with quoting buffers containing NUL when backslashing escapes.
92633         This bug was exposed by the other changes in this patch.
92634         (quotearg_n_options): New arg ARGSIZE.
92635         All callers changed.
92636         (quoting_options_from_style): New function.
92637         (quotearg_n_style): Use it.
92638         (quotearg_n_style_mem): New function.
92639
92640         * lib/quotearg.h (quotearg_n_style_mem): New function.
92641
92642 2002-01-19  Jim Meyering  <meyering@lucent.com>
92643
92644         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92645         Remove useless quotes: DF_PROG="df".
92646         * m4/strnlen.m4: New file.
92647
92648 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92649
92650         * lib/backupfile.c (ISDIGIT): Comment fix.
92651         * lib/getdate.y (ISDIGIT): Likewise.
92652         * lib/posixtm.c (ISDIGIT, year): Likewise.
92653         * lib/strverscmp.c (ISDIGIT): Likewise.
92654         * lib/userspec.c (ISDIGIT): Likewise.
92655
92656 2002-01-16  Jim Meyering  <meyering@lucent.com>
92657
92658         * lib/getdate.y: Add three semicolons, each just before a closing
92659         brace. Bison (as of version 1.31) no longer papers over that mistake.
92660
92661 2002-01-05  Jim Meyering  <meyering@lucent.com>
92662
92663         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92664
92665 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92666
92667         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92668         not silently exit merely because the output buffer happens to
92669         have nothing pending.
92670
92671 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92672
92673         See the big note in ../ChangeLog.
92674         * lib/human.c (suffixes): Prefer K to k for 1024.
92675         (generate_suffix_backwards): New function.
92676         (human_readable_inexact): Use it.
92677         * lib/xstrtol.c (__xstrtol): If there is no number but there
92678         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92679         Accept 'K' as well as 'k'.
92680
92681 2001-12-15  Jim Meyering  <meyering@lucent.com>
92682
92683         * lib/regex.h (__restrict_arr): Update from libc.
92684
92685         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92686         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92687         (STREQ): Define.
92688
92689 2001-12-14  Jim Meyering  <meyering@lucent.com>
92690
92691         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92692         Suggestion from Bruno Haible.
92693
92694 2001-12-10  Jim Meyering  <meyering@lucent.com>
92695
92696         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92697         xrealloc, Instead, include "xalloc.h".
92698         (initbuffer): Don't cast xmalloc return value to char*.
92699         (readline): Reword comment.
92700         Don't cast xrealloc return value to char*
92701         Return NULL, not 0.
92702
92703 2001-12-09  Jim Meyering  <meyering@lucent.com>
92704
92705         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92706         about `signed and unsigned type in conditional expression'.
92707         * lib/posixtm.c (posix_time_parse): Likewise.
92708
92709         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92710
92711         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92712         to avoid a pedantic warning.
92713
92714         * lib/getstr.c: Don't include assert.h.
92715         (getstr): Remove warning-evoking assertions.
92716         Return -1 if offset parameter is out of bounds.
92717         Change the type of a local from int to size_t.
92718
92719         * lib/strftime.c (my_strftime_localtime_r): Include this function
92720         definition in the `#if ! HAVE_TM_GMTOFF' block.
92721
92722         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92723         Include xalloc.h instead.
92724
92725 2001-12-02  Jim Meyering  <meyering@lucent.com>
92726
92727         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92728         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92729         included.
92730
92731         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92732         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92733
92734 2001-11-30  Akim Demaille  <akim@epita.fr>
92735
92736         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92737         before being defined.
92738
92739 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92740
92741         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92742         First arg is int, not unsigned.
92743         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92744         (SIZE_MAX, UINT_MAX): New macros.
92745         (quotearg_n_options): Abort if N is negative.
92746         Avoid overflow check on hosts where size_t is 64 bits and int
92747         is 32 bits, as overflow is impossible there.
92748         Fix off-by-one typo that caused unnecessary reallocation.
92749
92750 2001-11-27  Jim Meyering  <meyering@lucent.com>
92751
92752         * lib/tempname.c: Merge with version from libc.
92753         * lib/regex.c: Likewise.
92754
92755         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92756         systems for which STDC_HEADERS is 0, it was not included, resulting in
92757         a warning about an integer-to-pointer conversion problem with getenv.
92758         Reported by Volker Borchert.
92759
92760 2001-11-26  Jim Meyering  <meyering@lucent.com>
92761
92762         * lib/gtod.h: Remove file.
92763         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92764         * lib/gettimeofday.c: Don't include gtod.h.
92765         (GTOD_init): Remove function.
92766         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92767         Suggestion from Volker Borchert.
92768
92769 2001-11-23  Jim Meyering  <meyering@lucent.com>
92770
92771         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92772         it.
92773         * lib/hash.c (struct hash_table): Define it here instead.
92774
92775 2001-11-22  Jim Meyering  <meyering@lucent.com>
92776
92777         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92778
92779 2001-11-20  Jim Meyering  <meyering@lucent.com>
92780
92781         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92782         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92783
92784 2001-11-19  Jim Meyering  <meyering@lucent.com>
92785
92786         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92787         directory.  Use "conftestXXXXXX" as the template.
92788         Suggestion from Paul Eggert.
92789
92790         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92791         immediately, so the test doesn't mistakenly hit the max-open-files
92792         limit.
92793
92794 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92795
92796         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92797         (TEMPORARIES): New macro.
92798         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92799         removes an artificial limitation (e.g. HP-UX 10.20, where
92800         TMP_MAX is 17576).
92801
92802 2001-11-18  Jim Meyering  <meyering@lucent.com>
92803
92804         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92805
92806 2001-11-18  Jim Meyering  <meyering@lucent.com>
92807
92808         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92809         on SunOS 4.
92810
92811         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92812         files will be created before anything else.
92813
92814 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92815
92816         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92817         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92818
92819 2001-11-17  Jim Meyering  <meyering@lucent.com>
92820
92821         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92822         Prompted by a report from Bob Proulx.
92823
92824         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92825         Instead, require UTILS_FUNC_MKSTEMP.
92826
92827 2001-11-17  Jim Meyering  <meyering@lucent.com>
92828
92829         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92830         Now, that's done as part of AC_FUNC_STRTOD.
92831
92832 2001-11-17  Jim Meyering  <meyering@lucent.com>
92833
92834         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92835         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92836         rather than group writable.  Patch by Juan F. Codagnone.
92837
92838         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92839         xrealloc, Instead, include "xalloc.h".
92840
92841         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92842         Remove explicit declarations of xmalloc, xrealloc,
92843         and xstrdup.  Instead, include "xalloc.h".
92844
92845         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92846         unlocked-io.h.
92847         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92848         Likewise.
92849         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92850
92851         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92852         Reported by Padraig Brady.
92853
92854         * lib/mkstemp.c: #undef mkstemp.
92855         Include config.h.
92856         (rpl_mkstemp): Rename from mkstemp.
92857         Protoize.
92858
92859 2001-11-16  Jim Meyering  <meyering@lucent.com>
92860
92861         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92862         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92863         determine the amount of total physical memory, use pstat_getstatic.
92864         HPUX-11 doesn't define _SC_PHYS_PAGES.
92865         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92866         If sysconf couldn't be used to determine the amount of available
92867         physical memory, use both pstat_getstatic and pstat_getdynamic.
92868         Based on a patch from Bob Proulx.
92869
92870 2001-11-10  Jim Meyering  <meyering@lucent.com>
92871
92872         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92873         (jm_PREREQ): Use it.
92874
92875 2001-11-09  Jim Meyering  <meyering@lucent.com>
92876
92877         * m4/jm-macros.m4: Require autoconf-2.52f.
92878         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92879         Use these AC_-prefixed names, not the AM_-prefixed ones.
92880
92881         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92882
92883 2001-11-05  Jim Meyering  <meyering@lucent.com>
92884
92885         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92886
92887 2001-11-04  Jim Meyering  <meyering@lucent.com>
92888
92889         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92890         $DEFS.
92891
92892 2001-11-03  Jim Meyering  <meyering@lucent.com>
92893
92894         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92895         of AC_DEFUN.
92896
92897         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92898         know the name of the variable in the macro definition.
92899
92900 2001-11-03  Jim Meyering  <meyering@lucent.com>
92901
92902         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92903         in argmatch_to_argument call.
92904
92905         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92906         argument.
92907
92908         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92909         e.g., a fault due to an attempt to free a NULL pointer.
92910
92911 2001-11-01  Jim Meyering  <meyering@lucent.com>
92912
92913         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92914         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92915
92916 2001-11-01  Jim Meyering  <meyering@lucent.com>
92917
92918         * lib/dirfd.c, lib/dirfd.h: New files.
92919         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92920
92921         * lib/hash.c (hash_print) [TESTING]: Clean up.
92922
92923 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92924
92925         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92926         to avoid a warning if -Wall.
92927
92928 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92929
92930         * README: New file
92931         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92932         (per RMS's instructions, this is now the canonical source)
92933         * lgpl/, gpl/: New directories.
92934
92935 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92936
92937         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92938
92939 2001-10-21  Jim Meyering  <meyering@lucent.com>
92940
92941         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92942         this code would end up calling gettext even in packages built
92943         with --disable-nls.
92944         * lib/getopt.c (_): Likewise.
92945         * lib/regex.c (_): Likewise.
92946
92947 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92948
92949         * m4/error.m4 (jm_PREREQ_ERROR):
92950         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92951         AC_FUNC_STRERROR_R does that.
92952         Check for strerror declaration.
92953
92954         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92955         are supposed to have them these days.
92956         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92957         Merge changes from latest Autoconf CVS.
92958         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92959         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92960         POSIX decided to standardize on the int flavor of strerror_r.
92961
92962 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92963
92964         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92965         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92966         Use strerror_r that is only a macro, even if it is not a function.
92967         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92968         (private_strerror): Use prototypes, not old-style function definition.
92969         (print_errno_message): New function.
92970         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92971         char*-flavored one.
92972         (error_tail, error, error_at_line): Use it.
92973
92974 2001-10-11  Jim Meyering  <meyering@lucent.com>
92975
92976         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92977         and quote_n (1, ... to avoid clobbering a buffer.
92978
92979 2001-10-05  Jim Meyering  <meyering@lucent.com>
92980
92981         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92982         hash-pjw.h.
92983         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92984         * lib/hash-pjw.h: New file.
92985
92986 2001-09-30  Jim Meyering  <meyering@lucent.com>
92987
92988         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92989         `struct fsstat' has the `f_fstypename' member.
92990         Use that to define FS_TYPE, which is now used to make
92991         the getfsstat link test tighter.
92992
92993 2001-09-30  Jim Meyering  <meyering@lucent.com>
92994
92995         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92996         Include <sys/ucred.h>, for Apple Darwin.
92997         Include sys/mount.h and sys/fs_types.h only if available.
92998         (FS_TYPE): Define.
92999         (read_filesystem_list): Use FS_TYPE.
93000
93001 2001-09-29  Paul Eggert  <eggert@twinsun.com>
93002
93003         * lib/exclude.c (excluded_filename): 0 -> false, since it's
93004         a boolean context.
93005
93006 2001-09-29  Jim Meyering  <meyering@lucent.com>
93007
93008         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93009         [one-argument getmntent function]): Include stdio.h before mntent.h.
93010         SunOS 4.1.x needs it for the declaration of `FILE'.
93011         Patch by Volker Borchert.
93012
93013         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93014         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
93015         sys/fs_types.h, and make the link-test for getfsstat guard #include
93016         directives with appropriate #if HAVE_*_H tests so that we can
93017         detect getfsstat on Apple Darwin1.3.7 systems.
93018         Reported by Nelson Beebe.
93019         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
93020
93021 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93022
93023         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93024         #defines strtoimax.  Also treat the other strto* functions
93025         like strtoimax.
93026
93027         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93028         Check for strtoul and strtoumax,
93029         as those declarations are made even in the signed case.
93030         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
93031         Likewise, for strtol and strtoimax.
93032
93033 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93034
93035         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93036         #defines strtoimax.  Also treat the other strto* functions
93037         like strtoimax.
93038
93039         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93040         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93041         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93042
93043 2001-09-26  Jim Meyering  <meyering@lucent.com>
93044
93045         Most macros in unlocked-io.h had the wrong number of arguments.
93046         * lib/gen-uio: New script.
93047         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93048         * lib/unlocked-io.hin: Remove file.
93049         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93050         rather than trying to embed it here.
93051         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93052         Reported by Padraig Brady.
93053
93054 2001-09-25  Volker Borchert  <bt@teknon.de>
93055
93056         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93057         `result'.
93058
93059 2001-09-24  Jim Meyering  <meyering@lucent.com>
93060
93061         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93062
93063 2001-09-23  Jim Meyering  <meyering@lucent.com>
93064
93065         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93066         instead of the mere test for existence of mntent.h.  The latter
93067         would get a false-positive on AIX 3.4 systems.
93068         In the outer getmntent if-block, don't die if neither of the getmntent
93069         tests succeeds.  Instead, just fall through and continue with the
93070         remaining tests.
93071
93072 2001-09-23  Jim Meyering  <meyering@lucent.com>
93073
93074         * lib/mountlist.c: Remove useless parentheses in #if directives.
93075         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93076         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93077
93078 2001-09-22  Jim Meyering  <meyering@lucent.com>
93079
93080         * m4/gettext.m4: New file.  From gettext.
93081         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93082         * m4/progtest.m4: Likewise
93083         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93084         * m4/glibc21.m4: Likewise.
93085
93086         * m4/libintl.m4: Remove.  No longer used.
93087
93088 2001-09-22  Jim Meyering  <meyering@lucent.com>
93089
93090         * lib/localcharset.c: Update from latest gettext.
93091         * lib/config.charset: Likewise.
93092
93093 2001-09-20  Jim Meyering  <meyering@lucent.com>
93094
93095         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93096         strtoimax.
93097         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93098         strtoumax.
93099
93100 2001-09-20  Jim Meyering  <meyering@lucent.com>
93101
93102         * lib/xstrtol.c (strtoimax): Guard declaration with
93103         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93104         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93105         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93106         (strtoumax): Likewise, for completeness (it wasn't necessary).
93107
93108 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93109
93110         * lib/strtoimax.c (HAVE_LONG_LONG):
93111         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93112         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93113         to work around bug in IBM C compiler.
93114
93115 2001-09-17  Jim Meyering  <meyering@lucent.com>
93116
93117         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93118         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93119         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93120         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93121         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93122         whenever the right hand side need not be expanded by the shell.
93123
93124 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93125
93126         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93127         library.  It's not correct, as some older glibcs are buggy.
93128         fnmatch wasn't fixed until glibc 2.2.
93129
93130         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93131         special shell magic here.
93132
93133 2001-09-16  Jim Meyering  <meyering@lucent.com>
93134
93135         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93136         * m4/jm-macros.m4: Require it.
93137
93138 2001-09-16  Jim Meyering  <meyering@lucent.com>
93139
93140         * lib/mkdir.c: New file.
93141
93142 2001-09-15  Jim Meyering  <meyering@lucent.com>
93143
93144         * m4/jm-macros.m4: Check for help2man.
93145
93146 2001-09-11  Jim Meyering  <meyering@lucent.com>
93147
93148         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93149         The body, by Paul Eggert, was moved here from configure.in.
93150         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93151
93152 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93153
93154         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93155         (jm_PREREQ): Use it.
93156
93157 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93158
93159         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93160         Use ssize_t, not int, to store result of readlink.
93161         Check for ssize_t overflow as well as size_t overflow,
93162         as POSIX says the result of readlink is implementation-defined
93163         when ssize_t overflows.
93164         Remove unnecessary cast to char*.
93165         Use free+malloc instead of realloc, as the storage doesn't need
93166         to be preserved and it's clearer and can be more efficient that way.
93167         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93168         * lib/xreadlink.h (xreadlink): Update prototype.
93169
93170 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93171
93172         * lib/xgetcwd.c: Revert some of the previous change; intead,
93173         fix the HAVE_GETCWD_NULL code to behave more like the
93174         !HAVE_GETCWD_NULL code used to.
93175
93176         Include "xalloc.h".
93177         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93178         invoke xalloc_die.
93179
93180 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93181
93182         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93183         sys/param.h, as pathmax.h includes them.
93184
93185 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93186
93187         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93188         (jm_PREREQ_XGETCWD): New macro.
93189
93190         * m4/getcwd.m4: New file.
93191
93192 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93193
93194         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93195         like the HAVE_GETCWD_NULL code.
93196         Include pathmax.h if not HAVE_GETCWD.
93197         Do not include xalloc.h.
93198         (INITIAL_BUFFER_SIZE): New symbol.
93199         Do not use xmalloc / xrealloc, since the caller is responsible for
93200         handling errors.  Preserve errno around `free' during failure.
93201         Do not overrun buffer when using getwd.
93202
93203 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93204
93205         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93206         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93207         getcwd (NULL, 0).
93208
93209 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93210
93211         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93212         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93213         spotted by Jim Meyering.
93214
93215 2001-09-03  Jim Meyering  <meyering@lucent.com>
93216
93217         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93218         failure.
93219
93220 2001-09-02  Jim Meyering  <meyering@lucent.com>
93221
93222         * lib/error.c: Update from GNU libc.
93223
93224 2001-09-01  Jim Meyering  <meyering@lucent.com>
93225
93226         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93227         Used by df.
93228
93229 2001-09-01  Jim Meyering  <meyering@lucent.com>
93230
93231         * lib/xreadlink.c: New file.
93232         * lib/xreadlink.h: New file.
93233         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93234         xreadlink.h.
93235
93236         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93237         doesn't conflict with sparc Solaris 7's definition in
93238         /usr/include/sys/int_types.h.
93239
93240         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93241         files.
93242         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93243         and strncasecmp as r-values.  Unixware didn't have declarations.
93244
93245 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93246
93247         * lib/xstrtol.h: Add copyright notice.
93248         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93249         LONGINT_INVALID_SUFFIX_CHAR.
93250
93251 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93252
93253         * lib/xstrtol.c (strtoimax): New decl.
93254
93255 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93256
93257         * lib/xgetcwd.c: Don't include pathmax.h.
93258         Include stdlib.h and unistd.h if available.
93259         Include xalloc.h.
93260         (xmalloc, xstrdup, free): Remove decls.
93261         (xgetcwd): Don't assume sizes fit in unsigned.
93262         Check for overflow when computing sizes.
93263         Simplify reallocation code.
93264
93265 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93266
93267         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93268         a directory's st_size can have an arbitrary value, so the old
93269         usage could waste an arbitrary amount of memory.  All uses
93270         changed.
93271         * lib/savedir.h: Update prototype.
93272
93273 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93274
93275         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93276
93277         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93278         old strtoimax.c.
93279
93280         Also, make the following further changes to make this file's
93281         configuration more similar to that of strtol.c:
93282         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93283         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93284         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93285         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93286         changed to signed values.
93287
93288         And make the following changes as well:
93289         Fix copyright notice, as 1999 was missing.
93290         (verify): New macro.
93291         (strtoimax): Check sizes at compile-time, not run-time.
93292         Prefer strtol to strtoll if both work.
93293         (main): Remove; it was not that useful and was a pain to maintain.
93294
93295         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
93296
93297 2001-08-31  Jim Meyering  <meyering@lucent.com>
93298
93299         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
93300         Use an initial, malloc'd, buffer of length 128 rather than
93301         a statically allocated one of length 1024.
93302
93303 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93304
93305         Simplify code, partly by assuming autoconf 2.52 semantics.
93306
93307         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93308
93309         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93310         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93311         All uses removed.
93312         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93313         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93314         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93315         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93316         jm_AC_HEADER_INTTYPES_H.
93317         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93318
93319         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93320
93321         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93322         Quote first arg of AC_DEFUN.
93323         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93324         since they are needed to parse the include file even if we need
93325         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93326         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93327         but with opposite signedness.
93328
93329 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93330
93331         Merge 'exclude' changes from tar 1.13.22.
93332         This fixes one or two unlikely storage allocation overflow bugs,
93333         but doesn't change user-visible behavior otherwise.
93334
93335 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93336
93337         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93338         (jm_PREREQ_EXCLUDE): New macro.
93339
93340 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93341
93342         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93343         tm to be declared.
93344
93345 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93346
93347         * lib/hash.c: Remove '2001' from copyright notice.
93348
93349 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93350
93351         * lib/full-write.h: New file.
93352         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93353         * lib/full-write.c: Correct credits, as cccp.c no longer
93354         exists and anyway it was so heavily changed from the old cccp
93355         code as to be unrecognizable.  Include full-write.h.
93356         (full_write): Return size_t, with short writes meaning failure.
93357         All callers changed.  This fixes a bug with large buffers
93358         on 64-bit hosts.
93359         * lib/utime.c: Include full-write.h.
93360
93361 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93362
93363         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
93364         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
93365         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
93366         Include if available.
93367         (<xalloc.h>): Include
93368         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
93369         (verify): New macro.  Use it to verify that EXCLUDE macros do not
93370         collide with FNM macros.
93371         (struct patopts): New struct.
93372         (struct exclude): Use it, as exclude patterns now come with options.
93373         (new_exclude): Support above changes.
93374         (new_exclude, add_exclude_file):
93375         Initial size must now be a power of two to simplify overflow checking.
93376         (free_exclude, fnmatch_no_wildcards): New function.
93377         (excluded_filename): No longer requires options arg, as the options
93378         are determined by add_exclude.  Now returns bool, not int.
93379         (excluded_filename, add_exclude):
93380         Add support for the fancy new exclusion options.
93381         (add_exclude, add_exclude_file): Now takes int options arg.
93382         Check for arithmetic overflow when computing sizes.
93383         (add_exclude_file): xrealloc might modify errno, so don't
93384         realloc until after errno might be used.
93385
93386         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
93387         New macros.
93388         (free_exclude): New decl.
93389         (add_exclude, add_exclude_file): Now takes int options arg.
93390         (excluded_filename): No longer requires options arg, as the options
93391         are determined by add_exclude.  Now returns bool, not int.
93392
93393 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93394
93395         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
93396
93397 2001-08-27  Jim Meyering  <meyering@lucent.com>
93398
93399         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
93400
93401         * lib/version-etc.c (N_): Remove definition.
93402         Revert most of last change.
93403         Instead, simply don't mark the `Copyright...' string for translation.
93404         Based on advice from Paul Eggert.
93405
93406         * lib/strtoxmax.c: Tweak comment.
93407
93408 2001-08-26  Jim Meyering  <meyering@lucent.com>
93409
93410         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
93411
93412         * m4/xstrtoimax.m4: New file.
93413         * m4/xstrtoumax.m4: Add comments explaining why we
93414         AC_REPLACE_FUNCS(strtol).
93415
93416 2001-08-26  Jim Meyering  <meyering@lucent.com>
93417
93418         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
93419         of copyright with `%s' so translators don't get an untranslated
93420         message in 2002.
93421         (COPYRIGHT_YEAR): Define.
93422         (version_etc): Use fprintf rather than fputs.
93423         Suggestion from Ulrich Drepper.
93424
93425         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93426
93427         * lib/strtoll.c: New file, from GNU libc.
93428         * lib/xstrtoimax.c: New file.
93429
93430         * lib/xstrtol.h: Add xstrtoimax.
93431         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93432         * lib/strtoimax.c: New file.  Likewise, but first define
93433         STRTOUXMAX_SIGNED.
93434
93435         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93436         ...
93437         * lib/strtoxmax.c: ... then renamed to this.
93438
93439 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93440
93441         * m4/inttypes.m4: Add AC_PREREQ(2.13).
93442         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
93443         (jm_AC_TYPE_INTMAX_T): New macro.
93444         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
93445
93446         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
93447
93448         * m4/longlong.m4: Renamed from ulonglong.m4.
93449         * m4/inttypes.m4: Renamed from inttypes_h.m4.
93450         * m4/uintmax_t.m4: Removed.
93451
93452 2001-08-13  Paul Eggert  <eggert@twinsun.com>
93453
93454         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
93455         Port to Solaris 8, where 'sed' requires a space after the 'r'
93456         command, and where sh dislikes "$/".  Clean up the spacing a bit.
93457         Redirect output to $tmp just once.
93458
93459 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
93460
93461         * lib/addext.c (<errno.h>): Include.
93462         (errno): Declare if not defined.
93463         (addext): Work correctly when pathconf returns -1 and leaves
93464         errno alone because there is no limit.  Also, work even if
93465         pathconf returns a value greater than SIZE_MAX.
93466
93467 2001-08-12  Jim Meyering  <meyering@lucent.com>
93468
93469         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93470         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93471         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
93472         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
93473         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
93474         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
93475         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
93476         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
93477         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
93478         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
93479         utime.m4, utimes.m4, xstrtoumax.m4:
93480         Quote the first argument in each use of AC_DEFUN.
93481
93482 2001-08-12  Jim Meyering  <meyering@lucent.com>
93483
93484         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
93485         Simply `return getcwd (NULL, 0);'.
93486         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
93487         Use 1300 as initial value for length, not PATH_MAX.
93488
93489         * lib/pathmax.h: Clean up cpp syntax.
93490
93491 2001-08-12  Jim Meyering  <meyering@lucent.com>
93492
93493         * lib/gettimeofday.c: New file.
93494         * lib/gtod.h: New file.
93495         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
93496
93497 2001-08-05  Jim Meyering  <meyering@lucent.com>
93498
93499         * m4/jm-macros.m4: Require autoconf-2.52.
93500
93501 2001-08-04  Jim Meyering  <meyering@lucent.com>
93502
93503         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
93504         stmt, to get in sync with glibc.
93505
93506 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93507
93508         The following changes are from gettext 0.10.39 as maintained by
93509         Bruno Haible.
93510
93511         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
93512         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
93513         with inverted sense.  All uses changed.
93514
93515         * lib/mbswidth.c: Don't include <limits.h>.
93516         Include <stdlib.h> and <string.h> unconditionally.
93517         (iswcntrl, mbsinit, ISCNTRL): New macros.
93518         (mbsnwidth): Use K&R style function declarations.
93519         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93520         can optimize it when MB_CUR_MAX == 1.
93521         The width of control characters is zero, not 1.
93522
93523 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93524
93525         The following changes are from gettext 0.10.39 as maintained by
93526         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93527
93528         * m4/codeset.m4: Upgrade to serial AM1.
93529         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93530         all uses changed.  Quote first arg of AC_DEFUN.
93531         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93532
93533         * m4/iconv.m4: Upgrade to serial AM2.
93534         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93535         Add --with-libconv-prefix.
93536         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93537         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93538         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93539         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93540         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93541
93542         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93543         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93544         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93545         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93546         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93547         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93548         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93549         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93550         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93551
93552         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93553         string.h any more.
93554
93555         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93556         not the default value.
93557
93558         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93559         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93560         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93561         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93562         Also check for iswcntrl, used for wcwidth fallback.
93563         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93564         to Autoconf 2.13.
93565
93566 2001-08-03  Jim Meyering  <meyering@lucent.com>
93567
93568         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93569         as it was in the original.  Reported by Paul Eggert.
93570
93571 2001-07-16  Jim Meyering  <meyering@lucent.com>
93572
93573         * m4/gettimeofday.m4: New file.
93574         Prompted by a report from Bernhard Baehr.
93575
93576 2001-07-15  Jim Meyering  <meyering@lucent.com>
93577
93578         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93579         stuff. Now it's in ../Makefile.cfg.
93580
93581 2001-07-15  Jim Meyering  <meyering@lucent.com>
93582
93583         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93584         (BUILT_SOURCES): Add unlocked-io.h.
93585         (io_functions): Define.
93586         (unlocked-io.h): New rule.
93587         (DISTCLEANFILES): Add unlocked-io.h.
93588         (all-local): Depend on unlocked-io.h, to ensure it is created.
93589
93590         * lib/unlocked-io.hin: New file
93591
93592         * lib/regex.c: Update from glibc.
93593
93594 2001-07-05  Jim Meyering  <meyering@lucent.com>
93595
93596         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93597         recommendation.
93598         (libfetish_a_SOURCES): Put all .h files here instead.
93599         Remove a thus-exposed (better checks in automake) duplicate and
93600         two unnecessary .h files.
93601
93602 2001-07-04  Jim Meyering  <meyering@lucent.com>
93603
93604         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93605         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93606         distcheck failure.
93607
93608 2001-07-02  Jim Meyering  <meyering@lucent.com>
93609
93610         The following changes were prompted by suggestions from Bruno Haible.
93611
93612         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93613         is now generated.
93614         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93615         definition of EXTRA_DIST.
93616         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93617         ensure that the generated file is created/updated whenever the list
93618         of $(unlocked_functions) is changed.
93619         (jm-glibc-io.m4): New rule.
93620         (unlocked-io.h): New rule -- currently unused.
93621
93622 2001-06-24  Jim Meyering  <meyering@lucent.com>
93623
93624         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93625         unmatched right bracket, rather than kludging it with an extra,
93626         falsely-matching quote in a comment.  Patch by Akim Demaille.
93627
93628 2001-06-11  Jim Meyering  <meyering@lucent.com>
93629
93630         * lib/regex.c: Update from GNU libc.
93631
93632 2001-05-27  Jim Meyering  <meyering@lucent.com>
93633
93634         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93635         Check for ut_type in struct utmp.
93636
93637 2001-05-27  Jim Meyering  <meyering@lucent.com>
93638
93639         * lib/readutmp.h (UT_TYPE): Define.
93640
93641 2001-05-24  Jim Meyering  <meyering@lucent.com>
93642
93643         * lib/argmatch.c: Include "quote.h".
93644         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93645         quote function.  Reported by Göran Uddeborg.
93646
93647 2001-05-22  Jim Meyering  <meyering@lucent.com>
93648
93649         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93650         now that we use the package-supplied version unconditionally.
93651         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93652
93653 2001-05-21  Jim Meyering  <meyering@lucent.com>
93654
93655         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93656         shell syntax errors.
93657
93658 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93659
93660         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93661
93662 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93663
93664         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93665         Don't bother to check library strftime, since
93666         we'll be using our own my_strftime function anyway.
93667         Define my_strftime instead of strftime.
93668
93669 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93670
93671         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93672         which is not yet declared.
93673
93674 2001-05-15  Jim Meyering  <meyering@lucent.com>
93675
93676         * m4/regex.m4: Use proper quoting so brackets appear in the test
93677         program.
93678         Reported by, and with help from, Bruno Haible.
93679
93680 2001-05-13  Jim Meyering  <meyering@lucent.com>
93681
93682         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93683         undefined.
93684
93685 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93686
93687         dirname code cleanup.  base_name now behaves more compatibly
93688         with POSIX basename when given file names that have trailing
93689         slashes, and similarly for dir_name.  Add new primitives
93690         base_len and dir_len.  Put the directory-name-related decls
93691         into dirname.h.
93692
93693         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93694         * lib/backupfile.c (base_name): Likewise.
93695         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93696         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93697         * lib/makepath.c (strip_trailing_slashes): Likewise.
93698         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93699         ISSLASH): Likewise.
93700         * lib/rename.c (strip_trailing_slashes): Likewise.
93701         * lib/same.c (base_name): Likewise.
93702         * lib/stripslash.c (ISSLASH): Likewise.
93703
93704         * lib/addext.c: Include <dirname.h> after size_t is defined.
93705         * lib/backupfile.c: Likewise.
93706
93707         * lib/addext.c (addext): Use base_len to trim redundant
93708         trailing slashes instead of doing it ourselves.
93709         But do not trim the last slash if it is not redundant.
93710
93711         * lib/backupfile.c (find_backup_file_name,
93712         max_backup_version): Use base_len instead of rolling it ourselves.
93713         Handle the case of "" and (on DOS) "C:" correctly.
93714
93715         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93716         needed. Include <string.h>, <dirname.h>.
93717         (base_name): Allow file names ending in slashes, other than names
93718         that are all slashes.  In this case, return the basename followed
93719         by the slashes.  This is more general, and can be used in places
93720         where the original base_name purposely had an assertion failure.
93721         (base_len): New function.
93722
93723         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93724         Do not include <assert.h>; no longer needed.
93725         Include xalloc.h.
93726         (memrchr): Remove decl.
93727         (dir_name_r): Remove.
93728         (dir_len): Renamed from dirlen.  All callers changed.
93729         Rewrite in terms of base_name, for simplicity and consistency.
93730         (dir_name): Never return NULL.  All callers changed.
93731         Do not include <stdlib.h> in test program; no longer needed.
93732         return 0; is fine for test program.
93733
93734         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93735         New macros.
93736         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93737
93738         * lib/path-concat.c (path_concat): Use base_len to compute
93739         base length, not strlen; this means we cannot rely on memcpy
93740         to null-terminate.
93741
93742         * lib/same.c (STREQ): Remove.
93743         (same_name): Handle the case where the basename ends in trailing '/'.
93744
93745         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93746         a slash was stripped.  Do not strip the last slash after a
93747         file system prefix.
93748
93749 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93750
93751         * lib/Makefile.am (libfetish_a_SOURCES):
93752         Add strftime.c, since we now compile it on all hosts.
93753
93754         * lib/strftime.c (my_strftime):
93755         Define to nstrftime if emacs, but only if my_strftime is not defined.
93756         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93757         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93758         Add one more extra argument: a nanoseconds value.
93759         All uses changed.
93760         (ns): New macro.
93761         (my_strftime function): Add %N format.
93762         (emacs_strftimeu): Renamed from emacs_strftime,
93763         with extra ut argument.
93764
93765 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93766
93767         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93768
93769 2001-04-21  Jim Meyering  <meyering@lucent.com>
93770
93771         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93772         doesn't interfere.
93773
93774 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93775
93776         * m4/ftruncate.m4: Check for chsize.
93777         Link with ftruncate.o unconditionally if ftruncate is missing.
93778         This was required when cross-compiling to i586-mingw32msvc.
93779
93780 2001-04-08  Jim Meyering  <meyering@lucent.com>
93781
93782         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93783         recomputed; that's necessary when the offset spans a DST transition.
93784         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93785
93786 2001-04-02  Jim Meyering  <meyering@lucent.com>
93787
93788         * lib/regex.h, regex.c: Update from GNU libc.
93789
93790 2001-03-24  Jim Meyering  <meyering@lucent.com>
93791
93792         * m4/jm-macros.m4: Require autoconf-2.49d.
93793
93794 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93795
93796         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93797
93798 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93799
93800         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93801
93802 2001-03-17  Jim Meyering  <meyering@lucent.com>
93803
93804         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93805         now that the version in autoconf is equivalent.
93806         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93807
93808         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93809         Suggestion from Akim Demaille.
93810
93811         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93812         (jm_PREREQ_TEMPNAME): New function.
93813
93814 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93815
93816         * lib/tempname.c (uint64_t): Define to uintmax_t if
93817         not defined, and if UINT64_MAX is not defined.
93818         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93819         Reported by John David Anglin.
93820
93821 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93822
93823         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93824         resolve alias if codeset is empty.
93825         * lib/config.charset (BeOS): Use wildcard syntax.
93826
93827 2001-03-13  Jim Meyering  <meyering@lucent.com>
93828
93829         * lib/path-concat.c (path_concat)
93830         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93831         concatenating e.g., `C:' and `foo'.
93832         From Bruno Haible.
93833
93834 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93835
93836         * lib/localcharset.c (locale_charset): Don't use
93837         setlocale(LC_CTYPE,NULL). Don't return NULL.
93838         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93839
93840 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93841
93842         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93843         support for DOS/DJGPP.
93844
93845 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93846
93847         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93848         lacks mkstemp.  Compile our own tempname.c if we compile our own
93849         mkstemp.c, as mkstemp relies on tempname.
93850
93851 2001-03-01  Jim Meyering  <meyering@lucent.com>
93852
93853         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93854         AH_VERBATIM really does output its argument verbatim.
93855
93856 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93857
93858         * lib/Makefile.am (libfetish_a_SOURCES):
93859         Add dup-safer.c, fopen-safer.c.
93860         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93861
93862         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93863         * lib/unistd-safer.h: New files.
93864
93865 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93866
93867         The mkstemp replacement is taken from glibc 2.2.2, with some
93868         portability fixes for use outside glibc, as follows:
93869
93870         * lib/tempname.c (struct_stat64): New macro.
93871         (direxists, __gen_tempname): Use it.
93872         This avoids a portability problem with Solaris 8.
93873
93874         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93875         (<stddef.h>, <stdint.h>, <string.h>):
93876         Include only if STDC_HEADERS || _LIBC.
93877         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93878         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93879         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93880         (__set_errno): Define this macro if <errno.h> doesn't.
93881         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93882         Define these macros if <stdio.h> doesn't.
93883         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93884         Define these macros if <sys/stat.h>
93885         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93886         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93887         __xstat64): Define if not _LIBC.
93888         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93889         (__gen_tempname): Invoke gettimeofday only if
93890         HAVE_GETTIMEOFDAY || _LIBC;
93891         otherwise, fall back on plain "time".
93892         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93893
93894         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93895
93896         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93897
93898 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93899
93900         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93901
93902 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93903
93904         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93905         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93906         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93907         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93908
93909 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93910
93911         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93912         Remove workaround macros for hosts that have mbrtowc but not
93913         mbstate_t, as we now insist on proper declarations for both
93914         before using mbrtowc.
93915
93916 2001-02-17  Jim Meyering  <meyering@lucent.com>
93917
93918         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93919         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93920         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93921         UnixWare 7.1.1.
93922
93923         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93924         rather than AC_CACHE_VAL.
93925
93926 2001-02-17  Jim Meyering  <meyering@lucent.com>
93927
93928         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93929         around included file name.
93930
93931         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93932
93933         * lib/strftime.c: Update from GNU libc (the only changes were to
93934         comments).
93935
93936 2001-02-17  Jim Meyering  <meyering@lucent.com>
93937
93938         * lib/regex.c: Update from libc.
93939
93940 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93941
93942         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93943         clash.
93944
93945 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93946
93947         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93948         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93949         Reported by Mark Hounschell via Paul Eggert.
93950
93951 2001-02-07  Jim Meyering  <meyering@lucent.com>
93952
93953         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93954
93955 2001-02-05  Jim Meyering  <meyering@lucent.com>
93956
93957         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93958         it includes the patch required for `large file' support with at least
93959         HP-UX's 10.20 /bin/cc.
93960
93961 2001-02-03  Jim Meyering  <meyering@lucent.com>
93962
93963         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93964         AS_IF, now that it works once again (mysteriously).
93965         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93966
93967 2001-01-30  Jim Meyering  <meyering@lucent.com>
93968
93969         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93970         * m4/chown.m4: Rename conftestchown to conftest.chown.
93971         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93972         s/conftestdir2/conftest.d2/.
93973         * m4/utimes.m4: s/conftestdata/conftest.data/
93974         Inspired by Pavel Roskin's change in autoconf.
93975
93976 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93977
93978         * lib/config.charset: Update for FreeBSD 4.2.
93979
93980 2001-01-27  Jim Meyering  <meyering@lucent.com>
93981
93982         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93983         a use of AS_IF.
93984         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93985
93986 2001-01-26  Jim Meyering  <meyering@lucent.com>
93987
93988         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93989         quotearg.c includes it.
93990
93991 2001-01-26  Jim Meyering  <meyering@lucent.com>
93992
93993         * lib/quotearg.c: Include stddef.h.
93994         * lib/quote.c: Include stddef.h.
93995         Reported by Axel Kittenberger.
93996
93997         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93998         line in double quotes so that it evokes a better diagnostic.
93999         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
94000         Reported by Axel Kittenberger.
94001
94002 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
94003
94004         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
94005         as if it was a `charset'.
94006
94007 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94008
94009         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
94010         has const.
94011
94012 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94013
94014         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
94015         to avoid a warning.  Add back 'const' to inptr.
94016
94017 2001-01-20  Jim Meyering  <meyering@lucent.com>
94018
94019         Be sure that headers are checked before used in code compiled
94020         for the type checks.
94021         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
94022         In place of that, invoke jm_CHECK_ALL_TYPES.
94023         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
94024         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
94025         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
94026         The check for ssize_t was mistakenly run before the test for unistd.h.
94027
94028         The configure-time check for stdbool.h was missing.
94029         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
94030         (jm_PREREQ_HASH): New function.
94031
94032 2001-01-17  Jim Meyering  <meyering@lucent.com>
94033
94034         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94035         for autoconf-2.49c.
94036         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94037
94038 2001-01-16  Jim Meyering  <meyering@lucent.com>
94039
94040         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94041         From Bruno Haible.
94042
94043 2001-01-14  Jim Meyering  <meyering@lucent.com>
94044
94045         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94046         foo and bar.  Create conftestdir/ in the script, not in the C code.
94047         Remove directories in the script, not in the C code.
94048         Remove conftestdir{,2} before trying to create the directory.
94049         Make the entire configure script fail if the mkdir fails.
94050
94051 2001-01-14  Jim Meyering  <meyering@lucent.com>
94052
94053         * lib/rename.c: New file.  From Volker Borchert.
94054         Include stdlib.h, string.h or strings.h, and xalloc.h.
94055         Use strip_trailing_slashes rather than open-coding it.
94056
94057 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94058
94059         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94060
94061 2001-01-03  Jim Meyering  <meyering@lucent.com>
94062
94063         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94064         of local `inptr' to avoid warning with some system declarations of
94065         iconv.
94066
94067 2001-01-02  Volker Borchert  <bt@teknon.de>
94068
94069         * m4/rename.m4: New file.
94070         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94071
94072 2001-01-01  Jim Meyering  <meyering@lucent.com>
94073
94074         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94075         even on systems with utmpx.h.  It's necessary for the declaration of
94076         utmp's ut_user member.  Reported by Andreas Jaeger.
94077
94078         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94079         available. They are required for the declarations of getgrgid and
94080         getpwuid resp.
94081         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94082         Reported by Andreas Jaeger.
94083
94084 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94085
94086         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94087         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94088         so `make install' also works in VPATH builds.
94089
94090 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94091
94092         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94093         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94094         can be used in subdirectories.
94095
94096 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94097
94098         * lib/modechange.c: Do not assume that mode_t uses the
94099         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94100         the other-execute bit of FOO even if S_IXOTH != 1.
94101
94102         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94103         WOTH, XOTH, ALLM): New macros.
94104         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94105          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94106         Use them.
94107         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94108         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94109         (mode_compile):
94110         No need to use uintmax_t; unsigned long is long enough.
94111         Don't bother to get suffix since we don't use it.
94112
94113 2000-12-26  Jim Meyering  <meyering@lucent.com>
94114
94115         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94116         better with autoheader.
94117
94118 2000-12-24  Jim Meyering  <meyering@lucent.com>
94119
94120         * lib/hash.c (is_prime): Return explicit boolean values.
94121         (hash_get_first): Return NULL to appease Irix5.6's 89.
94122         Reported by Nelson Beebe.
94123
94124 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94125
94126         * lib/localcharset.c (locale_charset): Add support for Win32.
94127
94128 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94129
94130         * lib/physmem.h, lib/physmem.c: New files.
94131
94132         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94133         (noinst_HEADERS): Add physmem.h.
94134
94135         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94136         't' for compatibility with Solaris 8 sort.
94137
94138 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94139
94140         * lib/config.charset: Add support for BeOS.
94141
94142 2000-12-17  Jim Meyering  <meyering@lucent.com>
94143
94144         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94145         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94146
94147 2000-12-16  Jim Meyering  <meyering@lucent.com>
94148
94149         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94150         N and M) would have treated it like `chown N:N FILE'.
94151
94152         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94153
94154 2000-12-16  Jim Meyering  <meyering@lucent.com>
94155
94156         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94157         SHELLS_FILE to a file name that's useful on djgpp systems.
94158         Include stdlib.h.
94159         (ADDITIONAL_DEFAULT_SHELLS): Define.
94160         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94161         Based mostly on a patch from Prashant TR.
94162
94163 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94164
94165         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94166         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94167         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94168
94169 2000-12-08  Andreas Schwab  <schwab@suse.de>
94170
94171         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94172         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94173
94174 2000-12-07  Jim Meyering  <meyering@lucent.com>
94175
94176         * lib/stripslash.c (ISSLASH): Define.
94177         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94178         `/'.
94179         From Prashant TR.
94180
94181         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94182         (dir_name_r): Declare this function as static.
94183         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94184         manifest itself on a name containing a mix of slashes and
94185         backslashes.
94186         Make this function work with names starting with a DOS-style
94187         drive letter and colon prefix.
94188         (dir_name): Append `.' if necessary.
94189         Based mostly on patches from Prashant TR and Eli Zaretskii.
94190
94191         * lib/dirname.h (dir_name_r): Remove prototype.
94192
94193 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94194
94195         * m4/off_t-format.m4: Remove this file.
94196         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94197
94198 2000-12-06  Jim Meyering  <meyering@lucent.com>
94199
94200         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94201         replacement strtoull, we may well need the replacement strtoul, too.
94202         Check for declarations of strtoul and strtoull.
94203         Check for strtol.  Mainly as a cue to cause automake to include
94204         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94205         Check for limits.h -- strtol.c needs it.
94206
94207 2000-12-05  Jim Meyering  <meyering@lucent.com>
94208
94209         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94210
94211 2000-12-04  Jim Meyering  <meyering@lucent.com>
94212
94213         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94214         Also include memory.h, stdlib.h, unistd.h if appropriate.
94215         Reported by Andreas Jaeger (conflicting declaration of malloc).
94216
94217 2000-12-02  Jim Meyering  <meyering@lucent.com>
94218
94219         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94220         * m4/jm-macros.m4 (jm_MACROS): require it.
94221
94222 2000-12-02  Jim Meyering  <meyering@lucent.com>
94223
94224         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94225
94226 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94227
94228         * lib/memrchr.c: Include <config.h> before any system include file.
94229
94230 2000-11-30  Jim Meyering  <meyering@lucent.com>
94231
94232         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94233
94234 2000-11-30  Jim Meyering  <meyering@lucent.com>
94235
94236         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94237
94238 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94239
94240         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94241
94242 2000-11-26  Jim Meyering  <meyering@lucent.com>
94243
94244         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94245
94246 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94247
94248         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94249         size of (size_t) -1; it's not portable.
94250
94251 2000-11-17  Jim Meyering  <meyering@lucent.com>
94252
94253         * lib/strstr.c: Update from GNU libc.
94254
94255 2000-11-17  Akim Demaille  <akim@epita.fr>
94256
94257         * lib/obstack.h: Formatting changes.
94258         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94259         prevent type checking.
94260         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94261         cast the value to (void *): assigning a `foo *' to a `void *'
94262         variable is valid.
94263         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94264
94265 2000-11-16  Jim Meyering  <meyering@lucent.com>
94266
94267         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94268
94269 2000-11-11  Jim Meyering  <meyering@lucent.com>
94270
94271         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94272
94273 2000-11-10  Jim Meyering  <meyering@lucent.com>
94274
94275         * lib/obstack.h: Update from GNU libc.
94276         * lib/obstack.c: Likewise.
94277
94278 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94279
94280         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94281
94282 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94283
94284         * lib/getusershell.c (setusershell): Use rewind rather than
94285         fseek/fseeko, to avoid configuration hassles with fseeko.
94286         Don't bother opening SHELLS_FILE if shellstream is NULL;
94287         it's not necessary.
94288
94289 2000-11-05  Jim Meyering  <meyering@lucent.com>
94290
94291         * lib/makepath.h (make_dir): Declare.
94292         * lib/makepath.c (make_dir): Remove `static' attribute.
94293         Tweak a comment.
94294
94295 2000-11-04  Jim Meyering  <meyering@lucent.com>
94296
94297         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
94298
94299 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
94300
94301         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94302         last one in a bucket, advance to the next bucket.
94303
94304 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94305
94306         * lib/fnmatch.c: Do not comment out all the code if we are using
94307         the GNU C library, because in some cases we are replacing buggy
94308         code in the GNU C library itself.
94309
94310 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94311
94312         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94313         (regex_compile): Catch bogus \(\1\).
94314
94315 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94316
94317         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94318         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94319         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94320
94321 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94322
94323         * lib/error.h, getline.h, modechange.h:
94324         Remove "2000" from Copyright line, as the file hasn't been
94325         changed this year other than in the copyright notice.
94326
94327         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94328         was changed this year.
94329
94330 2000-10-29  Jim Meyering  <meyering@lucent.com>
94331
94332         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94333         renaming.
94334         * m4/ls-mntd-fs.m4: Likewise
94335
94336 2000-10-29  Jim Meyering  <meyering@lucent.com>
94337
94338         * lib/xstat.in: Fix grammar in comment.
94339
94340 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94341
94342         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94343         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94344         doesn't define __restrict_arr.
94345
94346 2000-10-28  Jim Meyering  <meyering@lucent.com>
94347
94348         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94349         (jm_PREREQ_MEMCHR): New function.
94350
94351 2000-10-28  Jim Meyering  <meyering@lucent.com>
94352
94353         * lib/memchr.c: Update from libc.
94354         Adjust for portability:
94355         [HAVE_STDLIB_H]: Include stdlib.h.
94356         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94357         Undef __memchr, too.
94358         [!weak_alias]: Define __memchr to memchr.
94359
94360         * lib/regex.c: Update from libc.
94361         * lib/regex.h: Likewise.
94362         * lib/getopt1.c: Likewise.
94363         * lib/memcmp.c: Likewise.
94364
94365         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
94366         Avoid using fseek, when possible -- it's broken by design.
94367         Patch by Ulrich Drepper.
94368
94369 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
94370
94371         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
94372         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
94373         Giving in to popular pressure to shut up the compiler with casts.
94374
94375 2000-10-26  Jim Meyering  <meyering@lucent.com>
94376
94377         * lib/strftime.c: Update from libc.
94378
94379 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
94380
94381         * regex.c: More `unsigned char' -> `re_char' changes.
94382         Also change several `int' into `re_wchar_t'.
94383         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
94384         (PUSH_FAILURE_POINTER): Don't cast any more.
94385         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
94386         We want GCC to complain, since this piece of code makes
94387         re_match non-reentrant, which *should* be fixed.
94388         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
94389         (EXTEND_BUFFER): Use RETALLOC.
94390         (SET_LIST_BIT): Don't cast.
94391         (re_wchar_t): New type.
94392         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
94393         that those two functions will always properly return.
94394         (IMMEDIATE_QUIT_CHECK): Cast to void.
94395         (analyse_first): Use recursion rather than an explicit stack.
94396         (re_compile_fastmap): Can't fail anymore.
94397         (re_search_2): Don't check re_compile_fastmap for failure.
94398         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
94399         Now also sets the new value (passed in a new argument).
94400         (re_match_2_internal): Use it.
94401         Also, use a new var `reg' of type size_t when looping through regs
94402         rather than reuse the inappropriate `mcnt'.
94403
94404 2000-10-25  Jim Meyering  <meyering@lucent.com>
94405
94406         * lib/obstack.c: Update from libc.
94407
94408 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
94409
94410         * regex.c (regex_compile): Change the way of handling a range from
94411         a char less than 256 to a char not less than 256.
94412
94413 2000-10-24  Andrew Innes  <andrewi@gnu.org>
94414
94415         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
94416         NT-Emacs only.
94417         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
94418         so that re_search functions only quit when callers expect them to.
94419
94420 2000-10-23  Jim Meyering  <meyering@lucent.com>
94421
94422         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94423         wrong.  That set_locale call must not have any side effects.
94424         From Paul Eggert.
94425
94426 2000-10-22  Jim Meyering  <meyering@lucent.com>
94427
94428         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94429         [CYCLIC]: Remove now-unused definition.
94430
94431         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94432         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94433         Suggestion from Ulrich Drepper.
94434
94435 2000-10-21  Jim Meyering  <meyering@lucent.com>
94436
94437         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94438         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94439         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94440
94441 2000-10-21  Jim Meyering  <meyering@lucent.com>
94442
94443         * lib/dirname.c (memrchr): Declare if necessary.
94444         (dir_name): Remove the restriction that there be no
94445         trailing slashes.  Now, this code skips past them, effectively
94446         ignoring them.
94447         [TEST_DIRNAME] (main): New unit tests.
94448
94449         * lib/memrchr.c: New file from GNU libc.
94450         Undef __memrchr, too.
94451         [!weak_alias]: Define __memrchr to memrchr.
94452         Guard weak_alias use with `#ifdef weak_alias'.
94453
94454 2000-10-21  Jim Meyering  <meyering@lucent.com>
94455
94456         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
94457         (dir_name): Use dir_name_r.
94458         * lib/dirname.h (dir_name_r): Declare it.
94459
94460 2000-10-17  Jim Meyering  <meyering@lucent.com>
94461
94462         * lib/quote.h (PARAMS): Define and use.
94463         Reported by Akim Demaille.
94464
94465         * lib/getopt.c: Update from libc.
94466
94467 2000-10-16  Jim Meyering  <meyering@lucent.com>
94468
94469         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94470         setlocale.
94471         From Jan Fedak.
94472
94473 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
94474
94475         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
94476
94477 2000-09-25  Jim Meyering  <meyering@lucent.com>
94478
94479         * lib/md5.h (rol): Define (from GnuPG).
94480
94481         * lib/sha.c: Give credit (GnuPG) where due.
94482         (M): Use rol rather than open-coding it.
94483         Add a FIXME comment.
94484
94485 2000-09-21  Jim Meyering  <meyering@lucent.com>
94486
94487         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
94488         Reported by Michael Stone.
94489
94490 2000-09-20  Jim Meyering  <meyering@lucent.com>
94491
94492         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
94493         (noinst_HEADERS): Add sha.h.
94494         Based on code from Scott G. Miller and from GnuPG.
94495
94496 2000-09-18  Jim Meyering  <meyering@lucent.com>
94497
94498         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
94499         LIBS. Otherwise, everyone ends up linking with -lelf for some
94500         configurations.
94501         Reported by Mike Stone.
94502
94503 2000-09-15  Jim Meyering  <meyering@lucent.com>
94504
94505         * lib/regex.c: Update from libc.
94506
94507 2000-09-10  Jim Meyering  <meyering@lucent.com>
94508
94509         * lib/getopt.c (_getopt_internal): Update from glibc.
94510
94511 2000-09-09  Jim Meyering  <meyering@lucent.com>
94512
94513         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
94514         think it should be used as a general replacement for isascii.
94515         * lib/fnmatch.c: Likewise.
94516         * lib/mbswidth.c: Likewise
94517         * lib/regex.c: Likewise.
94518
94519         Don't use atoi.
94520         * lib/userspec.c: Include sys/param.h and limits.h.
94521         Include xstrtol.h.
94522         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94523         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94524         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94525         UID, GID.  Check range.
94526
94527 2000-09-06  Jim Meyering  <meyering@lucent.com>
94528
94529         * lib/getopt.c (_getopt_internal): Update from glibc.
94530
94531 2000-08-30  Jim Meyering  <meyering@lucent.com>
94532
94533         * lib/strftime.c: Merge in changes from GNU libc.
94534
94535 2000-08-26  Jim Meyering  <meyering@lucent.com>
94536
94537         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94538         * m4/fpending.m4: New file.
94539
94540 2000-08-26  Jim Meyering  <meyering@lucent.com>
94541
94542         * lib/closeout.c: Include "__fpending.h".
94543         (close_stdout_status): Return right away if there's nothing to flush.
94544
94545         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94546         * lib/__fpending.c: New file.
94547         * lib/__fpending.h: New file.
94548
94549 2000-08-20  Jim Meyering  <meyering@lucent.com>
94550
94551         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94552         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94553         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94554
94555 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94556
94557         Improve fileutils installation on systems where running
94558         programs (like install) can't be unlinked.
94559         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94560         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94561
94562 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94563
94564         Standardize on "memory exhausted" instead of "Memory exhausted"
94565         or "virtual memory exhausted".
94566         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94567         "virtual memory exhausted".
94568         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94569         our own message.
94570         * lib/userspec.c (parse_user_spec): Likewise.
94571         * lib/bumpalloc.h: comment fix
94572         * lib/same.c, userspec.c: Include xalloc.h.
94573
94574         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94575         not char *const and pointing to a constant array.
94576         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94577         (xrealloc): Comment fix.
94578
94579         * lib/userspec.c (parse_user_spec):
94580         Don't translate a message until just before returning,
94581         to avoid unnecessary translation.
94582
94583 2000-08-07  Jim Meyering  <meyering@lucent.com>
94584
94585         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94586         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94587         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94588         getgroups.c, gethostname.c, getopt.h, group-member.c,
94589         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94590         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94591         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94592         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94593         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94594         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94595         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94596         yesno.c: Back out Copyright date changes for each file with no change
94597         this year.  This eases coordination with other programs using the same
94598         source code modules.  From Paul Eggert.
94599
94600 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94601
94602         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94603         not char, for compatibility with glibc 2.1.3 strftime.c.
94604
94605 2000-08-03  Greg McGary  <greg@mcgary.org>
94606
94607         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94608         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94609         (EXTEND_BUFFER): Use them.
94610
94611 2000-08-01  Jim Meyering  <meyering@lucent.com>
94612
94613         * lib/dirname.c (ISSLASH): Define.
94614         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94615         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94616         both `\' and `/' may be use as path separators.
94617         Based on a patch from Prashant TR.
94618
94619 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94620
94621         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94622         slot vector a constant, since it might get modified.
94623
94624 2000-07-31  Jim Meyering  <meyering@lucent.com>
94625
94626         * lib/xmalloc.c: Use `virtual memory exhausted', not
94627         `Memory exhausted'.
94628         * lib/obstack.c (print_and_abort): Likewise.
94629
94630 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94631
94632         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94633         buffer, so that the caller can always quote one small
94634         component of a "memory exhausted" message in slot 0.
94635         From a suggestion by Jim Meyering.
94636
94637 2000-07-30  Jim Meyering  <meyering@lucent.com>
94638
94639         * lib/makepath.c (make_path): Quote the other instance, too.
94640
94641         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94642         (STATIC_BUF_SIZE): Define.
94643         (quotearg_n_options): Use only statically allocated storage when
94644         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94645         than STATIC_BUF_SIZE.
94646
94647 2000-07-29  Jim Meyering  <meyering@lucent.com>
94648
94649         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94650         * lib/dirname.c (dir_name): Likewise.
94651
94652         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94653         `/'.
94654
94655         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94656         (dir_name): Assert that there are no trailing slashes.
94657
94658 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94659
94660         * lib/mbswidth.h (mbswidth): Add a flags argument.
94661         (mbswidth): New declaration.
94662         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94663         * lib/mbswidth.c (mbswidth): Add a flags argument.
94664         (mbsnwidth): New function.
94665
94666 2000-07-24  Jim Meyering  <meyering@lucent.com>
94667
94668         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94669
94670 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94671
94672         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94673
94674 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94675
94676         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94677         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94678         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94679         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94680         invoke multibyte primitives.
94681
94682 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94683
94684         * lib/quotearg.c:
94685         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94686         so that mbstate_t is always defined.
94687
94688         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94689         be 1 in at least one GCC installation, and this configuration
94690         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94691         performance on hosts that have mbrtowc but have only unibyte
94692         locales, but I assume these hosts are rare.
94693
94694 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94695
94696         * lib/mbswidth.c (_XOPEN_SOURCE):
94697         Don't define; this causes problems on Solaris 7.
94698         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94699
94700 2000-07-23  Jim Meyering  <meyering@lucent.com>
94701
94702         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94703         too: getgrgid, getpwuid, getuid.
94704
94705 2000-07-23  Jim Meyering  <meyering@lucent.com>
94706
94707         * lib/basename.c (base_name): Add an assertion.
94708
94709 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94710
94711         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94712         shadow its mbsinit function.
94713
94714 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94715
94716         * lib/mbswidth.h: New file.
94717         * lib/mbswidth.c: New file.
94718         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94719         (noinst_HEADERS): Add mbswidth.h.
94720
94721 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94722
94723         * lib/config.charset: Add support for FreeBSD. Improve support for
94724         HP-UX and IRIX 6.
94725
94726 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94727
94728         * m4/mbswidth.m4: New file.
94729         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94730
94731 2000-07-15  Jim Meyering  <meyering@lucent.com>
94732
94733         * lib/makepath.c: Include quote.h.
94734         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94735         corresponding argument in a `quote (...)' call.
94736         Give better diagnostics.
94737
94738         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94739         (noinst_HEADERS): Add quote.h.
94740
94741         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94742         from tar's src/misc.c.
94743         * lib/quote.h: New file.  Prototypes for same.
94744
94745 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94746
94747         From a suggestion by Bruno Haible.
94748         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94749         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94750         to decide whether to define the BeOS workaround macro;
94751         this adjusts to the change to AC_MBSTATE_T.
94752
94753 2000-07-14  Jim Meyering  <meyering@lucent.com>
94754
94755         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94756         jm_AC_TYPE_UINTMAX_T.
94757
94758 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94759
94760         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94761
94762         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94763         quotearg_buffer_restyled): Add support for
94764         clocale_quoting_style.  Undo previous change to
94765         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94766         and "{RIGHT QUOTATION MARK}" msgids.
94767
94768 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94769
94770         From a suggestion by Bruno Haible.
94771         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94772         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94773         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94774         and mbstate_t, to a single-part test that simply defines mbstate_t.
94775         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94776         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94777
94778 2000-07-10  Jim Meyering  <meyering@lucent.com>
94779
94780         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94781
94782         * m4/gnu-source.m4: Output to confdefs.h directly.
94783         Suggestion from Akim Demaille.
94784
94785 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94786
94787         The old behavior of quoting `like this' doesn't look good with
94788         newer, ISO-style fonts.  See:
94789         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94790
94791         Instead, quote "like this" by default.  Let the translator
94792         tailor the locale-specific quoting behavior by providing
94793         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94794
94795         * lib/quotearg.c (N_): New macro.
94796         (gettext_default): New function.
94797         (quotearg_buffer_restyled): Use
94798         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94799         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94800
94801 2000-07-09  Jim Meyering  <meyering@lucent.com>
94802
94803         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94804         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94805
94806         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94807         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94808
94809 2000-07-09  Jim Meyering  <meyering@lucent.com>
94810
94811         * lib/Most files: Update copyright dates to include 2000.
94812
94813 2000-07-08  Jim Meyering  <meyering@lucent.com>
94814
94815         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94816         if not defined.
94817         (xgethostname): Remove now-unnecessary #ifdef.
94818         Move declaration of `err' into loop where it's used.
94819
94820 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94821         and Bruno Haible  <haible@clisp.cons.org>
94822
94823         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94824         only if the test for an object-type mbstate_t fails.  This
94825         prevents us from mistakenly reporting that mbstate_t is a
94826         system object type after we "#define mbstate_t int" to work
94827         around its lack.
94828
94829 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94830         and Bruno Haible  <haible@clisp.cons.org>
94831
94832         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94833
94834 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94835
94836         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94837         to strerror_r.
94838         Include <ctype.h> for use of isalpha.
94839
94840 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94841
94842         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94843         by allocating a larger buffer. Test the gethostname return value for
94844         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94845         returns an error and ENAMETOOLONG isn't defined.
94846
94847 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94848
94849         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94850         dimension.
94851
94852 2000-07-04  Jim Meyering  <meyering@lucent.com>
94853
94854         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94855         of the deprecated AC_CHECKING.
94856
94857 2000-07-04  Jim Meyering  <meyering@lucent.com>
94858
94859         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94860         Reported by Bruno Haible.
94861
94862 2000-07-04  Jim Meyering  <meyering@lucent.com>
94863
94864         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94865         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94866         lacks mbrtowc.
94867
94868 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94869
94870         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94871         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94872
94873 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94874         and Bruno Haible  <haible@clisp.cons.org>
94875
94876         * lib/quotearg.c (mbrtowc):
94877         Assign to *pwc, and return 1 only if result is nonzero.
94878         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94879
94880 2000-07-03  Jim Meyering  <meyering@lucent.com>
94881
94882         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94883
94884 2000-07-03  Jim Meyering  <meyering@lucent.com>
94885
94886         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94887         This is necessary to get a definition of e.g., UTMP_FILE on
94888         HP-UX 10.20.
94889         From Bob Proulx.
94890
94891 2000-07-02  Jim Meyering  <meyering@lucent.com>
94892
94893         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94894
94895         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94896         AC_LIBOBJ(function_name).
94897         * m4/chown.m4: Likewise.
94898         * m4/fnmatch.m4: Likewise.
94899         * m4/ftruncate.m4: Likewise.
94900         * m4/getgroups.m4: Likewise.
94901         * m4/getline.m4: Likewise.
94902         * m4/group-member.m4: Likewise.
94903         * m4/jm-macros.m4: Likewise.
94904         * m4/lstat.m4: Likewise.
94905         * m4/malloc.m4: Likewise.
94906         * m4/memcmp.m4: Likewise.
94907         * m4/nanosleep.m4: Likewise.
94908         * m4/putenv.m4: Likewise.
94909         * m4/realloc.m4: Likewise.
94910         * m4/regex.m4: Likewise.
94911         * m4/stat.m4: Likewise.
94912         * m4/strftime.m4: Likewise.
94913
94914 2000-07-02  Jim Meyering  <meyering@lucent.com>
94915
94916         * lib/quotearg.c (mbstate_t): Don't define here.
94917
94918 2000-07-02  Jim Meyering  <meyering@lucent.com>
94919
94920         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94921
94922 2000-07-01  Jim Meyering  <meyering@lucent.com>
94923
94924         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94925
94926 2000-07-01  Jim Meyering  <meyering@lucent.com>
94927
94928         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94929         problem.
94930
94931 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94932
94933         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94934         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94935
94936 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94937
94938         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94939         per change in ../m4/ls-mntd-fs.m4.
94940         (read_filesystem_list): Ignore symbolic links.
94941
94942 2000-06-29  Jim Meyering  <meyering@lucent.com>
94943
94944         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94945         for declaration of strcmp.
94946
94947         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94948
94949         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94950         Avoid warning by casting result to `char *' to remove `const'.
94951
94952 2000-06-28  Jim Meyering  <meyering@lucent.com>
94953
94954         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94955         included by quotearg.c, for which we perform this test.  From
94956         Bruno Haible.
94957
94958 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94959
94960         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94961         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94962         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94963
94964 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94965
94966         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94967
94968 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94969
94970         savedir now sets errno on failure and invokes xmalloc to get memory.
94971         Fix a couple of other minor bugs while we're at it.
94972
94973         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94974         (NAMLEN): Remove macro.
94975         (malloc, realloc): Remove decls.
94976         (stpcpy): Likewise.
94977         ("xalloc.h"): Include.
94978         (NAME_SIZE_DEFAULT): New macro.
94979         (savedir): Use xmalloc / xrealloc to allocate memory.
94980         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94981         Skip "" directory entries.
94982         Use strlen to calculate directory entry length, since the old method
94983         is rarely used these days and isn't worth supporting.
94984         Don't use a pointer after freeing it.
94985         Check for integer overflow when calculating allocation size.
94986         Use memcpy to copy entries, instead of stpcpy.
94987         Set errno properly when returning NULL.
94988         Check for readdir error.
94989
94990 2000-06-26  Jim Meyering  <meyering@lucent.com>
94991
94992         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94993
94994 2000-06-25  Jim Meyering  <meyering@lucent.com>
94995
94996         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94997         Linux header bug when _XOPEN_SOURCE is defined to 500.
94998
94999 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95000
95001         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
95002         deficiency.
95003
95004 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95005
95006         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
95007         Include xalloc.h.
95008         Don't include <stdlib.h>.  Don't declare malloc, realloc.
95009
95010 2000-06-24  Jim Meyering  <meyering@lucent.com>
95011
95012         * m4/strerror_r.m4: Revive this file -- to try out an experimental
95013         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
95014         for which strerror does return char*, but which lacks a conveniently
95015         accessible declaration of the function.  If the compile-test says
95016         strerror_r doesn't work, then resort to a `run'-test that works on
95017         BeOS and segfaults on DEC Unix.
95018
95019 2000-06-24  Jim Meyering  <meyering@lucent.com>
95020
95021         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
95022
95023 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95024
95025         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
95026         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
95027
95028 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95029
95030         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
95031         (mbrtowc, mbstate_t): Define substitutes if
95032         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
95033         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
95034         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95035
95036 2000-06-23  Jim Meyering  <meyering@lucent.com>
95037
95038         * m4/afs.m4: Add missing AC_MSG_RESULT.
95039         Reported by Bruno Haible.
95040
95041         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95042         Suggestion from Bruno Haible.
95043
95044 2000-06-23  Jim Meyering  <meyering@lucent.com>
95045
95046         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95047
95048 2000-06-21  Jim Meyering  <meyering@lucent.com>
95049
95050         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95051
95052 2000-06-21  Jim Meyering  <meyering@lucent.com>
95053
95054         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95055         (noinst_HEADERS): Add getstr.h.
95056
95057         * lib/getline.c (getstr): Move into a separate file.
95058         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95059         the following changes: new parameter, delim2; both delim[12]
95060         parameters have type `int', not `char'.  The latter would lose
95061         with 8-bit delimiters.
95062         * lib/getstr.h: New file.
95063
95064 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95065
95066         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95067         than 1024, return a memory chunk of least possible size, instead
95068         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95069         Use free/xmalloc instead of xrealloc to avoid copying for very long
95070         paths.
95071
95072 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95073
95074         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95075         the empty string.
95076
95077 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95078
95079         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95080         address, not strdup.  Include <stdlib.h> and don't declare free().
95081
95082 2000-06-19  Jim Meyering  <meyering@lucent.com>
95083
95084         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95085
95086 2000-06-18  Jim Meyering  <meyering@lucent.com>
95087
95088         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95089
95090         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95091         `checking whether...' message to be consistent with that of the
95092         lstat test.
95093
95094 2000-06-18  Jim Meyering  <meyering@lucent.com>
95095
95096         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95097         Besides, these days every porting target provides a mkdir function.
95098
95099         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95100         needed. (this snippet comes from src/system.h).
95101
95102 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95103
95104         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95105
95106 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95107
95108         * lib/human.c (adjust_value): New function.
95109         (human_readable_inexact): Apply rounding style even when
95110         printing approximate values.
95111
95112 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95113
95114         * lib/human.c (human_readable_inexact): Allow an input block
95115         size that is not a multiple of the output block size, and vice versa.
95116         Reported by Piergiorgio Sartor.
95117
95118 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95119
95120         * lib/getdate.y (get_date): Apply relative times after time
95121         zone indicator, not before.  Reported by Todd A. Jacobs.
95122
95123 2000-06-13  Jim Meyering  <meyering@lucent.com>
95124
95125         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95126
95127         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95128
95129 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95130
95131         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95132
95133 2000-06-12  Jim Meyering  <meyering@lucent.com>
95134
95135         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95136         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95137         optional argument.
95138         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95139         the optional argument, `lib'.
95140
95141 2000-06-08  Jim Meyering  <meyering@lucent.com>
95142
95143         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95144
95145 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95146
95147         Rewrite largefile configuration so that we don't need to run
95148         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95149         AC_CANONICAL_HOST in configure.in -- jmm]
95150
95151         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95152         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95153         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95154         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95155         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95156         All uses changed.
95157         Instead of inspecting the output of getconf, try to compile the
95158         test program without and with the macro definition.
95159         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95160         for getconf.  Instead, check for the needed flags by compiling
95161         test programs.
95162
95163 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95164
95165         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95166
95167 2000-06-04  Jim Meyering  <meyering@lucent.com>
95168
95169         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95170         SunOS 4.1.4 for which gid_t is an unsigned type.
95171
95172 2000-06-03  Jim Meyering  <meyering@lucent.com>
95173
95174         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95175         now that autoconf requires that.
95176
95177         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95178         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95179         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95180
95181 2000-06-03  Jim Meyering  <meyering@lucent.com>
95182
95183         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95184
95185 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95186
95187         * m4/glibc21.m4: New file.
95188         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95189
95190 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95191
95192         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95193         newer, don't install charset.alias.
95194         * lib/config.charset: Change the Linux/glibc rules so they become empty
95195         on glibc-2.1 or newer.
95196
95197 2000-06-02  Jim Meyering  <meyering@lucent.com>
95198
95199         * lib/mountlist.c: Back out last change.  Instead, do this...
95200         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95201         me_dummy member using the same `ignore'-testing code.
95202         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95203         fs_type strings.
95204         From Mark D. Roth.
95205
95206 2000-05-29  Jim Meyering  <meyering@lucent.com>
95207
95208         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95209         mounts with the `ignore' attribute.  Based on a patch from
95210         Mark D. Roth.
95211
95212 2000-05-28  Jim Meyering  <meyering@lucent.com>
95213
95214         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95215         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95216         * m4/stat.m4: Likewise.
95217         * m4/lstat.m4: Likewise.
95218         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95219
95220         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95221         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95222
95223 2000-05-26  Jim Meyering  <meyering@lucent.com>
95224
95225         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95226
95227 2000-05-24  Jim Meyering  <meyering@lucent.com>
95228
95229         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95230         autoconf requires that.
95231         * m4/lib-check.m4: Likewise.
95232         * m4/jm-macros.m4: Likewise.
95233         * m4/strftime.m4: Likewise.
95234
95235         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95236         AC_CHECK_DECLS, now that autoconf requires that.
95237
95238 2000-05-22  Jim Meyering  <meyering@lucent.com>
95239
95240         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95241         * m4/lstat.m4: Likewise.
95242
95243 2000-05-22  Jim Meyering  <meyering@lucent.com>
95244
95245         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95246
95247 2000-05-20  Jim Meyering  <meyering@lucent.com>
95248
95249         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95250         (jm_PREREQ): Use it.
95251
95252 2000-05-18  Jim Meyering  <meyering@lucent.com>
95253
95254         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95255         back, too, since it may have been modified by allocate_entry.
95256         (hash_delete): Rewrite to use neither the assignment operator
95257         nor the comma operator in an if-expression.
95258
95259 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95260
95261         * lib/closeout.c:
95262         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95263         Remove; no longer needed.
95264         "quotearg.h": Add include.
95265         (file_name): Do not bother to explicitly initialize to NULL; it's less
95266         efficient on some hosts.
95267         (close_stdout_status): Remove test as to whether stdout was already
95268         closed; it breaks for the case "echo x | sort >&-".
95269         Quote file name colons.
95270         Do not assume that _("write error") lacks format strings.
95271
95272 2000-05-15  Jim Meyering  <meyering@lucent.com>
95273
95274         * lib/version-etc.c (version_etc_copyright): Update the copyright
95275         string used in all --version output.
95276
95277 2000-05-14  Jim Meyering  <meyering@lucent.com>
95278
95279         * lib/closeout.c (close_stdout_set_file_name): New function.
95280         (close_stdout_status): Use new file-scoped global.
95281         Return right away if fstat says the stdout file descriptor is invalid.
95282         * lib/closeout.h (close_stdout_set_file_name): Declare.
95283
95284 2000-05-10  Jim Meyering  <meyering@lucent.com>
95285
95286         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95287         (close_stdout_set_status): New function.
95288         * lib/closeout.h (close_stdout_set_status): Declare.
95289
95290 2000-05-09  Jim Meyering  <meyering@lucent.com>
95291
95292         * m4/gettext.m4: Rename this...
95293         * m4/libintl.m4: ...to this.
95294
95295 2000-05-08  Jim Meyering  <meyering@lucent.com>
95296
95297         * lib/long-options.c: Don't include closeout.h.
95298         (parse_long_options): Don't call close_stdout for --version.
95299
95300 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95301
95302         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95303         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95304         2.1.3 bug.  This avoids a clash when files like regex.c define
95305         _GNU_SOURCE.
95306
95307 2000-05-06  Jim Meyering  <meyering@lucent.com>
95308
95309         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95310         (AC_REPLACE_FUNCS): Add strnlen.
95311
95312         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95313         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95314
95315         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95316         AC_SEARCH_LIBS call for nanosleep.
95317         (LIB_NANOSLEEP): Set and AC_SUBST.
95318
95319 2000-05-06  Jim Meyering  <meyering@lucent.com>
95320
95321         * lib/strnlen.c: Undefine __strnlen and strnlen.
95322         [!weak_alias]: Define __strnlen to strnlen.
95323
95324         * lib/atexit.c: New file, from libiberty.
95325
95326 2000-05-06  Jim Meyering  <meyering@lucent.com>
95327
95328         * lib/closeout.c (close_stdout_status): Also check for errors on the
95329         stderr stream.
95330
95331 2000-05-05  Jim Meyering  <meyering@lucent.com>
95332
95333         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95334         AC_SEARCH_LIBS call for clock_gettime.
95335         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95336
95337         * m4/search-libs.m4: Update from autoconf.
95338
95339         su doesn't work on Solaris 2.6.
95340         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95341         <shadow.h>.  Reported by Dragos Harabor.
95342
95343 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95344
95345         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95346         memcpy instead of xmalloc, xrealloc, path_concat.
95347         (locale_charset): Treat empty environment variables as absent.
95348         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95349
95350 2000-05-04  Jim Meyering  <meyering@lucent.com>
95351
95352         * lib/getopt.c: Update from glibc.
95353         * lib/obstack.c: Likewise.
95354         * lib/obstack.h: Likewise.
95355         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95356         file
95357
95358         * lib/regex.h: Likewise.
95359         * lib/strndup.c: Likewise.
95360         * lib/strnlen.c: New file, from glibc.
95361
95362 2000-05-03  Jim Meyering  <meyering@lucent.com>
95363
95364         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
95365
95366 2000-05-02  Paul Eggert  <eggert@twinsun.com>
95367
95368         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
95369         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
95370         compile-time test, rather than inspecting host and OS, to
95371         decide whether to define _LARGEFILE_SOURCE.
95372
95373 2000-05-01  Jim Meyering  <meyering@lucent.com>
95374
95375         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
95376
95377         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
95378         Based on a patch from Bruno Haible.
95379
95380 2000-05-01  Jim Meyering  <meyering@lucent.com>
95381
95382         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
95383
95384 2000-04-29  Jim Meyering  <meyering@lucent.com>
95385
95386         * lib/path-concat.c: Declare strdup only if it's not defined.
95387         * lib/canon-host.c: Likewise.
95388
95389 2000-04-28  Jim Meyering  <meyering@lucent.com>
95390
95391         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
95392         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
95393         is included first, then limits.h is included by locale.h by libintl.h.
95394         From John David Anglin.
95395
95396 2000-04-25  Jim Meyering  <meyering@lucent.com>
95397
95398         * lib/makepath.c (S_IRWXUGO): Define.
95399         (make_path): Always perform explicit chmod if MODE specifies any
95400         of the `special' permission bits.  Prompted by a bug report against
95401         install from Mate Wierdl and Joost van Baal.
95402
95403 2000-04-18  Jim Meyering  <meyering@lucent.com>
95404
95405         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
95406         (jm_PREREQ): Use it.
95407
95408 2000-04-18  Jim Meyering  <meyering@lucent.com>
95409
95410         * lib/README: New file.
95411
95412         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
95413         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
95414
95415 2000-04-17  Jim Meyering  <meyering@lucent.com>
95416
95417         Get it right :-)
95418         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
95419         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
95420         Suggestion from Akim Demaille.
95421
95422 2000-04-17  Jim Meyering  <meyering@lucent.com>
95423
95424         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95425         the definition of it to rpl_strftime also defined-away the system's
95426         declaration.
95427
95428 2000-04-15  Jim Meyering  <meyering@lucent.com>
95429
95430         Use `C' to denote so-called `contiguous' files, the same way
95431         that tar does.
95432         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95433         (ftypelet): Use S_ISCTG.
95434         From Michael Deutschmann.
95435
95436 2000-04-14  Jim Meyering  <meyering@lucent.com>
95437
95438         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95439         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95440         clobbered.
95441
95442 2000-04-14  Jim Meyering  <meyering@lucent.com>
95443
95444         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
95445
95446 2000-04-13  Jim Meyering  <meyering@lucent.com>
95447
95448         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
95449         AH_VERBATIM to insert required #ifndef into config.h.in.
95450         Suggestion from Akim Demaille.
95451
95452 2000-04-12  Jim Meyering  <meyering@lucent.com>
95453
95454         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
95455         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
95456         Christian Krackowizer.
95457
95458         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
95459         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
95460         (AC_SYS_LARGEFILE): Require.
95461         (AM_C_PROTOTYPES): Require.
95462
95463 2000-04-08  Jim Meyering  <meyering@lucent.com>
95464
95465         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95466         names don't conflict.  Reported by Eli Zaretskii.
95467
95468 2000-04-07  Jim Meyering  <meyering@lucent.com>
95469
95470         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95471         sys/types.h, to work around system header problems on AIX 3.2.5.
95472         From Bruno Haible.
95473
95474 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
95475
95476         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
95477         bug.  Deal with the different error behavior of Irix iconv.
95478
95479 2000-04-05  Paul Eggert  <eggert@twinsun.com>
95480
95481         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
95482         IRIX if the installer said otherwise.
95483
95484 2000-04-05  Jim Meyering  <meyering@lucent.com>
95485
95486         Portability tweaks required for ultrix4.3.
95487         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
95488         (jm_CHECK_DECLS): Add getutent to the list of functions.
95489         (_jm_DECL_HEADERS): Add utmpx.h.
95490         From John David Anglin.
95491
95492         * m4/strftime.m4: Back out the 2000-04-02 change.
95493         Instead of that change, simply undefine putenv in the test program.
95494
95495 2000-04-05  Jim Meyering  <meyering@lucent.com>
95496
95497         Portability tweaks required for ultrix4.3.
95498         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
95499         getutent.
95500         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
95501         * lib/canon-host.c: Declare strdup.
95502         * lib/path-concat.c: Likewise.
95503         From John David Anglin.
95504
95505 2000-04-04  Jim Meyering  <meyering@lucent.com>
95506
95507         Be more DOS 8.3-friendly.
95508         * lib/ref-add.sin: Renamed from ref-add.sed.in.
95509         * lib/ref-del.sin: Renamed from ref-del.sed.in.
95510         * lib/Makefile.am: Reflect renaming.
95511         Reported by Eli Zaretskii.
95512
95513         Use a temporary file name that won't clash with `charset.alias'
95514         in the DOS 8.3 name space.
95515         * lib/Makefile.am (charset_tmp): Define.
95516         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95517         (uninstall-local): Likewise.
95518         Reported by Eli Zaretskii.
95519
95520 2000-04-03  Jim Meyering  <meyering@lucent.com>
95521
95522         * m4/gettext.m4: Fix typo in comment.
95523
95524         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95525         textutils/configure.in).  Suggestion from Paul Eggert.
95526         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95527
95528 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95529
95530         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95531         variable in the shell rather than using putenv, which isn't
95532         portable.  This avoids the configure-time inter-test dependency
95533         on the potentially-renamed putenv function.
95534
95535 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95536
95537         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95538         before checking struct stat.st_blksize, so that
95539         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95540
95541 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95542
95543         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95544         since strftime.c uses HAVE_STRFTIME to decide whether to use
95545         the underlying strftime.
95546
95547 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95548
95549         * lib/time/strftime.c (my_strftime): Make sure we call the system
95550         strftime, not ourselves, when invoking the underlying strftime.
95551
95552 2000-03-24  Jim Meyering  <meyering@lucent.com>
95553
95554         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95555         (charset_alias): Define.
95556         (install-exec-local): Factor out common code.
95557         (uninstall-local): Split lines longer than 80.
95558         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95559         (SUFFIXES): Define.
95560         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95561         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95562
95563 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95564
95565         * lib/config.charset: Output a line containing "Packages using this
95566         file".
95567         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95568         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95569         ref-del.sed): New rules.
95570
95571 2000-03-17  Jim Meyering  <meyering@lucent.com>
95572
95573         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95574         Otherwise, include <strings.h>
95575
95576 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95577
95578         * lib/unicodeio.c (utf8_wctomb): New function.
95579         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95580         format instead of in UCS-4 with platform dependent endianness.
95581
95582 2000-03-10  Jim Meyering  <meyering@lucent.com>
95583
95584         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95585         From Marco Franzen.
95586
95587 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95588
95589         * lib/savedir.c (savedir): Work even if directory size is
95590         negative; this can happen with some screwy NFS configurations.
95591
95592 2000-03-06  Jim Meyering  <meyering@lucent.com>
95593
95594         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95595         if it's NULL (because we ran out of memory).  From Bruno Haible.
95596
95597 2000-03-05  Jim Meyering  <meyering@lucent.com>
95598
95599         * lib/localcharset.c ("path-concat.h"): Include.
95600         (get_charset_aliases): Use path_concat instead of ANSI string
95601         concatenation.
95602
95603         * lib/unicodeio.h (PARAMS): Define.
95604         Use it to guard prototype.
95605
95606 2000-03-04  Jim Meyering  <meyering@lucent.com>
95607
95608         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95609         for lib/localcharset.c.
95610
95611 2000-03-04  Jim Meyering  <meyering@lucent.com>
95612
95613         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95614         installing into it.
95615         (uninstall-local): Uncomment this rule so `make distcheck' works
95616         once again.
95617
95618         * lib/unicodeio.c (<errno.h>): Include it.
95619         (errno): Declare if not defined.
95620
95621         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95622
95623         * lib/config.charset: New version, incorporating remarks from a linux
95624         i18n mailing list.  From Bruno Haible.
95625
95626 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95627
95628         * m4/codeset.m4: New file.
95629         * m4/iconv.m4: New file.
95630         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95631
95632 2000-03-03  Jim Meyering  <meyering@lucent.com>
95633
95634         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95635
95636 2000-03-02  Jim Meyering  <meyering@lucent.com>
95637
95638         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95639         the messages come out on separate lines.
95640
95641         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95642         rather than jm_CHECK_DECLARATIONS.
95643         * m4/decl.m4: Remove now-unused file.
95644
95645         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95646         geteuid.
95647
95648 2000-03-02  Jim Meyering  <meyering@lucent.com>
95649
95650         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95651
95652 2000-03-01  Jim Meyering  <meyering@lucent.com>
95653
95654         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95655         * lib/unicodeio.c: Likewise.
95656
95657 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95658
95659         * lib/config.charset: New file.
95660         * lib/localcharset.c: New file.
95661         * lib/unicodeio.h, lib/unicodeio.c: New files.
95662         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95663         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95664         (noinst_HEADERS): Add unicodeio.h.
95665         (all-local, install-exec-local, charset.alias): New targets.
95666
95667 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95668
95669         * lib/quotearg.c (ALERT_CHAR): New macro.
95670         (quotearg_buffer_restyled): Use it.
95671
95672 2000-02-27  Jim Meyering  <meyering@lucent.com>
95673
95674         * m4/check-decl.m4: Add getenv to the list.
95675
95676 2000-02-27  Jim Meyering  <meyering@lucent.com>
95677
95678         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95679         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95680
95681         * lib/backupfile.c: Guard inclusion of stdlib.h with
95682         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95683         Declare malloc if needed.
95684
95685         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95686         `#ifndef HAVE_DECL..'
95687         now that autoconf always defines the HAVE_DECL_ symbols.
95688         * lib/human.c: Likewise.
95689         * lib/same.c: Likewise.
95690         * lib/strtoumax.c: Likewise.
95691
95692         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95693         declaration check was not run.
95694         * lib/hash.c: Likewise.
95695         * lib/human.c: Likewise.
95696         * lib/same.c: Likewise.
95697         * lib/strtoumax.c: Likewise.
95698
95699         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95700         `.', then first look up the entire `.'-containing string as a login
95701         name.
95702
95703 2000-02-23  Jim Meyering  <meyering@lucent.com>
95704
95705         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95706         in place of my hack.
95707
95708 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95709
95710         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95711         (textint): New typedef.
95712         (parser_control): Member year changed from int to textint.
95713         All uses changed.
95714         (YYSTYPE): Removed; replaced by %union with int and textint members.
95715         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95716         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95717         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95718         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95719         (date, number, to_year): Use width of number in digits, not its value,
95720         to determine whether it's a 2-digit year, or a 2-digit time.
95721         (yylex): Store number of digits of numeric tokens.
95722         Reported by John Kendall.
95723
95724         (parser_control): Changed from struct parser_control to typedef (for
95725         consistency).  All uses changed.
95726
95727         (tID): Removed; not used.
95728         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95729
95730 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95731
95732         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95733         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95734
95735 2000-02-12  Jim Meyering  <meyering@lucent.com>
95736
95737         * lib/userspec.c (ISDIGIT): Define it.
95738         (isdigit): Remove definition.
95739         (is_number): Use ISDIGIT, not isdigit.
95740         <libintl.h>: Include.
95741         (_ and N_): Define.
95742         (parse_user_spec): Mark translatable strings.
95743
95744 2000-02-10  Jim Meyering  <meyering@lucent.com>
95745
95746         With these changes, nanosleep.[ch] are finally enough like the other
95747         lib/* replacement files to compile on a few more losing systems.
95748
95749         * lib/nanosleep.h: Don't include config.h.
95750         Remove prototype from declaration of nanosleep.
95751         (PARAMS): Remove now-unneeded definition.
95752         * lib/nanosleep.c: #undef nanosleep.
95753         (rpl_nanosleep): Rename from nanosleep.
95754
95755 2000-02-10  Jim Meyering  <meyering@lucent.com>
95756
95757         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95758         gnu_nanosleep to rpl_nanosleep.
95759
95760 2000-02-09  Jim Meyering  <meyering@lucent.com>
95761
95762         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95763         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95764
95765 2000-02-08  Akim Demaille  <akim@epita.fr>
95766
95767         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95768         `[' and `]' and remove uses of `changequote'.
95769         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95770         (AC_SYS_LARGEFILE): Likewise.
95771         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95772         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95773         of changequote.
95774         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95775         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95776         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95777         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95778
95779 2000-02-05  Jim Meyering  <meyering@lucent.com>
95780
95781         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95782         Remove explicit use of AC_HEADER_TIME.  It is required by
95783         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95784         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95785         in autoconf whereby the expansion of the latter ended up preceding
95786         the expansion of its prerequisite, AC_HEADER_TIME.
95787         Reported by Volker Borchert.
95788
95789 2000-02-03  Jim Meyering  <meyering@lucent.com>
95790
95791         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95792
95793 2000-02-03  Jim Meyering  <meyering@lucent.com>
95794
95795         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95796         rather than with `#if HAVE_UTMPNAME'.
95797
95798 2000-02-02  Jim Meyering  <meyering@lucent.com>
95799
95800         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95801         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95802         Reported by Eli Zaretskii.
95803
95804 2000-02-01  Jim Meyering  <meyering@lucent.com>
95805
95806         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95807
95808 2000-01-31  Jim Meyering  <meyering@lucent.com>
95809
95810         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95811         functions.  Add the time.h and sys/time.h headers along with the
95812         AC_REQUIRE'ment of AC_HEADER_TIME.
95813
95814 2000-01-31  Jim Meyering  <meyering@lucent.com>
95815
95816         * lib/nanosleep.h (nanosleep): Guard declaration with
95817         `#if ! HAVE_DECL_NANOSLEEP'.
95818         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95819         the declaration in that vendor's sys/timers.h.
95820         Reported by Christian Krackowizer.
95821
95822         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95823         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95824         (ISPRINT): Likewise.
95825         Reported by Tom Tromey.
95826
95827 2000-01-30  Jim Meyering  <meyering@lucent.com>
95828
95829         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95830
95831         * m4/prereq.m4 (utmp_includes): Define.
95832         Check for ut_user and ut_name members in both struct utmpx
95833         and struct utmp.
95834
95835 2000-01-30  Jim Meyering  <meyering@lucent.com>
95836
95837         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95838         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95839         header files where only utmpx.ut_user is declared.
95840
95841         * lib/readutmp.h (UT_USER): Define.
95842
95843 2000-01-29  Jim Meyering  <meyering@lucent.com>
95844
95845         * m4/lib-check.m4: New file containing library-related checks from
95846         fileutils and sh-utils (textutils had none).
95847
95848 2000-01-28  Jim Meyering  <meyering@lucent.com>
95849
95850         * m4/perl.m4: Change format of warning message to look more like that
95851         from the missing script.  Suggestion from François Pinard.
95852
95853 2000-01-25  Jim Meyering  <meyering@lucent.com>
95854
95855         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95856         well as time.h in the compile check.
95857         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95858         Fix typo in cross-compiling case: s/yes/no/.
95859
95860 2000-01-23  Jim Meyering  <meyering@lucent.com>
95861
95862         * m4/jm-macros.m4: Move df-related tests here from
95863         fileutils/configure.in
95864
95865         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95866         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95867
95868         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95869         s/space/ac_fsusage_space/.
95870         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95871
95872         * m4/ftruncate.m4: New file (derived from part of
95873         fileutils/configure.in).
95874         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95875         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95876
95877         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95878         AC_SUBST these here, rather than just in sh-util/configure.in, so
95879         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95880         all the same.
95881         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95882         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95883         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95884         (AC_SUBST(POW_LIBM)): Likewise.
95885         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95886
95887 2000-01-23  Jim Meyering  <meyering@lucent.com>
95888
95889         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95890         obstack.c.
95891
95892 2000-01-22  Jim Meyering  <meyering@lucent.com>
95893
95894         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95895
95896         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95897
95898         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95899         configure.in
95900         (AC_CHECK_HEADERS): Likewise for sh-utils.
95901         (AC_CHECK_HEADERS): Likewise for textutils.
95902         Merge the three lists of headers.
95903
95904         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95905         from fileutils' configure.in.
95906
95907         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95908         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95909         check-decl.m4.
95910
95911         * m4/check-decl.m4: Use #if rather than #ifdef.
95912         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95913         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95914         (_jm_DECL_HEADERS): Define new function.
95915         (jm_CHECK_DECLARATIONS): Require it.
95916
95917 2000-01-22  Jim Meyering  <meyering@lucent.com>
95918
95919         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95920         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95921         Required for some AIX systems.  Reported by Christian Krackowizer.
95922         [TESTING] (main): New function.
95923
95924         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95925         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95926         letters.
95927
95928         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95929         iswprint.
95930
95931         * lib/strverscmp.c (ISDIGIT): Define.
95932         (strverscmp): Use ISDIGIT, not isdigit.
95933
95934 2000-01-19  Jim Meyering  <meyering@lucent.com>
95935
95936         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95937         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95938         defines `struct timespec' in <sys/time.h>
95939
95940         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95941         Thanks to Akim for explaining.
95942
95943 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95944
95945         * lib/nanosleep.c (nanosleep):
95946         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95947         POSIX.1 doesn't require SA_INTERRUPT and some systems
95948         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95949         it's been part of POSIX.1 since day 1 (in 1988).
95950
95951 2000-01-17  Jim Meyering  <meyering@lucent.com>
95952
95953         * lib/interlock: Remove unused file.  Reported by François Pinard.
95954
95955 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95956
95957         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95958         alert, backslash, formfeed, and vertical tab unnecessarily in
95959         shell quoting style.
95960
95961 2000-01-16  Jim Meyering  <meyering@lucent.com>
95962
95963         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95964         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95965         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95966         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95967
95968 2000-01-16  Jim Meyering  <meyering@lucent.com>
95969
95970         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95971         because the latter didn't work.
95972
95973 2000-01-15  Jim Meyering  <meyering@lucent.com>
95974
95975         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95976         (AC_REPLACE_FUNCS): Add memcpy and memset.
95977         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95978         Add strpbrk.
95979         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95980
95981 2000-01-12  Jim Meyering  <meyering@lucent.com>
95982
95983         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95984         (jm_PREREQ): Use it.
95985         (jm_PREREQ_READUTMP): New macro.
95986         (jm_PREREQ): Use it.
95987
95988 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95989
95990         Quote multibyte characters correctly.
95991         * m4/c-bs-a.m4: New file.
95992         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95993         (jm_PREREQ): Use it.
95994
95995 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95996
95997         * m4/uintmax_t.m4: Port to autoconf 2.13.
95998
95999 2000-01-08  Jim Meyering  <meyering@ascend.com>
96000
96001         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
96002         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
96003
96004 2000-01-04  Jim Meyering  <meyering@ascend.com>
96005
96006         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
96007         jm_STRUCT_DIRENT_D_TYPE.
96008         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
96009         jm_STRUCT_DIRENT_D_INO.
96010         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
96011         jm_STRUCT_UTIMBUF.
96012         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
96013         renamings.
96014         * m4/utime.m4: Likewise.
96015
96016         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
96017         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
96018
96019 2000-01-03  Paul Eggert  <eggert@twinsun.com>
96020
96021         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
96022         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
96023
96024 2000-01-02  Jim Meyering  <meyering@ascend.com>
96025
96026         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
96027         remember if this is necessary.
96028
96029 1999-12-26  Jim Meyering  <meyering@ascend.com>
96030
96031         * m4/jm-macros.m4: Use it here.
96032         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
96033
96034 1999-12-23  Jim Meyering  <meyering@ascend.com>
96035
96036         * m4/jm-macros.m4: Check for clock_gettime (moved from
96037         fileutils/configure.in)
96038         Check for gettimeofday.
96039
96040 1999-12-20  Jim Meyering  <meyering@ascend.com>
96041
96042         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96043         autoconf-2.14a-1999-12-20.
96044
96045 1999-12-19  Jim Meyering  <meyering@ascend.com>
96046
96047         * m4/lstat-slash.m4: New file.
96048         * m4/jm-macros.m4: Use the new macro:
96049         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96050
96051 1999-12-07  Jim Meyering  <meyering@ascend.com>
96052
96053         * m4/perl.m4: Require that File::Compare be available, too.
96054         Too many systems seem to lack it.
96055
96056         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96057         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96058
96059 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96060
96061         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96062         problem with the QNX 4.25 shell, which doesn't propagate exit
96063         status of failed commands inside shell assignments.
96064
96065 1999-11-17  Jim Meyering  <meyering@ascend.com>
96066
96067         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96068
96069 1999-11-07  Jim Meyering  <meyering@ascend.com>
96070
96071         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96072
96073 1999-11-06  Jim Meyering  <meyering@ascend.com>
96074
96075         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96076         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96077
96078 1999-11-05  Jim Meyering  <meyering@ascend.com>
96079
96080         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96081         configure.in of textutils, fileutils, and sh-utils into this one
96082         (shared between those packages) file.
96083         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96084         AC_STRUCT_ST_BLKSIZE.
96085
96086 1999-11-03  Jim Meyering  <meyering@ascend.com>
96087
96088         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96089         of AC_CHECK_TYPE checks includes unistd.h.
96090         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96091         Suggestion from Akim Demaille.
96092
96093 1999-10-30  Jim Meyering  <meyering@ascend.com>
96094
96095         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96096         m4-quoted string.
96097         * m4/ls-mntd-fs.m4: Likewise.
96098         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96099         * m4/jm-winsz1.m4: Likewise.
96100
96101         * m4/const.m4: Remove file, since the fix made it into the experimental
96102         version of autoconf.
96103         * m4/mktime.m4: Likewise.
96104
96105         * m4/check-type.m4: Remove file, now that the latest version of
96106         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96107
96108         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96109         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96110         AC_CHECK_TYPE.
96111
96112 1999-10-04  Jim Meyering  <meyering@ascend.com>
96113
96114         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96115
96116 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96117
96118         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96119         2.95.1 bug with HP-UX 10.20.
96120
96121 1999-09-17  Jim Meyering  <meyering@ascend.com>
96122
96123         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96124         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96125         due to missing strdup (against sh-utils-2.0).
96126
96127 1999-08-29  Jim Meyering  <meyering@ascend.com>
96128
96129         * m4/jm-macros.m4: Require jm_BISON.
96130         * m4/bison.m4: New file.
96131
96132 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96133
96134         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96135         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96136
96137 1999-08-05  Jim Meyering  <meyering@ascend.com>
96138
96139         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96140         to avoid conflicts with `conftest' on 8+3 filesystems.
96141         Suggestion from Eli Zaretskii.
96142
96143 1999-08-04  Jim Meyering  <meyering@ascend.com>
96144
96145         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96146         fileutils and sh-utils (textutils's getline test was inadequate).
96147         (AM_FUNC_GETLINE): Run this test.
96148         (AC_CHECK_FUNCS): Check for getdelim.
96149         Reported by Bob Proulx.
96150
96151 1999-08-02  Jim Meyering  <meyering@ascend.com>
96152
96153         * m4/jm-macros.m4: Add a comment.
96154
96155 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96156
96157         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96158         <inttypes.h> defines strtoumax as a macro (and not as a
96159         function).
96160
96161 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96162
96163         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96164         that we can shift, multiply and divide unsigned long long
96165         values; Ultrix cc can't do it.
96166
96167 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96168
96169         * m4/mktime.m4: New file, which is a preview of what should appear
96170         in the next public autoconf release.
96171
96172 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96173
96174         * m4/lfs.m4: Remove this file.
96175         * m4/largefile.m4: New file.  It contains the old contents of
96176         lfs.m4, except that all names with prefix AC_LFS have been
96177         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96178         compatible with future autoconf versions.  Also, some minor m4
96179         quoting problems have been fixed.
96180
96181 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96182
96183         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96184         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96185         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96186         and simplify the shell code.
96187
96188 1999-08-01  Jim Meyering  <meyering@ascend.com>
96189
96190         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96191         m4.
96192
96193 1999-07-20  Jim Meyering  <meyering@ascend.com>
96194
96195         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96196
96197 1999-07-15  Jim Meyering  <meyering@ascend.com>
96198
96199         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96200
96201 1999-05-22  Jim Meyering  <meyering@ascend.com>
96202
96203         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96204
96205 1999-05-20  Jim Meyering  <meyering@ascend.com>
96206
96207         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96208         Add a colon after each `then' in case $4 is empty.
96209
96210 1999-05-16  Jim Meyering  <meyering@ascend.com>
96211
96212         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96213
96214 1999-05-10  Jim Meyering  <meyering@ascend.com>
96215
96216         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96217
96218         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96219         AC_FUNC_MKTIME.
96220
96221 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96222
96223         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96224
96225 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96226
96227         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96228         not CPPFLAGS, so that linking works correctly in IRIX.
96229
96230 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96231
96232         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96233
96234 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96235
96236         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96237         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96238         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96239         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96240         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96241
96242         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96243
96244 1999-04-20  Jim Meyering  <meyering@ascend.com>
96245
96246         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96247         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96248         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96249
96250 1999-04-18  Jim Meyering  <meyering@ascend.com>
96251
96252         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96253         * m4/jm-macros.m4: Use it.
96254
96255 1999-04-06  Jim Meyering  <meyering@ascend.com>
96256
96257         * m4/strftime.m4: Remove test for %f.
96258
96259 1999-03-29  Jim Meyering  <meyering@ascend.com>
96260
96261         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96262         superset of the AC_TYPE_* checks in the textutils, fileutils,
96263         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96264         AC_TYPE_PID_T.
96265
96266 1999-03-28  Jim Meyering  <meyering@ascend.com>
96267
96268         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96269         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96270         replaced e.g., in the *.sh files of the sh-utils.
96271
96272 1999-03-20  Jim Meyering  <meyering@ascend.com>
96273
96274         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96275         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96276         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96277
96278 1999-03-19  Jim Meyering  <meyering@ascend.com>
96279
96280         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96281
96282 1999-03-12  Jim Meyering  <meyering@ascend.com>
96283
96284         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96285
96286 1999-03-07  Jim Meyering  <meyering@ascend.com>
96287
96288         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96289         declared.
96290
96291 1999-02-17  Jim Meyering  <meyering@ascend.com>
96292
96293         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
96294         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
96295
96296 1999-02-07  Jim Meyering  <meyering@ascend.com>
96297
96298         * m4/group-member.m4: New file -- extracted from sh-utils'
96299         configure.in.
96300
96301         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96302         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96303
96304 1999-02-06  Jim Meyering  <meyering@ascend.com>
96305
96306         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96307         * m4/fnmatch.m4: Likewise.
96308         * m4/getgroups.m4: Likewise.
96309         * m4/lstat.m4: Likewise.
96310         * m4/malloc.m4: Likewise.
96311         * m4/putenv.m4: Likewise.
96312         * m4/realloc.m4: Likewise.
96313         * m4/regex.m4: Likewise.
96314         * m4/stat.m4: Likewise.
96315         * m4/strftime.m4: Likewise.
96316         Suggestion from Alain Magloire.
96317
96318         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96319         * m4/fnmatch.m4: Likewise.
96320         * m4/getgroups.m4: Likewise.
96321         * m4/getline.m4: Likewise.
96322         * m4/lstat.m4: Likewise.
96323         * m4/malloc.m4: Likewise.
96324         * m4/memcmp.m4: Likewise.
96325         * m4/putenv.m4: Likewise.
96326         * m4/realloc.m4: Likewise.
96327         * m4/regex.m4: Likewise.
96328         * m4/stat.m4: Likewise.
96329         * m4/strftime.m4: Likewise.
96330         Suggestion from Alain Magloire.
96331
96332         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96333         an argument.
96334
96335         * m4/regex.m4: Add a run-time Test for proper operation of
96336         re_compile_pattern.
96337
96338 1999-01-31  Jim Meyering  <meyering@ascend.com>
96339
96340         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96341
96342 1999-01-30  Jim Meyering  <meyering@ascend.com>
96343
96344         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96345
96346         * m4/jm-mktime.m4: Make this a wrapper around the official
96347         AM_FUNC_MKTIME rather than my private copy, now that the official one
96348         is up to date.
96349         * m4/mktime.m4: Remove file.
96350
96351         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96352         * m4/uptime.m4: Likewise.
96353         * m4/uintmax_t.m4: Likewise.
96354
96355 1999-01-28  Jim Meyering  <meyering@ascend.com>
96356
96357         * m4/jm-macros.m4: Use jm_AFS.
96358         * m4/afs.m4: New file (from fileutils' configure.in).
96359
96360         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96361         * m4/chown.m4: Likewise.
96362         * m4/d-ino.m4: Likewise.
96363         * m4/d-type.m4: Likewise.
96364         * m4/fnmatch.m4: Likewise.
96365         * m4/getgroups.m4: Likewise.
96366         * m4/gettext.m4: Likewise.
96367         * m4/jm-mktime.m4: Likewise.
96368         * m4/jm-winsz2.m4: Likewise.
96369         * m4/lcmessage.m4: Likewise.
96370         * m4/ls-mntd-fs.m4: Likewise.
96371         * m4/malloc.m4: Likewise.
96372         * m4/memcmp.m4: Likewise.
96373         * m4/putenv.m4: Likewise.
96374         * m4/realloc.m4: Likewise.
96375         * m4/st_mtim.m4: Likewise.
96376         * m4/strftime.m4: Likewise.
96377
96378 1999-01-16  Jim Meyering  <meyering@ascend.com>
96379
96380         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
96381         (ARGMATCH_DIE_DECL): Define.
96382
96383 1999-01-12  Jim Meyering  <meyering@ascend.com>
96384
96385         * m4/Makefile.am.in: Rewrite to avoid using fmt.
96386         Reported by Lars Hecking.
96387
96388 1999-01-10  Jim Meyering  <meyering@ascend.com>
96389
96390         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
96391         gross kludge.
96392         * m4/inttypes_h.m4: Likewise.
96393         * m4/lstat.m4: Likewise.
96394         * m4/malloc.m4: Likewise.
96395         * m4/readdir.m4: Likewise.
96396         * m4/realloc.m4: Likewise.
96397         * m4/st_dm_mode.m4: Likewise.
96398         * m4/stat.m4: Likewise.
96399         * m4/utimbuf.m4: Likewise.
96400         * m4/utimes.m4: Likewise.
96401
96402         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
96403         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
96404         comments in config.h.in are meaningful.
96405
96406         * m4/jm-macros.m4: Require autoconf-2.13 here.
96407
96408         * m4/regex.m4: By default, don't use the included regex.c on systems
96409         with glibc 2.  Suggestion from Uli Drepper.
96410
96411 1999-01-02  Jim Meyering  <meyering@ascend.com>
96412
96413         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
96414
96415 1998-12-18  Jim Meyering  <meyering@ascend.com>
96416
96417         * m4/Makefile.am.in (Makefile.am): Simplify rule.
96418         Based on a suggestion from Lars Hecking.
96419
96420 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96421
96422         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96423
96424 1998-11-16  Jim Meyering  <meyering@ascend.com>
96425
96426         * m4/lfs.m4: Double-quote the `uname...` expression.
96427
96428 1998-11-14  Jim Meyering  <meyering@ascend.com>
96429
96430         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96431         * m4/stat.m4: Likewise.
96432
96433 1998-11-03  Jim Meyering  <meyering@ascend.com>
96434
96435         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96436         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96437
96438 1998-10-18  Jim Meyering  <meyering@ascend.com>
96439
96440         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
96441
96442 1998-10-17  Jim Meyering  <meyering@ascend.com>
96443
96444         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
96445         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
96446         calls for those previously hard-coded headers.  Instead, take a new
96447         parameter.
96448         (jm_CHECK_DECLARATIONS): Reflect interface change.
96449         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
96450         (jm_CHECK_DECL_LOCALTIME_R): New macro.
96451
96452         * m4/mktime.m4: Test for spring-forward gap before long-running test.
96453
96454 1998-10-14  Jim Meyering  <meyering@ascend.com>
96455
96456         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
96457         instead of "TZ=America/Vancouver".  From Paul Eggert.
96458
96459 1998-10-11  Jim Meyering  <meyering@ascend.com>
96460
96461         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96462         This adds a test for a recently added compatibility fix for mktime.c.
96463         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96464
96465 1998-09-27  Jim Meyering  <meyering@ascend.com>
96466
96467         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96468
96469         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96470         ../configure.in, including a change from Gordon Matzigkeit to allow
96471         cross-compiling for the Hurd.
96472
96473         * m4/glibc.m4: New file/macro to test for the GNU C Library
96474         versions 1 and 2.  From Gordon Matzigkeit.
96475         Indent.
96476
96477 1998-09-21  Jim Meyering  <meyering@ascend.com>
96478
96479         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
96480
96481 1998-08-18  Paul Eggert  <eggert@twinsun.com>
96482
96483         Port nanosecond-resolution times to UnixWare 2.1.2 and
96484         pedantic Solaris 2.6.
96485
96486         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
96487         AC_STRUCT_ST_MTIM.
96488         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
96489         Generate name of ns member, instead of just 1 or undef.
96490         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
96491
96492 1998-08-15  Jim Meyering  <meyering@ascend.com>
96493
96494         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
96495         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
96496         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
96497         instead of jm_TYPE_SSIZE_T.
96498
96499 1998-08-12  Jim Meyering  <meyering@ascend.com>
96500
96501         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
96502
96503 1998-08-02  Jim Meyering  <meyering@ascend.com>
96504
96505         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
96506         in acconfig.h manually.
96507
96508 1998-07-31  Paul Eggert  <eggert@twinsun.com>
96509
96510         * m4/st_mtim.m4: New file.
96511
96512 1998-07-28  Jim Meyering  <meyering@ascend.com>
96513
96514         * m4/utimes.m4: Undef stat.
96515
96516 1998-07-25  Jim Meyering  <meyering@ascend.com>
96517
96518         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96519         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96520
96521 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96522
96523         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96524         uid and gid actually remain unchanged.
96525
96526 1998-07-07  Jim Meyering  <meyering@ascend.com>
96527
96528         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96529
96530 1998-07-04  Jim Meyering  <meyering@ascend.com>
96531
96532         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96533         to prove that this macro can be used in packages without regex.c.
96534
96535 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96536
96537         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96538         is to be used.
96539
96540 1998-07-03  Jim Meyering  <meyering@ascend.com>
96541
96542         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96543
96544         * m4/gettext.m4: New file -- from gettext-0.10.35.
96545         * m4/lcmessage.m4: Likewise.
96546         * m4/progtest.m4: Likewise.
96547
96548         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96549         * m4/jm-macros.m4: Require the new macro.
96550
96551 1998-06-29  Jim Meyering  <meyering@ascend.com>
96552
96553         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96554         for the definition of NGROUPS (used in a system header included
96555         by sys/mount.h).
96556
96557 1998-06-28  Jim Meyering  <meyering@ascend.com>
96558
96559         * m4/ls-mntd-fs.m4: New file.
96560         * m4/fstypename.m4: New file.
96561
96562         * m4/jm-macros.m4: Require the new macro.
96563         * m4/jm-glibc-io.m4: New file.
96564
96565 1998-05-19  Jim Meyering  <meyering@ascend.com>
96566
96567         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96568         * m4/lchown.m4: New file.
96569
96570         * m4/Makefile.am.in: New file.
96571         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96572
96573 1998-05-14  Jim Meyering  <meyering@ascend.com>
96574
96575         * m4/Makefile.am (EXTRA_DIST): Add them.
96576         * m4/jm-macros.m4: New file.
96577         * m4/utimbuf.m4: New file.
96578
96579 1998-05-12  Jim Meyering  <meyering@ascend.com>
96580
96581         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96582
96583 1998-05-11  Jim Meyering  <meyering@ascend.com>
96584
96585         * m4/isc-posix.m4: New file.
96586
96587 1998-05-10  Jim Meyering  <meyering@ascend.com>
96588
96589         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96590
96591 1998-05-09  Jim Meyering  <meyering@ascend.com>
96592
96593         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96594         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96595         with automake.
96596
96597         * m4/ssize_t.m4: New file.
96598         * m4/mktime.m4: Remove file -- the new automake has this now.
96599
96600 1998-04-26  Jim Meyering  <meyering@ascend.com>
96601
96602         * m4/assert.m4: New file.
96603         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96604
96605 1998-04-05  Jim Meyering  <meyering@ascend.com>
96606
96607         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96608         (jm_PREREQ): Use it here.
96609
96610 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96611
96612         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96613         in acconfig.h.
96614
96615 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96616
96617         * m4/prereq.m4: New file.
96618         * m4/error.m4: New file.
96619         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96620
96621 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96622
96623         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96624         cache-check for the same variable -- that defeated the purpose of
96625         the test; the test program was never run.  This was a problem only
96626         on systems with losing getline functions -- HP-UX 10.20 is one.
96627         Reported by Bjorn Helgaas.
96628
96629 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96630
96631         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96632
96633 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96634
96635         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96636
96637         * m4/const.m4: New file.  Use an initializer in this declaration
96638         typedef int charset[2]; const charset x;
96639         Reported by Bob Glickstein.
96640
96641 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96642
96643         * m4/chown.m4: Fix reversed types on -1 args to chown.
96644         From Kaveh Ghazi.
96645
96646 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96647
96648         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96649         Add lseek and memchr.
96650
96651         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96652         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96653         have a 20-character limit on names.
96654
96655 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96656
96657         * m4/inttypes_h.m4: New file.
96658         * m4/uintmax_t.m4: New file.
96659         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96660
96661
96662         -----
96663
96664         Local Variables:
96665         coding: utf-8
96666         End:
96667
96668         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96669
96670         Copying and distribution of this file, with or without
96671         modification, are permitted provided the copyright notice
96672         and this notice are preserved.